/
constants.go
1140 lines (960 loc) · 40.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
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
//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 armpostgresqlflexibleservers
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers"
moduleVersion = "v4.0.0-beta.5"
)
// ActiveDirectoryAuthEnum - If Enabled, Azure Active Directory authentication is enabled.
type ActiveDirectoryAuthEnum string
const (
ActiveDirectoryAuthEnumDisabled ActiveDirectoryAuthEnum = "Disabled"
ActiveDirectoryAuthEnumEnabled ActiveDirectoryAuthEnum = "Enabled"
)
// PossibleActiveDirectoryAuthEnumValues returns the possible values for the ActiveDirectoryAuthEnum const type.
func PossibleActiveDirectoryAuthEnumValues() []ActiveDirectoryAuthEnum {
return []ActiveDirectoryAuthEnum{
ActiveDirectoryAuthEnumDisabled,
ActiveDirectoryAuthEnumEnabled,
}
}
// ArmServerKeyType - Data encryption type to depict if it is System Managed vs Azure Key vault.
type ArmServerKeyType string
const (
ArmServerKeyTypeAzureKeyVault ArmServerKeyType = "AzureKeyVault"
ArmServerKeyTypeSystemManaged ArmServerKeyType = "SystemManaged"
)
// PossibleArmServerKeyTypeValues returns the possible values for the ArmServerKeyType const type.
func PossibleArmServerKeyTypeValues() []ArmServerKeyType {
return []ArmServerKeyType{
ArmServerKeyTypeAzureKeyVault,
ArmServerKeyTypeSystemManaged,
}
}
// AzureManagedDiskPerformanceTiers - Name of storage tier for IOPS.
type AzureManagedDiskPerformanceTiers string
const (
AzureManagedDiskPerformanceTiersP1 AzureManagedDiskPerformanceTiers = "P1"
AzureManagedDiskPerformanceTiersP10 AzureManagedDiskPerformanceTiers = "P10"
AzureManagedDiskPerformanceTiersP15 AzureManagedDiskPerformanceTiers = "P15"
AzureManagedDiskPerformanceTiersP2 AzureManagedDiskPerformanceTiers = "P2"
AzureManagedDiskPerformanceTiersP20 AzureManagedDiskPerformanceTiers = "P20"
AzureManagedDiskPerformanceTiersP3 AzureManagedDiskPerformanceTiers = "P3"
AzureManagedDiskPerformanceTiersP30 AzureManagedDiskPerformanceTiers = "P30"
AzureManagedDiskPerformanceTiersP4 AzureManagedDiskPerformanceTiers = "P4"
AzureManagedDiskPerformanceTiersP40 AzureManagedDiskPerformanceTiers = "P40"
AzureManagedDiskPerformanceTiersP50 AzureManagedDiskPerformanceTiers = "P50"
AzureManagedDiskPerformanceTiersP6 AzureManagedDiskPerformanceTiers = "P6"
AzureManagedDiskPerformanceTiersP60 AzureManagedDiskPerformanceTiers = "P60"
AzureManagedDiskPerformanceTiersP70 AzureManagedDiskPerformanceTiers = "P70"
AzureManagedDiskPerformanceTiersP80 AzureManagedDiskPerformanceTiers = "P80"
)
// PossibleAzureManagedDiskPerformanceTiersValues returns the possible values for the AzureManagedDiskPerformanceTiers const type.
func PossibleAzureManagedDiskPerformanceTiersValues() []AzureManagedDiskPerformanceTiers {
return []AzureManagedDiskPerformanceTiers{
AzureManagedDiskPerformanceTiersP1,
AzureManagedDiskPerformanceTiersP10,
AzureManagedDiskPerformanceTiersP15,
AzureManagedDiskPerformanceTiersP2,
AzureManagedDiskPerformanceTiersP20,
AzureManagedDiskPerformanceTiersP3,
AzureManagedDiskPerformanceTiersP30,
AzureManagedDiskPerformanceTiersP4,
AzureManagedDiskPerformanceTiersP40,
AzureManagedDiskPerformanceTiersP50,
AzureManagedDiskPerformanceTiersP6,
AzureManagedDiskPerformanceTiersP60,
AzureManagedDiskPerformanceTiersP70,
AzureManagedDiskPerformanceTiersP80,
}
}
// CancelEnum - To trigger cancel for entire migration we need to send this flag as True
type CancelEnum string
const (
CancelEnumFalse CancelEnum = "False"
CancelEnumTrue CancelEnum = "True"
)
// PossibleCancelEnumValues returns the possible values for the CancelEnum const type.
func PossibleCancelEnumValues() []CancelEnum {
return []CancelEnum{
CancelEnumFalse,
CancelEnumTrue,
}
}
// CapabilityStatus - The status of the capability.
type CapabilityStatus string
const (
CapabilityStatusAvailable CapabilityStatus = "Available"
CapabilityStatusDefault CapabilityStatus = "Default"
CapabilityStatusDisabled CapabilityStatus = "Disabled"
CapabilityStatusVisible CapabilityStatus = "Visible"
)
// PossibleCapabilityStatusValues returns the possible values for the CapabilityStatus const type.
func PossibleCapabilityStatusValues() []CapabilityStatus {
return []CapabilityStatus{
CapabilityStatusAvailable,
CapabilityStatusDefault,
CapabilityStatusDisabled,
CapabilityStatusVisible,
}
}
// CheckNameAvailabilityReason - The reason why the given name is not available.
type CheckNameAvailabilityReason string
const (
CheckNameAvailabilityReasonAlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
CheckNameAvailabilityReasonInvalid CheckNameAvailabilityReason = "Invalid"
)
// PossibleCheckNameAvailabilityReasonValues returns the possible values for the CheckNameAvailabilityReason const type.
func PossibleCheckNameAvailabilityReasonValues() []CheckNameAvailabilityReason {
return []CheckNameAvailabilityReason{
CheckNameAvailabilityReasonAlreadyExists,
CheckNameAvailabilityReasonInvalid,
}
}
// ConfigurationDataType - Data type of the configuration.
type ConfigurationDataType string
const (
ConfigurationDataTypeBoolean ConfigurationDataType = "Boolean"
ConfigurationDataTypeEnumeration ConfigurationDataType = "Enumeration"
ConfigurationDataTypeInteger ConfigurationDataType = "Integer"
ConfigurationDataTypeNumeric ConfigurationDataType = "Numeric"
)
// PossibleConfigurationDataTypeValues returns the possible values for the ConfigurationDataType const type.
func PossibleConfigurationDataTypeValues() []ConfigurationDataType {
return []ConfigurationDataType{
ConfigurationDataTypeBoolean,
ConfigurationDataTypeEnumeration,
ConfigurationDataTypeInteger,
ConfigurationDataTypeNumeric,
}
}
// CreateMode - The mode to create a new PostgreSQL server.
type CreateMode string
const (
CreateModeCreate CreateMode = "Create"
CreateModeDefault CreateMode = "Default"
CreateModeGeoRestore CreateMode = "GeoRestore"
CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
CreateModeReplica CreateMode = "Replica"
CreateModeReviveDropped CreateMode = "ReviveDropped"
CreateModeUpdate CreateMode = "Update"
)
// PossibleCreateModeValues returns the possible values for the CreateMode const type.
func PossibleCreateModeValues() []CreateMode {
return []CreateMode{
CreateModeCreate,
CreateModeDefault,
CreateModeGeoRestore,
CreateModePointInTimeRestore,
CreateModeReplica,
CreateModeReviveDropped,
CreateModeUpdate,
}
}
// CreateModeForUpdate - The mode to update a new PostgreSQL server.
type CreateModeForUpdate string
const (
CreateModeForUpdateDefault CreateModeForUpdate = "Default"
CreateModeForUpdateUpdate CreateModeForUpdate = "Update"
)
// PossibleCreateModeForUpdateValues returns the possible values for the CreateModeForUpdate const type.
func PossibleCreateModeForUpdateValues() []CreateModeForUpdate {
return []CreateModeForUpdate{
CreateModeForUpdateDefault,
CreateModeForUpdateUpdate,
}
}
// 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,
}
}
// ExecutionStatus - Service-set extensible enum indicating the status of operation
type ExecutionStatus string
const (
ExecutionStatusCancelled ExecutionStatus = "Cancelled"
ExecutionStatusFailed ExecutionStatus = "Failed"
ExecutionStatusRunning ExecutionStatus = "Running"
ExecutionStatusSucceeded ExecutionStatus = "Succeeded"
)
// PossibleExecutionStatusValues returns the possible values for the ExecutionStatus const type.
func PossibleExecutionStatusValues() []ExecutionStatus {
return []ExecutionStatus{
ExecutionStatusCancelled,
ExecutionStatusFailed,
ExecutionStatusRunning,
ExecutionStatusSucceeded,
}
}
// FailoverMode - Failover mode.
type FailoverMode string
const (
FailoverModeForcedFailover FailoverMode = "ForcedFailover"
FailoverModeForcedSwitchover FailoverMode = "ForcedSwitchover"
FailoverModePlannedFailover FailoverMode = "PlannedFailover"
FailoverModePlannedSwitchover FailoverMode = "PlannedSwitchover"
)
// PossibleFailoverModeValues returns the possible values for the FailoverMode const type.
func PossibleFailoverModeValues() []FailoverMode {
return []FailoverMode{
FailoverModeForcedFailover,
FailoverModeForcedSwitchover,
FailoverModePlannedFailover,
FailoverModePlannedSwitchover,
}
}
// FastProvisioningSupportedEnum - Gets a value indicating whether fast provisioning is supported. "Enabled" means fast provisioning
// is supported. "Disabled" stands for fast provisioning is not supported.
type FastProvisioningSupportedEnum string
const (
FastProvisioningSupportedEnumDisabled FastProvisioningSupportedEnum = "Disabled"
FastProvisioningSupportedEnumEnabled FastProvisioningSupportedEnum = "Enabled"
)
// PossibleFastProvisioningSupportedEnumValues returns the possible values for the FastProvisioningSupportedEnum const type.
func PossibleFastProvisioningSupportedEnumValues() []FastProvisioningSupportedEnum {
return []FastProvisioningSupportedEnum{
FastProvisioningSupportedEnumDisabled,
FastProvisioningSupportedEnumEnabled,
}
}
// GeoBackupSupportedEnum - Determines if geo-backup is supported in this region. "Enabled" means geo-backup is supported.
// "Disabled" stands for geo-back is not supported.
type GeoBackupSupportedEnum string
const (
GeoBackupSupportedEnumDisabled GeoBackupSupportedEnum = "Disabled"
GeoBackupSupportedEnumEnabled GeoBackupSupportedEnum = "Enabled"
)
// PossibleGeoBackupSupportedEnumValues returns the possible values for the GeoBackupSupportedEnum const type.
func PossibleGeoBackupSupportedEnumValues() []GeoBackupSupportedEnum {
return []GeoBackupSupportedEnum{
GeoBackupSupportedEnumDisabled,
GeoBackupSupportedEnumEnabled,
}
}
// GeoRedundantBackupEnum - A value indicating whether Geo-Redundant backup is enabled on the server.
type GeoRedundantBackupEnum string
const (
GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled"
GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled"
)
// PossibleGeoRedundantBackupEnumValues returns the possible values for the GeoRedundantBackupEnum const type.
func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum {
return []GeoRedundantBackupEnum{
GeoRedundantBackupEnumDisabled,
GeoRedundantBackupEnumEnabled,
}
}
// HaMode - HA mode supported for a server.
type HaMode string
const (
HaModeSameZone HaMode = "SameZone"
HaModeZoneRedundant HaMode = "ZoneRedundant"
)
// PossibleHaModeValues returns the possible values for the HaMode const type.
func PossibleHaModeValues() []HaMode {
return []HaMode{
HaModeSameZone,
HaModeZoneRedundant,
}
}
// HighAvailabilityMode - The HA mode for the server.
type HighAvailabilityMode string
const (
HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled"
HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone"
HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
)
// PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type.
func PossibleHighAvailabilityModeValues() []HighAvailabilityMode {
return []HighAvailabilityMode{
HighAvailabilityModeDisabled,
HighAvailabilityModeSameZone,
HighAvailabilityModeZoneRedundant,
}
}
// IdentityType - the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
type IdentityType string
const (
IdentityTypeNone IdentityType = "None"
IdentityTypeUserAssigned IdentityType = "UserAssigned"
)
// PossibleIdentityTypeValues returns the possible values for the IdentityType const type.
func PossibleIdentityTypeValues() []IdentityType {
return []IdentityType{
IdentityTypeNone,
IdentityTypeUserAssigned,
}
}
// KeyStatusEnum - Primary encryption key status for Data encryption enabled server.
type KeyStatusEnum string
const (
KeyStatusEnumInvalid KeyStatusEnum = "Invalid"
KeyStatusEnumValid KeyStatusEnum = "Valid"
)
// PossibleKeyStatusEnumValues returns the possible values for the KeyStatusEnum const type.
func PossibleKeyStatusEnumValues() []KeyStatusEnum {
return []KeyStatusEnum{
KeyStatusEnumInvalid,
KeyStatusEnumValid,
}
}
// LogicalReplicationOnSourceDbEnum - Indicates whether to setup LogicalReplicationOnSourceDb, if needed
type LogicalReplicationOnSourceDbEnum string
const (
LogicalReplicationOnSourceDbEnumFalse LogicalReplicationOnSourceDbEnum = "False"
LogicalReplicationOnSourceDbEnumTrue LogicalReplicationOnSourceDbEnum = "True"
)
// PossibleLogicalReplicationOnSourceDbEnumValues returns the possible values for the LogicalReplicationOnSourceDbEnum const type.
func PossibleLogicalReplicationOnSourceDbEnumValues() []LogicalReplicationOnSourceDbEnum {
return []LogicalReplicationOnSourceDbEnum{
LogicalReplicationOnSourceDbEnumFalse,
LogicalReplicationOnSourceDbEnumTrue,
}
}
// MigrateRolesEnum - To migrate roles and permissions we need to send this flag as True
type MigrateRolesEnum string
const (
MigrateRolesEnumFalse MigrateRolesEnum = "False"
MigrateRolesEnumTrue MigrateRolesEnum = "True"
)
// PossibleMigrateRolesEnumValues returns the possible values for the MigrateRolesEnum const type.
func PossibleMigrateRolesEnumValues() []MigrateRolesEnum {
return []MigrateRolesEnum{
MigrateRolesEnumFalse,
MigrateRolesEnumTrue,
}
}
// MigrationDbState - Migration db state of an individual database
type MigrationDbState string
const (
MigrationDbStateCanceled MigrationDbState = "Canceled"
MigrationDbStateCanceling MigrationDbState = "Canceling"
MigrationDbStateFailed MigrationDbState = "Failed"
MigrationDbStateInProgress MigrationDbState = "InProgress"
MigrationDbStateSucceeded MigrationDbState = "Succeeded"
MigrationDbStateWaitingForCutoverTrigger MigrationDbState = "WaitingForCutoverTrigger"
)
// PossibleMigrationDbStateValues returns the possible values for the MigrationDbState const type.
func PossibleMigrationDbStateValues() []MigrationDbState {
return []MigrationDbState{
MigrationDbStateCanceled,
MigrationDbStateCanceling,
MigrationDbStateFailed,
MigrationDbStateInProgress,
MigrationDbStateSucceeded,
MigrationDbStateWaitingForCutoverTrigger,
}
}
type MigrationListFilter string
const (
MigrationListFilterActive MigrationListFilter = "Active"
MigrationListFilterAll MigrationListFilter = "All"
)
// PossibleMigrationListFilterValues returns the possible values for the MigrationListFilter const type.
func PossibleMigrationListFilterValues() []MigrationListFilter {
return []MigrationListFilter{
MigrationListFilterActive,
MigrationListFilterAll,
}
}
// MigrationMode - There are two types of migration modes Online and Offline
type MigrationMode string
const (
MigrationModeOffline MigrationMode = "Offline"
MigrationModeOnline MigrationMode = "Online"
)
// PossibleMigrationModeValues returns the possible values for the MigrationMode const type.
func PossibleMigrationModeValues() []MigrationMode {
return []MigrationMode{
MigrationModeOffline,
MigrationModeOnline,
}
}
// MigrationNameAvailabilityReason - Migration name availability reason.
type MigrationNameAvailabilityReason string
const (
MigrationNameAvailabilityReasonAlreadyExists MigrationNameAvailabilityReason = "AlreadyExists"
MigrationNameAvailabilityReasonInvalid MigrationNameAvailabilityReason = "Invalid"
)
// PossibleMigrationNameAvailabilityReasonValues returns the possible values for the MigrationNameAvailabilityReason const type.
func PossibleMigrationNameAvailabilityReasonValues() []MigrationNameAvailabilityReason {
return []MigrationNameAvailabilityReason{
MigrationNameAvailabilityReasonAlreadyExists,
MigrationNameAvailabilityReasonInvalid,
}
}
// MigrationOption - Supported types of migration request include Validate, Migrate and ValidateAndMigrate
type MigrationOption string
const (
MigrationOptionMigrate MigrationOption = "Migrate"
MigrationOptionValidate MigrationOption = "Validate"
MigrationOptionValidateAndMigrate MigrationOption = "ValidateAndMigrate"
)
// PossibleMigrationOptionValues returns the possible values for the MigrationOption const type.
func PossibleMigrationOptionValues() []MigrationOption {
return []MigrationOption{
MigrationOptionMigrate,
MigrationOptionValidate,
MigrationOptionValidateAndMigrate,
}
}
// MigrationState - Migration state.
type MigrationState string
const (
MigrationStateCanceled MigrationState = "Canceled"
MigrationStateCleaningUp MigrationState = "CleaningUp"
MigrationStateFailed MigrationState = "Failed"
MigrationStateInProgress MigrationState = "InProgress"
MigrationStateSucceeded MigrationState = "Succeeded"
MigrationStateValidationFailed MigrationState = "ValidationFailed"
MigrationStateWaitingForUserAction MigrationState = "WaitingForUserAction"
)
// PossibleMigrationStateValues returns the possible values for the MigrationState const type.
func PossibleMigrationStateValues() []MigrationState {
return []MigrationState{
MigrationStateCanceled,
MigrationStateCleaningUp,
MigrationStateFailed,
MigrationStateInProgress,
MigrationStateSucceeded,
MigrationStateValidationFailed,
MigrationStateWaitingForUserAction,
}
}
// MigrationSubState - Migration sub state.
type MigrationSubState string
const (
MigrationSubStateCancelingRequestedDBMigrations MigrationSubState = "CancelingRequestedDBMigrations"
MigrationSubStateCompleted MigrationSubState = "Completed"
MigrationSubStateCompletingMigration MigrationSubState = "CompletingMigration"
MigrationSubStateMigratingData MigrationSubState = "MigratingData"
MigrationSubStatePerformingPreRequisiteSteps MigrationSubState = "PerformingPreRequisiteSteps"
MigrationSubStateValidationInProgress MigrationSubState = "ValidationInProgress"
MigrationSubStateWaitingForCutoverTrigger MigrationSubState = "WaitingForCutoverTrigger"
MigrationSubStateWaitingForDBsToMigrateSpecification MigrationSubState = "WaitingForDBsToMigrateSpecification"
MigrationSubStateWaitingForDataMigrationScheduling MigrationSubState = "WaitingForDataMigrationScheduling"
MigrationSubStateWaitingForDataMigrationWindow MigrationSubState = "WaitingForDataMigrationWindow"
MigrationSubStateWaitingForLogicalReplicationSetupRequestOnSourceDB MigrationSubState = "WaitingForLogicalReplicationSetupRequestOnSourceDB"
MigrationSubStateWaitingForTargetDBOverwriteConfirmation MigrationSubState = "WaitingForTargetDBOverwriteConfirmation"
)
// PossibleMigrationSubStateValues returns the possible values for the MigrationSubState const type.
func PossibleMigrationSubStateValues() []MigrationSubState {
return []MigrationSubState{
MigrationSubStateCancelingRequestedDBMigrations,
MigrationSubStateCompleted,
MigrationSubStateCompletingMigration,
MigrationSubStateMigratingData,
MigrationSubStatePerformingPreRequisiteSteps,
MigrationSubStateValidationInProgress,
MigrationSubStateWaitingForCutoverTrigger,
MigrationSubStateWaitingForDBsToMigrateSpecification,
MigrationSubStateWaitingForDataMigrationScheduling,
MigrationSubStateWaitingForDataMigrationWindow,
MigrationSubStateWaitingForLogicalReplicationSetupRequestOnSourceDB,
MigrationSubStateWaitingForTargetDBOverwriteConfirmation,
}
}
// OnlineResizeSupportedEnum - A value indicating whether online resize is supported in this region for the given subscription.
// "Enabled" means storage online resize is supported. "Disabled" means storage online resize is not
// supported.
type OnlineResizeSupportedEnum string
const (
OnlineResizeSupportedEnumDisabled OnlineResizeSupportedEnum = "Disabled"
OnlineResizeSupportedEnumEnabled OnlineResizeSupportedEnum = "Enabled"
)
// PossibleOnlineResizeSupportedEnumValues returns the possible values for the OnlineResizeSupportedEnum const type.
func PossibleOnlineResizeSupportedEnumValues() []OnlineResizeSupportedEnum {
return []OnlineResizeSupportedEnum{
OnlineResizeSupportedEnumDisabled,
OnlineResizeSupportedEnumEnabled,
}
}
// OperationOrigin - The intended executor of the operation.
type OperationOrigin string
const (
OperationOriginNotSpecified OperationOrigin = "NotSpecified"
OperationOriginSystem OperationOrigin = "system"
OperationOriginUser OperationOrigin = "user"
)
// PossibleOperationOriginValues returns the possible values for the OperationOrigin const type.
func PossibleOperationOriginValues() []OperationOrigin {
return []OperationOrigin{
OperationOriginNotSpecified,
OperationOriginSystem,
OperationOriginUser,
}
}
// Origin - Backup type.
type Origin string
const (
OriginFull Origin = "Full"
)
// PossibleOriginValues returns the possible values for the Origin const type.
func PossibleOriginValues() []Origin {
return []Origin{
OriginFull,
}
}
// OverwriteDbsInTargetEnum - Indicates whether the databases on the target server can be overwritten, if already present.
// If set to False, the migration workflow will wait for a confirmation, if it detects that the database
// already exists.
type OverwriteDbsInTargetEnum string
const (
OverwriteDbsInTargetEnumFalse OverwriteDbsInTargetEnum = "False"
OverwriteDbsInTargetEnumTrue OverwriteDbsInTargetEnum = "True"
)
// PossibleOverwriteDbsInTargetEnumValues returns the possible values for the OverwriteDbsInTargetEnum const type.
func PossibleOverwriteDbsInTargetEnumValues() []OverwriteDbsInTargetEnum {
return []OverwriteDbsInTargetEnum{
OverwriteDbsInTargetEnumFalse,
OverwriteDbsInTargetEnumTrue,
}
}
// PasswordAuthEnum - If Enabled, Password authentication is enabled.
type PasswordAuthEnum string
const (
PasswordAuthEnumDisabled PasswordAuthEnum = "Disabled"
PasswordAuthEnumEnabled PasswordAuthEnum = "Enabled"
)
// PossiblePasswordAuthEnumValues returns the possible values for the PasswordAuthEnum const type.
func PossiblePasswordAuthEnumValues() []PasswordAuthEnum {
return []PasswordAuthEnum{
PasswordAuthEnumDisabled,
PasswordAuthEnumEnabled,
}
}
// PrincipalType - The principal type used to represent the type of Active Directory Administrator.
type PrincipalType string
const (
PrincipalTypeGroup PrincipalType = "Group"
PrincipalTypeServicePrincipal PrincipalType = "ServicePrincipal"
PrincipalTypeUnknown PrincipalType = "Unknown"
PrincipalTypeUser PrincipalType = "User"
)
// PossiblePrincipalTypeValues returns the possible values for the PrincipalType const type.
func PossiblePrincipalTypeValues() []PrincipalType {
return []PrincipalType{
PrincipalTypeGroup,
PrincipalTypeServicePrincipal,
PrincipalTypeUnknown,
PrincipalTypeUser,
}
}
// PrivateEndpointConnectionProvisioningState - The current provisioning state.
type PrivateEndpointConnectionProvisioningState string
const (
PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)
// PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
return []PrivateEndpointConnectionProvisioningState{
PrivateEndpointConnectionProvisioningStateCreating,
PrivateEndpointConnectionProvisioningStateDeleting,
PrivateEndpointConnectionProvisioningStateFailed,
PrivateEndpointConnectionProvisioningStateSucceeded,
}
}
// PrivateEndpointServiceConnectionStatus - The private endpoint connection status.
type PrivateEndpointServiceConnectionStatus string
const (
PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending"
PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)
// PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
return []PrivateEndpointServiceConnectionStatus{
PrivateEndpointServiceConnectionStatusApproved,
PrivateEndpointServiceConnectionStatusPending,
PrivateEndpointServiceConnectionStatusRejected,
}
}
// ReadReplicaPromoteMode - Sets the promote mode for a replica server. This is a write only property.
type ReadReplicaPromoteMode string
const (
ReadReplicaPromoteModeStandalone ReadReplicaPromoteMode = "standalone"
ReadReplicaPromoteModeSwitchover ReadReplicaPromoteMode = "switchover"
)
// PossibleReadReplicaPromoteModeValues returns the possible values for the ReadReplicaPromoteMode const type.
func PossibleReadReplicaPromoteModeValues() []ReadReplicaPromoteMode {
return []ReadReplicaPromoteMode{
ReadReplicaPromoteModeStandalone,
ReadReplicaPromoteModeSwitchover,
}
}
// ReplicationPromoteOption - Sets the promote options for a replica server. This is a write only property.
type ReplicationPromoteOption string
const (
ReplicationPromoteOptionForced ReplicationPromoteOption = "forced"
ReplicationPromoteOptionPlanned ReplicationPromoteOption = "planned"
)
// PossibleReplicationPromoteOptionValues returns the possible values for the ReplicationPromoteOption const type.
func PossibleReplicationPromoteOptionValues() []ReplicationPromoteOption {
return []ReplicationPromoteOption{
ReplicationPromoteOptionForced,
ReplicationPromoteOptionPlanned,
}
}
// ReplicationRole - Used to indicate role of the server in replication set.
type ReplicationRole string
const (
ReplicationRoleAsyncReplica ReplicationRole = "AsyncReplica"
ReplicationRoleGeoAsyncReplica ReplicationRole = "GeoAsyncReplica"
ReplicationRoleNone ReplicationRole = "None"
ReplicationRolePrimary ReplicationRole = "Primary"
)
// PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
func PossibleReplicationRoleValues() []ReplicationRole {
return []ReplicationRole{
ReplicationRoleAsyncReplica,
ReplicationRoleGeoAsyncReplica,
ReplicationRoleNone,
ReplicationRolePrimary,
}
}
// ReplicationState - Gets the replication state of a replica server. This property is returned only for replicas api call.
// Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
type ReplicationState string
const (
ReplicationStateActive ReplicationState = "Active"
ReplicationStateBroken ReplicationState = "Broken"
ReplicationStateCatchup ReplicationState = "Catchup"
ReplicationStateProvisioning ReplicationState = "Provisioning"
ReplicationStateReconfiguring ReplicationState = "Reconfiguring"
ReplicationStateUpdating ReplicationState = "Updating"
)
// PossibleReplicationStateValues returns the possible values for the ReplicationState const type.
func PossibleReplicationStateValues() []ReplicationState {
return []ReplicationState{
ReplicationStateActive,
ReplicationStateBroken,
ReplicationStateCatchup,
ReplicationStateProvisioning,
ReplicationStateReconfiguring,
ReplicationStateUpdating,
}
}
// RestrictedEnum - A value indicating whether this region is restricted. "Enabled" means region is restricted. "Disabled"
// stands for region is not restricted.
type RestrictedEnum string
const (
RestrictedEnumDisabled RestrictedEnum = "Disabled"
RestrictedEnumEnabled RestrictedEnum = "Enabled"
)
// PossibleRestrictedEnumValues returns the possible values for the RestrictedEnum const type.
func PossibleRestrictedEnumValues() []RestrictedEnum {
return []RestrictedEnum{
RestrictedEnumDisabled,
RestrictedEnumEnabled,
}
}
// SKUTier - The tier of the particular SKU, e.g. Burstable.
type SKUTier string
const (
SKUTierBurstable SKUTier = "Burstable"
SKUTierGeneralPurpose SKUTier = "GeneralPurpose"
SKUTierMemoryOptimized SKUTier = "MemoryOptimized"
)
// PossibleSKUTierValues returns the possible values for the SKUTier const type.
func PossibleSKUTierValues() []SKUTier {
return []SKUTier{
SKUTierBurstable,
SKUTierGeneralPurpose,
SKUTierMemoryOptimized,
}
}
// SSLMode - Supported SSL modes for migration. VerifyFull is the recommended SSL mode for Single server migration. Prefer,
// Require are recommended SSL modes for other source types
type SSLMode string
const (
SSLModePrefer SSLMode = "Prefer"
SSLModeRequire SSLMode = "Require"
SSLModeVerifyCA SSLMode = "VerifyCA"
SSLModeVerifyFull SSLMode = "VerifyFull"
)
// PossibleSSLModeValues returns the possible values for the SSLMode const type.
func PossibleSSLModeValues() []SSLMode {
return []SSLMode{
SSLModePrefer,
SSLModeRequire,
SSLModeVerifyCA,
SSLModeVerifyFull,
}
}
// ServerHAState - A state of a HA server that is visible to user.
type ServerHAState string
const (
ServerHAStateCreatingStandby ServerHAState = "CreatingStandby"
ServerHAStateFailingOver ServerHAState = "FailingOver"
ServerHAStateHealthy ServerHAState = "Healthy"
ServerHAStateNotEnabled ServerHAState = "NotEnabled"
ServerHAStateRemovingStandby ServerHAState = "RemovingStandby"
ServerHAStateReplicatingData ServerHAState = "ReplicatingData"
)
// PossibleServerHAStateValues returns the possible values for the ServerHAState const type.
func PossibleServerHAStateValues() []ServerHAState {
return []ServerHAState{
ServerHAStateCreatingStandby,
ServerHAStateFailingOver,
ServerHAStateHealthy,
ServerHAStateNotEnabled,
ServerHAStateRemovingStandby,
ServerHAStateReplicatingData,
}
}
// ServerPublicNetworkAccessState - public network access is enabled or not
type ServerPublicNetworkAccessState string
const (
ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled"
ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled"
)
// PossibleServerPublicNetworkAccessStateValues returns the possible values for the ServerPublicNetworkAccessState const type.
func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState {
return []ServerPublicNetworkAccessState{
ServerPublicNetworkAccessStateDisabled,
ServerPublicNetworkAccessStateEnabled,
}
}
// ServerState - A state of a server that is visible to user.
type ServerState string
const (
ServerStateDisabled ServerState = "Disabled"
ServerStateDropping ServerState = "Dropping"
ServerStateReady ServerState = "Ready"
ServerStateStarting ServerState = "Starting"
ServerStateStopped ServerState = "Stopped"
ServerStateStopping ServerState = "Stopping"
ServerStateUpdating ServerState = "Updating"
)
// PossibleServerStateValues returns the possible values for the ServerState const type.
func PossibleServerStateValues() []ServerState {
return []ServerState{
ServerStateDisabled,
ServerStateDropping,
ServerStateReady,
ServerStateStarting,
ServerStateStopped,
ServerStateStopping,
ServerStateUpdating,
}
}
// ServerVersion - The version of a server.
type ServerVersion string
const (
ServerVersionEleven ServerVersion = "11"
ServerVersionFifteen ServerVersion = "15"
ServerVersionFourteen ServerVersion = "14"
ServerVersionSixteen ServerVersion = "16"
ServerVersionThirteen ServerVersion = "13"
ServerVersionTwelve ServerVersion = "12"
)
// PossibleServerVersionValues returns the possible values for the ServerVersion const type.
func PossibleServerVersionValues() []ServerVersion {
return []ServerVersion{
ServerVersionEleven,
ServerVersionFifteen,
ServerVersionFourteen,
ServerVersionSixteen,
ServerVersionThirteen,
ServerVersionTwelve,
}
}
// SourceType - Migration source server type : OnPremises, AWS, GCP, AzureVM, PostgreSQLSingleServer, AWSRDS, AWSAURORA, AWSEC2,
// GCPCloudSQL, GCPAlloyDB, GCPCompute, or EDB
type SourceType string
const (
SourceTypeAWS SourceType = "AWS"
SourceTypeAWSAURORA SourceType = "AWS_AURORA"
SourceTypeAWSEC2 SourceType = "AWS_EC2"
SourceTypeAWSRDS SourceType = "AWS_RDS"
SourceTypeAzureVM SourceType = "AzureVM"
SourceTypeEDB SourceType = "EDB"
SourceTypeGCP SourceType = "GCP"
SourceTypeGCPAlloyDB SourceType = "GCP_AlloyDB"
SourceTypeGCPCloudSQL SourceType = "GCP_CloudSQL"
SourceTypeGCPCompute SourceType = "GCP_Compute"
SourceTypeOnPremises SourceType = "OnPremises"
SourceTypePostgreSQLSingleServer SourceType = "PostgreSQLSingleServer"
)
// PossibleSourceTypeValues returns the possible values for the SourceType const type.
func PossibleSourceTypeValues() []SourceType {
return []SourceType{
SourceTypeAWS,
SourceTypeAWSAURORA,
SourceTypeAWSEC2,
SourceTypeAWSRDS,
SourceTypeAzureVM,
SourceTypeEDB,
SourceTypeGCP,
SourceTypeGCPAlloyDB,
SourceTypeGCPCloudSQL,
SourceTypeGCPCompute,
SourceTypeOnPremises,
SourceTypePostgreSQLSingleServer,
}
}
// StartDataMigrationEnum - Indicates whether the data migration should start right away
type StartDataMigrationEnum string
const (
StartDataMigrationEnumFalse StartDataMigrationEnum = "False"
StartDataMigrationEnumTrue StartDataMigrationEnum = "True"
)
// PossibleStartDataMigrationEnumValues returns the possible values for the StartDataMigrationEnum const type.
func PossibleStartDataMigrationEnumValues() []StartDataMigrationEnum {
return []StartDataMigrationEnum{
StartDataMigrationEnumFalse,
StartDataMigrationEnumTrue,
}
}
// StorageAutoGrow - Flag to enable / disable Storage Auto grow for flexible server.
type StorageAutoGrow string
const (
StorageAutoGrowDisabled StorageAutoGrow = "Disabled"
StorageAutoGrowEnabled StorageAutoGrow = "Enabled"
)
// PossibleStorageAutoGrowValues returns the possible values for the StorageAutoGrow const type.
func PossibleStorageAutoGrowValues() []StorageAutoGrow {
return []StorageAutoGrow{
StorageAutoGrowDisabled,
StorageAutoGrowEnabled,
}
}
// StorageAutoGrowthSupportedEnum - A value indicating whether storage auto-grow is supported in this region. "Enabled" means
// storage auto-grow is supported. "Disabled" stands for storage auto-grow is not supported.
type StorageAutoGrowthSupportedEnum string
const (
StorageAutoGrowthSupportedEnumDisabled StorageAutoGrowthSupportedEnum = "Disabled"