Skip to content

Commit

Permalink
add UpdatePCGVsphere API (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
devang-gaur authored Aug 21, 2024
1 parent 7dd5858 commit 0ed2f9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/private_cloud_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ func (h *V1Client) CreatePCGVsphere(uid string, cloudConfig *models.V1OverlordVs
return *resp.Payload.UID, nil
}

// UpdatePCGVsphere updates a vSphere Private Cloud Gateway VsphereCloudConfig.
func (h *V1Client) UpdatePCGVsphere(uid string, cloudConfig *models.V1OverlordVsphereCloudConfig) error {
params := clientv1.NewV1OverlordsUIDVsphereCloudConfigUpdateParamsWithContext(h.ctx).
WithUID(uid).
WithBody(cloudConfig)
_, err := h.Client.V1OverlordsUIDVsphereCloudConfigUpdate(params)
return err
}

// CreatePCGCloudAccountVsphere creates a new vSphere PCG cloud account.
func (h *V1Client) CreatePCGCloudAccountVsphere(uid string, account *models.V1OverlordVsphereAccountCreate) (string, error) {
params := clientv1.NewV1OverlordsUIDVsphereAccountCreateParamsWithContext(h.ctx).
Expand Down

0 comments on commit 0ed2f9f

Please sign in to comment.