@@ -461,66 +461,6 @@ func (codeEngine *CodeEngineV2) GetProjectEgressIpsWithContext(ctx context.Conte
461
461
return
462
462
}
463
463
464
- // GetProjectStatusDetails : Get the status details for a project
465
- // Retrieves status details about the given project.
466
- func (codeEngine * CodeEngineV2 ) GetProjectStatusDetails (getProjectStatusDetailsOptions * GetProjectStatusDetailsOptions ) (result * ProjectStatusDetails , response * core.DetailedResponse , err error ) {
467
- return codeEngine .GetProjectStatusDetailsWithContext (context .Background (), getProjectStatusDetailsOptions )
468
- }
469
-
470
- // GetProjectStatusDetailsWithContext is an alternate form of the GetProjectStatusDetails method which supports a Context parameter
471
- func (codeEngine * CodeEngineV2 ) GetProjectStatusDetailsWithContext (ctx context.Context , getProjectStatusDetailsOptions * GetProjectStatusDetailsOptions ) (result * ProjectStatusDetails , response * core.DetailedResponse , err error ) {
472
- err = core .ValidateNotNil (getProjectStatusDetailsOptions , "getProjectStatusDetailsOptions cannot be nil" )
473
- if err != nil {
474
- return
475
- }
476
- err = core .ValidateStruct (getProjectStatusDetailsOptions , "getProjectStatusDetailsOptions" )
477
- if err != nil {
478
- return
479
- }
480
-
481
- pathParamsMap := map [string ]string {
482
- "project_id" : * getProjectStatusDetailsOptions .ProjectID ,
483
- }
484
-
485
- builder := core .NewRequestBuilder (core .GET )
486
- builder = builder .WithContext (ctx )
487
- builder .EnableGzipCompression = codeEngine .GetEnableGzipCompression ()
488
- _ , err = builder .ResolveRequestURL (codeEngine .Service .Options .URL , `/projects/{project_id}/status_details` , pathParamsMap )
489
- if err != nil {
490
- return
491
- }
492
-
493
- for headerName , headerValue := range getProjectStatusDetailsOptions .Headers {
494
- builder .AddHeader (headerName , headerValue )
495
- }
496
-
497
- sdkHeaders := common .GetSdkHeaders ("code_engine" , "V2" , "GetProjectStatusDetails" )
498
- for headerName , headerValue := range sdkHeaders {
499
- builder .AddHeader (headerName , headerValue )
500
- }
501
- builder .AddHeader ("Accept" , "application/json" )
502
-
503
- request , err := builder .Build ()
504
- if err != nil {
505
- return
506
- }
507
-
508
- var rawResponse map [string ]json.RawMessage
509
- response , err = codeEngine .Service .Request (request , & rawResponse )
510
- if err != nil {
511
- return
512
- }
513
- if rawResponse != nil {
514
- err = core .UnmarshalModel (rawResponse , "" , & result , UnmarshalProjectStatusDetails )
515
- if err != nil {
516
- return
517
- }
518
- response .Result = result
519
- }
520
-
521
- return
522
- }
523
-
524
464
// ListApps : List applications
525
465
// List all applications in a project.
526
466
func (codeEngine * CodeEngineV2 ) ListApps (listAppsOptions * ListAppsOptions ) (result * AppList , response * core.DetailedResponse , err error ) {
@@ -3201,13 +3141,13 @@ func (codeEngine *CodeEngineV2) GetBindingWithContext(ctx context.Context, getBi
3201
3141
3202
3142
pathParamsMap := map [string ]string {
3203
3143
"project_id" : * getBindingOptions .ProjectID ,
3204
- "name " : * getBindingOptions .Name ,
3144
+ "id " : * getBindingOptions .ID ,
3205
3145
}
3206
3146
3207
3147
builder := core .NewRequestBuilder (core .GET )
3208
3148
builder = builder .WithContext (ctx )
3209
3149
builder .EnableGzipCompression = codeEngine .GetEnableGzipCompression ()
3210
- _ , err = builder .ResolveRequestURL (codeEngine .Service .Options .URL , `/projects/{project_id}/bindings/{name }` , pathParamsMap )
3150
+ _ , err = builder .ResolveRequestURL (codeEngine .Service .Options .URL , `/projects/{project_id}/bindings/{id }` , pathParamsMap )
3211
3151
if err != nil {
3212
3152
return
3213
3153
}
@@ -3262,13 +3202,13 @@ func (codeEngine *CodeEngineV2) DeleteBindingWithContext(ctx context.Context, de
3262
3202
3263
3203
pathParamsMap := map [string ]string {
3264
3204
"project_id" : * deleteBindingOptions .ProjectID ,
3265
- "name " : * deleteBindingOptions .Name ,
3205
+ "id " : * deleteBindingOptions .ID ,
3266
3206
}
3267
3207
3268
3208
builder := core .NewRequestBuilder (core .DELETE )
3269
3209
builder = builder .WithContext (ctx )
3270
3210
builder .EnableGzipCompression = codeEngine .GetEnableGzipCompression ()
3271
- _ , err = builder .ResolveRequestURL (codeEngine .Service .Options .URL , `/projects/{project_id}/bindings/{name }` , pathParamsMap )
3211
+ _ , err = builder .ResolveRequestURL (codeEngine .Service .Options .URL , `/projects/{project_id}/bindings/{id }` , pathParamsMap )
3272
3212
if err != nil {
3273
3213
return
3274
3214
}
@@ -6552,18 +6492,18 @@ type DeleteBindingOptions struct {
6552
6492
// The ID of the project.
6553
6493
ProjectID * string `json:"project_id" validate:"required,ne="`
6554
6494
6555
- // The name of your binding.
6556
- Name * string `json:"name " validate:"required,ne="`
6495
+ // The id of your binding.
6496
+ ID * string `json:"id " validate:"required,ne="`
6557
6497
6558
6498
// Allows users to set headers on API requests
6559
6499
Headers map [string ]string
6560
6500
}
6561
6501
6562
6502
// NewDeleteBindingOptions : Instantiate DeleteBindingOptions
6563
- func (* CodeEngineV2 ) NewDeleteBindingOptions (projectID string , name string ) * DeleteBindingOptions {
6503
+ func (* CodeEngineV2 ) NewDeleteBindingOptions (projectID string , id string ) * DeleteBindingOptions {
6564
6504
return & DeleteBindingOptions {
6565
6505
ProjectID : core .StringPtr (projectID ),
6566
- Name : core .StringPtr (name ),
6506
+ ID : core .StringPtr (id ),
6567
6507
}
6568
6508
}
6569
6509
@@ -6573,9 +6513,9 @@ func (_options *DeleteBindingOptions) SetProjectID(projectID string) *DeleteBind
6573
6513
return _options
6574
6514
}
6575
6515
6576
- // SetName : Allow user to set Name
6577
- func (_options * DeleteBindingOptions ) SetName ( name string ) * DeleteBindingOptions {
6578
- _options .Name = core .StringPtr (name )
6516
+ // SetID : Allow user to set ID
6517
+ func (_options * DeleteBindingOptions ) SetID ( id string ) * DeleteBindingOptions {
6518
+ _options .ID = core .StringPtr (id )
6579
6519
return _options
6580
6520
}
6581
6521
@@ -7056,18 +6996,18 @@ type GetBindingOptions struct {
7056
6996
// The ID of the project.
7057
6997
ProjectID * string `json:"project_id" validate:"required,ne="`
7058
6998
7059
- // The name of your binding.
7060
- Name * string `json:"name " validate:"required,ne="`
6999
+ // The id of your binding.
7000
+ ID * string `json:"id " validate:"required,ne="`
7061
7001
7062
7002
// Allows users to set headers on API requests
7063
7003
Headers map [string ]string
7064
7004
}
7065
7005
7066
7006
// NewGetBindingOptions : Instantiate GetBindingOptions
7067
- func (* CodeEngineV2 ) NewGetBindingOptions (projectID string , name string ) * GetBindingOptions {
7007
+ func (* CodeEngineV2 ) NewGetBindingOptions (projectID string , id string ) * GetBindingOptions {
7068
7008
return & GetBindingOptions {
7069
7009
ProjectID : core .StringPtr (projectID ),
7070
- Name : core .StringPtr (name ),
7010
+ ID : core .StringPtr (id ),
7071
7011
}
7072
7012
}
7073
7013
@@ -7077,9 +7017,9 @@ func (_options *GetBindingOptions) SetProjectID(projectID string) *GetBindingOpt
7077
7017
return _options
7078
7018
}
7079
7019
7080
- // SetName : Allow user to set Name
7081
- func (_options * GetBindingOptions ) SetName ( name string ) * GetBindingOptions {
7082
- _options .Name = core .StringPtr (name )
7020
+ // SetID : Allow user to set ID
7021
+ func (_options * GetBindingOptions ) SetID ( id string ) * GetBindingOptions {
7022
+ _options .ID = core .StringPtr (id )
7083
7023
return _options
7084
7024
}
7085
7025
@@ -7335,34 +7275,6 @@ func (options *GetProjectOptions) SetHeaders(param map[string]string) *GetProjec
7335
7275
return options
7336
7276
}
7337
7277
7338
- // GetProjectStatusDetailsOptions : The GetProjectStatusDetails options.
7339
- type GetProjectStatusDetailsOptions struct {
7340
- // The ID of the project.
7341
- ProjectID * string `json:"project_id" validate:"required,ne="`
7342
-
7343
- // Allows users to set headers on API requests
7344
- Headers map [string ]string
7345
- }
7346
-
7347
- // NewGetProjectStatusDetailsOptions : Instantiate GetProjectStatusDetailsOptions
7348
- func (* CodeEngineV2 ) NewGetProjectStatusDetailsOptions (projectID string ) * GetProjectStatusDetailsOptions {
7349
- return & GetProjectStatusDetailsOptions {
7350
- ProjectID : core .StringPtr (projectID ),
7351
- }
7352
- }
7353
-
7354
- // SetProjectID : Allow user to set ProjectID
7355
- func (_options * GetProjectStatusDetailsOptions ) SetProjectID (projectID string ) * GetProjectStatusDetailsOptions {
7356
- _options .ProjectID = core .StringPtr (projectID )
7357
- return _options
7358
- }
7359
-
7360
- // SetHeaders : Allow user to set Headers
7361
- func (options * GetProjectStatusDetailsOptions ) SetHeaders (param map [string ]string ) * GetProjectStatusDetailsOptions {
7362
- options .Headers = param
7363
- return options
7364
- }
7365
-
7366
7278
// GetSecretOptions : The GetSecret options.
7367
7279
type GetSecretOptions struct {
7368
7280
// The ID of the project.
@@ -8886,44 +8798,6 @@ func (resp *ProjectList) GetNextStart() (*string, error) {
8886
8798
return resp .Next .Start , nil
8887
8799
}
8888
8800
8889
- // ProjectStatusDetails : Describes the model of a project status details.
8890
- type ProjectStatusDetails struct {
8891
- // Status of the domain created for the project.
8892
- Domain * string `json:"domain" validate:"required"`
8893
-
8894
- // Defines whether a project is enabled for management and consumption.
8895
- Project * string `json:"project" validate:"required"`
8896
- }
8897
-
8898
- // Constants associated with the ProjectStatusDetails.Domain property.
8899
- // Status of the domain created for the project.
8900
- const (
8901
- ProjectStatusDetails_Domain_Ready = "ready"
8902
- ProjectStatusDetails_Domain_Unknown = "unknown"
8903
- )
8904
-
8905
- // Constants associated with the ProjectStatusDetails.Project property.
8906
- // Defines whether a project is enabled for management and consumption.
8907
- const (
8908
- ProjectStatusDetails_Project_Disabled = "disabled"
8909
- ProjectStatusDetails_Project_Enabled = "enabled"
8910
- )
8911
-
8912
- // UnmarshalProjectStatusDetails unmarshals an instance of ProjectStatusDetails from the specified map of raw messages.
8913
- func UnmarshalProjectStatusDetails (m map [string ]json.RawMessage , result interface {}) (err error ) {
8914
- obj := new (ProjectStatusDetails )
8915
- err = core .UnmarshalPrimitive (m , "domain" , & obj .Domain )
8916
- if err != nil {
8917
- return
8918
- }
8919
- err = core .UnmarshalPrimitive (m , "project" , & obj .Project )
8920
- if err != nil {
8921
- return
8922
- }
8923
- reflect .ValueOf (result ).Elem ().Set (reflect .ValueOf (obj ))
8924
- return
8925
- }
8926
-
8927
8801
// ReplaceConfigMapOptions : The ReplaceConfigMap options.
8928
8802
type ReplaceConfigMapOptions struct {
8929
8803
// The ID of the project.
0 commit comments