1 package documentdb
2
3
4
5
6
7
8
9
10 type AnalyticalStorageSchemaType string
11
12 const (
13
14 FullFidelity AnalyticalStorageSchemaType = "FullFidelity"
15
16 WellDefined AnalyticalStorageSchemaType = "WellDefined"
17 )
18
19
20 func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType {
21 return []AnalyticalStorageSchemaType{FullFidelity, WellDefined}
22 }
23
24
25 type APIType string
26
27 const (
28
29 Cassandra APIType = "Cassandra"
30
31 Gremlin APIType = "Gremlin"
32
33 GremlinV2 APIType = "GremlinV2"
34
35 MongoDB APIType = "MongoDB"
36
37 SQL APIType = "Sql"
38
39 Table APIType = "Table"
40 )
41
42
43 func PossibleAPITypeValues() []APIType {
44 return []APIType{Cassandra, Gremlin, GremlinV2, MongoDB, SQL, Table}
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 Completed BackupPolicyMigrationStatus = "Completed"
68
69 Failed BackupPolicyMigrationStatus = "Failed"
70
71 InProgress BackupPolicyMigrationStatus = "InProgress"
72
73 Invalid BackupPolicyMigrationStatus = "Invalid"
74 )
75
76
77 func PossibleBackupPolicyMigrationStatusValues() []BackupPolicyMigrationStatus {
78 return []BackupPolicyMigrationStatus{Completed, Failed, InProgress, Invalid}
79 }
80
81
82 type BackupPolicyType string
83
84 const (
85
86 Continuous BackupPolicyType = "Continuous"
87
88 Periodic BackupPolicyType = "Periodic"
89 )
90
91
92 func PossibleBackupPolicyTypeValues() []BackupPolicyType {
93 return []BackupPolicyType{Continuous, Periodic}
94 }
95
96
97 type BackupStorageRedundancy string
98
99 const (
100
101 Geo BackupStorageRedundancy = "Geo"
102
103 Local BackupStorageRedundancy = "Local"
104
105 Zone BackupStorageRedundancy = "Zone"
106 )
107
108
109 func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy {
110 return []BackupStorageRedundancy{Geo, Local, Zone}
111 }
112
113
114 type CompositePathSortOrder string
115
116 const (
117
118 Ascending CompositePathSortOrder = "ascending"
119
120 Descending CompositePathSortOrder = "descending"
121 )
122
123
124 func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
125 return []CompositePathSortOrder{Ascending, Descending}
126 }
127
128
129 type ConflictResolutionMode string
130
131 const (
132
133 Custom ConflictResolutionMode = "Custom"
134
135 LastWriterWins ConflictResolutionMode = "LastWriterWins"
136 )
137
138
139 func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
140 return []ConflictResolutionMode{Custom, LastWriterWins}
141 }
142
143
144 type ConnectionState string
145
146 const (
147
148 DatacenterToDatacenterNetworkError ConnectionState = "DatacenterToDatacenterNetworkError"
149
150 InternalError ConnectionState = "InternalError"
151
152 InternalOperatorToDataCenterCertificateError ConnectionState = "InternalOperatorToDataCenterCertificateError"
153
154 OK ConnectionState = "OK"
155
156 OperatorToDataCenterNetworkError ConnectionState = "OperatorToDataCenterNetworkError"
157
158 Unknown ConnectionState = "Unknown"
159 )
160
161
162 func PossibleConnectionStateValues() []ConnectionState {
163 return []ConnectionState{DatacenterToDatacenterNetworkError, InternalError, InternalOperatorToDataCenterCertificateError, OK, OperatorToDataCenterNetworkError, Unknown}
164 }
165
166
167 type ConnectorOffer string
168
169 const (
170
171 Small ConnectorOffer = "Small"
172 )
173
174
175 func PossibleConnectorOfferValues() []ConnectorOffer {
176 return []ConnectorOffer{Small}
177 }
178
179
180 type CreatedByType string
181
182 const (
183
184 Application CreatedByType = "Application"
185
186 Key CreatedByType = "Key"
187
188 ManagedIdentity CreatedByType = "ManagedIdentity"
189
190 User CreatedByType = "User"
191 )
192
193
194 func PossibleCreatedByTypeValues() []CreatedByType {
195 return []CreatedByType{Application, Key, ManagedIdentity, User}
196 }
197
198
199 type CreateMode string
200
201 const (
202
203 Default CreateMode = "Default"
204
205 Restore CreateMode = "Restore"
206 )
207
208
209 func PossibleCreateModeValues() []CreateMode {
210 return []CreateMode{Default, Restore}
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 Standard DatabaseAccountOfferType = "Standard"
236 )
237
238
239 func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
240 return []DatabaseAccountOfferType{Standard}
241 }
242
243
244 type DataType string
245
246 const (
247
248 LineString DataType = "LineString"
249
250 MultiPolygon DataType = "MultiPolygon"
251
252 Number DataType = "Number"
253
254 Point DataType = "Point"
255
256 Polygon DataType = "Polygon"
257
258 String DataType = "String"
259 )
260
261
262 func PossibleDataTypeValues() []DataType {
263 return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
264 }
265
266
267 type DefaultConsistencyLevel string
268
269 const (
270
271 BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
272
273 ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
274
275 Eventual DefaultConsistencyLevel = "Eventual"
276
277 Session DefaultConsistencyLevel = "Session"
278
279 Strong DefaultConsistencyLevel = "Strong"
280 )
281
282
283 func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
284 return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
285 }
286
287
288 type IndexingMode string
289
290 const (
291
292 Consistent IndexingMode = "consistent"
293
294 Lazy IndexingMode = "lazy"
295
296 None IndexingMode = "none"
297 )
298
299
300 func PossibleIndexingModeValues() []IndexingMode {
301 return []IndexingMode{Consistent, Lazy, None}
302 }
303
304
305 type IndexKind string
306
307 const (
308
309 Hash IndexKind = "Hash"
310
311 Range IndexKind = "Range"
312
313 Spatial IndexKind = "Spatial"
314 )
315
316
317 func PossibleIndexKindValues() []IndexKind {
318 return []IndexKind{Hash, Range, Spatial}
319 }
320
321
322 type KeyKind string
323
324 const (
325
326 Primary KeyKind = "primary"
327
328 PrimaryReadonly KeyKind = "primaryReadonly"
329
330 Secondary KeyKind = "secondary"
331
332 SecondaryReadonly KeyKind = "secondaryReadonly"
333 )
334
335
336 func PossibleKeyKindValues() []KeyKind {
337 return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
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 Joining NodeState = "Joining"
399
400 Leaving NodeState = "Leaving"
401
402 Moving NodeState = "Moving"
403
404 Normal NodeState = "Normal"
405
406 Stopped NodeState = "Stopped"
407 )
408
409
410 func PossibleNodeStateValues() []NodeState {
411 return []NodeState{Joining, Leaving, Moving, Normal, Stopped}
412 }
413
414
415 type NodeStatus string
416
417 const (
418
419 Down NodeStatus = "Down"
420
421 Up NodeStatus = "Up"
422 )
423
424
425 func PossibleNodeStatusValues() []NodeStatus {
426 return []NodeStatus{Down, Up}
427 }
428
429
430 type OperationType string
431
432 const (
433
434 Create OperationType = "Create"
435
436 Delete OperationType = "Delete"
437
438 Replace OperationType = "Replace"
439
440 SystemOperation OperationType = "SystemOperation"
441 )
442
443
444 func PossibleOperationTypeValues() []OperationType {
445 return []OperationType{Create, Delete, Replace, SystemOperation}
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 Disabled PublicNetworkAccess = "Disabled"
494
495 Enabled PublicNetworkAccess = "Enabled"
496 )
497
498
499 func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
500 return []PublicNetworkAccess{Disabled, Enabled}
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 PointInTime RestoreMode = "PointInTime"
528 )
529
530
531 func PossibleRestoreModeValues() []RestoreMode {
532 return []RestoreMode{PointInTime}
533 }
534
535
536 type RoleDefinitionType string
537
538 const (
539
540 BuiltInRole RoleDefinitionType = "BuiltInRole"
541
542 CustomRole RoleDefinitionType = "CustomRole"
543 )
544
545
546 func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
547 return []RoleDefinitionType{BuiltInRole, CustomRole}
548 }
549
550
551 type ServerVersion string
552
553 const (
554
555 FourFullStopTwo ServerVersion = "4.2"
556
557 FourFullStopZero ServerVersion = "4.0"
558
559 ThreeFullStopSix ServerVersion = "3.6"
560
561 ThreeFullStopTwo ServerVersion = "3.2"
562 )
563
564
565 func PossibleServerVersionValues() []ServerVersion {
566 return []ServerVersion{FourFullStopTwo, FourFullStopZero, ThreeFullStopSix, ThreeFullStopTwo}
567 }
568
569
570 type ServiceSize string
571
572 const (
573
574 CosmosD16s ServiceSize = "Cosmos.D16s"
575
576 CosmosD4s ServiceSize = "Cosmos.D4s"
577
578 CosmosD8s ServiceSize = "Cosmos.D8s"
579 )
580
581
582 func PossibleServiceSizeValues() []ServiceSize {
583 return []ServiceSize{CosmosD16s, CosmosD4s, CosmosD8s}
584 }
585
586
587 type ServiceStatus string
588
589 const (
590
591 ServiceStatusCreating ServiceStatus = "Creating"
592
593 ServiceStatusDeleting ServiceStatus = "Deleting"
594
595 ServiceStatusError ServiceStatus = "Error"
596
597 ServiceStatusRunning ServiceStatus = "Running"
598
599 ServiceStatusStopped ServiceStatus = "Stopped"
600
601 ServiceStatusUpdating ServiceStatus = "Updating"
602 )
603
604
605 func PossibleServiceStatusValues() []ServiceStatus {
606 return []ServiceStatus{ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusError, ServiceStatusRunning, ServiceStatusStopped, ServiceStatusUpdating}
607 }
608
609
610 type ServiceType string
611
612 const (
613
614 DataTransfer ServiceType = "DataTransfer"
615
616 GraphAPICompute ServiceType = "GraphAPICompute"
617
618 MaterializedViewsBuilder ServiceType = "MaterializedViewsBuilder"
619
620 SQLDedicatedGateway ServiceType = "SqlDedicatedGateway"
621 )
622
623
624 func PossibleServiceTypeValues() []ServiceType {
625 return []ServiceType{DataTransfer, GraphAPICompute, MaterializedViewsBuilder, SQLDedicatedGateway}
626 }
627
628
629
630 type ServiceTypeBasicServiceResourceProperties string
631
632 const (
633
634 ServiceTypeDataTransfer ServiceTypeBasicServiceResourceProperties = "DataTransfer"
635
636 ServiceTypeGraphAPICompute ServiceTypeBasicServiceResourceProperties = "GraphAPICompute"
637
638 ServiceTypeMaterializedViewsBuilder ServiceTypeBasicServiceResourceProperties = "MaterializedViewsBuilder"
639
640 ServiceTypeServiceResourceProperties ServiceTypeBasicServiceResourceProperties = "ServiceResourceProperties"
641
642 ServiceTypeSQLDedicatedGateway ServiceTypeBasicServiceResourceProperties = "SqlDedicatedGateway"
643 )
644
645
646 func PossibleServiceTypeBasicServiceResourcePropertiesValues() []ServiceTypeBasicServiceResourceProperties {
647 return []ServiceTypeBasicServiceResourceProperties{ServiceTypeDataTransfer, ServiceTypeGraphAPICompute, ServiceTypeMaterializedViewsBuilder, ServiceTypeServiceResourceProperties, ServiceTypeSQLDedicatedGateway}
648 }
649
650
651 type SpatialType string
652
653 const (
654
655 SpatialTypeLineString SpatialType = "LineString"
656
657 SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
658
659 SpatialTypePoint SpatialType = "Point"
660
661 SpatialTypePolygon SpatialType = "Polygon"
662 )
663
664
665 func PossibleSpatialTypeValues() []SpatialType {
666 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
667 }
668
669
670 type TriggerOperation string
671
672 const (
673
674 TriggerOperationAll TriggerOperation = "All"
675
676 TriggerOperationCreate TriggerOperation = "Create"
677
678 TriggerOperationDelete TriggerOperation = "Delete"
679
680 TriggerOperationReplace TriggerOperation = "Replace"
681
682 TriggerOperationUpdate TriggerOperation = "Update"
683 )
684
685
686 func PossibleTriggerOperationValues() []TriggerOperation {
687 return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate}
688 }
689
690
691 type TriggerType string
692
693 const (
694
695 Post TriggerType = "Post"
696
697 Pre TriggerType = "Pre"
698 )
699
700
701 func PossibleTriggerTypeValues() []TriggerType {
702 return []TriggerType{Post, Pre}
703 }
704
705
706 type Type string
707
708 const (
709
710 TypeBackupPolicy Type = "BackupPolicy"
711
712 TypeContinuous Type = "Continuous"
713
714 TypePeriodic Type = "Periodic"
715 )
716
717
718 func PossibleTypeValues() []Type {
719 return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
720 }
721
722
723 type UnitType string
724
725 const (
726
727 Bytes UnitType = "Bytes"
728
729 BytesPerSecond UnitType = "BytesPerSecond"
730
731 Count UnitType = "Count"
732
733 CountPerSecond UnitType = "CountPerSecond"
734
735 Milliseconds UnitType = "Milliseconds"
736
737 Percent UnitType = "Percent"
738
739 Seconds UnitType = "Seconds"
740 )
741
742
743 func PossibleUnitTypeValues() []UnitType {
744 return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
745 }
746
View as plain text