mo

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 2,609

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPropertyChange added in v0.19.0

func ApplyPropertyChange(obj Reference, changes []types.PropertyChange)

ApplyPropertyChange converts the response of a call to WaitForUpdates and applies it to the given managed object.

func IsManagedObjectType added in v0.27.0

func IsManagedObjectType(kind string) bool

func LoadObjectContent added in v0.22.0

func LoadObjectContent(content []types.ObjectContent, dst interface{}) error

LoadObjectContent converts the response of a call to RetrieveProperties{Ex} to one or more managed objects.

func ObjectContentToType

func ObjectContentToType(o types.ObjectContent, ptr ...bool) (interface{}, error)

ObjectContentToType loads an ObjectContent value into the value it represents. If the ObjectContent value has a non-empty 'MissingSet' field, it returns the first fault it finds there as error. If the 'MissingSet' field is empty, it returns a pointer to a reflect.Value. It handles contain nested properties, such as 'guest.ipAddress' or 'config.hardware'.

func References added in v0.22.0

func References(s interface{}, follow ...bool) []types.ManagedObjectReference

References returns all non-nil moref field values in the given struct. Only Anonymous struct fields are followed by default. The optional follow param will follow any struct fields when true.

func RetrieveProperties

func RetrieveProperties(ctx context.Context, r soap.RoundTripper, pc, obj types.ManagedObjectReference, dst interface{}) error

RetrieveProperties retrieves the properties of the managed object specified as obj and decodes the response struct into the value pointed to by dst.

func RetrievePropertiesEx added in v0.37.0

func RetrievePropertiesEx(ctx context.Context, r soap.RoundTripper, req types.RetrievePropertiesEx) ([]types.ObjectContent, error)

RetrievePropertiesEx wraps RetrievePropertiesEx and ContinueRetrievePropertiesEx to collect properties in batches.

func RetrievePropertiesForRequest

func RetrievePropertiesForRequest(ctx context.Context, r soap.RoundTripper, req types.RetrieveProperties, dst interface{}) error

RetrievePropertiesForRequest calls the RetrieveProperties method with the specified request and decodes the response struct into the value pointed to by dst.

Types

type Alarm

type Alarm struct {
	ExtensibleManagedObject

	Info types.AlarmInfo `json:"info"`
}

type AlarmManager

type AlarmManager struct {
	Self types.ManagedObjectReference `json:"self"`

	DefaultExpression []types.BaseAlarmExpression `json:"defaultExpression"`
	Description       types.AlarmDescription      `json:"description"`
}

func (AlarmManager) Reference

type AuthorizationManager

type AuthorizationManager struct {
	Self types.ManagedObjectReference `json:"self"`

	PrivilegeList []types.AuthorizationPrivilege `json:"privilegeList"`
	RoleList      []types.AuthorizationRole      `json:"roleList"`
	Description   types.AuthorizationDescription `json:"description"`
}

func (AuthorizationManager) Reference

type CertificateManager added in v0.4.0

type CertificateManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (CertificateManager) Reference added in v0.4.0

type ClusterComputeResource

type ClusterComputeResource struct {
	ComputeResource

	Configuration     types.ClusterConfigInfo                    `json:"configuration"`
	Recommendation    []types.ClusterRecommendation              `json:"recommendation"`
	DrsRecommendation []types.ClusterDrsRecommendation           `json:"drsRecommendation"`
	HciConfig         *types.ClusterComputeResourceHCIConfigInfo `json:"hciConfig"`
	MigrationHistory  []types.ClusterDrsMigration                `json:"migrationHistory"`
	ActionHistory     []types.ClusterActionHistory               `json:"actionHistory"`
	DrsFault          []types.ClusterDrsFaults                   `json:"drsFault"`
}

type ClusterEVCManager added in v0.4.0

type ClusterEVCManager struct {
	ExtensibleManagedObject

	ManagedCluster types.ManagedObjectReference    `json:"managedCluster"`
	EvcState       types.ClusterEVCManagerEVCState `json:"evcState"`
}

type ClusterProfile

type ClusterProfile struct {
	Profile
}

type ClusterProfileManager

type ClusterProfileManager struct {
	ProfileManager
}

type ComputeResource

type ComputeResource struct {
	ManagedEntity

	ResourcePool       *types.ManagedObjectReference       `json:"resourcePool"`
	Host               []types.ManagedObjectReference      `json:"host"`
	Datastore          []types.ManagedObjectReference      `json:"datastore"`
	Network            []types.ManagedObjectReference      `json:"network"`
	Summary            types.BaseComputeResourceSummary    `json:"summary"`
	EnvironmentBrowser *types.ManagedObjectReference       `json:"environmentBrowser"`
	ConfigurationEx    types.BaseComputeResourceConfigInfo `json:"configurationEx"`
	LifecycleManaged   *bool                               `json:"lifecycleManaged"`
}

func (*ComputeResource) Entity added in v0.6.0

func (m *ComputeResource) Entity() *ManagedEntity

func (ComputeResource) GetManagedEntity

func (m ComputeResource) GetManagedEntity() ManagedEntity

type ContainerView

type ContainerView struct {
	ManagedObjectView

	Container types.ManagedObjectReference `json:"container"`
	Type      []string                     `json:"type"`
	Recursive bool                         `json:"recursive"`
}

type CryptoManager added in v0.15.0

type CryptoManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Enabled bool `json:"enabled"`
}

func (CryptoManager) Reference added in v0.15.0

type CryptoManagerHost added in v0.18.0

type CryptoManagerHost struct {
	CryptoManager
}

type CryptoManagerHostKMS added in v0.18.0

type CryptoManagerHostKMS struct {
	CryptoManagerHost
}

type CryptoManagerKmip added in v0.15.0

type CryptoManagerKmip struct {
	CryptoManager

	KmipServers []types.KmipClusterInfo `json:"kmipServers"`
}

type CustomFieldsManager

type CustomFieldsManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Field []types.CustomFieldDef `json:"field"`
}

func (CustomFieldsManager) Reference

type CustomizationSpecManager

type CustomizationSpecManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Info          []types.CustomizationSpecInfo `json:"info"`
	EncryptionKey types.ByteSlice               `json:"encryptionKey"`
}

func (CustomizationSpecManager) Reference

type Datacenter

type Datacenter struct {
	ManagedEntity

	VmFolder        types.ManagedObjectReference   `json:"vmFolder"`
	HostFolder      types.ManagedObjectReference   `json:"hostFolder"`
	DatastoreFolder types.ManagedObjectReference   `json:"datastoreFolder"`
	NetworkFolder   types.ManagedObjectReference   `json:"networkFolder"`
	Datastore       []types.ManagedObjectReference `json:"datastore"`
	Network         []types.ManagedObjectReference `json:"network"`
	Configuration   types.DatacenterConfigInfo     `json:"configuration"`
}

func (*Datacenter) Entity added in v0.6.0

func (m *Datacenter) Entity() *ManagedEntity

func (Datacenter) GetManagedEntity

func (m Datacenter) GetManagedEntity() ManagedEntity

type Datastore

type Datastore struct {
	ManagedEntity

	Info              types.BaseDatastoreInfo        `json:"info"`
	Summary           types.DatastoreSummary         `json:"summary"`
	Host              []types.DatastoreHostMount     `json:"host"`
	Vm                []types.ManagedObjectReference `json:"vm"`
	Browser           types.ManagedObjectReference   `json:"browser"`
	Capability        types.DatastoreCapability      `json:"capability"`
	IormConfiguration *types.StorageIORMInfo         `json:"iormConfiguration"`
}

func (*Datastore) Entity added in v0.6.0

func (m *Datastore) Entity() *ManagedEntity

func (Datastore) GetManagedEntity

func (m Datastore) GetManagedEntity() ManagedEntity

type DatastoreNamespaceManager

type DatastoreNamespaceManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (DatastoreNamespaceManager) Reference

type DiagnosticManager

type DiagnosticManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (DiagnosticManager) Reference

type DistributedVirtualPortgroup

type DistributedVirtualPortgroup struct {
	Network

	Key      string                      `json:"key"`
	Config   types.DVPortgroupConfigInfo `json:"config"`
	PortKeys []string                    `json:"portKeys"`
}

func (DistributedVirtualPortgroup) GetManagedEntity added in v0.8.0

func (m DistributedVirtualPortgroup) GetManagedEntity() ManagedEntity

type DistributedVirtualSwitch

type DistributedVirtualSwitch struct {
	ManagedEntity

	Uuid                string                         `json:"uuid"`
	Capability          types.DVSCapability            `json:"capability"`
	Summary             types.DVSSummary               `json:"summary"`
	Config              types.BaseDVSConfigInfo        `json:"config"`
	NetworkResourcePool []types.DVSNetworkResourcePool `json:"networkResourcePool"`
	Portgroup           []types.ManagedObjectReference `json:"portgroup"`
	Runtime             *types.DVSRuntimeInfo          `json:"runtime"`
}

func (*DistributedVirtualSwitch) Entity added in v0.6.0

func (DistributedVirtualSwitch) GetManagedEntity

func (m DistributedVirtualSwitch) GetManagedEntity() ManagedEntity

type DistributedVirtualSwitchManager

type DistributedVirtualSwitchManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (DistributedVirtualSwitchManager) Reference

type Entity added in v0.6.0

type Entity interface {
	Reference
	Entity() *ManagedEntity
}

Entity is the interface that is implemented by all managed objects that extend ManagedEntity.

type EnvironmentBrowser

type EnvironmentBrowser struct {
	Self types.ManagedObjectReference `json:"self"`

	DatastoreBrowser *types.ManagedObjectReference `json:"datastoreBrowser"`
}

func (EnvironmentBrowser) Reference

type EventHistoryCollector

type EventHistoryCollector struct {
	HistoryCollector

	LatestPage []types.BaseEvent `json:"latestPage"`
}

type EventManager

type EventManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Description  types.EventDescription `json:"description"`
	LatestEvent  types.BaseEvent        `json:"latestEvent"`
	MaxCollector int32                  `json:"maxCollector"`
}

func (EventManager) Reference

type ExtensibleManagedObject

type ExtensibleManagedObject struct {
	Self types.ManagedObjectReference `json:"self"`

	Value          []types.BaseCustomFieldValue `json:"value"`
	AvailableField []types.CustomFieldDef       `json:"availableField"`
}

func (ExtensibleManagedObject) Reference

type ExtensionManager

type ExtensionManager struct {
	Self types.ManagedObjectReference `json:"self"`

	ExtensionList []types.Extension `json:"extensionList"`
}

func (ExtensionManager) Reference

type FailoverClusterConfigurator added in v0.15.0

type FailoverClusterConfigurator struct {
	Self types.ManagedObjectReference `json:"self"`

	DisabledConfigureMethod []string `json:"disabledConfigureMethod"`
}

func (FailoverClusterConfigurator) Reference added in v0.15.0

type FailoverClusterManager added in v0.15.0

type FailoverClusterManager struct {
	Self types.ManagedObjectReference `json:"self"`

	DisabledClusterMethod []string `json:"disabledClusterMethod"`
}

func (FailoverClusterManager) Reference added in v0.15.0

type Field added in v0.38.0

type Field struct {
	Path string
	Key  any
	Item string
}

Field of a ManagedObject in string form.

func (*Field) FromString added in v0.38.0

func (f *Field) FromString(spec string) bool

func (*Field) String added in v0.38.0

func (f *Field) String() string

type FileManager

type FileManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (FileManager) Reference

type Folder

type Folder struct {
	ManagedEntity

	ChildType   []string                       `json:"childType"`
	ChildEntity []types.ManagedObjectReference `json:"childEntity"`
	Namespace   *string                        `json:"namespace"`
}

func (*Folder) Entity added in v0.6.0

func (m *Folder) Entity() *ManagedEntity

func (Folder) GetManagedEntity

func (m Folder) GetManagedEntity() ManagedEntity

type GuestAliasManager added in v0.4.0

type GuestAliasManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (GuestAliasManager) Reference added in v0.4.0

type GuestAuthManager

type GuestAuthManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (GuestAuthManager) Reference

type GuestFileManager

type GuestFileManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (GuestFileManager) Reference

type GuestOperationsManager

type GuestOperationsManager struct {
	Self types.ManagedObjectReference `json:"self"`

	AuthManager                 *types.ManagedObjectReference `json:"authManager"`
	FileManager                 *types.ManagedObjectReference `json:"fileManager"`
	ProcessManager              *types.ManagedObjectReference `json:"processManager"`
	GuestWindowsRegistryManager *types.ManagedObjectReference `json:"guestWindowsRegistryManager"`
	AliasManager                *types.ManagedObjectReference `json:"aliasManager"`
}

func (GuestOperationsManager) Reference

type GuestProcessManager

type GuestProcessManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (GuestProcessManager) Reference

type GuestWindowsRegistryManager added in v0.4.0

type GuestWindowsRegistryManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (GuestWindowsRegistryManager) Reference added in v0.4.0

type HealthUpdateManager added in v0.15.0

type HealthUpdateManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HealthUpdateManager) Reference added in v0.15.0

type HistoryCollector

type HistoryCollector struct {
	Self types.ManagedObjectReference `json:"self"`

	Filter types.AnyType `json:"filter"`
}

func (HistoryCollector) Reference

type HostAccessManager added in v0.4.0

type HostAccessManager struct {
	Self types.ManagedObjectReference `json:"self"`

	LockdownMode types.HostLockdownMode `json:"lockdownMode"`
}

func (HostAccessManager) Reference added in v0.4.0

type HostActiveDirectoryAuthentication

type HostActiveDirectoryAuthentication struct {
	HostDirectoryStore
}

type HostAssignableHardwareManager added in v0.23.0

type HostAssignableHardwareManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Binding []types.HostAssignableHardwareBinding `json:"binding"`
	Config  types.HostAssignableHardwareConfig    `json:"config"`
}

func (HostAssignableHardwareManager) Reference added in v0.23.0

type HostAuthenticationManager

type HostAuthenticationManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Info           types.HostAuthenticationManagerInfo `json:"info"`
	SupportedStore []types.ManagedObjectReference      `json:"supportedStore"`
}

func (HostAuthenticationManager) Reference

type HostAuthenticationStore

type HostAuthenticationStore struct {
	Self types.ManagedObjectReference `json:"self"`

	Info types.BaseHostAuthenticationStoreInfo `json:"info"`
}

func (HostAuthenticationStore) Reference

type HostAutoStartManager

type HostAutoStartManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Config types.HostAutoStartManagerConfig `json:"config"`
}

func (HostAutoStartManager) Reference

type HostBootDeviceSystem

type HostBootDeviceSystem struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostBootDeviceSystem) Reference

type HostCacheConfigurationManager

type HostCacheConfigurationManager struct {
	Self types.ManagedObjectReference `json:"self"`

	CacheConfigurationInfo []types.HostCacheConfigurationInfo `json:"cacheConfigurationInfo"`
}

func (HostCacheConfigurationManager) Reference

type HostCertificateManager added in v0.4.0

type HostCertificateManager struct {
	Self types.ManagedObjectReference `json:"self"`

	CertificateInfo types.HostCertificateManagerCertificateInfo `json:"certificateInfo"`
}

func (HostCertificateManager) Reference added in v0.4.0

type HostCpuSchedulerSystem

type HostCpuSchedulerSystem struct {
	ExtensibleManagedObject

	HyperthreadInfo *types.HostHyperThreadScheduleInfo `json:"hyperthreadInfo"`
}

type HostDatastoreBrowser

type HostDatastoreBrowser struct {
	Self types.ManagedObjectReference `json:"self"`

	Datastore     []types.ManagedObjectReference `json:"datastore"`
	SupportedType []types.BaseFileQuery          `json:"supportedType"`
}

func (HostDatastoreBrowser) Reference

type HostDatastoreSystem

type HostDatastoreSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	Datastore    []types.ManagedObjectReference        `json:"datastore"`
	Capabilities types.HostDatastoreSystemCapabilities `json:"capabilities"`
}

func (HostDatastoreSystem) Reference

type HostDateTimeSystem

type HostDateTimeSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	DateTimeInfo types.HostDateTimeInfo `json:"dateTimeInfo"`
}

func (HostDateTimeSystem) Reference

type HostDiagnosticSystem

type HostDiagnosticSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	ActivePartition *types.HostDiagnosticPartition `json:"activePartition"`
}

func (HostDiagnosticSystem) Reference

type HostDirectoryStore

type HostDirectoryStore struct {
	HostAuthenticationStore
}

type HostEsxAgentHostManager

type HostEsxAgentHostManager struct {
	Self types.ManagedObjectReference `json:"self"`

	ConfigInfo types.HostEsxAgentHostManagerConfigInfo `json:"configInfo"`
}

func (HostEsxAgentHostManager) Reference

type HostFirewallSystem

type HostFirewallSystem struct {
	ExtensibleManagedObject

	FirewallInfo *types.HostFirewallInfo `json:"firewallInfo"`
}

type HostFirmwareSystem

type HostFirmwareSystem struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostFirmwareSystem) Reference

type HostGraphicsManager

type HostGraphicsManager struct {
	ExtensibleManagedObject

	GraphicsInfo           []types.HostGraphicsInfo          `json:"graphicsInfo"`
	GraphicsConfig         *types.HostGraphicsConfig         `json:"graphicsConfig"`
	SharedPassthruGpuTypes []string                          `json:"sharedPassthruGpuTypes"`
	SharedGpuCapabilities  []types.HostSharedGpuCapabilities `json:"sharedGpuCapabilities"`
}

type HostHealthStatusSystem

type HostHealthStatusSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	Runtime types.HealthSystemRuntime `json:"runtime"`
}

func (HostHealthStatusSystem) Reference

type HostImageConfigManager

type HostImageConfigManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostImageConfigManager) Reference

type HostKernelModuleSystem

type HostKernelModuleSystem struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostKernelModuleSystem) Reference

type HostLocalAccountManager

type HostLocalAccountManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostLocalAccountManager) Reference

type HostLocalAuthentication

type HostLocalAuthentication struct {
	HostAuthenticationStore
}

type HostMemorySystem

type HostMemorySystem struct {
	ExtensibleManagedObject

	ConsoleReservationInfo        *types.ServiceConsoleReservationInfo       `json:"consoleReservationInfo"`
	VirtualMachineReservationInfo *types.VirtualMachineMemoryReservationInfo `json:"virtualMachineReservationInfo"`
}

type HostNetworkSystem

type HostNetworkSystem struct {
	ExtensibleManagedObject

	Capabilities         *types.HostNetCapabilities        `json:"capabilities"`
	NetworkInfo          *types.HostNetworkInfo            `json:"networkInfo"`
	OffloadCapabilities  *types.HostNetOffloadCapabilities `json:"offloadCapabilities"`
	NetworkConfig        *types.HostNetworkConfig          `json:"networkConfig"`
	DnsConfig            types.BaseHostDnsConfig           `json:"dnsConfig"`
	IpRouteConfig        types.BaseHostIpRouteConfig       `json:"ipRouteConfig"`
	ConsoleIpRouteConfig types.BaseHostIpRouteConfig       `json:"consoleIpRouteConfig"`
}

type HostNvdimmSystem added in v0.18.0

type HostNvdimmSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	NvdimmSystemInfo types.NvdimmSystemInfo `json:"nvdimmSystemInfo"`
}

func (HostNvdimmSystem) Reference added in v0.18.0

type HostPatchManager

type HostPatchManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostPatchManager) Reference

type HostPciPassthruSystem

type HostPciPassthruSystem struct {
	ExtensibleManagedObject

	PciPassthruInfo     []types.BaseHostPciPassthruInfo     `json:"pciPassthruInfo"`
	SriovDevicePoolInfo []types.BaseHostSriovDevicePoolInfo `json:"sriovDevicePoolInfo"`
}

type HostPowerSystem

type HostPowerSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	Capability types.PowerSystemCapability `json:"capability"`
	Info       types.PowerSystemInfo       `json:"info"`
}

func (HostPowerSystem) Reference

type HostProfile

type HostProfile struct {
	Profile

	ValidationState           *string                                 `json:"validationState"`
	ValidationStateUpdateTime *time.Time                              `json:"validationStateUpdateTime"`
	ValidationFailureInfo     *types.HostProfileValidationFailureInfo `json:"validationFailureInfo"`
	ReferenceHost             *types.ManagedObjectReference           `json:"referenceHost"`
}

type HostProfileManager

type HostProfileManager struct {
	ProfileManager
}

type HostServiceSystem

type HostServiceSystem struct {
	ExtensibleManagedObject

	ServiceInfo types.HostServiceInfo `json:"serviceInfo"`
}

type HostSnmpSystem

type HostSnmpSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	Configuration types.HostSnmpConfigSpec        `json:"configuration"`
	Limits        types.HostSnmpSystemAgentLimits `json:"limits"`
}

func (HostSnmpSystem) Reference

type HostSpecificationManager added in v0.15.0

type HostSpecificationManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostSpecificationManager) Reference added in v0.15.0

type HostStorageSystem

type HostStorageSystem struct {
	ExtensibleManagedObject

	StorageDeviceInfo    *types.HostStorageDeviceInfo   `json:"storageDeviceInfo"`
	FileSystemVolumeInfo types.HostFileSystemVolumeInfo `json:"fileSystemVolumeInfo"`
	SystemFile           []string                       `json:"systemFile"`
	MultipathStateInfo   *types.HostMultipathStateInfo  `json:"multipathStateInfo"`
}

type HostSystem

type HostSystem struct {
	ManagedEntity

	Runtime                    types.HostRuntimeInfo                      `json:"runtime"`
	Summary                    types.HostListSummary                      `json:"summary"`
	Hardware                   *types.HostHardwareInfo                    `json:"hardware"`
	Capability                 *types.HostCapability                      `json:"capability"`
	LicensableResource         types.HostLicensableResourceInfo           `json:"licensableResource"`
	RemediationState           *types.HostSystemRemediationState          `json:"remediationState"`
	PrecheckRemediationResult  *types.ApplyHostProfileConfigurationSpec   `json:"precheckRemediationResult"`
	RemediationResult          *types.ApplyHostProfileConfigurationResult `json:"remediationResult"`
	ComplianceCheckState       *types.HostSystemComplianceCheckState      `json:"complianceCheckState"`
	ComplianceCheckResult      *types.ComplianceResult                    `json:"complianceCheckResult"`
	ConfigManager              types.HostConfigManager                    `json:"configManager"`
	Config                     *types.HostConfigInfo                      `json:"config"`
	Vm                         []types.ManagedObjectReference             `json:"vm"`
	Datastore                  []types.ManagedObjectReference             `json:"datastore"`
	Network                    []types.ManagedObjectReference             `json:"network"`
	DatastoreBrowser           types.ManagedObjectReference               `json:"datastoreBrowser"`
	SystemResources            *types.HostSystemResourceInfo              `json:"systemResources"`
	AnswerFileValidationState  *types.AnswerFileStatusResult              `json:"answerFileValidationState"`
	AnswerFileValidationResult *types.AnswerFileStatusResult              `json:"answerFileValidationResult"`
}

func (*HostSystem) Entity added in v0.6.0

func (m *HostSystem) Entity() *ManagedEntity

func (HostSystem) GetManagedEntity

func (m HostSystem) GetManagedEntity() ManagedEntity

type HostVFlashManager

type HostVFlashManager struct {
	Self types.ManagedObjectReference `json:"self"`

	VFlashConfigInfo *types.HostVFlashManagerVFlashConfigInfo `json:"vFlashConfigInfo"`
}

func (HostVFlashManager) Reference

type HostVMotionSystem

type HostVMotionSystem struct {
	ExtensibleManagedObject

	NetConfig *types.HostVMotionNetConfig `json:"netConfig"`
	IpConfig  *types.HostIpConfig         `json:"ipConfig"`
}

type HostVStorageObjectManager added in v0.15.0

type HostVStorageObjectManager struct {
	VStorageObjectManagerBase
}

type HostVirtualNicManager

type HostVirtualNicManager struct {
	ExtensibleManagedObject

	Info types.HostVirtualNicManagerInfo `json:"info"`
}

type HostVsanInternalSystem

type HostVsanInternalSystem struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (HostVsanInternalSystem) Reference

type HostVsanSystem

type HostVsanSystem struct {
	Self types.ManagedObjectReference `json:"self"`

	Config types.VsanHostConfigInfo `json:"config"`
}

func (HostVsanSystem) Reference

type HttpNfcLease

type HttpNfcLease struct {
	Self types.ManagedObjectReference `json:"self"`

	InitializeProgress int32                          `json:"initializeProgress"`
	TransferProgress   int32                          `json:"transferProgress"`
	Mode               string                         `json:"mode"`
	Capabilities       types.HttpNfcLeaseCapabilities `json:"capabilities"`
	Info               *types.HttpNfcLeaseInfo        `json:"info"`
	State              types.HttpNfcLeaseState        `json:"state"`
	Error              *types.LocalizedMethodFault    `json:"error"`
}

func (HttpNfcLease) Reference

type InventoryView

type InventoryView struct {
	ManagedObjectView
}

type IoFilterManager added in v0.4.0

type IoFilterManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (IoFilterManager) Reference added in v0.4.0

type IpPoolManager

type IpPoolManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (IpPoolManager) Reference

type IsManagedEntity

type IsManagedEntity interface {
	GetManagedEntity() ManagedEntity
}

type IscsiManager

type IscsiManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (IscsiManager) Reference

type LicenseAssignmentManager

type LicenseAssignmentManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (LicenseAssignmentManager) Reference

type LicenseManager

type LicenseManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Source                   types.BaseLicenseSource            `json:"source"`
	SourceAvailable          bool                               `json:"sourceAvailable"`
	Diagnostics              *types.LicenseDiagnostics          `json:"diagnostics"`
	FeatureInfo              []types.LicenseFeatureInfo         `json:"featureInfo"`
	LicensedEdition          string                             `json:"licensedEdition"`
	Licenses                 []types.LicenseManagerLicenseInfo  `json:"licenses"`
	LicenseAssignmentManager *types.ManagedObjectReference      `json:"licenseAssignmentManager"`
	Evaluation               types.LicenseManagerEvaluationInfo `json:"evaluation"`
}

func (LicenseManager) Reference

type ListView

type ListView struct {
	ManagedObjectView
}

type LocalizationManager

type LocalizationManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Catalog []types.LocalizationManagerMessageCatalog `json:"catalog"`
}

func (LocalizationManager) Reference

type ManagedEntity

type ManagedEntity struct {
	ExtensibleManagedObject

	Parent              *types.ManagedObjectReference  `json:"parent"`
	CustomValue         []types.BaseCustomFieldValue   `json:"customValue"`
	OverallStatus       types.ManagedEntityStatus      `json:"overallStatus"`
	ConfigStatus        types.ManagedEntityStatus      `json:"configStatus"`
	ConfigIssue         []types.BaseEvent              `json:"configIssue"`
	EffectiveRole       []int32                        `json:"effectiveRole"`
	Permission          []types.Permission             `json:"permission"`
	Name                string                         `json:"name"`
	DisabledMethod      []string                       `json:"disabledMethod"`
	RecentTask          []types.ManagedObjectReference `json:"recentTask"`
	DeclaredAlarmState  []types.AlarmState             `json:"declaredAlarmState"`
	TriggeredAlarmState []types.AlarmState             `json:"triggeredAlarmState"`
	AlarmActionsEnabled *bool                          `json:"alarmActionsEnabled"`
	Tag                 []types.Tag                    `json:"tag"`
}

func Ancestors

Ancestors returns the entire ancestry tree of a specified managed object. The return value includes the root node and the specified object itself.

type ManagedObjectView

type ManagedObjectView struct {
	Self types.ManagedObjectReference `json:"self"`

	View []types.ManagedObjectReference `json:"view"`
}

func (ManagedObjectView) Reference

type MessageBusProxy added in v0.4.0

type MessageBusProxy struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (MessageBusProxy) Reference added in v0.4.0

type Network

type Network struct {
	ManagedEntity

	Summary types.BaseNetworkSummary       `json:"summary"`
	Host    []types.ManagedObjectReference `json:"host"`
	Vm      []types.ManagedObjectReference `json:"vm"`
	Name    string                         `json:"name"`
}

func (*Network) Entity added in v0.6.0

func (m *Network) Entity() *ManagedEntity

func (Network) GetManagedEntity

func (m Network) GetManagedEntity() ManagedEntity

type OpaqueNetwork

type OpaqueNetwork struct {
	Network

	Capability  *types.OpaqueNetworkCapability `json:"capability"`
	ExtraConfig []types.BaseOptionValue        `json:"extraConfig"`
}

type OptionManager

type OptionManager struct {
	Self types.ManagedObjectReference `json:"self"`

	SupportedOption []types.OptionDef       `json:"supportedOption"`
	Setting         []types.BaseOptionValue `json:"setting"`
}

func (OptionManager) Reference

type OverheadMemoryManager added in v0.4.0

type OverheadMemoryManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (OverheadMemoryManager) Reference added in v0.4.0

type OvfManager

type OvfManager struct {
	Self types.ManagedObjectReference `json:"self"`

	OvfImportOption []types.OvfOptionInfo `json:"ovfImportOption"`
	OvfExportOption []types.OvfOptionInfo `json:"ovfExportOption"`
}

func (OvfManager) Reference

func (m OvfManager) Reference() types.ManagedObjectReference

type PerformanceManager

type PerformanceManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Description        types.PerformanceDescription `json:"description"`
	HistoricalInterval []types.PerfInterval         `json:"historicalInterval"`
	PerfCounter        []types.PerfCounterInfo      `json:"perfCounter"`
}

func (PerformanceManager) Reference

type Profile

type Profile struct {
	Self types.ManagedObjectReference `json:"self"`

	Config           types.BaseProfileConfigInfo    `json:"config"`
	Description      *types.ProfileDescription      `json:"description"`
	Name             string                         `json:"name"`
	CreatedTime      time.Time                      `json:"createdTime"`
	ModifiedTime     time.Time                      `json:"modifiedTime"`
	Entity           []types.ManagedObjectReference `json:"entity"`
	ComplianceStatus string                         `json:"complianceStatus"`
}

func (Profile) Reference

func (m Profile) Reference() types.ManagedObjectReference

type ProfileComplianceManager

type ProfileComplianceManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (ProfileComplianceManager) Reference

type ProfileManager

type ProfileManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Profile []types.ManagedObjectReference `json:"profile"`
}

func (ProfileManager) Reference

type PropertyCollector

type PropertyCollector struct {
	Self types.ManagedObjectReference `json:"self"`

	Filter []types.ManagedObjectReference `json:"filter"`
}

func (PropertyCollector) Reference

type PropertyFilter

type PropertyFilter struct {
	Self types.ManagedObjectReference `json:"self"`

	Spec           types.PropertyFilterSpec `json:"spec"`
	PartialUpdates bool                     `json:"partialUpdates"`
}

func (PropertyFilter) Reference

type Reference

type Reference interface {
	Reference() types.ManagedObjectReference
}

Reference is the interface that is implemented by all the managed objects defined in this package. It specifies that these managed objects have a function that returns the managed object reference to themselves.

type ResourcePlanningManager

type ResourcePlanningManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (ResourcePlanningManager) Reference

type ResourcePool

type ResourcePool struct {
	ManagedEntity

	Summary            types.BaseResourcePoolSummary  `json:"summary"`
	Runtime            types.ResourcePoolRuntimeInfo  `json:"runtime"`
	Owner              types.ManagedObjectReference   `json:"owner"`
	ResourcePool       []types.ManagedObjectReference `json:"resourcePool"`
	Vm                 []types.ManagedObjectReference `json:"vm"`
	Config             types.ResourceConfigSpec       `json:"config"`
	Namespace          *string                        `json:"namespace"`
	ChildConfiguration []types.ResourceConfigSpec     `json:"childConfiguration"`
}

func (*ResourcePool) Entity added in v0.6.0

func (m *ResourcePool) Entity() *ManagedEntity

func (ResourcePool) GetManagedEntity

func (m ResourcePool) GetManagedEntity() ManagedEntity

type ScheduledTask

type ScheduledTask struct {
	ExtensibleManagedObject

	Info types.ScheduledTaskInfo `json:"info"`
}

type ScheduledTaskManager

type ScheduledTaskManager struct {
	Self types.ManagedObjectReference `json:"self"`

	ScheduledTask []types.ManagedObjectReference `json:"scheduledTask"`
	Description   types.ScheduledTaskDescription `json:"description"`
}

func (ScheduledTaskManager) Reference

type SearchIndex

type SearchIndex struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (SearchIndex) Reference

type ServiceInstance

type ServiceInstance struct {
	Self types.ManagedObjectReference `json:"self"`

	ServerClock time.Time            `json:"serverClock"`
	Capability  types.Capability     `json:"capability"`
	Content     types.ServiceContent `json:"content"`
}

func (ServiceInstance) Reference

type ServiceManager

type ServiceManager struct {
	Self types.ManagedObjectReference `json:"self"`

	Service []types.ServiceManagerServiceInfo `json:"service"`
}

func (ServiceManager) Reference

type SessionManager

type SessionManager struct {
	Self types.ManagedObjectReference `json:"self"`

	SessionList         []types.UserSession `json:"sessionList"`
	CurrentSession      *types.UserSession  `json:"currentSession"`
	Message             *string             `json:"message"`
	MessageLocaleList   []string            `json:"messageLocaleList"`
	SupportedLocaleList []string            `json:"supportedLocaleList"`
	DefaultLocale       string              `json:"defaultLocale"`
}

func (SessionManager) Reference

type SimpleCommand

type SimpleCommand struct {
	Self types.ManagedObjectReference `json:"self"`

	EncodingType types.SimpleCommandEncoding     `json:"encodingType"`
	Entity       types.ServiceManagerServiceInfo `json:"entity"`
}

func (SimpleCommand) Reference

type SiteInfoManager added in v0.23.0

type SiteInfoManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (SiteInfoManager) Reference added in v0.23.0

type StoragePod

type StoragePod struct {
	Folder

	Summary            *types.StoragePodSummary  `json:"summary"`
	PodStorageDrsEntry *types.PodStorageDrsEntry `json:"podStorageDrsEntry"`
}

type StorageQueryManager added in v0.23.0

type StorageQueryManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (StorageQueryManager) Reference added in v0.23.0

type StorageResourceManager

type StorageResourceManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (StorageResourceManager) Reference

type Task

type Task struct {
	ExtensibleManagedObject

	Info types.TaskInfo `json:"info"`
}

type TaskHistoryCollector

type TaskHistoryCollector struct {
	HistoryCollector

	LatestPage []types.TaskInfo `json:"latestPage"`
}

type TaskManager

type TaskManager struct {
	Self types.ManagedObjectReference `json:"self"`

	RecentTask   []types.ManagedObjectReference `json:"recentTask"`
	Description  types.TaskDescription          `json:"description"`
	MaxCollector int32                          `json:"maxCollector"`
}

func (TaskManager) Reference

type TenantTenantManager added in v0.23.0

type TenantTenantManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (TenantTenantManager) Reference added in v0.23.0

type UserDirectory

type UserDirectory struct {
	Self types.ManagedObjectReference `json:"self"`

	DomainList []string `json:"domainList"`
}

func (UserDirectory) Reference

type VStorageObjectManagerBase added in v0.15.0

type VStorageObjectManagerBase struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VStorageObjectManagerBase) Reference added in v0.15.0

type VcenterVStorageObjectManager added in v0.15.0

type VcenterVStorageObjectManager struct {
	VStorageObjectManagerBase
}

type View

type View struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (View) Reference

func (m View) Reference() types.ManagedObjectReference

type ViewManager

type ViewManager struct {
	Self types.ManagedObjectReference `json:"self"`

	ViewList []types.ManagedObjectReference `json:"viewList"`
}

func (ViewManager) Reference

type VirtualApp

type VirtualApp struct {
	ResourcePool

	ParentFolder *types.ManagedObjectReference  `json:"parentFolder"`
	Datastore    []types.ManagedObjectReference `json:"datastore"`
	Network      []types.ManagedObjectReference `json:"network"`
	VAppConfig   *types.VAppConfigInfo          `json:"vAppConfig"`
	ParentVApp   *types.ManagedObjectReference  `json:"parentVApp"`
	ChildLink    []types.VirtualAppLinkInfo     `json:"childLink"`
}

type VirtualDiskManager

type VirtualDiskManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VirtualDiskManager) Reference

type VirtualMachine

type VirtualMachine struct {
	ManagedEntity

	Capability           types.VirtualMachineCapability    `json:"capability"`
	Config               *types.VirtualMachineConfigInfo   `json:"config"`
	Layout               *types.VirtualMachineFileLayout   `json:"layout"`
	LayoutEx             *types.VirtualMachineFileLayoutEx `json:"layoutEx"`
	Storage              *types.VirtualMachineStorageInfo  `json:"storage"`
	EnvironmentBrowser   types.ManagedObjectReference      `json:"environmentBrowser"`
	ResourcePool         *types.ManagedObjectReference     `json:"resourcePool"`
	ParentVApp           *types.ManagedObjectReference     `json:"parentVApp"`
	ResourceConfig       *types.ResourceConfigSpec         `json:"resourceConfig"`
	Runtime              types.VirtualMachineRuntimeInfo   `json:"runtime"`
	Guest                *types.GuestInfo                  `json:"guest"`
	Summary              types.VirtualMachineSummary       `json:"summary"`
	Datastore            []types.ManagedObjectReference    `json:"datastore"`
	Network              []types.ManagedObjectReference    `json:"network"`
	Snapshot             *types.VirtualMachineSnapshotInfo `json:"snapshot"`
	RootSnapshot         []types.ManagedObjectReference    `json:"rootSnapshot"`
	GuestHeartbeatStatus types.ManagedEntityStatus         `json:"guestHeartbeatStatus"`
}

func (*VirtualMachine) Entity added in v0.6.0

func (m *VirtualMachine) Entity() *ManagedEntity

func (VirtualMachine) GetManagedEntity

func (m VirtualMachine) GetManagedEntity() ManagedEntity

type VirtualMachineCompatibilityChecker

type VirtualMachineCompatibilityChecker struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VirtualMachineCompatibilityChecker) Reference

type VirtualMachineGuestCustomizationManager added in v0.23.0

type VirtualMachineGuestCustomizationManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VirtualMachineGuestCustomizationManager) Reference added in v0.23.0

type VirtualMachineProvisioningChecker

type VirtualMachineProvisioningChecker struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VirtualMachineProvisioningChecker) Reference

type VirtualMachineSnapshot

type VirtualMachineSnapshot struct {
	ExtensibleManagedObject

	Config        types.VirtualMachineConfigInfo `json:"config"`
	ChildSnapshot []types.ManagedObjectReference `json:"childSnapshot"`
	Vm            types.ManagedObjectReference   `json:"vm"`
}

type VirtualizationManager

type VirtualizationManager struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VirtualizationManager) Reference

type VmwareDistributedVirtualSwitch

type VmwareDistributedVirtualSwitch struct {
	DistributedVirtualSwitch
}

type VsanUpgradeSystem added in v0.4.0

type VsanUpgradeSystem struct {
	Self types.ManagedObjectReference `json:"self"`
}

func (VsanUpgradeSystem) Reference added in v0.4.0

Jump to

Keyboard shortcuts

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