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