...

Source file src/github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers

     1  package mysqlflexibleservers
     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  // ConfigurationSource enumerates the values for configuration source.
    10  type ConfigurationSource string
    11  
    12  const (
    13  	// ConfigurationSourceSystemDefault ...
    14  	ConfigurationSourceSystemDefault ConfigurationSource = "system-default"
    15  	// ConfigurationSourceUserOverride ...
    16  	ConfigurationSourceUserOverride ConfigurationSource = "user-override"
    17  )
    18  
    19  // PossibleConfigurationSourceValues returns an array of possible values for the ConfigurationSource const type.
    20  func PossibleConfigurationSourceValues() []ConfigurationSource {
    21  	return []ConfigurationSource{ConfigurationSourceSystemDefault, ConfigurationSourceUserOverride}
    22  }
    23  
    24  // CreatedByType enumerates the values for created by type.
    25  type CreatedByType string
    26  
    27  const (
    28  	// CreatedByTypeApplication ...
    29  	CreatedByTypeApplication CreatedByType = "Application"
    30  	// CreatedByTypeKey ...
    31  	CreatedByTypeKey CreatedByType = "Key"
    32  	// CreatedByTypeManagedIdentity ...
    33  	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
    34  	// CreatedByTypeUser ...
    35  	CreatedByTypeUser CreatedByType = "User"
    36  )
    37  
    38  // PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
    39  func PossibleCreatedByTypeValues() []CreatedByType {
    40  	return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
    41  }
    42  
    43  // CreateMode enumerates the values for create mode.
    44  type CreateMode string
    45  
    46  const (
    47  	// CreateModeDefault ...
    48  	CreateModeDefault CreateMode = "Default"
    49  	// CreateModeGeoRestore ...
    50  	CreateModeGeoRestore CreateMode = "GeoRestore"
    51  	// CreateModePointInTimeRestore ...
    52  	CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
    53  	// CreateModeReplica ...
    54  	CreateModeReplica CreateMode = "Replica"
    55  )
    56  
    57  // PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
    58  func PossibleCreateModeValues() []CreateMode {
    59  	return []CreateMode{CreateModeDefault, CreateModeGeoRestore, CreateModePointInTimeRestore, CreateModeReplica}
    60  }
    61  
    62  // EnableStatusEnum enumerates the values for enable status enum.
    63  type EnableStatusEnum string
    64  
    65  const (
    66  	// EnableStatusEnumDisabled ...
    67  	EnableStatusEnumDisabled EnableStatusEnum = "Disabled"
    68  	// EnableStatusEnumEnabled ...
    69  	EnableStatusEnumEnabled EnableStatusEnum = "Enabled"
    70  )
    71  
    72  // PossibleEnableStatusEnumValues returns an array of possible values for the EnableStatusEnum const type.
    73  func PossibleEnableStatusEnumValues() []EnableStatusEnum {
    74  	return []EnableStatusEnum{EnableStatusEnumDisabled, EnableStatusEnumEnabled}
    75  }
    76  
    77  // HighAvailabilityMode enumerates the values for high availability mode.
    78  type HighAvailabilityMode string
    79  
    80  const (
    81  	// HighAvailabilityModeDisabled ...
    82  	HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled"
    83  	// HighAvailabilityModeSameZone ...
    84  	HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone"
    85  	// HighAvailabilityModeZoneRedundant ...
    86  	HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
    87  )
    88  
    89  // PossibleHighAvailabilityModeValues returns an array of possible values for the HighAvailabilityMode const type.
    90  func PossibleHighAvailabilityModeValues() []HighAvailabilityMode {
    91  	return []HighAvailabilityMode{HighAvailabilityModeDisabled, HighAvailabilityModeSameZone, HighAvailabilityModeZoneRedundant}
    92  }
    93  
    94  // HighAvailabilityState enumerates the values for high availability state.
    95  type HighAvailabilityState string
    96  
    97  const (
    98  	// HighAvailabilityStateCreatingStandby ...
    99  	HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby"
   100  	// HighAvailabilityStateFailingOver ...
   101  	HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver"
   102  	// HighAvailabilityStateHealthy ...
   103  	HighAvailabilityStateHealthy HighAvailabilityState = "Healthy"
   104  	// HighAvailabilityStateNotEnabled ...
   105  	HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled"
   106  	// HighAvailabilityStateRemovingStandby ...
   107  	HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby"
   108  )
   109  
   110  // PossibleHighAvailabilityStateValues returns an array of possible values for the HighAvailabilityState const type.
   111  func PossibleHighAvailabilityStateValues() []HighAvailabilityState {
   112  	return []HighAvailabilityState{HighAvailabilityStateCreatingStandby, HighAvailabilityStateFailingOver, HighAvailabilityStateHealthy, HighAvailabilityStateNotEnabled, HighAvailabilityStateRemovingStandby}
   113  }
   114  
   115  // IsConfigPendingRestart enumerates the values for is config pending restart.
   116  type IsConfigPendingRestart string
   117  
   118  const (
   119  	// IsConfigPendingRestartFalse ...
   120  	IsConfigPendingRestartFalse IsConfigPendingRestart = "False"
   121  	// IsConfigPendingRestartTrue ...
   122  	IsConfigPendingRestartTrue IsConfigPendingRestart = "True"
   123  )
   124  
   125  // PossibleIsConfigPendingRestartValues returns an array of possible values for the IsConfigPendingRestart const type.
   126  func PossibleIsConfigPendingRestartValues() []IsConfigPendingRestart {
   127  	return []IsConfigPendingRestart{IsConfigPendingRestartFalse, IsConfigPendingRestartTrue}
   128  }
   129  
   130  // IsDynamicConfig enumerates the values for is dynamic config.
   131  type IsDynamicConfig string
   132  
   133  const (
   134  	// IsDynamicConfigFalse ...
   135  	IsDynamicConfigFalse IsDynamicConfig = "False"
   136  	// IsDynamicConfigTrue ...
   137  	IsDynamicConfigTrue IsDynamicConfig = "True"
   138  )
   139  
   140  // PossibleIsDynamicConfigValues returns an array of possible values for the IsDynamicConfig const type.
   141  func PossibleIsDynamicConfigValues() []IsDynamicConfig {
   142  	return []IsDynamicConfig{IsDynamicConfigFalse, IsDynamicConfigTrue}
   143  }
   144  
   145  // IsReadOnly enumerates the values for is read only.
   146  type IsReadOnly string
   147  
   148  const (
   149  	// IsReadOnlyFalse ...
   150  	IsReadOnlyFalse IsReadOnly = "False"
   151  	// IsReadOnlyTrue ...
   152  	IsReadOnlyTrue IsReadOnly = "True"
   153  )
   154  
   155  // PossibleIsReadOnlyValues returns an array of possible values for the IsReadOnly const type.
   156  func PossibleIsReadOnlyValues() []IsReadOnly {
   157  	return []IsReadOnly{IsReadOnlyFalse, IsReadOnlyTrue}
   158  }
   159  
   160  // ReplicationRole enumerates the values for replication role.
   161  type ReplicationRole string
   162  
   163  const (
   164  	// ReplicationRoleNone ...
   165  	ReplicationRoleNone ReplicationRole = "None"
   166  	// ReplicationRoleReplica ...
   167  	ReplicationRoleReplica ReplicationRole = "Replica"
   168  	// ReplicationRoleSource ...
   169  	ReplicationRoleSource ReplicationRole = "Source"
   170  )
   171  
   172  // PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.
   173  func PossibleReplicationRoleValues() []ReplicationRole {
   174  	return []ReplicationRole{ReplicationRoleNone, ReplicationRoleReplica, ReplicationRoleSource}
   175  }
   176  
   177  // ServerState enumerates the values for server state.
   178  type ServerState string
   179  
   180  const (
   181  	// ServerStateDisabled ...
   182  	ServerStateDisabled ServerState = "Disabled"
   183  	// ServerStateDropping ...
   184  	ServerStateDropping ServerState = "Dropping"
   185  	// ServerStateReady ...
   186  	ServerStateReady ServerState = "Ready"
   187  	// ServerStateStarting ...
   188  	ServerStateStarting ServerState = "Starting"
   189  	// ServerStateStopped ...
   190  	ServerStateStopped ServerState = "Stopped"
   191  	// ServerStateStopping ...
   192  	ServerStateStopping ServerState = "Stopping"
   193  	// ServerStateUpdating ...
   194  	ServerStateUpdating ServerState = "Updating"
   195  )
   196  
   197  // PossibleServerStateValues returns an array of possible values for the ServerState const type.
   198  func PossibleServerStateValues() []ServerState {
   199  	return []ServerState{ServerStateDisabled, ServerStateDropping, ServerStateReady, ServerStateStarting, ServerStateStopped, ServerStateStopping, ServerStateUpdating}
   200  }
   201  
   202  // ServerVersion enumerates the values for server version.
   203  type ServerVersion string
   204  
   205  const (
   206  	// ServerVersionEightFullStopZeroFullStopTwoOne ...
   207  	ServerVersionEightFullStopZeroFullStopTwoOne ServerVersion = "8.0.21"
   208  	// ServerVersionFiveFullStopSeven ...
   209  	ServerVersionFiveFullStopSeven ServerVersion = "5.7"
   210  )
   211  
   212  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   213  func PossibleServerVersionValues() []ServerVersion {
   214  	return []ServerVersion{ServerVersionEightFullStopZeroFullStopTwoOne, ServerVersionFiveFullStopSeven}
   215  }
   216  
   217  // SkuTier enumerates the values for sku tier.
   218  type SkuTier string
   219  
   220  const (
   221  	// SkuTierBurstable ...
   222  	SkuTierBurstable SkuTier = "Burstable"
   223  	// SkuTierGeneralPurpose ...
   224  	SkuTierGeneralPurpose SkuTier = "GeneralPurpose"
   225  	// SkuTierMemoryOptimized ...
   226  	SkuTierMemoryOptimized SkuTier = "MemoryOptimized"
   227  )
   228  
   229  // PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
   230  func PossibleSkuTierValues() []SkuTier {
   231  	return []SkuTier{SkuTierBurstable, SkuTierGeneralPurpose, SkuTierMemoryOptimized}
   232  }
   233  

View as plain text