1 package documentdb
2
3
4
5
6
7
8
9
10 type AnalyticalStorageSchemaType string
11
12 const (
13
14 AnalyticalStorageSchemaTypeFullFidelity AnalyticalStorageSchemaType = "FullFidelity"
15
16 AnalyticalStorageSchemaTypeWellDefined AnalyticalStorageSchemaType = "WellDefined"
17 )
18
19
20 func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType {
21 return []AnalyticalStorageSchemaType{AnalyticalStorageSchemaTypeFullFidelity, AnalyticalStorageSchemaTypeWellDefined}
22 }
23
24
25 type APIType string
26
27 const (
28
29 APITypeCassandra APIType = "Cassandra"
30
31 APITypeGremlin APIType = "Gremlin"
32
33 APITypeGremlinV2 APIType = "GremlinV2"
34
35 APITypeMongoDB APIType = "MongoDB"
36
37 APITypeSQL APIType = "Sql"
38
39 APITypeTable APIType = "Table"
40 )
41
42
43 func PossibleAPITypeValues() []APIType {
44 return []APIType{APITypeCassandra, APITypeGremlin, APITypeGremlinV2, APITypeMongoDB, APITypeSQL, APITypeTable}
45 }
46
47
48 type AuthenticationMethod string
49
50 const (
51
52 AuthenticationMethodCassandra AuthenticationMethod = "Cassandra"
53
54 AuthenticationMethodNone AuthenticationMethod = "None"
55 )
56
57
58 func PossibleAuthenticationMethodValues() []AuthenticationMethod {
59 return []AuthenticationMethod{AuthenticationMethodCassandra, AuthenticationMethodNone}
60 }
61
62
63 type BackupPolicyMigrationStatus string
64
65 const (
66
67 BackupPolicyMigrationStatusCompleted BackupPolicyMigrationStatus = "Completed"
68
69 BackupPolicyMigrationStatusFailed BackupPolicyMigrationStatus = "Failed"
70
71 BackupPolicyMigrationStatusInProgress BackupPolicyMigrationStatus = "InProgress"
72
73 BackupPolicyMigrationStatusInvalid BackupPolicyMigrationStatus = "Invalid"
74 )
75
76
77 func PossibleBackupPolicyMigrationStatusValues() []BackupPolicyMigrationStatus {
78 return []BackupPolicyMigrationStatus{BackupPolicyMigrationStatusCompleted, BackupPolicyMigrationStatusFailed, BackupPolicyMigrationStatusInProgress, BackupPolicyMigrationStatusInvalid}
79 }
80
81
82 type BackupPolicyType string
83
84 const (
85
86 BackupPolicyTypeContinuous BackupPolicyType = "Continuous"
87
88 BackupPolicyTypePeriodic BackupPolicyType = "Periodic"
89 )
90
91
92 func PossibleBackupPolicyTypeValues() []BackupPolicyType {
93 return []BackupPolicyType{BackupPolicyTypeContinuous, BackupPolicyTypePeriodic}
94 }
95
96
97 type BackupStorageRedundancy string
98
99 const (
100
101 BackupStorageRedundancyGeo BackupStorageRedundancy = "Geo"
102
103 BackupStorageRedundancyLocal BackupStorageRedundancy = "Local"
104
105 BackupStorageRedundancyZone BackupStorageRedundancy = "Zone"
106 )
107
108
109 func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy {
110 return []BackupStorageRedundancy{BackupStorageRedundancyGeo, BackupStorageRedundancyLocal, BackupStorageRedundancyZone}
111 }
112
113
114 type CompositePathSortOrder string
115
116 const (
117
118 CompositePathSortOrderAscending CompositePathSortOrder = "ascending"
119
120 CompositePathSortOrderDescending CompositePathSortOrder = "descending"
121 )
122
123
124 func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
125 return []CompositePathSortOrder{CompositePathSortOrderAscending, CompositePathSortOrderDescending}
126 }
127
128
129 type ConflictResolutionMode string
130
131 const (
132
133 ConflictResolutionModeCustom ConflictResolutionMode = "Custom"
134
135 ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins"
136 )
137
138
139 func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
140 return []ConflictResolutionMode{ConflictResolutionModeCustom, ConflictResolutionModeLastWriterWins}
141 }
142
143
144 type ConnectionState string
145
146 const (
147
148 ConnectionStateDatacenterToDatacenterNetworkError ConnectionState = "DatacenterToDatacenterNetworkError"
149
150 ConnectionStateInternalError ConnectionState = "InternalError"
151
152 ConnectionStateInternalOperatorToDataCenterCertificateError ConnectionState = "InternalOperatorToDataCenterCertificateError"
153
154 ConnectionStateOK ConnectionState = "OK"
155
156 ConnectionStateOperatorToDataCenterNetworkError ConnectionState = "OperatorToDataCenterNetworkError"
157
158 ConnectionStateUnknown ConnectionState = "Unknown"
159 )
160
161
162 func PossibleConnectionStateValues() []ConnectionState {
163 return []ConnectionState{ConnectionStateDatacenterToDatacenterNetworkError, ConnectionStateInternalError, ConnectionStateInternalOperatorToDataCenterCertificateError, ConnectionStateOK, ConnectionStateOperatorToDataCenterNetworkError, ConnectionStateUnknown}
164 }
165
166
167 type ConnectorOffer string
168
169 const (
170
171 ConnectorOfferSmall ConnectorOffer = "Small"
172 )
173
174
175 func PossibleConnectorOfferValues() []ConnectorOffer {
176 return []ConnectorOffer{ConnectorOfferSmall}
177 }
178
179
180 type CreatedByType string
181
182 const (
183
184 CreatedByTypeApplication CreatedByType = "Application"
185
186 CreatedByTypeKey CreatedByType = "Key"
187
188 CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
189
190 CreatedByTypeUser CreatedByType = "User"
191 )
192
193
194 func PossibleCreatedByTypeValues() []CreatedByType {
195 return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
196 }
197
198
199 type CreateMode string
200
201 const (
202
203 CreateModeDefault CreateMode = "Default"
204
205 CreateModeRestore CreateMode = "Restore"
206 )
207
208
209 func PossibleCreateModeValues() []CreateMode {
210 return []CreateMode{CreateModeDefault, CreateModeRestore}
211 }
212
213
214 type DatabaseAccountKind string
215
216 const (
217
218 DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
219
220 DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB"
221
222 DatabaseAccountKindParse DatabaseAccountKind = "Parse"
223 )
224
225
226 func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
227 return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse}
228 }
229
230
231 type DatabaseAccountOfferType string
232
233 const (
234
235 DatabaseAccountOfferTypeStandard DatabaseAccountOfferType = "Standard"
236 )
237
238
239 func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
240 return []DatabaseAccountOfferType{DatabaseAccountOfferTypeStandard}
241 }
242
243
244 type DataType string
245
246 const (
247
248 DataTypeLineString DataType = "LineString"
249
250 DataTypeMultiPolygon DataType = "MultiPolygon"
251
252 DataTypeNumber DataType = "Number"
253
254 DataTypePoint DataType = "Point"
255
256 DataTypePolygon DataType = "Polygon"
257
258 DataTypeString DataType = "String"
259 )
260
261
262 func PossibleDataTypeValues() []DataType {
263 return []DataType{DataTypeLineString, DataTypeMultiPolygon, DataTypeNumber, DataTypePoint, DataTypePolygon, DataTypeString}
264 }
265
266
267 type DefaultConsistencyLevel string
268
269 const (
270
271 DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
272
273 DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
274
275 DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual"
276
277 DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session"
278
279 DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong"
280 )
281
282
283 func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
284 return []DefaultConsistencyLevel{DefaultConsistencyLevelBoundedStaleness, DefaultConsistencyLevelConsistentPrefix, DefaultConsistencyLevelEventual, DefaultConsistencyLevelSession, DefaultConsistencyLevelStrong}
285 }
286
287
288 type IndexingMode string
289
290 const (
291
292 IndexingModeConsistent IndexingMode = "consistent"
293
294 IndexingModeLazy IndexingMode = "lazy"
295
296 IndexingModeNone IndexingMode = "none"
297 )
298
299
300 func PossibleIndexingModeValues() []IndexingMode {
301 return []IndexingMode{IndexingModeConsistent, IndexingModeLazy, IndexingModeNone}
302 }
303
304
305 type IndexKind string
306
307 const (
308
309 IndexKindHash IndexKind = "Hash"
310
311 IndexKindRange IndexKind = "Range"
312
313 IndexKindSpatial IndexKind = "Spatial"
314 )
315
316
317 func PossibleIndexKindValues() []IndexKind {
318 return []IndexKind{IndexKindHash, IndexKindRange, IndexKindSpatial}
319 }
320
321
322 type KeyKind string
323
324 const (
325
326 KeyKindPrimary KeyKind = "primary"
327
328 KeyKindPrimaryReadonly KeyKind = "primaryReadonly"
329
330 KeyKindSecondary KeyKind = "secondary"
331
332 KeyKindSecondaryReadonly KeyKind = "secondaryReadonly"
333 )
334
335
336 func PossibleKeyKindValues() []KeyKind {
337 return []KeyKind{KeyKindPrimary, KeyKindPrimaryReadonly, KeyKindSecondary, KeyKindSecondaryReadonly}
338 }
339
340
341 type ManagedCassandraProvisioningState string
342
343 const (
344
345 ManagedCassandraProvisioningStateCanceled ManagedCassandraProvisioningState = "Canceled"
346
347 ManagedCassandraProvisioningStateCreating ManagedCassandraProvisioningState = "Creating"
348
349 ManagedCassandraProvisioningStateDeleting ManagedCassandraProvisioningState = "Deleting"
350
351 ManagedCassandraProvisioningStateFailed ManagedCassandraProvisioningState = "Failed"
352
353 ManagedCassandraProvisioningStateSucceeded ManagedCassandraProvisioningState = "Succeeded"
354
355 ManagedCassandraProvisioningStateUpdating ManagedCassandraProvisioningState = "Updating"
356 )
357
358
359 func PossibleManagedCassandraProvisioningStateValues() []ManagedCassandraProvisioningState {
360 return []ManagedCassandraProvisioningState{ManagedCassandraProvisioningStateCanceled, ManagedCassandraProvisioningStateCreating, ManagedCassandraProvisioningStateDeleting, ManagedCassandraProvisioningStateFailed, ManagedCassandraProvisioningStateSucceeded, ManagedCassandraProvisioningStateUpdating}
361 }
362
363
364 type ManagedCassandraResourceIdentityType string
365
366 const (
367
368 ManagedCassandraResourceIdentityTypeNone ManagedCassandraResourceIdentityType = "None"
369
370 ManagedCassandraResourceIdentityTypeSystemAssigned ManagedCassandraResourceIdentityType = "SystemAssigned"
371 )
372
373
374 func PossibleManagedCassandraResourceIdentityTypeValues() []ManagedCassandraResourceIdentityType {
375 return []ManagedCassandraResourceIdentityType{ManagedCassandraResourceIdentityTypeNone, ManagedCassandraResourceIdentityTypeSystemAssigned}
376 }
377
378
379 type NetworkACLBypass string
380
381 const (
382
383 NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
384
385 NetworkACLBypassNone NetworkACLBypass = "None"
386 )
387
388
389 func PossibleNetworkACLBypassValues() []NetworkACLBypass {
390 return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone}
391 }
392
393
394 type NodeState string
395
396 const (
397
398 NodeStateJoining NodeState = "Joining"
399
400 NodeStateLeaving NodeState = "Leaving"
401
402 NodeStateMoving NodeState = "Moving"
403
404 NodeStateNormal NodeState = "Normal"
405
406 NodeStateStopped NodeState = "Stopped"
407 )
408
409
410 func PossibleNodeStateValues() []NodeState {
411 return []NodeState{NodeStateJoining, NodeStateLeaving, NodeStateMoving, NodeStateNormal, NodeStateStopped}
412 }
413
414
415 type NodeStatus string
416
417 const (
418
419 NodeStatusDown NodeStatus = "Down"
420
421 NodeStatusUp NodeStatus = "Up"
422 )
423
424
425 func PossibleNodeStatusValues() []NodeStatus {
426 return []NodeStatus{NodeStatusDown, NodeStatusUp}
427 }
428
429
430 type OperationType string
431
432 const (
433
434 OperationTypeCreate OperationType = "Create"
435
436 OperationTypeDelete OperationType = "Delete"
437
438 OperationTypeReplace OperationType = "Replace"
439
440 OperationTypeSystemOperation OperationType = "SystemOperation"
441 )
442
443
444 func PossibleOperationTypeValues() []OperationType {
445 return []OperationType{OperationTypeCreate, OperationTypeDelete, OperationTypeReplace, OperationTypeSystemOperation}
446 }
447
448
449 type PartitionKind string
450
451 const (
452
453 PartitionKindHash PartitionKind = "Hash"
454
455 PartitionKindMultiHash PartitionKind = "MultiHash"
456
457 PartitionKindRange PartitionKind = "Range"
458 )
459
460
461 func PossiblePartitionKindValues() []PartitionKind {
462 return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange}
463 }
464
465
466 type PrimaryAggregationType string
467
468 const (
469
470 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
471
472 PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
473
474 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
475
476 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
477
478 PrimaryAggregationTypeNone PrimaryAggregationType = "None"
479
480 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
481 )
482
483
484 func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
485 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
486 }
487
488
489 type PublicNetworkAccess string
490
491 const (
492
493 PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
494
495 PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
496 )
497
498
499 func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
500 return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled}
501 }
502
503
504 type ResourceIdentityType string
505
506 const (
507
508 ResourceIdentityTypeNone ResourceIdentityType = "None"
509
510 ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
511
512 ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
513
514 ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
515 )
516
517
518 func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
519 return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
520 }
521
522
523 type RestoreMode string
524
525 const (
526
527 RestoreModePointInTime RestoreMode = "PointInTime"
528 )
529
530
531 func PossibleRestoreModeValues() []RestoreMode {
532 return []RestoreMode{RestoreModePointInTime}
533 }
534
535
536 type RoleDefinitionType string
537
538 const (
539
540 RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole"
541
542 RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole"
543 )
544
545
546 func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
547 return []RoleDefinitionType{RoleDefinitionTypeBuiltInRole, RoleDefinitionTypeCustomRole}
548 }
549
550
551 type ServerVersion string
552
553 const (
554
555 ServerVersionFourFullStopTwo ServerVersion = "4.2"
556
557 ServerVersionFourFullStopZero ServerVersion = "4.0"
558
559 ServerVersionThreeFullStopSix ServerVersion = "3.6"
560
561 ServerVersionThreeFullStopTwo ServerVersion = "3.2"
562 )
563
564
565 func PossibleServerVersionValues() []ServerVersion {
566 return []ServerVersion{ServerVersionFourFullStopTwo, ServerVersionFourFullStopZero, ServerVersionThreeFullStopSix, ServerVersionThreeFullStopTwo}
567 }
568
569
570 type SpatialType string
571
572 const (
573
574 SpatialTypeLineString SpatialType = "LineString"
575
576 SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
577
578 SpatialTypePoint SpatialType = "Point"
579
580 SpatialTypePolygon SpatialType = "Polygon"
581 )
582
583
584 func PossibleSpatialTypeValues() []SpatialType {
585 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
586 }
587
588
589 type TriggerOperation string
590
591 const (
592
593 TriggerOperationAll TriggerOperation = "All"
594
595 TriggerOperationCreate TriggerOperation = "Create"
596
597 TriggerOperationDelete TriggerOperation = "Delete"
598
599 TriggerOperationReplace TriggerOperation = "Replace"
600
601 TriggerOperationUpdate TriggerOperation = "Update"
602 )
603
604
605 func PossibleTriggerOperationValues() []TriggerOperation {
606 return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate}
607 }
608
609
610 type TriggerType string
611
612 const (
613
614 TriggerTypePost TriggerType = "Post"
615
616 TriggerTypePre TriggerType = "Pre"
617 )
618
619
620 func PossibleTriggerTypeValues() []TriggerType {
621 return []TriggerType{TriggerTypePost, TriggerTypePre}
622 }
623
624
625 type Type string
626
627 const (
628
629 TypeBackupPolicy Type = "BackupPolicy"
630
631 TypeContinuous Type = "Continuous"
632
633 TypePeriodic Type = "Periodic"
634 )
635
636
637 func PossibleTypeValues() []Type {
638 return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
639 }
640
641
642 type UnitType string
643
644 const (
645
646 UnitTypeBytes UnitType = "Bytes"
647
648 UnitTypeBytesPerSecond UnitType = "BytesPerSecond"
649
650 UnitTypeCount UnitType = "Count"
651
652 UnitTypeCountPerSecond UnitType = "CountPerSecond"
653
654 UnitTypeMilliseconds UnitType = "Milliseconds"
655
656 UnitTypePercent UnitType = "Percent"
657
658 UnitTypeSeconds UnitType = "Seconds"
659 )
660
661
662 func PossibleUnitTypeValues() []UnitType {
663 return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds}
664 }
665
View as plain text