-
Notifications
You must be signed in to change notification settings - Fork 816
/
enums.go
3665 lines (3214 loc) · 205 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
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
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package servicefabric
// 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.
// ApplicationDefinitionKind enumerates the values for application definition kind.
type ApplicationDefinitionKind string
const (
// Compose Indicates the application is defined by compose file(s). The value is 1.
Compose ApplicationDefinitionKind = "Compose"
// Invalid Indicates the application definition kind is invalid. All Service Fabric enumerations have the
// invalid type. The value is 65535.
Invalid ApplicationDefinitionKind = "Invalid"
// ServiceFabricApplicationDescription Indicates the application is defined by a Service Fabric application
// description. The value is 0.
ServiceFabricApplicationDescription ApplicationDefinitionKind = "ServiceFabricApplicationDescription"
)
// PossibleApplicationDefinitionKindValues returns an array of possible values for the ApplicationDefinitionKind const type.
func PossibleApplicationDefinitionKindValues() []ApplicationDefinitionKind {
return []ApplicationDefinitionKind{Compose, Invalid, ServiceFabricApplicationDescription}
}
// ApplicationPackageCleanupPolicy enumerates the values for application package cleanup policy.
type ApplicationPackageCleanupPolicy string
const (
// ApplicationPackageCleanupPolicyAutomatic Indicates that the service fabric runtime determines when to do
// the application package cleanup. By default, cleanup is done on successful provision. The value is 2.
ApplicationPackageCleanupPolicyAutomatic ApplicationPackageCleanupPolicy = "Automatic"
// ApplicationPackageCleanupPolicyDefault Indicates that the cleanup policy of application packages is
// based on the cluster setting "CleanupApplicationPackageOnProvisionSuccess." The value is 1.
ApplicationPackageCleanupPolicyDefault ApplicationPackageCleanupPolicy = "Default"
// ApplicationPackageCleanupPolicyInvalid Indicates that the application package cleanup policy is invalid.
// This value is default. The value is zero.
ApplicationPackageCleanupPolicyInvalid ApplicationPackageCleanupPolicy = "Invalid"
// ApplicationPackageCleanupPolicyManual Indicates that the user has to explicitly clean up the application
// package. The value is 3.
ApplicationPackageCleanupPolicyManual ApplicationPackageCleanupPolicy = "Manual"
)
// PossibleApplicationPackageCleanupPolicyValues returns an array of possible values for the ApplicationPackageCleanupPolicy const type.
func PossibleApplicationPackageCleanupPolicyValues() []ApplicationPackageCleanupPolicy {
return []ApplicationPackageCleanupPolicy{ApplicationPackageCleanupPolicyAutomatic, ApplicationPackageCleanupPolicyDefault, ApplicationPackageCleanupPolicyInvalid, ApplicationPackageCleanupPolicyManual}
}
// ApplicationResourceUpgradeState enumerates the values for application resource upgrade state.
type ApplicationResourceUpgradeState string
const (
// ApplicationResourceUpgradeStateCompletedRollback The upgrade has finished rolling back. The value is 7.
ApplicationResourceUpgradeStateCompletedRollback ApplicationResourceUpgradeState = "CompletedRollback"
// ApplicationResourceUpgradeStateCompletedRollforward The upgrade has finished rolling forward. The value
// is 4.
ApplicationResourceUpgradeStateCompletedRollforward ApplicationResourceUpgradeState = "CompletedRollforward"
// ApplicationResourceUpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The
// value is 8.
ApplicationResourceUpgradeStateFailed ApplicationResourceUpgradeState = "Failed"
// ApplicationResourceUpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric
// enumerations have the invalid type. The value is 0.
ApplicationResourceUpgradeStateInvalid ApplicationResourceUpgradeState = "Invalid"
// ApplicationResourceUpgradeStateProvisioningTarget The upgrade is in the progress of provisioning target
// application type version. The value is 1.
ApplicationResourceUpgradeStateProvisioningTarget ApplicationResourceUpgradeState = "ProvisioningTarget"
// ApplicationResourceUpgradeStateRollingBack The upgrade is rolling back to the previous version but is
// not complete yet. The value is 5.
ApplicationResourceUpgradeStateRollingBack ApplicationResourceUpgradeState = "RollingBack"
// ApplicationResourceUpgradeStateRollingForward The upgrade is rolling forward to the target version but
// is not complete yet. The value is 2.
ApplicationResourceUpgradeStateRollingForward ApplicationResourceUpgradeState = "RollingForward"
// ApplicationResourceUpgradeStateUnprovisioningCurrent The upgrade is in the progress of unprovisioning
// current application type version and rolling forward to the target version is completed. The value is 3.
ApplicationResourceUpgradeStateUnprovisioningCurrent ApplicationResourceUpgradeState = "UnprovisioningCurrent"
// ApplicationResourceUpgradeStateUnprovisioningTarget The upgrade is in the progress of unprovisioning
// target application type version and rolling back to the current version is completed. The value is 6.
ApplicationResourceUpgradeStateUnprovisioningTarget ApplicationResourceUpgradeState = "UnprovisioningTarget"
)
// PossibleApplicationResourceUpgradeStateValues returns an array of possible values for the ApplicationResourceUpgradeState const type.
func PossibleApplicationResourceUpgradeStateValues() []ApplicationResourceUpgradeState {
return []ApplicationResourceUpgradeState{ApplicationResourceUpgradeStateCompletedRollback, ApplicationResourceUpgradeStateCompletedRollforward, ApplicationResourceUpgradeStateFailed, ApplicationResourceUpgradeStateInvalid, ApplicationResourceUpgradeStateProvisioningTarget, ApplicationResourceUpgradeStateRollingBack, ApplicationResourceUpgradeStateRollingForward, ApplicationResourceUpgradeStateUnprovisioningCurrent, ApplicationResourceUpgradeStateUnprovisioningTarget}
}
// ApplicationScopedVolumeKind enumerates the values for application scoped volume kind.
type ApplicationScopedVolumeKind string
const (
// ServiceFabricVolumeDisk Provides Service Fabric High Availability Volume Disk
ServiceFabricVolumeDisk ApplicationScopedVolumeKind = "ServiceFabricVolumeDisk"
)
// PossibleApplicationScopedVolumeKindValues returns an array of possible values for the ApplicationScopedVolumeKind const type.
func PossibleApplicationScopedVolumeKindValues() []ApplicationScopedVolumeKind {
return []ApplicationScopedVolumeKind{ServiceFabricVolumeDisk}
}
// ApplicationStatus enumerates the values for application status.
type ApplicationStatus string
const (
// ApplicationStatusCreating Indicates the application status is creating. The value is 3.
ApplicationStatusCreating ApplicationStatus = "Creating"
// ApplicationStatusDeleting Indicates the application status is deleting. The value is 4.
ApplicationStatusDeleting ApplicationStatus = "Deleting"
// ApplicationStatusFailed Indicates the creation or deletion of application was terminated due to
// persistent failures. Another create/delete request can be accepted to resume a failed application. The
// value is 5.
ApplicationStatusFailed ApplicationStatus = "Failed"
// ApplicationStatusInvalid Indicates the application status is invalid. All Service Fabric enumerations
// have the invalid type. The value is zero.
ApplicationStatusInvalid ApplicationStatus = "Invalid"
// ApplicationStatusReady Indicates the application status is ready. The value is 1.
ApplicationStatusReady ApplicationStatus = "Ready"
// ApplicationStatusUpgrading Indicates the application status is upgrading. The value is 2.
ApplicationStatusUpgrading ApplicationStatus = "Upgrading"
)
// PossibleApplicationStatusValues returns an array of possible values for the ApplicationStatus const type.
func PossibleApplicationStatusValues() []ApplicationStatus {
return []ApplicationStatus{ApplicationStatusCreating, ApplicationStatusDeleting, ApplicationStatusFailed, ApplicationStatusInvalid, ApplicationStatusReady, ApplicationStatusUpgrading}
}
// ApplicationTypeDefinitionKind enumerates the values for application type definition kind.
type ApplicationTypeDefinitionKind string
const (
// ApplicationTypeDefinitionKindCompose Indicates the application type is defined and created implicitly as
// part of a compose deployment. The value is 2.
ApplicationTypeDefinitionKindCompose ApplicationTypeDefinitionKind = "Compose"
// ApplicationTypeDefinitionKindInvalid Indicates the application type definition kind is invalid. All
// Service Fabric enumerations have the invalid type. The value is 0.
ApplicationTypeDefinitionKindInvalid ApplicationTypeDefinitionKind = "Invalid"
// ApplicationTypeDefinitionKindServiceFabricApplicationPackage Indicates the application type is defined
// and created by a Service Fabric application package provided by the user. The value is 1.
ApplicationTypeDefinitionKindServiceFabricApplicationPackage ApplicationTypeDefinitionKind = "ServiceFabricApplicationPackage"
)
// PossibleApplicationTypeDefinitionKindValues returns an array of possible values for the ApplicationTypeDefinitionKind const type.
func PossibleApplicationTypeDefinitionKindValues() []ApplicationTypeDefinitionKind {
return []ApplicationTypeDefinitionKind{ApplicationTypeDefinitionKindCompose, ApplicationTypeDefinitionKindInvalid, ApplicationTypeDefinitionKindServiceFabricApplicationPackage}
}
// ApplicationTypeStatus enumerates the values for application type status.
type ApplicationTypeStatus string
const (
// ApplicationTypeStatusAvailable Indicates that the application type is fully provisioned and is available
// for use. An application of this type and version can be created. The value is 2.
ApplicationTypeStatusAvailable ApplicationTypeStatus = "Available"
// ApplicationTypeStatusFailed Indicates that the application type provisioning failed and it is
// unavailable for use. The failure details can be obtained from the application type information query.
// The failed application type information remains in the cluster until it is unprovisioned or
// reprovisioned successfully. The value is 4.
ApplicationTypeStatusFailed ApplicationTypeStatus = "Failed"
// ApplicationTypeStatusInvalid Indicates the application type status is invalid. All Service Fabric
// enumerations have the invalid type. The value is zero.
ApplicationTypeStatusInvalid ApplicationTypeStatus = "Invalid"
// ApplicationTypeStatusProvisioning Indicates that the application type is being provisioned in the
// cluster. The value is 1.
ApplicationTypeStatusProvisioning ApplicationTypeStatus = "Provisioning"
// ApplicationTypeStatusUnprovisioning Indicates that the application type is in process of being
// unprovisioned from the cluster. The value is 3.
ApplicationTypeStatusUnprovisioning ApplicationTypeStatus = "Unprovisioning"
)
// PossibleApplicationTypeStatusValues returns an array of possible values for the ApplicationTypeStatus const type.
func PossibleApplicationTypeStatusValues() []ApplicationTypeStatus {
return []ApplicationTypeStatus{ApplicationTypeStatusAvailable, ApplicationTypeStatusFailed, ApplicationTypeStatusInvalid, ApplicationTypeStatusProvisioning, ApplicationTypeStatusUnprovisioning}
}
// AutoScalingMechanismKind enumerates the values for auto scaling mechanism kind.
type AutoScalingMechanismKind string
const (
// AddRemoveReplica Indicates that scaling should be performed by adding or removing replicas.
AddRemoveReplica AutoScalingMechanismKind = "AddRemoveReplica"
)
// PossibleAutoScalingMechanismKindValues returns an array of possible values for the AutoScalingMechanismKind const type.
func PossibleAutoScalingMechanismKindValues() []AutoScalingMechanismKind {
return []AutoScalingMechanismKind{AddRemoveReplica}
}
// AutoScalingMetricKind enumerates the values for auto scaling metric kind.
type AutoScalingMetricKind string
const (
// Resource Indicates that the metric is one of resources, like cpu or memory.
Resource AutoScalingMetricKind = "Resource"
)
// PossibleAutoScalingMetricKindValues returns an array of possible values for the AutoScalingMetricKind const type.
func PossibleAutoScalingMetricKindValues() []AutoScalingMetricKind {
return []AutoScalingMetricKind{Resource}
}
// AutoScalingResourceMetricName enumerates the values for auto scaling resource metric name.
type AutoScalingResourceMetricName string
const (
// CPU Indicates that the resource is CPU cores.
CPU AutoScalingResourceMetricName = "cpu"
// MemoryInGB Indicates that the resource is memory in GB.
MemoryInGB AutoScalingResourceMetricName = "memoryInGB"
)
// PossibleAutoScalingResourceMetricNameValues returns an array of possible values for the AutoScalingResourceMetricName const type.
func PossibleAutoScalingResourceMetricNameValues() []AutoScalingResourceMetricName {
return []AutoScalingResourceMetricName{CPU, MemoryInGB}
}
// AutoScalingTriggerKind enumerates the values for auto scaling trigger kind.
type AutoScalingTriggerKind string
const (
// AverageLoad Indicates that scaling should be performed based on average load of all replicas in the
// service.
AverageLoad AutoScalingTriggerKind = "AverageLoad"
)
// PossibleAutoScalingTriggerKindValues returns an array of possible values for the AutoScalingTriggerKind const type.
func PossibleAutoScalingTriggerKindValues() []AutoScalingTriggerKind {
return []AutoScalingTriggerKind{AverageLoad}
}
// BackupEntityKind enumerates the values for backup entity kind.
type BackupEntityKind string
const (
// BackupEntityKindApplication Indicates the entity is a Service Fabric application.
BackupEntityKindApplication BackupEntityKind = "Application"
// BackupEntityKindInvalid Indicates an invalid entity kind. All Service Fabric enumerations have the
// invalid type.
BackupEntityKindInvalid BackupEntityKind = "Invalid"
// BackupEntityKindPartition Indicates the entity is a Service Fabric partition.
BackupEntityKindPartition BackupEntityKind = "Partition"
// BackupEntityKindService Indicates the entity is a Service Fabric service.
BackupEntityKindService BackupEntityKind = "Service"
)
// PossibleBackupEntityKindValues returns an array of possible values for the BackupEntityKind const type.
func PossibleBackupEntityKindValues() []BackupEntityKind {
return []BackupEntityKind{BackupEntityKindApplication, BackupEntityKindInvalid, BackupEntityKindPartition, BackupEntityKindService}
}
// BackupPolicyScope enumerates the values for backup policy scope.
type BackupPolicyScope string
const (
// BackupPolicyScopeApplication Indicates the backup policy is applied at application level. All services
// and partitions of the application inherit this policy unless explicitly overridden at service or
// partition level.
BackupPolicyScopeApplication BackupPolicyScope = "Application"
// BackupPolicyScopeInvalid Indicates an invalid backup policy scope type. All Service Fabric enumerations
// have the invalid type.
BackupPolicyScopeInvalid BackupPolicyScope = "Invalid"
// BackupPolicyScopePartition Indicates the backup policy is applied at partition level. Hence overriding
// any policy which may have applied at partition's service or application level.
BackupPolicyScopePartition BackupPolicyScope = "Partition"
// BackupPolicyScopeService Indicates the backup policy is applied at service level. All partitions of the
// service inherit this policy unless explicitly overridden at partition level.
BackupPolicyScopeService BackupPolicyScope = "Service"
)
// PossibleBackupPolicyScopeValues returns an array of possible values for the BackupPolicyScope const type.
func PossibleBackupPolicyScopeValues() []BackupPolicyScope {
return []BackupPolicyScope{BackupPolicyScopeApplication, BackupPolicyScopeInvalid, BackupPolicyScopePartition, BackupPolicyScopeService}
}
// BackupScheduleFrequencyType enumerates the values for backup schedule frequency type.
type BackupScheduleFrequencyType string
const (
// BackupScheduleFrequencyTypeDaily Indicates that the time based backup schedule is repeated at a daily
// frequency.
BackupScheduleFrequencyTypeDaily BackupScheduleFrequencyType = "Daily"
// BackupScheduleFrequencyTypeInvalid Indicates an invalid backup schedule frequency type. All Service
// Fabric enumerations have the invalid type.
BackupScheduleFrequencyTypeInvalid BackupScheduleFrequencyType = "Invalid"
// BackupScheduleFrequencyTypeWeekly Indicates that the time based backup schedule is repeated at a weekly
// frequency.
BackupScheduleFrequencyTypeWeekly BackupScheduleFrequencyType = "Weekly"
)
// PossibleBackupScheduleFrequencyTypeValues returns an array of possible values for the BackupScheduleFrequencyType const type.
func PossibleBackupScheduleFrequencyTypeValues() []BackupScheduleFrequencyType {
return []BackupScheduleFrequencyType{BackupScheduleFrequencyTypeDaily, BackupScheduleFrequencyTypeInvalid, BackupScheduleFrequencyTypeWeekly}
}
// BackupScheduleKind enumerates the values for backup schedule kind.
type BackupScheduleKind string
const (
// BackupScheduleKindFrequencyBased Indicates a frequency-based backup schedule.
BackupScheduleKindFrequencyBased BackupScheduleKind = "FrequencyBased"
// BackupScheduleKindInvalid Indicates an invalid backup schedule kind. All Service Fabric enumerations
// have the invalid type.
BackupScheduleKindInvalid BackupScheduleKind = "Invalid"
// BackupScheduleKindTimeBased Indicates a time-based backup schedule.
BackupScheduleKindTimeBased BackupScheduleKind = "TimeBased"
)
// PossibleBackupScheduleKindValues returns an array of possible values for the BackupScheduleKind const type.
func PossibleBackupScheduleKindValues() []BackupScheduleKind {
return []BackupScheduleKind{BackupScheduleKindFrequencyBased, BackupScheduleKindInvalid, BackupScheduleKindTimeBased}
}
// BackupState enumerates the values for backup state.
type BackupState string
const (
// BackupStateAccepted Operation has been validated and accepted. Backup is yet to be triggered.
BackupStateAccepted BackupState = "Accepted"
// BackupStateBackupInProgress Backup operation has been triggered and is under process.
BackupStateBackupInProgress BackupState = "BackupInProgress"
// BackupStateFailure Operation completed with failure.
BackupStateFailure BackupState = "Failure"
// BackupStateInvalid Indicates an invalid backup state. All Service Fabric enumerations have the invalid
// type.
BackupStateInvalid BackupState = "Invalid"
// BackupStateSuccess Operation completed with success.
BackupStateSuccess BackupState = "Success"
// BackupStateTimeout Operation timed out.
BackupStateTimeout BackupState = "Timeout"
)
// PossibleBackupStateValues returns an array of possible values for the BackupState const type.
func PossibleBackupStateValues() []BackupState {
return []BackupState{BackupStateAccepted, BackupStateBackupInProgress, BackupStateFailure, BackupStateInvalid, BackupStateSuccess, BackupStateTimeout}
}
// BackupStorageKind enumerates the values for backup storage kind.
type BackupStorageKind string
const (
// BackupStorageKindAzureBlobStore Indicates Azure blob store to be used as backup storage.
BackupStorageKindAzureBlobStore BackupStorageKind = "AzureBlobStore"
// BackupStorageKindFileShare Indicates file/ SMB share to be used as backup storage.
BackupStorageKindFileShare BackupStorageKind = "FileShare"
// BackupStorageKindInvalid Indicates an invalid backup storage kind. All Service Fabric enumerations have
// the invalid type.
BackupStorageKindInvalid BackupStorageKind = "Invalid"
)
// PossibleBackupStorageKindValues returns an array of possible values for the BackupStorageKind const type.
func PossibleBackupStorageKindValues() []BackupStorageKind {
return []BackupStorageKind{BackupStorageKindAzureBlobStore, BackupStorageKindFileShare, BackupStorageKindInvalid}
}
// BackupSuspensionScope enumerates the values for backup suspension scope.
type BackupSuspensionScope string
const (
// BackupSuspensionScopeApplication Indicates the backup suspension is applied at application level. All
// services and partitions of the application are hence suspended for backup.
BackupSuspensionScopeApplication BackupSuspensionScope = "Application"
// BackupSuspensionScopeInvalid Indicates an invalid backup suspension scope type also indicating entity is
// not suspended. All Service Fabric enumerations have the invalid type.
BackupSuspensionScopeInvalid BackupSuspensionScope = "Invalid"
// BackupSuspensionScopePartition Indicates the backup suspension is applied at partition level.
BackupSuspensionScopePartition BackupSuspensionScope = "Partition"
// BackupSuspensionScopeService Indicates the backup suspension is applied at service level. All partitions
// of the service are hence suspended for backup.
BackupSuspensionScopeService BackupSuspensionScope = "Service"
)
// PossibleBackupSuspensionScopeValues returns an array of possible values for the BackupSuspensionScope const type.
func PossibleBackupSuspensionScopeValues() []BackupSuspensionScope {
return []BackupSuspensionScope{BackupSuspensionScopeApplication, BackupSuspensionScopeInvalid, BackupSuspensionScopePartition, BackupSuspensionScopeService}
}
// BackupType enumerates the values for backup type.
type BackupType string
const (
// BackupTypeFull Indicates a full backup.
BackupTypeFull BackupType = "Full"
// BackupTypeIncremental Indicates an incremental backup. A backup chain is comprised of a full backup
// followed by 0 or more incremental backups.
BackupTypeIncremental BackupType = "Incremental"
// BackupTypeInvalid Indicates an invalid backup type. All Service Fabric enumerations have the invalid
// type.
BackupTypeInvalid BackupType = "Invalid"
)
// PossibleBackupTypeValues returns an array of possible values for the BackupType const type.
func PossibleBackupTypeValues() []BackupType {
return []BackupType{BackupTypeFull, BackupTypeIncremental, BackupTypeInvalid}
}
// ChaosEventKind enumerates the values for chaos event kind.
type ChaosEventKind string
const (
// ChaosEventKindExecutingFaults Indicates a Chaos event that gets generated when Chaos has decided on the
// faults for an iteration. This Chaos event contains the details of the faults as a list of strings.
ChaosEventKindExecutingFaults ChaosEventKind = "ExecutingFaults"
// ChaosEventKindInvalid Indicates an invalid Chaos event kind. All Service Fabric enumerations have the
// invalid type.
ChaosEventKindInvalid ChaosEventKind = "Invalid"
// ChaosEventKindStarted Indicates a Chaos event that gets generated when Chaos is started.
ChaosEventKindStarted ChaosEventKind = "Started"
// ChaosEventKindStopped Indicates a Chaos event that gets generated when Chaos stops because either the
// user issued a stop or the time to run was up.
ChaosEventKindStopped ChaosEventKind = "Stopped"
// ChaosEventKindTestError Indicates a Chaos event that gets generated when an unexpected event has
// occurred in the Chaos engine, for example, due to the cluster snapshot being inconsistent, while
// faulting a faultable entity Chaos found that the entity was already faulted.
ChaosEventKindTestError ChaosEventKind = "TestError"
// ChaosEventKindValidationFailed Indicates a Chaos event that gets generated when the cluster entities do
// not become stable and healthy within ChaosParameters.MaxClusterStabilizationTimeoutInSeconds.
ChaosEventKindValidationFailed ChaosEventKind = "ValidationFailed"
// ChaosEventKindWaiting Indicates a Chaos event that gets generated when Chaos is waiting for the cluster
// to become ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish.
ChaosEventKindWaiting ChaosEventKind = "Waiting"
)
// PossibleChaosEventKindValues returns an array of possible values for the ChaosEventKind const type.
func PossibleChaosEventKindValues() []ChaosEventKind {
return []ChaosEventKind{ChaosEventKindExecutingFaults, ChaosEventKindInvalid, ChaosEventKindStarted, ChaosEventKindStopped, ChaosEventKindTestError, ChaosEventKindValidationFailed, ChaosEventKindWaiting}
}
// ChaosScheduleStatus enumerates the values for chaos schedule status.
type ChaosScheduleStatus string
const (
// ChaosScheduleStatusActive Indicates that the schedule is active and is being used to schedule runs of
// Chaos. The value is two.
ChaosScheduleStatusActive ChaosScheduleStatus = "Active"
// ChaosScheduleStatusExpired Indicates that the schedule is expired and will no longer be used to schedule
// runs of Chaos. The value is three.
ChaosScheduleStatusExpired ChaosScheduleStatus = "Expired"
// ChaosScheduleStatusInvalid Indicates an invalid Chaos Schedule status. All Service Fabric enumerations
// have the invalid type. The value is zero.
ChaosScheduleStatusInvalid ChaosScheduleStatus = "Invalid"
// ChaosScheduleStatusPending Indicates that the schedule is pending and is not yet being used to schedule
// runs of Chaos but will be used when the start time is passed. The value is four.
ChaosScheduleStatusPending ChaosScheduleStatus = "Pending"
// ChaosScheduleStatusStopped Indicates that the schedule is stopped and not being used to schedule runs of
// chaos. The value is one.
ChaosScheduleStatusStopped ChaosScheduleStatus = "Stopped"
)
// PossibleChaosScheduleStatusValues returns an array of possible values for the ChaosScheduleStatus const type.
func PossibleChaosScheduleStatusValues() []ChaosScheduleStatus {
return []ChaosScheduleStatus{ChaosScheduleStatusActive, ChaosScheduleStatusExpired, ChaosScheduleStatusInvalid, ChaosScheduleStatusPending, ChaosScheduleStatusStopped}
}
// ChaosStatus enumerates the values for chaos status.
type ChaosStatus string
const (
// ChaosStatusInvalid Indicates an invalid Chaos status. All Service Fabric enumerations have the invalid
// type. The value is zero.
ChaosStatusInvalid ChaosStatus = "Invalid"
// ChaosStatusRunning Indicates that Chaos is not stopped. The value is one.
ChaosStatusRunning ChaosStatus = "Running"
// ChaosStatusStopped Indicates that Chaos is not scheduling further faults. The value is two.
ChaosStatusStopped ChaosStatus = "Stopped"
)
// PossibleChaosStatusValues returns an array of possible values for the ChaosStatus const type.
func PossibleChaosStatusValues() []ChaosStatus {
return []ChaosStatus{ChaosStatusInvalid, ChaosStatusRunning, ChaosStatusStopped}
}
// ComposeDeploymentStatus enumerates the values for compose deployment status.
type ComposeDeploymentStatus string
const (
// ComposeDeploymentStatusCreating Indicates that the compose deployment is being created in background.
// The value is 2.
ComposeDeploymentStatusCreating ComposeDeploymentStatus = "Creating"
// ComposeDeploymentStatusDeleting Indicates that the compose deployment is being deleted in background.
// The value is 5.
ComposeDeploymentStatusDeleting ComposeDeploymentStatus = "Deleting"
// ComposeDeploymentStatusFailed Indicates that the compose deployment was terminated due to persistent
// failures. The value is 6.
ComposeDeploymentStatusFailed ComposeDeploymentStatus = "Failed"
// ComposeDeploymentStatusInvalid Indicates that the compose deployment status is invalid. The value is
// zero.
ComposeDeploymentStatusInvalid ComposeDeploymentStatus = "Invalid"
// ComposeDeploymentStatusProvisioning Indicates that the compose deployment is being provisioned in
// background. The value is 1.
ComposeDeploymentStatusProvisioning ComposeDeploymentStatus = "Provisioning"
// ComposeDeploymentStatusReady Indicates that the compose deployment has been successfully created or
// upgraded. The value is 3.
ComposeDeploymentStatusReady ComposeDeploymentStatus = "Ready"
// ComposeDeploymentStatusUnprovisioning Indicates that the compose deployment is being unprovisioned in
// background. The value is 4.
ComposeDeploymentStatusUnprovisioning ComposeDeploymentStatus = "Unprovisioning"
// ComposeDeploymentStatusUpgrading Indicates that the compose deployment is being upgraded in the
// background. The value is 7.
ComposeDeploymentStatusUpgrading ComposeDeploymentStatus = "Upgrading"
)
// PossibleComposeDeploymentStatusValues returns an array of possible values for the ComposeDeploymentStatus const type.
func PossibleComposeDeploymentStatusValues() []ComposeDeploymentStatus {
return []ComposeDeploymentStatus{ComposeDeploymentStatusCreating, ComposeDeploymentStatusDeleting, ComposeDeploymentStatusFailed, ComposeDeploymentStatusInvalid, ComposeDeploymentStatusProvisioning, ComposeDeploymentStatusReady, ComposeDeploymentStatusUnprovisioning, ComposeDeploymentStatusUpgrading}
}
// ComposeDeploymentUpgradeState enumerates the values for compose deployment upgrade state.
type ComposeDeploymentUpgradeState string
const (
// ComposeDeploymentUpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The
// value is 9.
ComposeDeploymentUpgradeStateFailed ComposeDeploymentUpgradeState = "Failed"
// ComposeDeploymentUpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric
// enumerations have the invalid type. The value is zero.
ComposeDeploymentUpgradeStateInvalid ComposeDeploymentUpgradeState = "Invalid"
// ComposeDeploymentUpgradeStateProvisioningTarget The upgrade is in the progress of provisioning target
// application type version. The value is 1.
ComposeDeploymentUpgradeStateProvisioningTarget ComposeDeploymentUpgradeState = "ProvisioningTarget"
// ComposeDeploymentUpgradeStateRollingBackCompleted The upgrade has finished rolling back. The value is 8.
ComposeDeploymentUpgradeStateRollingBackCompleted ComposeDeploymentUpgradeState = "RollingBackCompleted"
// ComposeDeploymentUpgradeStateRollingBackInProgress The upgrade is rolling back to the previous version
// but is not complete yet. The value is 6.
ComposeDeploymentUpgradeStateRollingBackInProgress ComposeDeploymentUpgradeState = "RollingBackInProgress"
// ComposeDeploymentUpgradeStateRollingForwardCompleted The upgrade has finished rolling forward. The value
// is 5.
ComposeDeploymentUpgradeStateRollingForwardCompleted ComposeDeploymentUpgradeState = "RollingForwardCompleted"
// ComposeDeploymentUpgradeStateRollingForwardInProgress The upgrade is rolling forward to the target
// version but is not complete yet. The value is 2.
ComposeDeploymentUpgradeStateRollingForwardInProgress ComposeDeploymentUpgradeState = "RollingForwardInProgress"
// ComposeDeploymentUpgradeStateRollingForwardPending The current upgrade domain has finished upgrading.
// The overall upgrade is waiting for an explicit move next request in UnmonitoredManual mode or performing
// health checks in Monitored mode. The value is 3
ComposeDeploymentUpgradeStateRollingForwardPending ComposeDeploymentUpgradeState = "RollingForwardPending"
// ComposeDeploymentUpgradeStateUnprovisioningCurrent The upgrade is in the progress of unprovisioning
// current application type version and rolling forward to the target version is completed. The value is 4.
ComposeDeploymentUpgradeStateUnprovisioningCurrent ComposeDeploymentUpgradeState = "UnprovisioningCurrent"
// ComposeDeploymentUpgradeStateUnprovisioningTarget The upgrade is in the progress of unprovisioning
// target application type version and rolling back to the current version is completed. The value is 7.
ComposeDeploymentUpgradeStateUnprovisioningTarget ComposeDeploymentUpgradeState = "UnprovisioningTarget"
)
// PossibleComposeDeploymentUpgradeStateValues returns an array of possible values for the ComposeDeploymentUpgradeState const type.
func PossibleComposeDeploymentUpgradeStateValues() []ComposeDeploymentUpgradeState {
return []ComposeDeploymentUpgradeState{ComposeDeploymentUpgradeStateFailed, ComposeDeploymentUpgradeStateInvalid, ComposeDeploymentUpgradeStateProvisioningTarget, ComposeDeploymentUpgradeStateRollingBackCompleted, ComposeDeploymentUpgradeStateRollingBackInProgress, ComposeDeploymentUpgradeStateRollingForwardCompleted, ComposeDeploymentUpgradeStateRollingForwardInProgress, ComposeDeploymentUpgradeStateRollingForwardPending, ComposeDeploymentUpgradeStateUnprovisioningCurrent, ComposeDeploymentUpgradeStateUnprovisioningTarget}
}
// CreateFabricDump enumerates the values for create fabric dump.
type CreateFabricDump string
const (
// False ...
False CreateFabricDump = "False"
// True ...
True CreateFabricDump = "True"
)
// PossibleCreateFabricDumpValues returns an array of possible values for the CreateFabricDump const type.
func PossibleCreateFabricDumpValues() []CreateFabricDump {
return []CreateFabricDump{False, True}
}
// DataLossMode enumerates the values for data loss mode.
type DataLossMode string
const (
// DataLossModeFullDataLoss FullDataLoss option will drop all the replicas which means that all the data
// will be lost.
DataLossModeFullDataLoss DataLossMode = "FullDataLoss"
// DataLossModeInvalid Reserved. Do not pass into API.
DataLossModeInvalid DataLossMode = "Invalid"
// DataLossModePartialDataLoss PartialDataLoss option will cause a quorum of replicas to go down,
// triggering an OnDataLoss event in the system for the given partition.
DataLossModePartialDataLoss DataLossMode = "PartialDataLoss"
)
// PossibleDataLossModeValues returns an array of possible values for the DataLossMode const type.
func PossibleDataLossModeValues() []DataLossMode {
return []DataLossMode{DataLossModeFullDataLoss, DataLossModeInvalid, DataLossModePartialDataLoss}
}
// DayOfWeek enumerates the values for day of week.
type DayOfWeek string
const (
// Friday Indicates the Day referred is Friday.
Friday DayOfWeek = "Friday"
// Monday Indicates the Day referred is Monday.
Monday DayOfWeek = "Monday"
// Saturday Indicates the Day referred is Saturday.
Saturday DayOfWeek = "Saturday"
// Sunday Indicates the Day referred is Sunday.
Sunday DayOfWeek = "Sunday"
// Thursday Indicates the Day referred is Thursday.
Thursday DayOfWeek = "Thursday"
// Tuesday Indicates the Day referred is Tuesday.
Tuesday DayOfWeek = "Tuesday"
// Wednesday Indicates the Day referred is Wednesday.
Wednesday DayOfWeek = "Wednesday"
)
// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.
func PossibleDayOfWeekValues() []DayOfWeek {
return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}
}
// DeactivationIntent enumerates the values for deactivation intent.
type DeactivationIntent string
const (
// Pause Indicates that the node should be paused. The value is 1.
Pause DeactivationIntent = "Pause"
// RemoveData Indicates the intent is for the node to remove data. The value is 3.
RemoveData DeactivationIntent = "RemoveData"
// Restart Indicates that the intent is for the node to be restarted after a short period of time. The
// value is 2.
Restart DeactivationIntent = "Restart"
)
// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type.
func PossibleDeactivationIntentValues() []DeactivationIntent {
return []DeactivationIntent{Pause, RemoveData, Restart}
}
// DeployedApplicationStatus enumerates the values for deployed application status.
type DeployedApplicationStatus string
const (
// DeployedApplicationStatusActivating Indicates that the package is activating. The value is 2.
DeployedApplicationStatusActivating DeployedApplicationStatus = "Activating"
// DeployedApplicationStatusActive Indicates that the package is active. The value is 3.
DeployedApplicationStatusActive DeployedApplicationStatus = "Active"
// DeployedApplicationStatusDeactivating Indicates that the package is deactivating. The value is 5.
DeployedApplicationStatusDeactivating DeployedApplicationStatus = "Deactivating"
// DeployedApplicationStatusDownloading Indicates that the package is downloading from the ImageStore. The
// value is 1.
DeployedApplicationStatusDownloading DeployedApplicationStatus = "Downloading"
// DeployedApplicationStatusInvalid Indicates that deployment status is not valid. All Service Fabric
// enumerations have the invalid type. The value is zero.
DeployedApplicationStatusInvalid DeployedApplicationStatus = "Invalid"
// DeployedApplicationStatusUpgrading Indicates that the package is upgrading. The value is 4.
DeployedApplicationStatusUpgrading DeployedApplicationStatus = "Upgrading"
)
// PossibleDeployedApplicationStatusValues returns an array of possible values for the DeployedApplicationStatus const type.
func PossibleDeployedApplicationStatusValues() []DeployedApplicationStatus {
return []DeployedApplicationStatus{DeployedApplicationStatusActivating, DeployedApplicationStatusActive, DeployedApplicationStatusDeactivating, DeployedApplicationStatusDownloading, DeployedApplicationStatusInvalid, DeployedApplicationStatusUpgrading}
}
// DeploymentStatus enumerates the values for deployment status.
type DeploymentStatus string
const (
// DeploymentStatusActivating Indicates the application or service package is being activated. The value is
// 2.
DeploymentStatusActivating DeploymentStatus = "Activating"
// DeploymentStatusActive Indicates the application or service package is active the node. The value is 3.
DeploymentStatusActive DeploymentStatus = "Active"
// DeploymentStatusDeactivating Indicates the application or service package is being deactivated. The
// value is 5.
DeploymentStatusDeactivating DeploymentStatus = "Deactivating"
// DeploymentStatusDownloading Indicates the application or service package is being downloaded to the node
// from the ImageStore. The value is 1.
DeploymentStatusDownloading DeploymentStatus = "Downloading"
// DeploymentStatusFailed Indicates the application or service package has failed to run to completion. The
// value is 7.
DeploymentStatusFailed DeploymentStatus = "Failed"
// DeploymentStatusInvalid Indicates status of the application or service package is not known or invalid.
// The value is 0.
DeploymentStatusInvalid DeploymentStatus = "Invalid"
// DeploymentStatusRanToCompletion Indicates the application or service package has ran to completion
// successfully. The value is 6.
DeploymentStatusRanToCompletion DeploymentStatus = "RanToCompletion"
// DeploymentStatusUpgrading Indicates the application or service package is being upgraded. The value is
// 4.
DeploymentStatusUpgrading DeploymentStatus = "Upgrading"
)
// PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type.
func PossibleDeploymentStatusValues() []DeploymentStatus {
return []DeploymentStatus{DeploymentStatusActivating, DeploymentStatusActive, DeploymentStatusDeactivating, DeploymentStatusDownloading, DeploymentStatusFailed, DeploymentStatusInvalid, DeploymentStatusRanToCompletion, DeploymentStatusUpgrading}
}
// DiagnosticsSinkKind enumerates the values for diagnostics sink kind.
type DiagnosticsSinkKind string
const (
// DiagnosticsSinkKindAzureInternalMonitoringPipeline Diagnostics settings for Geneva.
DiagnosticsSinkKindAzureInternalMonitoringPipeline DiagnosticsSinkKind = "AzureInternalMonitoringPipeline"
// DiagnosticsSinkKindInvalid Indicates an invalid sink kind. All Service Fabric enumerations have the
// invalid type.
DiagnosticsSinkKindInvalid DiagnosticsSinkKind = "Invalid"
)
// PossibleDiagnosticsSinkKindValues returns an array of possible values for the DiagnosticsSinkKind const type.
func PossibleDiagnosticsSinkKindValues() []DiagnosticsSinkKind {
return []DiagnosticsSinkKind{DiagnosticsSinkKindAzureInternalMonitoringPipeline, DiagnosticsSinkKindInvalid}
}
// EntityKind enumerates the values for entity kind.
type EntityKind string
const (
// EntityKindApplication Indicates the entity is a Service Fabric application. The value is 4.
EntityKindApplication EntityKind = "Application"
// EntityKindCluster Indicates the entity is a Service Fabric cluster. The value is 8.
EntityKindCluster EntityKind = "Cluster"
// EntityKindDeployedApplication Indicates the entity is a Service Fabric deployed application. The value
// is 6.
EntityKindDeployedApplication EntityKind = "DeployedApplication"
// EntityKindDeployedServicePackage Indicates the entity is a Service Fabric deployed service package. The
// value is 7.
EntityKindDeployedServicePackage EntityKind = "DeployedServicePackage"
// EntityKindInvalid Indicates an invalid entity kind. All Service Fabric enumerations have the invalid
// type. The value is zero.
EntityKindInvalid EntityKind = "Invalid"
// EntityKindNode Indicates the entity is a Service Fabric node. The value is 1.
EntityKindNode EntityKind = "Node"
// EntityKindPartition Indicates the entity is a Service Fabric partition. The value is 2.
EntityKindPartition EntityKind = "Partition"
// EntityKindReplica Indicates the entity is a Service Fabric replica. The value is 5.
EntityKindReplica EntityKind = "Replica"
// EntityKindService Indicates the entity is a Service Fabric service. The value is 3.
EntityKindService EntityKind = "Service"
)
// PossibleEntityKindValues returns an array of possible values for the EntityKind const type.
func PossibleEntityKindValues() []EntityKind {
return []EntityKind{EntityKindApplication, EntityKindCluster, EntityKindDeployedApplication, EntityKindDeployedServicePackage, EntityKindInvalid, EntityKindNode, EntityKindPartition, EntityKindReplica, EntityKindService}
}
// EntityKindBasicBackupEntity enumerates the values for entity kind basic backup entity.
type EntityKindBasicBackupEntity string
const (
// EntityKindApplication1 ...
EntityKindApplication1 EntityKindBasicBackupEntity = "Application"
// EntityKindBackupEntity ...
EntityKindBackupEntity EntityKindBasicBackupEntity = "BackupEntity"
// EntityKindPartition1 ...
EntityKindPartition1 EntityKindBasicBackupEntity = "Partition"
// EntityKindService1 ...
EntityKindService1 EntityKindBasicBackupEntity = "Service"
)
// PossibleEntityKindBasicBackupEntityValues returns an array of possible values for the EntityKindBasicBackupEntity const type.
func PossibleEntityKindBasicBackupEntityValues() []EntityKindBasicBackupEntity {
return []EntityKindBasicBackupEntity{EntityKindApplication1, EntityKindBackupEntity, EntityKindPartition1, EntityKindService1}
}
// EntryPointStatus enumerates the values for entry point status.
type EntryPointStatus string
const (
// EntryPointStatusInvalid Indicates status of entry point is not known or invalid. The value is 0.
EntryPointStatusInvalid EntryPointStatus = "Invalid"
// EntryPointStatusPending Indicates the entry point is scheduled to be started. The value is 1.
EntryPointStatusPending EntryPointStatus = "Pending"
// EntryPointStatusStarted Indicates the entry point was started successfully and is running. The value is
// 3.
EntryPointStatusStarted EntryPointStatus = "Started"
// EntryPointStatusStarting Indicates the entry point is being started. The value is 2.
EntryPointStatusStarting EntryPointStatus = "Starting"
// EntryPointStatusStopped Indicates the entry point is not running. The value is 5.
EntryPointStatusStopped EntryPointStatus = "Stopped"
// EntryPointStatusStopping Indicates the entry point is being stopped. The value is 4.
EntryPointStatusStopping EntryPointStatus = "Stopping"
)
// PossibleEntryPointStatusValues returns an array of possible values for the EntryPointStatus const type.
func PossibleEntryPointStatusValues() []EntryPointStatus {
return []EntryPointStatus{EntryPointStatusInvalid, EntryPointStatusPending, EntryPointStatusStarted, EntryPointStatusStarting, EntryPointStatusStopped, EntryPointStatusStopping}
}
// EnvironmentVariableType enumerates the values for environment variable type.
type EnvironmentVariableType string
const (
// ClearText The environment variable in clear text, will not be processed in any way and passed in as is
ClearText EnvironmentVariableType = "ClearText"
// KeyVaultReference The URI to a KeyVault secret version, will be resolved using the application's managed
// identity (this type is only valid if the app was assigned a managed identity) before getting passed in
KeyVaultReference EnvironmentVariableType = "KeyVaultReference"
// SecretValueReference The reference to a SecretValue resource, will be resolved before getting passed in
SecretValueReference EnvironmentVariableType = "SecretValueReference"
)
// PossibleEnvironmentVariableTypeValues returns an array of possible values for the EnvironmentVariableType const type.
func PossibleEnvironmentVariableTypeValues() []EnvironmentVariableType {
return []EnvironmentVariableType{ClearText, KeyVaultReference, SecretValueReference}
}
// ExecutionPolicyType enumerates the values for execution policy type.
type ExecutionPolicyType string
const (
// RunToCompletion Indicates that the service will perform its desired operation and complete successfully.
// If the service encounters failure, it will restarted based on restart policy specified. If the service
// completes its operation successfully, it will not be restarted again.
RunToCompletion ExecutionPolicyType = "runToCompletion"
)
// PossibleExecutionPolicyTypeValues returns an array of possible values for the ExecutionPolicyType const type.
func PossibleExecutionPolicyTypeValues() []ExecutionPolicyType {
return []ExecutionPolicyType{RunToCompletion}
}
// FabricErrorCodes enumerates the values for fabric error codes.
type FabricErrorCodes string
const (
// EABORT ...
EABORT FabricErrorCodes = "E_ABORT"
// EFAIL ...
EFAIL FabricErrorCodes = "E_FAIL"
// EINVALIDARG ...
EINVALIDARG FabricErrorCodes = "E_INVALIDARG"
// FABRICEAPPLICATIONALREADYEXISTS ...
FABRICEAPPLICATIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_APPLICATION_ALREADY_EXISTS"
// FABRICEAPPLICATIONALREADYINTARGETVERSION ...
FABRICEAPPLICATIONALREADYINTARGETVERSION FabricErrorCodes = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION"
// FABRICEAPPLICATIONNOTFOUND ...
FABRICEAPPLICATIONNOTFOUND FabricErrorCodes = "FABRIC_E_APPLICATION_NOT_FOUND"
// FABRICEAPPLICATIONNOTUPGRADING ...
FABRICEAPPLICATIONNOTUPGRADING FabricErrorCodes = "FABRIC_E_APPLICATION_NOT_UPGRADING"
// FABRICEAPPLICATIONTYPEALREADYEXISTS ...
FABRICEAPPLICATIONTYPEALREADYEXISTS FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS"
// FABRICEAPPLICATIONTYPEINUSE ...
FABRICEAPPLICATIONTYPEINUSE FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_IN_USE"
// FABRICEAPPLICATIONTYPENOTFOUND ...
FABRICEAPPLICATIONTYPENOTFOUND FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND"
// FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS ...
FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS"
// FABRICEAPPLICATIONUPGRADEINPROGRESS ...
FABRICEAPPLICATIONUPGRADEINPROGRESS FabricErrorCodes = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS"
// FABRICEAPPLICATIONUPGRADEVALIDATIONERROR ...
FABRICEAPPLICATIONUPGRADEVALIDATIONERROR FabricErrorCodes = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR"
// FABRICEBACKUPINPROGRESS ...
FABRICEBACKUPINPROGRESS FabricErrorCodes = "FABRIC_E_BACKUP_IN_PROGRESS"
// FABRICEBACKUPISENABLED ...
FABRICEBACKUPISENABLED FabricErrorCodes = "FABRIC_E_BACKUP_IS_ENABLED"
// FABRICEBACKUPNOTENABLED ...
FABRICEBACKUPNOTENABLED FabricErrorCodes = "FABRIC_E_BACKUP_NOT_ENABLED"
// FABRICEBACKUPPOLICYALREADYEXISTING ...
FABRICEBACKUPPOLICYALREADYEXISTING FabricErrorCodes = "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING"
// FABRICEBACKUPPOLICYNOTEXISTING ...
FABRICEBACKUPPOLICYNOTEXISTING FabricErrorCodes = "FABRIC_E_BACKUP_POLICY_NOT_EXISTING"
// FABRICECOMMUNICATIONERROR ...
FABRICECOMMUNICATIONERROR FabricErrorCodes = "FABRIC_E_COMMUNICATION_ERROR"
// FABRICECONFIGURATIONPARAMETERNOTFOUND ...
FABRICECONFIGURATIONPARAMETERNOTFOUND FabricErrorCodes = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND"
// FABRICECONFIGURATIONSECTIONNOTFOUND ...
FABRICECONFIGURATIONSECTIONNOTFOUND FabricErrorCodes = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND"
// FABRICEDIRECTORYNOTFOUND ...
FABRICEDIRECTORYNOTFOUND FabricErrorCodes = "FABRIC_E_DIRECTORY_NOT_FOUND"
// FABRICEENUMERATIONCOMPLETED ...
FABRICEENUMERATIONCOMPLETED FabricErrorCodes = "FABRIC_E_ENUMERATION_COMPLETED"
// FABRICEFABRICALREADYINTARGETVERSION ...
FABRICEFABRICALREADYINTARGETVERSION FabricErrorCodes = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION"
// FABRICEFABRICNOTUPGRADING ...
FABRICEFABRICNOTUPGRADING FabricErrorCodes = "FABRIC_E_FABRIC_NOT_UPGRADING"
// FABRICEFABRICUPGRADEINPROGRESS ...
FABRICEFABRICUPGRADEINPROGRESS FabricErrorCodes = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS"
// FABRICEFABRICUPGRADEVALIDATIONERROR ...
FABRICEFABRICUPGRADEVALIDATIONERROR FabricErrorCodes = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR"
// FABRICEFABRICVERSIONALREADYEXISTS ...
FABRICEFABRICVERSIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS"
// FABRICEFABRICVERSIONINUSE ...
FABRICEFABRICVERSIONINUSE FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_IN_USE"
// FABRICEFABRICVERSIONNOTFOUND ...
FABRICEFABRICVERSIONNOTFOUND FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_NOT_FOUND"
// FABRICEFAULTANALYSISSERVICENOTEXISTING ...
FABRICEFAULTANALYSISSERVICENOTEXISTING FabricErrorCodes = "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING"
// FABRICEFILENOTFOUND ...
FABRICEFILENOTFOUND FabricErrorCodes = "FABRIC_E_FILE_NOT_FOUND"
// FABRICEHEALTHENTITYNOTFOUND ...
FABRICEHEALTHENTITYNOTFOUND FabricErrorCodes = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND"
// FABRICEHEALTHSTALEREPORT ...
FABRICEHEALTHSTALEREPORT FabricErrorCodes = "FABRIC_E_HEALTH_STALE_REPORT"
// FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR ...
FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR FabricErrorCodes = "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR"
// FABRICEIMAGEBUILDERVALIDATIONERROR ...
FABRICEIMAGEBUILDERVALIDATIONERROR FabricErrorCodes = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR"
// FABRICEINSTANCEIDMISMATCH ...
FABRICEINSTANCEIDMISMATCH FabricErrorCodes = "FABRIC_E_INSTANCE_ID_MISMATCH"
// FABRICEINVALIDADDRESS ...
FABRICEINVALIDADDRESS FabricErrorCodes = "FABRIC_E_INVALID_ADDRESS"
// FABRICEINVALIDATOMICGROUP ...
FABRICEINVALIDATOMICGROUP FabricErrorCodes = "FABRIC_E_INVALID_ATOMIC_GROUP"
// FABRICEINVALIDCONFIGURATION ...
FABRICEINVALIDCONFIGURATION FabricErrorCodes = "FABRIC_E_INVALID_CONFIGURATION"
// FABRICEINVALIDFORSTATELESSSERVICES ...
FABRICEINVALIDFORSTATELESSSERVICES FabricErrorCodes = "FABRIC_E_INVALID_FOR_STATELESS_SERVICES"
// FABRICEINVALIDNAMEURI ...
FABRICEINVALIDNAMEURI FabricErrorCodes = "FABRIC_E_INVALID_NAME_URI"
// FABRICEINVALIDPARTITIONKEY ...
FABRICEINVALIDPARTITIONKEY FabricErrorCodes = "FABRIC_E_INVALID_PARTITION_KEY"
// FABRICEINVALIDSERVICESCALINGPOLICY ...
FABRICEINVALIDSERVICESCALINGPOLICY FabricErrorCodes = "FABRIC_E_INVALID_SERVICE_SCALING_POLICY"
// FABRICEKEYNOTFOUND ...
FABRICEKEYNOTFOUND FabricErrorCodes = "FABRIC_E_KEY_NOT_FOUND"
// FABRICEKEYTOOLARGE ...
FABRICEKEYTOOLARGE FabricErrorCodes = "FABRIC_E_KEY_TOO_LARGE"
// FABRICENAMEALREADYEXISTS ...
FABRICENAMEALREADYEXISTS FabricErrorCodes = "FABRIC_E_NAME_ALREADY_EXISTS"
// FABRICENAMEDOESNOTEXIST ...
FABRICENAMEDOESNOTEXIST FabricErrorCodes = "FABRIC_E_NAME_DOES_NOT_EXIST"
// FABRICENAMENOTEMPTY ...
FABRICENAMENOTEMPTY FabricErrorCodes = "FABRIC_E_NAME_NOT_EMPTY"
// FABRICENODEHASNOTSTOPPEDYET ...
FABRICENODEHASNOTSTOPPEDYET FabricErrorCodes = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET"
// FABRICENODEISUP ...
FABRICENODEISUP FabricErrorCodes = "FABRIC_E_NODE_IS_UP"
// FABRICENODENOTFOUND ...
FABRICENODENOTFOUND FabricErrorCodes = "FABRIC_E_NODE_NOT_FOUND"
// FABRICENOTPRIMARY ...
FABRICENOTPRIMARY FabricErrorCodes = "FABRIC_E_NOT_PRIMARY"
// FABRICENOTREADY ...
FABRICENOTREADY FabricErrorCodes = "FABRIC_E_NOT_READY"
// FABRICENOWRITEQUORUM ...
FABRICENOWRITEQUORUM FabricErrorCodes = "FABRIC_E_NO_WRITE_QUORUM"
// FABRICEOPERATIONNOTCOMPLETE ...
FABRICEOPERATIONNOTCOMPLETE FabricErrorCodes = "FABRIC_E_OPERATION_NOT_COMPLETE"
// FABRICEPARTITIONNOTFOUND ...
FABRICEPARTITIONNOTFOUND FabricErrorCodes = "FABRIC_E_PARTITION_NOT_FOUND"
// FABRICEPATHTOOLONG ...
FABRICEPATHTOOLONG FabricErrorCodes = "FABRIC_E_PATH_TOO_LONG"
// FABRICEPROPERTYCHECKFAILED ...
FABRICEPROPERTYCHECKFAILED FabricErrorCodes = "FABRIC_E_PROPERTY_CHECK_FAILED"
// FABRICEPROPERTYDOESNOTEXIST ...
FABRICEPROPERTYDOESNOTEXIST FabricErrorCodes = "FABRIC_E_PROPERTY_DOES_NOT_EXIST"
// FABRICERECONFIGURATIONPENDING ...
FABRICERECONFIGURATIONPENDING FabricErrorCodes = "FABRIC_E_RECONFIGURATION_PENDING"
// FABRICEREPLICADOESNOTEXIST ...
FABRICEREPLICADOESNOTEXIST FabricErrorCodes = "FABRIC_E_REPLICA_DOES_NOT_EXIST"
// FABRICERESTOREINPROGRESS ...
FABRICERESTOREINPROGRESS FabricErrorCodes = "FABRIC_E_RESTORE_IN_PROGRESS"
// FABRICERESTORESOURCETARGETPARTITIONMISMATCH ...
FABRICERESTORESOURCETARGETPARTITIONMISMATCH FabricErrorCodes = "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH"
// FABRICESEQUENCENUMBERCHECKFAILED ...
FABRICESEQUENCENUMBERCHECKFAILED FabricErrorCodes = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED"
// FABRICESERVICEAFFINITYCHAINNOTSUPPORTED ...
FABRICESERVICEAFFINITYCHAINNOTSUPPORTED FabricErrorCodes = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED"
// FABRICESERVICEALREADYEXISTS ...
FABRICESERVICEALREADYEXISTS FabricErrorCodes = "FABRIC_E_SERVICE_ALREADY_EXISTS"
// FABRICESERVICEDOESNOTEXIST ...
FABRICESERVICEDOESNOTEXIST FabricErrorCodes = "FABRIC_E_SERVICE_DOES_NOT_EXIST"
// FABRICESERVICEGROUPALREADYEXISTS ...
FABRICESERVICEGROUPALREADYEXISTS FabricErrorCodes = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS"
// FABRICESERVICEGROUPDOESNOTEXIST ...
FABRICESERVICEGROUPDOESNOTEXIST FabricErrorCodes = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST"
// FABRICESERVICEMANIFESTNOTFOUND ...
FABRICESERVICEMANIFESTNOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND"
// FABRICESERVICEMETADATAMISMATCH ...
FABRICESERVICEMETADATAMISMATCH FabricErrorCodes = "FABRIC_E_SERVICE_METADATA_MISMATCH"
// FABRICESERVICEOFFLINE ...
FABRICESERVICEOFFLINE FabricErrorCodes = "FABRIC_E_SERVICE_OFFLINE"
// FABRICESERVICETYPEMISMATCH ...
FABRICESERVICETYPEMISMATCH FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_MISMATCH"
// FABRICESERVICETYPENOTFOUND ...
FABRICESERVICETYPENOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_NOT_FOUND"
// FABRICESERVICETYPETEMPLATENOTFOUND ...
FABRICESERVICETYPETEMPLATENOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND"
// FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS ...
FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS"
// FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND ...
FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND FabricErrorCodes = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND"
// FABRICETIMEOUT ...
FABRICETIMEOUT FabricErrorCodes = "FABRIC_E_TIMEOUT"
// FABRICEVALUEEMPTY ...
FABRICEVALUEEMPTY FabricErrorCodes = "FABRIC_E_VALUE_EMPTY"
// FABRICEVALUETOOLARGE ...
FABRICEVALUETOOLARGE FabricErrorCodes = "FABRIC_E_VALUE_TOO_LARGE"
// FABRICEVOLUMEALREADYEXISTS ...
FABRICEVOLUMEALREADYEXISTS FabricErrorCodes = "FABRIC_E_VOLUME_ALREADY_EXISTS"
// FABRICEVOLUMENOTFOUND ...
FABRICEVOLUMENOTFOUND FabricErrorCodes = "FABRIC_E_VOLUME_NOT_FOUND"
// SerializationError ...
SerializationError FabricErrorCodes = "SerializationError"
)
// PossibleFabricErrorCodesValues returns an array of possible values for the FabricErrorCodes const type.
func PossibleFabricErrorCodesValues() []FabricErrorCodes {
return []FabricErrorCodes{EABORT, EFAIL, EINVALIDARG, FABRICEAPPLICATIONALREADYEXISTS, FABRICEAPPLICATIONALREADYINTARGETVERSION, FABRICEAPPLICATIONNOTFOUND, FABRICEAPPLICATIONNOTUPGRADING, FABRICEAPPLICATIONTYPEALREADYEXISTS, FABRICEAPPLICATIONTYPEINUSE, FABRICEAPPLICATIONTYPENOTFOUND, FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS, FABRICEAPPLICATIONUPGRADEINPROGRESS, FABRICEAPPLICATIONUPGRADEVALIDATIONERROR, FABRICEBACKUPINPROGRESS, FABRICEBACKUPISENABLED, FABRICEBACKUPNOTENABLED, FABRICEBACKUPPOLICYALREADYEXISTING, FABRICEBACKUPPOLICYNOTEXISTING, FABRICECOMMUNICATIONERROR, FABRICECONFIGURATIONPARAMETERNOTFOUND, FABRICECONFIGURATIONSECTIONNOTFOUND, FABRICEDIRECTORYNOTFOUND, FABRICEENUMERATIONCOMPLETED, FABRICEFABRICALREADYINTARGETVERSION, FABRICEFABRICNOTUPGRADING, FABRICEFABRICUPGRADEINPROGRESS, FABRICEFABRICUPGRADEVALIDATIONERROR, FABRICEFABRICVERSIONALREADYEXISTS, FABRICEFABRICVERSIONINUSE, FABRICEFABRICVERSIONNOTFOUND, FABRICEFAULTANALYSISSERVICENOTEXISTING, FABRICEFILENOTFOUND, FABRICEHEALTHENTITYNOTFOUND, FABRICEHEALTHSTALEREPORT, FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR, FABRICEIMAGEBUILDERVALIDATIONERROR, FABRICEINSTANCEIDMISMATCH, FABRICEINVALIDADDRESS, FABRICEINVALIDATOMICGROUP, FABRICEINVALIDCONFIGURATION, FABRICEINVALIDFORSTATELESSSERVICES, FABRICEINVALIDNAMEURI, FABRICEINVALIDPARTITIONKEY, FABRICEINVALIDSERVICESCALINGPOLICY, FABRICEKEYNOTFOUND, FABRICEKEYTOOLARGE, FABRICENAMEALREADYEXISTS, FABRICENAMEDOESNOTEXIST, FABRICENAMENOTEMPTY, FABRICENODEHASNOTSTOPPEDYET, FABRICENODEISUP, FABRICENODENOTFOUND, FABRICENOTPRIMARY, FABRICENOTREADY, FABRICENOWRITEQUORUM, FABRICEOPERATIONNOTCOMPLETE, FABRICEPARTITIONNOTFOUND, FABRICEPATHTOOLONG, FABRICEPROPERTYCHECKFAILED, FABRICEPROPERTYDOESNOTEXIST, FABRICERECONFIGURATIONPENDING, FABRICEREPLICADOESNOTEXIST, FABRICERESTOREINPROGRESS, FABRICERESTORESOURCETARGETPARTITIONMISMATCH, FABRICESEQUENCENUMBERCHECKFAILED, FABRICESERVICEAFFINITYCHAINNOTSUPPORTED, FABRICESERVICEALREADYEXISTS, FABRICESERVICEDOESNOTEXIST, FABRICESERVICEGROUPALREADYEXISTS, FABRICESERVICEGROUPDOESNOTEXIST, FABRICESERVICEMANIFESTNOTFOUND, FABRICESERVICEMETADATAMISMATCH, FABRICESERVICEOFFLINE, FABRICESERVICETYPEMISMATCH, FABRICESERVICETYPENOTFOUND, FABRICESERVICETYPETEMPLATENOTFOUND, FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS, FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND, FABRICETIMEOUT, FABRICEVALUEEMPTY, FABRICEVALUETOOLARGE, FABRICEVOLUMEALREADYEXISTS, FABRICEVOLUMENOTFOUND, SerializationError}
}
// FabricEventKind enumerates the values for fabric event kind.
type FabricEventKind string
const (