diff --git a/client/private_cloud_gateway.go b/client/private_cloud_gateway.go index 0657bfaf..6a84aa5d 100644 --- a/client/private_cloud_gateway.go +++ b/client/private_cloud_gateway.go @@ -98,6 +98,21 @@ func (h *V1Client) CreatePCGVsphere(uid string, cloudConfig *models.V1OverlordVs return *resp.Payload.UID, nil } +// CreatePCGVsphere creates a new vSphere Private Cloud Gateway. +func (h *V1Client) UpdatePCGVsphere(uid string, cloudConfig *models.V1OverlordVsphereCloudConfig) (bool, error) { + params := clientv1.NewV1OverlordsUIDVsphereCloudConfigUpdateParamsWithContext(h.ctx). + WithUID(uid). + WithBody(cloudConfig) + resp, err := h.Client.V1OverlordsUIDVsphereCloudConfigUpdate(params) + if err != nil { + return "", err + } + if resp != nil { + return true, nil + } + return false, nil +} + // CreatePCGCloudAccountVsphere creates a new vSphere PCG cloud account. func (h *V1Client) CreatePCGCloudAccountVsphere(uid string, account *models.V1OverlordVsphereAccountCreate) (string, error) { params := clientv1.NewV1OverlordsUIDVsphereAccountCreateParamsWithContext(h.ctx).