forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
440 lines (364 loc) · 16.6 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
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
package labservices
// 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.
// ActionType enumerates the values for action type.
type ActionType string
const (
// ActionTypeInternal ...
ActionTypeInternal ActionType = "Internal"
)
// PossibleActionTypeValues returns an array of possible values for the ActionType const type.
func PossibleActionTypeValues() []ActionType {
return []ActionType{ActionTypeInternal}
}
// ConnectionType enumerates the values for connection type.
type ConnectionType string
const (
// ConnectionTypeNone ...
ConnectionTypeNone ConnectionType = "None"
// ConnectionTypePrivate ...
ConnectionTypePrivate ConnectionType = "Private"
// ConnectionTypePublic ...
ConnectionTypePublic ConnectionType = "Public"
)
// PossibleConnectionTypeValues returns an array of possible values for the ConnectionType const type.
func PossibleConnectionTypeValues() []ConnectionType {
return []ConnectionType{ConnectionTypeNone, ConnectionTypePrivate, ConnectionTypePublic}
}
// CreatedByType enumerates the values for created by type.
type CreatedByType string
const (
// CreatedByTypeApplication ...
CreatedByTypeApplication CreatedByType = "Application"
// CreatedByTypeKey ...
CreatedByTypeKey CreatedByType = "Key"
// CreatedByTypeManagedIdentity ...
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
// CreatedByTypeUser ...
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
}
// CreateOption enumerates the values for create option.
type CreateOption string
const (
// CreateOptionImage An image is used to create all lab user virtual machines. When this option is set, no
// template VM will be created.
CreateOptionImage CreateOption = "Image"
// CreateOptionTemplateVM A template VM will be used to create all lab user virtual machines.
CreateOptionTemplateVM CreateOption = "TemplateVM"
)
// PossibleCreateOptionValues returns an array of possible values for the CreateOption const type.
func PossibleCreateOptionValues() []CreateOption {
return []CreateOption{CreateOptionImage, CreateOptionTemplateVM}
}
// EnableState enumerates the values for enable state.
type EnableState string
const (
// EnableStateDisabled ...
EnableStateDisabled EnableState = "Disabled"
// EnableStateEnabled ...
EnableStateEnabled EnableState = "Enabled"
)
// PossibleEnableStateValues returns an array of possible values for the EnableState const type.
func PossibleEnableStateValues() []EnableState {
return []EnableState{EnableStateDisabled, EnableStateEnabled}
}
// InvitationState enumerates the values for invitation state.
type InvitationState string
const (
// InvitationStateFailed There was an error while sending the invitation.
InvitationStateFailed InvitationState = "Failed"
// InvitationStateNotSent The invitation has not been sent.
InvitationStateNotSent InvitationState = "NotSent"
// InvitationStateSending Currently sending the invitation.
InvitationStateSending InvitationState = "Sending"
// InvitationStateSent The invitation has been successfully sent.
InvitationStateSent InvitationState = "Sent"
)
// PossibleInvitationStateValues returns an array of possible values for the InvitationState const type.
func PossibleInvitationStateValues() []InvitationState {
return []InvitationState{InvitationStateFailed, InvitationStateNotSent, InvitationStateSending, InvitationStateSent}
}
// LabState enumerates the values for lab state.
type LabState string
const (
// LabStateDraft The lab is currently in draft (has not been published).
LabStateDraft LabState = "Draft"
// LabStatePublished The lab has been published.
LabStatePublished LabState = "Published"
// LabStatePublishing The lab is publishing.
LabStatePublishing LabState = "Publishing"
// LabStateScaling The lab is scaling.
LabStateScaling LabState = "Scaling"
// LabStateSyncing The lab is syncing users.
LabStateSyncing LabState = "Syncing"
)
// PossibleLabStateValues returns an array of possible values for the LabState const type.
func PossibleLabStateValues() []LabState {
return []LabState{LabStateDraft, LabStatePublished, LabStatePublishing, LabStateScaling, LabStateSyncing}
}
// OperationStatus enumerates the values for operation status.
type OperationStatus string
const (
// OperationStatusCanceled Not supported yet
OperationStatusCanceled OperationStatus = "Canceled"
// OperationStatusFailed The operation failed
OperationStatusFailed OperationStatus = "Failed"
// OperationStatusInProgress The operation is running
OperationStatusInProgress OperationStatus = "InProgress"
// OperationStatusNotStarted The operation has been accepted but hasn't started.
OperationStatusNotStarted OperationStatus = "NotStarted"
// OperationStatusSucceeded The operation Succeeded
OperationStatusSucceeded OperationStatus = "Succeeded"
)
// PossibleOperationStatusValues returns an array of possible values for the OperationStatus const type.
func PossibleOperationStatusValues() []OperationStatus {
return []OperationStatus{OperationStatusCanceled, OperationStatusFailed, OperationStatusInProgress, OperationStatusNotStarted, OperationStatusSucceeded}
}
// Origin enumerates the values for origin.
type Origin string
const (
// OriginSystem ...
OriginSystem Origin = "system"
// OriginUser ...
OriginUser Origin = "user"
// OriginUsersystem ...
OriginUsersystem Origin = "user,system"
)
// PossibleOriginValues returns an array of possible values for the Origin const type.
func PossibleOriginValues() []Origin {
return []Origin{OriginSystem, OriginUser, OriginUsersystem}
}
// OsState enumerates the values for os state.
type OsState string
const (
// OsStateGeneralized Image does not contain any machine and user specific information.
OsStateGeneralized OsState = "Generalized"
// OsStateSpecialized Image contains machine and user specific information.
OsStateSpecialized OsState = "Specialized"
)
// PossibleOsStateValues returns an array of possible values for the OsState const type.
func PossibleOsStateValues() []OsState {
return []OsState{OsStateGeneralized, OsStateSpecialized}
}
// OsType enumerates the values for os type.
type OsType string
const (
// OsTypeLinux ...
OsTypeLinux OsType = "Linux"
// OsTypeWindows ...
OsTypeWindows OsType = "Windows"
)
// PossibleOsTypeValues returns an array of possible values for the OsType const type.
func PossibleOsTypeValues() []OsType {
return []OsType{OsTypeLinux, OsTypeWindows}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// ProvisioningStateCreating Resource is in the process of being created.
ProvisioningStateCreating ProvisioningState = "Creating"
// ProvisioningStateDeleting Resource is in the process of being deleted.
ProvisioningStateDeleting ProvisioningState = "Deleting"
// ProvisioningStateFailed Previous operation on the resource has failed leaving resource in unhealthy
// state.
ProvisioningStateFailed ProvisioningState = "Failed"
// ProvisioningStateLocked The resource is locked and changes are currently blocked. This could be due to
// maintenance or a scheduled operation. The state will go back to succeeded once the locking operation has
// finished.
ProvisioningStateLocked ProvisioningState = "Locked"
// ProvisioningStateSucceeded Resource is in healthy state after creation or update operation.
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
// ProvisioningStateUpdating New property values are being applied to the resource.
ProvisioningStateUpdating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateLocked, ProvisioningStateSucceeded, ProvisioningStateUpdating}
}
// RecurrenceFrequency enumerates the values for recurrence frequency.
type RecurrenceFrequency string
const (
// RecurrenceFrequencyDaily Schedule will run every days.
RecurrenceFrequencyDaily RecurrenceFrequency = "Daily"
// RecurrenceFrequencyWeekly Schedule will run every week on days specified in weekDays.
RecurrenceFrequencyWeekly RecurrenceFrequency = "Weekly"
)
// PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency {
return []RecurrenceFrequency{RecurrenceFrequencyDaily, RecurrenceFrequencyWeekly}
}
// RegistrationState enumerates the values for registration state.
type RegistrationState string
const (
// RegistrationStateNotRegistered User has registered with the lab.
RegistrationStateNotRegistered RegistrationState = "NotRegistered"
// RegistrationStateRegistered User has not yet registered with the lab.
RegistrationStateRegistered RegistrationState = "Registered"
)
// PossibleRegistrationStateValues returns an array of possible values for the RegistrationState const type.
func PossibleRegistrationStateValues() []RegistrationState {
return []RegistrationState{RegistrationStateNotRegistered, RegistrationStateRegistered}
}
// ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const (
// ResourceIdentityTypeSystemAssigned ...
ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
)
// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{ResourceIdentityTypeSystemAssigned}
}
// RestrictionReasonCode enumerates the values for restriction reason code.
type RestrictionReasonCode string
const (
// RestrictionReasonCodeNotAvailableForSubscription ...
RestrictionReasonCodeNotAvailableForSubscription RestrictionReasonCode = "NotAvailableForSubscription"
// RestrictionReasonCodeQuotaID ...
RestrictionReasonCodeQuotaID RestrictionReasonCode = "QuotaId"
)
// PossibleRestrictionReasonCodeValues returns an array of possible values for the RestrictionReasonCode const type.
func PossibleRestrictionReasonCodeValues() []RestrictionReasonCode {
return []RestrictionReasonCode{RestrictionReasonCodeNotAvailableForSubscription, RestrictionReasonCodeQuotaID}
}
// RestrictionType enumerates the values for restriction type.
type RestrictionType string
const (
// RestrictionTypeLocation ...
RestrictionTypeLocation RestrictionType = "Location"
)
// PossibleRestrictionTypeValues returns an array of possible values for the RestrictionType const type.
func PossibleRestrictionTypeValues() []RestrictionType {
return []RestrictionType{RestrictionTypeLocation}
}
// ScaleType enumerates the values for scale type.
type ScaleType string
const (
// ScaleTypeAutomatic The user is permitted to scale this SKU in and out.
ScaleTypeAutomatic ScaleType = "Automatic"
// ScaleTypeManual The user must manually scale this SKU in and out.
ScaleTypeManual ScaleType = "Manual"
// ScaleTypeNone The capacity is not adjustable in any way.
ScaleTypeNone ScaleType = "None"
)
// PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
func PossibleScaleTypeValues() []ScaleType {
return []ScaleType{ScaleTypeAutomatic, ScaleTypeManual, ScaleTypeNone}
}
// ShutdownOnIdleMode enumerates the values for shutdown on idle mode.
type ShutdownOnIdleMode string
const (
// ShutdownOnIdleModeLowUsage The VM will be considered as idle when user is absent and the resource (CPU
// and disk) consumption is low.
ShutdownOnIdleModeLowUsage ShutdownOnIdleMode = "LowUsage"
// ShutdownOnIdleModeNone The VM won't be shut down when it is idle.
ShutdownOnIdleModeNone ShutdownOnIdleMode = "None"
// ShutdownOnIdleModeUserAbsence The VM will be considered as idle when there is no keyboard or mouse
// input.
ShutdownOnIdleModeUserAbsence ShutdownOnIdleMode = "UserAbsence"
)
// PossibleShutdownOnIdleModeValues returns an array of possible values for the ShutdownOnIdleMode const type.
func PossibleShutdownOnIdleModeValues() []ShutdownOnIdleMode {
return []ShutdownOnIdleMode{ShutdownOnIdleModeLowUsage, ShutdownOnIdleModeNone, ShutdownOnIdleModeUserAbsence}
}
// SkuTier enumerates the values for sku tier.
type SkuTier string
const (
// SkuTierBasic ...
SkuTierBasic SkuTier = "Basic"
// SkuTierFree ...
SkuTierFree SkuTier = "Free"
// SkuTierPremium ...
SkuTierPremium SkuTier = "Premium"
// SkuTierStandard ...
SkuTierStandard SkuTier = "Standard"
)
// PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
func PossibleSkuTierValues() []SkuTier {
return []SkuTier{SkuTierBasic, SkuTierFree, SkuTierPremium, SkuTierStandard}
}
// SkuTierEnum enumerates the values for sku tier enum.
type SkuTierEnum string
const (
// SkuTierEnumPremium ...
SkuTierEnumPremium SkuTierEnum = "Premium"
// SkuTierEnumStandard ...
SkuTierEnumStandard SkuTierEnum = "Standard"
)
// PossibleSkuTierEnumValues returns an array of possible values for the SkuTierEnum const type.
func PossibleSkuTierEnumValues() []SkuTierEnum {
return []SkuTierEnum{SkuTierEnumPremium, SkuTierEnumStandard}
}
// UsageUnit enumerates the values for usage unit.
type UsageUnit string
const (
// UsageUnitCount ...
UsageUnitCount UsageUnit = "Count"
)
// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type.
func PossibleUsageUnitValues() []UsageUnit {
return []UsageUnit{UsageUnitCount}
}
// VirtualMachineState enumerates the values for virtual machine state.
type VirtualMachineState string
const (
// VirtualMachineStateRedeploying The VM is being redeployed.
VirtualMachineStateRedeploying VirtualMachineState = "Redeploying"
// VirtualMachineStateReimaging The VM is being reimaged.
VirtualMachineStateReimaging VirtualMachineState = "Reimaging"
// VirtualMachineStateResettingPassword The VM password is being reset.
VirtualMachineStateResettingPassword VirtualMachineState = "ResettingPassword"
// VirtualMachineStateRunning The VM is running.
VirtualMachineStateRunning VirtualMachineState = "Running"
// VirtualMachineStateStarting The VM is starting.
VirtualMachineStateStarting VirtualMachineState = "Starting"
// VirtualMachineStateStopped The VM is currently stopped.
VirtualMachineStateStopped VirtualMachineState = "Stopped"
// VirtualMachineStateStopping The VM is stopping.
VirtualMachineStateStopping VirtualMachineState = "Stopping"
)
// PossibleVirtualMachineStateValues returns an array of possible values for the VirtualMachineState const type.
func PossibleVirtualMachineStateValues() []VirtualMachineState {
return []VirtualMachineState{VirtualMachineStateRedeploying, VirtualMachineStateReimaging, VirtualMachineStateResettingPassword, VirtualMachineStateRunning, VirtualMachineStateStarting, VirtualMachineStateStopped, VirtualMachineStateStopping}
}
// VirtualMachineType enumerates the values for virtual machine type.
type VirtualMachineType string
const (
// VirtualMachineTypeTemplate A template VM
VirtualMachineTypeTemplate VirtualMachineType = "Template"
// VirtualMachineTypeUser A user VM
VirtualMachineTypeUser VirtualMachineType = "User"
)
// PossibleVirtualMachineTypeValues returns an array of possible values for the VirtualMachineType const type.
func PossibleVirtualMachineTypeValues() []VirtualMachineType {
return []VirtualMachineType{VirtualMachineTypeTemplate, VirtualMachineTypeUser}
}
// WeekDay enumerates the values for week day.
type WeekDay string
const (
// WeekDayFriday Schedule will run on Friday
WeekDayFriday WeekDay = "Friday"
// WeekDayMonday Schedule will run on Monday
WeekDayMonday WeekDay = "Monday"
// WeekDaySaturday Schedule will run on Saturday
WeekDaySaturday WeekDay = "Saturday"
// WeekDaySunday Schedule will run on Sunday
WeekDaySunday WeekDay = "Sunday"
// WeekDayThursday Schedule will run on Thursday
WeekDayThursday WeekDay = "Thursday"
// WeekDayTuesday Schedule will run on Tuesday
WeekDayTuesday WeekDay = "Tuesday"
// WeekDayWednesday Schedule will run on Wednesday
WeekDayWednesday WeekDay = "Wednesday"
)
// PossibleWeekDayValues returns an array of possible values for the WeekDay const type.
func PossibleWeekDayValues() []WeekDay {
return []WeekDay{WeekDayFriday, WeekDayMonday, WeekDaySaturday, WeekDaySunday, WeekDayThursday, WeekDayTuesday, WeekDayWednesday}
}