1 package documentdb
2
3
4
5
6
7
8
9
10 type BackupPolicyType string
11
12 const (
13
14 Continuous BackupPolicyType = "Continuous"
15
16 Periodic BackupPolicyType = "Periodic"
17 )
18
19
20 func PossibleBackupPolicyTypeValues() []BackupPolicyType {
21 return []BackupPolicyType{Continuous, Periodic}
22 }
23
24
25 type CompositePathSortOrder string
26
27 const (
28
29 Ascending CompositePathSortOrder = "ascending"
30
31 Descending CompositePathSortOrder = "descending"
32 )
33
34
35 func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
36 return []CompositePathSortOrder{Ascending, Descending}
37 }
38
39
40 type ConflictResolutionMode string
41
42 const (
43
44 Custom ConflictResolutionMode = "Custom"
45
46 LastWriterWins ConflictResolutionMode = "LastWriterWins"
47 )
48
49
50 func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
51 return []ConflictResolutionMode{Custom, LastWriterWins}
52 }
53
54
55 type ConnectorOffer string
56
57 const (
58
59 Small ConnectorOffer = "Small"
60 )
61
62
63 func PossibleConnectorOfferValues() []ConnectorOffer {
64 return []ConnectorOffer{Small}
65 }
66
67
68 type DatabaseAccountKind string
69
70 const (
71
72 GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
73
74 MongoDB DatabaseAccountKind = "MongoDB"
75
76 Parse DatabaseAccountKind = "Parse"
77 )
78
79
80 func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
81 return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
82 }
83
84
85 type DatabaseAccountOfferType string
86
87 const (
88
89 Standard DatabaseAccountOfferType = "Standard"
90 )
91
92
93 func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
94 return []DatabaseAccountOfferType{Standard}
95 }
96
97
98 type DataType string
99
100 const (
101
102 LineString DataType = "LineString"
103
104 MultiPolygon DataType = "MultiPolygon"
105
106 Number DataType = "Number"
107
108 Point DataType = "Point"
109
110 Polygon DataType = "Polygon"
111
112 String DataType = "String"
113 )
114
115
116 func PossibleDataTypeValues() []DataType {
117 return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
118 }
119
120
121 type DefaultConsistencyLevel string
122
123 const (
124
125 BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
126
127 ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
128
129 Eventual DefaultConsistencyLevel = "Eventual"
130
131 Session DefaultConsistencyLevel = "Session"
132
133 Strong DefaultConsistencyLevel = "Strong"
134 )
135
136
137 func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
138 return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
139 }
140
141
142 type IndexingMode string
143
144 const (
145
146 Consistent IndexingMode = "consistent"
147
148 Lazy IndexingMode = "lazy"
149
150 None IndexingMode = "none"
151 )
152
153
154 func PossibleIndexingModeValues() []IndexingMode {
155 return []IndexingMode{Consistent, Lazy, None}
156 }
157
158
159 type IndexKind string
160
161 const (
162
163 Hash IndexKind = "Hash"
164
165 Range IndexKind = "Range"
166
167 Spatial IndexKind = "Spatial"
168 )
169
170
171 func PossibleIndexKindValues() []IndexKind {
172 return []IndexKind{Hash, Range, Spatial}
173 }
174
175
176 type KeyKind string
177
178 const (
179
180 Primary KeyKind = "primary"
181
182 PrimaryReadonly KeyKind = "primaryReadonly"
183
184 Secondary KeyKind = "secondary"
185
186 SecondaryReadonly KeyKind = "secondaryReadonly"
187 )
188
189
190 func PossibleKeyKindValues() []KeyKind {
191 return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
192 }
193
194
195 type NetworkACLBypass string
196
197 const (
198
199 NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
200
201 NetworkACLBypassNone NetworkACLBypass = "None"
202 )
203
204
205 func PossibleNetworkACLBypassValues() []NetworkACLBypass {
206 return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone}
207 }
208
209
210 type PartitionKind string
211
212 const (
213
214 PartitionKindHash PartitionKind = "Hash"
215
216 PartitionKindMultiHash PartitionKind = "MultiHash"
217
218 PartitionKindRange PartitionKind = "Range"
219 )
220
221
222 func PossiblePartitionKindValues() []PartitionKind {
223 return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange}
224 }
225
226
227 type PrimaryAggregationType string
228
229 const (
230
231 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
232
233 PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
234
235 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
236
237 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
238
239 PrimaryAggregationTypeNone PrimaryAggregationType = "None"
240
241 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
242 )
243
244
245 func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
246 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
247 }
248
249
250 type PublicNetworkAccess string
251
252 const (
253
254 Disabled PublicNetworkAccess = "Disabled"
255
256 Enabled PublicNetworkAccess = "Enabled"
257 )
258
259
260 func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
261 return []PublicNetworkAccess{Disabled, Enabled}
262 }
263
264
265 type ResourceIdentityType string
266
267 const (
268
269 ResourceIdentityTypeNone ResourceIdentityType = "None"
270
271 ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
272
273 ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
274
275 ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
276 )
277
278
279 func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
280 return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
281 }
282
283
284 type ServerVersion string
285
286 const (
287
288 FourFullStopZero ServerVersion = "4.0"
289
290 ThreeFullStopSix ServerVersion = "3.6"
291
292 ThreeFullStopTwo ServerVersion = "3.2"
293 )
294
295
296 func PossibleServerVersionValues() []ServerVersion {
297 return []ServerVersion{FourFullStopZero, ThreeFullStopSix, ThreeFullStopTwo}
298 }
299
300
301 type SpatialType string
302
303 const (
304
305 SpatialTypeLineString SpatialType = "LineString"
306
307 SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
308
309 SpatialTypePoint SpatialType = "Point"
310
311 SpatialTypePolygon SpatialType = "Polygon"
312 )
313
314
315 func PossibleSpatialTypeValues() []SpatialType {
316 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
317 }
318
319
320 type TriggerOperation string
321
322 const (
323
324 All TriggerOperation = "All"
325
326 Create TriggerOperation = "Create"
327
328 Delete TriggerOperation = "Delete"
329
330 Replace TriggerOperation = "Replace"
331
332 Update TriggerOperation = "Update"
333 )
334
335
336 func PossibleTriggerOperationValues() []TriggerOperation {
337 return []TriggerOperation{All, Create, Delete, Replace, Update}
338 }
339
340
341 type TriggerType string
342
343 const (
344
345 Post TriggerType = "Post"
346
347 Pre TriggerType = "Pre"
348 )
349
350
351 func PossibleTriggerTypeValues() []TriggerType {
352 return []TriggerType{Post, Pre}
353 }
354
355
356 type Type string
357
358 const (
359
360 TypeBackupPolicy Type = "BackupPolicy"
361
362 TypeContinuous Type = "Continuous"
363
364 TypePeriodic Type = "Periodic"
365 )
366
367
368 func PossibleTypeValues() []Type {
369 return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
370 }
371
372
373 type UnitType string
374
375 const (
376
377 Bytes UnitType = "Bytes"
378
379 BytesPerSecond UnitType = "BytesPerSecond"
380
381 Count UnitType = "Count"
382
383 CountPerSecond UnitType = "CountPerSecond"
384
385 Milliseconds UnitType = "Milliseconds"
386
387 Percent UnitType = "Percent"
388
389 Seconds UnitType = "Seconds"
390 )
391
392
393 func PossibleUnitTypeValues() []UnitType {
394 return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
395 }
396
View as plain text