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