/
constants.go
885 lines (747 loc) · 28 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
//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 armcosmos
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos"
moduleVersion = "v2.7.0"
)
// APIType - Enum to indicate the API type of the restorable database account.
type APIType string
const (
APITypeCassandra APIType = "Cassandra"
APITypeGremlin APIType = "Gremlin"
APITypeGremlinV2 APIType = "GremlinV2"
APITypeMongoDB APIType = "MongoDB"
APITypeSQL APIType = "Sql"
APITypeTable APIType = "Table"
)
// PossibleAPITypeValues returns the possible values for the APIType const type.
func PossibleAPITypeValues() []APIType {
return []APIType{
APITypeCassandra,
APITypeGremlin,
APITypeGremlinV2,
APITypeMongoDB,
APITypeSQL,
APITypeTable,
}
}
// AnalyticalStorageSchemaType - Describes the types of schema for analytical storage.
type AnalyticalStorageSchemaType string
const (
AnalyticalStorageSchemaTypeFullFidelity AnalyticalStorageSchemaType = "FullFidelity"
AnalyticalStorageSchemaTypeWellDefined AnalyticalStorageSchemaType = "WellDefined"
)
// PossibleAnalyticalStorageSchemaTypeValues returns the possible values for the AnalyticalStorageSchemaType const type.
func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType {
return []AnalyticalStorageSchemaType{
AnalyticalStorageSchemaTypeFullFidelity,
AnalyticalStorageSchemaTypeWellDefined,
}
}
// AuthenticationMethod - Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication,
// so should not be used except in emergencies. 'Cassandra' is the default password based
// authentication. The default is 'Cassandra'.
type AuthenticationMethod string
const (
AuthenticationMethodCassandra AuthenticationMethod = "Cassandra"
AuthenticationMethodLdap AuthenticationMethod = "Ldap"
AuthenticationMethodNone AuthenticationMethod = "None"
)
// PossibleAuthenticationMethodValues returns the possible values for the AuthenticationMethod const type.
func PossibleAuthenticationMethodValues() []AuthenticationMethod {
return []AuthenticationMethod{
AuthenticationMethodCassandra,
AuthenticationMethodLdap,
AuthenticationMethodNone,
}
}
// BackupPolicyMigrationStatus - Describes the status of migration between backup policy types.
type BackupPolicyMigrationStatus string
const (
BackupPolicyMigrationStatusCompleted BackupPolicyMigrationStatus = "Completed"
BackupPolicyMigrationStatusFailed BackupPolicyMigrationStatus = "Failed"
BackupPolicyMigrationStatusInProgress BackupPolicyMigrationStatus = "InProgress"
BackupPolicyMigrationStatusInvalid BackupPolicyMigrationStatus = "Invalid"
)
// PossibleBackupPolicyMigrationStatusValues returns the possible values for the BackupPolicyMigrationStatus const type.
func PossibleBackupPolicyMigrationStatusValues() []BackupPolicyMigrationStatus {
return []BackupPolicyMigrationStatus{
BackupPolicyMigrationStatusCompleted,
BackupPolicyMigrationStatusFailed,
BackupPolicyMigrationStatusInProgress,
BackupPolicyMigrationStatusInvalid,
}
}
// BackupPolicyType - Describes the mode of backups.
type BackupPolicyType string
const (
BackupPolicyTypeContinuous BackupPolicyType = "Continuous"
BackupPolicyTypePeriodic BackupPolicyType = "Periodic"
)
// PossibleBackupPolicyTypeValues returns the possible values for the BackupPolicyType const type.
func PossibleBackupPolicyTypeValues() []BackupPolicyType {
return []BackupPolicyType{
BackupPolicyTypeContinuous,
BackupPolicyTypePeriodic,
}
}
// BackupStorageRedundancy - Enum to indicate type of backup storage redundancy.
type BackupStorageRedundancy string
const (
BackupStorageRedundancyGeo BackupStorageRedundancy = "Geo"
BackupStorageRedundancyLocal BackupStorageRedundancy = "Local"
BackupStorageRedundancyZone BackupStorageRedundancy = "Zone"
)
// PossibleBackupStorageRedundancyValues returns the possible values for the BackupStorageRedundancy const type.
func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy {
return []BackupStorageRedundancy{
BackupStorageRedundancyGeo,
BackupStorageRedundancyLocal,
BackupStorageRedundancyZone,
}
}
// CompositePathSortOrder - Sort order for composite paths.
type CompositePathSortOrder string
const (
CompositePathSortOrderAscending CompositePathSortOrder = "ascending"
CompositePathSortOrderDescending CompositePathSortOrder = "descending"
)
// PossibleCompositePathSortOrderValues returns the possible values for the CompositePathSortOrder const type.
func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
return []CompositePathSortOrder{
CompositePathSortOrderAscending,
CompositePathSortOrderDescending,
}
}
// ConflictResolutionMode - Indicates the conflict resolution mode.
type ConflictResolutionMode string
const (
ConflictResolutionModeCustom ConflictResolutionMode = "Custom"
ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins"
)
// PossibleConflictResolutionModeValues returns the possible values for the ConflictResolutionMode const type.
func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
return []ConflictResolutionMode{
ConflictResolutionModeCustom,
ConflictResolutionModeLastWriterWins,
}
}
// ConnectionState - The kind of connection error that occurred.
type ConnectionState string
const (
ConnectionStateDatacenterToDatacenterNetworkError ConnectionState = "DatacenterToDatacenterNetworkError"
ConnectionStateInternalError ConnectionState = "InternalError"
ConnectionStateInternalOperatorToDataCenterCertificateError ConnectionState = "InternalOperatorToDataCenterCertificateError"
ConnectionStateOK ConnectionState = "OK"
ConnectionStateOperatorToDataCenterNetworkError ConnectionState = "OperatorToDataCenterNetworkError"
ConnectionStateUnknown ConnectionState = "Unknown"
)
// PossibleConnectionStateValues returns the possible values for the ConnectionState const type.
func PossibleConnectionStateValues() []ConnectionState {
return []ConnectionState{
ConnectionStateDatacenterToDatacenterNetworkError,
ConnectionStateInternalError,
ConnectionStateInternalOperatorToDataCenterCertificateError,
ConnectionStateOK,
ConnectionStateOperatorToDataCenterNetworkError,
ConnectionStateUnknown,
}
}
// ConnectorOffer - The cassandra connector offer type for the Cosmos DB C* database account.
type ConnectorOffer string
const (
ConnectorOfferSmall ConnectorOffer = "Small"
)
// PossibleConnectorOfferValues returns the possible values for the ConnectorOffer const type.
func PossibleConnectorOfferValues() []ConnectorOffer {
return []ConnectorOffer{
ConnectorOfferSmall,
}
}
// ContinuousTier - Enum to indicate type of Continuous backup tier.
type ContinuousTier string
const (
ContinuousTierContinuous30Days ContinuousTier = "Continuous30Days"
ContinuousTierContinuous7Days ContinuousTier = "Continuous7Days"
)
// PossibleContinuousTierValues returns the possible values for the ContinuousTier const type.
func PossibleContinuousTierValues() []ContinuousTier {
return []ContinuousTier{
ContinuousTierContinuous30Days,
ContinuousTierContinuous7Days,
}
}
// CreateMode - Enum to indicate the mode of account creation.
type CreateMode string
const (
CreateModeDefault CreateMode = "Default"
CreateModeRestore CreateMode = "Restore"
)
// PossibleCreateModeValues returns the possible values for the CreateMode const type.
func PossibleCreateModeValues() []CreateMode {
return []CreateMode{
CreateModeDefault,
CreateModeRestore,
}
}
// 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,
}
}
// DataType - The datatype for which the indexing behavior is applied to.
type DataType string
const (
DataTypeLineString DataType = "LineString"
DataTypeMultiPolygon DataType = "MultiPolygon"
DataTypeNumber DataType = "Number"
DataTypePoint DataType = "Point"
DataTypePolygon DataType = "Polygon"
DataTypeString DataType = "String"
)
// PossibleDataTypeValues returns the possible values for the DataType const type.
func PossibleDataTypeValues() []DataType {
return []DataType{
DataTypeLineString,
DataTypeMultiPolygon,
DataTypeNumber,
DataTypePoint,
DataTypePolygon,
DataTypeString,
}
}
// DatabaseAccountKind - Indicates the type of database account. This can only be set at database account creation.
type DatabaseAccountKind string
const (
DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB"
DatabaseAccountKindParse DatabaseAccountKind = "Parse"
)
// PossibleDatabaseAccountKindValues returns the possible values for the DatabaseAccountKind const type.
func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
return []DatabaseAccountKind{
DatabaseAccountKindGlobalDocumentDB,
DatabaseAccountKindMongoDB,
DatabaseAccountKindParse,
}
}
// DefaultConsistencyLevel - The default consistency level and configuration settings of the Cosmos DB account.
type DefaultConsistencyLevel string
const (
DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual"
DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session"
DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong"
)
// PossibleDefaultConsistencyLevelValues returns the possible values for the DefaultConsistencyLevel const type.
func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
return []DefaultConsistencyLevel{
DefaultConsistencyLevelBoundedStaleness,
DefaultConsistencyLevelConsistentPrefix,
DefaultConsistencyLevelEventual,
DefaultConsistencyLevelSession,
DefaultConsistencyLevelStrong,
}
}
// IndexKind - Indicates the type of index.
type IndexKind string
const (
IndexKindHash IndexKind = "Hash"
IndexKindRange IndexKind = "Range"
IndexKindSpatial IndexKind = "Spatial"
)
// PossibleIndexKindValues returns the possible values for the IndexKind const type.
func PossibleIndexKindValues() []IndexKind {
return []IndexKind{
IndexKindHash,
IndexKindRange,
IndexKindSpatial,
}
}
// IndexingMode - Indicates the indexing mode.
type IndexingMode string
const (
IndexingModeConsistent IndexingMode = "consistent"
IndexingModeLazy IndexingMode = "lazy"
IndexingModeNone IndexingMode = "none"
)
// PossibleIndexingModeValues returns the possible values for the IndexingMode const type.
func PossibleIndexingModeValues() []IndexingMode {
return []IndexingMode{
IndexingModeConsistent,
IndexingModeLazy,
IndexingModeNone,
}
}
// KeyKind - The access key to regenerate.
type KeyKind string
const (
KeyKindPrimary KeyKind = "primary"
KeyKindPrimaryReadonly KeyKind = "primaryReadonly"
KeyKindSecondary KeyKind = "secondary"
KeyKindSecondaryReadonly KeyKind = "secondaryReadonly"
)
// PossibleKeyKindValues returns the possible values for the KeyKind const type.
func PossibleKeyKindValues() []KeyKind {
return []KeyKind{
KeyKindPrimary,
KeyKindPrimaryReadonly,
KeyKindSecondary,
KeyKindSecondaryReadonly,
}
}
// Kind - Kind of the connection string key
type Kind string
const (
KindPrimary Kind = "Primary"
KindPrimaryReadonly Kind = "PrimaryReadonly"
KindSecondary Kind = "Secondary"
KindSecondaryReadonly Kind = "SecondaryReadonly"
)
// PossibleKindValues returns the possible values for the Kind const type.
func PossibleKindValues() []Kind {
return []Kind{
KindPrimary,
KindPrimaryReadonly,
KindSecondary,
KindSecondaryReadonly,
}
}
// ManagedCassandraProvisioningState - The status of the resource at the time the operation was called.
type ManagedCassandraProvisioningState string
const (
ManagedCassandraProvisioningStateCanceled ManagedCassandraProvisioningState = "Canceled"
ManagedCassandraProvisioningStateCreating ManagedCassandraProvisioningState = "Creating"
ManagedCassandraProvisioningStateDeleting ManagedCassandraProvisioningState = "Deleting"
ManagedCassandraProvisioningStateFailed ManagedCassandraProvisioningState = "Failed"
ManagedCassandraProvisioningStateSucceeded ManagedCassandraProvisioningState = "Succeeded"
ManagedCassandraProvisioningStateUpdating ManagedCassandraProvisioningState = "Updating"
)
// PossibleManagedCassandraProvisioningStateValues returns the possible values for the ManagedCassandraProvisioningState const type.
func PossibleManagedCassandraProvisioningStateValues() []ManagedCassandraProvisioningState {
return []ManagedCassandraProvisioningState{
ManagedCassandraProvisioningStateCanceled,
ManagedCassandraProvisioningStateCreating,
ManagedCassandraProvisioningStateDeleting,
ManagedCassandraProvisioningStateFailed,
ManagedCassandraProvisioningStateSucceeded,
ManagedCassandraProvisioningStateUpdating,
}
}
// ManagedCassandraResourceIdentityType - The type of the resource.
type ManagedCassandraResourceIdentityType string
const (
ManagedCassandraResourceIdentityTypeNone ManagedCassandraResourceIdentityType = "None"
ManagedCassandraResourceIdentityTypeSystemAssigned ManagedCassandraResourceIdentityType = "SystemAssigned"
)
// PossibleManagedCassandraResourceIdentityTypeValues returns the possible values for the ManagedCassandraResourceIdentityType const type.
func PossibleManagedCassandraResourceIdentityTypeValues() []ManagedCassandraResourceIdentityType {
return []ManagedCassandraResourceIdentityType{
ManagedCassandraResourceIdentityTypeNone,
ManagedCassandraResourceIdentityTypeSystemAssigned,
}
}
// MinimalTLSVersion - Indicates the minimum allowed Tls version. The default value is Tls 1.2. Cassandra and Mongo APIs only
// work with Tls 1.2.
type MinimalTLSVersion string
const (
MinimalTLSVersionTLS MinimalTLSVersion = "Tls"
MinimalTLSVersionTls11 MinimalTLSVersion = "Tls11"
MinimalTLSVersionTls12 MinimalTLSVersion = "Tls12"
)
// PossibleMinimalTLSVersionValues returns the possible values for the MinimalTLSVersion const type.
func PossibleMinimalTLSVersionValues() []MinimalTLSVersion {
return []MinimalTLSVersion{
MinimalTLSVersionTLS,
MinimalTLSVersionTls11,
MinimalTLSVersionTls12,
}
}
// MongoRoleDefinitionType - Indicates whether the Role Definition was built-in or user created.
type MongoRoleDefinitionType string
const (
MongoRoleDefinitionTypeBuiltInRole MongoRoleDefinitionType = "BuiltInRole"
MongoRoleDefinitionTypeCustomRole MongoRoleDefinitionType = "CustomRole"
)
// PossibleMongoRoleDefinitionTypeValues returns the possible values for the MongoRoleDefinitionType const type.
func PossibleMongoRoleDefinitionTypeValues() []MongoRoleDefinitionType {
return []MongoRoleDefinitionType{
MongoRoleDefinitionTypeBuiltInRole,
MongoRoleDefinitionTypeCustomRole,
}
}
// NetworkACLBypass - Indicates what services are allowed to bypass firewall checks.
type NetworkACLBypass string
const (
NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
NetworkACLBypassNone NetworkACLBypass = "None"
)
// PossibleNetworkACLBypassValues returns the possible values for the NetworkACLBypass const type.
func PossibleNetworkACLBypassValues() []NetworkACLBypass {
return []NetworkACLBypass{
NetworkACLBypassAzureServices,
NetworkACLBypassNone,
}
}
// NodeState - The state of the node in Cassandra ring.
type NodeState string
const (
NodeStateJoining NodeState = "Joining"
NodeStateLeaving NodeState = "Leaving"
NodeStateMoving NodeState = "Moving"
NodeStateNormal NodeState = "Normal"
NodeStateStopped NodeState = "Stopped"
)
// PossibleNodeStateValues returns the possible values for the NodeState const type.
func PossibleNodeStateValues() []NodeState {
return []NodeState{
NodeStateJoining,
NodeStateLeaving,
NodeStateMoving,
NodeStateNormal,
NodeStateStopped,
}
}
// NodeStatus - Indicates whether the node is functioning or not.
type NodeStatus string
const (
NodeStatusDown NodeStatus = "Down"
NodeStatusUp NodeStatus = "Up"
)
// PossibleNodeStatusValues returns the possible values for the NodeStatus const type.
func PossibleNodeStatusValues() []NodeStatus {
return []NodeStatus{
NodeStatusDown,
NodeStatusUp,
}
}
type NotebookWorkspaceName string
const (
NotebookWorkspaceNameDefault NotebookWorkspaceName = "default"
)
// PossibleNotebookWorkspaceNameValues returns the possible values for the NotebookWorkspaceName const type.
func PossibleNotebookWorkspaceNameValues() []NotebookWorkspaceName {
return []NotebookWorkspaceName{
NotebookWorkspaceNameDefault,
}
}
// OperationType - Enum to indicate the operation type of the event.
type OperationType string
const (
OperationTypeCreate OperationType = "Create"
OperationTypeDelete OperationType = "Delete"
OperationTypeRecreate OperationType = "Recreate"
OperationTypeReplace OperationType = "Replace"
OperationTypeSystemOperation OperationType = "SystemOperation"
)
// PossibleOperationTypeValues returns the possible values for the OperationType const type.
func PossibleOperationTypeValues() []OperationType {
return []OperationType{
OperationTypeCreate,
OperationTypeDelete,
OperationTypeRecreate,
OperationTypeReplace,
OperationTypeSystemOperation,
}
}
// PartitionKind - Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three
// maximum) are supported for container create
type PartitionKind string
const (
PartitionKindHash PartitionKind = "Hash"
PartitionKindMultiHash PartitionKind = "MultiHash"
PartitionKindRange PartitionKind = "Range"
)
// PossiblePartitionKindValues returns the possible values for the PartitionKind const type.
func PossiblePartitionKindValues() []PartitionKind {
return []PartitionKind{
PartitionKindHash,
PartitionKindMultiHash,
PartitionKindRange,
}
}
// PrimaryAggregationType - The primary aggregation type of the metric.
type PrimaryAggregationType string
const (
PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
PrimaryAggregationTypeNone PrimaryAggregationType = "None"
PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
)
// PossiblePrimaryAggregationTypeValues returns the possible values for the PrimaryAggregationType const type.
func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
return []PrimaryAggregationType{
PrimaryAggregationTypeAverage,
PrimaryAggregationTypeLast,
PrimaryAggregationTypeMaximum,
PrimaryAggregationTypeMinimum,
PrimaryAggregationTypeNone,
PrimaryAggregationTypeTotal,
}
}
// PublicNetworkAccess - Whether requests from Public Network are allowed
type PublicNetworkAccess string
const (
PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter"
)
// PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type.
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
return []PublicNetworkAccess{
PublicNetworkAccessDisabled,
PublicNetworkAccessEnabled,
PublicNetworkAccessSecuredByPerimeter,
}
}
// ResourceIdentityType - The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both
// an implicitly created identity and a set of user assigned identities. The type 'None' will remove any
// identities from the service.
type ResourceIdentityType string
const (
ResourceIdentityTypeNone ResourceIdentityType = "None"
ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)
// PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{
ResourceIdentityTypeNone,
ResourceIdentityTypeSystemAssigned,
ResourceIdentityTypeSystemAssignedUserAssigned,
ResourceIdentityTypeUserAssigned,
}
}
// RestoreMode - Describes the mode of the restore.
type RestoreMode string
const (
RestoreModePointInTime RestoreMode = "PointInTime"
)
// PossibleRestoreModeValues returns the possible values for the RestoreMode const type.
func PossibleRestoreModeValues() []RestoreMode {
return []RestoreMode{
RestoreModePointInTime,
}
}
// RoleDefinitionType - Indicates whether the Role Definition was built-in or user created.
type RoleDefinitionType string
const (
RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole"
RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole"
)
// PossibleRoleDefinitionTypeValues returns the possible values for the RoleDefinitionType const type.
func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
return []RoleDefinitionType{
RoleDefinitionTypeBuiltInRole,
RoleDefinitionTypeCustomRole,
}
}
// ServerVersion - Describes the ServerVersion of an a MongoDB account.
type ServerVersion string
const (
ServerVersionFour0 ServerVersion = "4.0"
ServerVersionFour2 ServerVersion = "4.2"
ServerVersionThree2 ServerVersion = "3.2"
ServerVersionThree6 ServerVersion = "3.6"
)
// PossibleServerVersionValues returns the possible values for the ServerVersion const type.
func PossibleServerVersionValues() []ServerVersion {
return []ServerVersion{
ServerVersionFour0,
ServerVersionFour2,
ServerVersionThree2,
ServerVersionThree6,
}
}
// ServiceSize - Instance type for the service.
type ServiceSize string
const (
ServiceSizeCosmosD16S ServiceSize = "Cosmos.D16s"
ServiceSizeCosmosD4S ServiceSize = "Cosmos.D4s"
ServiceSizeCosmosD8S ServiceSize = "Cosmos.D8s"
)
// PossibleServiceSizeValues returns the possible values for the ServiceSize const type.
func PossibleServiceSizeValues() []ServiceSize {
return []ServiceSize{
ServiceSizeCosmosD16S,
ServiceSizeCosmosD4S,
ServiceSizeCosmosD8S,
}
}
// ServiceStatus - Describes the status of a service.
type ServiceStatus string
const (
ServiceStatusCreating ServiceStatus = "Creating"
ServiceStatusDeleting ServiceStatus = "Deleting"
ServiceStatusError ServiceStatus = "Error"
ServiceStatusRunning ServiceStatus = "Running"
ServiceStatusStopped ServiceStatus = "Stopped"
ServiceStatusUpdating ServiceStatus = "Updating"
)
// PossibleServiceStatusValues returns the possible values for the ServiceStatus const type.
func PossibleServiceStatusValues() []ServiceStatus {
return []ServiceStatus{
ServiceStatusCreating,
ServiceStatusDeleting,
ServiceStatusError,
ServiceStatusRunning,
ServiceStatusStopped,
ServiceStatusUpdating,
}
}
// ServiceType - ServiceType for the service.
type ServiceType string
const (
ServiceTypeDataTransfer ServiceType = "DataTransfer"
ServiceTypeGraphAPICompute ServiceType = "GraphAPICompute"
ServiceTypeMaterializedViewsBuilder ServiceType = "MaterializedViewsBuilder"
ServiceTypeSQLDedicatedGateway ServiceType = "SqlDedicatedGateway"
)
// PossibleServiceTypeValues returns the possible values for the ServiceType const type.
func PossibleServiceTypeValues() []ServiceType {
return []ServiceType{
ServiceTypeDataTransfer,
ServiceTypeGraphAPICompute,
ServiceTypeMaterializedViewsBuilder,
ServiceTypeSQLDedicatedGateway,
}
}
// SpatialType - Indicates the spatial type of index.
type SpatialType string
const (
SpatialTypeLineString SpatialType = "LineString"
SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
SpatialTypePoint SpatialType = "Point"
SpatialTypePolygon SpatialType = "Polygon"
)
// PossibleSpatialTypeValues returns the possible values for the SpatialType const type.
func PossibleSpatialTypeValues() []SpatialType {
return []SpatialType{
SpatialTypeLineString,
SpatialTypeMultiPolygon,
SpatialTypePoint,
SpatialTypePolygon,
}
}
// Status - Enum to indicate current buildout status of the region.
type Status string
const (
StatusDeleting Status = "Deleting"
StatusInitializing Status = "Initializing"
StatusInternallyReady Status = "InternallyReady"
StatusOnline Status = "Online"
StatusUninitialized Status = "Uninitialized"
)
// PossibleStatusValues returns the possible values for the Status const type.
func PossibleStatusValues() []Status {
return []Status{
StatusDeleting,
StatusInitializing,
StatusInternallyReady,
StatusOnline,
StatusUninitialized,
}
}
// TriggerOperation - The operation the trigger is associated with
type TriggerOperation string
const (
TriggerOperationAll TriggerOperation = "All"
TriggerOperationCreate TriggerOperation = "Create"
TriggerOperationDelete TriggerOperation = "Delete"
TriggerOperationReplace TriggerOperation = "Replace"
TriggerOperationUpdate TriggerOperation = "Update"
)
// PossibleTriggerOperationValues returns the possible values for the TriggerOperation const type.
func PossibleTriggerOperationValues() []TriggerOperation {
return []TriggerOperation{
TriggerOperationAll,
TriggerOperationCreate,
TriggerOperationDelete,
TriggerOperationReplace,
TriggerOperationUpdate,
}
}
// TriggerType - Type of the Trigger
type TriggerType string
const (
TriggerTypePost TriggerType = "Post"
TriggerTypePre TriggerType = "Pre"
)
// PossibleTriggerTypeValues returns the possible values for the TriggerType const type.
func PossibleTriggerTypeValues() []TriggerType {
return []TriggerType{
TriggerTypePost,
TriggerTypePre,
}
}
// Type - Type of the connection string
type Type string
const (
TypeCassandra Type = "Cassandra"
TypeCassandraConnectorMetadata Type = "CassandraConnectorMetadata"
TypeGremlin Type = "Gremlin"
TypeGremlinV2 Type = "GremlinV2"
TypeMongoDB Type = "MongoDB"
TypeSQL Type = "Sql"
TypeSQLDedicatedGateway Type = "SqlDedicatedGateway"
TypeTable Type = "Table"
TypeUndefined Type = "Undefined"
)
// PossibleTypeValues returns the possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{
TypeCassandra,
TypeCassandraConnectorMetadata,
TypeGremlin,
TypeGremlinV2,
TypeMongoDB,
TypeSQL,
TypeSQLDedicatedGateway,
TypeTable,
TypeUndefined,
}
}
// UnitType - The unit of the metric.
type UnitType string
const (
UnitTypeBytes UnitType = "Bytes"
UnitTypeBytesPerSecond UnitType = "BytesPerSecond"
UnitTypeCount UnitType = "Count"
UnitTypeCountPerSecond UnitType = "CountPerSecond"
UnitTypeMilliseconds UnitType = "Milliseconds"
UnitTypePercent UnitType = "Percent"
UnitTypeSeconds UnitType = "Seconds"
)
// PossibleUnitTypeValues returns the possible values for the UnitType const type.
func PossibleUnitTypeValues() []UnitType {
return []UnitType{
UnitTypeBytes,
UnitTypeBytesPerSecond,
UnitTypeCount,
UnitTypeCountPerSecond,
UnitTypeMilliseconds,
UnitTypePercent,
UnitTypeSeconds,
}
}