forked from oracle/oci-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_node.go
119 lines (93 loc) · 5.02 KB
/
db_node.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
// Copyright (c) 2016, 2018, 2020, 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 (
"github.com/oracle/oci-go-sdk/common"
)
// DbNode The representation of DbNode
type DbNode struct {
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the database node.
Id *string `mandatory:"true" json:"id"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
DbSystemId *string `mandatory:"true" json:"dbSystemId"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VNIC.
VnicId *string `mandatory:"true" json:"vnicId"`
// The current state of the database node.
LifecycleState DbNodeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The date and time that the database node was created.
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the backup VNIC.
BackupVnicId *string `mandatory:"false" json:"backupVnicId"`
// The host name for the database node.
Hostname *string `mandatory:"false" json:"hostname"`
// The name of the Fault Domain the instance is contained in.
FaultDomain *string `mandatory:"false" json:"faultDomain"`
// The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
SoftwareStorageSizeInGB *int `mandatory:"false" json:"softwareStorageSizeInGB"`
// The type of database node maintenance.
MaintenanceType DbNodeMaintenanceTypeEnum `mandatory:"false" json:"maintenanceType,omitempty"`
// Start date and time of maintenance window.
TimeMaintenanceWindowStart *common.SDKTime `mandatory:"false" json:"timeMaintenanceWindowStart"`
// End date and time of maintenance window.
TimeMaintenanceWindowEnd *common.SDKTime `mandatory:"false" json:"timeMaintenanceWindowEnd"`
// Additional information about the planned maintenance.
AdditionalDetails *string `mandatory:"false" json:"additionalDetails"`
}
func (m DbNode) String() string {
return common.PointerString(m)
}
// DbNodeLifecycleStateEnum Enum with underlying type: string
type DbNodeLifecycleStateEnum string
// Set of constants representing the allowable values for DbNodeLifecycleStateEnum
const (
DbNodeLifecycleStateProvisioning DbNodeLifecycleStateEnum = "PROVISIONING"
DbNodeLifecycleStateAvailable DbNodeLifecycleStateEnum = "AVAILABLE"
DbNodeLifecycleStateUpdating DbNodeLifecycleStateEnum = "UPDATING"
DbNodeLifecycleStateStopping DbNodeLifecycleStateEnum = "STOPPING"
DbNodeLifecycleStateStopped DbNodeLifecycleStateEnum = "STOPPED"
DbNodeLifecycleStateStarting DbNodeLifecycleStateEnum = "STARTING"
DbNodeLifecycleStateTerminating DbNodeLifecycleStateEnum = "TERMINATING"
DbNodeLifecycleStateTerminated DbNodeLifecycleStateEnum = "TERMINATED"
DbNodeLifecycleStateFailed DbNodeLifecycleStateEnum = "FAILED"
)
var mappingDbNodeLifecycleState = map[string]DbNodeLifecycleStateEnum{
"PROVISIONING": DbNodeLifecycleStateProvisioning,
"AVAILABLE": DbNodeLifecycleStateAvailable,
"UPDATING": DbNodeLifecycleStateUpdating,
"STOPPING": DbNodeLifecycleStateStopping,
"STOPPED": DbNodeLifecycleStateStopped,
"STARTING": DbNodeLifecycleStateStarting,
"TERMINATING": DbNodeLifecycleStateTerminating,
"TERMINATED": DbNodeLifecycleStateTerminated,
"FAILED": DbNodeLifecycleStateFailed,
}
// GetDbNodeLifecycleStateEnumValues Enumerates the set of values for DbNodeLifecycleStateEnum
func GetDbNodeLifecycleStateEnumValues() []DbNodeLifecycleStateEnum {
values := make([]DbNodeLifecycleStateEnum, 0)
for _, v := range mappingDbNodeLifecycleState {
values = append(values, v)
}
return values
}
// DbNodeMaintenanceTypeEnum Enum with underlying type: string
type DbNodeMaintenanceTypeEnum string
// Set of constants representing the allowable values for DbNodeMaintenanceTypeEnum
const (
DbNodeMaintenanceTypeVmdbRebootMigration DbNodeMaintenanceTypeEnum = "VMDB_REBOOT_MIGRATION"
)
var mappingDbNodeMaintenanceType = map[string]DbNodeMaintenanceTypeEnum{
"VMDB_REBOOT_MIGRATION": DbNodeMaintenanceTypeVmdbRebootMigration,
}
// GetDbNodeMaintenanceTypeEnumValues Enumerates the set of values for DbNodeMaintenanceTypeEnum
func GetDbNodeMaintenanceTypeEnumValues() []DbNodeMaintenanceTypeEnum {
values := make([]DbNodeMaintenanceTypeEnum, 0)
for _, v := range mappingDbNodeMaintenanceType {
values = append(values, v)
}
return values
}