File: Datacenter.pyi

package info (click to toggle)
python-pyvmomi 9.0.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,372 kB
  • sloc: python: 18,622; xml: 77; makefile: 3
file content (66 lines) | stat: -rw-r--r-- 2,399 bytes parent folder | download
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
# 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 Optional

from pyVmomi.vim import AboutInfo
from pyVmomi.vim import Datastore
from pyVmomi.vim import Folder
from pyVmomi.vim import ManagedEntity
from pyVmomi.vim import Network
from pyVmomi.vim import Task
from pyVmomi.vim import VirtualMachine

from pyVmomi.vmodl import DynamicData
from pyVmomi.vmodl import MethodFault

from pyVmomi.vim.host import ConnectInfo
from pyVmomi.vim.host import ConnectSpec

from pyVmomi.vim.option import OptionValue

from pyVmomi.vim.vm import ConfigOptionDescriptor

class Datacenter(ManagedEntity):
   class BasicConnectInfo(DynamicData):
      hostname: Optional[str] = None
      error: Optional[MethodFault] = None
      serverIp: Optional[str] = None
      numVm: Optional[int] = None
      numPoweredOnVm: Optional[int] = None
      hostProductInfo: Optional[AboutInfo] = None
      hardwareVendor: Optional[str] = None
      hardwareModel: Optional[str] = None

   class ConfigInfo(DynamicData):
      defaultHardwareVersionKey: Optional[str] = None
      maximumHardwareVersionKey: Optional[str] = None

   class ConfigSpec(DynamicData):
      defaultHardwareVersionKey: Optional[str] = None
      maximumHardwareVersionKey: Optional[str] = None

   @property
   def vmFolder(self) -> Folder: ...
   @property
   def hostFolder(self) -> Folder: ...
   @property
   def datastoreFolder(self) -> Folder: ...
   @property
   def networkFolder(self) -> Folder: ...
   @property
   def datastore(self) -> list[Datastore]: ...
   @property
   def network(self) -> list[Network]: ...
   @property
   def configuration(self) -> ConfigInfo: ...

   def BatchQueryConnectInfo(self, hostSpecs: list[ConnectSpec]) -> list[BasicConnectInfo]: ...
   def QueryConnectionInfo(self, hostname: str, port: int, username: str, password: str, sslThumbprint: Optional[str], sslCertificate: Optional[str]) -> ConnectInfo: ...
   def QueryConnectionInfoViaSpec(self, spec: ConnectSpec) -> ConnectInfo: ...
   def PowerOnVm(self, vm: list[VirtualMachine], option: list[OptionValue]) -> Task: ...
   def QueryConfigOptionDescriptor(self) -> list[ConfigOptionDescriptor]: ...
   def Reconfigure(self, spec: ConfigSpec, modify: bool) -> Task: ...