Skip to content

Commit

Permalink
Update swagger client and models to service-broker v1.129.1 (IBM-Clou…
Browse files Browse the repository at this point in the history
…d#253)

* Generated Swagger client from service-broker commit bcd3af8fd7d528adcd4986768c116ebf6bb55b97

* Remove authentication from datacenter endpoints

---------

Co-authored-by: Axel Ismirlian <[email protected]>
  • Loading branch information
powervs-ibm and ismirlia authored Oct 13, 2023
1 parent 4e4c12c commit 9863b8d
Show file tree
Hide file tree
Showing 8 changed files with 644 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (f *IBMPIDatacentersClient) Get(datacenterRegion string) (*models.Datacente
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := datacenters.NewV1DatacentersGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithDatacenterRegion(datacenterRegion)
resp, err := f.session.Power.Datacenters.V1DatacentersGet(params, f.session.AuthInfo(f.cloudInstanceID))
resp, err := f.session.Power.Datacenters.V1DatacentersGet(params)
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf(errors.GetDatacenterOperationFailed, f.cloudInstanceID, err))
}
Expand All @@ -42,7 +42,7 @@ func (f *IBMPIDatacentersClient) GetAll() (*models.Datacenters, error) {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := datacenters.NewV1DatacentersGetallParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut)
resp, err := f.session.Power.Datacenters.V1DatacentersGetall(params, f.session.AuthInfo(f.cloudInstanceID))
resp, err := f.session.Power.Datacenters.V1DatacentersGetall(params)

if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to Get all Datacenters: %w", err))
Expand Down
10 changes: 4 additions & 6 deletions power/client/datacenters/datacenters_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

128 changes: 128 additions & 0 deletions power/client/workspaces/v1_workspaces_getall_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9863b8d

Please sign in to comment.