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
@@ -24,16 +24,16 @@ module OCI
|
|
24
24
|
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze
|
25
25
|
].freeze
|
26
26
|
|
27
|
+
# This attribute is required.
|
28
|
+
# @return [OCI::Database::Models::CreateDbHomeDetails]
|
29
|
+
attr_accessor :db_home
|
30
|
+
|
27
31
|
# **[Required]** The Oracle Database Edition that applies to all the databases on the DB system.
|
28
32
|
# Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE.
|
29
33
|
#
|
30
34
|
# @return [String]
|
31
35
|
attr_reader :database_edition
|
32
36
|
|
33
|
-
# This attribute is required.
|
34
|
-
# @return [OCI::Database::Models::CreateDbHomeDetails]
|
35
|
-
attr_accessor :db_home
|
36
|
-
|
37
37
|
# The type of redundancy configured for the DB system.
|
38
38
|
# Normal is 2-way redundancy, recommended for test and development systems.
|
39
39
|
# High is 3-way redundancy, recommended for production systems.
|
@@ -50,25 +50,26 @@ module OCI
|
|
50
50
|
def self.attribute_map
|
51
51
|
{
|
52
52
|
# rubocop:disable Style/SymbolLiteral
|
53
|
+
'compartment_id': :'compartmentId',
|
54
|
+
'display_name': :'displayName',
|
53
55
|
'availability_domain': :'availabilityDomain',
|
56
|
+
'subnet_id': :'subnetId',
|
54
57
|
'backup_subnet_id': :'backupSubnetId',
|
55
|
-
'
|
56
|
-
'
|
58
|
+
'shape': :'shape',
|
59
|
+
'sparse_diskgroup': :'sparseDiskgroup',
|
60
|
+
'ssh_public_keys': :'sshPublicKeys',
|
61
|
+
'hostname': :'hostname',
|
62
|
+
'domain': :'domain',
|
57
63
|
'cpu_core_count': :'cpuCoreCount',
|
64
|
+
'cluster_name': :'clusterName',
|
58
65
|
'data_storage_percentage': :'dataStoragePercentage',
|
59
|
-
'defined_tags': :'definedTags',
|
60
|
-
'display_name': :'displayName',
|
61
|
-
'domain': :'domain',
|
62
|
-
'freeform_tags': :'freeformTags',
|
63
|
-
'hostname': :'hostname',
|
64
66
|
'initial_data_storage_size_in_gb': :'initialDataStorageSizeInGB',
|
65
67
|
'node_count': :'nodeCount',
|
66
|
-
'
|
68
|
+
'freeform_tags': :'freeformTags',
|
69
|
+
'defined_tags': :'definedTags',
|
67
70
|
'source': :'source',
|
68
|
-
'ssh_public_keys': :'sshPublicKeys',
|
69
|
-
'subnet_id': :'subnetId',
|
70
|
-
'database_edition': :'databaseEdition',
|
71
71
|
'db_home': :'dbHome',
|
72
|
+
'database_edition': :'databaseEdition',
|
72
73
|
'disk_redundancy': :'diskRedundancy',
|
73
74
|
'license_model': :'licenseModel'
|
74
75
|
# rubocop:enable Style/SymbolLiteral
|
@@ -79,25 +80,26 @@ module OCI
|
|
79
80
|
def self.swagger_types
|
80
81
|
{
|
81
82
|
# rubocop:disable Style/SymbolLiteral
|
83
|
+
'compartment_id': :'String',
|
84
|
+
'display_name': :'String',
|
82
85
|
'availability_domain': :'String',
|
86
|
+
'subnet_id': :'String',
|
83
87
|
'backup_subnet_id': :'String',
|
84
|
-
'
|
85
|
-
'
|
88
|
+
'shape': :'String',
|
89
|
+
'sparse_diskgroup': :'BOOLEAN',
|
90
|
+
'ssh_public_keys': :'Array<String>',
|
91
|
+
'hostname': :'String',
|
92
|
+
'domain': :'String',
|
86
93
|
'cpu_core_count': :'Integer',
|
94
|
+
'cluster_name': :'String',
|
87
95
|
'data_storage_percentage': :'Integer',
|
88
|
-
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
89
|
-
'display_name': :'String',
|
90
|
-
'domain': :'String',
|
91
|
-
'freeform_tags': :'Hash<String, String>',
|
92
|
-
'hostname': :'String',
|
93
96
|
'initial_data_storage_size_in_gb': :'Integer',
|
94
97
|
'node_count': :'Integer',
|
95
|
-
'
|
98
|
+
'freeform_tags': :'Hash<String, String>',
|
99
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
96
100
|
'source': :'String',
|
97
|
-
'ssh_public_keys': :'Array<String>',
|
98
|
-
'subnet_id': :'String',
|
99
|
-
'database_edition': :'String',
|
100
101
|
'db_home': :'OCI::Database::Models::CreateDbHomeDetails',
|
102
|
+
'database_edition': :'String',
|
101
103
|
'disk_redundancy': :'String',
|
102
104
|
'license_model': :'String'
|
103
105
|
# rubocop:enable Style/SymbolLiteral
|
@@ -110,24 +112,25 @@ module OCI
|
|
110
112
|
|
111
113
|
# Initializes the object
|
112
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#compartment_id #compartment_id} proprety
|
116
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
|
113
117
|
# @option attributes [String] :availability_domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#availability_domain #availability_domain} proprety
|
118
|
+
# @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
|
114
119
|
# @option attributes [String] :backup_subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#backup_subnet_id #backup_subnet_id} proprety
|
115
|
-
# @option attributes [String] :
|
116
|
-
# @option attributes [
|
120
|
+
# @option attributes [String] :shape The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#shape #shape} proprety
|
121
|
+
# @option attributes [BOOLEAN] :sparse_diskgroup The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#sparse_diskgroup #sparse_diskgroup} proprety
|
122
|
+
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#ssh_public_keys #ssh_public_keys} proprety
|
123
|
+
# @option attributes [String] :hostname The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#hostname #hostname} proprety
|
124
|
+
# @option attributes [String] :domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#domain #domain} proprety
|
117
125
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#cpu_core_count #cpu_core_count} proprety
|
126
|
+
# @option attributes [String] :cluster_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#cluster_name #cluster_name} proprety
|
118
127
|
# @option attributes [Integer] :data_storage_percentage The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#data_storage_percentage #data_storage_percentage} proprety
|
119
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#defined_tags #defined_tags} proprety
|
120
|
-
# @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
|
121
|
-
# @option attributes [String] :domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#domain #domain} proprety
|
122
|
-
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#freeform_tags #freeform_tags} proprety
|
123
|
-
# @option attributes [String] :hostname The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#hostname #hostname} proprety
|
124
128
|
# @option attributes [Integer] :initial_data_storage_size_in_gb The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#initial_data_storage_size_in_gb #initial_data_storage_size_in_gb} proprety
|
125
129
|
# @option attributes [Integer] :node_count The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#node_count #node_count} proprety
|
126
|
-
# @option attributes [String] :
|
127
|
-
# @option attributes [
|
128
|
-
# @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
|
129
|
-
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
130
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#freeform_tags #freeform_tags} proprety
|
131
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#defined_tags #defined_tags} proprety
|
130
132
|
# @option attributes [OCI::Database::Models::CreateDbHomeDetails] :db_home The value to assign to the {#db_home} property
|
133
|
+
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
131
134
|
# @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
|
132
135
|
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
133
136
|
def initialize(attributes = {})
|
@@ -140,18 +143,18 @@ module OCI
|
|
140
143
|
# convert string to symbol for hash key
|
141
144
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
142
145
|
|
143
|
-
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
144
|
-
|
145
|
-
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
146
|
-
|
147
|
-
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
148
|
-
|
149
146
|
self.db_home = attributes[:'dbHome'] if attributes[:'dbHome']
|
150
147
|
|
151
148
|
raise 'You cannot provide both :dbHome and :db_home' if attributes.key?(:'dbHome') && attributes.key?(:'db_home')
|
152
149
|
|
153
150
|
self.db_home = attributes[:'db_home'] if attributes[:'db_home']
|
154
151
|
|
152
|
+
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
153
|
+
|
154
|
+
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
155
|
+
|
156
|
+
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
157
|
+
|
155
158
|
self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
|
156
159
|
|
157
160
|
raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
|
@@ -206,25 +209,26 @@ module OCI
|
|
206
209
|
return true if equal?(other)
|
207
210
|
|
208
211
|
self.class == other.class &&
|
212
|
+
compartment_id == other.compartment_id &&
|
213
|
+
display_name == other.display_name &&
|
209
214
|
availability_domain == other.availability_domain &&
|
215
|
+
subnet_id == other.subnet_id &&
|
210
216
|
backup_subnet_id == other.backup_subnet_id &&
|
211
|
-
|
212
|
-
|
217
|
+
shape == other.shape &&
|
218
|
+
sparse_diskgroup == other.sparse_diskgroup &&
|
219
|
+
ssh_public_keys == other.ssh_public_keys &&
|
220
|
+
hostname == other.hostname &&
|
221
|
+
domain == other.domain &&
|
213
222
|
cpu_core_count == other.cpu_core_count &&
|
223
|
+
cluster_name == other.cluster_name &&
|
214
224
|
data_storage_percentage == other.data_storage_percentage &&
|
215
|
-
defined_tags == other.defined_tags &&
|
216
|
-
display_name == other.display_name &&
|
217
|
-
domain == other.domain &&
|
218
|
-
freeform_tags == other.freeform_tags &&
|
219
|
-
hostname == other.hostname &&
|
220
225
|
initial_data_storage_size_in_gb == other.initial_data_storage_size_in_gb &&
|
221
226
|
node_count == other.node_count &&
|
222
|
-
|
227
|
+
freeform_tags == other.freeform_tags &&
|
228
|
+
defined_tags == other.defined_tags &&
|
223
229
|
source == other.source &&
|
224
|
-
ssh_public_keys == other.ssh_public_keys &&
|
225
|
-
subnet_id == other.subnet_id &&
|
226
|
-
database_edition == other.database_edition &&
|
227
230
|
db_home == other.db_home &&
|
231
|
+
database_edition == other.database_edition &&
|
228
232
|
disk_redundancy == other.disk_redundancy &&
|
229
233
|
license_model == other.license_model
|
230
234
|
end
|
@@ -242,7 +246,7 @@ module OCI
|
|
242
246
|
# Calculates hash code according to all attributes.
|
243
247
|
# @return [Fixnum] Hash code
|
244
248
|
def hash
|
245
|
-
[
|
249
|
+
[compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
|
246
250
|
end
|
247
251
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
248
252
|
|
@@ -24,16 +24,16 @@ module OCI
|
|
24
24
|
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze
|
25
25
|
].freeze
|
26
26
|
|
27
|
+
# This attribute is required.
|
28
|
+
# @return [OCI::Database::Models::CreateDbHomeFromBackupDetails]
|
29
|
+
attr_accessor :db_home
|
30
|
+
|
27
31
|
# **[Required]** The Oracle Database Edition that applies to all the databases on the DB system.
|
28
32
|
# Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE.
|
29
33
|
#
|
30
34
|
# @return [String]
|
31
35
|
attr_reader :database_edition
|
32
36
|
|
33
|
-
# This attribute is required.
|
34
|
-
# @return [OCI::Database::Models::CreateDbHomeFromBackupDetails]
|
35
|
-
attr_accessor :db_home
|
36
|
-
|
37
37
|
# The type of redundancy configured for the DB system.
|
38
38
|
# NORMAL 2-way redundancy, recommended for test and development systems.
|
39
39
|
# HIGH is 3-way redundancy, recommended for production systems.
|
@@ -50,25 +50,26 @@ module OCI
|
|
50
50
|
def self.attribute_map
|
51
51
|
{
|
52
52
|
# rubocop:disable Style/SymbolLiteral
|
53
|
+
'compartment_id': :'compartmentId',
|
54
|
+
'display_name': :'displayName',
|
53
55
|
'availability_domain': :'availabilityDomain',
|
56
|
+
'subnet_id': :'subnetId',
|
54
57
|
'backup_subnet_id': :'backupSubnetId',
|
55
|
-
'
|
56
|
-
'
|
58
|
+
'shape': :'shape',
|
59
|
+
'sparse_diskgroup': :'sparseDiskgroup',
|
60
|
+
'ssh_public_keys': :'sshPublicKeys',
|
61
|
+
'hostname': :'hostname',
|
62
|
+
'domain': :'domain',
|
57
63
|
'cpu_core_count': :'cpuCoreCount',
|
64
|
+
'cluster_name': :'clusterName',
|
58
65
|
'data_storage_percentage': :'dataStoragePercentage',
|
59
|
-
'defined_tags': :'definedTags',
|
60
|
-
'display_name': :'displayName',
|
61
|
-
'domain': :'domain',
|
62
|
-
'freeform_tags': :'freeformTags',
|
63
|
-
'hostname': :'hostname',
|
64
66
|
'initial_data_storage_size_in_gb': :'initialDataStorageSizeInGB',
|
65
67
|
'node_count': :'nodeCount',
|
66
|
-
'
|
68
|
+
'freeform_tags': :'freeformTags',
|
69
|
+
'defined_tags': :'definedTags',
|
67
70
|
'source': :'source',
|
68
|
-
'ssh_public_keys': :'sshPublicKeys',
|
69
|
-
'subnet_id': :'subnetId',
|
70
|
-
'database_edition': :'databaseEdition',
|
71
71
|
'db_home': :'dbHome',
|
72
|
+
'database_edition': :'databaseEdition',
|
72
73
|
'disk_redundancy': :'diskRedundancy',
|
73
74
|
'license_model': :'licenseModel'
|
74
75
|
# rubocop:enable Style/SymbolLiteral
|
@@ -79,25 +80,26 @@ module OCI
|
|
79
80
|
def self.swagger_types
|
80
81
|
{
|
81
82
|
# rubocop:disable Style/SymbolLiteral
|
83
|
+
'compartment_id': :'String',
|
84
|
+
'display_name': :'String',
|
82
85
|
'availability_domain': :'String',
|
86
|
+
'subnet_id': :'String',
|
83
87
|
'backup_subnet_id': :'String',
|
84
|
-
'
|
85
|
-
'
|
88
|
+
'shape': :'String',
|
89
|
+
'sparse_diskgroup': :'BOOLEAN',
|
90
|
+
'ssh_public_keys': :'Array<String>',
|
91
|
+
'hostname': :'String',
|
92
|
+
'domain': :'String',
|
86
93
|
'cpu_core_count': :'Integer',
|
94
|
+
'cluster_name': :'String',
|
87
95
|
'data_storage_percentage': :'Integer',
|
88
|
-
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
89
|
-
'display_name': :'String',
|
90
|
-
'domain': :'String',
|
91
|
-
'freeform_tags': :'Hash<String, String>',
|
92
|
-
'hostname': :'String',
|
93
96
|
'initial_data_storage_size_in_gb': :'Integer',
|
94
97
|
'node_count': :'Integer',
|
95
|
-
'
|
98
|
+
'freeform_tags': :'Hash<String, String>',
|
99
|
+
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
96
100
|
'source': :'String',
|
97
|
-
'ssh_public_keys': :'Array<String>',
|
98
|
-
'subnet_id': :'String',
|
99
|
-
'database_edition': :'String',
|
100
101
|
'db_home': :'OCI::Database::Models::CreateDbHomeFromBackupDetails',
|
102
|
+
'database_edition': :'String',
|
101
103
|
'disk_redundancy': :'String',
|
102
104
|
'license_model': :'String'
|
103
105
|
# rubocop:enable Style/SymbolLiteral
|
@@ -110,24 +112,25 @@ module OCI
|
|
110
112
|
|
111
113
|
# Initializes the object
|
112
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
115
|
+
# @option attributes [String] :compartment_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#compartment_id #compartment_id} proprety
|
116
|
+
# @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
|
113
117
|
# @option attributes [String] :availability_domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#availability_domain #availability_domain} proprety
|
118
|
+
# @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
|
114
119
|
# @option attributes [String] :backup_subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#backup_subnet_id #backup_subnet_id} proprety
|
115
|
-
# @option attributes [String] :
|
116
|
-
# @option attributes [
|
120
|
+
# @option attributes [String] :shape The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#shape #shape} proprety
|
121
|
+
# @option attributes [BOOLEAN] :sparse_diskgroup The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#sparse_diskgroup #sparse_diskgroup} proprety
|
122
|
+
# @option attributes [Array<String>] :ssh_public_keys The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#ssh_public_keys #ssh_public_keys} proprety
|
123
|
+
# @option attributes [String] :hostname The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#hostname #hostname} proprety
|
124
|
+
# @option attributes [String] :domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#domain #domain} proprety
|
117
125
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#cpu_core_count #cpu_core_count} proprety
|
126
|
+
# @option attributes [String] :cluster_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#cluster_name #cluster_name} proprety
|
118
127
|
# @option attributes [Integer] :data_storage_percentage The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#data_storage_percentage #data_storage_percentage} proprety
|
119
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#defined_tags #defined_tags} proprety
|
120
|
-
# @option attributes [String] :display_name The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#display_name #display_name} proprety
|
121
|
-
# @option attributes [String] :domain The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#domain #domain} proprety
|
122
|
-
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#freeform_tags #freeform_tags} proprety
|
123
|
-
# @option attributes [String] :hostname The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#hostname #hostname} proprety
|
124
128
|
# @option attributes [Integer] :initial_data_storage_size_in_gb The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#initial_data_storage_size_in_gb #initial_data_storage_size_in_gb} proprety
|
125
129
|
# @option attributes [Integer] :node_count The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#node_count #node_count} proprety
|
126
|
-
# @option attributes [String] :
|
127
|
-
# @option attributes [
|
128
|
-
# @option attributes [String] :subnet_id The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#subnet_id #subnet_id} proprety
|
129
|
-
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
130
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#freeform_tags #freeform_tags} proprety
|
131
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {OCI::Database::Models::LaunchDbSystemBase#defined_tags #defined_tags} proprety
|
130
132
|
# @option attributes [OCI::Database::Models::CreateDbHomeFromBackupDetails] :db_home The value to assign to the {#db_home} property
|
133
|
+
# @option attributes [String] :database_edition The value to assign to the {#database_edition} property
|
131
134
|
# @option attributes [String] :disk_redundancy The value to assign to the {#disk_redundancy} property
|
132
135
|
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
133
136
|
def initialize(attributes = {})
|
@@ -140,18 +143,18 @@ module OCI
|
|
140
143
|
# convert string to symbol for hash key
|
141
144
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
142
145
|
|
143
|
-
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
144
|
-
|
145
|
-
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
146
|
-
|
147
|
-
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
148
|
-
|
149
146
|
self.db_home = attributes[:'dbHome'] if attributes[:'dbHome']
|
150
147
|
|
151
148
|
raise 'You cannot provide both :dbHome and :db_home' if attributes.key?(:'dbHome') && attributes.key?(:'db_home')
|
152
149
|
|
153
150
|
self.db_home = attributes[:'db_home'] if attributes[:'db_home']
|
154
151
|
|
152
|
+
self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition']
|
153
|
+
|
154
|
+
raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition')
|
155
|
+
|
156
|
+
self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition']
|
157
|
+
|
155
158
|
self.disk_redundancy = attributes[:'diskRedundancy'] if attributes[:'diskRedundancy']
|
156
159
|
|
157
160
|
raise 'You cannot provide both :diskRedundancy and :disk_redundancy' if attributes.key?(:'diskRedundancy') && attributes.key?(:'disk_redundancy')
|
@@ -206,25 +209,26 @@ module OCI
|
|
206
209
|
return true if equal?(other)
|
207
210
|
|
208
211
|
self.class == other.class &&
|
212
|
+
compartment_id == other.compartment_id &&
|
213
|
+
display_name == other.display_name &&
|
209
214
|
availability_domain == other.availability_domain &&
|
215
|
+
subnet_id == other.subnet_id &&
|
210
216
|
backup_subnet_id == other.backup_subnet_id &&
|
211
|
-
|
212
|
-
|
217
|
+
shape == other.shape &&
|
218
|
+
sparse_diskgroup == other.sparse_diskgroup &&
|
219
|
+
ssh_public_keys == other.ssh_public_keys &&
|
220
|
+
hostname == other.hostname &&
|
221
|
+
domain == other.domain &&
|
213
222
|
cpu_core_count == other.cpu_core_count &&
|
223
|
+
cluster_name == other.cluster_name &&
|
214
224
|
data_storage_percentage == other.data_storage_percentage &&
|
215
|
-
defined_tags == other.defined_tags &&
|
216
|
-
display_name == other.display_name &&
|
217
|
-
domain == other.domain &&
|
218
|
-
freeform_tags == other.freeform_tags &&
|
219
|
-
hostname == other.hostname &&
|
220
225
|
initial_data_storage_size_in_gb == other.initial_data_storage_size_in_gb &&
|
221
226
|
node_count == other.node_count &&
|
222
|
-
|
227
|
+
freeform_tags == other.freeform_tags &&
|
228
|
+
defined_tags == other.defined_tags &&
|
223
229
|
source == other.source &&
|
224
|
-
ssh_public_keys == other.ssh_public_keys &&
|
225
|
-
subnet_id == other.subnet_id &&
|
226
|
-
database_edition == other.database_edition &&
|
227
230
|
db_home == other.db_home &&
|
231
|
+
database_edition == other.database_edition &&
|
228
232
|
disk_redundancy == other.disk_redundancy &&
|
229
233
|
license_model == other.license_model
|
230
234
|
end
|
@@ -242,7 +246,7 @@ module OCI
|
|
242
246
|
# Calculates hash code according to all attributes.
|
243
247
|
# @return [Fixnum] Hash code
|
244
248
|
def hash
|
245
|
-
[
|
249
|
+
[compartment_id, display_name, availability_domain, subnet_id, backup_subnet_id, shape, sparse_diskgroup, ssh_public_keys, hostname, domain, cpu_core_count, cluster_name, data_storage_percentage, initial_data_storage_size_in_gb, node_count, freeform_tags, defined_tags, source, db_home, database_edition, disk_redundancy, license_model].hash
|
246
250
|
end
|
247
251
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
248
252
|
|
@@ -5,25 +5,20 @@ require 'logger'
|
|
5
5
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective
|
7
7
|
module OCI
|
8
|
-
#
|
9
|
-
#
|
10
|
-
# To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
|
11
|
-
# talk to an administrator. If you're an administrator who needs to write policies to give users access,
|
12
|
-
# see [Getting Started with Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
13
|
-
#
|
8
|
+
# Patch model.
|
14
9
|
class Database::Models::Patch # rubocop:disable Metrics/LineLength
|
15
|
-
AVAILABLE_ACTIONS_ENUM = [
|
16
|
-
AVAILABLE_ACTIONS_APPLY = 'APPLY'.freeze,
|
17
|
-
AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'.freeze,
|
18
|
-
AVAILABLE_ACTIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
19
|
-
].freeze
|
20
|
-
|
21
10
|
LAST_ACTION_ENUM = [
|
22
11
|
LAST_ACTION_APPLY = 'APPLY'.freeze,
|
23
12
|
LAST_ACTION_PRECHECK = 'PRECHECK'.freeze,
|
24
13
|
LAST_ACTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
25
14
|
].freeze
|
26
15
|
|
16
|
+
AVAILABLE_ACTIONS_ENUM = [
|
17
|
+
AVAILABLE_ACTIONS_APPLY = 'APPLY'.freeze,
|
18
|
+
AVAILABLE_ACTIONS_PRECHECK = 'PRECHECK'.freeze,
|
19
|
+
AVAILABLE_ACTIONS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
20
|
+
].freeze
|
21
|
+
|
27
22
|
LIFECYCLE_STATE_ENUM = [
|
28
23
|
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'.freeze,
|
29
24
|
LIFECYCLE_STATE_SUCCESS = 'SUCCESS'.freeze,
|
@@ -32,22 +27,22 @@ module OCI
|
|
32
27
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
33
28
|
].freeze
|
34
29
|
|
35
|
-
#
|
36
|
-
# @return [
|
37
|
-
|
30
|
+
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :id
|
38
33
|
|
39
34
|
# **[Required]** The text describing this patch package.
|
40
35
|
# @return [String]
|
41
36
|
attr_accessor :description
|
42
37
|
|
43
|
-
# **[Required]** The [OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the patch.
|
44
|
-
# @return [String]
|
45
|
-
attr_accessor :id
|
46
|
-
|
47
38
|
# Action that is currently being performed or was completed last.
|
48
39
|
# @return [String]
|
49
40
|
attr_reader :last_action
|
50
41
|
|
42
|
+
# Actions that can possibly be performed using this patch.
|
43
|
+
# @return [Array<String>]
|
44
|
+
attr_reader :available_actions
|
45
|
+
|
51
46
|
# A descriptive text associated with the lifecycleState.
|
52
47
|
# Typically can contain additional displayable text.
|
53
48
|
#
|
@@ -70,10 +65,10 @@ module OCI
|
|
70
65
|
def self.attribute_map
|
71
66
|
{
|
72
67
|
# rubocop:disable Style/SymbolLiteral
|
73
|
-
'available_actions': :'availableActions',
|
74
|
-
'description': :'description',
|
75
68
|
'id': :'id',
|
69
|
+
'description': :'description',
|
76
70
|
'last_action': :'lastAction',
|
71
|
+
'available_actions': :'availableActions',
|
77
72
|
'lifecycle_details': :'lifecycleDetails',
|
78
73
|
'lifecycle_state': :'lifecycleState',
|
79
74
|
'time_released': :'timeReleased',
|
@@ -86,10 +81,10 @@ module OCI
|
|
86
81
|
def self.swagger_types
|
87
82
|
{
|
88
83
|
# rubocop:disable Style/SymbolLiteral
|
89
|
-
'available_actions': :'Array<String>',
|
90
|
-
'description': :'String',
|
91
84
|
'id': :'String',
|
85
|
+
'description': :'String',
|
92
86
|
'last_action': :'String',
|
87
|
+
'available_actions': :'Array<String>',
|
93
88
|
'lifecycle_details': :'String',
|
94
89
|
'lifecycle_state': :'String',
|
95
90
|
'time_released': :'DateTime',
|
@@ -104,10 +99,10 @@ module OCI
|
|
104
99
|
|
105
100
|
# Initializes the object
|
106
101
|
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
-
# @option attributes [Array<String>] :available_actions The value to assign to the {#available_actions} property
|
108
|
-
# @option attributes [String] :description The value to assign to the {#description} property
|
109
102
|
# @option attributes [String] :id The value to assign to the {#id} property
|
103
|
+
# @option attributes [String] :description The value to assign to the {#description} property
|
110
104
|
# @option attributes [String] :last_action The value to assign to the {#last_action} property
|
105
|
+
# @option attributes [Array<String>] :available_actions The value to assign to the {#available_actions} property
|
111
106
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
112
107
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
113
108
|
# @option attributes [DateTime] :time_released The value to assign to the {#time_released} property
|
@@ -115,25 +110,22 @@ module OCI
|
|
115
110
|
def initialize(attributes = {})
|
116
111
|
return unless attributes.is_a?(Hash)
|
117
112
|
|
118
|
-
|
119
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
120
|
-
|
121
|
-
self.available_actions = attributes[:'availableActions'] if attributes[:'availableActions']
|
122
|
-
|
123
|
-
raise 'You cannot provide both :availableActions and :available_actions' if attributes.key?(:'availableActions') && attributes.key?(:'available_actions')
|
124
|
-
|
125
|
-
self.available_actions = attributes[:'available_actions'] if attributes[:'available_actions']
|
113
|
+
self.id = attributes[:'id'] if attributes[:'id']
|
126
114
|
|
127
115
|
self.description = attributes[:'description'] if attributes[:'description']
|
128
116
|
|
129
|
-
self.id = attributes[:'id'] if attributes[:'id']
|
130
|
-
|
131
117
|
self.last_action = attributes[:'lastAction'] if attributes[:'lastAction']
|
132
118
|
|
133
119
|
raise 'You cannot provide both :lastAction and :last_action' if attributes.key?(:'lastAction') && attributes.key?(:'last_action')
|
134
120
|
|
135
121
|
self.last_action = attributes[:'last_action'] if attributes[:'last_action']
|
136
122
|
|
123
|
+
self.available_actions = attributes[:'availableActions'] if attributes[:'availableActions']
|
124
|
+
|
125
|
+
raise 'You cannot provide both :availableActions and :available_actions' if attributes.key?(:'availableActions') && attributes.key?(:'available_actions')
|
126
|
+
|
127
|
+
self.available_actions = attributes[:'available_actions'] if attributes[:'available_actions']
|
128
|
+
|
137
129
|
self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails']
|
138
130
|
|
139
131
|
raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details')
|
@@ -157,6 +149,21 @@ module OCI
|
|
157
149
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
158
150
|
# rubocop:enable Metrics/LineLength, Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
159
151
|
|
152
|
+
# Custom attribute writer method checking allowed values (enum).
|
153
|
+
# @param [Object] last_action Object to be assigned
|
154
|
+
def last_action=(last_action)
|
155
|
+
# rubocop:disable Style/ConditionalAssignment
|
156
|
+
if last_action && !LAST_ACTION_ENUM.include?(last_action)
|
157
|
+
# rubocop: disable Metrics/LineLength
|
158
|
+
OCI.logger.debug("Unknown value for 'last_action' [" + last_action + "]. Mapping to 'LAST_ACTION_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
159
|
+
# rubocop: enable Metrics/LineLength
|
160
|
+
@last_action = LAST_ACTION_UNKNOWN_ENUM_VALUE
|
161
|
+
else
|
162
|
+
@last_action = last_action
|
163
|
+
end
|
164
|
+
# rubocop:enable Style/ConditionalAssignment
|
165
|
+
end
|
166
|
+
|
160
167
|
# Custom attribute writer method checking allowed values (enum).
|
161
168
|
# @param [Object] available_actions Object to be assigned
|
162
169
|
def available_actions=(available_actions)
|
@@ -179,21 +186,6 @@ module OCI
|
|
179
186
|
# rubocop:enable Style/ConditionalAssignment
|
180
187
|
end
|
181
188
|
|
182
|
-
# Custom attribute writer method checking allowed values (enum).
|
183
|
-
# @param [Object] last_action Object to be assigned
|
184
|
-
def last_action=(last_action)
|
185
|
-
# rubocop:disable Style/ConditionalAssignment
|
186
|
-
if last_action && !LAST_ACTION_ENUM.include?(last_action)
|
187
|
-
# rubocop: disable Metrics/LineLength
|
188
|
-
OCI.logger.debug("Unknown value for 'last_action' [" + last_action + "]. Mapping to 'LAST_ACTION_UNKNOWN_ENUM_VALUE'") if OCI.logger
|
189
|
-
# rubocop: enable Metrics/LineLength
|
190
|
-
@last_action = LAST_ACTION_UNKNOWN_ENUM_VALUE
|
191
|
-
else
|
192
|
-
@last_action = last_action
|
193
|
-
end
|
194
|
-
# rubocop:enable Style/ConditionalAssignment
|
195
|
-
end
|
196
|
-
|
197
189
|
# Custom attribute writer method checking allowed values (enum).
|
198
190
|
# @param [Object] lifecycle_state Object to be assigned
|
199
191
|
def lifecycle_state=(lifecycle_state)
|
@@ -218,10 +210,10 @@ module OCI
|
|
218
210
|
return true if equal?(other)
|
219
211
|
|
220
212
|
self.class == other.class &&
|
221
|
-
available_actions == other.available_actions &&
|
222
|
-
description == other.description &&
|
223
213
|
id == other.id &&
|
214
|
+
description == other.description &&
|
224
215
|
last_action == other.last_action &&
|
216
|
+
available_actions == other.available_actions &&
|
225
217
|
lifecycle_details == other.lifecycle_details &&
|
226
218
|
lifecycle_state == other.lifecycle_state &&
|
227
219
|
time_released == other.time_released &&
|
@@ -241,7 +233,7 @@ module OCI
|
|
241
233
|
# Calculates hash code according to all attributes.
|
242
234
|
# @return [Fixnum] Hash code
|
243
235
|
def hash
|
244
|
-
[
|
236
|
+
[id, description, last_action, available_actions, lifecycle_details, lifecycle_state, time_released, version].hash
|
245
237
|
end
|
246
238
|
# rubocop:enable Metrics/AbcSize, Metrics/LineLength, Layout/EmptyLines
|
247
239
|
|