oci 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +21 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +18 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -0
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +3 -0
- data/lib/oci/core/models/cross_connect_mapping.rb +8 -8
- data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
- data/lib/oci/core/models/drg_attachment.rb +4 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +5 -1
- data/lib/oci/core/models/launch_instance_details.rb +18 -4
- data/lib/oci/core/models/launch_options.rb +18 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -1
- data/lib/oci/core/models/paravirtualized_volume_attachment.rb +8 -4
- data/lib/oci/core/models/service.rb +1 -1
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -1
- data/lib/oci/core/models/volume_attachment.rb +18 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse.rb +132 -137
- data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +133 -133
- data/lib/oci/database/models/autonomous_database.rb +132 -137
- data/lib/oci/database/models/autonomous_database_backup.rb +77 -83
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +77 -77
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +22 -22
- data/lib/oci/database/models/autonomous_database_summary.rb +133 -133
- data/lib/oci/database/models/backup.rb +102 -109
- data/lib/oci/database/models/backup_summary.rb +101 -101
- data/lib/oci/database/models/complete_external_backup_job_details.rb +39 -39
- data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +52 -52
- data/lib/oci/database/models/create_autonomous_database_backup_details.rb +18 -18
- data/lib/oci/database/models/create_autonomous_database_details.rb +52 -52
- data/lib/oci/database/models/create_data_guard_association_details.rb +22 -22
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +5 -5
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +218 -0
- data/lib/oci/database/models/create_database_details.rb +62 -62
- data/lib/oci/database/models/create_database_from_backup_details.rb +18 -18
- data/lib/oci/database/models/create_db_home_details.rb +21 -21
- data/lib/oci/database/models/create_db_home_from_backup_details.rb +14 -14
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +14 -14
- data/lib/oci/database/models/create_external_backup_job_details.rb +80 -80
- data/lib/oci/database/models/data_guard_association.rb +132 -144
- data/lib/oci/database/models/data_guard_association_summary.rb +131 -131
- data/lib/oci/database/models/database.rb +100 -108
- data/lib/oci/database/models/database_summary.rb +99 -99
- data/lib/oci/database/models/db_home.rb +39 -51
- data/lib/oci/database/models/db_home_summary.rb +39 -39
- data/lib/oci/database/models/db_node.rb +50 -58
- data/lib/oci/database/models/db_node_summary.rb +49 -49
- data/lib/oci/database/models/db_system.rb +295 -300
- data/lib/oci/database/models/db_system_shape_summary.rb +46 -46
- data/lib/oci/database/models/db_system_summary.rb +295 -280
- data/lib/oci/database/models/db_version_summary.rb +28 -14
- data/lib/oci/database/models/external_backup_job.rb +34 -34
- data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
- data/lib/oci/database/models/launch_db_system_base.rb +160 -145
- data/lib/oci/database/models/launch_db_system_details.rb +59 -55
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +59 -55
- data/lib/oci/database/models/patch.rb +45 -53
- data/lib/oci/database/models/patch_details.rb +14 -14
- data/lib/oci/database/models/patch_history_entry.rb +48 -51
- data/lib/oci/database/models/patch_history_entry_summary.rb +47 -47
- data/lib/oci/database/models/patch_summary.rb +44 -44
- data/lib/oci/database/models/restore_database_details.rb +15 -15
- data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +36 -36
- data/lib/oci/database/models/update_autonomous_database_details.rb +36 -36
- data/lib/oci/database/models/update_database_details.rb +22 -22
- data/lib/oci/database/models/update_db_system_details.rb +38 -38
- data/lib/oci/dns/dns.rb +1 -0
- data/lib/oci/dns/dns_client.rb +14 -13
- data/lib/oci/dns/models/create_zone_details.rb +39 -2
- data/lib/oci/dns/models/external_master.rb +3 -1
- data/lib/oci/dns/models/nameserver.rb +149 -0
- data/lib/oci/dns/models/record.rb +3 -1
- data/lib/oci/dns/models/record_details.rb +3 -1
- data/lib/oci/dns/models/record_operation.rb +3 -1
- data/lib/oci/dns/models/tsig.rb +3 -2
- data/lib/oci/dns/models/update_zone_details.rb +40 -2
- data/lib/oci/dns/models/zone.rb +54 -6
- data/lib/oci/dns/models/zone_summary.rb +79 -5
- data/lib/oci/identity/identity.rb +4 -0
- data/lib/oci/identity/identity_client.rb +176 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +40 -0
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/identity_provider_group_summary.rb +226 -0
- data/lib/oci/identity/models/saml2_identity_provider.rb +20 -4
- data/lib/oci/identity/models/scim_client_credentials.rb +168 -0
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +20 -4
- data/lib/oci/identity/models/update_user_capabilities_details.rb +214 -0
- data/lib/oci/identity/models/user.rb +42 -4
- data/lib/oci/identity/models/user_capabilities.rb +209 -0
- data/lib/oci/regions.rb +10 -9
- data/lib/oci/version.rb +1 -1
- metadata +8 -2
@@ -25,51 +25,51 @@ module OCI
|
|
25
25
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
26
26
|
].freeze
|
27
27
|
|
28
|
-
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the
|
28
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database node.
|
29
29
|
# @return [String]
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :id
|
31
31
|
|
32
32
|
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
33
33
|
# @return [String]
|
34
34
|
attr_accessor :db_system_id
|
35
35
|
|
36
|
-
# The
|
36
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the VNIC.
|
37
37
|
# @return [String]
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :vnic_id
|
39
39
|
|
40
|
-
#
|
40
|
+
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup VNIC.
|
41
41
|
# @return [String]
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :backup_vnic_id
|
43
43
|
|
44
44
|
# **[Required]** The current state of the database node.
|
45
45
|
# @return [String]
|
46
46
|
attr_reader :lifecycle_state
|
47
47
|
|
48
|
-
# The
|
49
|
-
#
|
50
|
-
|
51
|
-
attr_accessor :software_storage_size_in_gb
|
48
|
+
# The host name for the database node.
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :hostname
|
52
51
|
|
53
52
|
# **[Required]** The date and time that the database node was created.
|
54
53
|
# @return [DateTime]
|
55
54
|
attr_accessor :time_created
|
56
55
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
|
56
|
+
# The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.
|
57
|
+
#
|
58
|
+
# @return [Integer]
|
59
|
+
attr_accessor :software_storage_size_in_gb
|
60
60
|
|
61
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
62
|
def self.attribute_map
|
63
63
|
{
|
64
64
|
# rubocop:disable Style/SymbolLiteral
|
65
|
-
'backup_vnic_id': :'backupVnicId',
|
66
|
-
'db_system_id': :'dbSystemId',
|
67
|
-
'hostname': :'hostname',
|
68
65
|
'id': :'id',
|
66
|
+
'db_system_id': :'dbSystemId',
|
67
|
+
'vnic_id': :'vnicId',
|
68
|
+
'backup_vnic_id': :'backupVnicId',
|
69
69
|
'lifecycle_state': :'lifecycleState',
|
70
|
-
'
|
70
|
+
'hostname': :'hostname',
|
71
71
|
'time_created': :'timeCreated',
|
72
|
-
'
|
72
|
+
'software_storage_size_in_gb': :'softwareStorageSizeInGB'
|
73
73
|
# rubocop:enable Style/SymbolLiteral
|
74
74
|
}
|
75
75
|
end
|
@@ -78,14 +78,14 @@ module OCI
|
|
78
78
|
def self.swagger_types
|
79
79
|
{
|
80
80
|
# rubocop:disable Style/SymbolLiteral
|
81
|
-
'backup_vnic_id': :'String',
|
82
|
-
'db_system_id': :'String',
|
83
|
-
'hostname': :'String',
|
84
81
|
'id': :'String',
|
82
|
+
'db_system_id': :'String',
|
83
|
+
'vnic_id': :'String',
|
84
|
+
'backup_vnic_id': :'String',
|
85
85
|
'lifecycle_state': :'String',
|
86
|
-
'
|
86
|
+
'hostname': :'String',
|
87
87
|
'time_created': :'DateTime',
|
88
|
-
'
|
88
|
+
'software_storage_size_in_gb': :'Integer'
|
89
89
|
# rubocop:enable Style/SymbolLiteral
|
90
90
|
}
|
91
91
|
end
|
@@ -96,25 +96,21 @@ module OCI
|
|
96
96
|
|
97
97
|
# Initializes the object
|
98
98
|
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
-
# @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
|
100
|
-
# @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
|
101
|
-
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
102
99
|
# @option attributes [String] :id The value to assign to the {#id} property
|
100
|
+
# @option attributes [String] :db_system_id The value to assign to the {#db_system_id} property
|
101
|
+
# @option attributes [String] :vnic_id The value to assign to the {#vnic_id} property
|
102
|
+
# @option attributes [String] :backup_vnic_id The value to assign to the {#backup_vnic_id} property
|
103
103
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
104
|
-
# @option attributes [
|
104
|
+
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
105
105
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
106
|
-
# @option attributes [
|
106
|
+
# @option attributes [Integer] :software_storage_size_in_gb The value to assign to the {#software_storage_size_in_gb} property
|
107
107
|
def initialize(attributes = {})
|
108
108
|
return unless attributes.is_a?(Hash)
|
109
109
|
|
110
110
|
# convert string to symbol for hash key
|
111
111
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
112
112
|
|
113
|
-
self.
|
114
|
-
|
115
|
-
raise 'You cannot provide both :backupVnicId and :backup_vnic_id' if attributes.key?(:'backupVnicId') && attributes.key?(:'backup_vnic_id')
|
116
|
-
|
117
|
-
self.backup_vnic_id = attributes[:'backup_vnic_id'] if attributes[:'backup_vnic_id']
|
113
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
118
114
|
|
119
115
|
self.db_system_id = attributes[:'dbSystemId'] if attributes[:'dbSystemId']
|
120
116
|
|
@@ -122,9 +118,17 @@ module OCI
|
|
122
118
|
|
123
119
|
self.db_system_id = attributes[:'db_system_id'] if attributes[:'db_system_id']
|
124
120
|
|
125
|
-
self.
|
121
|
+
self.vnic_id = attributes[:'vnicId'] if attributes[:'vnicId']
|
126
122
|
|
127
|
-
|
123
|
+
raise 'You cannot provide both :vnicId and :vnic_id' if attributes.key?(:'vnicId') && attributes.key?(:'vnic_id')
|
124
|
+
|
125
|
+
self.vnic_id = attributes[:'vnic_id'] if attributes[:'vnic_id']
|
126
|
+
|
127
|
+
self.backup_vnic_id = attributes[:'backupVnicId'] if attributes[:'backupVnicId']
|
128
|
+
|
129
|
+
raise 'You cannot provide both :backupVnicId and :backup_vnic_id' if attributes.key?(:'backupVnicId') && attributes.key?(:'backup_vnic_id')
|
130
|
+
|
131
|
+
self.backup_vnic_id = attributes[:'backup_vnic_id'] if attributes[:'backup_vnic_id']
|
128
132
|
|
129
133
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
130
134
|
|
@@ -132,11 +136,7 @@ module OCI
|
|
132
136
|
|
133
137
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
134
138
|
|
135
|
-
self.
|
136
|
-
|
137
|
-
raise 'You cannot provide both :softwareStorageSizeInGB and :software_storage_size_in_gb' if attributes.key?(:'softwareStorageSizeInGB') && attributes.key?(:'software_storage_size_in_gb')
|
138
|
-
|
139
|
-
self.software_storage_size_in_gb = attributes[:'software_storage_size_in_gb'] if attributes[:'software_storage_size_in_gb']
|
139
|
+
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
140
140
|
|
141
141
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
142
142
|
|
@@ -144,11 +144,11 @@ module OCI
|
|
144
144
|
|
145
145
|
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
146
146
|
|
147
|
-
self.
|
147
|
+
self.software_storage_size_in_gb = attributes[:'softwareStorageSizeInGB'] if attributes[:'softwareStorageSizeInGB']
|
148
148
|
|
149
|
-
raise 'You cannot provide both :
|
149
|
+
raise 'You cannot provide both :softwareStorageSizeInGB and :software_storage_size_in_gb' if attributes.key?(:'softwareStorageSizeInGB') && attributes.key?(:'software_storage_size_in_gb')
|
150
150
|
|
151
|
-
self.
|
151
|
+
self.software_storage_size_in_gb = attributes[:'software_storage_size_in_gb'] if attributes[:'software_storage_size_in_gb']
|
152
152
|
end
|
153
153
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
154
154
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -177,14 +177,14 @@ module OCI
|
|
177
177
|
return true if equal?(other)
|
178
178
|
|
179
179
|
self.class == other.class &&
|
180
|
-
backup_vnic_id == other.backup_vnic_id &&
|
181
|
-
db_system_id == other.db_system_id &&
|
182
|
-
hostname == other.hostname &&
|
183
180
|
id == other.id &&
|
181
|
+
db_system_id == other.db_system_id &&
|
182
|
+
vnic_id == other.vnic_id &&
|
183
|
+
backup_vnic_id == other.backup_vnic_id &&
|
184
184
|
lifecycle_state == other.lifecycle_state &&
|
185
|
-
|
185
|
+
hostname == other.hostname &&
|
186
186
|
time_created == other.time_created &&
|
187
|
-
|
187
|
+
software_storage_size_in_gb == other.software_storage_size_in_gb
|
188
188
|
end
|
189
189
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
190
190
|
|
@@ -200,7 +200,7 @@ module OCI
|
|
200
200
|
# Calculates hash code according to all attributes.
|
201
201
|
# @return [Fixnum] Hash code
|
202
202
|
def hash
|
203
|
-
[
|
203
|
+
[id, db_system_id, vnic_id, backup_vnic_id, lifecycle_state, hostname, time_created, software_storage_size_in_gb].hash
|
204
204
|
end
|
205
205
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
206
206
|
|
@@ -5,24 +5,7 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# - [Exadata DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/exaoverview.htm)
|
11
|
-
# - [Bare Metal and Virtual Machine DB Systems](https://docs.us-phoenix-1.oraclecloud.com/Content/Database/Concepts/overview.htm)
|
12
|
-
#
|
13
|
-
# 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.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
14
|
-
#
|
15
|
-
# For information about access control and compartments, see
|
16
|
-
# [Overview of the Identity Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
|
17
|
-
#
|
18
|
-
# For information about availability domains, see
|
19
|
-
# [Regions and Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
|
20
|
-
#
|
21
|
-
# To get a list of availability domains, use the `ListAvailabilityDomains` operation
|
22
|
-
# in the Identity Service API.
|
23
|
-
#
|
24
|
-
# **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
|
25
|
-
#
|
8
|
+
# DbSystem model.
|
26
9
|
class Database::Models::DbSystem # rubocop:disable Metrics/LineLength
|
27
10
|
DATABASE_EDITION_ENUM = [
|
28
11
|
DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze,
|
@@ -32,6 +15,16 @@ module OCI
|
|
32
15
|
DATABASE_EDITION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
33
16
|
].freeze
|
34
17
|
|
18
|
+
LIFECYCLE_STATE_ENUM = [
|
19
|
+
LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING'.freeze,
|
20
|
+
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
|
21
|
+
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
22
|
+
LIFECYCLE_STATE_TERMINATING = 'TERMINATING'.freeze,
|
23
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED'.freeze,
|
24
|
+
LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
|
25
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
26
|
+
].freeze
|
27
|
+
|
35
28
|
DISK_REDUNDANCY_ENUM = [
|
36
29
|
DISK_REDUNDANCY_HIGH = 'HIGH'.freeze,
|
37
30
|
DISK_REDUNDANCY_NORMAL = 'NORMAL'.freeze,
|
@@ -44,20 +37,35 @@ module OCI
|
|
44
37
|
LICENSE_MODEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
45
38
|
].freeze
|
46
39
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
].
|
40
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :id
|
43
|
+
|
44
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment.
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :compartment_id
|
47
|
+
|
48
|
+
# **[Required]** The user-friendly name for the DB system. The name does not have to be unique.
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :display_name
|
56
51
|
|
57
52
|
# **[Required]** The name of the availability domain that the DB system is located in.
|
58
53
|
# @return [String]
|
59
54
|
attr_accessor :availability_domain
|
60
55
|
|
56
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the subnet the DB system is associated with.
|
57
|
+
#
|
58
|
+
# **Subnet Restrictions:**
|
59
|
+
# - 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.
|
60
|
+
# - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20.
|
61
|
+
#
|
62
|
+
# These subnets are used by the Oracle Clusterware private interconnect on the database instance.
|
63
|
+
# Specifying an overlapping subnet will cause the private interconnect to malfunction.
|
64
|
+
# This restriction applies to both the client subnet and backup subnet.
|
65
|
+
#
|
66
|
+
# @return [String]
|
67
|
+
attr_accessor :subnet_id
|
68
|
+
|
61
69
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the backup network subnet the DB system is associated with. Applicable only to Exadata DB systems.
|
62
70
|
#
|
63
71
|
# **Subnet Restriction:** See the subnet restrictions information for **subnetId**.
|
@@ -65,109 +73,80 @@ module OCI
|
|
65
73
|
# @return [String]
|
66
74
|
attr_accessor :backup_subnet_id
|
67
75
|
|
68
|
-
# The
|
76
|
+
# **[Required]** The shape of the DB system. The shape determines resources to allocate to the DB system.
|
77
|
+
# - For virtual machine shapes, the number of CPU cores and memory
|
78
|
+
# - For bare metal and Exadata shapes, the number of CPU cores, storage, and memory
|
69
79
|
#
|
70
80
|
# @return [String]
|
71
|
-
attr_accessor :
|
81
|
+
attr_accessor :shape
|
72
82
|
|
73
|
-
# **[Required]** The
|
83
|
+
# **[Required]** The public key portion of one or more key pairs used for SSH access to the DB system.
|
84
|
+
# @return [Array<String>]
|
85
|
+
attr_accessor :ssh_public_keys
|
86
|
+
|
87
|
+
# **[Required]** The hostname for the DB system.
|
74
88
|
# @return [String]
|
75
|
-
attr_accessor :
|
89
|
+
attr_accessor :hostname
|
90
|
+
|
91
|
+
# **[Required]** The domain name for the DB system.
|
92
|
+
# @return [String]
|
93
|
+
attr_accessor :domain
|
94
|
+
|
95
|
+
# The Oracle Database version of the DB system.
|
96
|
+
# @return [String]
|
97
|
+
attr_accessor :version
|
76
98
|
|
77
99
|
# **[Required]** The number of CPU cores enabled on the DB system.
|
78
100
|
# @return [Integer]
|
79
101
|
attr_accessor :cpu_core_count
|
80
102
|
|
103
|
+
# The cluster name for Exadata and 2-node RAC virtual machine DB systems. The cluster name must begin with an 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.
|
104
|
+
#
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :cluster_name
|
107
|
+
|
81
108
|
# The percentage assigned to DATA storage (user data and database files).
|
82
109
|
# 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.
|
83
110
|
#
|
84
111
|
# @return [Integer]
|
85
112
|
attr_accessor :data_storage_percentage
|
86
113
|
|
87
|
-
# The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.
|
88
|
-
#
|
89
|
-
# @return [Integer]
|
90
|
-
attr_accessor :data_storage_size_in_gbs
|
91
|
-
|
92
114
|
# **[Required]** The Oracle Database edition that applies to all the databases on the DB system.
|
93
115
|
#
|
94
116
|
# @return [String]
|
95
117
|
attr_reader :database_edition
|
96
118
|
|
97
|
-
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
98
|
-
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
99
|
-
#
|
100
|
-
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
101
|
-
#
|
102
|
-
# @return [Hash<String, Hash<String, Object>>]
|
103
|
-
attr_accessor :defined_tags
|
104
|
-
|
105
|
-
# The type of redundancy configured for the DB system.
|
106
|
-
# NORMAL is 2-way redundancy.
|
107
|
-
# HIGH is 3-way redundancy.
|
108
|
-
#
|
109
|
-
# @return [String]
|
110
|
-
attr_reader :disk_redundancy
|
111
|
-
|
112
|
-
# **[Required]** The user-friendly name for the DB system. The name does not have to be unique.
|
113
|
-
# @return [String]
|
114
|
-
attr_accessor :display_name
|
115
|
-
|
116
|
-
# **[Required]** The domain name for the DB system.
|
117
|
-
# @return [String]
|
118
|
-
attr_accessor :domain
|
119
|
-
|
120
|
-
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
121
|
-
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
122
|
-
#
|
123
|
-
# Example: `{\"Department\": \"Finance\"}`
|
124
|
-
#
|
125
|
-
# @return [Hash<String, String>]
|
126
|
-
attr_accessor :freeform_tags
|
127
|
-
|
128
|
-
# **[Required]** The hostname for the DB system.
|
129
|
-
# @return [String]
|
130
|
-
attr_accessor :hostname
|
131
|
-
|
132
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
133
|
-
# @return [String]
|
134
|
-
attr_accessor :id
|
135
|
-
|
136
119
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the last patch history. This value is updated as soon as a patch operation starts.
|
137
120
|
# @return [String]
|
138
121
|
attr_accessor :last_patch_history_entry_id
|
139
122
|
|
140
|
-
# The
|
141
|
-
#
|
142
|
-
|
143
|
-
attr_reader :license_model
|
144
|
-
|
145
|
-
# Additional information about the current lifecycleState.
|
146
|
-
# @return [String]
|
147
|
-
attr_accessor :lifecycle_details
|
123
|
+
# The port number configured for the listener on the DB system.
|
124
|
+
# @return [Integer]
|
125
|
+
attr_accessor :listener_port
|
148
126
|
|
149
127
|
# **[Required]** The current state of the DB system.
|
150
128
|
# @return [String]
|
151
129
|
attr_reader :lifecycle_state
|
152
130
|
|
153
|
-
# The
|
154
|
-
# @return [
|
155
|
-
attr_accessor :
|
131
|
+
# The date and time the DB system was created.
|
132
|
+
# @return [DateTime]
|
133
|
+
attr_accessor :time_created
|
156
134
|
|
157
|
-
#
|
158
|
-
#
|
159
|
-
|
160
|
-
attr_accessor :node_count
|
135
|
+
# Additional information about the current lifecycleState.
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :lifecycle_details
|
161
138
|
|
162
|
-
# The
|
139
|
+
# The type of redundancy configured for the DB system.
|
140
|
+
# NORMAL is 2-way redundancy.
|
141
|
+
# HIGH is 3-way redundancy.
|
163
142
|
#
|
164
|
-
# @return [
|
165
|
-
|
143
|
+
# @return [String]
|
144
|
+
attr_reader :disk_redundancy
|
166
145
|
|
167
|
-
#
|
146
|
+
# True, if Sparse Diskgroup is configured for Exadata dbsystem, False, if Sparse diskgroup was not configured.
|
168
147
|
#
|
169
|
-
# @return [
|
170
|
-
attr_accessor :
|
148
|
+
# @return [BOOLEAN]
|
149
|
+
attr_accessor :sparse_diskgroup
|
171
150
|
|
172
151
|
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Single Client Access Name (SCAN) IP addresses associated with the DB system.
|
173
152
|
# SCAN IP addresses are typically used for load balancing and are not assigned to any interface.
|
@@ -178,81 +157,91 @@ module OCI
|
|
178
157
|
# @return [Array<String>]
|
179
158
|
attr_accessor :scan_ip_ids
|
180
159
|
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
160
|
+
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the virtual IP (VIP) addresses associated with the DB system.
|
161
|
+
# The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the DB system to
|
162
|
+
# enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.
|
163
|
+
#
|
164
|
+
# **Note:** For a single-node DB system, this list is empty.
|
184
165
|
#
|
185
|
-
# @return [String]
|
186
|
-
attr_accessor :shape
|
187
|
-
|
188
|
-
# **[Required]** The public key portion of one or more key pairs used for SSH access to the DB system.
|
189
166
|
# @return [Array<String>]
|
190
|
-
attr_accessor :
|
167
|
+
attr_accessor :vip_ids
|
191
168
|
|
192
|
-
#
|
169
|
+
# The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DNS record for the SCAN IP addresses that are associated with the DB system.
|
193
170
|
#
|
194
|
-
#
|
195
|
-
|
196
|
-
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :scan_dns_record_id
|
173
|
+
|
174
|
+
# The data storage size, in gigabytes, that is currently available to the DB system. Applies only for virtual machine DB systems.
|
197
175
|
#
|
198
|
-
#
|
199
|
-
|
200
|
-
|
176
|
+
# @return [Integer]
|
177
|
+
attr_accessor :data_storage_size_in_gbs
|
178
|
+
|
179
|
+
# The RECO/REDO storage size, in gigabytes, that is currently allocated to the DB system. Applies only for virtual machine DB systems.
|
201
180
|
#
|
202
|
-
# @return [
|
203
|
-
attr_accessor :
|
181
|
+
# @return [Integer]
|
182
|
+
attr_accessor :reco_storage_size_in_gb
|
204
183
|
|
205
|
-
# The
|
206
|
-
#
|
207
|
-
|
184
|
+
# The number of nodes in the DB system. For RAC DB systems, the value is greater than 1.
|
185
|
+
#
|
186
|
+
# @return [Integer]
|
187
|
+
attr_accessor :node_count
|
208
188
|
|
209
|
-
# The Oracle
|
189
|
+
# The Oracle license model that applies to all the databases on the DB system. The default is LICENSE_INCLUDED.
|
190
|
+
#
|
210
191
|
# @return [String]
|
211
|
-
|
192
|
+
attr_reader :license_model
|
212
193
|
|
213
|
-
#
|
214
|
-
#
|
215
|
-
# enable failover. If one node fails, the VIP is reassigned to another active node in the cluster.
|
194
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
|
195
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
216
196
|
#
|
217
|
-
#
|
197
|
+
# Example: `{\"Department\": \"Finance\"}`
|
218
198
|
#
|
219
|
-
# @return [
|
220
|
-
attr_accessor :
|
199
|
+
# @return [Hash<String, String>]
|
200
|
+
attr_accessor :freeform_tags
|
201
|
+
|
202
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
203
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
204
|
+
#
|
205
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
206
|
+
#
|
207
|
+
# @return [Hash<String, Hash<String, Object>>]
|
208
|
+
attr_accessor :defined_tags
|
221
209
|
|
222
210
|
# Attribute mapping from ruby-style variable name to JSON key.
|
223
211
|
def self.attribute_map
|
224
212
|
{
|
225
213
|
# rubocop:disable Style/SymbolLiteral
|
214
|
+
'id': :'id',
|
215
|
+
'compartment_id': :'compartmentId',
|
216
|
+
'display_name': :'displayName',
|
226
217
|
'availability_domain': :'availabilityDomain',
|
218
|
+
'subnet_id': :'subnetId',
|
227
219
|
'backup_subnet_id': :'backupSubnetId',
|
228
|
-
'
|
229
|
-
'
|
220
|
+
'shape': :'shape',
|
221
|
+
'ssh_public_keys': :'sshPublicKeys',
|
222
|
+
'hostname': :'hostname',
|
223
|
+
'domain': :'domain',
|
224
|
+
'version': :'version',
|
230
225
|
'cpu_core_count': :'cpuCoreCount',
|
226
|
+
'cluster_name': :'clusterName',
|
231
227
|
'data_storage_percentage': :'dataStoragePercentage',
|
232
|
-
'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
|
233
228
|
'database_edition': :'databaseEdition',
|
234
|
-
'defined_tags': :'definedTags',
|
235
|
-
'disk_redundancy': :'diskRedundancy',
|
236
|
-
'display_name': :'displayName',
|
237
|
-
'domain': :'domain',
|
238
|
-
'freeform_tags': :'freeformTags',
|
239
|
-
'hostname': :'hostname',
|
240
|
-
'id': :'id',
|
241
229
|
'last_patch_history_entry_id': :'lastPatchHistoryEntryId',
|
242
|
-
'license_model': :'licenseModel',
|
243
|
-
'lifecycle_details': :'lifecycleDetails',
|
244
|
-
'lifecycle_state': :'lifecycleState',
|
245
230
|
'listener_port': :'listenerPort',
|
246
|
-
'
|
247
|
-
'reco_storage_size_in_gb': :'recoStorageSizeInGB',
|
248
|
-
'scan_dns_record_id': :'scanDnsRecordId',
|
249
|
-
'scan_ip_ids': :'scanIpIds',
|
250
|
-
'shape': :'shape',
|
251
|
-
'ssh_public_keys': :'sshPublicKeys',
|
252
|
-
'subnet_id': :'subnetId',
|
231
|
+
'lifecycle_state': :'lifecycleState',
|
253
232
|
'time_created': :'timeCreated',
|
254
|
-
'
|
255
|
-
'
|
233
|
+
'lifecycle_details': :'lifecycleDetails',
|
234
|
+
'disk_redundancy': :'diskRedundancy',
|
235
|
+
'sparse_diskgroup': :'sparseDiskgroup',
|
236
|
+
'scan_ip_ids': :'scanIpIds',
|
237
|
+
'vip_ids': :'vipIds',
|
238
|
+
'scan_dns_record_id': :'scanDnsRecordId',
|
239
|
+
'data_storage_size_in_gbs': :'dataStorageSizeInGBs',
|
240
|
+
'reco_storage_size_in_gb': :'recoStorageSizeInGB',
|
241
|
+
'node_count': :'nodeCount',
|
242
|
+
'license_model': :'licenseModel',
|
243
|
+
'freeform_tags': :'freeformTags',
|
244
|
+
'defined_tags': :'definedTags'
|
256
245
|
# rubocop:enable Style/SymbolLiteral
|
257
246
|
}
|
258
247
|
end
|
@@ -261,36 +250,37 @@ module OCI
|
|
261
250
|
def self.swagger_types
|
262
251
|
{
|
263
252
|
# rubocop:disable Style/SymbolLiteral
|
253
|
+
'id': :'String',
|
254
|
+
'compartment_id': :'String',
|
255
|
+
'display_name': :'String',
|
264
256
|
'availability_domain': :'String',
|
257
|
+
'subnet_id': :'String',
|
265
258
|
'backup_subnet_id': :'String',
|
266
|
-
'
|
267
|
-
'
|
259
|
+
'shape': :'String',
|
260
|
+
'ssh_public_keys': :'Array<String>',
|
261
|
+
'hostname': :'String',
|
262
|
+
'domain': :'String',
|
263
|
+
'version': :'String',
|
268
264
|
'cpu_core_count': :'Integer',
|
265
|
+
'cluster_name': :'String',
|
269
266
|
'data_storage_percentage': :'Integer',
|
270
|
-
'data_storage_size_in_gbs': :'Integer',
|
271
267
|
'database_edition': :'String',
|
272
|
-
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
273
|
-
'disk_redundancy': :'String',
|
274
|
-
'display_name': :'String',
|
275
|
-
'domain': :'String',
|
276
|
-
'freeform_tags': :'Hash<String, String>',
|
277
|
-
'hostname': :'String',
|
278
|
-
'id': :'String',
|
279
268
|
'last_patch_history_entry_id': :'String',
|
280
|
-
'license_model': :'String',
|
281
|
-
'lifecycle_details': :'String',
|
282
|
-
'lifecycle_state': :'String',
|
283
269
|
'listener_port': :'Integer',
|
284
|
-
'
|
285
|
-
'reco_storage_size_in_gb': :'Integer',
|
286
|
-
'scan_dns_record_id': :'String',
|
287
|
-
'scan_ip_ids': :'Array<String>',
|
288
|
-
'shape': :'String',
|
289
|
-
'ssh_public_keys': :'Array<String>',
|
290
|
-
'subnet_id': :'String',
|
270
|
+
'lifecycle_state': :'String',
|
291
271
|
'time_created': :'DateTime',
|
292
|
-
'
|
293
|
-
'
|
272
|
+
'lifecycle_details': :'String',
|
273
|
+
'disk_redundancy': :'String',
|
274
|
+
'sparse_diskgroup': :'BOOLEAN',
|
275
|
+
'scan_ip_ids': :'Array<String>',
|
276
|
+
'vip_ids': :'Array<String>',
|
277
|
+
'scan_dns_record_id': :'String',
|
278
|
+
'data_storage_size_in_gbs': :'Integer',
|
279
|
+
'reco_storage_size_in_gb': :'Integer',
|
280
|
+
'node_count': :'Integer',
|
281
|
+
'license_model': :'String',
|
282
|
+
'freeform_tags': :'Hash<String, String>',
|
283
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>'
|
294
284
|
# rubocop:enable Style/SymbolLiteral
|
295
285
|
}
|
296
286
|
end
|
@@ -301,41 +291,53 @@ module OCI
|
|
301
291
|
|
302
292
|
# Initializes the object
|
303
293
|
# @param [Hash] attributes Model attributes in the form of hash
|
294
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
295
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
296
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
304
297
|
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
298
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
305
299
|
# @option attributes [String] :backup_subnet_id The value to assign to the {#backup_subnet_id} property
|
306
|
-
# @option attributes [String] :
|
307
|
-
# @option attributes [String] :
|
300
|
+
# @option attributes [String] :shape The value to assign to the {#shape} property
|
301
|
+
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
|
302
|
+
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
303
|
+
# @option attributes [String] :domain The value to assign to the {#domain} property
|
304
|
+
# @option attributes [String] :version The value to assign to the {#version} property
|
308
305
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
306
|
+
# @option attributes [String] :cluster_name The value to assign to the {#cluster_name} property
|
309
307
|
# @option attributes [Integer] :data_storage_percentage The value to assign to the {#data_storage_percentage} property
|
310
|
-
# @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
|
311
308
|
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
312
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
313
|
-
# @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
|
314
|
-
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
315
|
-
# @option attributes [String] :domain The value to assign to the {#domain} property
|
316
|
-
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
317
|
-
# @option attributes [String] :hostname The value to assign to the {#hostname} property
|
318
|
-
# @option attributes [String] :id The value to assign to the {#id} property
|
319
309
|
# @option attributes [String] :last_patch_history_entry_id The value to assign to the {#last_patch_history_entry_id} property
|
320
|
-
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
321
|
-
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
322
|
-
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
323
310
|
# @option attributes [Integer] :listener_port The value to assign to the {#listener_port} property
|
324
|
-
# @option attributes [
|
325
|
-
# @option attributes [Integer] :reco_storage_size_in_gb The value to assign to the {#reco_storage_size_in_gb} property
|
326
|
-
# @option attributes [String] :scan_dns_record_id The value to assign to the {#scan_dns_record_id} property
|
327
|
-
# @option attributes [Array<String>] :scan_ip_ids The value to assign to the {#scan_ip_ids} property
|
328
|
-
# @option attributes [String] :shape The value to assign to the {#shape} property
|
329
|
-
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {#ssh_public_keys} property
|
330
|
-
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
311
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
331
312
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
332
|
-
# @option attributes [String] :
|
313
|
+
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
314
|
+
# @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
|
315
|
+
# @option attributes [BOOLEAN] :sparse_diskgroup The value to assign to the {#sparse_diskgroup} property
|
316
|
+
# @option attributes [Array<String>] :scan_ip_ids The value to assign to the {#scan_ip_ids} property
|
333
317
|
# @option attributes [Array<String>] :vip_ids The value to assign to the {#vip_ids} property
|
318
|
+
# @option attributes [String] :scan_dns_record_id The value to assign to the {#scan_dns_record_id} property
|
319
|
+
# @option attributes [Integer] :data_storage_size_in_gbs The value to assign to the {#data_storage_size_in_gbs} property
|
320
|
+
# @option attributes [Integer] :reco_storage_size_in_gb The value to assign to the {#reco_storage_size_in_gb} property
|
321
|
+
# @option attributes [Integer] :node_count The value to assign to the {#node_count} property
|
322
|
+
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
323
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
324
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
334
325
|
def initialize(attributes = {})
|
335
326
|
return unless attributes.is_a?(Hash)
|
336
327
|
|
337
|
-
|
338
|
-
|
328
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
329
|
+
|
330
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
331
|
+
|
332
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
333
|
+
|
334
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
335
|
+
|
336
|
+
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
337
|
+
|
338
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
339
|
+
|
340
|
+
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
339
341
|
|
340
342
|
self.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain']
|
341
343
|
|
@@ -343,23 +345,31 @@ module OCI
|
|
343
345
|
|
344
346
|
self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain']
|
345
347
|
|
348
|
+
self.subnet_id = attributes[:'subnetId'] if attributes[:'subnetId']
|
349
|
+
|
350
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
351
|
+
|
352
|
+
self.subnet_id = attributes[:'subnet_id'] if attributes[:'subnet_id']
|
353
|
+
|
346
354
|
self.backup_subnet_id = attributes[:'backupSubnetId'] if attributes[:'backupSubnetId']
|
347
355
|
|
348
356
|
raise 'You cannot provide both :backupSubnetId and :backup_subnet_id' if attributes.key?(:'backupSubnetId') && attributes.key?(:'backup_subnet_id')
|
349
357
|
|
350
358
|
self.backup_subnet_id = attributes[:'backup_subnet_id'] if attributes[:'backup_subnet_id']
|
351
359
|
|
352
|
-
self.
|
360
|
+
self.shape = attributes[:'shape'] if attributes[:'shape']
|
353
361
|
|
354
|
-
|
362
|
+
self.ssh_public_keys = attributes[:'sshPublicKeys'] if attributes[:'sshPublicKeys']
|
355
363
|
|
356
|
-
|
364
|
+
raise 'You cannot provide both :sshPublicKeys and :ssh_public_keys' if attributes.key?(:'sshPublicKeys') && attributes.key?(:'ssh_public_keys')
|
357
365
|
|
358
|
-
self.
|
366
|
+
self.ssh_public_keys = attributes[:'ssh_public_keys'] if attributes[:'ssh_public_keys']
|
359
367
|
|
360
|
-
|
368
|
+
self.hostname = attributes[:'hostname'] if attributes[:'hostname']
|
361
369
|
|
362
|
-
self.
|
370
|
+
self.domain = attributes[:'domain'] if attributes[:'domain']
|
371
|
+
|
372
|
+
self.version = attributes[:'version'] if attributes[:'version']
|
363
373
|
|
364
374
|
self.cpu_core_count = attributes[:'cpuCoreCount'] if attributes[:'cpuCoreCount']
|
365
375
|
|
@@ -367,17 +377,17 @@ module OCI
|
|
367
377
|
|
368
378
|
self.cpu_core_count = attributes[:'cpu_core_count'] if attributes[:'cpu_core_count']
|
369
379
|
|
370
|
-
self.
|
380
|
+
self.cluster_name = attributes[:'clusterName'] if attributes[:'clusterName']
|
371
381
|
|
372
|
-
raise 'You cannot provide both :
|
382
|
+
raise 'You cannot provide both :clusterName and :cluster_name' if attributes.key?(:'clusterName') && attributes.key?(:'cluster_name')
|
373
383
|
|
374
|
-
self.
|
384
|
+
self.cluster_name = attributes[:'cluster_name'] if attributes[:'cluster_name']
|
375
385
|
|
376
|
-
self.
|
386
|
+
self.data_storage_percentage = attributes[:'dataStoragePercentage'] if attributes[:'dataStoragePercentage']
|
377
387
|
|
378
|
-
raise 'You cannot provide both :
|
388
|
+
raise 'You cannot provide both :dataStoragePercentage and :data_storage_percentage' if attributes.key?(:'dataStoragePercentage') && attributes.key?(:'data_storage_percentage')
|
379
389
|
|
380
|
-
self.
|
390
|
+
self.data_storage_percentage = attributes[:'data_storage_percentage'] if attributes[:'data_storage_percentage']
|
381
391
|
|
382
392
|
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
383
393
|
|
@@ -385,47 +395,29 @@ module OCI
|
|
385
395
|
|
386
396
|
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
387
397
|
|
388
|
-
self.
|
389
|
-
|
390
|
-
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
391
|
-
|
392
|
-
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
393
|
-
|
394
|
-
self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
|
395
|
-
|
396
|
-
raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
|
397
|
-
|
398
|
-
self.disk_redundancy = attributes[:'disk_redundancy'] if attributes[:'disk_redundancy']
|
399
|
-
|
400
|
-
self.display_name = attributes[:'displayName'] if attributes[:'displayName']
|
401
|
-
|
402
|
-
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
403
|
-
|
404
|
-
self.display_name = attributes[:'display_name'] if attributes[:'display_name']
|
405
|
-
|
406
|
-
self.domain = attributes[:'domain'] if attributes[:'domain']
|
398
|
+
self.last_patch_history_entry_id = attributes[:'lastPatchHistoryEntryId'] if attributes[:'lastPatchHistoryEntryId']
|
407
399
|
|
408
|
-
|
400
|
+
raise 'You cannot provide both :lastPatchHistoryEntryId and :last_patch_history_entry_id' if attributes.key?(:'lastPatchHistoryEntryId') && attributes.key?(:'last_patch_history_entry_id')
|
409
401
|
|
410
|
-
|
402
|
+
self.last_patch_history_entry_id = attributes[:'last_patch_history_entry_id'] if attributes[:'last_patch_history_entry_id']
|
411
403
|
|
412
|
-
self.
|
404
|
+
self.listener_port = attributes[:'listenerPort'] if attributes[:'listenerPort']
|
413
405
|
|
414
|
-
|
406
|
+
raise 'You cannot provide both :listenerPort and :listener_port' if attributes.key?(:'listenerPort') && attributes.key?(:'listener_port')
|
415
407
|
|
416
|
-
self.
|
408
|
+
self.listener_port = attributes[:'listener_port'] if attributes[:'listener_port']
|
417
409
|
|
418
|
-
self.
|
410
|
+
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
419
411
|
|
420
|
-
raise 'You cannot provide both :
|
412
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
421
413
|
|
422
|
-
self.
|
414
|
+
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
423
415
|
|
424
|
-
self.
|
416
|
+
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
425
417
|
|
426
|
-
raise 'You cannot provide both :
|
418
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
427
419
|
|
428
|
-
self.
|
420
|
+
self.time_created = attributes[:'time_created'] if attributes[:'time_created']
|
429
421
|
|
430
422
|
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
431
423
|
|
@@ -433,29 +425,29 @@ module OCI
|
|
433
425
|
|
434
426
|
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
435
427
|
|
436
|
-
self.
|
428
|
+
self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
|
437
429
|
|
438
|
-
raise 'You cannot provide both :
|
430
|
+
raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
|
439
431
|
|
440
|
-
self.
|
432
|
+
self.disk_redundancy = attributes[:'disk_redundancy'] if attributes[:'disk_redundancy']
|
441
433
|
|
442
|
-
self.
|
434
|
+
self.sparse_diskgroup = attributes[:'sparseDiskgroup'] unless attributes[:'sparseDiskgroup'].nil?
|
443
435
|
|
444
|
-
raise 'You cannot provide both :
|
436
|
+
raise 'You cannot provide both :sparseDiskgroup and :sparse_diskgroup' if attributes.key?(:'sparseDiskgroup') && attributes.key?(:'sparse_diskgroup')
|
445
437
|
|
446
|
-
self.
|
438
|
+
self.sparse_diskgroup = attributes[:'sparse_diskgroup'] unless attributes[:'sparse_diskgroup'].nil?
|
447
439
|
|
448
|
-
self.
|
440
|
+
self.scan_ip_ids = attributes[:'scanIpIds'] if attributes[:'scanIpIds']
|
449
441
|
|
450
|
-
raise 'You cannot provide both :
|
442
|
+
raise 'You cannot provide both :scanIpIds and :scan_ip_ids' if attributes.key?(:'scanIpIds') && attributes.key?(:'scan_ip_ids')
|
451
443
|
|
452
|
-
self.
|
444
|
+
self.scan_ip_ids = attributes[:'scan_ip_ids'] if attributes[:'scan_ip_ids']
|
453
445
|
|
454
|
-
self.
|
446
|
+
self.vip_ids = attributes[:'vipIds'] if attributes[:'vipIds']
|
455
447
|
|
456
|
-
raise 'You cannot provide both :
|
448
|
+
raise 'You cannot provide both :vipIds and :vip_ids' if attributes.key?(:'vipIds') && attributes.key?(:'vip_ids')
|
457
449
|
|
458
|
-
self.
|
450
|
+
self.vip_ids = attributes[:'vip_ids'] if attributes[:'vip_ids']
|
459
451
|
|
460
452
|
self.scan_dns_record_id = attributes[:'scanDnsRecordId'] if attributes[:'scanDnsRecordId']
|
461
453
|
|
@@ -463,39 +455,41 @@ module OCI
|
|
463
455
|
|
464
456
|
self.scan_dns_record_id = attributes[:'scan_dns_record_id'] if attributes[:'scan_dns_record_id']
|
465
457
|
|
466
|
-
self.
|
458
|
+
self.data_storage_size_in_gbs = attributes[:'dataStorageSizeInGBs'] if attributes[:'dataStorageSizeInGBs']
|
467
459
|
|
468
|
-
raise 'You cannot provide both :
|
460
|
+
raise 'You cannot provide both :dataStorageSizeInGBs and :data_storage_size_in_gbs' if attributes.key?(:'dataStorageSizeInGBs') && attributes.key?(:'data_storage_size_in_gbs')
|
469
461
|
|
470
|
-
self.
|
462
|
+
self.data_storage_size_in_gbs = attributes[:'data_storage_size_in_gbs'] if attributes[:'data_storage_size_in_gbs']
|
471
463
|
|
472
|
-
self.
|
464
|
+
self.reco_storage_size_in_gb = attributes[:'recoStorageSizeInGB'] if attributes[:'recoStorageSizeInGB']
|
473
465
|
|
474
|
-
|
466
|
+
raise 'You cannot provide both :recoStorageSizeInGB and :reco_storage_size_in_gb' if attributes.key?(:'recoStorageSizeInGB') && attributes.key?(:'reco_storage_size_in_gb')
|
475
467
|
|
476
|
-
|
468
|
+
self.reco_storage_size_in_gb = attributes[:'reco_storage_size_in_gb'] if attributes[:'reco_storage_size_in_gb']
|
477
469
|
|
478
|
-
self.
|
470
|
+
self.node_count = attributes[:'nodeCount'] if attributes[:'nodeCount']
|
479
471
|
|
480
|
-
|
472
|
+
raise 'You cannot provide both :nodeCount and :node_count' if attributes.key?(:'nodeCount') && attributes.key?(:'node_count')
|
481
473
|
|
482
|
-
|
474
|
+
self.node_count = attributes[:'node_count'] if attributes[:'node_count']
|
483
475
|
|
484
|
-
self.
|
476
|
+
self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
|
485
477
|
|
486
|
-
|
478
|
+
raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
|
487
479
|
|
488
|
-
|
480
|
+
self.license_model = attributes[:'license_model'] if attributes[:'license_model']
|
489
481
|
|
490
|
-
self.
|
482
|
+
self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']
|
491
483
|
|
492
|
-
|
484
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
493
485
|
|
494
|
-
self.
|
486
|
+
self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']
|
495
487
|
|
496
|
-
|
488
|
+
self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']
|
497
489
|
|
498
|
-
|
490
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
491
|
+
|
492
|
+
self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
|
499
493
|
end
|
500
494
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
501
495
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
@@ -515,6 +509,21 @@ module OCI
|
|
515
509
|
# rubocop:enable Style/ConditionalAssignment
|
516
510
|
end
|
517
511
|
|
512
|
+
# Custom attribute writer method checking allowed values (enum).
|
513
|
+
# @param [Object] lifecycle_state Object to be assigned
|
514
|
+
def lifecycle_state=(lifecycle_state)
|
515
|
+
# rubocop:disable Style/ConditionalAssignment
|
516
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
517
|
+
# rubocop: disable Metrics/LineLength
|
518
|
+
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
519
|
+
# rubocop: enable Metrics/LineLength
|
520
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
521
|
+
else
|
522
|
+
@lifecycle_state = lifecycle_state
|
523
|
+
end
|
524
|
+
# rubocop:enable Style/ConditionalAssignment
|
525
|
+
end
|
526
|
+
|
518
527
|
# Custom attribute writer method checking allowed values (enum).
|
519
528
|
# @param [Object] disk_redundancy Object to be assigned
|
520
529
|
def disk_redundancy=(disk_redundancy)
|
@@ -545,21 +554,6 @@ module OCI
|
|
545
554
|
# rubocop:enable Style/ConditionalAssignment
|
546
555
|
end
|
547
556
|
|
548
|
-
# Custom attribute writer method checking allowed values (enum).
|
549
|
-
# @param [Object] lifecycle_state Object to be assigned
|
550
|
-
def lifecycle_state=(lifecycle_state)
|
551
|
-
# rubocop:disable Style/ConditionalAssignment
|
552
|
-
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
553
|
-
# rubocop: disable Metrics/LineLength
|
554
|
-
OCI.logger.debug("Unknown value for 'lifecycle_state' [" + lifecycle_state + "]. Mapping to 'LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
555
|
-
# rubocop: enable Metrics/LineLength
|
556
|
-
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
557
|
-
else
|
558
|
-
@lifecycle_state = lifecycle_state
|
559
|
-
end
|
560
|
-
# rubocop:enable Style/ConditionalAssignment
|
561
|
-
end
|
562
|
-
|
563
557
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
564
558
|
|
565
559
|
|
@@ -569,36 +563,37 @@ module OCI
|
|
569
563
|
return true if equal?(other)
|
570
564
|
|
571
565
|
self.class == other.class &&
|
566
|
+
id == other.id &&
|
567
|
+
compartment_id == other.compartment_id &&
|
568
|
+
display_name == other.display_name &&
|
572
569
|
availability_domain == other.availability_domain &&
|
570
|
+
subnet_id == other.subnet_id &&
|
573
571
|
backup_subnet_id == other.backup_subnet_id &&
|
574
|
-
|
575
|
-
|
572
|
+
shape == other.shape &&
|
573
|
+
ssh_public_keys == other.ssh_public_keys &&
|
574
|
+
hostname == other.hostname &&
|
575
|
+
domain == other.domain &&
|
576
|
+
version == other.version &&
|
576
577
|
cpu_core_count == other.cpu_core_count &&
|
578
|
+
cluster_name == other.cluster_name &&
|
577
579
|
data_storage_percentage == other.data_storage_percentage &&
|
578
|
-
data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
|
579
580
|
database_edition == other.database_edition &&
|
580
|
-
defined_tags == other.defined_tags &&
|
581
|
-
disk_redundancy == other.disk_redundancy &&
|
582
|
-
display_name == other.display_name &&
|
583
|
-
domain == other.domain &&
|
584
|
-
freeform_tags == other.freeform_tags &&
|
585
|
-
hostname == other.hostname &&
|
586
|
-
id == other.id &&
|
587
581
|
last_patch_history_entry_id == other.last_patch_history_entry_id &&
|
588
|
-
license_model == other.license_model &&
|
589
|
-
lifecycle_details == other.lifecycle_details &&
|
590
|
-
lifecycle_state == other.lifecycle_state &&
|
591
582
|
listener_port == other.listener_port &&
|
592
|
-
|
593
|
-
reco_storage_size_in_gb == other.reco_storage_size_in_gb &&
|
594
|
-
scan_dns_record_id == other.scan_dns_record_id &&
|
595
|
-
scan_ip_ids == other.scan_ip_ids &&
|
596
|
-
shape == other.shape &&
|
597
|
-
ssh_public_keys == other.ssh_public_keys &&
|
598
|
-
subnet_id == other.subnet_id &&
|
583
|
+
lifecycle_state == other.lifecycle_state &&
|
599
584
|
time_created == other.time_created &&
|
600
|
-
|
601
|
-
|
585
|
+
lifecycle_details == other.lifecycle_details &&
|
586
|
+
disk_redundancy == other.disk_redundancy &&
|
587
|
+
sparse_diskgroup == other.sparse_diskgroup &&
|
588
|
+
scan_ip_ids == other.scan_ip_ids &&
|
589
|
+
vip_ids == other.vip_ids &&
|
590
|
+
scan_dns_record_id == other.scan_dns_record_id &&
|
591
|
+
data_storage_size_in_gbs == other.data_storage_size_in_gbs &&
|
592
|
+
reco_storage_size_in_gb == other.reco_storage_size_in_gb &&
|
593
|
+
node_count == other.node_count &&
|
594
|
+
license_model == other.license_model &&
|
595
|
+
freeform_tags == other.freeform_tags &&
|
596
|
+
defined_tags == other.defined_tags
|
602
597
|
end
|
603
598
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Metrics/LineLength, Layout/EmptyLines
|
604
599
|
|
@@ -614,7 +609,7 @@ module OCI
|
|
614
609
|
# Calculates hash code according to all attributes.
|
615
610
|
# @return [Fixnum] Hash code
|
616
611
|
def hash
|
617
|
-
[
|
612
|
+
[id, compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, ssh_public_keys, hostname, domain, version, cpu_core_count, cluster_name, data_storage_percentage, database_edition, last_patch_history_entry_id, listener_port, lifecycle_state, time_created, lifecycle_details, disk_redundancy, sparse_diskgroup, scan_ip_ids, vip_ids, scan_dns_record_id, data_storage_size_in_gbs, reco_storage_size_in_gb, node_count, license_model, freeform_tags, defined_tags].hash
|
618
613
|
end
|
619
614
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
620
615
|
|