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
|
# 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 Task
from pyVmomi.vmodl import DynamicData
from pyVmomi.vmodl import LocalizableMessage
class FailoverClusterManager(ManagedObject):
class VchaNodeRole(Enum):
active: ClassVar['VchaNodeRole'] = 'active'
passive: ClassVar['VchaNodeRole'] = 'passive'
witness: ClassVar['VchaNodeRole'] = 'witness'
class VchaClusterMode(Enum):
enabled: ClassVar['VchaClusterMode'] = 'enabled'
disabled: ClassVar['VchaClusterMode'] = 'disabled'
maintenance: ClassVar['VchaClusterMode'] = 'maintenance'
class VchaClusterState(Enum):
healthy: ClassVar['VchaClusterState'] = 'healthy'
degraded: ClassVar['VchaClusterState'] = 'degraded'
isolated: ClassVar['VchaClusterState'] = 'isolated'
class VchaNodeState(Enum):
up: ClassVar['VchaNodeState'] = 'up'
down: ClassVar['VchaNodeState'] = 'down'
class VchaNodeRuntimeInfo(DynamicData):
nodeState: str
nodeRole: str
nodeIp: str
class VchaClusterRuntimeInfo(DynamicData):
clusterState: str
nodeInfo: list[VchaNodeRuntimeInfo] = []
clusterMode: str
class VchaClusterHealth(DynamicData):
runtimeInfo: VchaClusterRuntimeInfo
healthMessages: list[LocalizableMessage] = []
additionalInformation: list[LocalizableMessage] = []
@property
def disabledClusterMethod(self) -> list[ManagedMethod]: ...
def SetClusterMode(self, mode: str) -> Task: ...
def GetClusterMode(self) -> str: ...
def GetClusterHealth(self) -> VchaClusterHealth: ...
def InitiateFailover(self, planned: bool) -> Task: ...
|