/
constants.go
513 lines (438 loc) · 17 KB
/
constants.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.
// DO NOT EDIT.
package armconnectedvmware
const (
moduleName = "armconnectedvmware"
moduleVersion = "v0.1.0"
)
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// DiskMode - Defines the different types of disk modes.
type DiskMode string
const (
DiskModeIndependentNonpersistent DiskMode = "independent_nonpersistent"
DiskModeIndependentPersistent DiskMode = "independent_persistent"
DiskModePersistent DiskMode = "persistent"
)
// PossibleDiskModeValues returns the possible values for the DiskMode const type.
func PossibleDiskModeValues() []DiskMode {
return []DiskMode{
DiskModeIndependentNonpersistent,
DiskModeIndependentPersistent,
DiskModePersistent,
}
}
// DiskType - Defines the different types of disks.
type DiskType string
const (
DiskTypeFlat DiskType = "flat"
DiskTypePmem DiskType = "pmem"
DiskTypeRawphysical DiskType = "rawphysical"
DiskTypeRawvirtual DiskType = "rawvirtual"
DiskTypeSesparse DiskType = "sesparse"
DiskTypeSparse DiskType = "sparse"
DiskTypeUnknown DiskType = "unknown"
)
// PossibleDiskTypeValues returns the possible values for the DiskType const type.
func PossibleDiskTypeValues() []DiskType {
return []DiskType{
DiskTypeFlat,
DiskTypePmem,
DiskTypeRawphysical,
DiskTypeRawvirtual,
DiskTypeSesparse,
DiskTypeSparse,
DiskTypeUnknown,
}
}
// FirmwareType - Firmware type
type FirmwareType string
const (
FirmwareTypeBios FirmwareType = "bios"
FirmwareTypeEfi FirmwareType = "efi"
)
// PossibleFirmwareTypeValues returns the possible values for the FirmwareType const type.
func PossibleFirmwareTypeValues() []FirmwareType {
return []FirmwareType{
FirmwareTypeBios,
FirmwareTypeEfi,
}
}
// IPAddressAllocationMethod - IP address allocation method.
type IPAddressAllocationMethod string
const (
IPAddressAllocationMethodDynamic IPAddressAllocationMethod = "dynamic"
IPAddressAllocationMethodLinklayer IPAddressAllocationMethod = "linklayer"
IPAddressAllocationMethodOther IPAddressAllocationMethod = "other"
IPAddressAllocationMethodRandom IPAddressAllocationMethod = "random"
IPAddressAllocationMethodStatic IPAddressAllocationMethod = "static"
IPAddressAllocationMethodUnset IPAddressAllocationMethod = "unset"
)
// PossibleIPAddressAllocationMethodValues returns the possible values for the IPAddressAllocationMethod const type.
func PossibleIPAddressAllocationMethodValues() []IPAddressAllocationMethod {
return []IPAddressAllocationMethod{
IPAddressAllocationMethodDynamic,
IPAddressAllocationMethodLinklayer,
IPAddressAllocationMethodOther,
IPAddressAllocationMethodRandom,
IPAddressAllocationMethodStatic,
IPAddressAllocationMethodUnset,
}
}
// IdentityType - The type of managed service identity.
type IdentityType string
const (
IdentityTypeNone IdentityType = "None"
IdentityTypeSystemAssigned IdentityType = "SystemAssigned"
)
// PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
func PossibleIdentityTypeValues() []IdentityType {
return []IdentityType{
IdentityTypeNone,
IdentityTypeSystemAssigned,
}
}
// InventoryType - The inventory type.
type InventoryType string
const (
InventoryTypeCluster InventoryType = "Cluster"
InventoryTypeDatastore InventoryType = "Datastore"
InventoryTypeHost InventoryType = "Host"
InventoryTypeResourcePool InventoryType = "ResourcePool"
InventoryTypeVirtualMachine InventoryType = "VirtualMachine"
InventoryTypeVirtualMachineTemplate InventoryType = "VirtualMachineTemplate"
InventoryTypeVirtualNetwork InventoryType = "VirtualNetwork"
)
// PossibleInventoryTypeValues returns the possible values for the InventoryType const type.
func PossibleInventoryTypeValues() []InventoryType {
return []InventoryType{
InventoryTypeCluster,
InventoryTypeDatastore,
InventoryTypeHost,
InventoryTypeResourcePool,
InventoryTypeVirtualMachine,
InventoryTypeVirtualMachineTemplate,
InventoryTypeVirtualNetwork,
}
}
// NICType - NIC type
type NICType string
const (
NICTypeE1000 NICType = "e1000"
NICTypeE1000E NICType = "e1000e"
NICTypePcnet32 NICType = "pcnet32"
NICTypeVmxnet NICType = "vmxnet"
NICTypeVmxnet2 NICType = "vmxnet2"
NICTypeVmxnet3 NICType = "vmxnet3"
)
// PossibleNICTypeValues returns the possible values for the NICType const type.
func PossibleNICTypeValues() []NICType {
return []NICType{
NICTypeE1000,
NICTypeE1000E,
NICTypePcnet32,
NICTypeVmxnet,
NICTypeVmxnet2,
NICTypeVmxnet3,
}
}
// OsType - Defines the different types of VM guest operating systems.
type OsType string
const (
OsTypeLinux OsType = "Linux"
OsTypeOther OsType = "Other"
OsTypeWindows OsType = "Windows"
)
// PossibleOsTypeValues returns the possible values for the OsType const type.
func PossibleOsTypeValues() []OsType {
return []OsType{
OsTypeLinux,
OsTypeOther,
OsTypeWindows,
}
}
// OsTypeUM - The operating system type of the machine.
type OsTypeUM string
const (
OsTypeUMLinux OsTypeUM = "Linux"
OsTypeUMWindows OsTypeUM = "Windows"
)
// PossibleOsTypeUMValues returns the possible values for the OsTypeUM const type.
func PossibleOsTypeUMValues() []OsTypeUM {
return []OsTypeUM{
OsTypeUMLinux,
OsTypeUMWindows,
}
}
// PatchOperationStartedBy - Indicates if operation was triggered by user or by platform.
type PatchOperationStartedBy string
const (
PatchOperationStartedByPlatform PatchOperationStartedBy = "Platform"
PatchOperationStartedByUser PatchOperationStartedBy = "User"
)
// PossiblePatchOperationStartedByValues returns the possible values for the PatchOperationStartedBy const type.
func PossiblePatchOperationStartedByValues() []PatchOperationStartedBy {
return []PatchOperationStartedBy{
PatchOperationStartedByPlatform,
PatchOperationStartedByUser,
}
}
// PatchOperationStatus - The overall success or failure status of the operation. It remains "InProgress" until the operation
// completes. At that point it will become "Unknown", "Failed", "Succeeded", or
// "CompletedWithWarnings."
type PatchOperationStatus string
const (
PatchOperationStatusCompletedWithWarnings PatchOperationStatus = "CompletedWithWarnings"
PatchOperationStatusFailed PatchOperationStatus = "Failed"
PatchOperationStatusInProgress PatchOperationStatus = "InProgress"
PatchOperationStatusSucceeded PatchOperationStatus = "Succeeded"
PatchOperationStatusUnknown PatchOperationStatus = "Unknown"
)
// PossiblePatchOperationStatusValues returns the possible values for the PatchOperationStatus const type.
func PossiblePatchOperationStatusValues() []PatchOperationStatus {
return []PatchOperationStatus{
PatchOperationStatusCompletedWithWarnings,
PatchOperationStatusFailed,
PatchOperationStatusInProgress,
PatchOperationStatusSucceeded,
PatchOperationStatusUnknown,
}
}
// PatchServiceUsed - Specifies the patch service used for the operation.
type PatchServiceUsed string
const (
PatchServiceUsedAPT PatchServiceUsed = "APT"
PatchServiceUsedUnknown PatchServiceUsed = "Unknown"
PatchServiceUsedWU PatchServiceUsed = "WU"
PatchServiceUsedWUWSUS PatchServiceUsed = "WU_WSUS"
PatchServiceUsedYUM PatchServiceUsed = "YUM"
PatchServiceUsedZypper PatchServiceUsed = "Zypper"
)
// PossiblePatchServiceUsedValues returns the possible values for the PatchServiceUsed const type.
func PossiblePatchServiceUsedValues() []PatchServiceUsed {
return []PatchServiceUsed{
PatchServiceUsedAPT,
PatchServiceUsedUnknown,
PatchServiceUsedWU,
PatchServiceUsedWUWSUS,
PatchServiceUsedYUM,
PatchServiceUsedZypper,
}
}
// PowerOnBootOption - Defines the options for power on boot.
type PowerOnBootOption string
const (
PowerOnBootOptionDisabled PowerOnBootOption = "disabled"
PowerOnBootOptionEnabled PowerOnBootOption = "enabled"
)
// PossiblePowerOnBootOptionValues returns the possible values for the PowerOnBootOption const type.
func PossiblePowerOnBootOptionValues() []PowerOnBootOption {
return []PowerOnBootOption{
PowerOnBootOptionDisabled,
PowerOnBootOptionEnabled,
}
}
// ProvisioningAction - Defines the different types of operations for guest agent.
type ProvisioningAction string
const (
ProvisioningActionInstall ProvisioningAction = "install"
ProvisioningActionRepair ProvisioningAction = "repair"
ProvisioningActionUninstall ProvisioningAction = "uninstall"
)
// PossibleProvisioningActionValues returns the possible values for the ProvisioningAction const type.
func PossibleProvisioningActionValues() []ProvisioningAction {
return []ProvisioningAction{
ProvisioningActionInstall,
ProvisioningActionRepair,
ProvisioningActionUninstall,
}
}
// ProvisioningState - The current deployment state of resource.
type ProvisioningState string
const (
ProvisioningStateAccepted ProvisioningState = "Accepted"
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreated ProvisioningState = "Created"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateProvisioning ProvisioningState = "Provisioning"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
ProvisioningStateUpdating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
ProvisioningStateAccepted,
ProvisioningStateCanceled,
ProvisioningStateCreated,
ProvisioningStateDeleting,
ProvisioningStateFailed,
ProvisioningStateProvisioning,
ProvisioningStateSucceeded,
ProvisioningStateUpdating,
}
}
// SCSIControllerType - Defines the different types of SCSI controllers.
type SCSIControllerType string
const (
SCSIControllerTypeBuslogic SCSIControllerType = "buslogic"
SCSIControllerTypeLsilogic SCSIControllerType = "lsilogic"
SCSIControllerTypeLsilogicsas SCSIControllerType = "lsilogicsas"
SCSIControllerTypePvscsi SCSIControllerType = "pvscsi"
)
// PossibleSCSIControllerTypeValues returns the possible values for the SCSIControllerType const type.
func PossibleSCSIControllerTypeValues() []SCSIControllerType {
return []SCSIControllerType{
SCSIControllerTypeBuslogic,
SCSIControllerTypeLsilogic,
SCSIControllerTypeLsilogicsas,
SCSIControllerTypePvscsi,
}
}
// StatusLevelTypes - The level code.
type StatusLevelTypes string
const (
StatusLevelTypesError StatusLevelTypes = "Error"
StatusLevelTypesInfo StatusLevelTypes = "Info"
StatusLevelTypesWarning StatusLevelTypes = "Warning"
)
// PossibleStatusLevelTypesValues returns the possible values for the StatusLevelTypes const type.
func PossibleStatusLevelTypesValues() []StatusLevelTypes {
return []StatusLevelTypes{
StatusLevelTypesError,
StatusLevelTypesInfo,
StatusLevelTypesWarning,
}
}
// StatusTypes - The status of the hybrid machine agent.
type StatusTypes string
const (
StatusTypesConnected StatusTypes = "Connected"
StatusTypesDisconnected StatusTypes = "Disconnected"
StatusTypesError StatusTypes = "Error"
)
// PossibleStatusTypesValues returns the possible values for the StatusTypes const type.
func PossibleStatusTypesValues() []StatusTypes {
return []StatusTypes{
StatusTypesConnected,
StatusTypesDisconnected,
StatusTypesError,
}
}
type VMGuestPatchClassificationLinux string
const (
VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = "Critical"
VMGuestPatchClassificationLinuxOther VMGuestPatchClassificationLinux = "Other"
VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = "Security"
)
// PossibleVMGuestPatchClassificationLinuxValues returns the possible values for the VMGuestPatchClassificationLinux const type.
func PossibleVMGuestPatchClassificationLinuxValues() []VMGuestPatchClassificationLinux {
return []VMGuestPatchClassificationLinux{
VMGuestPatchClassificationLinuxCritical,
VMGuestPatchClassificationLinuxOther,
VMGuestPatchClassificationLinuxSecurity,
}
}
type VMGuestPatchClassificationWindows string
const (
VMGuestPatchClassificationWindowsCritical VMGuestPatchClassificationWindows = "Critical"
VMGuestPatchClassificationWindowsDefinition VMGuestPatchClassificationWindows = "Definition"
VMGuestPatchClassificationWindowsFeaturePack VMGuestPatchClassificationWindows = "FeaturePack"
VMGuestPatchClassificationWindowsSecurity VMGuestPatchClassificationWindows = "Security"
VMGuestPatchClassificationWindowsServicePack VMGuestPatchClassificationWindows = "ServicePack"
VMGuestPatchClassificationWindowsTools VMGuestPatchClassificationWindows = "Tools"
VMGuestPatchClassificationWindowsUpdateRollUp VMGuestPatchClassificationWindows = "UpdateRollUp"
VMGuestPatchClassificationWindowsUpdates VMGuestPatchClassificationWindows = "Updates"
)
// PossibleVMGuestPatchClassificationWindowsValues returns the possible values for the VMGuestPatchClassificationWindows const type.
func PossibleVMGuestPatchClassificationWindowsValues() []VMGuestPatchClassificationWindows {
return []VMGuestPatchClassificationWindows{
VMGuestPatchClassificationWindowsCritical,
VMGuestPatchClassificationWindowsDefinition,
VMGuestPatchClassificationWindowsFeaturePack,
VMGuestPatchClassificationWindowsSecurity,
VMGuestPatchClassificationWindowsServicePack,
VMGuestPatchClassificationWindowsTools,
VMGuestPatchClassificationWindowsUpdateRollUp,
VMGuestPatchClassificationWindowsUpdates,
}
}
// VMGuestPatchRebootSetting - Defines when it is acceptable to reboot a VM during a software update operation.
type VMGuestPatchRebootSetting string
const (
VMGuestPatchRebootSettingAlways VMGuestPatchRebootSetting = "Always"
VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = "IfRequired"
VMGuestPatchRebootSettingNever VMGuestPatchRebootSetting = "Never"
)
// PossibleVMGuestPatchRebootSettingValues returns the possible values for the VMGuestPatchRebootSetting const type.
func PossibleVMGuestPatchRebootSettingValues() []VMGuestPatchRebootSetting {
return []VMGuestPatchRebootSetting{
VMGuestPatchRebootSettingAlways,
VMGuestPatchRebootSettingIfRequired,
VMGuestPatchRebootSettingNever,
}
}
// VMGuestPatchRebootStatus - The reboot state of the VM following completion of the operation.
type VMGuestPatchRebootStatus string
const (
VMGuestPatchRebootStatusCompleted VMGuestPatchRebootStatus = "Completed"
VMGuestPatchRebootStatusFailed VMGuestPatchRebootStatus = "Failed"
VMGuestPatchRebootStatusNotNeeded VMGuestPatchRebootStatus = "NotNeeded"
VMGuestPatchRebootStatusRequired VMGuestPatchRebootStatus = "Required"
VMGuestPatchRebootStatusStarted VMGuestPatchRebootStatus = "Started"
VMGuestPatchRebootStatusUnknown VMGuestPatchRebootStatus = "Unknown"
)
// PossibleVMGuestPatchRebootStatusValues returns the possible values for the VMGuestPatchRebootStatus const type.
func PossibleVMGuestPatchRebootStatusValues() []VMGuestPatchRebootStatus {
return []VMGuestPatchRebootStatus{
VMGuestPatchRebootStatusCompleted,
VMGuestPatchRebootStatusFailed,
VMGuestPatchRebootStatusNotNeeded,
VMGuestPatchRebootStatusRequired,
VMGuestPatchRebootStatusStarted,
VMGuestPatchRebootStatusUnknown,
}
}
// VirtualSCSISharing - Defines the sharing mode for sharing the SCSI bus.
type VirtualSCSISharing string
const (
VirtualSCSISharingNoSharing VirtualSCSISharing = "noSharing"
VirtualSCSISharingPhysicalSharing VirtualSCSISharing = "physicalSharing"
VirtualSCSISharingVirtualSharing VirtualSCSISharing = "virtualSharing"
)
// PossibleVirtualSCSISharingValues returns the possible values for the VirtualSCSISharing const type.
func PossibleVirtualSCSISharingValues() []VirtualSCSISharing {
return []VirtualSCSISharing{
VirtualSCSISharingNoSharing,
VirtualSCSISharingPhysicalSharing,
VirtualSCSISharingVirtualSharing,
}
}