...
1 package documentdb
2
3
4
5
6
7
8
9
10 type ConflictResolutionMode string
11
12 const (
13
14 Custom ConflictResolutionMode = "Custom"
15
16 LastWriterWins ConflictResolutionMode = "LastWriterWins"
17 )
18
19
20 func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
21 return []ConflictResolutionMode{Custom, LastWriterWins}
22 }
23
24
25 type ConnectorOffer string
26
27 const (
28
29 Small ConnectorOffer = "Small"
30 )
31
32
33 func PossibleConnectorOfferValues() []ConnectorOffer {
34 return []ConnectorOffer{Small}
35 }
36
37
38 type DatabaseAccountKind string
39
40 const (
41
42 GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
43
44 MongoDB DatabaseAccountKind = "MongoDB"
45
46 Parse DatabaseAccountKind = "Parse"
47 )
48
49
50 func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
51 return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
52 }
53
54
55 type DatabaseAccountOfferType string
56
57 const (
58
59 Standard DatabaseAccountOfferType = "Standard"
60 )
61
62
63 func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
64 return []DatabaseAccountOfferType{Standard}
65 }
66
67
68 type DataType string
69
70 const (
71
72 LineString DataType = "LineString"
73
74 MultiPolygon DataType = "MultiPolygon"
75
76 Number DataType = "Number"
77
78 Point DataType = "Point"
79
80 Polygon DataType = "Polygon"
81
82 String DataType = "String"
83 )
84
85
86 func PossibleDataTypeValues() []DataType {
87 return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
88 }
89
90
91 type DefaultConsistencyLevel string
92
93 const (
94
95 BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
96
97 ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
98
99 Eventual DefaultConsistencyLevel = "Eventual"
100
101 Session DefaultConsistencyLevel = "Session"
102
103 Strong DefaultConsistencyLevel = "Strong"
104 )
105
106
107 func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
108 return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
109 }
110
111
112 type IndexingMode string
113
114 const (
115
116 Consistent IndexingMode = "Consistent"
117
118 Lazy IndexingMode = "Lazy"
119
120 None IndexingMode = "None"
121 )
122
123
124 func PossibleIndexingModeValues() []IndexingMode {
125 return []IndexingMode{Consistent, Lazy, None}
126 }
127
128
129 type IndexKind string
130
131 const (
132
133 Hash IndexKind = "Hash"
134
135 Range IndexKind = "Range"
136
137 Spatial IndexKind = "Spatial"
138 )
139
140
141 func PossibleIndexKindValues() []IndexKind {
142 return []IndexKind{Hash, Range, Spatial}
143 }
144
145
146 type KeyKind string
147
148 const (
149
150 Primary KeyKind = "primary"
151
152 PrimaryReadonly KeyKind = "primaryReadonly"
153
154 Secondary KeyKind = "secondary"
155
156 SecondaryReadonly KeyKind = "secondaryReadonly"
157 )
158
159
160 func PossibleKeyKindValues() []KeyKind {
161 return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
162 }
163
164
165 type PartitionKind string
166
167 const (
168
169 PartitionKindHash PartitionKind = "Hash"
170
171 PartitionKindRange PartitionKind = "Range"
172 )
173
174
175 func PossiblePartitionKindValues() []PartitionKind {
176 return []PartitionKind{PartitionKindHash, PartitionKindRange}
177 }
178
179
180 type PrimaryAggregationType string
181
182 const (
183
184 PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
185
186 PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
187
188 PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
189
190 PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
191
192 PrimaryAggregationTypeNone PrimaryAggregationType = "None"
193
194 PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
195 )
196
197
198 func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
199 return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
200 }
201
202
203 type UnitType string
204
205 const (
206
207 Bytes UnitType = "Bytes"
208
209 BytesPerSecond UnitType = "BytesPerSecond"
210
211 Count UnitType = "Count"
212
213 CountPerSecond UnitType = "CountPerSecond"
214
215 Milliseconds UnitType = "Milliseconds"
216
217 Percent UnitType = "Percent"
218
219 Seconds UnitType = "Seconds"
220 )
221
222
223 func PossibleUnitTypeValues() []UnitType {
224 return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
225 }
226
View as plain text