File: MultipathInfo.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 (61 lines) | stat: -rw-r--r-- 1,787 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
# 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 long

from pyVmomi.vmodl import DynamicData

from pyVmomi.vim.host import HostBusAdapter
from pyVmomi.vim.host import ScsiLun
from pyVmomi.vim.host import TargetTransport

class MultipathInfo(DynamicData):
   class PathState(Enum):
      standby: ClassVar['PathState'] = 'standby'
      active: ClassVar['PathState'] = 'active'
      disabled: ClassVar['PathState'] = 'disabled'
      dead: ClassVar['PathState'] = 'dead'
      unknown: ClassVar['PathState'] = 'unknown'

   class LogicalUnitPolicy(DynamicData):
      policy: str

   class HppLogicalUnitPolicy(LogicalUnitPolicy):
      bytes: Optional[long] = None
      iops: Optional[long] = None
      path: Optional[str] = None
      latencyEvalTime: Optional[long] = None
      samplingIosPerPath: Optional[long] = None

   class LogicalUnitStorageArrayTypePolicy(DynamicData):
      policy: str

   class FixedLogicalUnitPolicy(LogicalUnitPolicy):
      prefer: str

   class LogicalUnit(DynamicData):
      key: str
      id: str
      lun: ScsiLun
      path: list[Path] = []
      policy: LogicalUnitPolicy
      storageArrayTypePolicy: Optional[LogicalUnitStorageArrayTypePolicy] = None

   class Path(DynamicData):
      key: str
      name: str
      pathState: str
      state: Optional[str] = None
      isWorkingPath: Optional[bool] = None
      adapter: HostBusAdapter
      lun: LogicalUnit
      transport: Optional[TargetTransport] = None

   lun: list[LogicalUnit] = []