common

package
v4.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: UNKNOWN not legal advice Imports: 4 Imported by: 0

Documentation

Overview

Module of common models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectMetrics

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  Boolean argument to collect metrics data or not
	*/
	CollectMetrics *bool `json:"collectMetrics,omitempty"`
}

* Collect metrics boolean attribute

func NewCollectMetrics

func NewCollectMetrics() *CollectMetrics

type EntityDeploySpec

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

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

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

	EntityIdentifierSpec *EntityIdentifierSpec `json:"entityIdentifierSpec,omitempty"`
}

* A specification defining the entity being deployed and its version

func NewEntityDeploySpec

func NewEntityDeploySpec() *EntityDeploySpec

type EntityIdentifierSpec

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  LCM entity class
	*/
	EntityClass *string `json:"entityClass,omitempty"`
	/**
	  LCM entity model
	*/
	EntityModel *string `json:"entityModel,omitempty"`
	/**
	  A hardware family for a LCM entity
	*/
	HardwareFamily *string `json:"hardwareFamily,omitempty"`
}

* Unique identifier of an entity in LCM

func NewEntityIdentifierSpec

func NewEntityIdentifierSpec() *EntityIdentifierSpec

type EntityUpdateSpec

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  UUID of the entity to be used
	*/
	EntityUuid *string `json:"entityUuid,omitempty"`
	/**
	  Entity target version
	*/
	Version *string `json:"version,omitempty"`
}

* Specification for running an update operation

func NewEntityUpdateSpec

func NewEntityUpdateSpec() *EntityUpdateSpec

type EntityUpdateSpecs

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

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

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

	EntityUpdateSpecs []EntityUpdateSpec `json:"entityUpdateSpecs,omitempty"`
}

* List of entity update objects for getting recommendations

func NewEntityUpdateSpecs

func NewEntityUpdateSpecs() *EntityUpdateSpecs

type HypervisorType

type HypervisorType int

* Type of hypervisor present in the cluster

const (
	HYPERVISORTYPE_UNKNOWN   HypervisorType = 0
	HYPERVISORTYPE_REDACTED  HypervisorType = 1
	HYPERVISORTYPE_ESX       HypervisorType = 2
	HYPERVISORTYPE_AHV       HypervisorType = 3
	HYPERVISORTYPE_HYPERV    HypervisorType = 4
	HYPERVISORTYPE_XENSERVER HypervisorType = 5
	HYPERVISORTYPE_NONE      HypervisorType = 6
)

func (*HypervisorType) MarshalJSON

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

func (HypervisorType) Ref

func (e HypervisorType) Ref() *HypervisorType

func (*HypervisorType) UnmarshalJSON

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

type ImageDownloadSpec

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  LCM entity class
	*/
	EntityClass *string `json:"entityClass"`
	/**
	  LCM entity model
	*/
	EntityModel *string `json:"entityModel"`
	/**
	  UUID of the entity to be used
	*/
	EntityUuid *string `json:"entityUuid,omitempty"`
	/**
	  A hardware family for a LCM entity
	*/
	HardwareFamily *string `json:"hardwareFamily,omitempty"`
	/**
	  The location of the LCM entity, it can be at the cluster level or at the node level, in the format of "cluster:uuid" or "node:uuid"
	*/
	LocationId *string `json:"locationId,omitempty"`
	/**
	  The requested update version of an LCM entity.
	*/
	Version *string `json:"version"`
}

* LCM image download specification

func NewImageDownloadSpec

func NewImageDownloadSpec() *ImageDownloadSpec

func (*ImageDownloadSpec) MarshalJSON

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

type ImageDownloadSpecs

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  LCM image download specification
	*/
	ImageDownloadSpecs []ImageDownloadSpec `json:"imageDownloadSpecs,omitempty"`
}

* List of LCM images to download

func NewImageDownloadSpecs

func NewImageDownloadSpecs() *ImageDownloadSpecs

type LcmAvailableVersionStatus

type LcmAvailableVersionStatus int

* Available version types

const (
	LCMAVAILABLEVERSIONSTATUS_UNKNOWN     LcmAvailableVersionStatus = 0
	LCMAVAILABLEVERSIONSTATUS_REDACTED    LcmAvailableVersionStatus = 1
	LCMAVAILABLEVERSIONSTATUS_RECOMMENDED LcmAvailableVersionStatus = 2
	LCMAVAILABLEVERSIONSTATUS_CRITICAL    LcmAvailableVersionStatus = 3
	LCMAVAILABLEVERSIONSTATUS_LATEST      LcmAvailableVersionStatus = 4
	LCMAVAILABLEVERSIONSTATUS_DEPRECATED  LcmAvailableVersionStatus = 5
	LCMAVAILABLEVERSIONSTATUS_EMERGENCY   LcmAvailableVersionStatus = 6
	LCMAVAILABLEVERSIONSTATUS_AVAILABLE   LcmAvailableVersionStatus = 7
	LCMAVAILABLEVERSIONSTATUS_LTS         LcmAvailableVersionStatus = 8
	LCMAVAILABLEVERSIONSTATUS_STS         LcmAvailableVersionStatus = 9
)

func (*LcmAvailableVersionStatus) MarshalJSON

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

func (LcmAvailableVersionStatus) Ref

func (*LcmAvailableVersionStatus) UnmarshalJSON

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

type LcmEntityType

type LcmEntityType int

* Type of an LCM entity

const (
	LCMENTITYTYPE_UNKNOWN  LcmEntityType = 0
	LCMENTITYTYPE_REDACTED LcmEntityType = 1
	LCMENTITYTYPE_SOFTWARE LcmEntityType = 2
	LCMENTITYTYPE_FIRMWARE LcmEntityType = 3
)

func (*LcmEntityType) MarshalJSON

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

func (LcmEntityType) Ref

func (e LcmEntityType) Ref() *LcmEntityType

func (*LcmEntityType) UnmarshalJSON

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

type ManagementServer

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

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

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

	HypervisorType *HypervisorType `json:"hypervisorType,omitempty"`
	/**
	  IP address of the management server
	*/
	Ip *string `json:"ip,omitempty"`
	/**
	  Password to login to the management server
	*/
	Password *string `json:"password,omitempty"`
	/**
	  User name to login to the management server
	*/
	Username *string `json:"username,omitempty"`
}

* Cluster management server configuration used while updating clusters with ESX or HyperV

func NewManagementServer

func NewManagementServer() *ManagementServer

type PrecheckSpec

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

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

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

	EntityUpdateSpecs []EntityUpdateSpec `json:"entityUpdateSpecs,omitempty"`

	ManagementServer *ManagementServer `json:"managementServer,omitempty"`
	/**
	  List of prechecks to skip. The allowed value is 'power_off_vm' that skips the pinned VM prechecks
	*/
	SkippedPrecheckFlags []SystemAutoMgmtFlag `json:"skippedPrecheckFlags,omitempty"`
}

* Specification for running a Precheck operation

func NewPrecheckSpec

func NewPrecheckSpec() *PrecheckSpec

type SystemAutoMgmtFlag

type SystemAutoMgmtFlag int

* System auto-management flag

const (
	SYSTEMAUTOMGMTFLAG_UNKNOWN      SystemAutoMgmtFlag = 0
	SYSTEMAUTOMGMTFLAG_REDACTED     SystemAutoMgmtFlag = 1
	SYSTEMAUTOMGMTFLAG_POWEROFFUVMS SystemAutoMgmtFlag = 2
)

func (*SystemAutoMgmtFlag) MarshalJSON

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

func (SystemAutoMgmtFlag) Ref

func (*SystemAutoMgmtFlag) UnmarshalJSON

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

type UpdateSpec

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

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

	UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"`
	/**
	  List of automated system operations to perform, to avoid precheck failure and let the system restore state after an update is complete. The allowed flag is: - 'power_off_vm': This allows the system to automatically power off user VMs which cannot be migrated to other hosts and power them on when the update is done. This option can avoid pinned VM precheck failure on the host which needs to enter maintenance mode during the update and allow the update to go through.
	*/
	AutoHandleFlags []SystemAutoMgmtFlag `json:"autoHandleFlags,omitempty"`

	EntityUpdateSpecs []EntityUpdateSpec `json:"entityUpdateSpecs,omitempty"`

	ManagementServer *ManagementServer `json:"managementServer,omitempty"`
	/**
	  List of prechecks to skip. The allowed value is 'power_off_vm' that skips the pinned VM prechecks
	*/
	SkippedPrecheckFlags []SystemAutoMgmtFlag `json:"skippedPrecheckFlags,omitempty"`
	/**
	  Number of seconds LCM waits for the VMs to come up after exiting host maintenance mode
	*/
	WaitInSecForAppUp *int `json:"waitInSecForAppUp,omitempty"`
}

* Specification for running an update operation

func NewUpdateSpec

func NewUpdateSpec() *UpdateSpec

type VersionIdentifierSpec

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

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

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

	EntityIdentifierSpec *EntityIdentifierSpec `json:"entityIdentifierSpec,omitempty"`
	/**
	  Entity target version
	*/
	Version *string `json:"version,omitempty"`
}

* Identifies a version of an entity type in LCM

func NewVersionIdentifierSpec

func NewVersionIdentifierSpec() *VersionIdentifierSpec

Jump to

Keyboard shortcuts

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