File: NvdimmSystem.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 (172 lines) | stat: -rw-r--r-- 5,796 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# 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 ManagedObject
from pyVmomi.VmomiSupport import long

from pyVmomi.vim import Task

from pyVmomi.vmodl import DynamicData

class NvdimmSystem(ManagedObject):
   class RangeType(Enum):
      volatileRange: ClassVar['RangeType'] = 'volatileRange'
      persistentRange: ClassVar['RangeType'] = 'persistentRange'
      controlRange: ClassVar['RangeType'] = 'controlRange'
      blockRange: ClassVar['RangeType'] = 'blockRange'
      volatileVirtualDiskRange: ClassVar['RangeType'] = 'volatileVirtualDiskRange'
      volatileVirtualCDRange: ClassVar['RangeType'] = 'volatileVirtualCDRange'
      persistentVirtualDiskRange: ClassVar['RangeType'] = 'persistentVirtualDiskRange'
      persistentVirtualCDRange: ClassVar['RangeType'] = 'persistentVirtualCDRange'

   class NamespaceType(Enum):
      blockNamespace: ClassVar['NamespaceType'] = 'blockNamespace'
      persistentNamespace: ClassVar['NamespaceType'] = 'persistentNamespace'

   class HealthInfo(DynamicData):
      class StateFlag(Enum):
         normal: ClassVar['StateFlag'] = 'normal'
         error: ClassVar['StateFlag'] = 'error'

      healthStatus: str
      healthInformation: str
      stateFlagInfo: list[str] = []
      dimmTemperature: int
      dimmTemperatureThreshold: int
      spareBlocksPercentage: int
      spareBlockThreshold: int
      dimmLifespanPercentage: int
      esTemperature: Optional[int] = None
      esTemperatureThreshold: Optional[int] = None
      esLifespanPercentage: Optional[int] = None

   class RegionInfo(DynamicData):
      regionId: int
      setId: int
      rangeType: str
      startAddr: long
      size: long
      offset: long

   class Summary(DynamicData):
      numDimms: int
      healthStatus: str
      totalCapacity: long
      persistentCapacity: long
      blockCapacity: long
      availableCapacity: long
      numInterleavesets: int
      numNamespaces: int

   class DimmInfo(DynamicData):
      dimmHandle: int
      healthInfo: HealthInfo
      totalCapacity: long
      persistentCapacity: long
      availablePersistentCapacity: long
      volatileCapacity: long
      availableVolatileCapacity: long
      blockCapacity: long
      regionInfo: list[RegionInfo] = []
      representationString: str

   class InterleaveSetInfo(DynamicData):
      class InterleaveSetState(Enum):
         invalid: ClassVar['InterleaveSetState'] = 'invalid'
         active: ClassVar['InterleaveSetState'] = 'active'

      setId: int
      rangeType: str
      baseAddress: long
      size: long
      availableSize: long
      deviceList: list[int] = []
      state: str

   class Guid(DynamicData):
      uuid: str

   class NamespaceInfo(DynamicData):
      class NamespaceHealthStatus(Enum):
         normal: ClassVar['NamespaceHealthStatus'] = 'normal'
         missing: ClassVar['NamespaceHealthStatus'] = 'missing'
         labelMissing: ClassVar['NamespaceHealthStatus'] = 'labelMissing'
         interleaveBroken: ClassVar['NamespaceHealthStatus'] = 'interleaveBroken'
         labelInconsistent: ClassVar['NamespaceHealthStatus'] = 'labelInconsistent'
         bttCorrupt: ClassVar['NamespaceHealthStatus'] = 'bttCorrupt'
         badBlockSize: ClassVar['NamespaceHealthStatus'] = 'badBlockSize'

      class NamespaceState(Enum):
         invalid: ClassVar['NamespaceState'] = 'invalid'
         notInUse: ClassVar['NamespaceState'] = 'notInUse'
         inUse: ClassVar['NamespaceState'] = 'inUse'

      uuid: str
      friendlyName: str
      blockSize: long
      blockCount: long
      type: str
      namespaceHealthStatus: str
      locationID: int
      state: str

   class NamespaceDetails(DynamicData):
      class NamespaceHealthStatus(Enum):
         normal: ClassVar['NamespaceHealthStatus'] = 'normal'
         missing: ClassVar['NamespaceHealthStatus'] = 'missing'
         labelMissing: ClassVar['NamespaceHealthStatus'] = 'labelMissing'
         interleaveBroken: ClassVar['NamespaceHealthStatus'] = 'interleaveBroken'
         labelInconsistent: ClassVar['NamespaceHealthStatus'] = 'labelInconsistent'

      class NamespaceState(Enum):
         invalid: ClassVar['NamespaceState'] = 'invalid'
         notInUse: ClassVar['NamespaceState'] = 'notInUse'
         inUse: ClassVar['NamespaceState'] = 'inUse'

      uuid: str
      friendlyName: str
      size: long
      type: str
      namespaceHealthStatus: str
      interleavesetID: int
      state: str

   class NamespaceCreateSpec(DynamicData):
      friendlyName: Optional[str] = None
      blockSize: long
      blockCount: long
      type: str
      locationID: int

   class PMemNamespaceCreateSpec(DynamicData):
      friendlyName: Optional[str] = None
      size: long
      interleavesetID: int

   class NamespaceDeleteSpec(DynamicData):
      uuid: str

   class NvdimmSystemInfo(DynamicData):
      summary: Optional[Summary] = None
      dimms: list[int] = []
      dimmInfo: list[DimmInfo] = []
      interleaveSet: list[int] = []
      iSetInfo: list[InterleaveSetInfo] = []
      namespace: list[Guid] = []
      nsInfo: list[NamespaceInfo] = []
      nsDetails: list[NamespaceDetails] = []

   @property
   def nvdimmSystemInfo(self) -> NvdimmSystemInfo: ...

   def CreateNamespace(self, createSpec: NamespaceCreateSpec) -> Task: ...
   def CreatePMemNamespace(self, createSpec: PMemNamespaceCreateSpec) -> Task: ...
   def DeleteNamespace(self, deleteSpec: NamespaceDeleteSpec) -> Task: ...
   def DeleteBlockNamespaces(self) -> Task: ...