From 254f0d419375e172707e3f618d604d1104015002 Mon Sep 17 00:00:00 2001 From: Ahmad Ibrahim Date: Mon, 18 Nov 2024 17:10:20 -0800 Subject: [PATCH] feat: implement PutHybridConfig function --- client/hybrid.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/hybrid.go b/client/hybrid.go index 11db8b64..9ebf32ba 100644 --- a/client/hybrid.go +++ b/client/hybrid.go @@ -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 +}