...
1 package documentdb
2
3
4
5
6
7
8
9
10 type CompositePathSortOrder string
11
12 const (
13
14 Ascending CompositePathSortOrder = "Ascending"
15
16 Descending CompositePathSortOrder = "Descending"
17 )
18
19
20 func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
21 return []CompositePathSortOrder{Ascending, Descending}
22 }
23
24
25 type ConflictResolutionMode string
26
27 const (
28
29 Custom ConflictResolutionMode = "Custom"
30
31 LastWriterWins ConflictResolutionMode = "LastWriterWins"
32 )
33
34
35 func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
36 return []ConflictResolutionMode{Custom, LastWriterWins}
37 }
38
39
40 type ConnectorOffer string
41
42 const (
43
44 Small ConnectorOffer = "Small"
45 )
46
47
48 func PossibleConnectorOfferValues() []ConnectorOffer {
49 return []ConnectorOffer{Small}
50 }
51
52
53 type DatabaseAccountKind string
54
55 const (
56
57 GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
58
59 MongoDB DatabaseAccountKind = "MongoDB"
60
61 Parse DatabaseAccountKind = "Parse"
62 )
63
64
65 func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
66 return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
67 }
68
69
70 type DatabaseAccountOfferType string
71
72 const (
73
74 Standard DatabaseAccountOfferType = "Standard"
75 )
76
77
78 func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
79 return []DatabaseAccountOfferType{Standard}
80 }
81
82
83 type DataType string
84
85 const (
86
87 LineString DataType = "LineString"
88
89 MultiPolygon DataType = "MultiPolygon"
90
91 Number DataType = "Number"
92
93 Point DataType = "Point"
94
95 Polygon DataType = "Polygon"
96
97 String DataType = "String"
98 )
99
100
101 func PossibleDataTypeValues() []DataType {
102 return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
103 }
104
105
106 type DefaultConsistencyLevel string
107
108 const (
109
110 BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
111
112 ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
113
114 Eventual DefaultConsistencyLevel = "Eventual"
115
116 Session DefaultConsistencyLevel = "Session"
117
118 Strong DefaultConsistencyLevel = "Strong"
119 )
120
121
122 func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
123 return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
124 }
125
126
127 type IndexingMode string
128
129 const (
130
131 Consistent IndexingMode = "Consistent"
132
133 Lazy IndexingMode = "Lazy"
134
135 None IndexingMode = "None"
136 )
137
138
139 func PossibleIndexingModeValues() []IndexingMode {
140 return []IndexingMode{Consistent, Lazy, None}
141 }
142
143
144 type IndexKind string
145
146 const (
147
148 Hash IndexKind = "Hash"
149
150 Range IndexKind = "Range"
151
152 Spatial IndexKind = "Spatial"
153 )
154
155
156 func PossibleIndexKindValues() []IndexKind {
157 return []IndexKind{Hash, Range, Spatial}
158 }
159
160
161 type KeyKind string
162
163 const (
164
165 Primary KeyKind = "primary"
166
167 PrimaryReadonly KeyKind = "primaryReadonly"
168
169 Secondary KeyKind = "secondary"
170
171 SecondaryReadonly KeyKind = "secondaryReadonly"
172 )
173
174
175 func PossibleKeyKindValues() []KeyKind {
176 return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
177 }
178
179
180 type PartitionKind string
181
182 const (
183
184 PartitionKindHash PartitionKind = "Hash"
185
186 PartitionKindRange PartitionKind = "Range"
187 )
188
189
190 func PossiblePartitionKindValues() []PartitionKind {
191 return []PartitionKind{PartitionKindHash, PartitionKindRange}
192 }
193
194
195 type PrimaryAggregationType string
196
197 const (
198
199 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
200
201 PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
202
203 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
204
205 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
206
207 PrimaryAggregationTypeNone PrimaryAggregationType = "None"
208
209 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
210 )
211
212
213 func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
214 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
215 }
216
217
218 type SpatialType string
219
220 const (
221
222 SpatialTypeLineString SpatialType = "LineString"
223
224 SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
225
226 SpatialTypePoint SpatialType = "Point"
227
228 SpatialTypePolygon SpatialType = "Polygon"
229 )
230
231
232 func PossibleSpatialTypeValues() []SpatialType {
233 return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
234 }
235
236
237 type TriggerOperation string
238
239 const (
240
241 All TriggerOperation = "All"
242
243 Create TriggerOperation = "Create"
244
245 Delete TriggerOperation = "Delete"
246
247 Replace TriggerOperation = "Replace"
248
249 Update TriggerOperation = "Update"
250 )
251
252
253 func PossibleTriggerOperationValues() []TriggerOperation {
254 return []TriggerOperation{All, Create, Delete, Replace, Update}
255 }
256
257
258 type TriggerType string
259
260 const (
261
262 Post TriggerType = "Post"
263
264 Pre TriggerType = "Pre"
265 )
266
267
268 func PossibleTriggerTypeValues() []TriggerType {
269 return []TriggerType{Post, Pre}
270 }
271
272
273 type UnitType string
274
275 const (
276
277 Bytes UnitType = "Bytes"
278
279 BytesPerSecond UnitType = "BytesPerSecond"
280
281 Count UnitType = "Count"
282
283 CountPerSecond UnitType = "CountPerSecond"
284
285 Milliseconds UnitType = "Milliseconds"
286
287 Percent UnitType = "Percent"
288
289 Seconds UnitType = "Seconds"
290 )
291
292
293 func PossibleUnitTypeValues() []UnitType {
294 return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
295 }
296
View as plain text