Skip to content

Commit

Permalink
feat: implement EnableClusterHybridSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-ibra committed Nov 19, 2024
1 parent 4c95fc4 commit 49d9e98
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions client/hybrid.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package client

import (
clientv1 "github.com/spectrocloud/palette-sdk-go/api/client/v1"
"github.com/spectrocloud/palette-sdk-go/api/models"
)

// EnableClusterHybridSettings enables hybrid mode on a cluster.
func (h *V1Client) EnableClusterHybridSettings(uid string) error {
params := clientv1.NewV1SpectroClustersUIDHybridSettingsParamsWithContext(h.ctx).
WithBody(&models.V1ClusterHybridSettingsEntity{
Enable: true,
}).WithUID(uid)

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

0 comments on commit 49d9e98

Please sign in to comment.