1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
|
# Copyright (c) 2006-2025 Broadcom. All Rights Reserved.
# Broadcom Confidential. The term "Broadcom" refers to Broadcom Inc.
# and/or its subsidiaries.
# ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from typing import ClassVar
from typing import NoReturn
from typing import Optional
from pyVmomi.VmomiSupport import Enum
from pyVmomi.VmomiSupport import long
from pyVmomi.vim import Datastore
from pyVmomi.vim import EnvironmentBrowser
from pyVmomi.vim import Folder
from pyVmomi.vim import HostSystem
from pyVmomi.vim import HttpNfcLease
from pyVmomi.vim import ManagedEntity
from pyVmomi.vim import Network
from pyVmomi.vim import ResourceConfigSpec
from pyVmomi.vim import ResourcePool
from pyVmomi.vim import Task
from pyVmomi.vmodl import DynamicData
from pyVmomi.vmodl import MethodFault
from pyVmomi.vim.host import FeatureMask
from pyVmomi.vim.vm import Capability
from pyVmomi.vim.vm import CertThumbprint
from pyVmomi.vim.vm import CloneSpec
from pyVmomi.vim.vm import ConfigInfo
from pyVmomi.vim.vm import ConfigSpec
from pyVmomi.vim.vm import FaultToleranceConfigSpec
from pyVmomi.vim.vm import FileLayout
from pyVmomi.vim.vm import FileLayoutEx
from pyVmomi.vim.vm import GuestInfo
from pyVmomi.vim.vm import GuestQuiesceSpec
from pyVmomi.vim.vm import InstantCloneSpec
from pyVmomi.vim.vm import RelocateSpec
from pyVmomi.vim.vm import RuntimeInfo
from pyVmomi.vim.vm import Snapshot
from pyVmomi.vim.vm import SnapshotInfo
from pyVmomi.vim.vm import SnapshotSelectionSpec
from pyVmomi.vim.vm import StorageInfo
from pyVmomi.vim.vm import Summary
from pyVmomi.vim.vm import UsbScanCodeSpec
from pyVmomi.vim.vslm import ID
from pyVmomi.vim.vm.customization import Specification
from pyVmomi.vim.vm.device import VirtualDisk
class VirtualMachine(ManagedEntity):
class StorageRequirement(DynamicData):
datastore: Datastore
freeSpaceRequiredInKb: long
class PowerState(Enum):
poweredOff: ClassVar['PowerState'] = 'poweredOff'
poweredOn: ClassVar['PowerState'] = 'poweredOn'
suspended: ClassVar['PowerState'] = 'suspended'
class AppHeartbeatStatusType(Enum):
appStatusGray: ClassVar['AppHeartbeatStatusType'] = 'appStatusGray'
appStatusGreen: ClassVar['AppHeartbeatStatusType'] = 'appStatusGreen'
appStatusRed: ClassVar['AppHeartbeatStatusType'] = 'appStatusRed'
class ConnectionState(Enum):
connected: ClassVar['ConnectionState'] = 'connected'
disconnected: ClassVar['ConnectionState'] = 'disconnected'
orphaned: ClassVar['ConnectionState'] = 'orphaned'
inaccessible: ClassVar['ConnectionState'] = 'inaccessible'
invalid: ClassVar['ConnectionState'] = 'invalid'
class CryptoState(Enum):
unlocked: ClassVar['CryptoState'] = 'unlocked'
locked: ClassVar['CryptoState'] = 'locked'
class MovePriority(Enum):
lowPriority: ClassVar['MovePriority'] = 'lowPriority'
highPriority: ClassVar['MovePriority'] = 'highPriority'
defaultPriority: ClassVar['MovePriority'] = 'defaultPriority'
class Ticket(DynamicData):
ticket: str
cfgFile: str
host: Optional[str] = None
port: Optional[int] = None
sslThumbprint: Optional[str] = None
certThumbprintList: list[CertThumbprint] = []
sslCertificate: Optional[str] = None
url: Optional[str] = None
class MksTicket(DynamicData):
ticket: str
cfgFile: str
host: Optional[str] = None
port: Optional[int] = None
sslThumbprint: Optional[str] = None
class FaultToleranceState(Enum):
notConfigured: ClassVar['FaultToleranceState'] = 'notConfigured'
disabled: ClassVar['FaultToleranceState'] = 'disabled'
enabled: ClassVar['FaultToleranceState'] = 'enabled'
needSecondary: ClassVar['FaultToleranceState'] = 'needSecondary'
starting: ClassVar['FaultToleranceState'] = 'starting'
running: ClassVar['FaultToleranceState'] = 'running'
class RecordReplayState(Enum):
recording: ClassVar['RecordReplayState'] = 'recording'
replaying: ClassVar['RecordReplayState'] = 'replaying'
inactive: ClassVar['RecordReplayState'] = 'inactive'
class NeedSecondaryReason(Enum):
initializing: ClassVar['NeedSecondaryReason'] = 'initializing'
divergence: ClassVar['NeedSecondaryReason'] = 'divergence'
lostConnection: ClassVar['NeedSecondaryReason'] = 'lostConnection'
partialHardwareFailure: ClassVar['NeedSecondaryReason'] = 'partialHardwareFailure'
userAction: ClassVar['NeedSecondaryReason'] = 'userAction'
checkpointError: ClassVar['NeedSecondaryReason'] = 'checkpointError'
other: ClassVar['NeedSecondaryReason'] = 'other'
class FaultToleranceType(Enum):
unset: ClassVar['FaultToleranceType'] = 'unset'
recordReplay: ClassVar['FaultToleranceType'] = 'recordReplay'
checkpointing: ClassVar['FaultToleranceType'] = 'checkpointing'
class Connection(DynamicData):
label: str
client: str
userName: str
class MksConnection(Connection):
pass
class TicketType(Enum):
mks: ClassVar['TicketType'] = 'mks'
device: ClassVar['TicketType'] = 'device'
guestControl: ClassVar['TicketType'] = 'guestControl'
dnd: ClassVar['TicketType'] = 'dnd'
webmks: ClassVar['TicketType'] = 'webmks'
guestIntegrity: ClassVar['TicketType'] = 'guestIntegrity'
webRemoteDevice: ClassVar['TicketType'] = 'webRemoteDevice'
class DisplayTopology(DynamicData):
x: int
y: int
width: int
height: int
class DiskChangeInfo(DynamicData):
class DiskChangeExtent(DynamicData):
start: long
length: long
startOffset: long
length: long
changedArea: list[DiskChangeExtent] = []
class WipeResult(DynamicData):
diskId: int
shrinkableDiskSpace: long
@property
def capability(self) -> Capability: ...
@property
def config(self) -> Optional[ConfigInfo]: ...
@property
def layout(self) -> Optional[FileLayout]: ...
@property
def layoutEx(self) -> Optional[FileLayoutEx]: ...
@property
def storage(self) -> Optional[StorageInfo]: ...
@property
def environmentBrowser(self) -> EnvironmentBrowser: ...
@property
def resourcePool(self) -> Optional[ResourcePool]: ...
@property
def parentVApp(self) -> Optional[ManagedEntity]: ...
@property
def resourceConfig(self) -> Optional[ResourceConfigSpec]: ...
@property
def runtime(self) -> RuntimeInfo: ...
@property
def guest(self) -> Optional[GuestInfo]: ...
@property
def summary(self) -> Summary: ...
@property
def datastore(self) -> list[Datastore]: ...
@property
def network(self) -> list[Network]: ...
@property
def snapshot(self) -> Optional[SnapshotInfo]: ...
@property
def rootSnapshot(self) -> list[Snapshot]: ...
@property
def guestHeartbeatStatus(self) -> ManagedEntity.Status: ...
def RefreshStorageInfo(self) -> NoReturn: ...
def CreateSnapshot(self, name: str, description: Optional[str], memory: bool, quiesce: bool) -> Task: ...
def CreateSnapshotEx(self, name: str, description: Optional[str], memory: bool, quiesceSpec: Optional[GuestQuiesceSpec]) -> Task: ...
def RevertToCurrentSnapshot(self, host: Optional[HostSystem], suppressPowerOn: Optional[bool]) -> Task: ...
def RemoveAllSnapshots(self, consolidate: Optional[bool], spec: Optional[SnapshotSelectionSpec]) -> Task: ...
def ConsolidateDisks(self) -> Task: ...
def EstimateStorageRequirementForConsolidate(self) -> Task: ...
def Reconfigure(self, spec: ConfigSpec) -> Task: ...
def UpgradeVirtualHardware(self, version: Optional[str]) -> Task: ...
def ExtractOvfEnvironment(self) -> str: ...
def PowerOn(self, host: Optional[HostSystem]) -> Task: ...
def PowerOff(self) -> Task: ...
def Suspend(self) -> Task: ...
def Reset(self) -> Task: ...
def ShutdownGuest(self) -> NoReturn: ...
def RebootGuest(self) -> NoReturn: ...
def StandbyGuest(self) -> NoReturn: ...
def Answer(self, questionId: str, answerChoice: str) -> NoReturn: ...
def Customize(self, spec: Specification) -> Task: ...
def CheckCustomizationSpec(self, spec: Specification) -> NoReturn: ...
def Migrate(self, pool: Optional[ResourcePool], host: Optional[HostSystem], priority: MovePriority, state: Optional[PowerState]) -> Task: ...
def Relocate(self, spec: RelocateSpec, priority: Optional[MovePriority]) -> Task: ...
def Clone(self, folder: Folder, name: str, spec: CloneSpec) -> Task: ...
def InstantClone(self, spec: InstantCloneSpec) -> Task: ...
def ExportVm(self) -> HttpNfcLease: ...
def MarkAsTemplate(self) -> NoReturn: ...
def MarkAsVirtualMachine(self, pool: ResourcePool, host: Optional[HostSystem]) -> NoReturn: ...
def Unregister(self) -> NoReturn: ...
def ResetGuestInformation(self) -> NoReturn: ...
def MountToolsInstaller(self) -> NoReturn: ...
def UnmountToolsInstaller(self) -> NoReturn: ...
def UpgradeTools(self, installerOptions: Optional[str]) -> Task: ...
def AcquireMksTicket(self) -> MksTicket: ...
def QueryConnections(self) -> list[Connection]: ...
def DropConnections(self, listOfConnections: list[Connection]) -> bool: ...
def AcquireTicket(self, ticketType: str) -> Ticket: ...
def SetScreenResolution(self, width: int, height: int) -> NoReturn: ...
def DefragmentAllDisks(self) -> NoReturn: ...
def CreateSecondary(self, host: Optional[HostSystem]) -> Task: ...
def CreateSecondaryEx(self, host: Optional[HostSystem], spec: Optional[FaultToleranceConfigSpec]) -> Task: ...
def TurnOffFaultTolerance(self) -> Task: ...
def MakePrimary(self, vm: VirtualMachine) -> Task: ...
def TerminateFaultTolerantVM(self, vm: Optional[VirtualMachine]) -> Task: ...
def DisableSecondary(self, vm: VirtualMachine) -> Task: ...
def EnableSecondary(self, vm: VirtualMachine, host: Optional[HostSystem]) -> Task: ...
def SetDisplayTopology(self, displays: list[DisplayTopology]) -> NoReturn: ...
def StartRecording(self, name: str, description: Optional[str]) -> Task: ...
def StopRecording(self) -> Task: ...
def StartReplaying(self, replaySnapshot: Snapshot) -> Task: ...
def StopReplaying(self) -> Task: ...
def PromoteDisks(self, unlink: bool, disks: list[VirtualDisk]) -> Task: ...
def CreateScreenshot(self) -> Task: ...
def PutUsbScanCodes(self, spec: UsbScanCodeSpec) -> int: ...
def QueryChangedDiskAreas(self, snapshot: Optional[Snapshot], deviceKey: int, startOffset: long, changeId: str) -> DiskChangeInfo: ...
def QueryUnownedFiles(self) -> list[str]: ...
def ReloadFromPath(self, configurationPath: str) -> Task: ...
def QueryFaultToleranceCompatibility(self) -> list[MethodFault]: ...
def QueryFaultToleranceCompatibilityEx(self, forLegacyFt: Optional[bool]) -> list[MethodFault]: ...
def Terminate(self) -> NoReturn: ...
def SendNMI(self) -> NoReturn: ...
def AttachDisk(self, diskId: ID, datastore: Datastore, controllerKey: Optional[int], unitNumber: Optional[int]) -> Task: ...
def DetachDisk(self, diskId: ID) -> Task: ...
def ApplyEvcMode(self, mask: list[FeatureMask], completeMasks: Optional[bool]) -> Task: ...
def CryptoUnlock(self) -> Task: ...
|