...

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

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

View as plain text