-
Notifications
You must be signed in to change notification settings - Fork 82
/
db_system_summary.go
482 lines (391 loc) · 28 KB
/
db_system_summary.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
475
476
477
478
479
480
481
482
// 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"
)
// DbSystemSummary The Database Service supports several types of DB systems, ranging in size, price, and performance. For details about
// each type of system, see Bare Metal and Virtual Machine DB Systems (https://docs.cloud.oracle.com/Content/Database/Concepts/overview.htm).
// **Note:** Deprecated for Exadata Cloud Service instances using the new resource model (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model).
// To provision and manage new Exadata Cloud Service systems, use the
// CloudExadataInfrastructure and CloudVmCluster.
// See Exadata Cloud Service (https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm) for more information on Exadata systems.
// For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See Switching an Exadata DB System to the New Resource Model and APIs (https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem_topic-resource_model_conversion.htm) for details on converting existing Exadata DB systems to the new resource model.
// To use any of the API operations, you must be authorized in an IAM policy. If you are not authorized, talk to an administrator. If you are an administrator who needs to write policies to give users access, see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
// For information about access control and compartments, see
// Overview of the Identity Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
// For information about availability domains, see
// Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm).
// To get a list of availability domains, use the `ListAvailabilityDomains` operation
// in the Identity Service API.
// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
type DbSystemSummary struct {
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The user-friendly name for the DB system. The name does not have to be unique.
DisplayName *string `mandatory:"true" json:"displayName"`
// The name of the availability domain that the DB system is located in.
AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
// **Subnet Restrictions:**
// - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28.
// - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
// These subnets are used by the Oracle Clusterware private interconnect on the database instance.
// Specifying an overlapping subnet will cause the private interconnect to malfunction.
// This restriction applies to both the client subnet and backup subnet.
SubnetId *string `mandatory:"true" json:"subnetId"`
// The shape of the DB system. The shape determines resources to allocate to the DB system.
// - For virtual machine shapes, the number of CPU cores and memory
// - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory
Shape *string `mandatory:"true" json:"shape"`
// The public key portion of one or more key pairs used for SSH access to the DB system.
SshPublicKeys []string `mandatory:"true" json:"sshPublicKeys"`
// The hostname for the DB system.
Hostname *string `mandatory:"true" json:"hostname"`
// The domain name for the DB system.
Domain *string `mandatory:"true" json:"domain"`
// The number of CPU cores enabled on the DB system.
CpuCoreCount *int `mandatory:"true" json:"cpuCoreCount"`
// The Oracle Database edition that applies to all the databases on the DB system.
DatabaseEdition DbSystemSummaryDatabaseEditionEnum `mandatory:"true" json:"databaseEdition"`
// The current state of the DB system.
LifecycleState DbSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// List of the Fault Domains in which this DB system is provisioned.
FaultDomains []string `mandatory:"false" json:"faultDomains"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems.
// **Subnet Restriction:** See the subnet restrictions information for **subnetId**.
BackupSubnetId *string `mandatory:"false" json:"backupSubnetId"`
// The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. Setting this to an empty list removes all resources from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm).
// **NsgIds restrictions:**
// - A network security group (NSG) is optional for Autonomous Databases with private access. The nsgIds list can be empty.
NsgIds []string `mandatory:"false" json:"nsgIds"`
// A list of the OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems.
BackupNetworkNsgIds []string `mandatory:"false" json:"backupNetworkNsgIds"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`.
GiSoftwareImageId *string `mandatory:"false" json:"giSoftwareImageId"`
// Memory allocated to the DB system, in gigabytes.
MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"`
// The block storage volume performance level. Valid values are `BALANCED` and `HIGH_PERFORMANCE`. See Block Volume Performance (https://docs.cloud.oracle.com/Content/Block/Concepts/blockvolumeperformance.htm) for more information.
StorageVolumePerformanceMode DbSystemSummaryStorageVolumePerformanceModeEnum `mandatory:"false" json:"storageVolumePerformanceMode,omitempty"`
DbSystemOptions *DbSystemOptions `mandatory:"false" json:"dbSystemOptions"`
// The time zone of the DB system. For details, see DB System Time Zones (https://docs.cloud.oracle.com/Content/Database/References/timezones.htm).
TimeZone *string `mandatory:"false" json:"timeZone"`
// The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
KmsKeyId *string `mandatory:"false" json:"kmsKeyId"`
// The Oracle Database version of the DB system.
Version *string `mandatory:"false" json:"version"`
// The most recent OS Patch Version applied on the DB system.
OsVersion *string `mandatory:"false" json:"osVersion"`
// The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive.
ClusterName *string `mandatory:"false" json:"clusterName"`
// The percentage assigned to DATA storage (user data and database files).
// The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 40 and 80. The default is 80 percent assigned to DATA storage. Not applicable for virtual machine DB systems.
DataStoragePercentage *int `mandatory:"false" json:"dataStoragePercentage"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts.
LastPatchHistoryEntryId *string `mandatory:"false" json:"lastPatchHistoryEntryId"`
// The port number configured for the listener on the DB system.
ListenerPort *int `mandatory:"false" json:"listenerPort"`
// The date and time the DB system was created.
TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"`
// Additional information about the current lifecycle state.
LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"`
// The type of redundancy configured for the DB system.
// NORMAL is 2-way redundancy.
// HIGH is 3-way redundancy.
DiskRedundancy DbSystemSummaryDiskRedundancyEnum `mandatory:"false" json:"diskRedundancy,omitempty"`
// True, if Sparse Diskgroup is configured for Exadata dbsystem, False, if Sparse diskgroup was not configured.
SparseDiskgroup *bool `mandatory:"false" json:"sparseDiskgroup"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the DB system.
// SCAN IP addresses are typically used for load balancing and are not assigned to any interface.
// Oracle Clusterware directs the requests to the appropriate nodes in the cluster.
// **Note:** For a single-node DB system, this list is empty.
ScanIpIds []string `mandatory:"false" json:"scanIpIds"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system.
// The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to
// enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.
// **Note:** For a single-node DB system, this list is empty.
VipIds []string `mandatory:"false" json:"vipIds"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system.
ScanDnsRecordId *string `mandatory:"false" json:"scanDnsRecordId"`
// The FQDN of the DNS record for the SCAN IP addresses that are associated with the DB system.
ScanDnsName *string `mandatory:"false" json:"scanDnsName"`
// The OCID of the zone the DB system is associated with.
ZoneId *string `mandatory:"false" json:"zoneId"`
// The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.
DataStorageSizeInGBs *int `mandatory:"false" json:"dataStorageSizeInGBs"`
// The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.
RecoStorageSizeInGB *int `mandatory:"false" json:"recoStorageSizeInGB"`
// The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.
NodeCount *int `mandatory:"false" json:"nodeCount"`
// The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.
LicenseModel DbSystemSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"`
MaintenanceWindow *MaintenanceWindow `mandatory:"false" json:"maintenanceWindow"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last maintenance run.
LastMaintenanceRunId *string `mandatory:"false" json:"lastMaintenanceRunId"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the next maintenance run.
NextMaintenanceRunId *string `mandatory:"false" json:"nextMaintenanceRunId"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
SourceDbSystemId *string `mandatory:"false" json:"sourceDbSystemId"`
// The point in time for a cloned database system when the data disks were cloned from the source database system, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339).
PointInTimeDataDiskCloneTimestamp *common.SDKTime `mandatory:"false" json:"pointInTimeDataDiskCloneTimestamp"`
DataCollectionOptions *DataCollectionOptions `mandatory:"false" json:"dataCollectionOptions"`
}
func (m DbSystemSummary) 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 DbSystemSummary) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if _, ok := GetMappingDbSystemSummaryDatabaseEditionEnum(string(m.DatabaseEdition)); !ok && m.DatabaseEdition != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DatabaseEdition: %s. Supported values are: %s.", m.DatabaseEdition, strings.Join(GetDbSystemSummaryDatabaseEditionEnumStringValues(), ",")))
}
if _, ok := GetMappingDbSystemSummaryLifecycleStateEnum(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(GetDbSystemSummaryLifecycleStateEnumStringValues(), ",")))
}
if _, ok := GetMappingDbSystemSummaryStorageVolumePerformanceModeEnum(string(m.StorageVolumePerformanceMode)); !ok && m.StorageVolumePerformanceMode != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for StorageVolumePerformanceMode: %s. Supported values are: %s.", m.StorageVolumePerformanceMode, strings.Join(GetDbSystemSummaryStorageVolumePerformanceModeEnumStringValues(), ",")))
}
if _, ok := GetMappingDbSystemSummaryDiskRedundancyEnum(string(m.DiskRedundancy)); !ok && m.DiskRedundancy != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DiskRedundancy: %s. Supported values are: %s.", m.DiskRedundancy, strings.Join(GetDbSystemSummaryDiskRedundancyEnumStringValues(), ",")))
}
if _, ok := GetMappingDbSystemSummaryLicenseModelEnum(string(m.LicenseModel)); !ok && m.LicenseModel != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LicenseModel: %s. Supported values are: %s.", m.LicenseModel, strings.Join(GetDbSystemSummaryLicenseModelEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}
// DbSystemSummaryStorageVolumePerformanceModeEnum Enum with underlying type: string
type DbSystemSummaryStorageVolumePerformanceModeEnum string
// Set of constants representing the allowable values for DbSystemSummaryStorageVolumePerformanceModeEnum
const (
DbSystemSummaryStorageVolumePerformanceModeBalanced DbSystemSummaryStorageVolumePerformanceModeEnum = "BALANCED"
DbSystemSummaryStorageVolumePerformanceModeHighPerformance DbSystemSummaryStorageVolumePerformanceModeEnum = "HIGH_PERFORMANCE"
)
var mappingDbSystemSummaryStorageVolumePerformanceModeEnum = map[string]DbSystemSummaryStorageVolumePerformanceModeEnum{
"BALANCED": DbSystemSummaryStorageVolumePerformanceModeBalanced,
"HIGH_PERFORMANCE": DbSystemSummaryStorageVolumePerformanceModeHighPerformance,
}
var mappingDbSystemSummaryStorageVolumePerformanceModeEnumLowerCase = map[string]DbSystemSummaryStorageVolumePerformanceModeEnum{
"balanced": DbSystemSummaryStorageVolumePerformanceModeBalanced,
"high_performance": DbSystemSummaryStorageVolumePerformanceModeHighPerformance,
}
// GetDbSystemSummaryStorageVolumePerformanceModeEnumValues Enumerates the set of values for DbSystemSummaryStorageVolumePerformanceModeEnum
func GetDbSystemSummaryStorageVolumePerformanceModeEnumValues() []DbSystemSummaryStorageVolumePerformanceModeEnum {
values := make([]DbSystemSummaryStorageVolumePerformanceModeEnum, 0)
for _, v := range mappingDbSystemSummaryStorageVolumePerformanceModeEnum {
values = append(values, v)
}
return values
}
// GetDbSystemSummaryStorageVolumePerformanceModeEnumStringValues Enumerates the set of values in String for DbSystemSummaryStorageVolumePerformanceModeEnum
func GetDbSystemSummaryStorageVolumePerformanceModeEnumStringValues() []string {
return []string{
"BALANCED",
"HIGH_PERFORMANCE",
}
}
// GetMappingDbSystemSummaryStorageVolumePerformanceModeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDbSystemSummaryStorageVolumePerformanceModeEnum(val string) (DbSystemSummaryStorageVolumePerformanceModeEnum, bool) {
enum, ok := mappingDbSystemSummaryStorageVolumePerformanceModeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// DbSystemSummaryDatabaseEditionEnum Enum with underlying type: string
type DbSystemSummaryDatabaseEditionEnum string
// Set of constants representing the allowable values for DbSystemSummaryDatabaseEditionEnum
const (
DbSystemSummaryDatabaseEditionStandardEdition DbSystemSummaryDatabaseEditionEnum = "STANDARD_EDITION"
DbSystemSummaryDatabaseEditionEnterpriseEdition DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION"
DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_HIGH_PERFORMANCE"
DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance DbSystemSummaryDatabaseEditionEnum = "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"
)
var mappingDbSystemSummaryDatabaseEditionEnum = map[string]DbSystemSummaryDatabaseEditionEnum{
"STANDARD_EDITION": DbSystemSummaryDatabaseEditionStandardEdition,
"ENTERPRISE_EDITION": DbSystemSummaryDatabaseEditionEnterpriseEdition,
"ENTERPRISE_EDITION_HIGH_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance,
"ENTERPRISE_EDITION_EXTREME_PERFORMANCE": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance,
}
var mappingDbSystemSummaryDatabaseEditionEnumLowerCase = map[string]DbSystemSummaryDatabaseEditionEnum{
"standard_edition": DbSystemSummaryDatabaseEditionStandardEdition,
"enterprise_edition": DbSystemSummaryDatabaseEditionEnterpriseEdition,
"enterprise_edition_high_performance": DbSystemSummaryDatabaseEditionEnterpriseEditionHighPerformance,
"enterprise_edition_extreme_performance": DbSystemSummaryDatabaseEditionEnterpriseEditionExtremePerformance,
}
// GetDbSystemSummaryDatabaseEditionEnumValues Enumerates the set of values for DbSystemSummaryDatabaseEditionEnum
func GetDbSystemSummaryDatabaseEditionEnumValues() []DbSystemSummaryDatabaseEditionEnum {
values := make([]DbSystemSummaryDatabaseEditionEnum, 0)
for _, v := range mappingDbSystemSummaryDatabaseEditionEnum {
values = append(values, v)
}
return values
}
// GetDbSystemSummaryDatabaseEditionEnumStringValues Enumerates the set of values in String for DbSystemSummaryDatabaseEditionEnum
func GetDbSystemSummaryDatabaseEditionEnumStringValues() []string {
return []string{
"STANDARD_EDITION",
"ENTERPRISE_EDITION",
"ENTERPRISE_EDITION_HIGH_PERFORMANCE",
"ENTERPRISE_EDITION_EXTREME_PERFORMANCE",
}
}
// GetMappingDbSystemSummaryDatabaseEditionEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDbSystemSummaryDatabaseEditionEnum(val string) (DbSystemSummaryDatabaseEditionEnum, bool) {
enum, ok := mappingDbSystemSummaryDatabaseEditionEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// DbSystemSummaryLifecycleStateEnum Enum with underlying type: string
type DbSystemSummaryLifecycleStateEnum string
// Set of constants representing the allowable values for DbSystemSummaryLifecycleStateEnum
const (
DbSystemSummaryLifecycleStateProvisioning DbSystemSummaryLifecycleStateEnum = "PROVISIONING"
DbSystemSummaryLifecycleStateAvailable DbSystemSummaryLifecycleStateEnum = "AVAILABLE"
DbSystemSummaryLifecycleStateUpdating DbSystemSummaryLifecycleStateEnum = "UPDATING"
DbSystemSummaryLifecycleStateTerminating DbSystemSummaryLifecycleStateEnum = "TERMINATING"
DbSystemSummaryLifecycleStateTerminated DbSystemSummaryLifecycleStateEnum = "TERMINATED"
DbSystemSummaryLifecycleStateFailed DbSystemSummaryLifecycleStateEnum = "FAILED"
DbSystemSummaryLifecycleStateMigrated DbSystemSummaryLifecycleStateEnum = "MIGRATED"
DbSystemSummaryLifecycleStateMaintenanceInProgress DbSystemSummaryLifecycleStateEnum = "MAINTENANCE_IN_PROGRESS"
DbSystemSummaryLifecycleStateNeedsAttention DbSystemSummaryLifecycleStateEnum = "NEEDS_ATTENTION"
DbSystemSummaryLifecycleStateUpgrading DbSystemSummaryLifecycleStateEnum = "UPGRADING"
)
var mappingDbSystemSummaryLifecycleStateEnum = map[string]DbSystemSummaryLifecycleStateEnum{
"PROVISIONING": DbSystemSummaryLifecycleStateProvisioning,
"AVAILABLE": DbSystemSummaryLifecycleStateAvailable,
"UPDATING": DbSystemSummaryLifecycleStateUpdating,
"TERMINATING": DbSystemSummaryLifecycleStateTerminating,
"TERMINATED": DbSystemSummaryLifecycleStateTerminated,
"FAILED": DbSystemSummaryLifecycleStateFailed,
"MIGRATED": DbSystemSummaryLifecycleStateMigrated,
"MAINTENANCE_IN_PROGRESS": DbSystemSummaryLifecycleStateMaintenanceInProgress,
"NEEDS_ATTENTION": DbSystemSummaryLifecycleStateNeedsAttention,
"UPGRADING": DbSystemSummaryLifecycleStateUpgrading,
}
var mappingDbSystemSummaryLifecycleStateEnumLowerCase = map[string]DbSystemSummaryLifecycleStateEnum{
"provisioning": DbSystemSummaryLifecycleStateProvisioning,
"available": DbSystemSummaryLifecycleStateAvailable,
"updating": DbSystemSummaryLifecycleStateUpdating,
"terminating": DbSystemSummaryLifecycleStateTerminating,
"terminated": DbSystemSummaryLifecycleStateTerminated,
"failed": DbSystemSummaryLifecycleStateFailed,
"migrated": DbSystemSummaryLifecycleStateMigrated,
"maintenance_in_progress": DbSystemSummaryLifecycleStateMaintenanceInProgress,
"needs_attention": DbSystemSummaryLifecycleStateNeedsAttention,
"upgrading": DbSystemSummaryLifecycleStateUpgrading,
}
// GetDbSystemSummaryLifecycleStateEnumValues Enumerates the set of values for DbSystemSummaryLifecycleStateEnum
func GetDbSystemSummaryLifecycleStateEnumValues() []DbSystemSummaryLifecycleStateEnum {
values := make([]DbSystemSummaryLifecycleStateEnum, 0)
for _, v := range mappingDbSystemSummaryLifecycleStateEnum {
values = append(values, v)
}
return values
}
// GetDbSystemSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for DbSystemSummaryLifecycleStateEnum
func GetDbSystemSummaryLifecycleStateEnumStringValues() []string {
return []string{
"PROVISIONING",
"AVAILABLE",
"UPDATING",
"TERMINATING",
"TERMINATED",
"FAILED",
"MIGRATED",
"MAINTENANCE_IN_PROGRESS",
"NEEDS_ATTENTION",
"UPGRADING",
}
}
// GetMappingDbSystemSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDbSystemSummaryLifecycleStateEnum(val string) (DbSystemSummaryLifecycleStateEnum, bool) {
enum, ok := mappingDbSystemSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// DbSystemSummaryDiskRedundancyEnum Enum with underlying type: string
type DbSystemSummaryDiskRedundancyEnum string
// Set of constants representing the allowable values for DbSystemSummaryDiskRedundancyEnum
const (
DbSystemSummaryDiskRedundancyHigh DbSystemSummaryDiskRedundancyEnum = "HIGH"
DbSystemSummaryDiskRedundancyNormal DbSystemSummaryDiskRedundancyEnum = "NORMAL"
)
var mappingDbSystemSummaryDiskRedundancyEnum = map[string]DbSystemSummaryDiskRedundancyEnum{
"HIGH": DbSystemSummaryDiskRedundancyHigh,
"NORMAL": DbSystemSummaryDiskRedundancyNormal,
}
var mappingDbSystemSummaryDiskRedundancyEnumLowerCase = map[string]DbSystemSummaryDiskRedundancyEnum{
"high": DbSystemSummaryDiskRedundancyHigh,
"normal": DbSystemSummaryDiskRedundancyNormal,
}
// GetDbSystemSummaryDiskRedundancyEnumValues Enumerates the set of values for DbSystemSummaryDiskRedundancyEnum
func GetDbSystemSummaryDiskRedundancyEnumValues() []DbSystemSummaryDiskRedundancyEnum {
values := make([]DbSystemSummaryDiskRedundancyEnum, 0)
for _, v := range mappingDbSystemSummaryDiskRedundancyEnum {
values = append(values, v)
}
return values
}
// GetDbSystemSummaryDiskRedundancyEnumStringValues Enumerates the set of values in String for DbSystemSummaryDiskRedundancyEnum
func GetDbSystemSummaryDiskRedundancyEnumStringValues() []string {
return []string{
"HIGH",
"NORMAL",
}
}
// GetMappingDbSystemSummaryDiskRedundancyEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDbSystemSummaryDiskRedundancyEnum(val string) (DbSystemSummaryDiskRedundancyEnum, bool) {
enum, ok := mappingDbSystemSummaryDiskRedundancyEnumLowerCase[strings.ToLower(val)]
return enum, ok
}
// DbSystemSummaryLicenseModelEnum Enum with underlying type: string
type DbSystemSummaryLicenseModelEnum string
// Set of constants representing the allowable values for DbSystemSummaryLicenseModelEnum
const (
DbSystemSummaryLicenseModelLicenseIncluded DbSystemSummaryLicenseModelEnum = "LICENSE_INCLUDED"
DbSystemSummaryLicenseModelBringYourOwnLicense DbSystemSummaryLicenseModelEnum = "BRING_YOUR_OWN_LICENSE"
)
var mappingDbSystemSummaryLicenseModelEnum = map[string]DbSystemSummaryLicenseModelEnum{
"LICENSE_INCLUDED": DbSystemSummaryLicenseModelLicenseIncluded,
"BRING_YOUR_OWN_LICENSE": DbSystemSummaryLicenseModelBringYourOwnLicense,
}
var mappingDbSystemSummaryLicenseModelEnumLowerCase = map[string]DbSystemSummaryLicenseModelEnum{
"license_included": DbSystemSummaryLicenseModelLicenseIncluded,
"bring_your_own_license": DbSystemSummaryLicenseModelBringYourOwnLicense,
}
// GetDbSystemSummaryLicenseModelEnumValues Enumerates the set of values for DbSystemSummaryLicenseModelEnum
func GetDbSystemSummaryLicenseModelEnumValues() []DbSystemSummaryLicenseModelEnum {
values := make([]DbSystemSummaryLicenseModelEnum, 0)
for _, v := range mappingDbSystemSummaryLicenseModelEnum {
values = append(values, v)
}
return values
}
// GetDbSystemSummaryLicenseModelEnumStringValues Enumerates the set of values in String for DbSystemSummaryLicenseModelEnum
func GetDbSystemSummaryLicenseModelEnumStringValues() []string {
return []string{
"LICENSE_INCLUDED",
"BRING_YOUR_OWN_LICENSE",
}
}
// GetMappingDbSystemSummaryLicenseModelEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDbSystemSummaryLicenseModelEnum(val string) (DbSystemSummaryLicenseModelEnum, bool) {
enum, ok := mappingDbSystemSummaryLicenseModelEnumLowerCase[strings.ToLower(val)]
return enum, ok
}