...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/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  // ConflictResolutionMode enumerates the values for conflict resolution mode.
    10  type ConflictResolutionMode string
    11  
    12  const (
    13  	// Custom ...
    14  	Custom ConflictResolutionMode = "Custom"
    15  	// LastWriterWins ...
    16  	LastWriterWins ConflictResolutionMode = "LastWriterWins"
    17  )
    18  
    19  // PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
    20  func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
    21  	return []ConflictResolutionMode{Custom, LastWriterWins}
    22  }
    23  
    24  // ConnectorOffer enumerates the values for connector offer.
    25  type ConnectorOffer string
    26  
    27  const (
    28  	// Small ...
    29  	Small ConnectorOffer = "Small"
    30  )
    31  
    32  // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
    33  func PossibleConnectorOfferValues() []ConnectorOffer {
    34  	return []ConnectorOffer{Small}
    35  }
    36  
    37  // DatabaseAccountKind enumerates the values for database account kind.
    38  type DatabaseAccountKind string
    39  
    40  const (
    41  	// GlobalDocumentDB ...
    42  	GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
    43  	// MongoDB ...
    44  	MongoDB DatabaseAccountKind = "MongoDB"
    45  	// Parse ...
    46  	Parse DatabaseAccountKind = "Parse"
    47  )
    48  
    49  // PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
    50  func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
    51  	return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
    52  }
    53  
    54  // DatabaseAccountOfferType enumerates the values for database account offer type.
    55  type DatabaseAccountOfferType string
    56  
    57  const (
    58  	// Standard ...
    59  	Standard DatabaseAccountOfferType = "Standard"
    60  )
    61  
    62  // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
    63  func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
    64  	return []DatabaseAccountOfferType{Standard}
    65  }
    66  
    67  // DataType enumerates the values for data type.
    68  type DataType string
    69  
    70  const (
    71  	// LineString ...
    72  	LineString DataType = "LineString"
    73  	// MultiPolygon ...
    74  	MultiPolygon DataType = "MultiPolygon"
    75  	// Number ...
    76  	Number DataType = "Number"
    77  	// Point ...
    78  	Point DataType = "Point"
    79  	// Polygon ...
    80  	Polygon DataType = "Polygon"
    81  	// String ...
    82  	String DataType = "String"
    83  )
    84  
    85  // PossibleDataTypeValues returns an array of possible values for the DataType const type.
    86  func PossibleDataTypeValues() []DataType {
    87  	return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
    88  }
    89  
    90  // DefaultConsistencyLevel enumerates the values for default consistency level.
    91  type DefaultConsistencyLevel string
    92  
    93  const (
    94  	// BoundedStaleness ...
    95  	BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
    96  	// ConsistentPrefix ...
    97  	ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
    98  	// Eventual ...
    99  	Eventual DefaultConsistencyLevel = "Eventual"
   100  	// Session ...
   101  	Session DefaultConsistencyLevel = "Session"
   102  	// Strong ...
   103  	Strong DefaultConsistencyLevel = "Strong"
   104  )
   105  
   106  // PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
   107  func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
   108  	return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
   109  }
   110  
   111  // IndexingMode enumerates the values for indexing mode.
   112  type IndexingMode string
   113  
   114  const (
   115  	// Consistent ...
   116  	Consistent IndexingMode = "Consistent"
   117  	// Lazy ...
   118  	Lazy IndexingMode = "Lazy"
   119  	// None ...
   120  	None IndexingMode = "None"
   121  )
   122  
   123  // PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
   124  func PossibleIndexingModeValues() []IndexingMode {
   125  	return []IndexingMode{Consistent, Lazy, None}
   126  }
   127  
   128  // IndexKind enumerates the values for index kind.
   129  type IndexKind string
   130  
   131  const (
   132  	// Hash ...
   133  	Hash IndexKind = "Hash"
   134  	// Range ...
   135  	Range IndexKind = "Range"
   136  	// Spatial ...
   137  	Spatial IndexKind = "Spatial"
   138  )
   139  
   140  // PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
   141  func PossibleIndexKindValues() []IndexKind {
   142  	return []IndexKind{Hash, Range, Spatial}
   143  }
   144  
   145  // KeyKind enumerates the values for key kind.
   146  type KeyKind string
   147  
   148  const (
   149  	// Primary ...
   150  	Primary KeyKind = "primary"
   151  	// PrimaryReadonly ...
   152  	PrimaryReadonly KeyKind = "primaryReadonly"
   153  	// Secondary ...
   154  	Secondary KeyKind = "secondary"
   155  	// SecondaryReadonly ...
   156  	SecondaryReadonly KeyKind = "secondaryReadonly"
   157  )
   158  
   159  // PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
   160  func PossibleKeyKindValues() []KeyKind {
   161  	return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
   162  }
   163  
   164  // PartitionKind enumerates the values for partition kind.
   165  type PartitionKind string
   166  
   167  const (
   168  	// PartitionKindHash ...
   169  	PartitionKindHash PartitionKind = "Hash"
   170  	// PartitionKindRange ...
   171  	PartitionKindRange PartitionKind = "Range"
   172  )
   173  
   174  // PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
   175  func PossiblePartitionKindValues() []PartitionKind {
   176  	return []PartitionKind{PartitionKindHash, PartitionKindRange}
   177  }
   178  
   179  // PrimaryAggregationType enumerates the values for primary aggregation type.
   180  type PrimaryAggregationType string
   181  
   182  const (
   183  	// PrimaryAggregationTypeAverage ...
   184  	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
   185  	// PrimaryAggregationTypeLast ...
   186  	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
   187  	// PrimaryAggregationTypeMaximum ...
   188  	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
   189  	// PrimaryAggregationTypeMinimum ...
   190  	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
   191  	// PrimaryAggregationTypeNone ...
   192  	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
   193  	// PrimaryAggregationTypeTotal ...
   194  	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
   195  )
   196  
   197  // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
   198  func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
   199  	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
   200  }
   201  
   202  // UnitType enumerates the values for unit type.
   203  type UnitType string
   204  
   205  const (
   206  	// Bytes ...
   207  	Bytes UnitType = "Bytes"
   208  	// BytesPerSecond ...
   209  	BytesPerSecond UnitType = "BytesPerSecond"
   210  	// Count ...
   211  	Count UnitType = "Count"
   212  	// CountPerSecond ...
   213  	CountPerSecond UnitType = "CountPerSecond"
   214  	// Milliseconds ...
   215  	Milliseconds UnitType = "Milliseconds"
   216  	// Percent ...
   217  	Percent UnitType = "Percent"
   218  	// Seconds ...
   219  	Seconds UnitType = "Seconds"
   220  )
   221  
   222  // PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
   223  func PossibleUnitTypeValues() []UnitType {
   224  	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
   225  }
   226  

View as plain text