...

Source file src/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2019-08-01/documentdb/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2019-08-01/documentdb

     1  package 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.
    10  type CompositePathSortOrder string
    11  
    12  const (
    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.
    20  func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
    21  	return []CompositePathSortOrder{Ascending, Descending}
    22  }
    23  
    24  // ConflictResolutionMode enumerates the values for conflict resolution mode.
    25  type ConflictResolutionMode string
    26  
    27  const (
    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.
    35  func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
    36  	return []ConflictResolutionMode{Custom, LastWriterWins}
    37  }
    38  
    39  // ConnectorOffer enumerates the values for connector offer.
    40  type ConnectorOffer string
    41  
    42  const (
    43  	// Small ...
    44  	Small ConnectorOffer = "Small"
    45  )
    46  
    47  // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
    48  func PossibleConnectorOfferValues() []ConnectorOffer {
    49  	return []ConnectorOffer{Small}
    50  }
    51  
    52  // DatabaseAccountKind enumerates the values for database account kind.
    53  type DatabaseAccountKind string
    54  
    55  const (
    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.
    65  func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
    66  	return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
    67  }
    68  
    69  // DatabaseAccountOfferType enumerates the values for database account offer type.
    70  type DatabaseAccountOfferType string
    71  
    72  const (
    73  	// Standard ...
    74  	Standard DatabaseAccountOfferType = "Standard"
    75  )
    76  
    77  // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
    78  func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
    79  	return []DatabaseAccountOfferType{Standard}
    80  }
    81  
    82  // DataType enumerates the values for data type.
    83  type DataType string
    84  
    85  const (
    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.
   101  func PossibleDataTypeValues() []DataType {
   102  	return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
   103  }
   104  
   105  // DefaultConsistencyLevel enumerates the values for default consistency level.
   106  type DefaultConsistencyLevel string
   107  
   108  const (
   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.
   122  func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
   123  	return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
   124  }
   125  
   126  // IndexingMode enumerates the values for indexing mode.
   127  type IndexingMode string
   128  
   129  const (
   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.
   139  func PossibleIndexingModeValues() []IndexingMode {
   140  	return []IndexingMode{Consistent, Lazy, None}
   141  }
   142  
   143  // IndexKind enumerates the values for index kind.
   144  type IndexKind string
   145  
   146  const (
   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.
   156  func PossibleIndexKindValues() []IndexKind {
   157  	return []IndexKind{Hash, Range, Spatial}
   158  }
   159  
   160  // KeyKind enumerates the values for key kind.
   161  type KeyKind string
   162  
   163  const (
   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.
   175  func PossibleKeyKindValues() []KeyKind {
   176  	return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
   177  }
   178  
   179  // PartitionKind enumerates the values for partition kind.
   180  type PartitionKind string
   181  
   182  const (
   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.
   190  func PossiblePartitionKindValues() []PartitionKind {
   191  	return []PartitionKind{PartitionKindHash, PartitionKindRange}
   192  }
   193  
   194  // PrimaryAggregationType enumerates the values for primary aggregation type.
   195  type PrimaryAggregationType string
   196  
   197  const (
   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.
   213  func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
   214  	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
   215  }
   216  
   217  // SpatialType enumerates the values for spatial type.
   218  type SpatialType string
   219  
   220  const (
   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.
   232  func PossibleSpatialTypeValues() []SpatialType {
   233  	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
   234  }
   235  
   236  // TriggerOperation enumerates the values for trigger operation.
   237  type TriggerOperation string
   238  
   239  const (
   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.
   253  func PossibleTriggerOperationValues() []TriggerOperation {
   254  	return []TriggerOperation{All, Create, Delete, Replace, Update}
   255  }
   256  
   257  // TriggerType enumerates the values for trigger type.
   258  type TriggerType string
   259  
   260  const (
   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.
   268  func PossibleTriggerTypeValues() []TriggerType {
   269  	return []TriggerType{Post, Pre}
   270  }
   271  
   272  // UnitType enumerates the values for unit type.
   273  type UnitType string
   274  
   275  const (
   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.
   293  func PossibleUnitTypeValues() []UnitType {
   294  	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
   295  }
   296  

View as plain text