...

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

Documentation: github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2021-06-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  	// 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  // BackupPolicyMigrationStatus enumerates the values for backup policy migration status.
    48  type BackupPolicyMigrationStatus string
    49  
    50  const (
    51  	// BackupPolicyMigrationStatusCompleted ...
    52  	BackupPolicyMigrationStatusCompleted BackupPolicyMigrationStatus = "Completed"
    53  	// BackupPolicyMigrationStatusFailed ...
    54  	BackupPolicyMigrationStatusFailed BackupPolicyMigrationStatus = "Failed"
    55  	// BackupPolicyMigrationStatusInProgress ...
    56  	BackupPolicyMigrationStatusInProgress BackupPolicyMigrationStatus = "InProgress"
    57  	// BackupPolicyMigrationStatusInvalid ...
    58  	BackupPolicyMigrationStatusInvalid BackupPolicyMigrationStatus = "Invalid"
    59  )
    60  
    61  // PossibleBackupPolicyMigrationStatusValues returns an array of possible values for the BackupPolicyMigrationStatus const type.
    62  func PossibleBackupPolicyMigrationStatusValues() []BackupPolicyMigrationStatus {
    63  	return []BackupPolicyMigrationStatus{BackupPolicyMigrationStatusCompleted, BackupPolicyMigrationStatusFailed, BackupPolicyMigrationStatusInProgress, BackupPolicyMigrationStatusInvalid}
    64  }
    65  
    66  // BackupPolicyType enumerates the values for backup policy type.
    67  type BackupPolicyType string
    68  
    69  const (
    70  	// BackupPolicyTypeContinuous ...
    71  	BackupPolicyTypeContinuous BackupPolicyType = "Continuous"
    72  	// BackupPolicyTypePeriodic ...
    73  	BackupPolicyTypePeriodic BackupPolicyType = "Periodic"
    74  )
    75  
    76  // PossibleBackupPolicyTypeValues returns an array of possible values for the BackupPolicyType const type.
    77  func PossibleBackupPolicyTypeValues() []BackupPolicyType {
    78  	return []BackupPolicyType{BackupPolicyTypeContinuous, BackupPolicyTypePeriodic}
    79  }
    80  
    81  // CompositePathSortOrder enumerates the values for composite path sort order.
    82  type CompositePathSortOrder string
    83  
    84  const (
    85  	// CompositePathSortOrderAscending ...
    86  	CompositePathSortOrderAscending CompositePathSortOrder = "ascending"
    87  	// CompositePathSortOrderDescending ...
    88  	CompositePathSortOrderDescending CompositePathSortOrder = "descending"
    89  )
    90  
    91  // PossibleCompositePathSortOrderValues returns an array of possible values for the CompositePathSortOrder const type.
    92  func PossibleCompositePathSortOrderValues() []CompositePathSortOrder {
    93  	return []CompositePathSortOrder{CompositePathSortOrderAscending, CompositePathSortOrderDescending}
    94  }
    95  
    96  // ConflictResolutionMode enumerates the values for conflict resolution mode.
    97  type ConflictResolutionMode string
    98  
    99  const (
   100  	// ConflictResolutionModeCustom ...
   101  	ConflictResolutionModeCustom ConflictResolutionMode = "Custom"
   102  	// ConflictResolutionModeLastWriterWins ...
   103  	ConflictResolutionModeLastWriterWins ConflictResolutionMode = "LastWriterWins"
   104  )
   105  
   106  // PossibleConflictResolutionModeValues returns an array of possible values for the ConflictResolutionMode const type.
   107  func PossibleConflictResolutionModeValues() []ConflictResolutionMode {
   108  	return []ConflictResolutionMode{ConflictResolutionModeCustom, ConflictResolutionModeLastWriterWins}
   109  }
   110  
   111  // ConnectorOffer enumerates the values for connector offer.
   112  type ConnectorOffer string
   113  
   114  const (
   115  	// ConnectorOfferSmall ...
   116  	ConnectorOfferSmall ConnectorOffer = "Small"
   117  )
   118  
   119  // PossibleConnectorOfferValues returns an array of possible values for the ConnectorOffer const type.
   120  func PossibleConnectorOfferValues() []ConnectorOffer {
   121  	return []ConnectorOffer{ConnectorOfferSmall}
   122  }
   123  
   124  // CreatedByType enumerates the values for created by type.
   125  type CreatedByType string
   126  
   127  const (
   128  	// CreatedByTypeApplication ...
   129  	CreatedByTypeApplication CreatedByType = "Application"
   130  	// CreatedByTypeKey ...
   131  	CreatedByTypeKey CreatedByType = "Key"
   132  	// CreatedByTypeManagedIdentity ...
   133  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
   134  	// CreatedByTypeUser ...
   135  	CreatedByTypeUser CreatedByType = "User"
   136  )
   137  
   138  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
   139  func PossibleCreatedByTypeValues() []CreatedByType {
   140  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
   141  }
   142  
   143  // CreateMode enumerates the values for create mode.
   144  type CreateMode string
   145  
   146  const (
   147  	// CreateModeDefault ...
   148  	CreateModeDefault CreateMode = "Default"
   149  	// CreateModeRestore ...
   150  	CreateModeRestore CreateMode = "Restore"
   151  )
   152  
   153  // PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
   154  func PossibleCreateModeValues() []CreateMode {
   155  	return []CreateMode{CreateModeDefault, CreateModeRestore}
   156  }
   157  
   158  // DatabaseAccountKind enumerates the values for database account kind.
   159  type DatabaseAccountKind string
   160  
   161  const (
   162  	// DatabaseAccountKindGlobalDocumentDB ...
   163  	DatabaseAccountKindGlobalDocumentDB DatabaseAccountKind = "GlobalDocumentDB"
   164  	// DatabaseAccountKindMongoDB ...
   165  	DatabaseAccountKindMongoDB DatabaseAccountKind = "MongoDB"
   166  	// DatabaseAccountKindParse ...
   167  	DatabaseAccountKindParse DatabaseAccountKind = "Parse"
   168  )
   169  
   170  // PossibleDatabaseAccountKindValues returns an array of possible values for the DatabaseAccountKind const type.
   171  func PossibleDatabaseAccountKindValues() []DatabaseAccountKind {
   172  	return []DatabaseAccountKind{DatabaseAccountKindGlobalDocumentDB, DatabaseAccountKindMongoDB, DatabaseAccountKindParse}
   173  }
   174  
   175  // DatabaseAccountOfferType enumerates the values for database account offer type.
   176  type DatabaseAccountOfferType string
   177  
   178  const (
   179  	// DatabaseAccountOfferTypeStandard ...
   180  	DatabaseAccountOfferTypeStandard DatabaseAccountOfferType = "Standard"
   181  )
   182  
   183  // PossibleDatabaseAccountOfferTypeValues returns an array of possible values for the DatabaseAccountOfferType const type.
   184  func PossibleDatabaseAccountOfferTypeValues() []DatabaseAccountOfferType {
   185  	return []DatabaseAccountOfferType{DatabaseAccountOfferTypeStandard}
   186  }
   187  
   188  // DataType enumerates the values for data type.
   189  type DataType string
   190  
   191  const (
   192  	// DataTypeLineString ...
   193  	DataTypeLineString DataType = "LineString"
   194  	// DataTypeMultiPolygon ...
   195  	DataTypeMultiPolygon DataType = "MultiPolygon"
   196  	// DataTypeNumber ...
   197  	DataTypeNumber DataType = "Number"
   198  	// DataTypePoint ...
   199  	DataTypePoint DataType = "Point"
   200  	// DataTypePolygon ...
   201  	DataTypePolygon DataType = "Polygon"
   202  	// DataTypeString ...
   203  	DataTypeString DataType = "String"
   204  )
   205  
   206  // PossibleDataTypeValues returns an array of possible values for the DataType const type.
   207  func PossibleDataTypeValues() []DataType {
   208  	return []DataType{DataTypeLineString, DataTypeMultiPolygon, DataTypeNumber, DataTypePoint, DataTypePolygon, DataTypeString}
   209  }
   210  
   211  // DefaultConsistencyLevel enumerates the values for default consistency level.
   212  type DefaultConsistencyLevel string
   213  
   214  const (
   215  	// DefaultConsistencyLevelBoundedStaleness ...
   216  	DefaultConsistencyLevelBoundedStaleness DefaultConsistencyLevel = "BoundedStaleness"
   217  	// DefaultConsistencyLevelConsistentPrefix ...
   218  	DefaultConsistencyLevelConsistentPrefix DefaultConsistencyLevel = "ConsistentPrefix"
   219  	// DefaultConsistencyLevelEventual ...
   220  	DefaultConsistencyLevelEventual DefaultConsistencyLevel = "Eventual"
   221  	// DefaultConsistencyLevelSession ...
   222  	DefaultConsistencyLevelSession DefaultConsistencyLevel = "Session"
   223  	// DefaultConsistencyLevelStrong ...
   224  	DefaultConsistencyLevelStrong DefaultConsistencyLevel = "Strong"
   225  )
   226  
   227  // PossibleDefaultConsistencyLevelValues returns an array of possible values for the DefaultConsistencyLevel const type.
   228  func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel {
   229  	return []DefaultConsistencyLevel{DefaultConsistencyLevelBoundedStaleness, DefaultConsistencyLevelConsistentPrefix, DefaultConsistencyLevelEventual, DefaultConsistencyLevelSession, DefaultConsistencyLevelStrong}
   230  }
   231  
   232  // IndexingMode enumerates the values for indexing mode.
   233  type IndexingMode string
   234  
   235  const (
   236  	// IndexingModeConsistent ...
   237  	IndexingModeConsistent IndexingMode = "consistent"
   238  	// IndexingModeLazy ...
   239  	IndexingModeLazy IndexingMode = "lazy"
   240  	// IndexingModeNone ...
   241  	IndexingModeNone IndexingMode = "none"
   242  )
   243  
   244  // PossibleIndexingModeValues returns an array of possible values for the IndexingMode const type.
   245  func PossibleIndexingModeValues() []IndexingMode {
   246  	return []IndexingMode{IndexingModeConsistent, IndexingModeLazy, IndexingModeNone}
   247  }
   248  
   249  // IndexKind enumerates the values for index kind.
   250  type IndexKind string
   251  
   252  const (
   253  	// IndexKindHash ...
   254  	IndexKindHash IndexKind = "Hash"
   255  	// IndexKindRange ...
   256  	IndexKindRange IndexKind = "Range"
   257  	// IndexKindSpatial ...
   258  	IndexKindSpatial IndexKind = "Spatial"
   259  )
   260  
   261  // PossibleIndexKindValues returns an array of possible values for the IndexKind const type.
   262  func PossibleIndexKindValues() []IndexKind {
   263  	return []IndexKind{IndexKindHash, IndexKindRange, IndexKindSpatial}
   264  }
   265  
   266  // KeyKind enumerates the values for key kind.
   267  type KeyKind string
   268  
   269  const (
   270  	// KeyKindPrimary ...
   271  	KeyKindPrimary KeyKind = "primary"
   272  	// KeyKindPrimaryReadonly ...
   273  	KeyKindPrimaryReadonly KeyKind = "primaryReadonly"
   274  	// KeyKindSecondary ...
   275  	KeyKindSecondary KeyKind = "secondary"
   276  	// KeyKindSecondaryReadonly ...
   277  	KeyKindSecondaryReadonly KeyKind = "secondaryReadonly"
   278  )
   279  
   280  // PossibleKeyKindValues returns an array of possible values for the KeyKind const type.
   281  func PossibleKeyKindValues() []KeyKind {
   282  	return []KeyKind{KeyKindPrimary, KeyKindPrimaryReadonly, KeyKindSecondary, KeyKindSecondaryReadonly}
   283  }
   284  
   285  // NetworkACLBypass enumerates the values for network acl bypass.
   286  type NetworkACLBypass string
   287  
   288  const (
   289  	// NetworkACLBypassAzureServices ...
   290  	NetworkACLBypassAzureServices NetworkACLBypass = "AzureServices"
   291  	// NetworkACLBypassNone ...
   292  	NetworkACLBypassNone NetworkACLBypass = "None"
   293  )
   294  
   295  // PossibleNetworkACLBypassValues returns an array of possible values for the NetworkACLBypass const type.
   296  func PossibleNetworkACLBypassValues() []NetworkACLBypass {
   297  	return []NetworkACLBypass{NetworkACLBypassAzureServices, NetworkACLBypassNone}
   298  }
   299  
   300  // OperationType enumerates the values for operation type.
   301  type OperationType string
   302  
   303  const (
   304  	// OperationTypeCreate ...
   305  	OperationTypeCreate OperationType = "Create"
   306  	// OperationTypeDelete ...
   307  	OperationTypeDelete OperationType = "Delete"
   308  	// OperationTypeReplace ...
   309  	OperationTypeReplace OperationType = "Replace"
   310  	// OperationTypeSystemOperation ...
   311  	OperationTypeSystemOperation OperationType = "SystemOperation"
   312  )
   313  
   314  // PossibleOperationTypeValues returns an array of possible values for the OperationType const type.
   315  func PossibleOperationTypeValues() []OperationType {
   316  	return []OperationType{OperationTypeCreate, OperationTypeDelete, OperationTypeReplace, OperationTypeSystemOperation}
   317  }
   318  
   319  // PartitionKind enumerates the values for partition kind.
   320  type PartitionKind string
   321  
   322  const (
   323  	// PartitionKindHash ...
   324  	PartitionKindHash PartitionKind = "Hash"
   325  	// PartitionKindMultiHash ...
   326  	PartitionKindMultiHash PartitionKind = "MultiHash"
   327  	// PartitionKindRange ...
   328  	PartitionKindRange PartitionKind = "Range"
   329  )
   330  
   331  // PossiblePartitionKindValues returns an array of possible values for the PartitionKind const type.
   332  func PossiblePartitionKindValues() []PartitionKind {
   333  	return []PartitionKind{PartitionKindHash, PartitionKindMultiHash, PartitionKindRange}
   334  }
   335  
   336  // PrimaryAggregationType enumerates the values for primary aggregation type.
   337  type PrimaryAggregationType string
   338  
   339  const (
   340  	// PrimaryAggregationTypeAverage ...
   341  	PrimaryAggregationTypeAverage PrimaryAggregationType = "Average"
   342  	// PrimaryAggregationTypeLast ...
   343  	PrimaryAggregationTypeLast PrimaryAggregationType = "Last"
   344  	// PrimaryAggregationTypeMaximum ...
   345  	PrimaryAggregationTypeMaximum PrimaryAggregationType = "Maximum"
   346  	// PrimaryAggregationTypeMinimum ...
   347  	PrimaryAggregationTypeMinimum PrimaryAggregationType = "Minimum"
   348  	// PrimaryAggregationTypeNone ...
   349  	PrimaryAggregationTypeNone PrimaryAggregationType = "None"
   350  	// PrimaryAggregationTypeTotal ...
   351  	PrimaryAggregationTypeTotal PrimaryAggregationType = "Total"
   352  )
   353  
   354  // PossiblePrimaryAggregationTypeValues returns an array of possible values for the PrimaryAggregationType const type.
   355  func PossiblePrimaryAggregationTypeValues() []PrimaryAggregationType {
   356  	return []PrimaryAggregationType{PrimaryAggregationTypeAverage, PrimaryAggregationTypeLast, PrimaryAggregationTypeMaximum, PrimaryAggregationTypeMinimum, PrimaryAggregationTypeNone, PrimaryAggregationTypeTotal}
   357  }
   358  
   359  // PublicNetworkAccess enumerates the values for public network access.
   360  type PublicNetworkAccess string
   361  
   362  const (
   363  	// PublicNetworkAccessDisabled ...
   364  	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
   365  	// PublicNetworkAccessEnabled ...
   366  	PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
   367  )
   368  
   369  // PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
   370  func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
   371  	return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled}
   372  }
   373  
   374  // ResourceIdentityType enumerates the values for resource identity type.
   375  type ResourceIdentityType string
   376  
   377  const (
   378  	// ResourceIdentityTypeNone ...
   379  	ResourceIdentityTypeNone ResourceIdentityType = "None"
   380  	// ResourceIdentityTypeSystemAssigned ...
   381  	ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
   382  	// ResourceIdentityTypeSystemAssignedUserAssigned ...
   383  	ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned,UserAssigned"
   384  	// ResourceIdentityTypeUserAssigned ...
   385  	ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
   386  )
   387  
   388  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
   389  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
   390  	return []ResourceIdentityType{ResourceIdentityTypeNone, ResourceIdentityTypeSystemAssigned, ResourceIdentityTypeSystemAssignedUserAssigned, ResourceIdentityTypeUserAssigned}
   391  }
   392  
   393  // RestoreMode enumerates the values for restore mode.
   394  type RestoreMode string
   395  
   396  const (
   397  	// RestoreModePointInTime ...
   398  	RestoreModePointInTime RestoreMode = "PointInTime"
   399  )
   400  
   401  // PossibleRestoreModeValues returns an array of possible values for the RestoreMode const type.
   402  func PossibleRestoreModeValues() []RestoreMode {
   403  	return []RestoreMode{RestoreModePointInTime}
   404  }
   405  
   406  // RoleDefinitionType enumerates the values for role definition type.
   407  type RoleDefinitionType string
   408  
   409  const (
   410  	// RoleDefinitionTypeBuiltInRole ...
   411  	RoleDefinitionTypeBuiltInRole RoleDefinitionType = "BuiltInRole"
   412  	// RoleDefinitionTypeCustomRole ...
   413  	RoleDefinitionTypeCustomRole RoleDefinitionType = "CustomRole"
   414  )
   415  
   416  // PossibleRoleDefinitionTypeValues returns an array of possible values for the RoleDefinitionType const type.
   417  func PossibleRoleDefinitionTypeValues() []RoleDefinitionType {
   418  	return []RoleDefinitionType{RoleDefinitionTypeBuiltInRole, RoleDefinitionTypeCustomRole}
   419  }
   420  
   421  // ServerVersion enumerates the values for server version.
   422  type ServerVersion string
   423  
   424  const (
   425  	// ServerVersionFourFullStopZero ...
   426  	ServerVersionFourFullStopZero ServerVersion = "4.0"
   427  	// ServerVersionThreeFullStopSix ...
   428  	ServerVersionThreeFullStopSix ServerVersion = "3.6"
   429  	// ServerVersionThreeFullStopTwo ...
   430  	ServerVersionThreeFullStopTwo ServerVersion = "3.2"
   431  )
   432  
   433  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   434  func PossibleServerVersionValues() []ServerVersion {
   435  	return []ServerVersion{ServerVersionFourFullStopZero, ServerVersionThreeFullStopSix, ServerVersionThreeFullStopTwo}
   436  }
   437  
   438  // SpatialType enumerates the values for spatial type.
   439  type SpatialType string
   440  
   441  const (
   442  	// SpatialTypeLineString ...
   443  	SpatialTypeLineString SpatialType = "LineString"
   444  	// SpatialTypeMultiPolygon ...
   445  	SpatialTypeMultiPolygon SpatialType = "MultiPolygon"
   446  	// SpatialTypePoint ...
   447  	SpatialTypePoint SpatialType = "Point"
   448  	// SpatialTypePolygon ...
   449  	SpatialTypePolygon SpatialType = "Polygon"
   450  )
   451  
   452  // PossibleSpatialTypeValues returns an array of possible values for the SpatialType const type.
   453  func PossibleSpatialTypeValues() []SpatialType {
   454  	return []SpatialType{SpatialTypeLineString, SpatialTypeMultiPolygon, SpatialTypePoint, SpatialTypePolygon}
   455  }
   456  
   457  // TriggerOperation enumerates the values for trigger operation.
   458  type TriggerOperation string
   459  
   460  const (
   461  	// TriggerOperationAll ...
   462  	TriggerOperationAll TriggerOperation = "All"
   463  	// TriggerOperationCreate ...
   464  	TriggerOperationCreate TriggerOperation = "Create"
   465  	// TriggerOperationDelete ...
   466  	TriggerOperationDelete TriggerOperation = "Delete"
   467  	// TriggerOperationReplace ...
   468  	TriggerOperationReplace TriggerOperation = "Replace"
   469  	// TriggerOperationUpdate ...
   470  	TriggerOperationUpdate TriggerOperation = "Update"
   471  )
   472  
   473  // PossibleTriggerOperationValues returns an array of possible values for the TriggerOperation const type.
   474  func PossibleTriggerOperationValues() []TriggerOperation {
   475  	return []TriggerOperation{TriggerOperationAll, TriggerOperationCreate, TriggerOperationDelete, TriggerOperationReplace, TriggerOperationUpdate}
   476  }
   477  
   478  // TriggerType enumerates the values for trigger type.
   479  type TriggerType string
   480  
   481  const (
   482  	// TriggerTypePost ...
   483  	TriggerTypePost TriggerType = "Post"
   484  	// TriggerTypePre ...
   485  	TriggerTypePre TriggerType = "Pre"
   486  )
   487  
   488  // PossibleTriggerTypeValues returns an array of possible values for the TriggerType const type.
   489  func PossibleTriggerTypeValues() []TriggerType {
   490  	return []TriggerType{TriggerTypePost, TriggerTypePre}
   491  }
   492  
   493  // Type enumerates the values for type.
   494  type Type string
   495  
   496  const (
   497  	// TypeBackupPolicy ...
   498  	TypeBackupPolicy Type = "BackupPolicy"
   499  	// TypeContinuous ...
   500  	TypeContinuous Type = "Continuous"
   501  	// TypePeriodic ...
   502  	TypePeriodic Type = "Periodic"
   503  )
   504  
   505  // PossibleTypeValues returns an array of possible values for the Type const type.
   506  func PossibleTypeValues() []Type {
   507  	return []Type{TypeBackupPolicy, TypeContinuous, TypePeriodic}
   508  }
   509  
   510  // UnitType enumerates the values for unit type.
   511  type UnitType string
   512  
   513  const (
   514  	// UnitTypeBytes ...
   515  	UnitTypeBytes UnitType = "Bytes"
   516  	// UnitTypeBytesPerSecond ...
   517  	UnitTypeBytesPerSecond UnitType = "BytesPerSecond"
   518  	// UnitTypeCount ...
   519  	UnitTypeCount UnitType = "Count"
   520  	// UnitTypeCountPerSecond ...
   521  	UnitTypeCountPerSecond UnitType = "CountPerSecond"
   522  	// UnitTypeMilliseconds ...
   523  	UnitTypeMilliseconds UnitType = "Milliseconds"
   524  	// UnitTypePercent ...
   525  	UnitTypePercent UnitType = "Percent"
   526  	// UnitTypeSeconds ...
   527  	UnitTypeSeconds UnitType = "Seconds"
   528  )
   529  
   530  // PossibleUnitTypeValues returns an array of possible values for the UnitType const type.
   531  func PossibleUnitTypeValues() []UnitType {
   532  	return []UnitType{UnitTypeBytes, UnitTypeBytesPerSecond, UnitTypeCount, UnitTypeCountPerSecond, UnitTypeMilliseconds, UnitTypePercent, UnitTypeSeconds}
   533  }
   534  

View as plain text