-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
302 lines (294 loc) · 13 KB
/
structs.go
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
package main
type server struct {
GroupId string `json:"GroupId,omitempty"`
RegionNodeId string `json:"RegionNodeId,omitempty"`
CacheSize struct {
Value float64 `json:"Value,omitempty"`
} `json:"CacheSize,omitempty"`
State float64 `json:"State,omitempty"`
SupportState float64 `json:"SupportState,omitempty"`
SnapshotMapStoreId string `json:"SnapshotMapStoreId,omitempty"`
SnapshotMapStorePoolId string `json:"SnapshotMapStorePoolId,omitempty"`
InstallPath string `json:"InstallPath,omitempty"`
ProductName string `json:"ProductName,omitempty"`
ProductType string `json:"ProductType,omitempty"`
ProductVersion string `json:"ProductVersion,omitempty"`
OsVersion string `json:"OsVersion,omitempty"`
ProcessorInfo struct {
CpuArchitecture float64 `json:"CpuArchitecture,omitempty"`
ProcessorName string `json:"ProcessorName,omitempty"`
NumberCores float64 `json:"NumberCores,omitempty"`
NumberPhysicalCores float64 `json:"NumberPhysicalCores,omitempty"`
} `json:"ProcessorInfo,omitempty"`
ProductBuild string `json:"ProductBuild,omitempty"`
BuildType string `json:"BuildType,omitempty"`
DiagnosticMode float64 `json:"DiagnosticMode,omitempty"`
LicenseRemaining float64 `json:"LicenseRemaining,omitempty"`
ReplicationBufferFolder string `json:"ReplicationBufferFolder,omitempty"`
TotalSystemMemory struct {
Value float64 `json:"Value,omitempty"`
} `json:"TotalSystemMemory,omitempty"`
AvailableSystemMemory struct {
Value float64 `json:"Value,omitempty"`
} `json:"AvailableSystemMemory,omitempty"`
LogStatus float64 `json:"LogStatus,omitempty"`
LicenseSettings struct {
MaxServers float64 `json:"MaxServers,omitempty"`
MaxPartnerGroups float64 `json:"MaxPartnerGroups,omitempty"`
MaxMappedHosts float64 `json:"MaxMappedHosts,omitempty"`
BidirectionalReplication float64 `json:"BidirectionalReplication,omitempty"`
FiberChannel float64 `json:"FiberChannel,omitempty"`
ThinProvisioning float64 `json:"ThinProvisioning,omitempty"`
Snapshot float64 `json:"Snapshot,omitempty"`
iSCSI float64 `json:"iSCSI,omitempty"`
StorageCapacity struct {
Value float64 `json:"Value,omitempty"`
} `json:"StorageCapacity,omitempty"`
LicensedBulkStorage struct {
Value float64 `json:"Value,omitempty"`
} `json:"LicensedBulkStorage,omitempty"`
BulkEnabled float64 `json:"BulkEnabled,omitempty"`
RetentionTime float64 `json:"RetentionTime,omitempty"`
AutoTiering float64 `json:"AutoTiering,omitempty"`
HeatMaps float64 `json:"HeatMaps,omitempty"`
SharedStorage float64 `json:"SharedStorage,omitempty"`
PerformanceAnalysis float64 `json:"PerformanceAnalysis,omitempty"`
ResourceAuthorization float64 `json:"ResourceAuthorization,omitempty"`
SequentialStorage float64 `json:"SequentialStorage,omitempty"`
MaxBypassThreads float64 `json:"MaxBypassThreads,omitempty"`
MaxPollerThreads float64 `json:"MaxPollerThreads,omitempty"`
Mirroring float64 `json:"Mirroring,omitempty"`
Witness float64 `json:"Witness,omitempty"`
DataAtRestEncryption float64 `json:"DataAtRestEncryption,omitempty"`
} `json:"LicenseSettings,omitempty"`
IsLicensed bool `json:"IsLicensed,omitempty"`
LicenseExceeded bool `json:"LicenseExceeded,omitempty"`
StorageUsed struct {
Value float64 `json:"Value,omitempty"`
} `json:"StorageUsed,omitempty"`
BulkStorageUsed struct {
Value float64 `json:"Value,omitempty"`
} `json:"BulkStorageUsed,omitempty"`
DataCoreStorageUsed struct {
Value float64 `json:"Value,omitempty"`
} `json:"DataCoreStorageUsed,omitempty"`
DataCoreBulkStorageUsed struct {
Value float64 `json:"Value,omitempty"`
} `json:"DataCoreBulkStorageUsed,omitempty"`
PowerState float64 `json:"PowerState,omitempty"`
CacheState float64 `json:"CacheState,omitempty"`
BackupStorageFolder string `json:"BackupStorageFolder,omitempty"`
IpAddresses []string `json:"IpAddresses,omitempty"`
LicenseNumber float64 `json:"LicenseNumber,omitempty"`
AluaGroupId float64 `json:"AluaGroupId,omitempty"`
IsVirtualMachine bool `json:"IsVirtualMachine,omitempty"`
IsAzureVirtualMachine bool `json:"IsAzureVirtualMachine,omitempty"`
IsPayGo bool `json:"IsPayGo,omitempty"`
HypervisorHostId string `json:"HypervisorHostId,omitempty"`
LogStorePoolId string `json:"LogStorePoolId,omitempty"`
ConfigurationInfo struct {
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
TimeStamp string `json:"TimeStamp,omitempty"`
} `json:"ConfigurationInfo,omitempty"`
Description string `json:"Description,omitempty"`
HostName string `json:"HostName,omitempty"`
MpioCapable bool `json:"MpioCapable,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
float64ernal bool `json:"float64ernal,omitempty"`
}
type pool struct {
ServerId string `json:"ServerId,omitempty"`
SharedPoolId string `json:"SharedPoolId,omitempty"`
Alias string `json:"Alias,omitempty"`
Description string `json:"Description,omitempty"`
PresenceStatus float64 `json:"PresenceStatus,omitempty"`
PoolStatus float64 `json:"PoolStatus,omitempty"`
Type float64 `json:"Type,omitempty"`
ChunkSize struct {
Value float64 `json:"Value,omitempty"`
} `json:"ChunkSize,omitempty"`
SectorSize struct {
Value float64 `json:"Value,omitempty"`
} `json:"SectorSize,omitempty"`
MaxTierNumber float64 `json:"MaxTierNumber,omitempty"`
TierReservedPct float64 `json:"TierReservedPct,omitempty"`
AutoTieringEnabled bool `json:"AutoTieringEnabled,omitempty"`
IsAuthorized bool `json:"IsAuthorized,omitempty"`
InSharedMode bool `json:"InSharedMode,omitempty"`
SMPAApproved bool `json:"SMPAApproved,omitempty"`
SupportsEncryption bool `json:"SupportsEncryption,omitempty"`
HasEncryption bool `json:"HasEncryption,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
PoolMode float64 `json:"PoolMode,omitempty"`
}
type virtualdisk struct {
VirtualDiskGroupId string `json:"VirtualDiskGroupId,omitempty"`
FirstHostId string `json:"FirstHostId,omitempty"`
SecondHostId string `json:"SecondHostId,omitempty"`
BackupHostId string `json:"BackupHostId,omitempty"`
StorageProfileId string `json:"StorageProfileId,omitempty"`
WitnessId string `json:"WitnessId,omitempty"`
SnapshotPoolId string `json:"SnapshotPoolId,omitempty"`
Alias string `json:"Alias,omitempty"`
Description string `json:"Description,omitempty"`
Size struct {
Value float64 `json:"Value,omitempty"`
} `json:"Size,omitempty"`
SectorSize struct {
Value float64 `json:"Value,omitempty"`
} `json:"SectorSize,omitempty"`
Type float64 `json:"Type,omitempty"`
DiskStatus float64 `json:"DiskStatus,omitempty"`
InquiryData struct {
Vendor string `json:"Vendor,omitempty"`
Product string `json:"Product,omitempty"`
Revision string `json:"Revision,omitempty"`
Serial string `json:"Serial,omitempty"`
} `json:"InquiryData,omitempty"`
ScsiDeviceId string `json:"ScsiDeviceId,omitempty"`
ScsiDeviceIdString string `json:"ScsiDeviceIdString,omitempty"`
RemovableMedia bool `json:"RemovableMedia,omitempty"`
WriteThrough bool `json:"WriteThrough,omitempty"`
NVMe bool `json:"NVMe,omitempty"`
Offline bool `json:"Offline,omitempty"`
Disabled bool `json:"Disabled,omitempty"`
ManualRecovery bool `json:"ManualRecovery,omitempty"`
DiskLayout struct {
Cylinders float64 `json:"Cylinders,omitempty"`
Heads float64 `json:"Heads,omitempty"`
SectorsPerTrack float64 `json:"SectorsPerTrack,omitempty"`
} `json:"DiskLayout,omitempty"`
PersistentReserveEnabled bool `json:"PersistentReserveEnabled,omitempty"`
RecoveryPriority float64 `json:"RecoveryPriority,omitempty"`
TPThresholdsEnabled bool `json:"TPThresholdsEnabled,omitempty"`
IsServed bool `json:"IsServed,omitempty"`
SubType float64 `json:"SubType,omitempty"`
MirrorTrunkMappingEnabled bool `json:"MirrorTrunkMappingEnabled,omitempty"`
WitnessOption string `json:"WitnessOption,omitempty"`
PreferredServer string `json:"PreferredServer,omitempty"`
ResiliencyEnabled bool `json:"ResiliencyEnabled,omitempty"`
EncryptionEnabled bool `json:"EncryptionEnabled,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
}
type physicaldisk struct {
RemoteLogicalDiskId string `json:"RemoteLogicalDiskId,omitempty"`
LocalLogicalDiskId string `json:"LocalLogicalDiskId,omitempty"`
PresenceStatus float64 `json:"PresenceStatus,omitempty"`
Alias string `json:"Alias,omitempty"`
Size struct {
Value float64 `json:"Value,omitempty"`
} `json:"Size,omitempty"`
SectorSize struct {
Value float64 `json:"Value,omitempty"`
} `json:"SectorSize,omitempty"`
FreeSpace struct {
Value float64 `json:"Value,omitempty"`
} `json:"FreeSpace,omitempty"`
InquiryData struct {
Vendor string `json:"Vendor,omitempty"`
Product string `json:"Product,omitempty"`
Revision string `json:"Revision,omitempty"`
Serial string `json:"Serial,omitempty"`
} `json:"InquiryData,omitempty"`
ScsiPath struct {
Port float64 `json:"Port,omitempty"`
Bus float64 `json:"Bus,omitempty"`
Target float64 `json:"Target,omitempty"`
LUN float64 `json:"LUN,omitempty"`
} `json:"ScsiPath,omitempty"`
DiskIndex float64 `json:"DiskIndex,omitempty"`
SystemName string `json:"SystemName,omitempty"`
BusType float64 `json:"BusType,omitempty"`
Type float64 `json:"Type,omitempty"`
DiskStatus float64 `json:"DiskStatus,omitempty"`
PoolMemberId string `json:"PoolMemberId,omitempty"`
Partitioned bool `json:"Partitioned,omitempty"`
InUse bool `json:"InUse,omitempty"`
IsBootDisk bool `json:"IsBootDisk,omitempty"`
Protected bool `json:"Protected,omitempty"`
IsSolidState bool `json:"IsSolidState,omitempty"`
HostId string `json:"HostId,omitempty"`
UniqueIdentifier string `json:"UniqueIdentifier,omitempty"`
SharedPhysicalDiskId string `json:"SharedPhysicalDiskId,omitempty"`
IsDataCoreDisk bool `json:"IsDataCoreDisk,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
}
type port struct {
PresenceStatus float64 `json:"PresenceStatus,omitempty"`
PhysicalName string `json:"PhysicalName,omitempty"`
ServerPortProperties struct {
Role float64 `json:"Role,omitempty"`
PortGroup string `json:"PortGroup,omitempty"`
} `json:"ServerPortProperties,omitempty"`
RoleCapability float64 `json:"RoleCapability,omitempty"`
AluaId float64 `json:"AluaId,omitempty"`
PortName string `json:"PortName,omitempty"`
Alias string `json:"Alias,omitempty"`
Description string `json:"Description,omitempty"`
PortType float64 `json:"PortType,omitempty"`
PortMode float64 `json:"PortMode,omitempty"`
HostId string `json:"HostId,omitempty"`
Connected bool `json:"Connected,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
}
type host struct {
HostId string `json:"HostId,omitempty"`
PowerState float64 `json:"PowerState,omitempty"`
ProvisionedSpace struct {
Value float64 `json:"Value,omitempty"`
} `json:"ProvisionedSpace,omitempty"`
UsedSpace struct {
Value float64 `json:"Value,omitempty"`
} `json:"UsedSpace,omitempty"`
Template bool `json:"Template,omitempty"`
ConnectorId string `json:"ConnectorId,omitempty"`
DatacenterId string `json:"DatacenterId,omitempty"`
Datastores []string `json:"Datastores,omitempty"`
HostGroupId string `json:"HostGroupId,omitempty"`
Type float64 `json:"Type,omitempty"`
State float64 `json:"State,omitempty"`
AluaSupport bool `json:"AluaSupport,omitempty"`
PathPolicy float64 `json:"PathPolicy,omitempty"`
TelemetryData struct {
DockerVersion string `json:"DockerVersion,omitempty"`
KubernetesVersion string `json:"KubernetesVersion,omitempty"`
NumberOfContainers float64 `json:"NumberOfContainers,omitempty"`
PersistentVolumes string `json:"PersistentVolumes,omitempty"`
} `json:"TelemetryData,omitempty"`
Description string `json:"Description,omitempty"`
HostName string `json:"HostName,omitempty"`
MpioCapable bool `json:"MpioCapable,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
}
type preferredserver struct {
ClientId string `json:"ClientId,omitempty"`
ServerId string `json:"ServerId,omitempty"`
SequenceNumber float64 `json:"SequenceNumber,omitempty"`
Id string `json:"Id,omitempty"`
Caption string `json:"Caption,omitempty"`
ExtendedCaption string `json:"ExtendedCaption,omitempty"`
Internal bool `json:"Internal,omitempty"`
}