forked from Azure/azure-sdk-for-go
/
enums.go
329 lines (268 loc) · 10.9 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
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
package batch
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AccountKeyType enumerates the values for account key type.
type AccountKeyType string
const (
// Primary ...
Primary AccountKeyType = "Primary"
// Secondary ...
Secondary AccountKeyType = "Secondary"
)
// PossibleAccountKeyTypeValues returns an array of possible values for the AccountKeyType const type.
func PossibleAccountKeyTypeValues() []AccountKeyType {
return []AccountKeyType{Primary, Secondary}
}
// AllocationState enumerates the values for allocation state.
type AllocationState string
const (
// Resizing ...
Resizing AllocationState = "Resizing"
// Steady ...
Steady AllocationState = "Steady"
// Stopping ...
Stopping AllocationState = "Stopping"
)
// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type.
func PossibleAllocationStateValues() []AllocationState {
return []AllocationState{Resizing, Steady, Stopping}
}
// AutoUserScope enumerates the values for auto user scope.
type AutoUserScope string
const (
// AutoUserScopePool ...
AutoUserScopePool AutoUserScope = "Pool"
// AutoUserScopeTask ...
AutoUserScopeTask AutoUserScope = "Task"
)
// PossibleAutoUserScopeValues returns an array of possible values for the AutoUserScope const type.
func PossibleAutoUserScopeValues() []AutoUserScope {
return []AutoUserScope{AutoUserScopePool, AutoUserScopeTask}
}
// CachingType enumerates the values for caching type.
type CachingType string
const (
// None ...
None CachingType = "None"
// ReadOnly ...
ReadOnly CachingType = "ReadOnly"
// ReadWrite ...
ReadWrite CachingType = "ReadWrite"
)
// PossibleCachingTypeValues returns an array of possible values for the CachingType const type.
func PossibleCachingTypeValues() []CachingType {
return []CachingType{None, ReadOnly, ReadWrite}
}
// CertificateFormat enumerates the values for certificate format.
type CertificateFormat string
const (
// Cer ...
Cer CertificateFormat = "Cer"
// Pfx ...
Pfx CertificateFormat = "Pfx"
)
// PossibleCertificateFormatValues returns an array of possible values for the CertificateFormat const type.
func PossibleCertificateFormatValues() []CertificateFormat {
return []CertificateFormat{Cer, Pfx}
}
// CertificateProvisioningState enumerates the values for certificate provisioning state.
type CertificateProvisioningState string
const (
// Deleting ...
Deleting CertificateProvisioningState = "Deleting"
// Failed ...
Failed CertificateProvisioningState = "Failed"
// Succeeded ...
Succeeded CertificateProvisioningState = "Succeeded"
)
// PossibleCertificateProvisioningStateValues returns an array of possible values for the CertificateProvisioningState const type.
func PossibleCertificateProvisioningStateValues() []CertificateProvisioningState {
return []CertificateProvisioningState{Deleting, Failed, Succeeded}
}
// CertificateStoreLocation enumerates the values for certificate store location.
type CertificateStoreLocation string
const (
// CurrentUser ...
CurrentUser CertificateStoreLocation = "CurrentUser"
// LocalMachine ...
LocalMachine CertificateStoreLocation = "LocalMachine"
)
// PossibleCertificateStoreLocationValues returns an array of possible values for the CertificateStoreLocation const type.
func PossibleCertificateStoreLocationValues() []CertificateStoreLocation {
return []CertificateStoreLocation{CurrentUser, LocalMachine}
}
// CertificateVisibility enumerates the values for certificate visibility.
type CertificateVisibility string
const (
// CertificateVisibilityRemoteUser ...
CertificateVisibilityRemoteUser CertificateVisibility = "RemoteUser"
// CertificateVisibilityStartTask ...
CertificateVisibilityStartTask CertificateVisibility = "StartTask"
// CertificateVisibilityTask ...
CertificateVisibilityTask CertificateVisibility = "Task"
)
// PossibleCertificateVisibilityValues returns an array of possible values for the CertificateVisibility const type.
func PossibleCertificateVisibilityValues() []CertificateVisibility {
return []CertificateVisibility{CertificateVisibilityRemoteUser, CertificateVisibilityStartTask, CertificateVisibilityTask}
}
// ComputeNodeDeallocationOption enumerates the values for compute node deallocation option.
type ComputeNodeDeallocationOption string
const (
// Requeue ...
Requeue ComputeNodeDeallocationOption = "Requeue"
// RetainedData ...
RetainedData ComputeNodeDeallocationOption = "RetainedData"
// TaskCompletion ...
TaskCompletion ComputeNodeDeallocationOption = "TaskCompletion"
// Terminate ...
Terminate ComputeNodeDeallocationOption = "Terminate"
)
// PossibleComputeNodeDeallocationOptionValues returns an array of possible values for the ComputeNodeDeallocationOption const type.
func PossibleComputeNodeDeallocationOptionValues() []ComputeNodeDeallocationOption {
return []ComputeNodeDeallocationOption{Requeue, RetainedData, TaskCompletion, Terminate}
}
// ComputeNodeFillType enumerates the values for compute node fill type.
type ComputeNodeFillType string
const (
// Pack ...
Pack ComputeNodeFillType = "Pack"
// Spread ...
Spread ComputeNodeFillType = "Spread"
)
// PossibleComputeNodeFillTypeValues returns an array of possible values for the ComputeNodeFillType const type.
func PossibleComputeNodeFillTypeValues() []ComputeNodeFillType {
return []ComputeNodeFillType{Pack, Spread}
}
// ElevationLevel enumerates the values for elevation level.
type ElevationLevel string
const (
// Admin ...
Admin ElevationLevel = "Admin"
// NonAdmin ...
NonAdmin ElevationLevel = "NonAdmin"
)
// PossibleElevationLevelValues returns an array of possible values for the ElevationLevel const type.
func PossibleElevationLevelValues() []ElevationLevel {
return []ElevationLevel{Admin, NonAdmin}
}
// InboundEndpointProtocol enumerates the values for inbound endpoint protocol.
type InboundEndpointProtocol string
const (
// TCP ...
TCP InboundEndpointProtocol = "TCP"
// UDP ...
UDP InboundEndpointProtocol = "UDP"
)
// PossibleInboundEndpointProtocolValues returns an array of possible values for the InboundEndpointProtocol const type.
func PossibleInboundEndpointProtocolValues() []InboundEndpointProtocol {
return []InboundEndpointProtocol{TCP, UDP}
}
// InterNodeCommunicationState enumerates the values for inter node communication state.
type InterNodeCommunicationState string
const (
// Disabled ...
Disabled InterNodeCommunicationState = "Disabled"
// Enabled ...
Enabled InterNodeCommunicationState = "Enabled"
)
// PossibleInterNodeCommunicationStateValues returns an array of possible values for the InterNodeCommunicationState const type.
func PossibleInterNodeCommunicationStateValues() []InterNodeCommunicationState {
return []InterNodeCommunicationState{Disabled, Enabled}
}
// NameAvailabilityReason enumerates the values for name availability reason.
type NameAvailabilityReason string
const (
// AlreadyExists ...
AlreadyExists NameAvailabilityReason = "AlreadyExists"
// Invalid ...
Invalid NameAvailabilityReason = "Invalid"
)
// PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type.
func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason {
return []NameAvailabilityReason{AlreadyExists, Invalid}
}
// NetworkSecurityGroupRuleAccess enumerates the values for network security group rule access.
type NetworkSecurityGroupRuleAccess string
const (
// Allow ...
Allow NetworkSecurityGroupRuleAccess = "Allow"
// Deny ...
Deny NetworkSecurityGroupRuleAccess = "Deny"
)
// PossibleNetworkSecurityGroupRuleAccessValues returns an array of possible values for the NetworkSecurityGroupRuleAccess const type.
func PossibleNetworkSecurityGroupRuleAccessValues() []NetworkSecurityGroupRuleAccess {
return []NetworkSecurityGroupRuleAccess{Allow, Deny}
}
// PackageState enumerates the values for package state.
type PackageState string
const (
// Active ...
Active PackageState = "Active"
// Pending ...
Pending PackageState = "Pending"
// Unmapped ...
Unmapped PackageState = "Unmapped"
)
// PossiblePackageStateValues returns an array of possible values for the PackageState const type.
func PossiblePackageStateValues() []PackageState {
return []PackageState{Active, Pending, Unmapped}
}
// PoolAllocationMode enumerates the values for pool allocation mode.
type PoolAllocationMode string
const (
// BatchService ...
BatchService PoolAllocationMode = "BatchService"
// UserSubscription ...
UserSubscription PoolAllocationMode = "UserSubscription"
)
// PossiblePoolAllocationModeValues returns an array of possible values for the PoolAllocationMode const type.
func PossiblePoolAllocationModeValues() []PoolAllocationMode {
return []PoolAllocationMode{BatchService, UserSubscription}
}
// PoolProvisioningState enumerates the values for pool provisioning state.
type PoolProvisioningState string
const (
// PoolProvisioningStateDeleting ...
PoolProvisioningStateDeleting PoolProvisioningState = "Deleting"
// PoolProvisioningStateSucceeded ...
PoolProvisioningStateSucceeded PoolProvisioningState = "Succeeded"
)
// PossiblePoolProvisioningStateValues returns an array of possible values for the PoolProvisioningState const type.
func PossiblePoolProvisioningStateValues() []PoolProvisioningState {
return []PoolProvisioningState{PoolProvisioningStateDeleting, PoolProvisioningStateSucceeded}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// ProvisioningStateCancelled ...
ProvisioningStateCancelled ProvisioningState = "Cancelled"
// ProvisioningStateCreating ...
ProvisioningStateCreating ProvisioningState = "Creating"
// ProvisioningStateDeleting ...
ProvisioningStateDeleting ProvisioningState = "Deleting"
// ProvisioningStateFailed ...
ProvisioningStateFailed ProvisioningState = "Failed"
// ProvisioningStateInvalid ...
ProvisioningStateInvalid ProvisioningState = "Invalid"
// ProvisioningStateSucceeded ...
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{ProvisioningStateCancelled, ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateInvalid, ProvisioningStateSucceeded}
}
// StorageAccountType enumerates the values for storage account type.
type StorageAccountType string
const (
// PremiumLRS ...
PremiumLRS StorageAccountType = "Premium_LRS"
// StandardLRS ...
StandardLRS StorageAccountType = "Standard_LRS"
)
// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type.
func PossibleStorageAccountTypeValues() []StorageAccountType {
return []StorageAccountType{PremiumLRS, StandardLRS}
}