File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
vapi/esx/settings/clusters Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ type Draft struct {
4242// CreateSpec a specification for creating configuration drafts
4343// https://developer.broadcom.com/xapis/vsphere-automation-api/latest/data-structures/Esx%20Settings%20Clusters%20Configuration%20Drafts%20CreateSpec/
4444type CreateSpec struct {
45- Config string `json:"config"`
46- ReferenceHost string `json:"reference_host "`
45+ Config string `json:"config,omitempty "`
46+ ReferenceHost string `json:"image_reference_host,omitempty "`
4747}
4848
4949// ApplySpec a specification for committing a pending configuration draft
Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ type DraftImportResult struct {
3434 Draft string `json:"draft"`
3535}
3636
37+ // ConfigurationInfo contains details about the current configuration status of a cluster
38+ // https://developer.broadcom.com/xapis/vsphere-automation-api/latest/data-structures/Esx%20Settings%20Clusters%20Enablement%20Configuration%20Transition%20Info/
39+ type ConfigurationInfo struct {
40+ Status string `json:"status"`
41+ }
42+
3743// Manager extends rest.Client, adding cluster configuration enablement related methods.
3844type Manager struct {
3945 * rest.Client
@@ -119,10 +125,10 @@ func (c *Manager) Cancel(clusterId string) (string, error) {
119125// GetClusterConfigurationStatus returns the status of the current pending cluster configuration
120126// Returns the config status and an error
121127// https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/esx/settings/clusters/cluster/enablement/configuration/transition/get/
122- func (c * Manager ) GetClusterConfigurationStatus (clusterId string ) (string , error ) {
128+ func (c * Manager ) GetClusterConfigurationStatus (clusterId string ) (ConfigurationInfo , error ) {
123129 path := c .Resource (fmt .Sprintf (TransitionPath , clusterId ))
124130 req := path .Request (http .MethodGet )
125- var res string
131+ var res ConfigurationInfo
126132 return res , c .Do (context .Background (), req , & res )
127133}
128134
You can’t perform that action at this time.
0 commit comments