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
|
# 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 Optional
from pyVmomi.VmomiSupport import Enum
from pyVmomi.VmomiSupport import ManagedMethod
from pyVmomi.VmomiSupport import ManagedObject
from pyVmomi.vim import Datastore
from pyVmomi.vim import Folder
from pyVmomi.vim import HostSystem
from pyVmomi.vim import Network
from pyVmomi.vim import ResourcePool
from pyVmomi.vim import ServiceLocator
from pyVmomi.vim import Task
from pyVmomi.vim import VirtualMachine
from pyVmomi.vmodl import DynamicData
from pyVmomi.vim.vm.customization import IPSettings
class FailoverClusterConfigurator(ManagedObject):
class ClusterNetworkConfigSpec(DynamicData):
networkPortGroup: Network
ipSettings: IPSettings
class SourceNodeSpec(DynamicData):
managementVc: ServiceLocator
activeVc: VirtualMachine
class NodeNetworkSpec(DynamicData):
ipSettings: IPSettings
class PassiveNodeNetworkSpec(NodeNetworkSpec):
failoverIpSettings: Optional[IPSettings] = None
class VchaClusterNetworkSpec(DynamicData):
witnessNetworkSpec: NodeNetworkSpec
passiveNetworkSpec: PassiveNodeNetworkSpec
class NodeDeploymentSpec(DynamicData):
esxHost: Optional[HostSystem] = None
datastore: Optional[Datastore] = None
publicNetworkPortGroup: Optional[Network] = None
clusterNetworkPortGroup: Optional[Network] = None
folder: Folder
resourcePool: Optional[ResourcePool] = None
managementVc: Optional[ServiceLocator] = None
nodeName: str
ipSettings: IPSettings
class PassiveNodeDeploymentSpec(NodeDeploymentSpec):
failoverIpSettings: Optional[IPSettings] = None
class VchaClusterConfigSpec(DynamicData):
passiveIp: str
witnessIp: str
class VchaClusterDeploymentSpec(DynamicData):
passiveDeploymentSpec: PassiveNodeDeploymentSpec
witnessDeploymentSpec: NodeDeploymentSpec
activeVcSpec: SourceNodeSpec
activeVcNetworkConfig: Optional[ClusterNetworkConfigSpec] = None
class FailoverNodeInfo(DynamicData):
clusterIpSettings: IPSettings
failoverIp: Optional[IPSettings] = None
biosUuid: Optional[str] = None
class WitnessNodeInfo(DynamicData):
ipSettings: IPSettings
biosUuid: Optional[str] = None
class VchaState(Enum):
configured: ClassVar['VchaState'] = 'configured'
notConfigured: ClassVar['VchaState'] = 'notConfigured'
invalid: ClassVar['VchaState'] = 'invalid'
prepared: ClassVar['VchaState'] = 'prepared'
class VchaClusterConfigInfo(DynamicData):
failoverNodeInfo1: Optional[FailoverNodeInfo] = None
failoverNodeInfo2: Optional[FailoverNodeInfo] = None
witnessNodeInfo: Optional[WitnessNodeInfo] = None
state: str
@property
def disabledConfigureMethod(self) -> list[ManagedMethod]: ...
def Prepare(self, networkSpec: VchaClusterNetworkSpec) -> Task: ...
def Deploy(self, deploymentSpec: VchaClusterDeploymentSpec) -> Task: ...
def Configure(self, configSpec: VchaClusterConfigSpec) -> Task: ...
def CreatePassiveNode(self, passiveDeploymentSpec: PassiveNodeDeploymentSpec, sourceVcSpec: SourceNodeSpec) -> Task: ...
def CreateWitnessNode(self, witnessDeploymentSpec: NodeDeploymentSpec, sourceVcSpec: SourceNodeSpec) -> Task: ...
def GetConfig(self) -> VchaClusterConfigInfo: ...
def Destroy(self) -> Task: ...
|