operations

package
v4.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Module clustermgmt.v4.operations of Nutanix Cluster Management APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnterHostMaintenanceApiResponse

type EnterHostMaintenanceApiResponse struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*

	 */
	DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"`

	Data *OneOfEnterHostMaintenanceApiResponseData `json:"data,omitempty"`

	Metadata *import3.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /clustermgmt/v4.1/operations/clusters/{clusterExtId}/hosts/{extId}/$actions/enter-host-maintenance Post operation

func NewEnterHostMaintenanceApiResponse

func NewEnterHostMaintenanceApiResponse() *EnterHostMaintenanceApiResponse

func (*EnterHostMaintenanceApiResponse) GetData

func (p *EnterHostMaintenanceApiResponse) GetData() interface{}

func (*EnterHostMaintenanceApiResponse) MarshalJSON added in v4.1.1

func (p *EnterHostMaintenanceApiResponse) MarshalJSON() ([]byte, error)

func (*EnterHostMaintenanceApiResponse) SetData

func (p *EnterHostMaintenanceApiResponse) SetData(v interface{}) error

func (*EnterHostMaintenanceApiResponse) UnmarshalJSON added in v4.1.1

func (p *EnterHostMaintenanceApiResponse) UnmarshalJSON(b []byte) error

type EnterHostMaintenanceSpec

type EnterHostMaintenanceSpec struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  A boolean value to indicate if the current workflow must initiate rollback workflow in case of failure.
	*/
	ShouldRollbackOnFailure *bool `json:"shouldRollbackOnFailure,omitempty"`
	/*
	  A boolean value to indicate if all non-migratable uvms must be shutdown.
	*/
	ShouldShutdownNonMigratableUvms *bool `json:"shouldShutdownNonMigratableUvms,omitempty"`
	/*
	  Timeout for the workflow in seconds.
	*/
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"`

	VcenterInfo *import4.VcenterInfo `json:"vcenterInfo,omitempty"`
}

Property of the host to be put into maintenance mode.

func NewEnterHostMaintenanceSpec

func NewEnterHostMaintenanceSpec() *EnterHostMaintenanceSpec

func (*EnterHostMaintenanceSpec) MarshalJSON added in v4.1.1

func (p *EnterHostMaintenanceSpec) MarshalJSON() ([]byte, error)

func (*EnterHostMaintenanceSpec) UnmarshalJSON added in v4.1.1

func (p *EnterHostMaintenanceSpec) UnmarshalJSON(b []byte) error

type ExitHostMaintenanceApiResponse

type ExitHostMaintenanceApiResponse struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*

	 */
	DataItemDiscriminator_ *string `json:"$dataItemDiscriminator,omitempty"`

	Data *OneOfExitHostMaintenanceApiResponseData `json:"data,omitempty"`

	Metadata *import3.ApiResponseMetadata `json:"metadata,omitempty"`
}

REST response for all response codes in API path /clustermgmt/v4.1/operations/clusters/{clusterExtId}/hosts/{extId}/$actions/exit-host-maintenance Post operation

func NewExitHostMaintenanceApiResponse

func NewExitHostMaintenanceApiResponse() *ExitHostMaintenanceApiResponse

func (*ExitHostMaintenanceApiResponse) GetData

func (p *ExitHostMaintenanceApiResponse) GetData() interface{}

func (*ExitHostMaintenanceApiResponse) MarshalJSON added in v4.1.1

func (p *ExitHostMaintenanceApiResponse) MarshalJSON() ([]byte, error)

func (*ExitHostMaintenanceApiResponse) SetData

func (p *ExitHostMaintenanceApiResponse) SetData(v interface{}) error

func (*ExitHostMaintenanceApiResponse) UnmarshalJSON added in v4.1.1

func (p *ExitHostMaintenanceApiResponse) UnmarshalJSON(b []byte) error

type FileDetail

type FileDetail struct {
	Path        *string `json:"-"`
	ObjectType_ *string `json:"-"`
}

func NewFileDetail

func NewFileDetail() *FileDetail

type HostMaintenanceCommonSpec

type HostMaintenanceCommonSpec struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  Timeout for the workflow in seconds.
	*/
	TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"`

	VcenterInfo *import4.VcenterInfo `json:"vcenterInfo,omitempty"`
}

Common properties for host maintenance mode entry/exit.

func NewHostMaintenanceCommonSpec

func NewHostMaintenanceCommonSpec() *HostMaintenanceCommonSpec

func (*HostMaintenanceCommonSpec) MarshalJSON added in v4.1.1

func (p *HostMaintenanceCommonSpec) MarshalJSON() ([]byte, error)

func (*HostMaintenanceCommonSpec) UnmarshalJSON added in v4.1.1

func (p *HostMaintenanceCommonSpec) UnmarshalJSON(b []byte) error

type OneOfEnterHostMaintenanceApiResponseData

type OneOfEnterHostMaintenanceApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfEnterHostMaintenanceApiResponseData

func NewOneOfEnterHostMaintenanceApiResponseData() *OneOfEnterHostMaintenanceApiResponseData

func (*OneOfEnterHostMaintenanceApiResponseData) GetValue

func (p *OneOfEnterHostMaintenanceApiResponseData) GetValue() interface{}

func (*OneOfEnterHostMaintenanceApiResponseData) MarshalJSON

func (p *OneOfEnterHostMaintenanceApiResponseData) MarshalJSON() ([]byte, error)

func (*OneOfEnterHostMaintenanceApiResponseData) SetValue

func (p *OneOfEnterHostMaintenanceApiResponseData) SetValue(v interface{}) error

func (*OneOfEnterHostMaintenanceApiResponseData) UnmarshalJSON

func (p *OneOfEnterHostMaintenanceApiResponseData) UnmarshalJSON(b []byte) error

type OneOfExitHostMaintenanceApiResponseData

type OneOfExitHostMaintenanceApiResponseData struct {
	Discriminator *string `json:"-"`
	ObjectType_   *string `json:"-"`
	// contains filtered or unexported fields
}

func NewOneOfExitHostMaintenanceApiResponseData

func NewOneOfExitHostMaintenanceApiResponseData() *OneOfExitHostMaintenanceApiResponseData

func (*OneOfExitHostMaintenanceApiResponseData) GetValue

func (p *OneOfExitHostMaintenanceApiResponseData) GetValue() interface{}

func (*OneOfExitHostMaintenanceApiResponseData) MarshalJSON

func (p *OneOfExitHostMaintenanceApiResponseData) MarshalJSON() ([]byte, error)

func (*OneOfExitHostMaintenanceApiResponseData) SetValue

func (p *OneOfExitHostMaintenanceApiResponseData) SetValue(v interface{}) error

func (*OneOfExitHostMaintenanceApiResponseData) UnmarshalJSON

func (p *OneOfExitHostMaintenanceApiResponseData) UnmarshalJSON(b []byte) error

type RebootType added in v4.1.1

type RebootType int

The type of the reboot operation to be performed. Possible values are: CONTROLLER_VM, HOST

const (
	REBOOTTYPE_UNKNOWN       RebootType = 0
	REBOOTTYPE_REDACTED      RebootType = 1
	REBOOTTYPE_CONTROLLER_VM RebootType = 2
	REBOOTTYPE_HOST          RebootType = 3
)

func (RebootType) GetName added in v4.1.1

func (e RebootType) GetName() string

Returns the name of the enum

func (*RebootType) MarshalJSON added in v4.1.1

func (e *RebootType) MarshalJSON() ([]byte, error)

func (RebootType) Ref added in v4.1.1

func (e RebootType) Ref() *RebootType

func (*RebootType) UnmarshalJSON added in v4.1.1

func (e *RebootType) UnmarshalJSON(b []byte) error

type RollingRebootParams added in v4.1.1

type RollingRebootParams struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/*
	  List of Node UUIDs which are to be rebooted. This includes either Controller VM UUIDs or Host UUIDs.
	*/
	NodeExtIdList []string `json:"nodeExtIdList,omitempty"`
	/*
	  The description of the reboot operation to be performed.
	*/
	RebootDescription *string `json:"rebootDescription,omitempty"`

	RebootType *RebootType `json:"rebootType,omitempty"`

	TargetRebootDomain *TargetRebootDomain `json:"targetRebootDomain,omitempty"`
}

The payload to perform a rolling reboot operation.

func NewRollingRebootParams added in v4.1.1

func NewRollingRebootParams() *RollingRebootParams

func (*RollingRebootParams) MarshalJSON added in v4.1.1

func (p *RollingRebootParams) MarshalJSON() ([]byte, error)

func (*RollingRebootParams) UnmarshalJSON added in v4.1.1

func (p *RollingRebootParams) UnmarshalJSON(b []byte) error

type TargetRebootDomain added in v4.1.1

type TargetRebootDomain struct {
	ObjectType_ *string `json:"$objectType,omitempty"`

	Reserved_ map[string]interface{} `json:"$reserved,omitempty"`

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`

	DomainType *import4.DomainType `json:"domainType,omitempty"`
	/*
	  The maximum number of concurrent reboots of the specified domain which can be tolerated at a time.
	*/
	MaxConcurrentDomainRebootsTolerated *int `json:"maxConcurrentDomainRebootsTolerated,omitempty"`
}

The Fault Domain in which reboot is to be performed. Possible values are NODE, RACK, BLOCK.

func NewTargetRebootDomain added in v4.1.1

func NewTargetRebootDomain() *TargetRebootDomain

func (*TargetRebootDomain) MarshalJSON added in v4.1.1

func (p *TargetRebootDomain) MarshalJSON() ([]byte, error)

func (*TargetRebootDomain) UnmarshalJSON added in v4.1.1

func (p *TargetRebootDomain) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL