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// SpatialType enumerates the values for spatial type.
218type SpatialType string
219
220const (
221	// SpatialTypeLineString ...
222	SpatialTypeLineString SpatialType = "LineString"
223	// SpatialTypeMultiPolygon ...
224	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
225	// SpatialTypePoint ...
226	SpatialTypePoint SpatialType = "Point"
227	// SpatialTypePolygon ...
228	SpatialTypePolygon SpatialType = "Polygon"
229)
230
231// PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
232func PossibleSpatialTypeValues() []SpatialType {
233	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
234}
235
236// TriggerOperation enumerates the values for trigger operation.
237type TriggerOperation string
238
239const (
240	// All ...
241	All TriggerOperation = "All"
242	// Create ...
243	Create TriggerOperation = "Create"
244	// Delete ...
245	Delete TriggerOperation = "Delete"
246	// Replace ...
247	Replace TriggerOperation = "Replace"
248	// Update ...
249	Update TriggerOperation = "Update"
250)
251
252// PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
253func PossibleTriggerOperationValues() []TriggerOperation {
254	return []TriggerOperation{All, Create, Delete, Replace, Update}
255}
256
257// TriggerType enumerates the values for trigger type.
258type TriggerType string
259
260const (
261	// Post ...
262	Post TriggerType = "Post"
263	// Pre ...
264	Pre TriggerType = "Pre"
265)
266
267// PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
268func PossibleTriggerTypeValues() []TriggerType {
269	return []TriggerType{Post, Pre}
270}
271
272// UnitType enumerates the values for unit type.
273type UnitType string
274
275const (
276	// Bytes ...
277	Bytes UnitType = "Bytes"
278	// BytesPerSecond ...
279	BytesPerSecond UnitType = "BytesPerSecond"
280	// Count ...
281	Count UnitType = "Count"
282	// CountPerSecond ...
283	CountPerSecond UnitType = "CountPerSecond"
284	// Milliseconds ...
285	Milliseconds UnitType = "Milliseconds"
286	// Percent ...
287	Percent UnitType = "Percent"
288	// Seconds ...
289	Seconds UnitType = "Seconds"
290)
291
292// PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
293func PossibleUnitTypeValues() []UnitType {
294	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
295}
296