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