...

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

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

View as plain text