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// APIType enumerates the values for api type.
21type APIType string
22
23const (
24	// Cassandra ...
25	Cassandra APIType = "Cassandra"
26	// Gremlin ...
27	Gremlin APIType = "Gremlin"
28	// GremlinV2 ...
29	GremlinV2 APIType = "GremlinV2"
30	// MongoDB ...
31	MongoDB APIType = "MongoDB"
32	// SQL ...
33	SQL APIType = "Sql"
34	// Table ...
35	Table APIType = "Table"
36)
37
38// PossibleAPITypeValues returns an array of possible values for the APIType const type.
39func PossibleAPITypeValues() []APIType {
40	return []APIType{Cassandra, Gremlin, GremlinV2, MongoDB, SQL, Table}
41}
42
43// CompositePathSortOrder enumerates the values for composite path sort order.
44type CompositePathSortOrder string
45
46const (
47	// Ascending ...
48	Ascending CompositePathSortOrder = "Ascending"
49	// Descending ...
50	Descending CompositePathSortOrder = "Descending"
51)
52
53// PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.
54func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
55	return []CompositePathSortOrder{Ascending, Descending}
56}
57
58// ConflictResolutionMode enumerates the values for conflict resolution mode.
59type ConflictResolutionMode string
60
61const (
62	// Custom ...
63	Custom ConflictResolutionMode = "Custom"
64	// LastWriterWins ...
65	LastWriterWins ConflictResolutionMode = "LastWriterWins"
66)
67
68// PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
69func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
70	return []ConflictResolutionMode{Custom, LastWriterWins}
71}
72
73// ConnectorOffer enumerates the values for connector offer.
74type ConnectorOffer string
75
76const (
77	// Small ...
78	Small ConnectorOffer = "Small"
79)
80
81// PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
82func PossibleConnectorOfferValues() []ConnectorOffer {
83	return []ConnectorOffer{Small}
84}
85
86// CreatedByType enumerates the values for created by type.
87type CreatedByType string
88
89const (
90	// Application ...
91	Application CreatedByType = "Application"
92	// Key ...
93	Key CreatedByType = "Key"
94	// ManagedIdentity ...
95	ManagedIdentity CreatedByType = "ManagedIdentity"
96	// User ...
97	User CreatedByType = "User"
98)
99
100// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
101func PossibleCreatedByTypeValues() []CreatedByType {
102	return []CreatedByType{Application, Key, ManagedIdentity, User}
103}
104
105// CreateMode enumerates the values for create mode.
106type CreateMode string
107
108const (
109	// Default ...
110	Default CreateMode = "Default"
111	// Restore ...
112	Restore CreateMode = "Restore"
113)
114
115// PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
116func PossibleCreateModeValues() []CreateMode {
117	return []CreateMode{Default, Restore}
118}
119
120// CreateModeBasicDatabaseAccountCreateUpdateProperties enumerates the values for create mode basic database
121// account create update properties.
122type CreateModeBasicDatabaseAccountCreateUpdateProperties string
123
124const (
125	// CreateModeDatabaseAccountCreateUpdateProperties ...
126	CreateModeDatabaseAccountCreateUpdateProperties CreateModeBasicDatabaseAccountCreateUpdateProperties = "DatabaseAccountCreateUpdateProperties"
127	// CreateModeDefault ...
128	CreateModeDefault CreateModeBasicDatabaseAccountCreateUpdateProperties = "Default"
129	// CreateModeRestore ...
130	CreateModeRestore CreateModeBasicDatabaseAccountCreateUpdateProperties = "Restore"
131)
132
133// PossibleCreateModeBasicDatabaseAccountCreateUpdatePropertiesValues returns an array of possible values for the CreateModeBasicDatabaseAccountCreateUpdateProperties const type.
134func PossibleCreateModeBasicDatabaseAccountCreateUpdatePropertiesValues() []CreateModeBasicDatabaseAccountCreateUpdateProperties {
135	return []CreateModeBasicDatabaseAccountCreateUpdateProperties{CreateModeDatabaseAccountCreateUpdateProperties, CreateModeDefault, CreateModeRestore}
136}
137
138// DatabaseAccountKind enumerates the values for database account kind.
139type DatabaseAccountKind string
140
141const (
142	// DatabaseAccountKindGlobalDocumentDB ...
143	DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
144	// DatabaseAccountKindMongoDB ...
145	DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB"
146	// DatabaseAccountKindParse ...
147	DatabaseAccountKindParse DatabaseAccountKind = "Parse"
148)
149
150// PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
151func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
152	return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse}
153}
154
155// DatabaseAccountOfferType enumerates the values for database account offer type.
156type DatabaseAccountOfferType string
157
158const (
159	// Standard ...
160	Standard DatabaseAccountOfferType = "Standard"
161)
162
163// PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
164func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
165	return []DatabaseAccountOfferType{Standard}
166}
167
168// DataType enumerates the values for data type.
169type DataType string
170
171const (
172	// LineString ...
173	LineString DataType = "LineString"
174	// MultiPolygon ...
175	MultiPolygon DataType = "MultiPolygon"
176	// Number ...
177	Number DataType = "Number"
178	// Point ...
179	Point DataType = "Point"
180	// Polygon ...
181	Polygon DataType = "Polygon"
182	// String ...
183	String DataType = "String"
184)
185
186// PossibleDataTypeValues returns an array of possible values for the DataType const type.
187func PossibleDataTypeValues() []DataType {
188	return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
189}
190
191// DefaultConsistencyLevel enumerates the values for default consistency level.
192type DefaultConsistencyLevel string
193
194const (
195	// BoundedStaleness ...
196	BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
197	// ConsistentPrefix ...
198	ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
199	// Eventual ...
200	Eventual DefaultConsistencyLevel = "Eventual"
201	// Session ...
202	Session DefaultConsistencyLevel = "Session"
203	// Strong ...
204	Strong DefaultConsistencyLevel = "Strong"
205)
206
207// PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
208func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
209	return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
210}
211
212// IndexingMode enumerates the values for indexing mode.
213type IndexingMode string
214
215const (
216	// Consistent ...
217	Consistent IndexingMode = "Consistent"
218	// Lazy ...
219	Lazy IndexingMode = "Lazy"
220	// None ...
221	None IndexingMode = "None"
222)
223
224// PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
225func PossibleIndexingModeValues() []IndexingMode {
226	return []IndexingMode{Consistent, Lazy, None}
227}
228
229// IndexKind enumerates the values for index kind.
230type IndexKind string
231
232const (
233	// Hash ...
234	Hash IndexKind = "Hash"
235	// Range ...
236	Range IndexKind = "Range"
237	// Spatial ...
238	Spatial IndexKind = "Spatial"
239)
240
241// PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
242func PossibleIndexKindValues() []IndexKind {
243	return []IndexKind{Hash, Range, Spatial}
244}
245
246// KeyKind enumerates the values for key kind.
247type KeyKind string
248
249const (
250	// Primary ...
251	Primary KeyKind = "primary"
252	// PrimaryReadonly ...
253	PrimaryReadonly KeyKind = "primaryReadonly"
254	// Secondary ...
255	Secondary KeyKind = "secondary"
256	// SecondaryReadonly ...
257	SecondaryReadonly KeyKind = "secondaryReadonly"
258)
259
260// PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
261func PossibleKeyKindValues() []KeyKind {
262	return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
263}
264
265// OperationType enumerates the values for operation type.
266type OperationType string
267
268const (
269	// Create ...
270	Create OperationType = "Create"
271	// Delete ...
272	Delete OperationType = "Delete"
273	// Replace ...
274	Replace OperationType = "Replace"
275	// SystemOperation ...
276	SystemOperation OperationType = "SystemOperation"
277)
278
279// PossibleOperationTypeValues returns an array of possible values for the OperationType const type.
280func PossibleOperationTypeValues() []OperationType {
281	return []OperationType{Create, Delete, Replace, SystemOperation}
282}
283
284// PartitionKind enumerates the values for partition kind.
285type PartitionKind string
286
287const (
288	// PartitionKindHash ...
289	PartitionKindHash PartitionKind = "Hash"
290	// PartitionKindRange ...
291	PartitionKindRange PartitionKind = "Range"
292)
293
294// PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
295func PossiblePartitionKindValues() []PartitionKind {
296	return []PartitionKind{PartitionKindHash, PartitionKindRange}
297}
298
299// PrimaryAggregationType enumerates the values for primary aggregation type.
300type PrimaryAggregationType string
301
302const (
303	// PrimaryAggregationTypeAverage ...
304	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
305	// PrimaryAggregationTypeLast ...
306	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
307	// PrimaryAggregationTypeMaximum ...
308	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
309	// PrimaryAggregationTypeMinimum ...
310	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
311	// PrimaryAggregationTypeNone ...
312	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
313	// PrimaryAggregationTypeTotal ...
314	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
315)
316
317// PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
318func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
319	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
320}
321
322// PublicNetworkAccess enumerates the values for public network access.
323type PublicNetworkAccess string
324
325const (
326	// Disabled ...
327	Disabled PublicNetworkAccess = "Disabled"
328	// Enabled ...
329	Enabled PublicNetworkAccess = "Enabled"
330)
331
332// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
333func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
334	return []PublicNetworkAccess{Disabled, Enabled}
335}
336
337// ResourceIdentityType enumerates the values for resource identity type.
338type ResourceIdentityType string
339
340const (
341	// ResourceIdentityTypeNone ...
342	ResourceIdentityTypeNone ResourceIdentityType = "None"
343	// ResourceIdentityTypeSystemAssigned ...
344	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
345	// ResourceIdentityTypeSystemAssignedUserAssigned ...
346	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
347	// ResourceIdentityTypeUserAssigned ...
348	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
349)
350
351// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
352func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
353	return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
354}
355
356// RestoreMode enumerates the values for restore mode.
357type RestoreMode string
358
359const (
360	// PointInTime ...
361	PointInTime RestoreMode = "PointInTime"
362)
363
364// PossibleRestoreModeValues returns an array of possible values for the RestoreMode const type.
365func PossibleRestoreModeValues() []RestoreMode {
366	return []RestoreMode{PointInTime}
367}
368
369// RoleDefinitionType enumerates the values for role definition type.
370type RoleDefinitionType string
371
372const (
373	// BuiltInRole ...
374	BuiltInRole RoleDefinitionType = "BuiltInRole"
375	// CustomRole ...
376	CustomRole RoleDefinitionType = "CustomRole"
377)
378
379// PossibleRoleDefinitionTypeValues returns an array of possible values for the RoleDefinitionType const type.
380func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
381	return []RoleDefinitionType{BuiltInRole, CustomRole}
382}
383
384// ServerVersion enumerates the values for server version.
385type ServerVersion string
386
387const (
388	// ThreeFullStopSix ...
389	ThreeFullStopSix ServerVersion = "3.6"
390	// ThreeFullStopTwo ...
391	ThreeFullStopTwo ServerVersion = "3.2"
392)
393
394// PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
395func PossibleServerVersionValues() []ServerVersion {
396	return []ServerVersion{ThreeFullStopSix, ThreeFullStopTwo}
397}
398
399// SpatialType enumerates the values for spatial type.
400type SpatialType string
401
402const (
403	// SpatialTypeLineString ...
404	SpatialTypeLineString SpatialType = "LineString"
405	// SpatialTypeMultiPolygon ...
406	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
407	// SpatialTypePoint ...
408	SpatialTypePoint SpatialType = "Point"
409	// SpatialTypePolygon ...
410	SpatialTypePolygon SpatialType = "Polygon"
411)
412
413// PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
414func PossibleSpatialTypeValues() []SpatialType {
415	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
416}
417
418// TriggerOperation enumerates the values for trigger operation.
419type TriggerOperation string
420
421const (
422	// TriggerOperationAll ...
423	TriggerOperationAll TriggerOperation = "All"
424	// TriggerOperationCreate ...
425	TriggerOperationCreate TriggerOperation = "Create"
426	// TriggerOperationDelete ...
427	TriggerOperationDelete TriggerOperation = "Delete"
428	// TriggerOperationReplace ...
429	TriggerOperationReplace TriggerOperation = "Replace"
430	// TriggerOperationUpdate ...
431	TriggerOperationUpdate TriggerOperation = "Update"
432)
433
434// PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
435func PossibleTriggerOperationValues() []TriggerOperation {
436	return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate}
437}
438
439// TriggerType enumerates the values for trigger type.
440type TriggerType string
441
442const (
443	// Post ...
444	Post TriggerType = "Post"
445	// Pre ...
446	Pre TriggerType = "Pre"
447)
448
449// PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
450func PossibleTriggerTypeValues() []TriggerType {
451	return []TriggerType{Post, Pre}
452}
453
454// Type enumerates the values for type.
455type Type string
456
457const (
458	// TypeBackupPolicy ...
459	TypeBackupPolicy Type = "BackupPolicy"
460	// TypeContinuous ...
461	TypeContinuous Type = "Continuous"
462	// TypePeriodic ...
463	TypePeriodic Type = "Periodic"
464)
465
466// PossibleTypeValues returns an array of possible values for the Type const type.
467func PossibleTypeValues() []Type {
468	return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
469}
470
471// UnitType enumerates the values for unit type.
472type UnitType string
473
474const (
475	// Bytes ...
476	Bytes UnitType = "Bytes"
477	// BytesPerSecond ...
478	BytesPerSecond UnitType = "BytesPerSecond"
479	// Count ...
480	Count UnitType = "Count"
481	// CountPerSecond ...
482	CountPerSecond UnitType = "CountPerSecond"
483	// Milliseconds ...
484	Milliseconds UnitType = "Milliseconds"
485	// Percent ...
486	Percent UnitType = "Percent"
487	// Seconds ...
488	Seconds UnitType = "Seconds"
489)
490
491// PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
492func PossibleUnitTypeValues() []UnitType {
493	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
494}
495