/
constants.go
371 lines (308 loc) · 11.2 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armmysqlflexibleservers
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysqlflexibleservers"
moduleVersion = "v2.0.0-beta.2"
)
type AdministratorName string
const (
AdministratorNameActiveDirectory AdministratorName = "ActiveDirectory"
)
// PossibleAdministratorNameValues returns the possible values for the AdministratorName const type.
func PossibleAdministratorNameValues() []AdministratorName {
return []AdministratorName{
AdministratorNameActiveDirectory,
}
}
// AdministratorType - Type of the sever administrator.
type AdministratorType string
const (
AdministratorTypeActiveDirectory AdministratorType = "ActiveDirectory"
)
// PossibleAdministratorTypeValues returns the possible values for the AdministratorType const type.
func PossibleAdministratorTypeValues() []AdministratorType {
return []AdministratorType{
AdministratorTypeActiveDirectory,
}
}
// BackupFormat - Backup Format for the current backup. (CollatedFormat is INTERNAL – DO NOT USE)
type BackupFormat string
const (
BackupFormatCollatedFormat BackupFormat = "CollatedFormat"
BackupFormatNone BackupFormat = "None"
)
// PossibleBackupFormatValues returns the possible values for the BackupFormat const type.
func PossibleBackupFormatValues() []BackupFormat {
return []BackupFormat{
BackupFormatCollatedFormat,
BackupFormatNone,
}
}
// ConfigurationSource - Source of the configuration.
type ConfigurationSource string
const (
ConfigurationSourceSystemDefault ConfigurationSource = "system-default"
ConfigurationSourceUserOverride ConfigurationSource = "user-override"
)
// PossibleConfigurationSourceValues returns the possible values for the ConfigurationSource const type.
func PossibleConfigurationSourceValues() []ConfigurationSource {
return []ConfigurationSource{
ConfigurationSourceSystemDefault,
ConfigurationSourceUserOverride,
}
}
// CreateMode - The mode to create a new MySQL server.
type CreateMode string
const (
CreateModeDefault CreateMode = "Default"
CreateModeGeoRestore CreateMode = "GeoRestore"
CreateModePointInTimeRestore CreateMode = "PointInTimeRestore"
CreateModeReplica CreateMode = "Replica"
)
// PossibleCreateModeValues returns the possible values for the CreateMode const type.
func PossibleCreateModeValues() []CreateMode {
return []CreateMode{
CreateModeDefault,
CreateModeGeoRestore,
CreateModePointInTimeRestore,
CreateModeReplica,
}
}
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// DataEncryptionType - The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
type DataEncryptionType string
const (
DataEncryptionTypeAzureKeyVault DataEncryptionType = "AzureKeyVault"
DataEncryptionTypeSystemManaged DataEncryptionType = "SystemManaged"
)
// PossibleDataEncryptionTypeValues returns the possible values for the DataEncryptionType const type.
func PossibleDataEncryptionTypeValues() []DataEncryptionType {
return []DataEncryptionType{
DataEncryptionTypeAzureKeyVault,
DataEncryptionTypeSystemManaged,
}
}
// EnableStatusEnum - Enum to indicate whether value is 'Enabled' or 'Disabled'
type EnableStatusEnum string
const (
EnableStatusEnumDisabled EnableStatusEnum = "Disabled"
EnableStatusEnumEnabled EnableStatusEnum = "Enabled"
)
// PossibleEnableStatusEnumValues returns the possible values for the EnableStatusEnum const type.
func PossibleEnableStatusEnumValues() []EnableStatusEnum {
return []EnableStatusEnum{
EnableStatusEnumDisabled,
EnableStatusEnumEnabled,
}
}
// HighAvailabilityMode - High availability mode for a server.
type HighAvailabilityMode string
const (
HighAvailabilityModeDisabled HighAvailabilityMode = "Disabled"
HighAvailabilityModeSameZone HighAvailabilityMode = "SameZone"
HighAvailabilityModeZoneRedundant HighAvailabilityMode = "ZoneRedundant"
)
// PossibleHighAvailabilityModeValues returns the possible values for the HighAvailabilityMode const type.
func PossibleHighAvailabilityModeValues() []HighAvailabilityMode {
return []HighAvailabilityMode{
HighAvailabilityModeDisabled,
HighAvailabilityModeSameZone,
HighAvailabilityModeZoneRedundant,
}
}
// HighAvailabilityState - The state of server high availability.
type HighAvailabilityState string
const (
HighAvailabilityStateCreatingStandby HighAvailabilityState = "CreatingStandby"
HighAvailabilityStateFailingOver HighAvailabilityState = "FailingOver"
HighAvailabilityStateHealthy HighAvailabilityState = "Healthy"
HighAvailabilityStateNotEnabled HighAvailabilityState = "NotEnabled"
HighAvailabilityStateRemovingStandby HighAvailabilityState = "RemovingStandby"
)
// PossibleHighAvailabilityStateValues returns the possible values for the HighAvailabilityState const type.
func PossibleHighAvailabilityStateValues() []HighAvailabilityState {
return []HighAvailabilityState{
HighAvailabilityStateCreatingStandby,
HighAvailabilityStateFailingOver,
HighAvailabilityStateHealthy,
HighAvailabilityStateNotEnabled,
HighAvailabilityStateRemovingStandby,
}
}
// IsConfigPendingRestart - If is the configuration pending restart or not.
type IsConfigPendingRestart string
const (
IsConfigPendingRestartFalse IsConfigPendingRestart = "False"
IsConfigPendingRestartTrue IsConfigPendingRestart = "True"
)
// PossibleIsConfigPendingRestartValues returns the possible values for the IsConfigPendingRestart const type.
func PossibleIsConfigPendingRestartValues() []IsConfigPendingRestart {
return []IsConfigPendingRestart{
IsConfigPendingRestartFalse,
IsConfigPendingRestartTrue,
}
}
// IsDynamicConfig - If is the configuration dynamic.
type IsDynamicConfig string
const (
IsDynamicConfigFalse IsDynamicConfig = "False"
IsDynamicConfigTrue IsDynamicConfig = "True"
)
// PossibleIsDynamicConfigValues returns the possible values for the IsDynamicConfig const type.
func PossibleIsDynamicConfigValues() []IsDynamicConfig {
return []IsDynamicConfig{
IsDynamicConfigFalse,
IsDynamicConfigTrue,
}
}
// IsReadOnly - If is the configuration read only.
type IsReadOnly string
const (
IsReadOnlyFalse IsReadOnly = "False"
IsReadOnlyTrue IsReadOnly = "True"
)
// PossibleIsReadOnlyValues returns the possible values for the IsReadOnly const type.
func PossibleIsReadOnlyValues() []IsReadOnly {
return []IsReadOnly{
IsReadOnlyFalse,
IsReadOnlyTrue,
}
}
// ManagedServiceIdentityType - Type of managed service identity.
type ManagedServiceIdentityType string
const (
ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)
// PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType {
return []ManagedServiceIdentityType{
ManagedServiceIdentityTypeUserAssigned,
}
}
// OperationStatus - The operation status
type OperationStatus string
const (
// OperationStatusCancelInProgress - The cancellation in progress
OperationStatusCancelInProgress OperationStatus = "CancelInProgress"
// OperationStatusCanceled - The operation has been Canceled
OperationStatusCanceled OperationStatus = "Canceled"
// OperationStatusFailed - The operation Failed
OperationStatusFailed OperationStatus = "Failed"
// OperationStatusInProgress - The operation is running
OperationStatusInProgress OperationStatus = "InProgress"
// OperationStatusPending - The operation has been accepted but hasn't started.
OperationStatusPending OperationStatus = "Pending"
// OperationStatusSucceeded - The operation Succeeded
OperationStatusSucceeded OperationStatus = "Succeeded"
)
// PossibleOperationStatusValues returns the possible values for the OperationStatus const type.
func PossibleOperationStatusValues() []OperationStatus {
return []OperationStatus{
OperationStatusCancelInProgress,
OperationStatusCanceled,
OperationStatusFailed,
OperationStatusInProgress,
OperationStatusPending,
OperationStatusSucceeded,
}
}
// ReplicationRole - The replication role.
type ReplicationRole string
const (
ReplicationRoleNone ReplicationRole = "None"
ReplicationRoleReplica ReplicationRole = "Replica"
ReplicationRoleSource ReplicationRole = "Source"
)
// PossibleReplicationRoleValues returns the possible values for the ReplicationRole const type.
func PossibleReplicationRoleValues() []ReplicationRole {
return []ReplicationRole{
ReplicationRoleNone,
ReplicationRoleReplica,
ReplicationRoleSource,
}
}
// ResetAllToDefault - Whether to reset all server parameters to default.
type ResetAllToDefault string
const (
ResetAllToDefaultFalse ResetAllToDefault = "False"
ResetAllToDefaultTrue ResetAllToDefault = "True"
)
// PossibleResetAllToDefaultValues returns the possible values for the ResetAllToDefault const type.
func PossibleResetAllToDefaultValues() []ResetAllToDefault {
return []ResetAllToDefault{
ResetAllToDefaultFalse,
ResetAllToDefaultTrue,
}
}
// SKUTier - The tier of the particular SKU, e.g. GeneralPurpose.
type SKUTier string
const (
SKUTierBurstable SKUTier = "Burstable"
SKUTierGeneralPurpose SKUTier = "GeneralPurpose"
SKUTierMemoryOptimized SKUTier = "MemoryOptimized"
)
// PossibleSKUTierValues returns the possible values for the SKUTier const type.
func PossibleSKUTierValues() []SKUTier {
return []SKUTier{
SKUTierBurstable,
SKUTierGeneralPurpose,
SKUTierMemoryOptimized,
}
}
// ServerState - The state of a server.
type ServerState string
const (
ServerStateDisabled ServerState = "Disabled"
ServerStateDropping ServerState = "Dropping"
ServerStateReady ServerState = "Ready"
ServerStateStarting ServerState = "Starting"
ServerStateStopped ServerState = "Stopped"
ServerStateStopping ServerState = "Stopping"
ServerStateUpdating ServerState = "Updating"
)
// PossibleServerStateValues returns the possible values for the ServerState const type.
func PossibleServerStateValues() []ServerState {
return []ServerState{
ServerStateDisabled,
ServerStateDropping,
ServerStateReady,
ServerStateStarting,
ServerStateStopped,
ServerStateStopping,
ServerStateUpdating,
}
}
// ServerVersion - The version of a server.
type ServerVersion string
const (
ServerVersionEight021 ServerVersion = "8.0.21"
ServerVersionFive7 ServerVersion = "5.7"
)
// PossibleServerVersionValues returns the possible values for the ServerVersion const type.
func PossibleServerVersionValues() []ServerVersion {
return []ServerVersion{
ServerVersionEight021,
ServerVersionFive7,
}
}