oci 2.5.9 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/autoscaling/auto_scaling_client.rb +73 -0
- data/lib/oci/autoscaling/autoscaling.rb +1 -0
- data/lib/oci/autoscaling/models/change_auto_scaling_compartment_details.rb +154 -0
- data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +0 -1
- data/lib/oci/container_engine/models/work_request_error.rb +0 -1
- data/lib/oci/core/blockstorage_client.rb +342 -0
- data/lib/oci/core/compute_client.rb +77 -5
- data/lib/oci/core/compute_client_composite_operations.rb +3 -3
- data/lib/oci/core/compute_management_client.rb +211 -0
- data/lib/oci/core/core.rb +27 -0
- data/lib/oci/core/models/add_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/add_security_rule_details.rb +388 -0
- data/lib/oci/core/models/added_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_image_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_instance_configuration_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_pool_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_nat_gateway_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_route_table_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_security_list_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_service_gateway_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_subnet_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_vcn_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +153 -0
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +153 -0
- data/lib/oci/core/models/create_network_security_group_details.rb +223 -0
- data/lib/oci/core/models/create_vnic_details.rb +18 -1
- data/lib/oci/core/models/image.rb +2 -1
- data/lib/oci/core/models/instance_configuration.rb +3 -1
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +18 -1
- data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +15 -1
- data/lib/oci/core/models/instance_configuration_summary.rb +3 -3
- data/lib/oci/core/models/instance_pool.rb +4 -1
- data/lib/oci/core/models/instance_pool_summary.rb +3 -3
- data/lib/oci/core/models/network_security_group.rb +324 -0
- data/lib/oci/core/models/network_security_group_vnic.rb +188 -0
- data/lib/oci/core/models/remove_network_security_group_security_rules_details.rb +154 -0
- data/lib/oci/core/models/security_list.rb +5 -0
- data/lib/oci/core/models/security_rule.rb +455 -0
- data/lib/oci/core/models/update_network_security_group_details.rb +189 -0
- data/lib/oci/core/models/update_network_security_group_security_rules_details.rb +153 -0
- data/lib/oci/core/models/update_security_rule_details.rb +404 -0
- data/lib/oci/core/models/update_vnic_details.rb +20 -1
- data/lib/oci/core/models/updated_network_security_group_security_rules.rb +153 -0
- data/lib/oci/core/models/vnic.rb +18 -1
- data/lib/oci/core/virtual_network_client.rb +1228 -132
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +19 -0
- data/lib/oci/database/database_client.rb +1066 -46
- data/lib/oci/database/database_client_composite_operations.rb +317 -0
- data/lib/oci/database/models/autonomous_container_database.rb +416 -0
- data/lib/oci/database/models/autonomous_container_database_backup_config.rb +157 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +420 -0
- data/lib/oci/database/models/autonomous_database.rb +58 -1
- data/lib/oci/database/models/autonomous_database_backup.rb +16 -1
- data/lib/oci/database/models/autonomous_database_backup_summary.rb +16 -1
- data/lib/oci/database/models/autonomous_database_connection_strings.rb +11 -1
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +170 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +58 -1
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +419 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_maintenance_window.rb +186 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_shape_summary.rb +224 -0
- data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +436 -0
- data/lib/oci/database/models/backup.rb +1 -0
- data/lib/oci/database/models/backup_summary.rb +1 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +284 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +46 -1
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +13 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +13 -1
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +34 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +1 -1
- data/lib/oci/database/models/day_of_week.rb +174 -0
- data/lib/oci/database/models/db_system.rb +34 -1
- data/lib/oci/database/models/db_system_summary.rb +34 -1
- data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +304 -0
- data/lib/oci/database/models/launch_db_system_base.rb +35 -2
- data/lib/oci/database/models/launch_db_system_details.rb +11 -2
- data/lib/oci/database/models/launch_db_system_from_backup_details.rb +11 -2
- data/lib/oci/database/models/maintenance_run.rb +392 -0
- data/lib/oci/database/models/maintenance_run_summary.rb +395 -0
- data/lib/oci/database/models/maintenance_window.rb +226 -0
- data/lib/oci/database/models/month.rb +179 -0
- data/lib/oci/database/models/restore_autonomous_database_details.rb +30 -4
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +230 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +18 -1
- data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +203 -0
- data/lib/oci/database/models/update_db_system_details.rb +37 -4
- data/lib/oci/database/models/update_maintenance_run_details.rb +154 -0
- data/lib/oci/email/email.rb +1 -0
- data/lib/oci/email/email_client.rb +62 -0
- data/lib/oci/email/models/change_sender_compartment_details.rb +157 -0
- data/lib/oci/key_management/key_management.rb +1 -0
- data/lib/oci/key_management/kms_crypto_client.rb +4 -4
- data/lib/oci/key_management/kms_management_client.rb +161 -10
- data/lib/oci/key_management/kms_management_client_composite_operations.rb +79 -0
- data/lib/oci/key_management/kms_vault_client.rb +16 -11
- data/lib/oci/key_management/models/key.rb +17 -1
- data/lib/oci/key_management/models/schedule_key_deletion_details.rb +156 -0
- data/lib/oci/load_balancer/load_balancer.rb +1 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +64 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
- data/lib/oci/load_balancer/models/load_balancer.rb +16 -1
- data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/remove_http_response_header_rule.rb +1 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +9 -5
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -0
- data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +154 -0
- data/lib/oci/monitoring/models/metric.rb +1 -0
- data/lib/oci/object_storage/models/work_request_error.rb +1 -0
- data/lib/oci/resource_manager/models/change_stack_compartment_details.rb +155 -0
- data/lib/oci/resource_manager/models/work_request.rb +293 -0
- data/lib/oci/resource_manager/models/work_request_error.rb +170 -0
- data/lib/oci/resource_manager/models/work_request_log_entry.rb +159 -0
- data/lib/oci/resource_manager/models/work_request_resource.rb +217 -0
- data/lib/oci/resource_manager/models/work_request_summary.rb +254 -0
- data/lib/oci/resource_manager/resource_manager.rb +6 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +338 -0
- data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +50 -0
- data/lib/oci/streaming/stream_admin_client.rb +2 -2
- data/lib/oci/streaming/stream_client.rb +1 -1
- data/lib/oci/version.rb +1 -1
- metadata +58 -2
|
@@ -23,6 +23,7 @@ module OCI
|
|
|
23
23
|
LIFECYCLE_STATE_SCALE_IN_PROGRESS = 'SCALE_IN_PROGRESS'.freeze,
|
|
24
24
|
LIFECYCLE_STATE_AVAILABLE_NEEDS_ATTENTION = 'AVAILABLE_NEEDS_ATTENTION'.freeze,
|
|
25
25
|
LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
|
|
26
|
+
LIFECYCLE_STATE_MAINTENANCE_IN_PROGRESS = 'MAINTENANCE_IN_PROGRESS'.freeze,
|
|
26
27
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
27
28
|
].freeze
|
|
28
29
|
|
|
@@ -66,6 +67,15 @@ module OCI
|
|
|
66
67
|
# @return [Integer]
|
|
67
68
|
attr_accessor :data_storage_size_in_tbs
|
|
68
69
|
|
|
70
|
+
# True if it is dedicated database.
|
|
71
|
+
#
|
|
72
|
+
# @return [BOOLEAN]
|
|
73
|
+
attr_accessor :is_dedicated
|
|
74
|
+
|
|
75
|
+
# The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :autonomous_container_database_id
|
|
78
|
+
|
|
69
79
|
# The date and time the database was created.
|
|
70
80
|
# @return [DateTime]
|
|
71
81
|
attr_accessor :time_created
|
|
@@ -82,6 +92,9 @@ module OCI
|
|
|
82
92
|
# @return [OCI::Database::Models::AutonomousDatabaseConnectionStrings]
|
|
83
93
|
attr_accessor :connection_strings
|
|
84
94
|
|
|
95
|
+
# @return [OCI::Database::Models::AutonomousDatabaseConnectionUrls]
|
|
96
|
+
attr_accessor :connection_urls
|
|
97
|
+
|
|
85
98
|
# The Oracle license model that applies to the Oracle Autonomous Database. The default is BRING_YOUR_OWN_LICENSE.
|
|
86
99
|
#
|
|
87
100
|
# @return [String]
|
|
@@ -111,6 +124,10 @@ module OCI
|
|
|
111
124
|
# @return [String]
|
|
112
125
|
attr_accessor :db_version
|
|
113
126
|
|
|
127
|
+
# Indicates if the Autonomous Database version is a preview version.
|
|
128
|
+
# @return [BOOLEAN]
|
|
129
|
+
attr_accessor :is_preview
|
|
130
|
+
|
|
114
131
|
# The Autonomous Database workload type. OLTP indicates an Autonomous Transaction Processing database and DW indicates an Autonomous Data Warehouse database.
|
|
115
132
|
# @return [String]
|
|
116
133
|
attr_reader :db_workload
|
|
@@ -135,15 +152,19 @@ module OCI
|
|
|
135
152
|
'db_name': :'dbName',
|
|
136
153
|
'cpu_core_count': :'cpuCoreCount',
|
|
137
154
|
'data_storage_size_in_tbs': :'dataStorageSizeInTBs',
|
|
155
|
+
'is_dedicated': :'isDedicated',
|
|
156
|
+
'autonomous_container_database_id': :'autonomousContainerDatabaseId',
|
|
138
157
|
'time_created': :'timeCreated',
|
|
139
158
|
'display_name': :'displayName',
|
|
140
159
|
'service_console_url': :'serviceConsoleUrl',
|
|
141
160
|
'connection_strings': :'connectionStrings',
|
|
161
|
+
'connection_urls': :'connectionUrls',
|
|
142
162
|
'license_model': :'licenseModel',
|
|
143
163
|
'used_data_storage_size_in_tbs': :'usedDataStorageSizeInTBs',
|
|
144
164
|
'freeform_tags': :'freeformTags',
|
|
145
165
|
'defined_tags': :'definedTags',
|
|
146
166
|
'db_version': :'dbVersion',
|
|
167
|
+
'is_preview': :'isPreview',
|
|
147
168
|
'db_workload': :'dbWorkload',
|
|
148
169
|
'whitelisted_ips': :'whitelistedIps',
|
|
149
170
|
'is_auto_scaling_enabled': :'isAutoScalingEnabled'
|
|
@@ -162,15 +183,19 @@ module OCI
|
|
|
162
183
|
'db_name': :'String',
|
|
163
184
|
'cpu_core_count': :'Integer',
|
|
164
185
|
'data_storage_size_in_tbs': :'Integer',
|
|
186
|
+
'is_dedicated': :'BOOLEAN',
|
|
187
|
+
'autonomous_container_database_id': :'String',
|
|
165
188
|
'time_created': :'DateTime',
|
|
166
189
|
'display_name': :'String',
|
|
167
190
|
'service_console_url': :'String',
|
|
168
191
|
'connection_strings': :'OCI::Database::Models::AutonomousDatabaseConnectionStrings',
|
|
192
|
+
'connection_urls': :'OCI::Database::Models::AutonomousDatabaseConnectionUrls',
|
|
169
193
|
'license_model': :'String',
|
|
170
194
|
'used_data_storage_size_in_tbs': :'Integer',
|
|
171
195
|
'freeform_tags': :'Hash<String, String>',
|
|
172
196
|
'defined_tags': :'Hash<String, Hash<String, Object>>',
|
|
173
197
|
'db_version': :'String',
|
|
198
|
+
'is_preview': :'BOOLEAN',
|
|
174
199
|
'db_workload': :'String',
|
|
175
200
|
'whitelisted_ips': :'Array<String>',
|
|
176
201
|
'is_auto_scaling_enabled': :'BOOLEAN'
|
|
@@ -191,15 +216,19 @@ module OCI
|
|
|
191
216
|
# @option attributes [String] :db_name The value to assign to the {#db_name} property
|
|
192
217
|
# @option attributes [Integer] :cpu_core_count The value to assign to the {#cpu_core_count} property
|
|
193
218
|
# @option attributes [Integer] :data_storage_size_in_tbs The value to assign to the {#data_storage_size_in_tbs} property
|
|
219
|
+
# @option attributes [BOOLEAN] :is_dedicated The value to assign to the {#is_dedicated} property
|
|
220
|
+
# @option attributes [String] :autonomous_container_database_id The value to assign to the {#autonomous_container_database_id} property
|
|
194
221
|
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
195
222
|
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
196
223
|
# @option attributes [String] :service_console_url The value to assign to the {#service_console_url} property
|
|
197
224
|
# @option attributes [OCI::Database::Models::AutonomousDatabaseConnectionStrings] :connection_strings The value to assign to the {#connection_strings} property
|
|
225
|
+
# @option attributes [OCI::Database::Models::AutonomousDatabaseConnectionUrls] :connection_urls The value to assign to the {#connection_urls} property
|
|
198
226
|
# @option attributes [String] :license_model The value to assign to the {#license_model} property
|
|
199
227
|
# @option attributes [Integer] :used_data_storage_size_in_tbs The value to assign to the {#used_data_storage_size_in_tbs} property
|
|
200
228
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
201
229
|
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
|
202
230
|
# @option attributes [String] :db_version The value to assign to the {#db_version} property
|
|
231
|
+
# @option attributes [BOOLEAN] :is_preview The value to assign to the {#is_preview} property
|
|
203
232
|
# @option attributes [String] :db_workload The value to assign to the {#db_workload} property
|
|
204
233
|
# @option attributes [Array<String>] :whitelisted_ips The value to assign to the {#whitelisted_ips} property
|
|
205
234
|
# @option attributes [BOOLEAN] :is_auto_scaling_enabled The value to assign to the {#is_auto_scaling_enabled} property
|
|
@@ -244,6 +273,18 @@ module OCI
|
|
|
244
273
|
|
|
245
274
|
self.data_storage_size_in_tbs = attributes[:'data_storage_size_in_tbs'] if attributes[:'data_storage_size_in_tbs']
|
|
246
275
|
|
|
276
|
+
self.is_dedicated = attributes[:'isDedicated'] unless attributes[:'isDedicated'].nil?
|
|
277
|
+
|
|
278
|
+
raise 'You cannot provide both :isDedicated and :is_dedicated' if attributes.key?(:'isDedicated') && attributes.key?(:'is_dedicated')
|
|
279
|
+
|
|
280
|
+
self.is_dedicated = attributes[:'is_dedicated'] unless attributes[:'is_dedicated'].nil?
|
|
281
|
+
|
|
282
|
+
self.autonomous_container_database_id = attributes[:'autonomousContainerDatabaseId'] if attributes[:'autonomousContainerDatabaseId']
|
|
283
|
+
|
|
284
|
+
raise 'You cannot provide both :autonomousContainerDatabaseId and :autonomous_container_database_id' if attributes.key?(:'autonomousContainerDatabaseId') && attributes.key?(:'autonomous_container_database_id')
|
|
285
|
+
|
|
286
|
+
self.autonomous_container_database_id = attributes[:'autonomous_container_database_id'] if attributes[:'autonomous_container_database_id']
|
|
287
|
+
|
|
247
288
|
self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']
|
|
248
289
|
|
|
249
290
|
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
@@ -268,6 +309,12 @@ module OCI
|
|
|
268
309
|
|
|
269
310
|
self.connection_strings = attributes[:'connection_strings'] if attributes[:'connection_strings']
|
|
270
311
|
|
|
312
|
+
self.connection_urls = attributes[:'connectionUrls'] if attributes[:'connectionUrls']
|
|
313
|
+
|
|
314
|
+
raise 'You cannot provide both :connectionUrls and :connection_urls' if attributes.key?(:'connectionUrls') && attributes.key?(:'connection_urls')
|
|
315
|
+
|
|
316
|
+
self.connection_urls = attributes[:'connection_urls'] if attributes[:'connection_urls']
|
|
317
|
+
|
|
271
318
|
self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel']
|
|
272
319
|
|
|
273
320
|
raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model')
|
|
@@ -298,6 +345,12 @@ module OCI
|
|
|
298
345
|
|
|
299
346
|
self.db_version = attributes[:'db_version'] if attributes[:'db_version']
|
|
300
347
|
|
|
348
|
+
self.is_preview = attributes[:'isPreview'] unless attributes[:'isPreview'].nil?
|
|
349
|
+
|
|
350
|
+
raise 'You cannot provide both :isPreview and :is_preview' if attributes.key?(:'isPreview') && attributes.key?(:'is_preview')
|
|
351
|
+
|
|
352
|
+
self.is_preview = attributes[:'is_preview'] unless attributes[:'is_preview'].nil?
|
|
353
|
+
|
|
301
354
|
self.db_workload = attributes[:'dbWorkload'] if attributes[:'dbWorkload']
|
|
302
355
|
|
|
303
356
|
raise 'You cannot provide both :dbWorkload and :db_workload' if attributes.key?(:'dbWorkload') && attributes.key?(:'db_workload')
|
|
@@ -374,15 +427,19 @@ module OCI
|
|
|
374
427
|
db_name == other.db_name &&
|
|
375
428
|
cpu_core_count == other.cpu_core_count &&
|
|
376
429
|
data_storage_size_in_tbs == other.data_storage_size_in_tbs &&
|
|
430
|
+
is_dedicated == other.is_dedicated &&
|
|
431
|
+
autonomous_container_database_id == other.autonomous_container_database_id &&
|
|
377
432
|
time_created == other.time_created &&
|
|
378
433
|
display_name == other.display_name &&
|
|
379
434
|
service_console_url == other.service_console_url &&
|
|
380
435
|
connection_strings == other.connection_strings &&
|
|
436
|
+
connection_urls == other.connection_urls &&
|
|
381
437
|
license_model == other.license_model &&
|
|
382
438
|
used_data_storage_size_in_tbs == other.used_data_storage_size_in_tbs &&
|
|
383
439
|
freeform_tags == other.freeform_tags &&
|
|
384
440
|
defined_tags == other.defined_tags &&
|
|
385
441
|
db_version == other.db_version &&
|
|
442
|
+
is_preview == other.is_preview &&
|
|
386
443
|
db_workload == other.db_workload &&
|
|
387
444
|
whitelisted_ips == other.whitelisted_ips &&
|
|
388
445
|
is_auto_scaling_enabled == other.is_auto_scaling_enabled
|
|
@@ -401,7 +458,7 @@ module OCI
|
|
|
401
458
|
# Calculates hash code according to all attributes.
|
|
402
459
|
# @return [Fixnum] Hash code
|
|
403
460
|
def hash
|
|
404
|
-
[id, compartment_id, lifecycle_state, lifecycle_details, db_name, cpu_core_count, data_storage_size_in_tbs, time_created, display_name, service_console_url, connection_strings, license_model, used_data_storage_size_in_tbs, freeform_tags, defined_tags, db_version, db_workload, whitelisted_ips, is_auto_scaling_enabled].hash
|
|
461
|
+
[id, compartment_id, lifecycle_state, lifecycle_details, db_name, cpu_core_count, data_storage_size_in_tbs, is_dedicated, autonomous_container_database_id, time_created, display_name, service_console_url, connection_strings, connection_urls, license_model, used_data_storage_size_in_tbs, freeform_tags, defined_tags, db_version, is_preview, db_workload, whitelisted_ips, is_auto_scaling_enabled].hash
|
|
405
462
|
end
|
|
406
463
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
407
464
|
|
|
@@ -59,6 +59,11 @@ module OCI
|
|
|
59
59
|
# @return [String]
|
|
60
60
|
attr_accessor :lifecycle_details
|
|
61
61
|
|
|
62
|
+
# The size of the database in terabytes at the time the backup was taken.
|
|
63
|
+
#
|
|
64
|
+
# @return [Float]
|
|
65
|
+
attr_accessor :database_size_in_tbs
|
|
66
|
+
|
|
62
67
|
# **[Required]** The current state of the backup.
|
|
63
68
|
# @return [String]
|
|
64
69
|
attr_reader :lifecycle_state
|
|
@@ -76,6 +81,7 @@ module OCI
|
|
|
76
81
|
'time_started': :'timeStarted',
|
|
77
82
|
'time_ended': :'timeEnded',
|
|
78
83
|
'lifecycle_details': :'lifecycleDetails',
|
|
84
|
+
'database_size_in_tbs': :'databaseSizeInTBs',
|
|
79
85
|
'lifecycle_state': :'lifecycleState'
|
|
80
86
|
# rubocop:enable Style/SymbolLiteral
|
|
81
87
|
}
|
|
@@ -94,6 +100,7 @@ module OCI
|
|
|
94
100
|
'time_started': :'DateTime',
|
|
95
101
|
'time_ended': :'DateTime',
|
|
96
102
|
'lifecycle_details': :'String',
|
|
103
|
+
'database_size_in_tbs': :'Float',
|
|
97
104
|
'lifecycle_state': :'String'
|
|
98
105
|
# rubocop:enable Style/SymbolLiteral
|
|
99
106
|
}
|
|
@@ -114,6 +121,7 @@ module OCI
|
|
|
114
121
|
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
|
115
122
|
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
|
116
123
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
|
124
|
+
# @option attributes [Float] :database_size_in_tbs The value to assign to the {#database_size_in_tbs} property
|
|
117
125
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
118
126
|
def initialize(attributes = {})
|
|
119
127
|
return unless attributes.is_a?(Hash)
|
|
@@ -164,6 +172,12 @@ module OCI
|
|
|
164
172
|
|
|
165
173
|
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
|
166
174
|
|
|
175
|
+
self.database_size_in_tbs = attributes[:'databaseSizeInTBs'] if attributes[:'databaseSizeInTBs']
|
|
176
|
+
|
|
177
|
+
raise 'You cannot provide both :databaseSizeInTBs and :database_size_in_tbs' if attributes.key?(:'databaseSizeInTBs') && attributes.key?(:'database_size_in_tbs')
|
|
178
|
+
|
|
179
|
+
self.database_size_in_tbs = attributes[:'database_size_in_tbs'] if attributes[:'database_size_in_tbs']
|
|
180
|
+
|
|
167
181
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
168
182
|
|
|
169
183
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
@@ -217,6 +231,7 @@ module OCI
|
|
|
217
231
|
time_started == other.time_started &&
|
|
218
232
|
time_ended == other.time_ended &&
|
|
219
233
|
lifecycle_details == other.lifecycle_details &&
|
|
234
|
+
database_size_in_tbs == other.database_size_in_tbs &&
|
|
220
235
|
lifecycle_state == other.lifecycle_state
|
|
221
236
|
end
|
|
222
237
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
@@ -233,7 +248,7 @@ module OCI
|
|
|
233
248
|
# Calculates hash code according to all attributes.
|
|
234
249
|
# @return [Fixnum] Hash code
|
|
235
250
|
def hash
|
|
236
|
-
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, lifecycle_state].hash
|
|
251
|
+
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state].hash
|
|
237
252
|
end
|
|
238
253
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
239
254
|
|
|
@@ -62,6 +62,11 @@ module OCI
|
|
|
62
62
|
# @return [String]
|
|
63
63
|
attr_accessor :lifecycle_details
|
|
64
64
|
|
|
65
|
+
# The size of the database in terabytes at the time the backup was taken.
|
|
66
|
+
#
|
|
67
|
+
# @return [Float]
|
|
68
|
+
attr_accessor :database_size_in_tbs
|
|
69
|
+
|
|
65
70
|
# **[Required]** The current state of the backup.
|
|
66
71
|
# @return [String]
|
|
67
72
|
attr_reader :lifecycle_state
|
|
@@ -79,6 +84,7 @@ module OCI
|
|
|
79
84
|
'time_started': :'timeStarted',
|
|
80
85
|
'time_ended': :'timeEnded',
|
|
81
86
|
'lifecycle_details': :'lifecycleDetails',
|
|
87
|
+
'database_size_in_tbs': :'databaseSizeInTBs',
|
|
82
88
|
'lifecycle_state': :'lifecycleState'
|
|
83
89
|
# rubocop:enable Style/SymbolLiteral
|
|
84
90
|
}
|
|
@@ -97,6 +103,7 @@ module OCI
|
|
|
97
103
|
'time_started': :'DateTime',
|
|
98
104
|
'time_ended': :'DateTime',
|
|
99
105
|
'lifecycle_details': :'String',
|
|
106
|
+
'database_size_in_tbs': :'Float',
|
|
100
107
|
'lifecycle_state': :'String'
|
|
101
108
|
# rubocop:enable Style/SymbolLiteral
|
|
102
109
|
}
|
|
@@ -117,6 +124,7 @@ module OCI
|
|
|
117
124
|
# @option attributes [DateTime] :time_started The value to assign to the {#time_started} property
|
|
118
125
|
# @option attributes [DateTime] :time_ended The value to assign to the {#time_ended} property
|
|
119
126
|
# @option attributes [String] :lifecycle_details The value to assign to the {#lifecycle_details} property
|
|
127
|
+
# @option attributes [Float] :database_size_in_tbs The value to assign to the {#database_size_in_tbs} property
|
|
120
128
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
121
129
|
def initialize(attributes = {})
|
|
122
130
|
return unless attributes.is_a?(Hash)
|
|
@@ -170,6 +178,12 @@ module OCI
|
|
|
170
178
|
|
|
171
179
|
self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details']
|
|
172
180
|
|
|
181
|
+
self.database_size_in_tbs = attributes[:'databaseSizeInTBs'] if attributes[:'databaseSizeInTBs']
|
|
182
|
+
|
|
183
|
+
raise 'You cannot provide both :databaseSizeInTBs and :database_size_in_tbs' if attributes.key?(:'databaseSizeInTBs') && attributes.key?(:'database_size_in_tbs')
|
|
184
|
+
|
|
185
|
+
self.database_size_in_tbs = attributes[:'database_size_in_tbs'] if attributes[:'database_size_in_tbs']
|
|
186
|
+
|
|
173
187
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
174
188
|
|
|
175
189
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
@@ -223,6 +237,7 @@ module OCI
|
|
|
223
237
|
time_started == other.time_started &&
|
|
224
238
|
time_ended == other.time_ended &&
|
|
225
239
|
lifecycle_details == other.lifecycle_details &&
|
|
240
|
+
database_size_in_tbs == other.database_size_in_tbs &&
|
|
226
241
|
lifecycle_state == other.lifecycle_state
|
|
227
242
|
end
|
|
228
243
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
@@ -239,7 +254,7 @@ module OCI
|
|
|
239
254
|
# Calculates hash code according to all attributes.
|
|
240
255
|
# @return [Fixnum] Hash code
|
|
241
256
|
def hash
|
|
242
|
-
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, lifecycle_state].hash
|
|
257
|
+
[id, compartment_id, autonomous_database_id, display_name, type, is_automatic, time_started, time_ended, lifecycle_details, database_size_in_tbs, lifecycle_state].hash
|
|
243
258
|
end
|
|
244
259
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
245
260
|
|
|
@@ -19,6 +19,10 @@ module OCI
|
|
|
19
19
|
# @return [String]
|
|
20
20
|
attr_accessor :low
|
|
21
21
|
|
|
22
|
+
# The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.
|
|
23
|
+
# @return [String]
|
|
24
|
+
attr_accessor :dedicated
|
|
25
|
+
|
|
22
26
|
# Returns all connection strings that can be used to connect to the Autonomous Database.
|
|
23
27
|
# For more information, please see [Predefined Database Service Names for Autonomous Transaction Processing](https://docs.oracle.com/en/cloud/paas/atp-cloud/atpug/connect-predefined.html#GUID-9747539B-FD46-44F1-8FF8-F5AC650F15BE)
|
|
24
28
|
#
|
|
@@ -32,6 +36,7 @@ module OCI
|
|
|
32
36
|
'high': :'high',
|
|
33
37
|
'medium': :'medium',
|
|
34
38
|
'low': :'low',
|
|
39
|
+
'dedicated': :'dedicated',
|
|
35
40
|
'all_connection_strings': :'allConnectionStrings'
|
|
36
41
|
# rubocop:enable Style/SymbolLiteral
|
|
37
42
|
}
|
|
@@ -44,6 +49,7 @@ module OCI
|
|
|
44
49
|
'high': :'String',
|
|
45
50
|
'medium': :'String',
|
|
46
51
|
'low': :'String',
|
|
52
|
+
'dedicated': :'String',
|
|
47
53
|
'all_connection_strings': :'Hash<String, String>'
|
|
48
54
|
# rubocop:enable Style/SymbolLiteral
|
|
49
55
|
}
|
|
@@ -58,6 +64,7 @@ module OCI
|
|
|
58
64
|
# @option attributes [String] :high The value to assign to the {#high} property
|
|
59
65
|
# @option attributes [String] :medium The value to assign to the {#medium} property
|
|
60
66
|
# @option attributes [String] :low The value to assign to the {#low} property
|
|
67
|
+
# @option attributes [String] :dedicated The value to assign to the {#dedicated} property
|
|
61
68
|
# @option attributes [Hash<String, String>] :all_connection_strings The value to assign to the {#all_connection_strings} property
|
|
62
69
|
def initialize(attributes = {})
|
|
63
70
|
return unless attributes.is_a?(Hash)
|
|
@@ -71,6 +78,8 @@ module OCI
|
|
|
71
78
|
|
|
72
79
|
self.low = attributes[:'low'] if attributes[:'low']
|
|
73
80
|
|
|
81
|
+
self.dedicated = attributes[:'dedicated'] if attributes[:'dedicated']
|
|
82
|
+
|
|
74
83
|
self.all_connection_strings = attributes[:'allConnectionStrings'] if attributes[:'allConnectionStrings']
|
|
75
84
|
|
|
76
85
|
raise 'You cannot provide both :allConnectionStrings and :all_connection_strings' if attributes.key?(:'allConnectionStrings') && attributes.key?(:'all_connection_strings')
|
|
@@ -92,6 +101,7 @@ module OCI
|
|
|
92
101
|
high == other.high &&
|
|
93
102
|
medium == other.medium &&
|
|
94
103
|
low == other.low &&
|
|
104
|
+
dedicated == other.dedicated &&
|
|
95
105
|
all_connection_strings == other.all_connection_strings
|
|
96
106
|
end
|
|
97
107
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
@@ -108,7 +118,7 @@ module OCI
|
|
|
108
118
|
# Calculates hash code according to all attributes.
|
|
109
119
|
# @return [Fixnum] Hash code
|
|
110
120
|
def hash
|
|
111
|
-
[high, medium, low, all_connection_strings].hash
|
|
121
|
+
[high, medium, low, dedicated, all_connection_strings].hash
|
|
112
122
|
end
|
|
113
123
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
114
124
|
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
|
+
module OCI
|
|
7
|
+
# The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN.
|
|
8
|
+
#
|
|
9
|
+
# Example: `{\"sqlDevWebUrl\": \"https://<hostname>/ords...\", \"apexUrl\", \"https://<hostname>/ords...\"}`
|
|
10
|
+
#
|
|
11
|
+
class Database::Models::AutonomousDatabaseConnectionUrls
|
|
12
|
+
# Oracle SQL Developer Web URL.
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :sql_dev_web_url
|
|
15
|
+
|
|
16
|
+
# Oracle Application Express (APEX) URL.
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :apex_url
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
# rubocop:disable Style/SymbolLiteral
|
|
24
|
+
'sql_dev_web_url': :'sqlDevWebUrl',
|
|
25
|
+
'apex_url': :'apexUrl'
|
|
26
|
+
# rubocop:enable Style/SymbolLiteral
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Attribute type mapping.
|
|
31
|
+
def self.swagger_types
|
|
32
|
+
{
|
|
33
|
+
# rubocop:disable Style/SymbolLiteral
|
|
34
|
+
'sql_dev_web_url': :'String',
|
|
35
|
+
'apex_url': :'String'
|
|
36
|
+
# rubocop:enable Style/SymbolLiteral
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
41
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
# @option attributes [String] :sql_dev_web_url The value to assign to the {#sql_dev_web_url} property
|
|
47
|
+
# @option attributes [String] :apex_url The value to assign to the {#apex_url} property
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
return unless attributes.is_a?(Hash)
|
|
50
|
+
|
|
51
|
+
# convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
53
|
+
|
|
54
|
+
self.sql_dev_web_url = attributes[:'sqlDevWebUrl'] if attributes[:'sqlDevWebUrl']
|
|
55
|
+
|
|
56
|
+
raise 'You cannot provide both :sqlDevWebUrl and :sql_dev_web_url' if attributes.key?(:'sqlDevWebUrl') && attributes.key?(:'sql_dev_web_url')
|
|
57
|
+
|
|
58
|
+
self.sql_dev_web_url = attributes[:'sql_dev_web_url'] if attributes[:'sql_dev_web_url']
|
|
59
|
+
|
|
60
|
+
self.apex_url = attributes[:'apexUrl'] if attributes[:'apexUrl']
|
|
61
|
+
|
|
62
|
+
raise 'You cannot provide both :apexUrl and :apex_url' if attributes.key?(:'apexUrl') && attributes.key?(:'apex_url')
|
|
63
|
+
|
|
64
|
+
self.apex_url = attributes[:'apex_url'] if attributes[:'apex_url']
|
|
65
|
+
end
|
|
66
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
67
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
68
|
+
|
|
69
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
# Checks equality by comparing each attribute.
|
|
73
|
+
# @param [Object] other the other object to be compared
|
|
74
|
+
def ==(other)
|
|
75
|
+
return true if equal?(other)
|
|
76
|
+
|
|
77
|
+
self.class == other.class &&
|
|
78
|
+
sql_dev_web_url == other.sql_dev_web_url &&
|
|
79
|
+
apex_url == other.apex_url
|
|
80
|
+
end
|
|
81
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
82
|
+
|
|
83
|
+
# @see the `==` method
|
|
84
|
+
# @param [Object] other the other object to be compared
|
|
85
|
+
def eql?(other)
|
|
86
|
+
self == other
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# Calculates hash code according to all attributes.
|
|
93
|
+
# @return [Fixnum] Hash code
|
|
94
|
+
def hash
|
|
95
|
+
[sql_dev_web_url, apex_url].hash
|
|
96
|
+
end
|
|
97
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
98
|
+
|
|
99
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# Builds the object from hash
|
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
104
|
+
# @return [Object] Returns the model itself
|
|
105
|
+
def build_from_hash(attributes)
|
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
|
107
|
+
|
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
109
|
+
if type =~ /^Array<(.*)>/i
|
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
|
111
|
+
# is documented as an array but the input is not
|
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
113
|
+
public_method("#{key}=").call(
|
|
114
|
+
attributes[self.class.attribute_map[key]]
|
|
115
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
119
|
+
public_method("#{key}=").call(
|
|
120
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
129
|
+
|
|
130
|
+
# Returns the string representation of the object
|
|
131
|
+
# @return [String] String presentation of the object
|
|
132
|
+
def to_s
|
|
133
|
+
to_hash.to_s
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Returns the object in the form of hash
|
|
137
|
+
# @return [Hash] Returns the object in the form of hash
|
|
138
|
+
def to_hash
|
|
139
|
+
hash = {}
|
|
140
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
141
|
+
value = public_method(attr).call
|
|
142
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
143
|
+
|
|
144
|
+
hash[param] = _to_hash(value)
|
|
145
|
+
end
|
|
146
|
+
hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
private
|
|
150
|
+
|
|
151
|
+
# Outputs non-array value in the form of hash
|
|
152
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
153
|
+
# @param [Object] value Any valid value
|
|
154
|
+
# @return [Hash] Returns the value in the form of hash
|
|
155
|
+
def _to_hash(value)
|
|
156
|
+
if value.is_a?(Array)
|
|
157
|
+
value.compact.map { |v| _to_hash(v) }
|
|
158
|
+
elsif value.is_a?(Hash)
|
|
159
|
+
{}.tap do |hash|
|
|
160
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
161
|
+
end
|
|
162
|
+
elsif value.respond_to? :to_hash
|
|
163
|
+
value.to_hash
|
|
164
|
+
else
|
|
165
|
+
value
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|