/
constants.go
746 lines (647 loc) · 26.1 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
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
//go:build go1.18
// +build go1.18
// 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. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armautomation
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation"
moduleVersion = "v0.9.0"
)
// AgentRegistrationKeyName - Gets or sets the agent registration key name - primary or secondary.
type AgentRegistrationKeyName string
const (
AgentRegistrationKeyNamePrimary AgentRegistrationKeyName = "primary"
AgentRegistrationKeyNameSecondary AgentRegistrationKeyName = "secondary"
)
// PossibleAgentRegistrationKeyNameValues returns the possible values for the AgentRegistrationKeyName const type.
func PossibleAgentRegistrationKeyNameValues() []AgentRegistrationKeyName {
return []AgentRegistrationKeyName{
AgentRegistrationKeyNamePrimary,
AgentRegistrationKeyNameSecondary,
}
}
// AutomationAccountState - Gets status of account.
type AutomationAccountState string
const (
AutomationAccountStateOk AutomationAccountState = "Ok"
AutomationAccountStateSuspended AutomationAccountState = "Suspended"
AutomationAccountStateUnavailable AutomationAccountState = "Unavailable"
)
// PossibleAutomationAccountStateValues returns the possible values for the AutomationAccountState const type.
func PossibleAutomationAccountStateValues() []AutomationAccountState {
return []AutomationAccountState{
AutomationAccountStateOk,
AutomationAccountStateSuspended,
AutomationAccountStateUnavailable,
}
}
// AutomationKeyName - Automation key name.
type AutomationKeyName string
const (
AutomationKeyNamePrimary AutomationKeyName = "Primary"
AutomationKeyNameSecondary AutomationKeyName = "Secondary"
)
// PossibleAutomationKeyNameValues returns the possible values for the AutomationKeyName const type.
func PossibleAutomationKeyNameValues() []AutomationKeyName {
return []AutomationKeyName{
AutomationKeyNamePrimary,
AutomationKeyNameSecondary,
}
}
// AutomationKeyPermissions - Automation key permissions.
type AutomationKeyPermissions string
const (
AutomationKeyPermissionsFull AutomationKeyPermissions = "Full"
AutomationKeyPermissionsRead AutomationKeyPermissions = "Read"
)
// PossibleAutomationKeyPermissionsValues returns the possible values for the AutomationKeyPermissions const type.
func PossibleAutomationKeyPermissionsValues() []AutomationKeyPermissions {
return []AutomationKeyPermissions{
AutomationKeyPermissionsFull,
AutomationKeyPermissionsRead,
}
}
// ContentSourceType - Gets or sets the content source type.
type ContentSourceType string
const (
ContentSourceTypeEmbeddedContent ContentSourceType = "embeddedContent"
ContentSourceTypeURI ContentSourceType = "uri"
)
// PossibleContentSourceTypeValues returns the possible values for the ContentSourceType const type.
func PossibleContentSourceTypeValues() []ContentSourceType {
return []ContentSourceType{
ContentSourceTypeEmbeddedContent,
ContentSourceTypeURI,
}
}
type CountType string
const (
CountTypeNodeconfiguration CountType = "nodeconfiguration"
CountTypeStatus CountType = "status"
)
// PossibleCountTypeValues returns the possible values for the CountType const type.
func PossibleCountTypeValues() []CountType {
return []CountType{
CountTypeNodeconfiguration,
CountTypeStatus,
}
}
// 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,
}
}
// DscConfigurationState - Gets or sets the state of the configuration.
type DscConfigurationState string
const (
DscConfigurationStateEdit DscConfigurationState = "Edit"
DscConfigurationStateNew DscConfigurationState = "New"
DscConfigurationStatePublished DscConfigurationState = "Published"
)
// PossibleDscConfigurationStateValues returns the possible values for the DscConfigurationState const type.
func PossibleDscConfigurationStateValues() []DscConfigurationState {
return []DscConfigurationState{
DscConfigurationStateEdit,
DscConfigurationStateNew,
DscConfigurationStatePublished,
}
}
// EncryptionKeySourceType - Encryption Key Source
type EncryptionKeySourceType string
const (
EncryptionKeySourceTypeMicrosoftAutomation EncryptionKeySourceType = "Microsoft.Automation"
EncryptionKeySourceTypeMicrosoftKeyvault EncryptionKeySourceType = "Microsoft.Keyvault"
)
// PossibleEncryptionKeySourceTypeValues returns the possible values for the EncryptionKeySourceType const type.
func PossibleEncryptionKeySourceTypeValues() []EncryptionKeySourceType {
return []EncryptionKeySourceType{
EncryptionKeySourceTypeMicrosoftAutomation,
EncryptionKeySourceTypeMicrosoftKeyvault,
}
}
// GraphRunbookType - Runbook Type
type GraphRunbookType string
const (
GraphRunbookTypeGraphPowerShell GraphRunbookType = "GraphPowerShell"
GraphRunbookTypeGraphPowerShellWorkflow GraphRunbookType = "GraphPowerShellWorkflow"
)
// PossibleGraphRunbookTypeValues returns the possible values for the GraphRunbookType const type.
func PossibleGraphRunbookTypeValues() []GraphRunbookType {
return []GraphRunbookType{
GraphRunbookTypeGraphPowerShell,
GraphRunbookTypeGraphPowerShellWorkflow,
}
}
// GroupTypeEnum - Type of the HybridWorkerGroup.
type GroupTypeEnum string
const (
GroupTypeEnumSystem GroupTypeEnum = "System"
GroupTypeEnumUser GroupTypeEnum = "User"
)
// PossibleGroupTypeEnumValues returns the possible values for the GroupTypeEnum const type.
func PossibleGroupTypeEnumValues() []GroupTypeEnum {
return []GroupTypeEnum{
GroupTypeEnumSystem,
GroupTypeEnumUser,
}
}
type HTTPStatusCode string
const (
HTTPStatusCodeAccepted HTTPStatusCode = "Accepted"
HTTPStatusCodeAmbiguous HTTPStatusCode = "Ambiguous"
HTTPStatusCodeBadGateway HTTPStatusCode = "BadGateway"
HTTPStatusCodeBadRequest HTTPStatusCode = "BadRequest"
HTTPStatusCodeConflict HTTPStatusCode = "Conflict"
HTTPStatusCodeContinue HTTPStatusCode = "Continue"
HTTPStatusCodeCreated HTTPStatusCode = "Created"
HTTPStatusCodeExpectationFailed HTTPStatusCode = "ExpectationFailed"
HTTPStatusCodeForbidden HTTPStatusCode = "Forbidden"
HTTPStatusCodeFound HTTPStatusCode = "Found"
HTTPStatusCodeGatewayTimeout HTTPStatusCode = "GatewayTimeout"
HTTPStatusCodeGone HTTPStatusCode = "Gone"
HTTPStatusCodeHTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
HTTPStatusCodeInternalServerError HTTPStatusCode = "InternalServerError"
HTTPStatusCodeLengthRequired HTTPStatusCode = "LengthRequired"
HTTPStatusCodeMethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
HTTPStatusCodeMoved HTTPStatusCode = "Moved"
HTTPStatusCodeMovedPermanently HTTPStatusCode = "MovedPermanently"
HTTPStatusCodeMultipleChoices HTTPStatusCode = "MultipleChoices"
HTTPStatusCodeNoContent HTTPStatusCode = "NoContent"
HTTPStatusCodeNonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
HTTPStatusCodeNotAcceptable HTTPStatusCode = "NotAcceptable"
HTTPStatusCodeNotFound HTTPStatusCode = "NotFound"
HTTPStatusCodeNotImplemented HTTPStatusCode = "NotImplemented"
HTTPStatusCodeNotModified HTTPStatusCode = "NotModified"
HTTPStatusCodeOK HTTPStatusCode = "OK"
HTTPStatusCodePartialContent HTTPStatusCode = "PartialContent"
HTTPStatusCodePaymentRequired HTTPStatusCode = "PaymentRequired"
HTTPStatusCodePreconditionFailed HTTPStatusCode = "PreconditionFailed"
HTTPStatusCodeProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
HTTPStatusCodeRedirect HTTPStatusCode = "Redirect"
HTTPStatusCodeRedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb"
HTTPStatusCodeRedirectMethod HTTPStatusCode = "RedirectMethod"
HTTPStatusCodeRequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
HTTPStatusCodeRequestTimeout HTTPStatusCode = "RequestTimeout"
HTTPStatusCodeRequestURITooLong HTTPStatusCode = "RequestUriTooLong"
HTTPStatusCodeRequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
HTTPStatusCodeResetContent HTTPStatusCode = "ResetContent"
HTTPStatusCodeSeeOther HTTPStatusCode = "SeeOther"
HTTPStatusCodeServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
HTTPStatusCodeSwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
HTTPStatusCodeTemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
HTTPStatusCodeUnauthorized HTTPStatusCode = "Unauthorized"
HTTPStatusCodeUnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
HTTPStatusCodeUnused HTTPStatusCode = "Unused"
HTTPStatusCodeUpgradeRequired HTTPStatusCode = "UpgradeRequired"
HTTPStatusCodeUseProxy HTTPStatusCode = "UseProxy"
)
// PossibleHTTPStatusCodeValues returns the possible values for the HTTPStatusCode const type.
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return []HTTPStatusCode{
HTTPStatusCodeAccepted,
HTTPStatusCodeAmbiguous,
HTTPStatusCodeBadGateway,
HTTPStatusCodeBadRequest,
HTTPStatusCodeConflict,
HTTPStatusCodeContinue,
HTTPStatusCodeCreated,
HTTPStatusCodeExpectationFailed,
HTTPStatusCodeForbidden,
HTTPStatusCodeFound,
HTTPStatusCodeGatewayTimeout,
HTTPStatusCodeGone,
HTTPStatusCodeHTTPVersionNotSupported,
HTTPStatusCodeInternalServerError,
HTTPStatusCodeLengthRequired,
HTTPStatusCodeMethodNotAllowed,
HTTPStatusCodeMoved,
HTTPStatusCodeMovedPermanently,
HTTPStatusCodeMultipleChoices,
HTTPStatusCodeNoContent,
HTTPStatusCodeNonAuthoritativeInformation,
HTTPStatusCodeNotAcceptable,
HTTPStatusCodeNotFound,
HTTPStatusCodeNotImplemented,
HTTPStatusCodeNotModified,
HTTPStatusCodeOK,
HTTPStatusCodePartialContent,
HTTPStatusCodePaymentRequired,
HTTPStatusCodePreconditionFailed,
HTTPStatusCodeProxyAuthenticationRequired,
HTTPStatusCodeRedirect,
HTTPStatusCodeRedirectKeepVerb,
HTTPStatusCodeRedirectMethod,
HTTPStatusCodeRequestEntityTooLarge,
HTTPStatusCodeRequestTimeout,
HTTPStatusCodeRequestURITooLong,
HTTPStatusCodeRequestedRangeNotSatisfiable,
HTTPStatusCodeResetContent,
HTTPStatusCodeSeeOther,
HTTPStatusCodeServiceUnavailable,
HTTPStatusCodeSwitchingProtocols,
HTTPStatusCodeTemporaryRedirect,
HTTPStatusCodeUnauthorized,
HTTPStatusCodeUnsupportedMediaType,
HTTPStatusCodeUnused,
HTTPStatusCodeUpgradeRequired,
HTTPStatusCodeUseProxy,
}
}
// JobProvisioningState - The provisioning state of the resource.
type JobProvisioningState string
const (
JobProvisioningStateFailed JobProvisioningState = "Failed"
JobProvisioningStateProcessing JobProvisioningState = "Processing"
JobProvisioningStateSucceeded JobProvisioningState = "Succeeded"
JobProvisioningStateSuspended JobProvisioningState = "Suspended"
)
// PossibleJobProvisioningStateValues returns the possible values for the JobProvisioningState const type.
func PossibleJobProvisioningStateValues() []JobProvisioningState {
return []JobProvisioningState{
JobProvisioningStateFailed,
JobProvisioningStateProcessing,
JobProvisioningStateSucceeded,
JobProvisioningStateSuspended,
}
}
// JobStatus - Gets or sets the status of the job.
type JobStatus string
const (
JobStatusActivating JobStatus = "Activating"
JobStatusBlocked JobStatus = "Blocked"
JobStatusCompleted JobStatus = "Completed"
JobStatusDisconnected JobStatus = "Disconnected"
JobStatusFailed JobStatus = "Failed"
JobStatusNew JobStatus = "New"
JobStatusRemoving JobStatus = "Removing"
JobStatusResuming JobStatus = "Resuming"
JobStatusRunning JobStatus = "Running"
JobStatusStopped JobStatus = "Stopped"
JobStatusStopping JobStatus = "Stopping"
JobStatusSuspended JobStatus = "Suspended"
JobStatusSuspending JobStatus = "Suspending"
)
// PossibleJobStatusValues returns the possible values for the JobStatus const type.
func PossibleJobStatusValues() []JobStatus {
return []JobStatus{
JobStatusActivating,
JobStatusBlocked,
JobStatusCompleted,
JobStatusDisconnected,
JobStatusFailed,
JobStatusNew,
JobStatusRemoving,
JobStatusResuming,
JobStatusRunning,
JobStatusStopped,
JobStatusStopping,
JobStatusSuspended,
JobStatusSuspending,
}
}
// JobStreamType - Gets or sets the stream type.
type JobStreamType string
const (
JobStreamTypeAny JobStreamType = "Any"
JobStreamTypeDebug JobStreamType = "Debug"
JobStreamTypeError JobStreamType = "Error"
JobStreamTypeOutput JobStreamType = "Output"
JobStreamTypeProgress JobStreamType = "Progress"
JobStreamTypeVerbose JobStreamType = "Verbose"
JobStreamTypeWarning JobStreamType = "Warning"
)
// PossibleJobStreamTypeValues returns the possible values for the JobStreamType const type.
func PossibleJobStreamTypeValues() []JobStreamType {
return []JobStreamType{
JobStreamTypeAny,
JobStreamTypeDebug,
JobStreamTypeError,
JobStreamTypeOutput,
JobStreamTypeProgress,
JobStreamTypeVerbose,
JobStreamTypeWarning,
}
}
// LinuxUpdateClasses - Update classifications included in the software update configuration.
type LinuxUpdateClasses string
const (
LinuxUpdateClassesCritical LinuxUpdateClasses = "Critical"
LinuxUpdateClassesOther LinuxUpdateClasses = "Other"
LinuxUpdateClassesSecurity LinuxUpdateClasses = "Security"
LinuxUpdateClassesUnclassified LinuxUpdateClasses = "Unclassified"
)
// PossibleLinuxUpdateClassesValues returns the possible values for the LinuxUpdateClasses const type.
func PossibleLinuxUpdateClassesValues() []LinuxUpdateClasses {
return []LinuxUpdateClasses{
LinuxUpdateClassesCritical,
LinuxUpdateClassesOther,
LinuxUpdateClassesSecurity,
LinuxUpdateClassesUnclassified,
}
}
// ModuleProvisioningState - Gets or sets the provisioning state of the module.
type ModuleProvisioningState string
const (
ModuleProvisioningStateActivitiesStored ModuleProvisioningState = "ActivitiesStored"
ModuleProvisioningStateCancelled ModuleProvisioningState = "Cancelled"
ModuleProvisioningStateConnectionTypeImported ModuleProvisioningState = "ConnectionTypeImported"
ModuleProvisioningStateContentDownloaded ModuleProvisioningState = "ContentDownloaded"
ModuleProvisioningStateContentRetrieved ModuleProvisioningState = "ContentRetrieved"
ModuleProvisioningStateContentStored ModuleProvisioningState = "ContentStored"
ModuleProvisioningStateContentValidated ModuleProvisioningState = "ContentValidated"
ModuleProvisioningStateCreated ModuleProvisioningState = "Created"
ModuleProvisioningStateCreating ModuleProvisioningState = "Creating"
ModuleProvisioningStateFailed ModuleProvisioningState = "Failed"
ModuleProvisioningStateModuleDataStored ModuleProvisioningState = "ModuleDataStored"
ModuleProvisioningStateModuleImportRunbookComplete ModuleProvisioningState = "ModuleImportRunbookComplete"
ModuleProvisioningStateRunningImportModuleRunbook ModuleProvisioningState = "RunningImportModuleRunbook"
ModuleProvisioningStateStartingImportModuleRunbook ModuleProvisioningState = "StartingImportModuleRunbook"
ModuleProvisioningStateSucceeded ModuleProvisioningState = "Succeeded"
ModuleProvisioningStateUpdating ModuleProvisioningState = "Updating"
)
// PossibleModuleProvisioningStateValues returns the possible values for the ModuleProvisioningState const type.
func PossibleModuleProvisioningStateValues() []ModuleProvisioningState {
return []ModuleProvisioningState{
ModuleProvisioningStateActivitiesStored,
ModuleProvisioningStateCancelled,
ModuleProvisioningStateConnectionTypeImported,
ModuleProvisioningStateContentDownloaded,
ModuleProvisioningStateContentRetrieved,
ModuleProvisioningStateContentStored,
ModuleProvisioningStateContentValidated,
ModuleProvisioningStateCreated,
ModuleProvisioningStateCreating,
ModuleProvisioningStateFailed,
ModuleProvisioningStateModuleDataStored,
ModuleProvisioningStateModuleImportRunbookComplete,
ModuleProvisioningStateRunningImportModuleRunbook,
ModuleProvisioningStateStartingImportModuleRunbook,
ModuleProvisioningStateSucceeded,
ModuleProvisioningStateUpdating,
}
}
// OperatingSystemType - Target operating system for the software update configuration.
type OperatingSystemType string
const (
OperatingSystemTypeLinux OperatingSystemType = "Linux"
OperatingSystemTypeWindows OperatingSystemType = "Windows"
)
// PossibleOperatingSystemTypeValues returns the possible values for the OperatingSystemType const type.
func PossibleOperatingSystemTypeValues() []OperatingSystemType {
return []OperatingSystemType{
OperatingSystemTypeLinux,
OperatingSystemTypeWindows,
}
}
// ProvisioningState - The provisioning state of the job.
type ProvisioningState string
const (
ProvisioningStateCompleted ProvisioningState = "Completed"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateRunning ProvisioningState = "Running"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
ProvisioningStateCompleted,
ProvisioningStateFailed,
ProvisioningStateRunning,
}
}
// ResourceIdentityType - The identity type.
type ResourceIdentityType string
const (
ResourceIdentityTypeNone ResourceIdentityType = "None"
ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)
// PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{
ResourceIdentityTypeNone,
ResourceIdentityTypeSystemAssigned,
ResourceIdentityTypeSystemAssignedUserAssigned,
ResourceIdentityTypeUserAssigned,
}
}
// RunbookState - Gets or sets the state of the runbook.
type RunbookState string
const (
RunbookStateEdit RunbookState = "Edit"
RunbookStateNew RunbookState = "New"
RunbookStatePublished RunbookState = "Published"
)
// PossibleRunbookStateValues returns the possible values for the RunbookState const type.
func PossibleRunbookStateValues() []RunbookState {
return []RunbookState{
RunbookStateEdit,
RunbookStateNew,
RunbookStatePublished,
}
}
// RunbookTypeEnum - Gets or sets the type of the runbook.
type RunbookTypeEnum string
const (
RunbookTypeEnumGraph RunbookTypeEnum = "Graph"
RunbookTypeEnumGraphPowerShell RunbookTypeEnum = "GraphPowerShell"
RunbookTypeEnumGraphPowerShellWorkflow RunbookTypeEnum = "GraphPowerShellWorkflow"
RunbookTypeEnumPowerShell RunbookTypeEnum = "PowerShell"
RunbookTypeEnumPowerShellWorkflow RunbookTypeEnum = "PowerShellWorkflow"
RunbookTypeEnumPython2 RunbookTypeEnum = "Python2"
RunbookTypeEnumPython3 RunbookTypeEnum = "Python3"
RunbookTypeEnumScript RunbookTypeEnum = "Script"
)
// PossibleRunbookTypeEnumValues returns the possible values for the RunbookTypeEnum const type.
func PossibleRunbookTypeEnumValues() []RunbookTypeEnum {
return []RunbookTypeEnum{
RunbookTypeEnumGraph,
RunbookTypeEnumGraphPowerShell,
RunbookTypeEnumGraphPowerShellWorkflow,
RunbookTypeEnumPowerShell,
RunbookTypeEnumPowerShellWorkflow,
RunbookTypeEnumPython2,
RunbookTypeEnumPython3,
RunbookTypeEnumScript,
}
}
// SKUNameEnum - Gets or sets the SKU name of the account.
type SKUNameEnum string
const (
SKUNameEnumBasic SKUNameEnum = "Basic"
SKUNameEnumFree SKUNameEnum = "Free"
)
// PossibleSKUNameEnumValues returns the possible values for the SKUNameEnum const type.
func PossibleSKUNameEnumValues() []SKUNameEnum {
return []SKUNameEnum{
SKUNameEnumBasic,
SKUNameEnumFree,
}
}
// ScheduleDay - Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
type ScheduleDay string
const (
ScheduleDayFriday ScheduleDay = "Friday"
ScheduleDayMonday ScheduleDay = "Monday"
ScheduleDaySaturday ScheduleDay = "Saturday"
ScheduleDaySunday ScheduleDay = "Sunday"
ScheduleDayThursday ScheduleDay = "Thursday"
ScheduleDayTuesday ScheduleDay = "Tuesday"
ScheduleDayWednesday ScheduleDay = "Wednesday"
)
// PossibleScheduleDayValues returns the possible values for the ScheduleDay const type.
func PossibleScheduleDayValues() []ScheduleDay {
return []ScheduleDay{
ScheduleDayFriday,
ScheduleDayMonday,
ScheduleDaySaturday,
ScheduleDaySunday,
ScheduleDayThursday,
ScheduleDayTuesday,
ScheduleDayWednesday,
}
}
// ScheduleFrequency - Gets or sets the frequency of the schedule.
type ScheduleFrequency string
const (
ScheduleFrequencyDay ScheduleFrequency = "Day"
ScheduleFrequencyHour ScheduleFrequency = "Hour"
// ScheduleFrequencyMinute - The minimum allowed interval for Minute schedules is 15 minutes.
ScheduleFrequencyMinute ScheduleFrequency = "Minute"
ScheduleFrequencyMonth ScheduleFrequency = "Month"
ScheduleFrequencyOneTime ScheduleFrequency = "OneTime"
ScheduleFrequencyWeek ScheduleFrequency = "Week"
)
// PossibleScheduleFrequencyValues returns the possible values for the ScheduleFrequency const type.
func PossibleScheduleFrequencyValues() []ScheduleFrequency {
return []ScheduleFrequency{
ScheduleFrequencyDay,
ScheduleFrequencyHour,
ScheduleFrequencyMinute,
ScheduleFrequencyMonth,
ScheduleFrequencyOneTime,
ScheduleFrequencyWeek,
}
}
// SourceType - The source type. Must be one of VsoGit, VsoTfvc, GitHub.
type SourceType string
const (
SourceTypeGitHub SourceType = "GitHub"
SourceTypeVsoGit SourceType = "VsoGit"
SourceTypeVsoTfvc SourceType = "VsoTfvc"
)
// PossibleSourceTypeValues returns the possible values for the SourceType const type.
func PossibleSourceTypeValues() []SourceType {
return []SourceType{
SourceTypeGitHub,
SourceTypeVsoGit,
SourceTypeVsoTfvc,
}
}
// StreamType - The type of the sync job stream.
type StreamType string
const (
StreamTypeError StreamType = "Error"
StreamTypeOutput StreamType = "Output"
)
// PossibleStreamTypeValues returns the possible values for the StreamType const type.
func PossibleStreamTypeValues() []StreamType {
return []StreamType{
StreamTypeError,
StreamTypeOutput,
}
}
// SyncType - The sync type.
type SyncType string
const (
SyncTypeFullSync SyncType = "FullSync"
SyncTypePartialSync SyncType = "PartialSync"
)
// PossibleSyncTypeValues returns the possible values for the SyncType const type.
func PossibleSyncTypeValues() []SyncType {
return []SyncType{
SyncTypeFullSync,
SyncTypePartialSync,
}
}
// TagOperators - Filter VMs by Any or All specified tags.
type TagOperators string
const (
TagOperatorsAll TagOperators = "All"
TagOperatorsAny TagOperators = "Any"
)
// PossibleTagOperatorsValues returns the possible values for the TagOperators const type.
func PossibleTagOperatorsValues() []TagOperators {
return []TagOperators{
TagOperatorsAll,
TagOperatorsAny,
}
}
// TokenType - The token type. Must be either PersonalAccessToken or Oauth.
type TokenType string
const (
TokenTypeOauth TokenType = "Oauth"
TokenTypePersonalAccessToken TokenType = "PersonalAccessToken"
)
// PossibleTokenTypeValues returns the possible values for the TokenType const type.
func PossibleTokenTypeValues() []TokenType {
return []TokenType{
TokenTypeOauth,
TokenTypePersonalAccessToken,
}
}
// WindowsUpdateClasses - Update classification included in the software update configuration. A comma separated string with
// required values
type WindowsUpdateClasses string
const (
WindowsUpdateClassesCritical WindowsUpdateClasses = "Critical"
WindowsUpdateClassesDefinition WindowsUpdateClasses = "Definition"
WindowsUpdateClassesFeaturePack WindowsUpdateClasses = "FeaturePack"
WindowsUpdateClassesSecurity WindowsUpdateClasses = "Security"
WindowsUpdateClassesServicePack WindowsUpdateClasses = "ServicePack"
WindowsUpdateClassesTools WindowsUpdateClasses = "Tools"
WindowsUpdateClassesUnclassified WindowsUpdateClasses = "Unclassified"
WindowsUpdateClassesUpdateRollup WindowsUpdateClasses = "UpdateRollup"
WindowsUpdateClassesUpdates WindowsUpdateClasses = "Updates"
)
// PossibleWindowsUpdateClassesValues returns the possible values for the WindowsUpdateClasses const type.
func PossibleWindowsUpdateClassesValues() []WindowsUpdateClasses {
return []WindowsUpdateClasses{
WindowsUpdateClassesCritical,
WindowsUpdateClassesDefinition,
WindowsUpdateClassesFeaturePack,
WindowsUpdateClassesSecurity,
WindowsUpdateClassesServicePack,
WindowsUpdateClassesTools,
WindowsUpdateClassesUnclassified,
WindowsUpdateClassesUpdateRollup,
WindowsUpdateClassesUpdates,
}
}
// WorkerType - Type of the HybridWorker.
type WorkerType string
const (
WorkerTypeHybridV1 WorkerType = "HybridV1"
WorkerTypeHybridV2 WorkerType = "HybridV2"
)
// PossibleWorkerTypeValues returns the possible values for the WorkerType const type.
func PossibleWorkerTypeValues() []WorkerType {
return []WorkerType{
WorkerTypeHybridV1,
WorkerTypeHybridV2,
}
}