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
|
# 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 datetime import datetime
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 HostSystem
from pyVmomi.vim import KeyValue
from pyVmomi.vim import ManagedEntity
from pyVmomi.vim import StorageResourceManager
from pyVmomi.vim import Task
from pyVmomi.vim import VirtualMachine
from pyVmomi.vmodl import DynamicData
from pyVmomi.vim.host import DatastoreBrowser
from pyVmomi.vim.host import MountInfo
from pyVmomi.vim.storageDrs import StoragePlacementResult
class Datastore(ManagedEntity):
class Accessible(Enum):
# Reserved python keyword: commenting out.
# True: ClassVar['Accessible'] = 'True'
# Reserved python keyword: commenting out.
# False: ClassVar['Accessible'] = 'False'
pass
class SectorFormat(Enum):
native_512: ClassVar['SectorFormat'] = 'native_512'
emulated_512: ClassVar['SectorFormat'] = 'emulated_512'
native_4k: ClassVar['SectorFormat'] = 'native_4k'
class Summary(DynamicData):
class MaintenanceModeState(Enum):
normal: ClassVar['MaintenanceModeState'] = 'normal'
enteringMaintenance: ClassVar['MaintenanceModeState'] = 'enteringMaintenance'
inMaintenance: ClassVar['MaintenanceModeState'] = 'inMaintenance'
datastore: Optional[Datastore] = None
name: str
url: str
capacity: long
freeSpace: long
uncommitted: Optional[long] = None
accessible: bool
multipleHostAccess: Optional[bool] = None
type: str
maintenanceMode: Optional[str] = None
class Info(DynamicData):
name: str
url: str
freeSpace: long
maxFileSize: long
maxVirtualDiskCapacity: Optional[long] = None
maxMemoryFileSize: long
timestamp: Optional[datetime] = None
containerId: Optional[str] = None
aliasOf: Optional[str] = None
supportedVDiskFormats: list[str] = []
logicalSectorSize: Optional[int] = None
physicalSectorSize: Optional[int] = None
class Capability(DynamicData):
directoryHierarchySupported: bool
rawDiskMappingsSupported: bool
perFileThinProvisioningSupported: bool
storageIORMSupported: bool
nativeSnapshotSupported: bool
topLevelDirectoryCreateSupported: Optional[bool] = None
seSparseSupported: Optional[bool] = None
vmfsSparseSupported: Optional[bool] = None
vsanSparseSupported: Optional[bool] = None
upitSupported: Optional[bool] = None
vmdkExpandSupported: Optional[bool] = None
clusteredVmdkSupported: Optional[bool] = None
class HostMount(DynamicData):
key: HostSystem
mountInfo: MountInfo
class MountPathDatastorePair(DynamicData):
oldMountPath: str
datastore: Datastore
class VVolContainerFailoverPair(DynamicData):
srcContainer: Optional[str] = None
tgtContainer: str
vvolMapping: list[KeyValue] = []
@property
def info(self) -> Info: ...
@property
def summary(self) -> Summary: ...
@property
def host(self) -> list[HostMount]: ...
@property
def vm(self) -> list[VirtualMachine]: ...
@property
def browser(self) -> DatastoreBrowser: ...
@property
def capability(self) -> Capability: ...
@property
def iormConfiguration(self) -> Optional[StorageResourceManager.IORMConfigInfo]: ...
def Refresh(self) -> NoReturn: ...
def RefreshStorageInfo(self) -> NoReturn: ...
def UpdateVirtualMachineFiles(self, mountPathDatastoreMapping: list[MountPathDatastorePair]) -> Task: ...
def RenameDatastore(self, newName: str) -> NoReturn: ...
def DestroyDatastore(self) -> NoReturn: ...
def EnterMaintenanceMode(self) -> StoragePlacementResult: ...
def ExitMaintenanceMode(self) -> Task: ...
def IsClusteredVmdkEnabled(self) -> bool: ...
def UpdateVVolVirtualMachineFiles(self, failoverPair: list[VVolContainerFailoverPair]) -> Task: ...
|