Skip to content

Commit

Permalink
feat: implement PutHybridConfig function
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Dec 6, 2024
1 parent 733927f commit 254f0d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ func (h *V1Client) EnableClusterHybridSettings(uid string) error {
_, err := h.Client.V1SpectroClustersUIDHybridSettings(params)
return err
}

// PutHybridConfig updates the hybrid config with UID configUID for a cluster.
func (h *V1Client) PutHybridConfig(configUID string, hybridConfig *models.V1AwsCloudHybridConfigEntity) error {
params := clientv1.NewV1AwsCloudConfigsUIDHybridConfigParamsWithContext(h.ctx).
WithBody(hybridConfig).
WithConfigUID(configUID)

_, err := h.Client.V1AwsCloudConfigsUIDHybridConfig(params)
return err
}

0 comments on commit 254f0d4

Please sign in to comment.