1package documentdb
2
3// Copyright (c) Microsoft Corporation. All rights reserved.
4// Licensed under the MIT License. See License.txt in the project root for license information.
5//
6// Code generated by Microsoft (R) AutoRest Code Generator.
7// Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
9// CompositePathSortOrder enumerates the values for composite path sort order.
10type CompositePathSortOrder string
11
12const (
13	// Ascending ...
14	Ascending CompositePathSortOrder = "Ascending"
15	// Descending ...
16	Descending CompositePathSortOrder = "Descending"
17)
18
19// PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.
20func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
21	return []CompositePathSortOrder{Ascending, Descending}
22}
23
24// ConflictResolutionMode enumerates the values for conflict resolution mode.
25type ConflictResolutionMode string
26
27const (
28	// Custom ...
29	Custom ConflictResolutionMode = "Custom"
30	// LastWriterWins ...
31	LastWriterWins ConflictResolutionMode = "LastWriterWins"
32)
33
34// PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
35func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
36	return []ConflictResolutionMode{Custom, LastWriterWins}
37}
38
39// ConnectorOffer enumerates the values for connector offer.
40type ConnectorOffer string
41
42const (
43	// Small ...
44	Small ConnectorOffer = "Small"
45)
46
47// PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
48func PossibleConnectorOfferValues() []ConnectorOffer {
49	return []ConnectorOffer{Small}
50}
51
52// DatabaseAccountKind enumerates the values for database account kind.
53type DatabaseAccountKind string
54
55const (
56	// GlobalDocumentDB ...
57	GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
58	// MongoDB ...
59	MongoDB DatabaseAccountKind = "MongoDB"
60	// Parse ...
61	Parse DatabaseAccountKind = "Parse"
62)
63
64// PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
65func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
66	return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
67}
68
69// DatabaseAccountOfferType enumerates the values for database account offer type.
70type DatabaseAccountOfferType string
71
72const (
73	// Standard ...
74	Standard DatabaseAccountOfferType = "Standard"
75)
76
77// PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
78func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
79	return []DatabaseAccountOfferType{Standard}
80}
81
82// DataType enumerates the values for data type.
83type DataType string
84
85const (
86	// LineString ...
87	LineString DataType = "LineString"
88	// MultiPolygon ...
89	MultiPolygon DataType = "MultiPolygon"
90	// Number ...
91	Number DataType = "Number"
92	// Point ...
93	Point DataType = "Point"
94	// Polygon ...
95	Polygon DataType = "Polygon"
96	// String ...
97	String DataType = "String"
98)
99
100// PossibleDataTypeValues returns an array of possible values for the DataType const type.
101func PossibleDataTypeValues() []DataType {
102	return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
103}
104
105// DefaultConsistencyLevel enumerates the values for default consistency level.
106type DefaultConsistencyLevel string
107
108const (
109	// BoundedStaleness ...
110	BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
111	// ConsistentPrefix ...
112	ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
113	// Eventual ...
114	Eventual DefaultConsistencyLevel = "Eventual"
115	// Session ...
116	Session DefaultConsistencyLevel = "Session"
117	// Strong ...
118	Strong DefaultConsistencyLevel = "Strong"
119)
120
121// PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
122func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
123	return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
124}
125
126// IndexingMode enumerates the values for indexing mode.
127type IndexingMode string
128
129const (
130	// Consistent ...
131	Consistent IndexingMode = "Consistent"
132	// Lazy ...
133	Lazy IndexingMode = "Lazy"
134	// None ...
135	None IndexingMode = "None"
136)
137
138// PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
139func PossibleIndexingModeValues() []IndexingMode {
140	return []IndexingMode{Consistent, Lazy, None}
141}
142
143// IndexKind enumerates the values for index kind.
144type IndexKind string
145
146const (
147	// Hash ...
148	Hash IndexKind = "Hash"
149	// Range ...
150	Range IndexKind = "Range"
151	// Spatial ...
152	Spatial IndexKind = "Spatial"
153)
154
155// PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
156func PossibleIndexKindValues() []IndexKind {
157	return []IndexKind{Hash, Range, Spatial}
158}
159
160// KeyKind enumerates the values for key kind.
161type KeyKind string
162
163const (
164	// Primary ...
165	Primary KeyKind = "primary"
166	// PrimaryReadonly ...
167	PrimaryReadonly KeyKind = "primaryReadonly"
168	// Secondary ...
169	Secondary KeyKind = "secondary"
170	// SecondaryReadonly ...
171	SecondaryReadonly KeyKind = "secondaryReadonly"
172)
173
174// PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
175func PossibleKeyKindValues() []KeyKind {
176	return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
177}
178
179// PartitionKind enumerates the values for partition kind.
180type PartitionKind string
181
182const (
183	// PartitionKindHash ...
184	PartitionKindHash PartitionKind = "Hash"
185	// PartitionKindRange ...
186	PartitionKindRange PartitionKind = "Range"
187)
188
189// PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
190func PossiblePartitionKindValues() []PartitionKind {
191	return []PartitionKind{PartitionKindHash, PartitionKindRange}
192}
193
194// PrimaryAggregationType enumerates the values for primary aggregation type.
195type PrimaryAggregationType string
196
197const (
198	// PrimaryAggregationTypeAverage ...
199	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
200	// PrimaryAggregationTypeLast ...
201	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
202	// PrimaryAggregationTypeMaximum ...
203	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
204	// PrimaryAggregationTypeMinimum ...
205	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
206	// PrimaryAggregationTypeNone ...
207	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
208	// PrimaryAggregationTypeTotal ...
209	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
210)
211
212// PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
213func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
214	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
215}
216
217// PublicNetworkAccess enumerates the values for public network access.
218type PublicNetworkAccess string
219
220const (
221	// Disabled ...
222	Disabled PublicNetworkAccess = "Disabled"
223	// Enabled ...
224	Enabled PublicNetworkAccess = "Enabled"
225)
226
227// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
228func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
229	return []PublicNetworkAccess{Disabled, Enabled}
230}
231
232// ServerVersion enumerates the values for server version.
233type ServerVersion string
234
235const (
236	// ThreeFullStopSix ...
237	ThreeFullStopSix ServerVersion = "3.6"
238	// ThreeFullStopTwo ...
239	ThreeFullStopTwo ServerVersion = "3.2"
240)
241
242// PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
243func PossibleServerVersionValues() []ServerVersion {
244	return []ServerVersion{ThreeFullStopSix, ThreeFullStopTwo}
245}
246
247// SpatialType enumerates the values for spatial type.
248type SpatialType string
249
250const (
251	// SpatialTypeLineString ...
252	SpatialTypeLineString SpatialType = "LineString"
253	// SpatialTypeMultiPolygon ...
254	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
255	// SpatialTypePoint ...
256	SpatialTypePoint SpatialType = "Point"
257	// SpatialTypePolygon ...
258	SpatialTypePolygon SpatialType = "Polygon"
259)
260
261// PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
262func PossibleSpatialTypeValues() []SpatialType {
263	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
264}
265
266// TriggerOperation enumerates the values for trigger operation.
267type TriggerOperation string
268
269const (
270	// All ...
271	All TriggerOperation = "All"
272	// Create ...
273	Create TriggerOperation = "Create"
274	// Delete ...
275	Delete TriggerOperation = "Delete"
276	// Replace ...
277	Replace TriggerOperation = "Replace"
278	// Update ...
279	Update TriggerOperation = "Update"
280)
281
282// PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
283func PossibleTriggerOperationValues() []TriggerOperation {
284	return []TriggerOperation{All, Create, Delete, Replace, Update}
285}
286
287// TriggerType enumerates the values for trigger type.
288type TriggerType string
289
290const (
291	// Post ...
292	Post TriggerType = "Post"
293	// Pre ...
294	Pre TriggerType = "Pre"
295)
296
297// PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
298func PossibleTriggerTypeValues() []TriggerType {
299	return []TriggerType{Post, Pre}
300}
301
302// UnitType enumerates the values for unit type.
303type UnitType string
304
305const (
306	// Bytes ...
307	Bytes UnitType = "Bytes"
308	// BytesPerSecond ...
309	BytesPerSecond UnitType = "BytesPerSecond"
310	// Count ...
311	Count UnitType = "Count"
312	// CountPerSecond ...
313	CountPerSecond UnitType = "CountPerSecond"
314	// Milliseconds ...
315	Milliseconds UnitType = "Milliseconds"
316	// Percent ...
317	Percent UnitType = "Percent"
318	// Seconds ...
319	Seconds UnitType = "Seconds"
320)
321
322// PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
323func PossibleUnitTypeValues() []UnitType {
324	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
325}
326