...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2020-07-01-preview/mysqlflexibleservers/enums.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/mysql/mgmt/2020-07-01-preview/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  // CreateMode enumerates the values for create mode.
    10  type CreateMode string
    11  
    12  const (
    13  	// Default ...
    14  	Default CreateMode = "Default"
    15  	// PointInTimeRestore ...
    16  	PointInTimeRestore CreateMode = "PointInTimeRestore"
    17  	// Replica ...
    18  	Replica CreateMode = "Replica"
    19  )
    20  
    21  // PossibleCreateModeValues returns an array of possible values for the CreateMode const type.
    22  func PossibleCreateModeValues() []CreateMode {
    23  	return []CreateMode{Default, PointInTimeRestore, Replica}
    24  }
    25  
    26  // HaEnabledEnum enumerates the values for ha enabled enum.
    27  type HaEnabledEnum string
    28  
    29  const (
    30  	// Disabled ...
    31  	Disabled HaEnabledEnum = "Disabled"
    32  	// Enabled ...
    33  	Enabled HaEnabledEnum = "Enabled"
    34  )
    35  
    36  // PossibleHaEnabledEnumValues returns an array of possible values for the HaEnabledEnum const type.
    37  func PossibleHaEnabledEnumValues() []HaEnabledEnum {
    38  	return []HaEnabledEnum{Disabled, Enabled}
    39  }
    40  
    41  // InfrastructureEncryptionEnum enumerates the values for infrastructure encryption enum.
    42  type InfrastructureEncryptionEnum string
    43  
    44  const (
    45  	// InfrastructureEncryptionEnumDisabled ...
    46  	InfrastructureEncryptionEnumDisabled InfrastructureEncryptionEnum = "Disabled"
    47  	// InfrastructureEncryptionEnumEnabled ...
    48  	InfrastructureEncryptionEnumEnabled InfrastructureEncryptionEnum = "Enabled"
    49  )
    50  
    51  // PossibleInfrastructureEncryptionEnumValues returns an array of possible values for the InfrastructureEncryptionEnum const type.
    52  func PossibleInfrastructureEncryptionEnumValues() []InfrastructureEncryptionEnum {
    53  	return []InfrastructureEncryptionEnum{InfrastructureEncryptionEnumDisabled, InfrastructureEncryptionEnumEnabled}
    54  }
    55  
    56  // IsConfigPendingRestart enumerates the values for is config pending restart.
    57  type IsConfigPendingRestart string
    58  
    59  const (
    60  	// False ...
    61  	False IsConfigPendingRestart = "False"
    62  	// True ...
    63  	True IsConfigPendingRestart = "True"
    64  )
    65  
    66  // PossibleIsConfigPendingRestartValues returns an array of possible values for the IsConfigPendingRestart const type.
    67  func PossibleIsConfigPendingRestartValues() []IsConfigPendingRestart {
    68  	return []IsConfigPendingRestart{False, True}
    69  }
    70  
    71  // IsDynamicConfig enumerates the values for is dynamic config.
    72  type IsDynamicConfig string
    73  
    74  const (
    75  	// IsDynamicConfigFalse ...
    76  	IsDynamicConfigFalse IsDynamicConfig = "False"
    77  	// IsDynamicConfigTrue ...
    78  	IsDynamicConfigTrue IsDynamicConfig = "True"
    79  )
    80  
    81  // PossibleIsDynamicConfigValues returns an array of possible values for the IsDynamicConfig const type.
    82  func PossibleIsDynamicConfigValues() []IsDynamicConfig {
    83  	return []IsDynamicConfig{IsDynamicConfigFalse, IsDynamicConfigTrue}
    84  }
    85  
    86  // IsReadOnly enumerates the values for is read only.
    87  type IsReadOnly string
    88  
    89  const (
    90  	// IsReadOnlyFalse ...
    91  	IsReadOnlyFalse IsReadOnly = "False"
    92  	// IsReadOnlyTrue ...
    93  	IsReadOnlyTrue IsReadOnly = "True"
    94  )
    95  
    96  // PossibleIsReadOnlyValues returns an array of possible values for the IsReadOnly const type.
    97  func PossibleIsReadOnlyValues() []IsReadOnly {
    98  	return []IsReadOnly{IsReadOnlyFalse, IsReadOnlyTrue}
    99  }
   100  
   101  // OperationOrigin enumerates the values for operation origin.
   102  type OperationOrigin string
   103  
   104  const (
   105  	// NotSpecified ...
   106  	NotSpecified OperationOrigin = "NotSpecified"
   107  	// System ...
   108  	System OperationOrigin = "system"
   109  	// User ...
   110  	User OperationOrigin = "user"
   111  )
   112  
   113  // PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.
   114  func PossibleOperationOriginValues() []OperationOrigin {
   115  	return []OperationOrigin{NotSpecified, System, User}
   116  }
   117  
   118  // PublicNetworkAccessEnum enumerates the values for public network access enum.
   119  type PublicNetworkAccessEnum string
   120  
   121  const (
   122  	// PublicNetworkAccessEnumDisabled ...
   123  	PublicNetworkAccessEnumDisabled PublicNetworkAccessEnum = "Disabled"
   124  	// PublicNetworkAccessEnumEnabled ...
   125  	PublicNetworkAccessEnumEnabled PublicNetworkAccessEnum = "Enabled"
   126  )
   127  
   128  // PossiblePublicNetworkAccessEnumValues returns an array of possible values for the PublicNetworkAccessEnum const type.
   129  func PossiblePublicNetworkAccessEnumValues() []PublicNetworkAccessEnum {
   130  	return []PublicNetworkAccessEnum{PublicNetworkAccessEnumDisabled, PublicNetworkAccessEnumEnabled}
   131  }
   132  
   133  // ResourceIdentityType enumerates the values for resource identity type.
   134  type ResourceIdentityType string
   135  
   136  const (
   137  	// SystemAssigned ...
   138  	SystemAssigned ResourceIdentityType = "SystemAssigned"
   139  )
   140  
   141  // PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
   142  func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
   143  	return []ResourceIdentityType{SystemAssigned}
   144  }
   145  
   146  // ServerHAState enumerates the values for server ha state.
   147  type ServerHAState string
   148  
   149  const (
   150  	// CreatingStandby ...
   151  	CreatingStandby ServerHAState = "CreatingStandby"
   152  	// FailingOver ...
   153  	FailingOver ServerHAState = "FailingOver"
   154  	// Healthy ...
   155  	Healthy ServerHAState = "Healthy"
   156  	// NotEnabled ...
   157  	NotEnabled ServerHAState = "NotEnabled"
   158  	// RemovingStandby ...
   159  	RemovingStandby ServerHAState = "RemovingStandby"
   160  	// ReplicatingData ...
   161  	ReplicatingData ServerHAState = "ReplicatingData"
   162  )
   163  
   164  // PossibleServerHAStateValues returns an array of possible values for the ServerHAState const type.
   165  func PossibleServerHAStateValues() []ServerHAState {
   166  	return []ServerHAState{CreatingStandby, FailingOver, Healthy, NotEnabled, RemovingStandby, ReplicatingData}
   167  }
   168  
   169  // ServerState enumerates the values for server state.
   170  type ServerState string
   171  
   172  const (
   173  	// ServerStateDisabled ...
   174  	ServerStateDisabled ServerState = "Disabled"
   175  	// ServerStateDropping ...
   176  	ServerStateDropping ServerState = "Dropping"
   177  	// ServerStateReady ...
   178  	ServerStateReady ServerState = "Ready"
   179  	// ServerStateStarting ...
   180  	ServerStateStarting ServerState = "Starting"
   181  	// ServerStateStopped ...
   182  	ServerStateStopped ServerState = "Stopped"
   183  	// ServerStateStopping ...
   184  	ServerStateStopping ServerState = "Stopping"
   185  	// ServerStateUpdating ...
   186  	ServerStateUpdating ServerState = "Updating"
   187  )
   188  
   189  // PossibleServerStateValues returns an array of possible values for the ServerState const type.
   190  func PossibleServerStateValues() []ServerState {
   191  	return []ServerState{ServerStateDisabled, ServerStateDropping, ServerStateReady, ServerStateStarting, ServerStateStopped, ServerStateStopping, ServerStateUpdating}
   192  }
   193  
   194  // ServerVersion enumerates the values for server version.
   195  type ServerVersion string
   196  
   197  const (
   198  	// FiveFullStopSeven ...
   199  	FiveFullStopSeven ServerVersion = "5.7"
   200  )
   201  
   202  // PossibleServerVersionValues returns an array of possible values for the ServerVersion const type.
   203  func PossibleServerVersionValues() []ServerVersion {
   204  	return []ServerVersion{FiveFullStopSeven}
   205  }
   206  
   207  // SkuTier enumerates the values for sku tier.
   208  type SkuTier string
   209  
   210  const (
   211  	// Burstable ...
   212  	Burstable SkuTier = "Burstable"
   213  	// GeneralPurpose ...
   214  	GeneralPurpose SkuTier = "GeneralPurpose"
   215  	// MemoryOptimized ...
   216  	MemoryOptimized SkuTier = "MemoryOptimized"
   217  )
   218  
   219  // PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
   220  func PossibleSkuTierValues() []SkuTier {
   221  	return []SkuTier{Burstable, GeneralPurpose, MemoryOptimized}
   222  }
   223  
   224  // SslEnforcementEnum enumerates the values for ssl enforcement enum.
   225  type SslEnforcementEnum string
   226  
   227  const (
   228  	// SslEnforcementEnumDisabled ...
   229  	SslEnforcementEnumDisabled SslEnforcementEnum = "Disabled"
   230  	// SslEnforcementEnumEnabled ...
   231  	SslEnforcementEnumEnabled SslEnforcementEnum = "Enabled"
   232  )
   233  
   234  // PossibleSslEnforcementEnumValues returns an array of possible values for the SslEnforcementEnum const type.
   235  func PossibleSslEnforcementEnumValues() []SslEnforcementEnum {
   236  	return []SslEnforcementEnum{SslEnforcementEnumDisabled, SslEnforcementEnumEnabled}
   237  }
   238  
   239  // StorageAutogrow enumerates the values for storage autogrow.
   240  type StorageAutogrow string
   241  
   242  const (
   243  	// StorageAutogrowDisabled ...
   244  	StorageAutogrowDisabled StorageAutogrow = "Disabled"
   245  	// StorageAutogrowEnabled ...
   246  	StorageAutogrowEnabled StorageAutogrow = "Enabled"
   247  )
   248  
   249  // PossibleStorageAutogrowValues returns an array of possible values for the StorageAutogrow const type.
   250  func PossibleStorageAutogrowValues() []StorageAutogrow {
   251  	return []StorageAutogrow{StorageAutogrowDisabled, StorageAutogrowEnabled}
   252  }
   253  

View as plain text