forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
492 lines (404 loc) · 14.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
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
package containerregistry
// 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.
// Action enumerates the values for action.
type Action string
const (
// Allow ...
Allow Action = "Allow"
)
// PossibleActionValues returns an array of possible values for the Action const type.
func PossibleActionValues() []Action {
return []Action{Allow}
}
// Architecture enumerates the values for architecture.
type Architecture string
const (
// Amd64 ...
Amd64 Architecture = "amd64"
// Arm ...
Arm Architecture = "arm"
// X86 ...
X86 Architecture = "x86"
)
// PossibleArchitectureValues returns an array of possible values for the Architecture const type.
func PossibleArchitectureValues() []Architecture {
return []Architecture{Amd64, Arm, X86}
}
// BaseImageDependencyType enumerates the values for base image dependency type.
type BaseImageDependencyType string
const (
// BuildTime ...
BuildTime BaseImageDependencyType = "BuildTime"
// RunTime ...
RunTime BaseImageDependencyType = "RunTime"
)
// PossibleBaseImageDependencyTypeValues returns an array of possible values for the BaseImageDependencyType const type.
func PossibleBaseImageDependencyTypeValues() []BaseImageDependencyType {
return []BaseImageDependencyType{BuildTime, RunTime}
}
// BaseImageTriggerType enumerates the values for base image trigger type.
type BaseImageTriggerType string
const (
// All ...
All BaseImageTriggerType = "All"
// Runtime ...
Runtime BaseImageTriggerType = "Runtime"
)
// PossibleBaseImageTriggerTypeValues returns an array of possible values for the BaseImageTriggerType const type.
func PossibleBaseImageTriggerTypeValues() []BaseImageTriggerType {
return []BaseImageTriggerType{All, Runtime}
}
// DefaultAction enumerates the values for default action.
type DefaultAction string
const (
// DefaultActionAllow ...
DefaultActionAllow DefaultAction = "Allow"
// DefaultActionDeny ...
DefaultActionDeny DefaultAction = "Deny"
)
// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type.
func PossibleDefaultActionValues() []DefaultAction {
return []DefaultAction{DefaultActionAllow, DefaultActionDeny}
}
// ImportMode enumerates the values for import mode.
type ImportMode string
const (
// Force ...
Force ImportMode = "Force"
// NoForce ...
NoForce ImportMode = "NoForce"
)
// PossibleImportModeValues returns an array of possible values for the ImportMode const type.
func PossibleImportModeValues() []ImportMode {
return []ImportMode{Force, NoForce}
}
// OS enumerates the values for os.
type OS string
const (
// Linux ...
Linux OS = "Linux"
// Windows ...
Windows OS = "Windows"
)
// PossibleOSValues returns an array of possible values for the OS const type.
func PossibleOSValues() []OS {
return []OS{Linux, Windows}
}
// PasswordName enumerates the values for password name.
type PasswordName string
const (
// Password ...
Password PasswordName = "password"
// Password2 ...
Password2 PasswordName = "password2"
)
// PossiblePasswordNameValues returns an array of possible values for the PasswordName const type.
func PossiblePasswordNameValues() []PasswordName {
return []PasswordName{Password, Password2}
}
// PolicyStatus enumerates the values for policy status.
type PolicyStatus string
const (
// Disabled ...
Disabled PolicyStatus = "disabled"
// Enabled ...
Enabled PolicyStatus = "enabled"
)
// PossiblePolicyStatusValues returns an array of possible values for the PolicyStatus const type.
func PossiblePolicyStatusValues() []PolicyStatus {
return []PolicyStatus{Disabled, Enabled}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Canceled ...
Canceled ProvisioningState = "Canceled"
// Creating ...
Creating ProvisioningState = "Creating"
// Deleting ...
Deleting ProvisioningState = "Deleting"
// Failed ...
Failed ProvisioningState = "Failed"
// Succeeded ...
Succeeded ProvisioningState = "Succeeded"
// Updating ...
Updating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Canceled, Creating, Deleting, Failed, Succeeded, Updating}
}
// RegistryUsageUnit enumerates the values for registry usage unit.
type RegistryUsageUnit string
const (
// Bytes ...
Bytes RegistryUsageUnit = "Bytes"
// Count ...
Count RegistryUsageUnit = "Count"
)
// PossibleRegistryUsageUnitValues returns an array of possible values for the RegistryUsageUnit const type.
func PossibleRegistryUsageUnitValues() []RegistryUsageUnit {
return []RegistryUsageUnit{Bytes, Count}
}
// RunStatus enumerates the values for run status.
type RunStatus string
const (
// RunStatusCanceled ...
RunStatusCanceled RunStatus = "Canceled"
// RunStatusError ...
RunStatusError RunStatus = "Error"
// RunStatusFailed ...
RunStatusFailed RunStatus = "Failed"
// RunStatusQueued ...
RunStatusQueued RunStatus = "Queued"
// RunStatusRunning ...
RunStatusRunning RunStatus = "Running"
// RunStatusStarted ...
RunStatusStarted RunStatus = "Started"
// RunStatusSucceeded ...
RunStatusSucceeded RunStatus = "Succeeded"
// RunStatusTimeout ...
RunStatusTimeout RunStatus = "Timeout"
)
// PossibleRunStatusValues returns an array of possible values for the RunStatus const type.
func PossibleRunStatusValues() []RunStatus {
return []RunStatus{RunStatusCanceled, RunStatusError, RunStatusFailed, RunStatusQueued, RunStatusRunning, RunStatusStarted, RunStatusSucceeded, RunStatusTimeout}
}
// RunType enumerates the values for run type.
type RunType string
const (
// AutoBuild ...
AutoBuild RunType = "AutoBuild"
// AutoRun ...
AutoRun RunType = "AutoRun"
// QuickBuild ...
QuickBuild RunType = "QuickBuild"
// QuickRun ...
QuickRun RunType = "QuickRun"
)
// PossibleRunTypeValues returns an array of possible values for the RunType const type.
func PossibleRunTypeValues() []RunType {
return []RunType{AutoBuild, AutoRun, QuickBuild, QuickRun}
}
// SecretObjectType enumerates the values for secret object type.
type SecretObjectType string
const (
// Opaque ...
Opaque SecretObjectType = "Opaque"
)
// PossibleSecretObjectTypeValues returns an array of possible values for the SecretObjectType const type.
func PossibleSecretObjectTypeValues() []SecretObjectType {
return []SecretObjectType{Opaque}
}
// SkuName enumerates the values for sku name.
type SkuName string
const (
// Basic ...
Basic SkuName = "Basic"
// Classic ...
Classic SkuName = "Classic"
// Premium ...
Premium SkuName = "Premium"
// Standard ...
Standard SkuName = "Standard"
)
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
func PossibleSkuNameValues() []SkuName {
return []SkuName{Basic, Classic, Premium, Standard}
}
// SkuTier enumerates the values for sku tier.
type SkuTier string
const (
// SkuTierBasic ...
SkuTierBasic SkuTier = "Basic"
// SkuTierClassic ...
SkuTierClassic SkuTier = "Classic"
// 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, SkuTierClassic, SkuTierPremium, SkuTierStandard}
}
// SourceControlType enumerates the values for source control type.
type SourceControlType string
const (
// Github ...
Github SourceControlType = "Github"
// VisualStudioTeamService ...
VisualStudioTeamService SourceControlType = "VisualStudioTeamService"
)
// PossibleSourceControlTypeValues returns an array of possible values for the SourceControlType const type.
func PossibleSourceControlTypeValues() []SourceControlType {
return []SourceControlType{Github, VisualStudioTeamService}
}
// SourceRegistryLoginMode enumerates the values for source registry login mode.
type SourceRegistryLoginMode string
const (
// Default ...
Default SourceRegistryLoginMode = "Default"
// None ...
None SourceRegistryLoginMode = "None"
)
// PossibleSourceRegistryLoginModeValues returns an array of possible values for the SourceRegistryLoginMode const type.
func PossibleSourceRegistryLoginModeValues() []SourceRegistryLoginMode {
return []SourceRegistryLoginMode{Default, None}
}
// SourceTriggerEvent enumerates the values for source trigger event.
type SourceTriggerEvent string
const (
// Commit ...
Commit SourceTriggerEvent = "commit"
// Pullrequest ...
Pullrequest SourceTriggerEvent = "pullrequest"
)
// PossibleSourceTriggerEventValues returns an array of possible values for the SourceTriggerEvent const type.
func PossibleSourceTriggerEventValues() []SourceTriggerEvent {
return []SourceTriggerEvent{Commit, Pullrequest}
}
// TaskStatus enumerates the values for task status.
type TaskStatus string
const (
// TaskStatusDisabled ...
TaskStatusDisabled TaskStatus = "Disabled"
// TaskStatusEnabled ...
TaskStatusEnabled TaskStatus = "Enabled"
)
// PossibleTaskStatusValues returns an array of possible values for the TaskStatus const type.
func PossibleTaskStatusValues() []TaskStatus {
return []TaskStatus{TaskStatusDisabled, TaskStatusEnabled}
}
// TokenType enumerates the values for token type.
type TokenType string
const (
// OAuth ...
OAuth TokenType = "OAuth"
// PAT ...
PAT TokenType = "PAT"
)
// PossibleTokenTypeValues returns an array of possible values for the TokenType const type.
func PossibleTokenTypeValues() []TokenType {
return []TokenType{OAuth, PAT}
}
// TriggerStatus enumerates the values for trigger status.
type TriggerStatus string
const (
// TriggerStatusDisabled ...
TriggerStatusDisabled TriggerStatus = "Disabled"
// TriggerStatusEnabled ...
TriggerStatusEnabled TriggerStatus = "Enabled"
)
// PossibleTriggerStatusValues returns an array of possible values for the TriggerStatus const type.
func PossibleTriggerStatusValues() []TriggerStatus {
return []TriggerStatus{TriggerStatusDisabled, TriggerStatusEnabled}
}
// TrustPolicyType enumerates the values for trust policy type.
type TrustPolicyType string
const (
// Notary ...
Notary TrustPolicyType = "Notary"
)
// PossibleTrustPolicyTypeValues returns an array of possible values for the TrustPolicyType const type.
func PossibleTrustPolicyTypeValues() []TrustPolicyType {
return []TrustPolicyType{Notary}
}
// Type enumerates the values for type.
type Type string
const (
// TypeDockerBuildRequest ...
TypeDockerBuildRequest Type = "DockerBuildRequest"
// TypeEncodedTaskRunRequest ...
TypeEncodedTaskRunRequest Type = "EncodedTaskRunRequest"
// TypeFileTaskRunRequest ...
TypeFileTaskRunRequest Type = "FileTaskRunRequest"
// TypeRunRequest ...
TypeRunRequest Type = "RunRequest"
// TypeTaskRunRequest ...
TypeTaskRunRequest Type = "TaskRunRequest"
)
// PossibleTypeValues returns an array of possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{TypeDockerBuildRequest, TypeEncodedTaskRunRequest, TypeFileTaskRunRequest, TypeRunRequest, TypeTaskRunRequest}
}
// TypeBasicTaskStepProperties enumerates the values for type basic task step properties.
type TypeBasicTaskStepProperties string
const (
// TypeDocker ...
TypeDocker TypeBasicTaskStepProperties = "Docker"
// TypeEncodedTask ...
TypeEncodedTask TypeBasicTaskStepProperties = "EncodedTask"
// TypeFileTask ...
TypeFileTask TypeBasicTaskStepProperties = "FileTask"
// TypeTaskStepProperties ...
TypeTaskStepProperties TypeBasicTaskStepProperties = "TaskStepProperties"
)
// PossibleTypeBasicTaskStepPropertiesValues returns an array of possible values for the TypeBasicTaskStepProperties const type.
func PossibleTypeBasicTaskStepPropertiesValues() []TypeBasicTaskStepProperties {
return []TypeBasicTaskStepProperties{TypeDocker, TypeEncodedTask, TypeFileTask, TypeTaskStepProperties}
}
// TypeBasicTaskStepUpdateParameters enumerates the values for type basic task step update parameters.
type TypeBasicTaskStepUpdateParameters string
const (
// TypeBasicTaskStepUpdateParametersTypeDocker ...
TypeBasicTaskStepUpdateParametersTypeDocker TypeBasicTaskStepUpdateParameters = "Docker"
// TypeBasicTaskStepUpdateParametersTypeEncodedTask ...
TypeBasicTaskStepUpdateParametersTypeEncodedTask TypeBasicTaskStepUpdateParameters = "EncodedTask"
// TypeBasicTaskStepUpdateParametersTypeFileTask ...
TypeBasicTaskStepUpdateParametersTypeFileTask TypeBasicTaskStepUpdateParameters = "FileTask"
// TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters ...
TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters TypeBasicTaskStepUpdateParameters = "TaskStepUpdateParameters"
)
// PossibleTypeBasicTaskStepUpdateParametersValues returns an array of possible values for the TypeBasicTaskStepUpdateParameters const type.
func PossibleTypeBasicTaskStepUpdateParametersValues() []TypeBasicTaskStepUpdateParameters {
return []TypeBasicTaskStepUpdateParameters{TypeBasicTaskStepUpdateParametersTypeDocker, TypeBasicTaskStepUpdateParametersTypeEncodedTask, TypeBasicTaskStepUpdateParametersTypeFileTask, TypeBasicTaskStepUpdateParametersTypeTaskStepUpdateParameters}
}
// Variant enumerates the values for variant.
type Variant string
const (
// V6 ...
V6 Variant = "v6"
// V7 ...
V7 Variant = "v7"
// V8 ...
V8 Variant = "v8"
)
// PossibleVariantValues returns an array of possible values for the Variant const type.
func PossibleVariantValues() []Variant {
return []Variant{V6, V7, V8}
}
// WebhookAction enumerates the values for webhook action.
type WebhookAction string
const (
// ChartDelete ...
ChartDelete WebhookAction = "chart_delete"
// ChartPush ...
ChartPush WebhookAction = "chart_push"
// Delete ...
Delete WebhookAction = "delete"
// Push ...
Push WebhookAction = "push"
// Quarantine ...
Quarantine WebhookAction = "quarantine"
)
// PossibleWebhookActionValues returns an array of possible values for the WebhookAction const type.
func PossibleWebhookActionValues() []WebhookAction {
return []WebhookAction{ChartDelete, ChartPush, Delete, Push, Quarantine}
}
// WebhookStatus enumerates the values for webhook status.
type WebhookStatus string
const (
// WebhookStatusDisabled ...
WebhookStatusDisabled WebhookStatus = "disabled"
// WebhookStatusEnabled ...
WebhookStatusEnabled WebhookStatus = "enabled"
)
// PossibleWebhookStatusValues returns an array of possible values for the WebhookStatus const type.
func PossibleWebhookStatusValues() []WebhookStatus {
return []WebhookStatus{WebhookStatusDisabled, WebhookStatusEnabled}
}