...

Source file src/github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-03-15/documentdb/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-03-15/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  // BackupPolicyType enumerates the values for backup policy type.
    10  type BackupPolicyType string
    11  
    12  const (
    13  	// Continuous ...
    14  	Continuous BackupPolicyType = "Continuous"
    15  	// Periodic ...
    16  	Periodic BackupPolicyType = "Periodic"
    17  )
    18  
    19  // PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type.
    20  func PossibleBackupPolicyTypeValues() []BackupPolicyType {
    21  	return []BackupPolicyType{Continuous, Periodic}
    22  }
    23  
    24  // CompositePathSortOrder enumerates the values for composite path sort order.
    25  type CompositePathSortOrder string
    26  
    27  const (
    28  	// Ascending ...
    29  	Ascending CompositePathSortOrder = "ascending"
    30  	// Descending ...
    31  	Descending CompositePathSortOrder = "descending"
    32  )
    33  
    34  // PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.
    35  func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
    36  	return []CompositePathSortOrder{Ascending, Descending}
    37  }
    38  
    39  // ConflictResolutionMode enumerates the values for conflict resolution mode.
    40  type ConflictResolutionMode string
    41  
    42  const (
    43  	// Custom ...
    44  	Custom ConflictResolutionMode = "Custom"
    45  	// LastWriterWins ...
    46  	LastWriterWins ConflictResolutionMode = "LastWriterWins"
    47  )
    48  
    49  // PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
    50  func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
    51  	return []ConflictResolutionMode{Custom, LastWriterWins}
    52  }
    53  
    54  // ConnectorOffer enumerates the values for connector offer.
    55  type ConnectorOffer string
    56  
    57  const (
    58  	// Small ...
    59  	Small ConnectorOffer = "Small"
    60  )
    61  
    62  // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
    63  func PossibleConnectorOfferValues() []ConnectorOffer {
    64  	return []ConnectorOffer{Small}
    65  }
    66  
    67  // DatabaseAccountKind enumerates the values for database account kind.
    68  type DatabaseAccountKind string
    69  
    70  const (
    71  	// GlobalDocumentDB ...
    72  	GlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
    73  	// MongoDB ...
    74  	MongoDB DatabaseAccountKind = "MongoDB"
    75  	// Parse ...
    76  	Parse DatabaseAccountKind = "Parse"
    77  )
    78  
    79  // PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
    80  func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
    81  	return []DatabaseAccountKind{GlobalDocumentDB, MongoDB, Parse}
    82  }
    83  
    84  // DatabaseAccountOfferType enumerates the values for database account offer type.
    85  type DatabaseAccountOfferType string
    86  
    87  const (
    88  	// Standard ...
    89  	Standard DatabaseAccountOfferType = "Standard"
    90  )
    91  
    92  // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
    93  func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
    94  	return []DatabaseAccountOfferType{Standard}
    95  }
    96  
    97  // DataType enumerates the values for data type.
    98  type DataType string
    99  
   100  const (
   101  	// LineString ...
   102  	LineString DataType = "LineString"
   103  	// MultiPolygon ...
   104  	MultiPolygon DataType = "MultiPolygon"
   105  	// Number ...
   106  	Number DataType = "Number"
   107  	// Point ...
   108  	Point DataType = "Point"
   109  	// Polygon ...
   110  	Polygon DataType = "Polygon"
   111  	// String ...
   112  	String DataType = "String"
   113  )
   114  
   115  // PossibleDataTypeValues returns an array of possible values for the DataType const type.
   116  func PossibleDataTypeValues() []DataType {
   117  	return []DataType{LineString, MultiPolygon, Number, Point, Polygon, String}
   118  }
   119  
   120  // DefaultConsistencyLevel enumerates the values for default consistency level.
   121  type DefaultConsistencyLevel string
   122  
   123  const (
   124  	// BoundedStaleness ...
   125  	BoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
   126  	// ConsistentPrefix ...
   127  	ConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
   128  	// Eventual ...
   129  	Eventual DefaultConsistencyLevel = "Eventual"
   130  	// Session ...
   131  	Session DefaultConsistencyLevel = "Session"
   132  	// Strong ...
   133  	Strong DefaultConsistencyLevel = "Strong"
   134  )
   135  
   136  // PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
   137  func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
   138  	return []DefaultConsistencyLevel{BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong}
   139  }
   140  
   141  // IndexingMode enumerates the values for indexing mode.
   142  type IndexingMode string
   143  
   144  const (
   145  	// Consistent ...
   146  	Consistent IndexingMode = "consistent"
   147  	// Lazy ...
   148  	Lazy IndexingMode = "lazy"
   149  	// None ...
   150  	None IndexingMode = "none"
   151  )
   152  
   153  // PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
   154  func PossibleIndexingModeValues() []IndexingMode {
   155  	return []IndexingMode{Consistent, Lazy, None}
   156  }
   157  
   158  // IndexKind enumerates the values for index kind.
   159  type IndexKind string
   160  
   161  const (
   162  	// Hash ...
   163  	Hash IndexKind = "Hash"
   164  	// Range ...
   165  	Range IndexKind = "Range"
   166  	// Spatial ...
   167  	Spatial IndexKind = "Spatial"
   168  )
   169  
   170  // PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
   171  func PossibleIndexKindValues() []IndexKind {
   172  	return []IndexKind{Hash, Range, Spatial}
   173  }
   174  
   175  // KeyKind enumerates the values for key kind.
   176  type KeyKind string
   177  
   178  const (
   179  	// Primary ...
   180  	Primary KeyKind = "primary"
   181  	// PrimaryReadonly ...
   182  	PrimaryReadonly KeyKind = "primaryReadonly"
   183  	// Secondary ...
   184  	Secondary KeyKind = "secondary"
   185  	// SecondaryReadonly ...
   186  	SecondaryReadonly KeyKind = "secondaryReadonly"
   187  )
   188  
   189  // PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
   190  func PossibleKeyKindValues() []KeyKind {
   191  	return []KeyKind{Primary, PrimaryReadonly, Secondary, SecondaryReadonly}
   192  }
   193  
   194  // NetworkACLBypass enumerates the values for network acl bypass.
   195  type NetworkACLBypass string
   196  
   197  const (
   198  	// NetworkACLBypassAzureServices ...
   199  	NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
   200  	// NetworkACLBypassNone ...
   201  	NetworkACLBypassNone NetworkACLBypass = "None"
   202  )
   203  
   204  // PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type.
   205  func PossibleNetworkACLBypassValues() []NetworkACLBypass {
   206  	return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone}
   207  }
   208  
   209  // PartitionKind enumerates the values for partition kind.
   210  type PartitionKind string
   211  
   212  const (
   213  	// PartitionKindHash ...
   214  	PartitionKindHash PartitionKind = "Hash"
   215  	// PartitionKindMultiHash ...
   216  	PartitionKindMultiHash PartitionKind = "MultiHash"
   217  	// PartitionKindRange ...
   218  	PartitionKindRange PartitionKind = "Range"
   219  )
   220  
   221  // PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
   222  func PossiblePartitionKindValues() []PartitionKind {
   223  	return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange}
   224  }
   225  
   226  // PrimaryAggregationType enumerates the values for primary aggregation type.
   227  type PrimaryAggregationType string
   228  
   229  const (
   230  	// PrimaryAggregationTypeAverage ...
   231  	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
   232  	// PrimaryAggregationTypeLast ...
   233  	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
   234  	// PrimaryAggregationTypeMaximum ...
   235  	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
   236  	// PrimaryAggregationTypeMinimum ...
   237  	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
   238  	// PrimaryAggregationTypeNone ...
   239  	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
   240  	// PrimaryAggregationTypeTotal ...
   241  	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
   242  )
   243  
   244  // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
   245  func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
   246  	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
   247  }
   248  
   249  // PublicNetworkAccess enumerates the values for public network access.
   250  type PublicNetworkAccess string
   251  
   252  const (
   253  	// Disabled ...
   254  	Disabled PublicNetworkAccess = "Disabled"
   255  	// Enabled ...
   256  	Enabled PublicNetworkAccess = "Enabled"
   257  )
   258  
   259  // PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
   260  func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
   261  	return []PublicNetworkAccess{Disabled, Enabled}
   262  }
   263  
   264  // ResourceIdentityType enumerates the values for resource identity type.
   265  type ResourceIdentityType string
   266  
   267  const (
   268  	// ResourceIdentityTypeNone ...
   269  	ResourceIdentityTypeNone ResourceIdentityType = "None"
   270  	// ResourceIdentityTypeSystemAssigned ...
   271  	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
   272  	// ResourceIdentityTypeSystemAssignedUserAssigned ...
   273  	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
   274  	// ResourceIdentityTypeUserAssigned ...
   275  	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
   276  )
   277  
   278  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
   279  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
   280  	return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
   281  }
   282  
   283  // ServerVersion enumerates the values for server version.
   284  type ServerVersion string
   285  
   286  const (
   287  	// FourFullStopZero ...
   288  	FourFullStopZero ServerVersion = "4.0"
   289  	// ThreeFullStopSix ...
   290  	ThreeFullStopSix ServerVersion = "3.6"
   291  	// ThreeFullStopTwo ...
   292  	ThreeFullStopTwo ServerVersion = "3.2"
   293  )
   294  
   295  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   296  func PossibleServerVersionValues() []ServerVersion {
   297  	return []ServerVersion{FourFullStopZero, ThreeFullStopSix, ThreeFullStopTwo}
   298  }
   299  
   300  // SpatialType enumerates the values for spatial type.
   301  type SpatialType string
   302  
   303  const (
   304  	// SpatialTypeLineString ...
   305  	SpatialTypeLineString SpatialType = "LineString"
   306  	// SpatialTypeMultiPolygon ...
   307  	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
   308  	// SpatialTypePoint ...
   309  	SpatialTypePoint SpatialType = "Point"
   310  	// SpatialTypePolygon ...
   311  	SpatialTypePolygon SpatialType = "Polygon"
   312  )
   313  
   314  // PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
   315  func PossibleSpatialTypeValues() []SpatialType {
   316  	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
   317  }
   318  
   319  // TriggerOperation enumerates the values for trigger operation.
   320  type TriggerOperation string
   321  
   322  const (
   323  	// All ...
   324  	All TriggerOperation = "All"
   325  	// Create ...
   326  	Create TriggerOperation = "Create"
   327  	// Delete ...
   328  	Delete TriggerOperation = "Delete"
   329  	// Replace ...
   330  	Replace TriggerOperation = "Replace"
   331  	// Update ...
   332  	Update TriggerOperation = "Update"
   333  )
   334  
   335  // PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
   336  func PossibleTriggerOperationValues() []TriggerOperation {
   337  	return []TriggerOperation{All, Create, Delete, Replace, Update}
   338  }
   339  
   340  // TriggerType enumerates the values for trigger type.
   341  type TriggerType string
   342  
   343  const (
   344  	// Post ...
   345  	Post TriggerType = "Post"
   346  	// Pre ...
   347  	Pre TriggerType = "Pre"
   348  )
   349  
   350  // PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
   351  func PossibleTriggerTypeValues() []TriggerType {
   352  	return []TriggerType{Post, Pre}
   353  }
   354  
   355  // Type enumerates the values for type.
   356  type Type string
   357  
   358  const (
   359  	// TypeBackupPolicy ...
   360  	TypeBackupPolicy Type = "BackupPolicy"
   361  	// TypeContinuous ...
   362  	TypeContinuous Type = "Continuous"
   363  	// TypePeriodic ...
   364  	TypePeriodic Type = "Periodic"
   365  )
   366  
   367  // PossibleTypeValues returns an array of possible values for the Type const type.
   368  func PossibleTypeValues() []Type {
   369  	return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
   370  }
   371  
   372  // UnitType enumerates the values for unit type.
   373  type UnitType string
   374  
   375  const (
   376  	// Bytes ...
   377  	Bytes UnitType = "Bytes"
   378  	// BytesPerSecond ...
   379  	BytesPerSecond UnitType = "BytesPerSecond"
   380  	// Count ...
   381  	Count UnitType = "Count"
   382  	// CountPerSecond ...
   383  	CountPerSecond UnitType = "CountPerSecond"
   384  	// Milliseconds ...
   385  	Milliseconds UnitType = "Milliseconds"
   386  	// Percent ...
   387  	Percent UnitType = "Percent"
   388  	// Seconds ...
   389  	Seconds UnitType = "Seconds"
   390  )
   391  
   392  // PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
   393  func PossibleUnitTypeValues() []UnitType {
   394  	return []UnitType{Bytes, BytesPerSecond, Count, CountPerSecond, Milliseconds, Percent, Seconds}
   395  }
   396  

View as plain text