...

Source file src/github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers

     1  package postgresqlflexibleservers
     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  // ConfigurationDataType enumerates the values for configuration data type.
    10  type ConfigurationDataType string
    11  
    12  const (
    13  	// ConfigurationDataTypeBoolean ...
    14  	ConfigurationDataTypeBoolean ConfigurationDataType = "Boolean"
    15  	// ConfigurationDataTypeEnumeration ...
    16  	ConfigurationDataTypeEnumeration ConfigurationDataType = "Enumeration"
    17  	// ConfigurationDataTypeInteger ...
    18  	ConfigurationDataTypeInteger ConfigurationDataType = "Integer"
    19  	// ConfigurationDataTypeNumeric ...
    20  	ConfigurationDataTypeNumeric ConfigurationDataType = "Numeric"
    21  )
    22  
    23  // PossibleConfigurationDataTypeValues returns an array of possible values for the ConfigurationDataType const type.
    24  func PossibleConfigurationDataTypeValues() []ConfigurationDataType {
    25  	return []ConfigurationDataType{ConfigurationDataTypeBoolean, ConfigurationDataTypeEnumeration, ConfigurationDataTypeInteger, ConfigurationDataTypeNumeric}
    26  }
    27  
    28  // CreatedByType enumerates the values for created by type.
    29  type CreatedByType string
    30  
    31  const (
    32  	// CreatedByTypeApplication ...
    33  	CreatedByTypeApplication CreatedByType = "Application"
    34  	// CreatedByTypeKey ...
    35  	CreatedByTypeKey CreatedByType = "Key"
    36  	// CreatedByTypeManagedIdentity ...
    37  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    38  	// CreatedByTypeUser ...
    39  	CreatedByTypeUser CreatedByType = "User"
    40  )
    41  
    42  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    43  func PossibleCreatedByTypeValues() []CreatedByType {
    44  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
    45  }
    46  
    47  // CreateMode enumerates the values for create mode.
    48  type CreateMode string
    49  
    50  const (
    51  	// CreateModeCreate ...
    52  	CreateModeCreate CreateMode = "Create"
    53  	// CreateModeDefault ...
    54  	CreateModeDefault CreateMode = "Default"
    55  	// CreateModePointInTimeRestore ...
    56  	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
    57  	// CreateModeUpdate ...
    58  	CreateModeUpdate CreateMode = "Update"
    59  )
    60  
    61  // PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
    62  func PossibleCreateModeValues() []CreateMode {
    63  	return []CreateMode{CreateModeCreate, CreateModeDefault, CreateModePointInTimeRestore, CreateModeUpdate}
    64  }
    65  
    66  // CreateModeForUpdate enumerates the values for create mode for update.
    67  type CreateModeForUpdate string
    68  
    69  const (
    70  	// CreateModeForUpdateDefault ...
    71  	CreateModeForUpdateDefault CreateModeForUpdate = "Default"
    72  	// CreateModeForUpdateUpdate ...
    73  	CreateModeForUpdateUpdate CreateModeForUpdate = "Update"
    74  )
    75  
    76  // PossibleCreateModeForUpdateValues returns an array of possible values for the CreateModeForUpdate const type.
    77  func PossibleCreateModeForUpdateValues() []CreateModeForUpdate {
    78  	return []CreateModeForUpdate{CreateModeForUpdateDefault, CreateModeForUpdateUpdate}
    79  }
    80  
    81  // FailoverMode enumerates the values for failover mode.
    82  type FailoverMode string
    83  
    84  const (
    85  	// FailoverModeForcedFailover ...
    86  	FailoverModeForcedFailover FailoverMode = "ForcedFailover"
    87  	// FailoverModeForcedSwitchover ...
    88  	FailoverModeForcedSwitchover FailoverMode = "ForcedSwitchover"
    89  	// FailoverModePlannedFailover ...
    90  	FailoverModePlannedFailover FailoverMode = "PlannedFailover"
    91  	// FailoverModePlannedSwitchover ...
    92  	FailoverModePlannedSwitchover FailoverMode = "PlannedSwitchover"
    93  )
    94  
    95  // PossibleFailoverModeValues returns an array of possible values for the FailoverMode const type.
    96  func PossibleFailoverModeValues() []FailoverMode {
    97  	return []FailoverMode{FailoverModeForcedFailover, FailoverModeForcedSwitchover, FailoverModePlannedFailover, FailoverModePlannedSwitchover}
    98  }
    99  
   100  // GeoRedundantBackupEnum enumerates the values for geo redundant backup enum.
   101  type GeoRedundantBackupEnum string
   102  
   103  const (
   104  	// GeoRedundantBackupEnumDisabled ...
   105  	GeoRedundantBackupEnumDisabled GeoRedundantBackupEnum = "Disabled"
   106  	// GeoRedundantBackupEnumEnabled ...
   107  	GeoRedundantBackupEnumEnabled GeoRedundantBackupEnum = "Enabled"
   108  )
   109  
   110  // PossibleGeoRedundantBackupEnumValues returns an array of possible values for the GeoRedundantBackupEnum const type.
   111  func PossibleGeoRedundantBackupEnumValues() []GeoRedundantBackupEnum {
   112  	return []GeoRedundantBackupEnum{GeoRedundantBackupEnumDisabled, GeoRedundantBackupEnumEnabled}
   113  }
   114  
   115  // HighAvailabilityMode enumerates the values for high availability mode.
   116  type HighAvailabilityMode string
   117  
   118  const (
   119  	// HighAvailabilityModeDisabled ...
   120  	HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled"
   121  	// HighAvailabilityModeZoneRedundant ...
   122  	HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
   123  )
   124  
   125  // PossibleHighAvailabilityModeValues returns an array of possible values for the HighAvailabilityMode const type.
   126  func PossibleHighAvailabilityModeValues() []HighAvailabilityMode {
   127  	return []HighAvailabilityMode{HighAvailabilityModeDisabled, HighAvailabilityModeZoneRedundant}
   128  }
   129  
   130  // OperationOrigin enumerates the values for operation origin.
   131  type OperationOrigin string
   132  
   133  const (
   134  	// OperationOriginNotSpecified ...
   135  	OperationOriginNotSpecified OperationOrigin = "NotSpecified"
   136  	// OperationOriginSystem ...
   137  	OperationOriginSystem OperationOrigin = "system"
   138  	// OperationOriginUser ...
   139  	OperationOriginUser OperationOrigin = "user"
   140  )
   141  
   142  // PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.
   143  func PossibleOperationOriginValues() []OperationOrigin {
   144  	return []OperationOrigin{OperationOriginNotSpecified, OperationOriginSystem, OperationOriginUser}
   145  }
   146  
   147  // ServerHAState enumerates the values for server ha state.
   148  type ServerHAState string
   149  
   150  const (
   151  	// ServerHAStateCreatingStandby ...
   152  	ServerHAStateCreatingStandby ServerHAState = "CreatingStandby"
   153  	// ServerHAStateFailingOver ...
   154  	ServerHAStateFailingOver ServerHAState = "FailingOver"
   155  	// ServerHAStateHealthy ...
   156  	ServerHAStateHealthy ServerHAState = "Healthy"
   157  	// ServerHAStateNotEnabled ...
   158  	ServerHAStateNotEnabled ServerHAState = "NotEnabled"
   159  	// ServerHAStateRemovingStandby ...
   160  	ServerHAStateRemovingStandby ServerHAState = "RemovingStandby"
   161  	// ServerHAStateReplicatingData ...
   162  	ServerHAStateReplicatingData ServerHAState = "ReplicatingData"
   163  )
   164  
   165  // PossibleServerHAStateValues returns an array of possible values for the ServerHAState const type.
   166  func PossibleServerHAStateValues() []ServerHAState {
   167  	return []ServerHAState{ServerHAStateCreatingStandby, ServerHAStateFailingOver, ServerHAStateHealthy, ServerHAStateNotEnabled, ServerHAStateRemovingStandby, ServerHAStateReplicatingData}
   168  }
   169  
   170  // ServerPublicNetworkAccessState enumerates the values for server public network access state.
   171  type ServerPublicNetworkAccessState string
   172  
   173  const (
   174  	// ServerPublicNetworkAccessStateDisabled ...
   175  	ServerPublicNetworkAccessStateDisabled ServerPublicNetworkAccessState = "Disabled"
   176  	// ServerPublicNetworkAccessStateEnabled ...
   177  	ServerPublicNetworkAccessStateEnabled ServerPublicNetworkAccessState = "Enabled"
   178  )
   179  
   180  // PossibleServerPublicNetworkAccessStateValues returns an array of possible values for the ServerPublicNetworkAccessState const type.
   181  func PossibleServerPublicNetworkAccessStateValues() []ServerPublicNetworkAccessState {
   182  	return []ServerPublicNetworkAccessState{ServerPublicNetworkAccessStateDisabled, ServerPublicNetworkAccessStateEnabled}
   183  }
   184  
   185  // ServerState enumerates the values for server state.
   186  type ServerState string
   187  
   188  const (
   189  	// ServerStateDisabled ...
   190  	ServerStateDisabled ServerState = "Disabled"
   191  	// ServerStateDropping ...
   192  	ServerStateDropping ServerState = "Dropping"
   193  	// ServerStateReady ...
   194  	ServerStateReady ServerState = "Ready"
   195  	// ServerStateStarting ...
   196  	ServerStateStarting ServerState = "Starting"
   197  	// ServerStateStopped ...
   198  	ServerStateStopped ServerState = "Stopped"
   199  	// ServerStateStopping ...
   200  	ServerStateStopping ServerState = "Stopping"
   201  	// ServerStateUpdating ...
   202  	ServerStateUpdating ServerState = "Updating"
   203  )
   204  
   205  // PossibleServerStateValues returns an array of possible values for the ServerState const type.
   206  func PossibleServerStateValues() []ServerState {
   207  	return []ServerState{ServerStateDisabled, ServerStateDropping, ServerStateReady, ServerStateStarting, ServerStateStopped, ServerStateStopping, ServerStateUpdating}
   208  }
   209  
   210  // ServerVersion enumerates the values for server version.
   211  type ServerVersion string
   212  
   213  const (
   214  	// ServerVersionOneOne ...
   215  	ServerVersionOneOne ServerVersion = "11"
   216  	// ServerVersionOneThree ...
   217  	ServerVersionOneThree ServerVersion = "13"
   218  	// ServerVersionOneTwo ...
   219  	ServerVersionOneTwo ServerVersion = "12"
   220  )
   221  
   222  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   223  func PossibleServerVersionValues() []ServerVersion {
   224  	return []ServerVersion{ServerVersionOneOne, ServerVersionOneThree, ServerVersionOneTwo}
   225  }
   226  
   227  // SkuTier enumerates the values for sku tier.
   228  type SkuTier string
   229  
   230  const (
   231  	// SkuTierBurstable ...
   232  	SkuTierBurstable SkuTier = "Burstable"
   233  	// SkuTierGeneralPurpose ...
   234  	SkuTierGeneralPurpose SkuTier = "GeneralPurpose"
   235  	// SkuTierMemoryOptimized ...
   236  	SkuTierMemoryOptimized SkuTier = "MemoryOptimized"
   237  )
   238  
   239  // PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
   240  func PossibleSkuTierValues() []SkuTier {
   241  	return []SkuTier{SkuTierBurstable, SkuTierGeneralPurpose, SkuTierMemoryOptimized}
   242  }
   243  

View as plain text