...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2021-11-15-preview/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  // AnalyticalStorageSchemaType enumerates the values for analytical storage schema type.
    10  type AnalyticalStorageSchemaType string
    11  
    12  const (
    13  	// AnalyticalStorageSchemaTypeFullFidelity ...
    14  	AnalyticalStorageSchemaTypeFullFidelity AnalyticalStorageSchemaType = "FullFidelity"
    15  	// AnalyticalStorageSchemaTypeWellDefined ...
    16  	AnalyticalStorageSchemaTypeWellDefined AnalyticalStorageSchemaType = "WellDefined"
    17  )
    18  
    19  // PossibleAnalyticalStorageSchemaTypeValues returns an array of possible values for the AnalyticalStorageSchemaType const type.
    20  func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType {
    21  	return []AnalyticalStorageSchemaType{AnalyticalStorageSchemaTypeFullFidelity, AnalyticalStorageSchemaTypeWellDefined}
    22  }
    23  
    24  // APIType enumerates the values for api type.
    25  type APIType string
    26  
    27  const (
    28  	// APITypeCassandra ...
    29  	APITypeCassandra APIType = "Cassandra"
    30  	// APITypeGremlin ...
    31  	APITypeGremlin APIType = "Gremlin"
    32  	// APITypeGremlinV2 ...
    33  	APITypeGremlinV2 APIType = "GremlinV2"
    34  	// APITypeMongoDB ...
    35  	APITypeMongoDB APIType = "MongoDB"
    36  	// APITypeSQL ...
    37  	APITypeSQL APIType = "Sql"
    38  	// APITypeTable ...
    39  	APITypeTable APIType = "Table"
    40  )
    41  
    42  // PossibleAPITypeValues returns an array of possible values for the APIType const type.
    43  func PossibleAPITypeValues() []APIType {
    44  	return []APIType{APITypeCassandra, APITypeGremlin, APITypeGremlinV2, APITypeMongoDB, APITypeSQL, APITypeTable}
    45  }
    46  
    47  // AuthenticationMethod enumerates the values for authentication method.
    48  type AuthenticationMethod string
    49  
    50  const (
    51  	// AuthenticationMethodCassandra ...
    52  	AuthenticationMethodCassandra AuthenticationMethod = "Cassandra"
    53  	// AuthenticationMethodLdap ...
    54  	AuthenticationMethodLdap AuthenticationMethod = "Ldap"
    55  	// AuthenticationMethodNone ...
    56  	AuthenticationMethodNone AuthenticationMethod = "None"
    57  )
    58  
    59  // PossibleAuthenticationMethodValues returns an array of possible values for the AuthenticationMethod const type.
    60  func PossibleAuthenticationMethodValues() []AuthenticationMethod {
    61  	return []AuthenticationMethod{AuthenticationMethodCassandra, AuthenticationMethodLdap, AuthenticationMethodNone}
    62  }
    63  
    64  // BackupPolicyMigrationStatus enumerates the values for backup policy migration status.
    65  type BackupPolicyMigrationStatus string
    66  
    67  const (
    68  	// BackupPolicyMigrationStatusCompleted ...
    69  	BackupPolicyMigrationStatusCompleted BackupPolicyMigrationStatus = "Completed"
    70  	// BackupPolicyMigrationStatusFailed ...
    71  	BackupPolicyMigrationStatusFailed BackupPolicyMigrationStatus = "Failed"
    72  	// BackupPolicyMigrationStatusInProgress ...
    73  	BackupPolicyMigrationStatusInProgress BackupPolicyMigrationStatus = "InProgress"
    74  	// BackupPolicyMigrationStatusInvalid ...
    75  	BackupPolicyMigrationStatusInvalid BackupPolicyMigrationStatus = "Invalid"
    76  )
    77  
    78  // PossibleBackupPolicyMigrationStatusValues returns an array of possible values for the BackupPolicyMigrationStatus const type.
    79  func PossibleBackupPolicyMigrationStatusValues() []BackupPolicyMigrationStatus {
    80  	return []BackupPolicyMigrationStatus{BackupPolicyMigrationStatusCompleted, BackupPolicyMigrationStatusFailed, BackupPolicyMigrationStatusInProgress, BackupPolicyMigrationStatusInvalid}
    81  }
    82  
    83  // BackupPolicyType enumerates the values for backup policy type.
    84  type BackupPolicyType string
    85  
    86  const (
    87  	// BackupPolicyTypeContinuous ...
    88  	BackupPolicyTypeContinuous BackupPolicyType = "Continuous"
    89  	// BackupPolicyTypePeriodic ...
    90  	BackupPolicyTypePeriodic BackupPolicyType = "Periodic"
    91  )
    92  
    93  // PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type.
    94  func PossibleBackupPolicyTypeValues() []BackupPolicyType {
    95  	return []BackupPolicyType{BackupPolicyTypeContinuous, BackupPolicyTypePeriodic}
    96  }
    97  
    98  // BackupStorageRedundancy enumerates the values for backup storage redundancy.
    99  type BackupStorageRedundancy string
   100  
   101  const (
   102  	// BackupStorageRedundancyGeo ...
   103  	BackupStorageRedundancyGeo BackupStorageRedundancy = "Geo"
   104  	// BackupStorageRedundancyLocal ...
   105  	BackupStorageRedundancyLocal BackupStorageRedundancy = "Local"
   106  	// BackupStorageRedundancyZone ...
   107  	BackupStorageRedundancyZone BackupStorageRedundancy = "Zone"
   108  )
   109  
   110  // PossibleBackupStorageRedundancyValues returns an array of possible values for the BackupStorageRedundancy const type.
   111  func PossibleBackupStorageRedundancyValues() []BackupStorageRedundancy {
   112  	return []BackupStorageRedundancy{BackupStorageRedundancyGeo, BackupStorageRedundancyLocal, BackupStorageRedundancyZone}
   113  }
   114  
   115  // Component enumerates the values for component.
   116  type Component string
   117  
   118  const (
   119  	// ComponentAzureBlobStorage ...
   120  	ComponentAzureBlobStorage Component = "AzureBlobStorage"
   121  	// ComponentCosmosDBCassandra ...
   122  	ComponentCosmosDBCassandra Component = "CosmosDBCassandra"
   123  	// ComponentCosmosDBSQL ...
   124  	ComponentCosmosDBSQL Component = "CosmosDBSql"
   125  	// ComponentDataTransferDataSourceSink ...
   126  	ComponentDataTransferDataSourceSink Component = "DataTransferDataSourceSink"
   127  )
   128  
   129  // PossibleComponentValues returns an array of possible values for the Component const type.
   130  func PossibleComponentValues() []Component {
   131  	return []Component{ComponentAzureBlobStorage, ComponentCosmosDBCassandra, ComponentCosmosDBSQL, ComponentDataTransferDataSourceSink}
   132  }
   133  
   134  // CompositePathSortOrder enumerates the values for composite path sort order.
   135  type CompositePathSortOrder string
   136  
   137  const (
   138  	// CompositePathSortOrderAscending ...
   139  	CompositePathSortOrderAscending CompositePathSortOrder = "ascending"
   140  	// CompositePathSortOrderDescending ...
   141  	CompositePathSortOrderDescending CompositePathSortOrder = "descending"
   142  )
   143  
   144  // PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.
   145  func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
   146  	return []CompositePathSortOrder{CompositePathSortOrderAscending, CompositePathSortOrderDescending}
   147  }
   148  
   149  // ConflictResolutionMode enumerates the values for conflict resolution mode.
   150  type ConflictResolutionMode string
   151  
   152  const (
   153  	// ConflictResolutionModeCustom ...
   154  	ConflictResolutionModeCustom ConflictResolutionMode = "Custom"
   155  	// ConflictResolutionModeLastWriterWins ...
   156  	ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins"
   157  )
   158  
   159  // PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
   160  func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
   161  	return []ConflictResolutionMode{ConflictResolutionModeCustom, ConflictResolutionModeLastWriterWins}
   162  }
   163  
   164  // ConnectionState enumerates the values for connection state.
   165  type ConnectionState string
   166  
   167  const (
   168  	// ConnectionStateDatacenterToDatacenterNetworkError ...
   169  	ConnectionStateDatacenterToDatacenterNetworkError ConnectionState = "DatacenterToDatacenterNetworkError"
   170  	// ConnectionStateInternalError ...
   171  	ConnectionStateInternalError ConnectionState = "InternalError"
   172  	// ConnectionStateInternalOperatorToDataCenterCertificateError ...
   173  	ConnectionStateInternalOperatorToDataCenterCertificateError ConnectionState = "InternalOperatorToDataCenterCertificateError"
   174  	// ConnectionStateOK ...
   175  	ConnectionStateOK ConnectionState = "OK"
   176  	// ConnectionStateOperatorToDataCenterNetworkError ...
   177  	ConnectionStateOperatorToDataCenterNetworkError ConnectionState = "OperatorToDataCenterNetworkError"
   178  	// ConnectionStateUnknown ...
   179  	ConnectionStateUnknown ConnectionState = "Unknown"
   180  )
   181  
   182  // PossibleConnectionStateValues returns an array of possible values for the ConnectionState const type.
   183  func PossibleConnectionStateValues() []ConnectionState {
   184  	return []ConnectionState{ConnectionStateDatacenterToDatacenterNetworkError, ConnectionStateInternalError, ConnectionStateInternalOperatorToDataCenterCertificateError, ConnectionStateOK, ConnectionStateOperatorToDataCenterNetworkError, ConnectionStateUnknown}
   185  }
   186  
   187  // ConnectorOffer enumerates the values for connector offer.
   188  type ConnectorOffer string
   189  
   190  const (
   191  	// ConnectorOfferSmall ...
   192  	ConnectorOfferSmall ConnectorOffer = "Small"
   193  )
   194  
   195  // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
   196  func PossibleConnectorOfferValues() []ConnectorOffer {
   197  	return []ConnectorOffer{ConnectorOfferSmall}
   198  }
   199  
   200  // CreatedByType enumerates the values for created by type.
   201  type CreatedByType string
   202  
   203  const (
   204  	// CreatedByTypeApplication ...
   205  	CreatedByTypeApplication CreatedByType = "Application"
   206  	// CreatedByTypeKey ...
   207  	CreatedByTypeKey CreatedByType = "Key"
   208  	// CreatedByTypeManagedIdentity ...
   209  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
   210  	// CreatedByTypeUser ...
   211  	CreatedByTypeUser CreatedByType = "User"
   212  )
   213  
   214  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
   215  func PossibleCreatedByTypeValues() []CreatedByType {
   216  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
   217  }
   218  
   219  // CreateMode enumerates the values for create mode.
   220  type CreateMode string
   221  
   222  const (
   223  	// CreateModeDefault ...
   224  	CreateModeDefault CreateMode = "Default"
   225  	// CreateModeRestore ...
   226  	CreateModeRestore CreateMode = "Restore"
   227  )
   228  
   229  // PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
   230  func PossibleCreateModeValues() []CreateMode {
   231  	return []CreateMode{CreateModeDefault, CreateModeRestore}
   232  }
   233  
   234  // DatabaseAccountKind enumerates the values for database account kind.
   235  type DatabaseAccountKind string
   236  
   237  const (
   238  	// DatabaseAccountKindGlobalDocumentDB ...
   239  	DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
   240  	// DatabaseAccountKindMongoDB ...
   241  	DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB"
   242  	// DatabaseAccountKindParse ...
   243  	DatabaseAccountKindParse DatabaseAccountKind = "Parse"
   244  )
   245  
   246  // PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
   247  func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
   248  	return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse}
   249  }
   250  
   251  // DatabaseAccountOfferType enumerates the values for database account offer type.
   252  type DatabaseAccountOfferType string
   253  
   254  const (
   255  	// DatabaseAccountOfferTypeStandard ...
   256  	DatabaseAccountOfferTypeStandard DatabaseAccountOfferType = "Standard"
   257  )
   258  
   259  // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
   260  func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
   261  	return []DatabaseAccountOfferType{DatabaseAccountOfferTypeStandard}
   262  }
   263  
   264  // DataType enumerates the values for data type.
   265  type DataType string
   266  
   267  const (
   268  	// DataTypeLineString ...
   269  	DataTypeLineString DataType = "LineString"
   270  	// DataTypeMultiPolygon ...
   271  	DataTypeMultiPolygon DataType = "MultiPolygon"
   272  	// DataTypeNumber ...
   273  	DataTypeNumber DataType = "Number"
   274  	// DataTypePoint ...
   275  	DataTypePoint DataType = "Point"
   276  	// DataTypePolygon ...
   277  	DataTypePolygon DataType = "Polygon"
   278  	// DataTypeString ...
   279  	DataTypeString DataType = "String"
   280  )
   281  
   282  // PossibleDataTypeValues returns an array of possible values for the DataType const type.
   283  func PossibleDataTypeValues() []DataType {
   284  	return []DataType{DataTypeLineString, DataTypeMultiPolygon, DataTypeNumber, DataTypePoint, DataTypePolygon, DataTypeString}
   285  }
   286  
   287  // DefaultConsistencyLevel enumerates the values for default consistency level.
   288  type DefaultConsistencyLevel string
   289  
   290  const (
   291  	// DefaultConsistencyLevelBoundedStaleness ...
   292  	DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
   293  	// DefaultConsistencyLevelConsistentPrefix ...
   294  	DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
   295  	// DefaultConsistencyLevelEventual ...
   296  	DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual"
   297  	// DefaultConsistencyLevelSession ...
   298  	DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session"
   299  	// DefaultConsistencyLevelStrong ...
   300  	DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong"
   301  )
   302  
   303  // PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
   304  func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
   305  	return []DefaultConsistencyLevel{DefaultConsistencyLevelBoundedStaleness, DefaultConsistencyLevelConsistentPrefix, DefaultConsistencyLevelEventual, DefaultConsistencyLevelSession, DefaultConsistencyLevelStrong}
   306  }
   307  
   308  // EnableFullTextQuery enumerates the values for enable full text query.
   309  type EnableFullTextQuery string
   310  
   311  const (
   312  	// EnableFullTextQueryFalse ...
   313  	EnableFullTextQueryFalse EnableFullTextQuery = "False"
   314  	// EnableFullTextQueryNone ...
   315  	EnableFullTextQueryNone EnableFullTextQuery = "None"
   316  	// EnableFullTextQueryTrue ...
   317  	EnableFullTextQueryTrue EnableFullTextQuery = "True"
   318  )
   319  
   320  // PossibleEnableFullTextQueryValues returns an array of possible values for the EnableFullTextQuery const type.
   321  func PossibleEnableFullTextQueryValues() []EnableFullTextQuery {
   322  	return []EnableFullTextQuery{EnableFullTextQueryFalse, EnableFullTextQueryNone, EnableFullTextQueryTrue}
   323  }
   324  
   325  // IndexingMode enumerates the values for indexing mode.
   326  type IndexingMode string
   327  
   328  const (
   329  	// IndexingModeConsistent ...
   330  	IndexingModeConsistent IndexingMode = "consistent"
   331  	// IndexingModeLazy ...
   332  	IndexingModeLazy IndexingMode = "lazy"
   333  	// IndexingModeNone ...
   334  	IndexingModeNone IndexingMode = "none"
   335  )
   336  
   337  // PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
   338  func PossibleIndexingModeValues() []IndexingMode {
   339  	return []IndexingMode{IndexingModeConsistent, IndexingModeLazy, IndexingModeNone}
   340  }
   341  
   342  // IndexKind enumerates the values for index kind.
   343  type IndexKind string
   344  
   345  const (
   346  	// IndexKindHash ...
   347  	IndexKindHash IndexKind = "Hash"
   348  	// IndexKindRange ...
   349  	IndexKindRange IndexKind = "Range"
   350  	// IndexKindSpatial ...
   351  	IndexKindSpatial IndexKind = "Spatial"
   352  )
   353  
   354  // PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
   355  func PossibleIndexKindValues() []IndexKind {
   356  	return []IndexKind{IndexKindHash, IndexKindRange, IndexKindSpatial}
   357  }
   358  
   359  // KeyKind enumerates the values for key kind.
   360  type KeyKind string
   361  
   362  const (
   363  	// KeyKindPrimary ...
   364  	KeyKindPrimary KeyKind = "primary"
   365  	// KeyKindPrimaryReadonly ...
   366  	KeyKindPrimaryReadonly KeyKind = "primaryReadonly"
   367  	// KeyKindSecondary ...
   368  	KeyKindSecondary KeyKind = "secondary"
   369  	// KeyKindSecondaryReadonly ...
   370  	KeyKindSecondaryReadonly KeyKind = "secondaryReadonly"
   371  )
   372  
   373  // PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
   374  func PossibleKeyKindValues() []KeyKind {
   375  	return []KeyKind{KeyKindPrimary, KeyKindPrimaryReadonly, KeyKindSecondary, KeyKindSecondaryReadonly}
   376  }
   377  
   378  // ManagedCassandraProvisioningState enumerates the values for managed cassandra provisioning state.
   379  type ManagedCassandraProvisioningState string
   380  
   381  const (
   382  	// ManagedCassandraProvisioningStateCanceled ...
   383  	ManagedCassandraProvisioningStateCanceled ManagedCassandraProvisioningState = "Canceled"
   384  	// ManagedCassandraProvisioningStateCreating ...
   385  	ManagedCassandraProvisioningStateCreating ManagedCassandraProvisioningState = "Creating"
   386  	// ManagedCassandraProvisioningStateDeleting ...
   387  	ManagedCassandraProvisioningStateDeleting ManagedCassandraProvisioningState = "Deleting"
   388  	// ManagedCassandraProvisioningStateFailed ...
   389  	ManagedCassandraProvisioningStateFailed ManagedCassandraProvisioningState = "Failed"
   390  	// ManagedCassandraProvisioningStateSucceeded ...
   391  	ManagedCassandraProvisioningStateSucceeded ManagedCassandraProvisioningState = "Succeeded"
   392  	// ManagedCassandraProvisioningStateUpdating ...
   393  	ManagedCassandraProvisioningStateUpdating ManagedCassandraProvisioningState = "Updating"
   394  )
   395  
   396  // PossibleManagedCassandraProvisioningStateValues returns an array of possible values for the ManagedCassandraProvisioningState const type.
   397  func PossibleManagedCassandraProvisioningStateValues() []ManagedCassandraProvisioningState {
   398  	return []ManagedCassandraProvisioningState{ManagedCassandraProvisioningStateCanceled, ManagedCassandraProvisioningStateCreating, ManagedCassandraProvisioningStateDeleting, ManagedCassandraProvisioningStateFailed, ManagedCassandraProvisioningStateSucceeded, ManagedCassandraProvisioningStateUpdating}
   399  }
   400  
   401  // ManagedCassandraResourceIdentityType enumerates the values for managed cassandra resource identity type.
   402  type ManagedCassandraResourceIdentityType string
   403  
   404  const (
   405  	// ManagedCassandraResourceIdentityTypeNone ...
   406  	ManagedCassandraResourceIdentityTypeNone ManagedCassandraResourceIdentityType = "None"
   407  	// ManagedCassandraResourceIdentityTypeSystemAssigned ...
   408  	ManagedCassandraResourceIdentityTypeSystemAssigned ManagedCassandraResourceIdentityType = "SystemAssigned"
   409  )
   410  
   411  // PossibleManagedCassandraResourceIdentityTypeValues returns an array of possible values for the ManagedCassandraResourceIdentityType const type.
   412  func PossibleManagedCassandraResourceIdentityTypeValues() []ManagedCassandraResourceIdentityType {
   413  	return []ManagedCassandraResourceIdentityType{ManagedCassandraResourceIdentityTypeNone, ManagedCassandraResourceIdentityTypeSystemAssigned}
   414  }
   415  
   416  // MongoRoleDefinitionType enumerates the values for mongo role definition type.
   417  type MongoRoleDefinitionType string
   418  
   419  const (
   420  	// MongoRoleDefinitionTypeBuiltInRole ...
   421  	MongoRoleDefinitionTypeBuiltInRole MongoRoleDefinitionType = "BuiltInRole"
   422  	// MongoRoleDefinitionTypeCustomRole ...
   423  	MongoRoleDefinitionTypeCustomRole MongoRoleDefinitionType = "CustomRole"
   424  )
   425  
   426  // PossibleMongoRoleDefinitionTypeValues returns an array of possible values for the MongoRoleDefinitionType const type.
   427  func PossibleMongoRoleDefinitionTypeValues() []MongoRoleDefinitionType {
   428  	return []MongoRoleDefinitionType{MongoRoleDefinitionTypeBuiltInRole, MongoRoleDefinitionTypeCustomRole}
   429  }
   430  
   431  // NetworkACLBypass enumerates the values for network acl bypass.
   432  type NetworkACLBypass string
   433  
   434  const (
   435  	// NetworkACLBypassAzureServices ...
   436  	NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
   437  	// NetworkACLBypassNone ...
   438  	NetworkACLBypassNone NetworkACLBypass = "None"
   439  )
   440  
   441  // PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type.
   442  func PossibleNetworkACLBypassValues() []NetworkACLBypass {
   443  	return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone}
   444  }
   445  
   446  // NodeState enumerates the values for node state.
   447  type NodeState string
   448  
   449  const (
   450  	// NodeStateJoining ...
   451  	NodeStateJoining NodeState = "Joining"
   452  	// NodeStateLeaving ...
   453  	NodeStateLeaving NodeState = "Leaving"
   454  	// NodeStateMoving ...
   455  	NodeStateMoving NodeState = "Moving"
   456  	// NodeStateNormal ...
   457  	NodeStateNormal NodeState = "Normal"
   458  	// NodeStateStopped ...
   459  	NodeStateStopped NodeState = "Stopped"
   460  )
   461  
   462  // PossibleNodeStateValues returns an array of possible values for the NodeState const type.
   463  func PossibleNodeStateValues() []NodeState {
   464  	return []NodeState{NodeStateJoining, NodeStateLeaving, NodeStateMoving, NodeStateNormal, NodeStateStopped}
   465  }
   466  
   467  // NodeStatus enumerates the values for node status.
   468  type NodeStatus string
   469  
   470  const (
   471  	// NodeStatusDown ...
   472  	NodeStatusDown NodeStatus = "Down"
   473  	// NodeStatusUp ...
   474  	NodeStatusUp NodeStatus = "Up"
   475  )
   476  
   477  // PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type.
   478  func PossibleNodeStatusValues() []NodeStatus {
   479  	return []NodeStatus{NodeStatusDown, NodeStatusUp}
   480  }
   481  
   482  // OperationType enumerates the values for operation type.
   483  type OperationType string
   484  
   485  const (
   486  	// OperationTypeCreate ...
   487  	OperationTypeCreate OperationType = "Create"
   488  	// OperationTypeDelete ...
   489  	OperationTypeDelete OperationType = "Delete"
   490  	// OperationTypeReplace ...
   491  	OperationTypeReplace OperationType = "Replace"
   492  	// OperationTypeSystemOperation ...
   493  	OperationTypeSystemOperation OperationType = "SystemOperation"
   494  )
   495  
   496  // PossibleOperationTypeValues returns an array of possible values for the OperationType const type.
   497  func PossibleOperationTypeValues() []OperationType {
   498  	return []OperationType{OperationTypeCreate, OperationTypeDelete, OperationTypeReplace, OperationTypeSystemOperation}
   499  }
   500  
   501  // PartitionKind enumerates the values for partition kind.
   502  type PartitionKind string
   503  
   504  const (
   505  	// PartitionKindHash ...
   506  	PartitionKindHash PartitionKind = "Hash"
   507  	// PartitionKindMultiHash ...
   508  	PartitionKindMultiHash PartitionKind = "MultiHash"
   509  	// PartitionKindRange ...
   510  	PartitionKindRange PartitionKind = "Range"
   511  )
   512  
   513  // PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
   514  func PossiblePartitionKindValues() []PartitionKind {
   515  	return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange}
   516  }
   517  
   518  // PrimaryAggregationType enumerates the values for primary aggregation type.
   519  type PrimaryAggregationType string
   520  
   521  const (
   522  	// PrimaryAggregationTypeAverage ...
   523  	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
   524  	// PrimaryAggregationTypeLast ...
   525  	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
   526  	// PrimaryAggregationTypeMaximum ...
   527  	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
   528  	// PrimaryAggregationTypeMinimum ...
   529  	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
   530  	// PrimaryAggregationTypeNone ...
   531  	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
   532  	// PrimaryAggregationTypeTotal ...
   533  	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
   534  )
   535  
   536  // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
   537  func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
   538  	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
   539  }
   540  
   541  // PublicNetworkAccess enumerates the values for public network access.
   542  type PublicNetworkAccess string
   543  
   544  const (
   545  	// PublicNetworkAccessDisabled ...
   546  	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
   547  	// PublicNetworkAccessEnabled ...
   548  	PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
   549  )
   550  
   551  // PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
   552  func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
   553  	return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled}
   554  }
   555  
   556  // ResourceIdentityType enumerates the values for resource identity type.
   557  type ResourceIdentityType string
   558  
   559  const (
   560  	// ResourceIdentityTypeNone ...
   561  	ResourceIdentityTypeNone ResourceIdentityType = "None"
   562  	// ResourceIdentityTypeSystemAssigned ...
   563  	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
   564  	// ResourceIdentityTypeSystemAssignedUserAssigned ...
   565  	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
   566  	// ResourceIdentityTypeUserAssigned ...
   567  	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
   568  )
   569  
   570  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
   571  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
   572  	return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
   573  }
   574  
   575  // RestoreMode enumerates the values for restore mode.
   576  type RestoreMode string
   577  
   578  const (
   579  	// RestoreModePointInTime ...
   580  	RestoreModePointInTime RestoreMode = "PointInTime"
   581  )
   582  
   583  // PossibleRestoreModeValues returns an array of possible values for the RestoreMode const type.
   584  func PossibleRestoreModeValues() []RestoreMode {
   585  	return []RestoreMode{RestoreModePointInTime}
   586  }
   587  
   588  // RoleDefinitionType enumerates the values for role definition type.
   589  type RoleDefinitionType string
   590  
   591  const (
   592  	// RoleDefinitionTypeBuiltInRole ...
   593  	RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole"
   594  	// RoleDefinitionTypeCustomRole ...
   595  	RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole"
   596  )
   597  
   598  // PossibleRoleDefinitionTypeValues returns an array of possible values for the RoleDefinitionType const type.
   599  func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
   600  	return []RoleDefinitionType{RoleDefinitionTypeBuiltInRole, RoleDefinitionTypeCustomRole}
   601  }
   602  
   603  // ServerVersion enumerates the values for server version.
   604  type ServerVersion string
   605  
   606  const (
   607  	// ServerVersionFourFullStopZero ...
   608  	ServerVersionFourFullStopZero ServerVersion = "4.0"
   609  	// ServerVersionThreeFullStopSix ...
   610  	ServerVersionThreeFullStopSix ServerVersion = "3.6"
   611  	// ServerVersionThreeFullStopTwo ...
   612  	ServerVersionThreeFullStopTwo ServerVersion = "3.2"
   613  )
   614  
   615  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   616  func PossibleServerVersionValues() []ServerVersion {
   617  	return []ServerVersion{ServerVersionFourFullStopZero, ServerVersionThreeFullStopSix, ServerVersionThreeFullStopTwo}
   618  }
   619  
   620  // ServiceSize enumerates the values for service size.
   621  type ServiceSize string
   622  
   623  const (
   624  	// ServiceSizeCosmosD16s ...
   625  	ServiceSizeCosmosD16s ServiceSize = "Cosmos.D16s"
   626  	// ServiceSizeCosmosD4s ...
   627  	ServiceSizeCosmosD4s ServiceSize = "Cosmos.D4s"
   628  	// ServiceSizeCosmosD8s ...
   629  	ServiceSizeCosmosD8s ServiceSize = "Cosmos.D8s"
   630  )
   631  
   632  // PossibleServiceSizeValues returns an array of possible values for the ServiceSize const type.
   633  func PossibleServiceSizeValues() []ServiceSize {
   634  	return []ServiceSize{ServiceSizeCosmosD16s, ServiceSizeCosmosD4s, ServiceSizeCosmosD8s}
   635  }
   636  
   637  // ServiceStatus enumerates the values for service status.
   638  type ServiceStatus string
   639  
   640  const (
   641  	// ServiceStatusCreating ...
   642  	ServiceStatusCreating ServiceStatus = "Creating"
   643  	// ServiceStatusDeleting ...
   644  	ServiceStatusDeleting ServiceStatus = "Deleting"
   645  	// ServiceStatusError ...
   646  	ServiceStatusError ServiceStatus = "Error"
   647  	// ServiceStatusRunning ...
   648  	ServiceStatusRunning ServiceStatus = "Running"
   649  	// ServiceStatusStopped ...
   650  	ServiceStatusStopped ServiceStatus = "Stopped"
   651  	// ServiceStatusUpdating ...
   652  	ServiceStatusUpdating ServiceStatus = "Updating"
   653  )
   654  
   655  // PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type.
   656  func PossibleServiceStatusValues() []ServiceStatus {
   657  	return []ServiceStatus{ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusError, ServiceStatusRunning, ServiceStatusStopped, ServiceStatusUpdating}
   658  }
   659  
   660  // ServiceType enumerates the values for service type.
   661  type ServiceType string
   662  
   663  const (
   664  	// ServiceTypeDataTransfer ...
   665  	ServiceTypeDataTransfer ServiceType = "DataTransfer"
   666  	// ServiceTypeGraphAPICompute ...
   667  	ServiceTypeGraphAPICompute ServiceType = "GraphAPICompute"
   668  	// ServiceTypeMaterializedViewsBuilder ...
   669  	ServiceTypeMaterializedViewsBuilder ServiceType = "MaterializedViewsBuilder"
   670  	// ServiceTypeSQLDedicatedGateway ...
   671  	ServiceTypeSQLDedicatedGateway ServiceType = "SqlDedicatedGateway"
   672  )
   673  
   674  // PossibleServiceTypeValues returns an array of possible values for the ServiceType const type.
   675  func PossibleServiceTypeValues() []ServiceType {
   676  	return []ServiceType{ServiceTypeDataTransfer, ServiceTypeGraphAPICompute, ServiceTypeMaterializedViewsBuilder, ServiceTypeSQLDedicatedGateway}
   677  }
   678  
   679  // ServiceTypeBasicServiceResourceProperties enumerates the values for service type basic service resource
   680  // properties.
   681  type ServiceTypeBasicServiceResourceProperties string
   682  
   683  const (
   684  	// ServiceTypeBasicServiceResourcePropertiesServiceTypeDataTransfer ...
   685  	ServiceTypeBasicServiceResourcePropertiesServiceTypeDataTransfer ServiceTypeBasicServiceResourceProperties = "DataTransfer"
   686  	// ServiceTypeBasicServiceResourcePropertiesServiceTypeGraphAPICompute ...
   687  	ServiceTypeBasicServiceResourcePropertiesServiceTypeGraphAPICompute ServiceTypeBasicServiceResourceProperties = "GraphAPICompute"
   688  	// ServiceTypeBasicServiceResourcePropertiesServiceTypeMaterializedViewsBuilder ...
   689  	ServiceTypeBasicServiceResourcePropertiesServiceTypeMaterializedViewsBuilder ServiceTypeBasicServiceResourceProperties = "MaterializedViewsBuilder"
   690  	// ServiceTypeBasicServiceResourcePropertiesServiceTypeServiceResourceProperties ...
   691  	ServiceTypeBasicServiceResourcePropertiesServiceTypeServiceResourceProperties ServiceTypeBasicServiceResourceProperties = "ServiceResourceProperties"
   692  	// ServiceTypeBasicServiceResourcePropertiesServiceTypeSQLDedicatedGateway ...
   693  	ServiceTypeBasicServiceResourcePropertiesServiceTypeSQLDedicatedGateway ServiceTypeBasicServiceResourceProperties = "SqlDedicatedGateway"
   694  )
   695  
   696  // PossibleServiceTypeBasicServiceResourcePropertiesValues returns an array of possible values for the ServiceTypeBasicServiceResourceProperties const type.
   697  func PossibleServiceTypeBasicServiceResourcePropertiesValues() []ServiceTypeBasicServiceResourceProperties {
   698  	return []ServiceTypeBasicServiceResourceProperties{ServiceTypeBasicServiceResourcePropertiesServiceTypeDataTransfer, ServiceTypeBasicServiceResourcePropertiesServiceTypeGraphAPICompute, ServiceTypeBasicServiceResourcePropertiesServiceTypeMaterializedViewsBuilder, ServiceTypeBasicServiceResourcePropertiesServiceTypeServiceResourceProperties, ServiceTypeBasicServiceResourcePropertiesServiceTypeSQLDedicatedGateway}
   699  }
   700  
   701  // SpatialType enumerates the values for spatial type.
   702  type SpatialType string
   703  
   704  const (
   705  	// SpatialTypeLineString ...
   706  	SpatialTypeLineString SpatialType = "LineString"
   707  	// SpatialTypeMultiPolygon ...
   708  	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
   709  	// SpatialTypePoint ...
   710  	SpatialTypePoint SpatialType = "Point"
   711  	// SpatialTypePolygon ...
   712  	SpatialTypePolygon SpatialType = "Polygon"
   713  )
   714  
   715  // PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
   716  func PossibleSpatialTypeValues() []SpatialType {
   717  	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
   718  }
   719  
   720  // TriggerOperation enumerates the values for trigger operation.
   721  type TriggerOperation string
   722  
   723  const (
   724  	// TriggerOperationAll ...
   725  	TriggerOperationAll TriggerOperation = "All"
   726  	// TriggerOperationCreate ...
   727  	TriggerOperationCreate TriggerOperation = "Create"
   728  	// TriggerOperationDelete ...
   729  	TriggerOperationDelete TriggerOperation = "Delete"
   730  	// TriggerOperationReplace ...
   731  	TriggerOperationReplace TriggerOperation = "Replace"
   732  	// TriggerOperationUpdate ...
   733  	TriggerOperationUpdate TriggerOperation = "Update"
   734  )
   735  
   736  // PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
   737  func PossibleTriggerOperationValues() []TriggerOperation {
   738  	return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate}
   739  }
   740  
   741  // TriggerType enumerates the values for trigger type.
   742  type TriggerType string
   743  
   744  const (
   745  	// TriggerTypePost ...
   746  	TriggerTypePost TriggerType = "Post"
   747  	// TriggerTypePre ...
   748  	TriggerTypePre TriggerType = "Pre"
   749  )
   750  
   751  // PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
   752  func PossibleTriggerTypeValues() []TriggerType {
   753  	return []TriggerType{TriggerTypePost, TriggerTypePre}
   754  }
   755  
   756  // Type enumerates the values for type.
   757  type Type string
   758  
   759  const (
   760  	// TypeBackupPolicy ...
   761  	TypeBackupPolicy Type = "BackupPolicy"
   762  	// TypeContinuous ...
   763  	TypeContinuous Type = "Continuous"
   764  	// TypePeriodic ...
   765  	TypePeriodic Type = "Periodic"
   766  )
   767  
   768  // PossibleTypeValues returns an array of possible values for the Type const type.
   769  func PossibleTypeValues() []Type {
   770  	return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
   771  }
   772  
   773  // UnitType enumerates the values for unit type.
   774  type UnitType string
   775  
   776  const (
   777  	// UnitTypeBytes ...
   778  	UnitTypeBytes UnitType = "Bytes"
   779  	// UnitTypeBytesPerSecond ...
   780  	UnitTypeBytesPerSecond UnitType = "BytesPerSecond"
   781  	// UnitTypeCount ...
   782  	UnitTypeCount UnitType = "Count"
   783  	// UnitTypeCountPerSecond ...
   784  	UnitTypeCountPerSecond UnitType = "CountPerSecond"
   785  	// UnitTypeMilliseconds ...
   786  	UnitTypeMilliseconds UnitType = "Milliseconds"
   787  	// UnitTypePercent ...
   788  	UnitTypePercent UnitType = "Percent"
   789  	// UnitTypeSeconds ...
   790  	UnitTypeSeconds UnitType = "Seconds"
   791  )
   792  
   793  // PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
   794  func PossibleUnitTypeValues() []UnitType {
   795  	return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds}
   796  }
   797  

View as plain text