-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type hints (new format) for vSphere 8.0U3 (8.0.3.0)
- Loading branch information
ddraganov
committed
Jun 26, 2024
1 parent
6da0a61
commit f544b14
Showing
3,186 changed files
with
58,521 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright (c) 2006-2024 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 NoReturn | ||
from typing import Optional | ||
|
||
from pyVmomi.eam import Agent | ||
from pyVmomi.eam import EamObject | ||
|
||
from pyVmomi.vim import ComputeResource | ||
from pyVmomi.vim import Datacenter | ||
from pyVmomi.vim import Datastore | ||
from pyVmomi.vim import Folder | ||
from pyVmomi.vim import Network | ||
from pyVmomi.vim import ResourcePool | ||
from pyVmomi.vim import VirtualMachine | ||
|
||
from pyVmomi.vmodl import DynamicData | ||
|
||
from pyVmomi.eam.issue import Issue | ||
|
||
from pyVmomi.vim.vApp import IpPool | ||
|
||
class Agency(EamObject): | ||
class VMResourcePool(DynamicData): | ||
resourcePoolId: ResourcePool | ||
computeResourceId: ComputeResource | ||
|
||
class VMFolder(DynamicData): | ||
folderId: Folder | ||
datacenterId: Datacenter | ||
|
||
class ConfigInfo(DynamicData): | ||
agentConfig: list[Agent.ConfigInfo] = [] | ||
scope: Optional[Scope] = None | ||
manuallyMarkAgentVmAvailableAfterProvisioning: Optional[bool] = None | ||
manuallyMarkAgentVmAvailableAfterPowerOn: Optional[bool] = None | ||
optimizedDeploymentEnabled: Optional[bool] = None | ||
agentName: Optional[str] = None | ||
agencyName: Optional[str] = None | ||
useUuidVmName: Optional[bool] = None | ||
manuallyProvisioned: Optional[bool] = None | ||
manuallyMonitored: Optional[bool] = None | ||
bypassVumEnabled: Optional[bool] = None | ||
agentVmNetwork: list[Network] = [] | ||
agentVmDatastore: list[Datastore] = [] | ||
preferHostConfiguration: Optional[bool] = None | ||
ipPool: Optional[IpPool] = None | ||
resourcePools: list[VMResourcePool] = [] | ||
folders: list[VMFolder] = [] | ||
|
||
class Scope(DynamicData): | ||
pass | ||
|
||
class ComputeResourceScope(Scope): | ||
computeResource: list[ComputeResource] = [] | ||
|
||
@property | ||
def solutionId(self) -> str: ... | ||
@property | ||
def owner(self) -> Optional[str]: ... | ||
@property | ||
def config(self) -> ConfigInfo: ... | ||
@property | ||
def runtime(self) -> EamObject.RuntimeInfo: ... | ||
@property | ||
def agent(self) -> list[Agent]: ... | ||
|
||
def QuerySolutionId(self) -> str: ... | ||
def QueryConfig(self) -> ConfigInfo: ... | ||
def Update(self, config: ConfigInfo) -> NoReturn: ... | ||
def QueryRuntime(self) -> EamObject.RuntimeInfo: ... | ||
def QueryAgent(self) -> list[Agent]: ... | ||
def RegisterAgentVm(self, agentVm: VirtualMachine) -> Agent: ... | ||
def UnregisterAgentVm(self, agentVm: VirtualMachine) -> NoReturn: ... | ||
def Enable(self) -> NoReturn: ... | ||
def Disable(self) -> NoReturn: ... | ||
def Uninstall(self) -> NoReturn: ... | ||
def DestroyAgency(self) -> NoReturn: ... | ||
def AddIssue(self, issue: Issue) -> Issue: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Copyright (c) 2006-2024 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.eam import Agency | ||
from pyVmomi.eam import EamObject | ||
|
||
from pyVmomi.vim import Folder | ||
from pyVmomi.vim import HostSystem | ||
from pyVmomi.vim import ResourcePool | ||
from pyVmomi.vim import VirtualMachine | ||
|
||
from pyVmomi.vmodl import DynamicData | ||
|
||
from pyVmomi.eam.vib import VibInfo | ||
|
||
class Agent(EamObject): | ||
class RuntimeInfo(EamObject.RuntimeInfo): | ||
vmPowerState: VirtualMachine.PowerState | ||
receivingHeartBeat: bool | ||
host: Optional[HostSystem] = None | ||
vm: Optional[VirtualMachine] = None | ||
vmIp: Optional[str] = None | ||
vmName: str | ||
esxAgentResourcePool: Optional[ResourcePool] = None | ||
esxAgentFolder: Optional[Folder] = None | ||
installedBulletin: list[str] = [] | ||
installedVibs: list[VibInfo] = [] | ||
agency: Optional[Agency] = None | ||
vmHook: Optional[VmHook] = None | ||
|
||
class VmHook(DynamicData): | ||
class VmState(Enum): | ||
provisioned: ClassVar['VmState'] = 'provisioned' | ||
poweredOn: ClassVar['VmState'] = 'poweredOn' | ||
prePowerOn: ClassVar['VmState'] = 'prePowerOn' | ||
|
||
vm: VirtualMachine | ||
vmState: str | ||
|
||
class StoragePolicy(DynamicData): | ||
pass | ||
|
||
class VsanStoragePolicy(StoragePolicy): | ||
profileId: str | ||
|
||
class SslTrust(DynamicData): | ||
pass | ||
|
||
class PinnedPemCertificate(SslTrust): | ||
sslCertificate: str | ||
|
||
class AnyCertificate(SslTrust): | ||
pass | ||
|
||
class ConfigInfo(DynamicData): | ||
class OvfDiskProvisioning(Enum): | ||
none: ClassVar['OvfDiskProvisioning'] = 'none' | ||
thin: ClassVar['OvfDiskProvisioning'] = 'thin' | ||
thick: ClassVar['OvfDiskProvisioning'] = 'thick' | ||
|
||
productLineId: Optional[str] = None | ||
hostVersion: Optional[str] = None | ||
ovfPackageUrl: Optional[str] = None | ||
ovfSslTrust: Optional[SslTrust] = None | ||
ovfEnvironment: Optional[OvfEnvironmentInfo] = None | ||
vibUrl: Optional[str] = None | ||
vibSslTrust: Optional[SslTrust] = None | ||
vibMatchingRules: list[VibMatchingRule] = [] | ||
vibName: Optional[str] = None | ||
dvFilterEnabled: Optional[bool] = None | ||
rebootHostAfterVibUninstall: Optional[bool] = None | ||
vmciService: list[str] = [] | ||
ovfDiskProvisioning: Optional[str] = None | ||
vmStoragePolicies: list[StoragePolicy] = [] | ||
vmResourceConfiguration: Optional[str] = None | ||
|
||
class OvfEnvironmentInfo(DynamicData): | ||
class OvfProperty(DynamicData): | ||
key: str | ||
value: str | ||
|
||
ovfProperty: list[OvfProperty] = [] | ||
|
||
class VibMatchingRule(DynamicData): | ||
vibNameRegex: str | ||
vibVersionRegex: str | ||
|
||
@property | ||
def runtime(self) -> RuntimeInfo: ... | ||
@property | ||
def config(self) -> ConfigInfo: ... | ||
|
||
def QueryRuntime(self) -> RuntimeInfo: ... | ||
def MarkAsAvailable(self) -> NoReturn: ... | ||
def QueryConfig(self) -> ConfigInfo: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (c) 2006-2024 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 ManagedObject | ||
|
||
from pyVmomi.vmodl import DynamicData | ||
|
||
from pyVmomi.eam.issue import Issue | ||
|
||
class EamObject(ManagedObject): | ||
class RuntimeInfo(DynamicData): | ||
class Status(Enum): | ||
green: ClassVar['Status'] = 'green' | ||
yellow: ClassVar['Status'] = 'yellow' | ||
red: ClassVar['Status'] = 'red' | ||
|
||
class GoalState(Enum): | ||
enabled: ClassVar['GoalState'] = 'enabled' | ||
disabled: ClassVar['GoalState'] = 'disabled' | ||
uninstalled: ClassVar['GoalState'] = 'uninstalled' | ||
|
||
status: str | ||
issue: list[Issue] = [] | ||
goalState: str | ||
entity: EamObject | ||
|
||
def Resolve(self, issueKey: list[int]) -> list[int]: ... | ||
def ResolveAll(self) -> NoReturn: ... | ||
def QueryIssue(self, issueKey: list[int]) -> list[Issue]: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright (c) 2006-2024 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.eam import Agency | ||
from pyVmomi.eam import EamObject | ||
|
||
from pyVmomi.eam.issue import Issue | ||
|
||
class EsxAgentManager(EamObject): | ||
class MaintenanceModePolicy(Enum): | ||
singleHost: ClassVar['MaintenanceModePolicy'] = 'singleHost' | ||
multipleHosts: ClassVar['MaintenanceModePolicy'] = 'multipleHosts' | ||
|
||
@property | ||
def agency(self) -> list[Agency]: ... | ||
@property | ||
def issue(self) -> list[Issue]: ... | ||
|
||
def QueryAgency(self) -> list[Agency]: ... | ||
def CreateAgency(self, agencyConfigInfo: Agency.ConfigInfo, initialGoalState: str) -> Agency: ... | ||
def ScanForUnknownAgentVm(self) -> NoReturn: ... | ||
def SetMaintenanceModePolicy(self, policy: str) -> NoReturn: ... | ||
def GetMaintenanceModePolicy(self) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.VmomiSupport import ManagedObject | ||
|
||
class Task(ManagedObject): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright (c) 2006-2024 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 . import fault as fault | ||
from . import issue as issue | ||
from . import vib as vib | ||
|
||
from .Agency import Agency as Agency | ||
from .Agent import Agent as Agent | ||
from .EamObject import EamObject as EamObject | ||
from .EsxAgentManager import EsxAgentManager as EsxAgentManager | ||
from .Task import Task as Task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright (c) 2006-2024 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 Optional | ||
|
||
from pyVmomi.eam.fault import EamAppFault | ||
|
||
class CertificateNotTrustedFault(EamAppFault): | ||
url: Optional[str] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2006-2024 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 Optional | ||
|
||
from pyVmomi.vim import ComputeResource | ||
|
||
from pyVmomi.eam.fault import EamAppFault | ||
|
||
class DisabledClusterFault(EamAppFault): | ||
disabledComputeResource: list[ComputeResource] = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.eam.fault import EamRuntimeFault | ||
|
||
class EamAppFault(EamRuntimeFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.vmodl import MethodFault | ||
|
||
class EamFault(MethodFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.eam.fault import EamRuntimeFault | ||
|
||
class EamIOFault(EamRuntimeFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.vmodl import RuntimeFault | ||
|
||
class EamRuntimeFault(RuntimeFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.eam.fault import EamRuntimeFault | ||
|
||
class EamServiceNotInitialized(EamRuntimeFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2006-2024 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 pyVmomi.eam.fault import EamRuntimeFault | ||
|
||
class EamSystemFault(EamRuntimeFault): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2006-2024 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 Optional | ||
|
||
from pyVmomi.vim import ComputeResource | ||
|
||
from pyVmomi.eam.fault import EamFault | ||
|
||
class InvalidAgencyScope(EamFault): | ||
unknownComputeResource: list[ComputeResource] = [] |
Oops, something went wrong.