/
enums.go
223 lines (189 loc) · 7.81 KB
/
enums.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
package migrate
// Copyright (c) Microsoft and contributors. 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.
// Bitness enumerates the values for bitness.
type Bitness string
const (
// SixFourbit ...
SixFourbit Bitness = "64bit"
// ThreeTwobit ...
ThreeTwobit Bitness = "32bit"
)
// PossibleBitnessValues returns an array of possible values for the Bitness const type.
func PossibleBitnessValues() []Bitness {
return []Bitness{SixFourbit, ThreeTwobit}
}
// CPUSpeedAccuracy enumerates the values for cpu speed accuracy.
type CPUSpeedAccuracy string
const (
// Actual ...
Actual CPUSpeedAccuracy = "actual"
// Estimated ...
Estimated CPUSpeedAccuracy = "estimated"
)
// PossibleCPUSpeedAccuracyValues returns an array of possible values for the CPUSpeedAccuracy const type.
func PossibleCPUSpeedAccuracyValues() []CPUSpeedAccuracy {
return []CPUSpeedAccuracy{Actual, Estimated}
}
// CredentialType enumerates the values for credential type.
type CredentialType string
const (
// HyperVFabric ...
HyperVFabric CredentialType = "HyperVFabric"
// LinuxGuest ...
LinuxGuest CredentialType = "LinuxGuest"
// LinuxServer ...
LinuxServer CredentialType = "LinuxServer"
// VMwareFabric ...
VMwareFabric CredentialType = "VMwareFabric"
// WindowsGuest ...
WindowsGuest CredentialType = "WindowsGuest"
// WindowsServer ...
WindowsServer CredentialType = "WindowsServer"
)
// PossibleCredentialTypeValues returns an array of possible values for the CredentialType const type.
func PossibleCredentialTypeValues() []CredentialType {
return []CredentialType{HyperVFabric, LinuxGuest, LinuxServer, VMwareFabric, WindowsGuest, WindowsServer}
}
// Family enumerates the values for family.
type Family string
const (
// Aix ...
Aix Family = "aix"
// Linux ...
Linux Family = "linux"
// Solaris ...
Solaris Family = "solaris"
// Unknown ...
Unknown Family = "unknown"
// Windows ...
Windows Family = "windows"
)
// PossibleFamilyValues returns an array of possible values for the Family const type.
func PossibleFamilyValues() []Family {
return []Family{Aix, Linux, Solaris, Unknown, Windows}
}
// HighlyAvailable enumerates the values for highly available.
type HighlyAvailable string
const (
// HighlyAvailableNo ...
HighlyAvailableNo HighlyAvailable = "No"
// HighlyAvailableUnknown ...
HighlyAvailableUnknown HighlyAvailable = "Unknown"
// HighlyAvailableYes ...
HighlyAvailableYes HighlyAvailable = "Yes"
)
// PossibleHighlyAvailableValues returns an array of possible values for the HighlyAvailable const type.
func PossibleHighlyAvailableValues() []HighlyAvailable {
return []HighlyAvailable{HighlyAvailableNo, HighlyAvailableUnknown, HighlyAvailableYes}
}
// HypervisorType enumerates the values for hypervisor type.
type HypervisorType string
const (
// HypervisorTypeHyperv ...
HypervisorTypeHyperv HypervisorType = "hyperv"
// HypervisorTypeUnknown ...
HypervisorTypeUnknown HypervisorType = "unknown"
)
// PossibleHypervisorTypeValues returns an array of possible values for the HypervisorType const type.
func PossibleHypervisorTypeValues() []HypervisorType {
return []HypervisorType{HypervisorTypeHyperv, HypervisorTypeUnknown}
}
// PropertiesMonitoringState enumerates the values for properties monitoring state.
type PropertiesMonitoringState string
const (
// Discovered ...
Discovered PropertiesMonitoringState = "discovered"
// Monitored ...
Monitored PropertiesMonitoringState = "monitored"
)
// PossiblePropertiesMonitoringStateValues returns an array of possible values for the PropertiesMonitoringState const type.
func PossiblePropertiesMonitoringStateValues() []PropertiesMonitoringState {
return []PropertiesMonitoringState{Discovered, Monitored}
}
// PropertiesVirtualizationState enumerates the values for properties virtualization state.
type PropertiesVirtualizationState string
const (
// PropertiesVirtualizationStateHypervisor ...
PropertiesVirtualizationStateHypervisor PropertiesVirtualizationState = "hypervisor"
// PropertiesVirtualizationStatePhysical ...
PropertiesVirtualizationStatePhysical PropertiesVirtualizationState = "physical"
// PropertiesVirtualizationStateUnknown ...
PropertiesVirtualizationStateUnknown PropertiesVirtualizationState = "unknown"
// PropertiesVirtualizationStateVirtual ...
PropertiesVirtualizationStateVirtual PropertiesVirtualizationState = "virtual"
)
// PossiblePropertiesVirtualizationStateValues returns an array of possible values for the PropertiesVirtualizationState const type.
func PossiblePropertiesVirtualizationStateValues() []PropertiesVirtualizationState {
return []PropertiesVirtualizationState{PropertiesVirtualizationStateHypervisor, PropertiesVirtualizationStatePhysical, PropertiesVirtualizationStateUnknown, PropertiesVirtualizationStateVirtual}
}
// RebootStatus enumerates the values for reboot status.
type RebootStatus string
const (
// RebootStatusNotRebooted ...
RebootStatusNotRebooted RebootStatus = "notRebooted"
// RebootStatusRebooted ...
RebootStatusRebooted RebootStatus = "rebooted"
// RebootStatusUnknown ...
RebootStatusUnknown RebootStatus = "unknown"
)
// PossibleRebootStatusValues returns an array of possible values for the RebootStatus const type.
func PossibleRebootStatusValues() []RebootStatus {
return []RebootStatus{RebootStatusNotRebooted, RebootStatusRebooted, RebootStatusUnknown}
}
// VirtualDiskMode enumerates the values for virtual disk mode.
type VirtualDiskMode string
const (
// Append ...
Append VirtualDiskMode = "append"
// IndependentNonpersistent ...
IndependentNonpersistent VirtualDiskMode = "independent_nonpersistent"
// IndependentPersistent ...
IndependentPersistent VirtualDiskMode = "independent_persistent"
// Nonpersistent ...
Nonpersistent VirtualDiskMode = "nonpersistent"
// Persistent ...
Persistent VirtualDiskMode = "persistent"
// Undoable ...
Undoable VirtualDiskMode = "undoable"
)
// PossibleVirtualDiskModeValues returns an array of possible values for the VirtualDiskMode const type.
func PossibleVirtualDiskModeValues() []VirtualDiskMode {
return []VirtualDiskMode{Append, IndependentNonpersistent, IndependentPersistent, Nonpersistent, Persistent, Undoable}
}
// VirtualMachineType enumerates the values for virtual machine type.
type VirtualMachineType string
const (
// VirtualMachineTypeHyperv ...
VirtualMachineTypeHyperv VirtualMachineType = "hyperv"
// VirtualMachineTypeLdom ...
VirtualMachineTypeLdom VirtualMachineType = "ldom"
// VirtualMachineTypeLpar ...
VirtualMachineTypeLpar VirtualMachineType = "lpar"
// VirtualMachineTypeUnknown ...
VirtualMachineTypeUnknown VirtualMachineType = "unknown"
// VirtualMachineTypeVirtualPc ...
VirtualMachineTypeVirtualPc VirtualMachineType = "virtualPc"
// VirtualMachineTypeVmware ...
VirtualMachineTypeVmware VirtualMachineType = "vmware"
// VirtualMachineTypeXen ...
VirtualMachineTypeXen VirtualMachineType = "xen"
)
// PossibleVirtualMachineTypeValues returns an array of possible values for the VirtualMachineType const type.
func PossibleVirtualMachineTypeValues() []VirtualMachineType {
return []VirtualMachineType{VirtualMachineTypeHyperv, VirtualMachineTypeLdom, VirtualMachineTypeLpar, VirtualMachineTypeUnknown, VirtualMachineTypeVirtualPc, VirtualMachineTypeVmware, VirtualMachineTypeXen}
}