-
Notifications
You must be signed in to change notification settings - Fork 82
/
maintenance_run.go
474 lines (396 loc) · 24 KB
/
maintenance_run.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Database Service API
//
// The API for the Database Service. Use this API to manage resources such as databases and DB Systems. For more information, see Overview of the Database Service (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/databaseoverview.htm).
//
package database
import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)
// MaintenanceRun Details of a maintenance run.
type MaintenanceRun struct {
// The OCID of the maintenance run.
Id *string `mandatory:"true" json:"id"`
// The OCID of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The user-friendly name for the maintenance run.
DisplayName *string `mandatory:"true" json:"displayName"`
// The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.
LifecycleState MaintenanceRunLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The date and time the maintenance run is scheduled to occur.
TimeScheduled *common.SDKTime `mandatory:"true" json:"timeScheduled"`
// Description of the maintenance run.
Description *string `mandatory:"false" json:"description"`
// Additional information about the current lifecycle state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The date and time the maintenance run starts.
TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"`
// The date and time the maintenance run was completed.
TimeEnded *common.SDKTime `mandatory:"false" json:"timeEnded"`
// The type of the target resource on which the maintenance run occurs.
TargetResourceType MaintenanceRunTargetResourceTypeEnum `mandatory:"false" json:"targetResourceType,omitempty"`
// The ID of the target resource on which the maintenance run occurs.
TargetResourceId *string `mandatory:"false" json:"targetResourceId"`
// Maintenance type.
MaintenanceType MaintenanceRunMaintenanceTypeEnum `mandatory:"false" json:"maintenanceType,omitempty"`
// The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier `ru_patch_19.9.0.0_201030` is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.
PatchId *string `mandatory:"false" json:"patchId"`
// Maintenance sub-type.
MaintenanceSubtype MaintenanceRunMaintenanceSubtypeEnum `mandatory:"false" json:"maintenanceSubtype,omitempty"`
// Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.
IsDstFileUpdateEnabled *bool `mandatory:"false" json:"isDstFileUpdateEnabled"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the maintenance run for the Autonomous Data Guard association's peer container database.
PeerMaintenanceRunId *string `mandatory:"false" json:"peerMaintenanceRunId"`
// Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.
// *IMPORTANT*: Non-rolling infrastructure patching involves system down time. See Oracle-Managed Infrastructure Maintenance Updates (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle) for more information.
PatchingMode MaintenanceRunPatchingModeEnum `mandatory:"false" json:"patchingMode,omitempty"`
// Contain the patch failure count.
PatchFailureCount *int `mandatory:"false" json:"patchFailureCount"`
// The target software version for the database server patching operation.
TargetDbServerVersion *string `mandatory:"false" json:"targetDbServerVersion"`
// The target Cell version that is to be patched to.
TargetStorageServerVersion *string `mandatory:"false" json:"targetStorageServerVersion"`
// If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.
IsCustomActionTimeoutEnabled *bool `mandatory:"false" json:"isCustomActionTimeoutEnabled"`
// Determines the amount of time the system will wait before the start of each database server patching operation.
// Specify a number of minutes, from 15 to 120.
CustomActionTimeoutInMins *int `mandatory:"false" json:"customActionTimeoutInMins"`
// Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.
CurrentCustomActionTimeoutInMins *int `mandatory:"false" json:"currentCustomActionTimeoutInMins"`
// The status of the patching operation.
PatchingStatus MaintenanceRunPatchingStatusEnum `mandatory:"false" json:"patchingStatus,omitempty"`
// The time when the patching operation started.
PatchingStartTime *common.SDKTime `mandatory:"false" json:"patchingStartTime"`
// The time when the patching operation ended.
PatchingEndTime *common.SDKTime `mandatory:"false" json:"patchingEndTime"`
EstimatedPatchingTime *EstimatedPatchingTime `mandatory:"false" json:"estimatedPatchingTime"`
// The name of the current infrastruture component that is getting patched.
CurrentPatchingComponent *string `mandatory:"false" json:"currentPatchingComponent"`
// The estimated start time of the next infrastruture component patching operation.
EstimatedComponentPatchingStartTime *common.SDKTime `mandatory:"false" json:"estimatedComponentPatchingStartTime"`
}
func (m MaintenanceRun) String() string {
return common.PointerString(m)
}
// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m MaintenanceRun) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if _, ok := GetMappingMaintenanceRunLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetMaintenanceRunLifecycleStateEnumStringValues(), ",")))
}
if _, ok := GetMappingMaintenanceRunTargetResourceTypeEnum(string(m.TargetResourceType)); !ok && m.TargetResourceType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetResourceType: %s. Supported values are: %s.", m.TargetResourceType, strings.Join(GetMaintenanceRunTargetResourceTypeEnumStringValues(), ",")))
}
if _, ok := GetMappingMaintenanceRunMaintenanceTypeEnum(string(m.MaintenanceType)); !ok && m.MaintenanceType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MaintenanceType: %s. Supported values are: %s.", m.MaintenanceType, strings.Join(GetMaintenanceRunMaintenanceTypeEnumStringValues(), ",")))
}
if _, ok := GetMappingMaintenanceRunMaintenanceSubtypeEnum(string(m.MaintenanceSubtype)); !ok && m.MaintenanceSubtype != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MaintenanceSubtype: %s. Supported values are: %s.", m.MaintenanceSubtype, strings.Join(GetMaintenanceRunMaintenanceSubtypeEnumStringValues(), ",")))
}
if _, ok := GetMappingMaintenanceRunPatchingModeEnum(string(m.PatchingMode)); !ok && m.PatchingMode != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PatchingMode: %s. Supported values are: %s.", m.PatchingMode, strings.Join(GetMaintenanceRunPatchingModeEnumStringValues(), ",")))
}
if _, ok := GetMappingMaintenanceRunPatchingStatusEnum(string(m.PatchingStatus)); !ok && m.PatchingStatus != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PatchingStatus: %s. Supported values are: %s.", m.PatchingStatus, strings.Join(GetMaintenanceRunPatchingStatusEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
// MaintenanceRunLifecycleStateEnum Enum with underlying type: string
type MaintenanceRunLifecycleStateEnum string
// Set of constants representing the allowable values for MaintenanceRunLifecycleStateEnum
const (
MaintenanceRunLifecycleStateScheduled MaintenanceRunLifecycleStateEnum = "SCHEDULED"
MaintenanceRunLifecycleStateInProgress MaintenanceRunLifecycleStateEnum = "IN_PROGRESS"
MaintenanceRunLifecycleStateSucceeded MaintenanceRunLifecycleStateEnum = "SUCCEEDED"
MaintenanceRunLifecycleStateSkipped MaintenanceRunLifecycleStateEnum = "SKIPPED"
MaintenanceRunLifecycleStateFailed MaintenanceRunLifecycleStateEnum = "FAILED"
MaintenanceRunLifecycleStateUpdating MaintenanceRunLifecycleStateEnum = "UPDATING"
MaintenanceRunLifecycleStateDeleting MaintenanceRunLifecycleStateEnum = "DELETING"
MaintenanceRunLifecycleStateDeleted MaintenanceRunLifecycleStateEnum = "DELETED"
MaintenanceRunLifecycleStateCanceled MaintenanceRunLifecycleStateEnum = "CANCELED"
)
var mappingMaintenanceRunLifecycleStateEnum = map[string]MaintenanceRunLifecycleStateEnum{
"SCHEDULED": MaintenanceRunLifecycleStateScheduled,
"IN_PROGRESS": MaintenanceRunLifecycleStateInProgress,
"SUCCEEDED": MaintenanceRunLifecycleStateSucceeded,
"SKIPPED": MaintenanceRunLifecycleStateSkipped,
"FAILED": MaintenanceRunLifecycleStateFailed,
"UPDATING": MaintenanceRunLifecycleStateUpdating,
"DELETING": MaintenanceRunLifecycleStateDeleting,
"DELETED": MaintenanceRunLifecycleStateDeleted,
"CANCELED": MaintenanceRunLifecycleStateCanceled,
}
var mappingMaintenanceRunLifecycleStateEnumLowerCase = map[string]MaintenanceRunLifecycleStateEnum{
"scheduled": MaintenanceRunLifecycleStateScheduled,
"in_progress": MaintenanceRunLifecycleStateInProgress,
"succeeded": MaintenanceRunLifecycleStateSucceeded,
"skipped": MaintenanceRunLifecycleStateSkipped,
"failed": MaintenanceRunLifecycleStateFailed,
"updating": MaintenanceRunLifecycleStateUpdating,
"deleting": MaintenanceRunLifecycleStateDeleting,
"deleted": MaintenanceRunLifecycleStateDeleted,
"canceled": MaintenanceRunLifecycleStateCanceled,
}
// GetMaintenanceRunLifecycleStateEnumValues Enumerates the set of values for MaintenanceRunLifecycleStateEnum
func GetMaintenanceRunLifecycleStateEnumValues() []MaintenanceRunLifecycleStateEnum {
values := make([]MaintenanceRunLifecycleStateEnum, 0)
for _, v := range mappingMaintenanceRunLifecycleStateEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunLifecycleStateEnumStringValues Enumerates the set of values in String for MaintenanceRunLifecycleStateEnum
func GetMaintenanceRunLifecycleStateEnumStringValues() []string {
return []string{
"SCHEDULED",
"IN_PROGRESS",
"SUCCEEDED",
"SKIPPED",
"FAILED",
"UPDATING",
"DELETING",
"DELETED",
"CANCELED",
}
}
// GetMappingMaintenanceRunLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunLifecycleStateEnum(val string) (MaintenanceRunLifecycleStateEnum, bool) {
enum, ok := mappingMaintenanceRunLifecycleStateEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MaintenanceRunTargetResourceTypeEnum Enum with underlying type: string
type MaintenanceRunTargetResourceTypeEnum string
// Set of constants representing the allowable values for MaintenanceRunTargetResourceTypeEnum
const (
MaintenanceRunTargetResourceTypeAutonomousExadataInfrastructure MaintenanceRunTargetResourceTypeEnum = "AUTONOMOUS_EXADATA_INFRASTRUCTURE"
MaintenanceRunTargetResourceTypeAutonomousContainerDatabase MaintenanceRunTargetResourceTypeEnum = "AUTONOMOUS_CONTAINER_DATABASE"
MaintenanceRunTargetResourceTypeExadataDbSystem MaintenanceRunTargetResourceTypeEnum = "EXADATA_DB_SYSTEM"
MaintenanceRunTargetResourceTypeCloudExadataInfrastructure MaintenanceRunTargetResourceTypeEnum = "CLOUD_EXADATA_INFRASTRUCTURE"
MaintenanceRunTargetResourceTypeExaccInfrastructure MaintenanceRunTargetResourceTypeEnum = "EXACC_INFRASTRUCTURE"
MaintenanceRunTargetResourceTypeAutonomousVmCluster MaintenanceRunTargetResourceTypeEnum = "AUTONOMOUS_VM_CLUSTER"
MaintenanceRunTargetResourceTypeAutonomousDatabase MaintenanceRunTargetResourceTypeEnum = "AUTONOMOUS_DATABASE"
MaintenanceRunTargetResourceTypeCloudAutonomousVmCluster MaintenanceRunTargetResourceTypeEnum = "CLOUD_AUTONOMOUS_VM_CLUSTER"
)
var mappingMaintenanceRunTargetResourceTypeEnum = map[string]MaintenanceRunTargetResourceTypeEnum{
"AUTONOMOUS_EXADATA_INFRASTRUCTURE": MaintenanceRunTargetResourceTypeAutonomousExadataInfrastructure,
"AUTONOMOUS_CONTAINER_DATABASE": MaintenanceRunTargetResourceTypeAutonomousContainerDatabase,
"EXADATA_DB_SYSTEM": MaintenanceRunTargetResourceTypeExadataDbSystem,
"CLOUD_EXADATA_INFRASTRUCTURE": MaintenanceRunTargetResourceTypeCloudExadataInfrastructure,
"EXACC_INFRASTRUCTURE": MaintenanceRunTargetResourceTypeExaccInfrastructure,
"AUTONOMOUS_VM_CLUSTER": MaintenanceRunTargetResourceTypeAutonomousVmCluster,
"AUTONOMOUS_DATABASE": MaintenanceRunTargetResourceTypeAutonomousDatabase,
"CLOUD_AUTONOMOUS_VM_CLUSTER": MaintenanceRunTargetResourceTypeCloudAutonomousVmCluster,
}
var mappingMaintenanceRunTargetResourceTypeEnumLowerCase = map[string]MaintenanceRunTargetResourceTypeEnum{
"autonomous_exadata_infrastructure": MaintenanceRunTargetResourceTypeAutonomousExadataInfrastructure,
"autonomous_container_database": MaintenanceRunTargetResourceTypeAutonomousContainerDatabase,
"exadata_db_system": MaintenanceRunTargetResourceTypeExadataDbSystem,
"cloud_exadata_infrastructure": MaintenanceRunTargetResourceTypeCloudExadataInfrastructure,
"exacc_infrastructure": MaintenanceRunTargetResourceTypeExaccInfrastructure,
"autonomous_vm_cluster": MaintenanceRunTargetResourceTypeAutonomousVmCluster,
"autonomous_database": MaintenanceRunTargetResourceTypeAutonomousDatabase,
"cloud_autonomous_vm_cluster": MaintenanceRunTargetResourceTypeCloudAutonomousVmCluster,
}
// GetMaintenanceRunTargetResourceTypeEnumValues Enumerates the set of values for MaintenanceRunTargetResourceTypeEnum
func GetMaintenanceRunTargetResourceTypeEnumValues() []MaintenanceRunTargetResourceTypeEnum {
values := make([]MaintenanceRunTargetResourceTypeEnum, 0)
for _, v := range mappingMaintenanceRunTargetResourceTypeEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunTargetResourceTypeEnumStringValues Enumerates the set of values in String for MaintenanceRunTargetResourceTypeEnum
func GetMaintenanceRunTargetResourceTypeEnumStringValues() []string {
return []string{
"AUTONOMOUS_EXADATA_INFRASTRUCTURE",
"AUTONOMOUS_CONTAINER_DATABASE",
"EXADATA_DB_SYSTEM",
"CLOUD_EXADATA_INFRASTRUCTURE",
"EXACC_INFRASTRUCTURE",
"AUTONOMOUS_VM_CLUSTER",
"AUTONOMOUS_DATABASE",
"CLOUD_AUTONOMOUS_VM_CLUSTER",
}
}
// GetMappingMaintenanceRunTargetResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunTargetResourceTypeEnum(val string) (MaintenanceRunTargetResourceTypeEnum, bool) {
enum, ok := mappingMaintenanceRunTargetResourceTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MaintenanceRunMaintenanceTypeEnum Enum with underlying type: string
type MaintenanceRunMaintenanceTypeEnum string
// Set of constants representing the allowable values for MaintenanceRunMaintenanceTypeEnum
const (
MaintenanceRunMaintenanceTypePlanned MaintenanceRunMaintenanceTypeEnum = "PLANNED"
MaintenanceRunMaintenanceTypeUnplanned MaintenanceRunMaintenanceTypeEnum = "UNPLANNED"
)
var mappingMaintenanceRunMaintenanceTypeEnum = map[string]MaintenanceRunMaintenanceTypeEnum{
"PLANNED": MaintenanceRunMaintenanceTypePlanned,
"UNPLANNED": MaintenanceRunMaintenanceTypeUnplanned,
}
var mappingMaintenanceRunMaintenanceTypeEnumLowerCase = map[string]MaintenanceRunMaintenanceTypeEnum{
"planned": MaintenanceRunMaintenanceTypePlanned,
"unplanned": MaintenanceRunMaintenanceTypeUnplanned,
}
// GetMaintenanceRunMaintenanceTypeEnumValues Enumerates the set of values for MaintenanceRunMaintenanceTypeEnum
func GetMaintenanceRunMaintenanceTypeEnumValues() []MaintenanceRunMaintenanceTypeEnum {
values := make([]MaintenanceRunMaintenanceTypeEnum, 0)
for _, v := range mappingMaintenanceRunMaintenanceTypeEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunMaintenanceTypeEnumStringValues Enumerates the set of values in String for MaintenanceRunMaintenanceTypeEnum
func GetMaintenanceRunMaintenanceTypeEnumStringValues() []string {
return []string{
"PLANNED",
"UNPLANNED",
}
}
// GetMappingMaintenanceRunMaintenanceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunMaintenanceTypeEnum(val string) (MaintenanceRunMaintenanceTypeEnum, bool) {
enum, ok := mappingMaintenanceRunMaintenanceTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MaintenanceRunMaintenanceSubtypeEnum Enum with underlying type: string
type MaintenanceRunMaintenanceSubtypeEnum string
// Set of constants representing the allowable values for MaintenanceRunMaintenanceSubtypeEnum
const (
MaintenanceRunMaintenanceSubtypeQuarterly MaintenanceRunMaintenanceSubtypeEnum = "QUARTERLY"
MaintenanceRunMaintenanceSubtypeHardware MaintenanceRunMaintenanceSubtypeEnum = "HARDWARE"
MaintenanceRunMaintenanceSubtypeCritical MaintenanceRunMaintenanceSubtypeEnum = "CRITICAL"
MaintenanceRunMaintenanceSubtypeInfrastructure MaintenanceRunMaintenanceSubtypeEnum = "INFRASTRUCTURE"
MaintenanceRunMaintenanceSubtypeDatabase MaintenanceRunMaintenanceSubtypeEnum = "DATABASE"
MaintenanceRunMaintenanceSubtypeOneoff MaintenanceRunMaintenanceSubtypeEnum = "ONEOFF"
MaintenanceRunMaintenanceSubtypeSecurityMonthly MaintenanceRunMaintenanceSubtypeEnum = "SECURITY_MONTHLY"
MaintenanceRunMaintenanceSubtypeTimezone MaintenanceRunMaintenanceSubtypeEnum = "TIMEZONE"
)
var mappingMaintenanceRunMaintenanceSubtypeEnum = map[string]MaintenanceRunMaintenanceSubtypeEnum{
"QUARTERLY": MaintenanceRunMaintenanceSubtypeQuarterly,
"HARDWARE": MaintenanceRunMaintenanceSubtypeHardware,
"CRITICAL": MaintenanceRunMaintenanceSubtypeCritical,
"INFRASTRUCTURE": MaintenanceRunMaintenanceSubtypeInfrastructure,
"DATABASE": MaintenanceRunMaintenanceSubtypeDatabase,
"ONEOFF": MaintenanceRunMaintenanceSubtypeOneoff,
"SECURITY_MONTHLY": MaintenanceRunMaintenanceSubtypeSecurityMonthly,
"TIMEZONE": MaintenanceRunMaintenanceSubtypeTimezone,
}
var mappingMaintenanceRunMaintenanceSubtypeEnumLowerCase = map[string]MaintenanceRunMaintenanceSubtypeEnum{
"quarterly": MaintenanceRunMaintenanceSubtypeQuarterly,
"hardware": MaintenanceRunMaintenanceSubtypeHardware,
"critical": MaintenanceRunMaintenanceSubtypeCritical,
"infrastructure": MaintenanceRunMaintenanceSubtypeInfrastructure,
"database": MaintenanceRunMaintenanceSubtypeDatabase,
"oneoff": MaintenanceRunMaintenanceSubtypeOneoff,
"security_monthly": MaintenanceRunMaintenanceSubtypeSecurityMonthly,
"timezone": MaintenanceRunMaintenanceSubtypeTimezone,
}
// GetMaintenanceRunMaintenanceSubtypeEnumValues Enumerates the set of values for MaintenanceRunMaintenanceSubtypeEnum
func GetMaintenanceRunMaintenanceSubtypeEnumValues() []MaintenanceRunMaintenanceSubtypeEnum {
values := make([]MaintenanceRunMaintenanceSubtypeEnum, 0)
for _, v := range mappingMaintenanceRunMaintenanceSubtypeEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunMaintenanceSubtypeEnumStringValues Enumerates the set of values in String for MaintenanceRunMaintenanceSubtypeEnum
func GetMaintenanceRunMaintenanceSubtypeEnumStringValues() []string {
return []string{
"QUARTERLY",
"HARDWARE",
"CRITICAL",
"INFRASTRUCTURE",
"DATABASE",
"ONEOFF",
"SECURITY_MONTHLY",
"TIMEZONE",
}
}
// GetMappingMaintenanceRunMaintenanceSubtypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunMaintenanceSubtypeEnum(val string) (MaintenanceRunMaintenanceSubtypeEnum, bool) {
enum, ok := mappingMaintenanceRunMaintenanceSubtypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MaintenanceRunPatchingModeEnum Enum with underlying type: string
type MaintenanceRunPatchingModeEnum string
// Set of constants representing the allowable values for MaintenanceRunPatchingModeEnum
const (
MaintenanceRunPatchingModeRolling MaintenanceRunPatchingModeEnum = "ROLLING"
MaintenanceRunPatchingModeNonrolling MaintenanceRunPatchingModeEnum = "NONROLLING"
)
var mappingMaintenanceRunPatchingModeEnum = map[string]MaintenanceRunPatchingModeEnum{
"ROLLING": MaintenanceRunPatchingModeRolling,
"NONROLLING": MaintenanceRunPatchingModeNonrolling,
}
var mappingMaintenanceRunPatchingModeEnumLowerCase = map[string]MaintenanceRunPatchingModeEnum{
"rolling": MaintenanceRunPatchingModeRolling,
"nonrolling": MaintenanceRunPatchingModeNonrolling,
}
// GetMaintenanceRunPatchingModeEnumValues Enumerates the set of values for MaintenanceRunPatchingModeEnum
func GetMaintenanceRunPatchingModeEnumValues() []MaintenanceRunPatchingModeEnum {
values := make([]MaintenanceRunPatchingModeEnum, 0)
for _, v := range mappingMaintenanceRunPatchingModeEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunPatchingModeEnumStringValues Enumerates the set of values in String for MaintenanceRunPatchingModeEnum
func GetMaintenanceRunPatchingModeEnumStringValues() []string {
return []string{
"ROLLING",
"NONROLLING",
}
}
// GetMappingMaintenanceRunPatchingModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunPatchingModeEnum(val string) (MaintenanceRunPatchingModeEnum, bool) {
enum, ok := mappingMaintenanceRunPatchingModeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// MaintenanceRunPatchingStatusEnum Enum with underlying type: string
type MaintenanceRunPatchingStatusEnum string
// Set of constants representing the allowable values for MaintenanceRunPatchingStatusEnum
const (
MaintenanceRunPatchingStatusPatching MaintenanceRunPatchingStatusEnum = "PATCHING"
MaintenanceRunPatchingStatusWaiting MaintenanceRunPatchingStatusEnum = "WAITING"
MaintenanceRunPatchingStatusScheduled MaintenanceRunPatchingStatusEnum = "SCHEDULED"
)
var mappingMaintenanceRunPatchingStatusEnum = map[string]MaintenanceRunPatchingStatusEnum{
"PATCHING": MaintenanceRunPatchingStatusPatching,
"WAITING": MaintenanceRunPatchingStatusWaiting,
"SCHEDULED": MaintenanceRunPatchingStatusScheduled,
}
var mappingMaintenanceRunPatchingStatusEnumLowerCase = map[string]MaintenanceRunPatchingStatusEnum{
"patching": MaintenanceRunPatchingStatusPatching,
"waiting": MaintenanceRunPatchingStatusWaiting,
"scheduled": MaintenanceRunPatchingStatusScheduled,
}
// GetMaintenanceRunPatchingStatusEnumValues Enumerates the set of values for MaintenanceRunPatchingStatusEnum
func GetMaintenanceRunPatchingStatusEnumValues() []MaintenanceRunPatchingStatusEnum {
values := make([]MaintenanceRunPatchingStatusEnum, 0)
for _, v := range mappingMaintenanceRunPatchingStatusEnum {
values = append(values, v)
}
return values
}
// GetMaintenanceRunPatchingStatusEnumStringValues Enumerates the set of values in String for MaintenanceRunPatchingStatusEnum
func GetMaintenanceRunPatchingStatusEnumStringValues() []string {
return []string{
"PATCHING",
"WAITING",
"SCHEDULED",
}
}
// GetMappingMaintenanceRunPatchingStatusEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingMaintenanceRunPatchingStatusEnum(val string) (MaintenanceRunPatchingStatusEnum, bool) {
enum, ok := mappingMaintenanceRunPatchingStatusEnumLowerCase[strings.ToLower(val)]
return enum, ok
}