oci 2.5.9 → 2.5.10
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/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
@@ -415,6 +415,45 @@ module OCI
|
|
415
415
|
# rubocop:disable Layout/EmptyLines
|
416
416
|
|
417
417
|
|
418
|
+
# Calls {OCI::Core::VirtualNetworkClient#create_network_security_group} and then waits for the {OCI::Core::Models::NetworkSecurityGroup} acted upon
|
419
|
+
# to enter the given state(s).
|
420
|
+
#
|
421
|
+
# @param [OCI::Core::Models::CreateNetworkSecurityGroupDetails] create_network_security_group_details Details for creating a network security group.
|
422
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::NetworkSecurityGroup#lifecycle_state}
|
423
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#create_network_security_group}
|
424
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
425
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
426
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
427
|
+
#
|
428
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::NetworkSecurityGroup}
|
429
|
+
def create_network_security_group_and_wait_for_state(create_network_security_group_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
430
|
+
operation_result = @service_client.create_network_security_group(create_network_security_group_details, base_operation_opts)
|
431
|
+
|
432
|
+
return operation_result if wait_for_states.empty?
|
433
|
+
|
434
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
435
|
+
wait_for_resource_id = operation_result.data.id
|
436
|
+
|
437
|
+
begin
|
438
|
+
waiter_result = @service_client.get_network_security_group(wait_for_resource_id).wait_until(
|
439
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
440
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
441
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
442
|
+
)
|
443
|
+
result_to_return = waiter_result
|
444
|
+
|
445
|
+
return result_to_return
|
446
|
+
rescue StandardError
|
447
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
448
|
+
end
|
449
|
+
end
|
450
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
451
|
+
# rubocop:enable Layout/EmptyLines
|
452
|
+
|
453
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
454
|
+
# rubocop:disable Layout/EmptyLines
|
455
|
+
|
456
|
+
|
418
457
|
# Calls {OCI::Core::VirtualNetworkClient#create_public_ip} and then waits for the {OCI::Core::Models::PublicIp} acted upon
|
419
458
|
# to enter the given state(s).
|
420
459
|
#
|
@@ -1087,6 +1126,46 @@ module OCI
|
|
1087
1126
|
# rubocop:disable Layout/EmptyLines
|
1088
1127
|
|
1089
1128
|
|
1129
|
+
# Calls {OCI::Core::VirtualNetworkClient#delete_network_security_group} and then waits for the {OCI::Core::Models::NetworkSecurityGroup} acted upon
|
1130
|
+
# to enter the given state(s).
|
1131
|
+
#
|
1132
|
+
# @param [String] network_security_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security group.
|
1133
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::NetworkSecurityGroup#lifecycle_state}
|
1134
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#delete_network_security_group}
|
1135
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1136
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1137
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1138
|
+
#
|
1139
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type nil
|
1140
|
+
def delete_network_security_group_and_wait_for_state(network_security_group_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1141
|
+
initial_get_result = @service_client.get_network_security_group(network_security_group_id)
|
1142
|
+
operation_result = @service_client.delete_network_security_group(network_security_group_id, base_operation_opts)
|
1143
|
+
|
1144
|
+
return operation_result if wait_for_states.empty?
|
1145
|
+
|
1146
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1147
|
+
|
1148
|
+
begin
|
1149
|
+
waiter_result = initial_get_result.wait_until(
|
1150
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
1151
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1152
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
|
1153
|
+
succeed_on_not_found: true
|
1154
|
+
)
|
1155
|
+
result_to_return = waiter_result
|
1156
|
+
|
1157
|
+
return result_to_return
|
1158
|
+
rescue StandardError
|
1159
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1160
|
+
end
|
1161
|
+
end
|
1162
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1163
|
+
# rubocop:enable Layout/EmptyLines
|
1164
|
+
|
1165
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1166
|
+
# rubocop:disable Layout/EmptyLines
|
1167
|
+
|
1168
|
+
|
1090
1169
|
# Calls {OCI::Core::VirtualNetworkClient#delete_public_ip} and then waits for the {OCI::Core::Models::PublicIp} acted upon
|
1091
1170
|
# to enter the given state(s).
|
1092
1171
|
#
|
@@ -1848,6 +1927,46 @@ module OCI
|
|
1848
1927
|
# rubocop:disable Layout/EmptyLines
|
1849
1928
|
|
1850
1929
|
|
1930
|
+
# Calls {OCI::Core::VirtualNetworkClient#update_network_security_group} and then waits for the {OCI::Core::Models::NetworkSecurityGroup} acted upon
|
1931
|
+
# to enter the given state(s).
|
1932
|
+
#
|
1933
|
+
# @param [String] network_security_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network security group.
|
1934
|
+
# @param [OCI::Core::Models::UpdateNetworkSecurityGroupDetails] update_network_security_group_details Details object for updating a network security group.
|
1935
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::NetworkSecurityGroup#lifecycle_state}
|
1936
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::VirtualNetworkClient#update_network_security_group}
|
1937
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
1938
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
1939
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
1940
|
+
#
|
1941
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::NetworkSecurityGroup}
|
1942
|
+
def update_network_security_group_and_wait_for_state(network_security_group_id, update_network_security_group_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
1943
|
+
operation_result = @service_client.update_network_security_group(network_security_group_id, update_network_security_group_details, base_operation_opts)
|
1944
|
+
|
1945
|
+
return operation_result if wait_for_states.empty?
|
1946
|
+
|
1947
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
1948
|
+
wait_for_resource_id = operation_result.data.id
|
1949
|
+
|
1950
|
+
begin
|
1951
|
+
waiter_result = @service_client.get_network_security_group(wait_for_resource_id).wait_until(
|
1952
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
1953
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
1954
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
1955
|
+
)
|
1956
|
+
result_to_return = waiter_result
|
1957
|
+
|
1958
|
+
return result_to_return
|
1959
|
+
rescue StandardError
|
1960
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
1961
|
+
end
|
1962
|
+
end
|
1963
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1964
|
+
# rubocop:enable Layout/EmptyLines
|
1965
|
+
|
1966
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
1967
|
+
# rubocop:disable Layout/EmptyLines
|
1968
|
+
|
1969
|
+
|
1851
1970
|
# Calls {OCI::Core::VirtualNetworkClient#update_public_ip} and then waits for the {OCI::Core::Models::PublicIp} acted upon
|
1852
1971
|
# to enter the given state(s).
|
1853
1972
|
#
|
@@ -10,6 +10,9 @@ module OCI
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# Require models
|
13
|
+
require 'oci/database/models/autonomous_container_database'
|
14
|
+
require 'oci/database/models/autonomous_container_database_backup_config'
|
15
|
+
require 'oci/database/models/autonomous_container_database_summary'
|
13
16
|
require 'oci/database/models/autonomous_data_warehouse'
|
14
17
|
require 'oci/database/models/autonomous_data_warehouse_backup'
|
15
18
|
require 'oci/database/models/autonomous_data_warehouse_backup_summary'
|
@@ -19,10 +22,17 @@ require 'oci/database/models/autonomous_database'
|
|
19
22
|
require 'oci/database/models/autonomous_database_backup'
|
20
23
|
require 'oci/database/models/autonomous_database_backup_summary'
|
21
24
|
require 'oci/database/models/autonomous_database_connection_strings'
|
25
|
+
require 'oci/database/models/autonomous_database_connection_urls'
|
22
26
|
require 'oci/database/models/autonomous_database_summary'
|
27
|
+
require 'oci/database/models/autonomous_db_preview_version_summary'
|
28
|
+
require 'oci/database/models/autonomous_exadata_infrastructure'
|
29
|
+
require 'oci/database/models/autonomous_exadata_infrastructure_maintenance_window'
|
30
|
+
require 'oci/database/models/autonomous_exadata_infrastructure_shape_summary'
|
31
|
+
require 'oci/database/models/autonomous_exadata_infrastructure_summary'
|
23
32
|
require 'oci/database/models/backup'
|
24
33
|
require 'oci/database/models/backup_summary'
|
25
34
|
require 'oci/database/models/complete_external_backup_job_details'
|
35
|
+
require 'oci/database/models/create_autonomous_container_database_details'
|
26
36
|
require 'oci/database/models/create_autonomous_data_warehouse_backup_details'
|
27
37
|
require 'oci/database/models/create_autonomous_data_warehouse_details'
|
28
38
|
require 'oci/database/models/create_autonomous_database_backup_details'
|
@@ -46,6 +56,7 @@ require 'oci/database/models/data_guard_association_summary'
|
|
46
56
|
require 'oci/database/models/database'
|
47
57
|
require 'oci/database/models/database_connection_strings'
|
48
58
|
require 'oci/database/models/database_summary'
|
59
|
+
require 'oci/database/models/day_of_week'
|
49
60
|
require 'oci/database/models/db_backup_config'
|
50
61
|
require 'oci/database/models/db_home'
|
51
62
|
require 'oci/database/models/db_home_summary'
|
@@ -63,9 +74,14 @@ require 'oci/database/models/external_backup_job'
|
|
63
74
|
require 'oci/database/models/failover_data_guard_association_details'
|
64
75
|
require 'oci/database/models/generate_autonomous_data_warehouse_wallet_details'
|
65
76
|
require 'oci/database/models/generate_autonomous_database_wallet_details'
|
77
|
+
require 'oci/database/models/launch_autonomous_exadata_infrastructure_details'
|
66
78
|
require 'oci/database/models/launch_db_system_base'
|
67
79
|
require 'oci/database/models/launch_db_system_details'
|
68
80
|
require 'oci/database/models/launch_db_system_from_backup_details'
|
81
|
+
require 'oci/database/models/maintenance_run'
|
82
|
+
require 'oci/database/models/maintenance_run_summary'
|
83
|
+
require 'oci/database/models/maintenance_window'
|
84
|
+
require 'oci/database/models/month'
|
69
85
|
require 'oci/database/models/patch'
|
70
86
|
require 'oci/database/models/patch_details'
|
71
87
|
require 'oci/database/models/patch_history_entry'
|
@@ -76,11 +92,14 @@ require 'oci/database/models/restore_autonomous_data_warehouse_details'
|
|
76
92
|
require 'oci/database/models/restore_autonomous_database_details'
|
77
93
|
require 'oci/database/models/restore_database_details'
|
78
94
|
require 'oci/database/models/switchover_data_guard_association_details'
|
95
|
+
require 'oci/database/models/update_autonomous_container_database_details'
|
79
96
|
require 'oci/database/models/update_autonomous_data_warehouse_details'
|
80
97
|
require 'oci/database/models/update_autonomous_database_details'
|
98
|
+
require 'oci/database/models/update_autonomous_exadata_infrastructure_details'
|
81
99
|
require 'oci/database/models/update_database_details'
|
82
100
|
require 'oci/database/models/update_db_home_details'
|
83
101
|
require 'oci/database/models/update_db_system_details'
|
102
|
+
require 'oci/database/models/update_maintenance_run_details'
|
84
103
|
|
85
104
|
# Require generated clients
|
86
105
|
require 'oci/database/database_client'
|
@@ -177,6 +177,65 @@ module OCI
|
|
177
177
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
178
178
|
|
179
179
|
|
180
|
+
# Create a new Autonomous Container Database in the specified Autonomous Exadata Infrastructure.
|
181
|
+
#
|
182
|
+
# @param [OCI::Database::Models::CreateAutonomousContainerDatabaseDetails] create_autonomous_container_database_details Request to create an Autonomous Container Database in a specified Autonomous Exadata Infrastructure.
|
183
|
+
# @param [Hash] opts the optional parameters
|
184
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
185
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
186
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
187
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
188
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
189
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
190
|
+
# may be rejected).
|
191
|
+
#
|
192
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousContainerDatabase AutonomousContainerDatabase}
|
193
|
+
def create_autonomous_container_database(create_autonomous_container_database_details, opts = {})
|
194
|
+
logger.debug 'Calling operation DatabaseClient#create_autonomous_container_database.' if logger
|
195
|
+
|
196
|
+
raise "Missing the required parameter 'create_autonomous_container_database_details' when calling create_autonomous_container_database." if create_autonomous_container_database_details.nil?
|
197
|
+
|
198
|
+
path = '/autonomousContainerDatabases'
|
199
|
+
operation_signing_strategy = :standard
|
200
|
+
|
201
|
+
# rubocop:disable Style/NegatedIf
|
202
|
+
# Query Params
|
203
|
+
query_params = {}
|
204
|
+
|
205
|
+
# Header Params
|
206
|
+
header_params = {}
|
207
|
+
header_params[:accept] = 'application/json'
|
208
|
+
header_params[:'content-type'] = 'application/json'
|
209
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
210
|
+
# rubocop:enable Style/NegatedIf
|
211
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
212
|
+
|
213
|
+
post_body = @api_client.object_to_http_body(create_autonomous_container_database_details)
|
214
|
+
|
215
|
+
# rubocop:disable Metrics/BlockLength
|
216
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#create_autonomous_container_database') do
|
217
|
+
@api_client.call_api(
|
218
|
+
:POST,
|
219
|
+
path,
|
220
|
+
endpoint,
|
221
|
+
header_params: header_params,
|
222
|
+
query_params: query_params,
|
223
|
+
operation_signing_strategy: operation_signing_strategy,
|
224
|
+
body: post_body,
|
225
|
+
return_type: 'OCI::Database::Models::AutonomousContainerDatabase'
|
226
|
+
)
|
227
|
+
end
|
228
|
+
# rubocop:enable Metrics/BlockLength
|
229
|
+
end
|
230
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
231
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
232
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
233
|
+
|
234
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
235
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
236
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
237
|
+
|
238
|
+
|
180
239
|
# **Deprecated.** To create a new Autonomous Data Warehouse, use the {#create_autonomous_database create_autonomous_database} operation and specify `DW` as the workload type.
|
181
240
|
#
|
182
241
|
# @param [OCI::Database::Models::CreateAutonomousDataWarehouseDetails] create_autonomous_data_warehouse_details Request to create a new Autonomous Data Warehouse.
|
@@ -1268,6 +1327,59 @@ module OCI
|
|
1268
1327
|
# rubocop:disable Lint/UnusedMethodArgument
|
1269
1328
|
|
1270
1329
|
|
1330
|
+
# Gets information about the specified Autonomous Container Database.
|
1331
|
+
# @param [String] autonomous_container_database_id The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
1332
|
+
# @param [Hash] opts the optional parameters
|
1333
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1334
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1335
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousContainerDatabase AutonomousContainerDatabase}
|
1336
|
+
def get_autonomous_container_database(autonomous_container_database_id, opts = {})
|
1337
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_container_database.' if logger
|
1338
|
+
|
1339
|
+
raise "Missing the required parameter 'autonomous_container_database_id' when calling get_autonomous_container_database." if autonomous_container_database_id.nil?
|
1340
|
+
raise "Parameter value for 'autonomous_container_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_container_database_id)
|
1341
|
+
|
1342
|
+
path = '/autonomousContainerDatabases/{autonomousContainerDatabaseId}'.sub('{autonomousContainerDatabaseId}', autonomous_container_database_id.to_s)
|
1343
|
+
operation_signing_strategy = :standard
|
1344
|
+
|
1345
|
+
# rubocop:disable Style/NegatedIf
|
1346
|
+
# Query Params
|
1347
|
+
query_params = {}
|
1348
|
+
|
1349
|
+
# Header Params
|
1350
|
+
header_params = {}
|
1351
|
+
header_params[:accept] = 'application/json'
|
1352
|
+
header_params[:'content-type'] = 'application/json'
|
1353
|
+
# rubocop:enable Style/NegatedIf
|
1354
|
+
|
1355
|
+
post_body = nil
|
1356
|
+
|
1357
|
+
# rubocop:disable Metrics/BlockLength
|
1358
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_container_database') do
|
1359
|
+
@api_client.call_api(
|
1360
|
+
:GET,
|
1361
|
+
path,
|
1362
|
+
endpoint,
|
1363
|
+
header_params: header_params,
|
1364
|
+
query_params: query_params,
|
1365
|
+
operation_signing_strategy: operation_signing_strategy,
|
1366
|
+
body: post_body,
|
1367
|
+
return_type: 'OCI::Database::Models::AutonomousContainerDatabase'
|
1368
|
+
)
|
1369
|
+
end
|
1370
|
+
# rubocop:enable Metrics/BlockLength
|
1371
|
+
end
|
1372
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1373
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1374
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1375
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1376
|
+
|
1377
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1378
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1379
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1380
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1381
|
+
|
1382
|
+
|
1271
1383
|
# **Deprecated.** To get the details of an Autonomous Data Warehouse, use the {#get_autonomous_database get_autonomous_database} operation.
|
1272
1384
|
#
|
1273
1385
|
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
@@ -1485,6 +1597,59 @@ module OCI
|
|
1485
1597
|
# rubocop:disable Lint/UnusedMethodArgument
|
1486
1598
|
|
1487
1599
|
|
1600
|
+
# Gets information about the specified Autonomous Exadata Infrastructure.
|
1601
|
+
# @param [String] autonomous_exadata_infrastructure_id The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
1602
|
+
# @param [Hash] opts the optional parameters
|
1603
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1604
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1605
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousExadataInfrastructure AutonomousExadataInfrastructure}
|
1606
|
+
def get_autonomous_exadata_infrastructure(autonomous_exadata_infrastructure_id, opts = {})
|
1607
|
+
logger.debug 'Calling operation DatabaseClient#get_autonomous_exadata_infrastructure.' if logger
|
1608
|
+
|
1609
|
+
raise "Missing the required parameter 'autonomous_exadata_infrastructure_id' when calling get_autonomous_exadata_infrastructure." if autonomous_exadata_infrastructure_id.nil?
|
1610
|
+
raise "Parameter value for 'autonomous_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_exadata_infrastructure_id)
|
1611
|
+
|
1612
|
+
path = '/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}'.sub('{autonomousExadataInfrastructureId}', autonomous_exadata_infrastructure_id.to_s)
|
1613
|
+
operation_signing_strategy = :standard
|
1614
|
+
|
1615
|
+
# rubocop:disable Style/NegatedIf
|
1616
|
+
# Query Params
|
1617
|
+
query_params = {}
|
1618
|
+
|
1619
|
+
# Header Params
|
1620
|
+
header_params = {}
|
1621
|
+
header_params[:accept] = 'application/json'
|
1622
|
+
header_params[:'content-type'] = 'application/json'
|
1623
|
+
# rubocop:enable Style/NegatedIf
|
1624
|
+
|
1625
|
+
post_body = nil
|
1626
|
+
|
1627
|
+
# rubocop:disable Metrics/BlockLength
|
1628
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_autonomous_exadata_infrastructure') do
|
1629
|
+
@api_client.call_api(
|
1630
|
+
:GET,
|
1631
|
+
path,
|
1632
|
+
endpoint,
|
1633
|
+
header_params: header_params,
|
1634
|
+
query_params: query_params,
|
1635
|
+
operation_signing_strategy: operation_signing_strategy,
|
1636
|
+
body: post_body,
|
1637
|
+
return_type: 'OCI::Database::Models::AutonomousExadataInfrastructure'
|
1638
|
+
)
|
1639
|
+
end
|
1640
|
+
# rubocop:enable Metrics/BlockLength
|
1641
|
+
end
|
1642
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1643
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1644
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1645
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
1646
|
+
|
1647
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1648
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1649
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1650
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
1651
|
+
|
1652
|
+
|
1488
1653
|
# Gets information about the specified backup.
|
1489
1654
|
# @param [String] backup_id The backup [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
1490
1655
|
# @param [Hash] opts the optional parameters
|
@@ -2141,6 +2306,118 @@ module OCI
|
|
2141
2306
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2142
2307
|
# rubocop:enable Lint/UnusedMethodArgument
|
2143
2308
|
|
2309
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2310
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2311
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2312
|
+
# rubocop:disable Lint/UnusedMethodArgument
|
2313
|
+
|
2314
|
+
|
2315
|
+
# Gets information about the specified Maintenance Run.
|
2316
|
+
# @param [String] maintenance_run_id The Maintenance Run OCID.
|
2317
|
+
# @param [Hash] opts the optional parameters
|
2318
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2319
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2320
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::MaintenanceRun MaintenanceRun}
|
2321
|
+
def get_maintenance_run(maintenance_run_id, opts = {})
|
2322
|
+
logger.debug 'Calling operation DatabaseClient#get_maintenance_run.' if logger
|
2323
|
+
|
2324
|
+
raise "Missing the required parameter 'maintenance_run_id' when calling get_maintenance_run." if maintenance_run_id.nil?
|
2325
|
+
raise "Parameter value for 'maintenance_run_id' must not be blank" if OCI::Internal::Util.blank_string?(maintenance_run_id)
|
2326
|
+
|
2327
|
+
path = '/maintenanceRuns/{maintenanceRunId}'.sub('{maintenanceRunId}', maintenance_run_id.to_s)
|
2328
|
+
operation_signing_strategy = :standard
|
2329
|
+
|
2330
|
+
# rubocop:disable Style/NegatedIf
|
2331
|
+
# Query Params
|
2332
|
+
query_params = {}
|
2333
|
+
|
2334
|
+
# Header Params
|
2335
|
+
header_params = {}
|
2336
|
+
header_params[:accept] = 'application/json'
|
2337
|
+
header_params[:'content-type'] = 'application/json'
|
2338
|
+
# rubocop:enable Style/NegatedIf
|
2339
|
+
|
2340
|
+
post_body = nil
|
2341
|
+
|
2342
|
+
# rubocop:disable Metrics/BlockLength
|
2343
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#get_maintenance_run') do
|
2344
|
+
@api_client.call_api(
|
2345
|
+
:GET,
|
2346
|
+
path,
|
2347
|
+
endpoint,
|
2348
|
+
header_params: header_params,
|
2349
|
+
query_params: query_params,
|
2350
|
+
operation_signing_strategy: operation_signing_strategy,
|
2351
|
+
body: post_body,
|
2352
|
+
return_type: 'OCI::Database::Models::MaintenanceRun'
|
2353
|
+
)
|
2354
|
+
end
|
2355
|
+
# rubocop:enable Metrics/BlockLength
|
2356
|
+
end
|
2357
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2358
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2359
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2360
|
+
# rubocop:enable Lint/UnusedMethodArgument
|
2361
|
+
|
2362
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2363
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2364
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2365
|
+
|
2366
|
+
|
2367
|
+
# Launches a new Autonomous Exadata Infrastructure in the specified compartment and availability domain.
|
2368
|
+
#
|
2369
|
+
# @param [OCI::Database::Models::LaunchAutonomousExadataInfrastructureDetails] launch_autonomous_exadata_infrastructure_details Request to launch a Autonomous Exadata Infrastructure.
|
2370
|
+
# @param [Hash] opts the optional parameters
|
2371
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2372
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2373
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2374
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
2375
|
+
# hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
2376
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
2377
|
+
# may be rejected).
|
2378
|
+
#
|
2379
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousExadataInfrastructure AutonomousExadataInfrastructure}
|
2380
|
+
def launch_autonomous_exadata_infrastructure(launch_autonomous_exadata_infrastructure_details, opts = {})
|
2381
|
+
logger.debug 'Calling operation DatabaseClient#launch_autonomous_exadata_infrastructure.' if logger
|
2382
|
+
|
2383
|
+
raise "Missing the required parameter 'launch_autonomous_exadata_infrastructure_details' when calling launch_autonomous_exadata_infrastructure." if launch_autonomous_exadata_infrastructure_details.nil?
|
2384
|
+
|
2385
|
+
path = '/autonomousExadataInfrastructures'
|
2386
|
+
operation_signing_strategy = :standard
|
2387
|
+
|
2388
|
+
# rubocop:disable Style/NegatedIf
|
2389
|
+
# Query Params
|
2390
|
+
query_params = {}
|
2391
|
+
|
2392
|
+
# Header Params
|
2393
|
+
header_params = {}
|
2394
|
+
header_params[:accept] = 'application/json'
|
2395
|
+
header_params[:'content-type'] = 'application/json'
|
2396
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2397
|
+
# rubocop:enable Style/NegatedIf
|
2398
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2399
|
+
|
2400
|
+
post_body = @api_client.object_to_http_body(launch_autonomous_exadata_infrastructure_details)
|
2401
|
+
|
2402
|
+
# rubocop:disable Metrics/BlockLength
|
2403
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#launch_autonomous_exadata_infrastructure') do
|
2404
|
+
@api_client.call_api(
|
2405
|
+
:POST,
|
2406
|
+
path,
|
2407
|
+
endpoint,
|
2408
|
+
header_params: header_params,
|
2409
|
+
query_params: query_params,
|
2410
|
+
operation_signing_strategy: operation_signing_strategy,
|
2411
|
+
body: post_body,
|
2412
|
+
return_type: 'OCI::Database::Models::AutonomousExadataInfrastructure'
|
2413
|
+
)
|
2414
|
+
end
|
2415
|
+
# rubocop:enable Metrics/BlockLength
|
2416
|
+
end
|
2417
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2418
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2419
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2420
|
+
|
2144
2421
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2145
2422
|
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2146
2423
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
@@ -2210,13 +2487,13 @@ module OCI
|
|
2210
2487
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2211
2488
|
|
2212
2489
|
|
2213
|
-
#
|
2490
|
+
# Gets a list of the Autonomous Container Databases in the specified compartment.
|
2214
2491
|
#
|
2492
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2215
2493
|
# @param [Hash] opts the optional parameters
|
2216
2494
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2217
2495
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2218
|
-
# @option opts [String] :
|
2219
|
-
# @option opts [String] :compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2496
|
+
# @option opts [String] :autonomous_exadata_infrastructure_id The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2220
2497
|
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2221
2498
|
# @option opts [String] :page The pagination token to continue listing from.
|
2222
2499
|
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
@@ -2227,11 +2504,13 @@ module OCI
|
|
2227
2504
|
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2228
2505
|
# Allowed values are: ASC, DESC
|
2229
2506
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
2507
|
+
# @option opts [String] :availability_domain A filter to return only resources that match the given availability domain exactly.
|
2230
2508
|
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
2231
|
-
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::
|
2232
|
-
def
|
2233
|
-
logger.debug 'Calling operation DatabaseClient#
|
2509
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousContainerDatabaseSummary AutonomousContainerDatabaseSummary}>
|
2510
|
+
def list_autonomous_container_databases(compartment_id, opts = {})
|
2511
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_container_databases.' if logger
|
2234
2512
|
|
2513
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_container_databases." if compartment_id.nil?
|
2235
2514
|
|
2236
2515
|
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2237
2516
|
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
@@ -2241,23 +2520,24 @@ module OCI
|
|
2241
2520
|
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2242
2521
|
end
|
2243
2522
|
|
2244
|
-
if opts[:lifecycle_state] && !OCI::Database::Models::
|
2245
|
-
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::
|
2523
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousContainerDatabaseSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
2524
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousContainerDatabaseSummary::LIFECYCLE_STATE_ENUM.'
|
2246
2525
|
end
|
2247
2526
|
|
2248
|
-
path = '/
|
2527
|
+
path = '/autonomousContainerDatabases'
|
2249
2528
|
operation_signing_strategy = :standard
|
2250
2529
|
|
2251
2530
|
# rubocop:disable Style/NegatedIf
|
2252
2531
|
# Query Params
|
2253
2532
|
query_params = {}
|
2254
|
-
query_params[:
|
2255
|
-
query_params[:
|
2533
|
+
query_params[:compartmentId] = compartment_id
|
2534
|
+
query_params[:autonomousExadataInfrastructureId] = opts[:autonomous_exadata_infrastructure_id] if opts[:autonomous_exadata_infrastructure_id]
|
2256
2535
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
2257
2536
|
query_params[:page] = opts[:page] if opts[:page]
|
2258
2537
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2259
2538
|
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2260
2539
|
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
2540
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
2261
2541
|
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2262
2542
|
|
2263
2543
|
# Header Params
|
@@ -2269,7 +2549,7 @@ module OCI
|
|
2269
2549
|
post_body = nil
|
2270
2550
|
|
2271
2551
|
# rubocop:disable Metrics/BlockLength
|
2272
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
2552
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_container_databases') do
|
2273
2553
|
@api_client.call_api(
|
2274
2554
|
:GET,
|
2275
2555
|
path,
|
@@ -2278,7 +2558,7 @@ module OCI
|
|
2278
2558
|
query_params: query_params,
|
2279
2559
|
operation_signing_strategy: operation_signing_strategy,
|
2280
2560
|
body: post_body,
|
2281
|
-
return_type: 'Array<OCI::Database::Models::
|
2561
|
+
return_type: 'Array<OCI::Database::Models::AutonomousContainerDatabaseSummary>'
|
2282
2562
|
)
|
2283
2563
|
end
|
2284
2564
|
# rubocop:enable Metrics/BlockLength
|
@@ -2292,12 +2572,13 @@ module OCI
|
|
2292
2572
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2293
2573
|
|
2294
2574
|
|
2295
|
-
# **Deprecated.** To get a list of Autonomous Data
|
2575
|
+
# **Deprecated.** To get a list of Autonomous Data Warehouse backups, use the {#list_autonomous_database_backups list_autonomous_database_backups} operation.
|
2296
2576
|
#
|
2297
|
-
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2298
2577
|
# @param [Hash] opts the optional parameters
|
2299
2578
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2300
2579
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2580
|
+
# @option opts [String] :autonomous_data_warehouse_id The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2581
|
+
# @option opts [String] :compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2301
2582
|
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2302
2583
|
# @option opts [String] :page The pagination token to continue listing from.
|
2303
2584
|
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
@@ -2309,11 +2590,92 @@ module OCI
|
|
2309
2590
|
# Allowed values are: ASC, DESC
|
2310
2591
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
2311
2592
|
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
2312
|
-
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::
|
2313
|
-
def
|
2314
|
-
logger.debug 'Calling operation DatabaseClient#
|
2593
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDataWarehouseBackupSummary AutonomousDataWarehouseBackupSummary}>
|
2594
|
+
def list_autonomous_data_warehouse_backups(opts = {})
|
2595
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_data_warehouse_backups.' if logger
|
2315
2596
|
|
2316
|
-
|
2597
|
+
|
2598
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2599
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
2600
|
+
end
|
2601
|
+
|
2602
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
2603
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2604
|
+
end
|
2605
|
+
|
2606
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousDataWarehouseBackupSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
2607
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousDataWarehouseBackupSummary::LIFECYCLE_STATE_ENUM.'
|
2608
|
+
end
|
2609
|
+
|
2610
|
+
path = '/autonomousDataWarehouseBackups'
|
2611
|
+
operation_signing_strategy = :standard
|
2612
|
+
|
2613
|
+
# rubocop:disable Style/NegatedIf
|
2614
|
+
# Query Params
|
2615
|
+
query_params = {}
|
2616
|
+
query_params[:autonomousDataWarehouseId] = opts[:autonomous_data_warehouse_id] if opts[:autonomous_data_warehouse_id]
|
2617
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
2618
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2619
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2620
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2621
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2622
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
2623
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2624
|
+
|
2625
|
+
# Header Params
|
2626
|
+
header_params = {}
|
2627
|
+
header_params[:accept] = 'application/json'
|
2628
|
+
header_params[:'content-type'] = 'application/json'
|
2629
|
+
# rubocop:enable Style/NegatedIf
|
2630
|
+
|
2631
|
+
post_body = nil
|
2632
|
+
|
2633
|
+
# rubocop:disable Metrics/BlockLength
|
2634
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_data_warehouse_backups') do
|
2635
|
+
@api_client.call_api(
|
2636
|
+
:GET,
|
2637
|
+
path,
|
2638
|
+
endpoint,
|
2639
|
+
header_params: header_params,
|
2640
|
+
query_params: query_params,
|
2641
|
+
operation_signing_strategy: operation_signing_strategy,
|
2642
|
+
body: post_body,
|
2643
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDataWarehouseBackupSummary>'
|
2644
|
+
)
|
2645
|
+
end
|
2646
|
+
# rubocop:enable Metrics/BlockLength
|
2647
|
+
end
|
2648
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2649
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2650
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2651
|
+
|
2652
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2653
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2654
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2655
|
+
|
2656
|
+
|
2657
|
+
# **Deprecated.** To get a list of Autonomous Data Warehouses, use the {#list_autonomous_databases list_autonomous_databases} operation and specify `DW` as the workload type.
|
2658
|
+
#
|
2659
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2660
|
+
# @param [Hash] opts the optional parameters
|
2661
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2662
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2663
|
+
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2664
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2665
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
2666
|
+
#
|
2667
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
2668
|
+
#
|
2669
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
2670
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2671
|
+
# Allowed values are: ASC, DESC
|
2672
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
2673
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
2674
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDataWarehouseSummary AutonomousDataWarehouseSummary}>
|
2675
|
+
def list_autonomous_data_warehouses(compartment_id, opts = {})
|
2676
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_data_warehouses.' if logger
|
2677
|
+
|
2678
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_data_warehouses." if compartment_id.nil?
|
2317
2679
|
|
2318
2680
|
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2319
2681
|
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
@@ -2464,6 +2826,7 @@ module OCI
|
|
2464
2826
|
# @param [Hash] opts the optional parameters
|
2465
2827
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2466
2828
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2829
|
+
# @option opts [String] :autonomous_container_database_id The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2467
2830
|
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2468
2831
|
# @option opts [String] :page The pagination token to continue listing from.
|
2469
2832
|
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
@@ -2507,6 +2870,7 @@ module OCI
|
|
2507
2870
|
# Query Params
|
2508
2871
|
query_params = {}
|
2509
2872
|
query_params[:compartmentId] = compartment_id
|
2873
|
+
query_params[:autonomousContainerDatabaseId] = opts[:autonomous_container_database_id] if opts[:autonomous_container_database_id]
|
2510
2874
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
2511
2875
|
query_params[:page] = opts[:page] if opts[:page]
|
2512
2876
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
@@ -2548,6 +2912,225 @@ module OCI
|
|
2548
2912
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2549
2913
|
|
2550
2914
|
|
2915
|
+
# Gets a list of supported Autonomous Database versions.
|
2916
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2917
|
+
# @param [Hash] opts the optional parameters
|
2918
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2919
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2920
|
+
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2921
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2922
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2923
|
+
#
|
2924
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for DBWORKLOAD is ascending.
|
2925
|
+
#
|
2926
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
2927
|
+
#
|
2928
|
+
# Allowed values are: DBWORKLOAD
|
2929
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2930
|
+
# Allowed values are: ASC, DESC
|
2931
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousDbPreviewVersionSummary AutonomousDbPreviewVersionSummary}>
|
2932
|
+
def list_autonomous_db_preview_versions(compartment_id, opts = {})
|
2933
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_db_preview_versions.' if logger
|
2934
|
+
|
2935
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_db_preview_versions." if compartment_id.nil?
|
2936
|
+
|
2937
|
+
if opts[:sort_by] && !%w[DBWORKLOAD].include?(opts[:sort_by])
|
2938
|
+
raise 'Invalid value for "sort_by", must be one of DBWORKLOAD.'
|
2939
|
+
end
|
2940
|
+
|
2941
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
2942
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
2943
|
+
end
|
2944
|
+
|
2945
|
+
path = '/autonomousDbPreviewVersions'
|
2946
|
+
operation_signing_strategy = :standard
|
2947
|
+
|
2948
|
+
# rubocop:disable Style/NegatedIf
|
2949
|
+
# Query Params
|
2950
|
+
query_params = {}
|
2951
|
+
query_params[:compartmentId] = compartment_id
|
2952
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2953
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2954
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2955
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2956
|
+
|
2957
|
+
# Header Params
|
2958
|
+
header_params = {}
|
2959
|
+
header_params[:accept] = 'application/json'
|
2960
|
+
header_params[:'content-type'] = 'application/json'
|
2961
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2962
|
+
# rubocop:enable Style/NegatedIf
|
2963
|
+
|
2964
|
+
post_body = nil
|
2965
|
+
|
2966
|
+
# rubocop:disable Metrics/BlockLength
|
2967
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_db_preview_versions') do
|
2968
|
+
@api_client.call_api(
|
2969
|
+
:GET,
|
2970
|
+
path,
|
2971
|
+
endpoint,
|
2972
|
+
header_params: header_params,
|
2973
|
+
query_params: query_params,
|
2974
|
+
operation_signing_strategy: operation_signing_strategy,
|
2975
|
+
body: post_body,
|
2976
|
+
return_type: 'Array<OCI::Database::Models::AutonomousDbPreviewVersionSummary>'
|
2977
|
+
)
|
2978
|
+
end
|
2979
|
+
# rubocop:enable Metrics/BlockLength
|
2980
|
+
end
|
2981
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2982
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2983
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2984
|
+
|
2985
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2986
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2987
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2988
|
+
|
2989
|
+
|
2990
|
+
# Gets a list of the shapes that can be used to launch a new Autonomous Exadata Infrastructure DB system. The shape determines resources to allocate to the DB system (CPU cores, memory and storage).
|
2991
|
+
# @param [String] availability_domain The name of the Availability Domain.
|
2992
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2993
|
+
# @param [Hash] opts the optional parameters
|
2994
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2995
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2996
|
+
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2997
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
2998
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
2999
|
+
#
|
3000
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousExadataInfrastructureShapeSummary AutonomousExadataInfrastructureShapeSummary}>
|
3001
|
+
def list_autonomous_exadata_infrastructure_shapes(availability_domain, compartment_id, opts = {})
|
3002
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_exadata_infrastructure_shapes.' if logger
|
3003
|
+
|
3004
|
+
raise "Missing the required parameter 'availability_domain' when calling list_autonomous_exadata_infrastructure_shapes." if availability_domain.nil?
|
3005
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_exadata_infrastructure_shapes." if compartment_id.nil?
|
3006
|
+
|
3007
|
+
path = '/autonomousExadataInfrastructureShapes'
|
3008
|
+
operation_signing_strategy = :standard
|
3009
|
+
|
3010
|
+
# rubocop:disable Style/NegatedIf
|
3011
|
+
# Query Params
|
3012
|
+
query_params = {}
|
3013
|
+
query_params[:availabilityDomain] = availability_domain
|
3014
|
+
query_params[:compartmentId] = compartment_id
|
3015
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3016
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3017
|
+
|
3018
|
+
# Header Params
|
3019
|
+
header_params = {}
|
3020
|
+
header_params[:accept] = 'application/json'
|
3021
|
+
header_params[:'content-type'] = 'application/json'
|
3022
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3023
|
+
# rubocop:enable Style/NegatedIf
|
3024
|
+
|
3025
|
+
post_body = nil
|
3026
|
+
|
3027
|
+
# rubocop:disable Metrics/BlockLength
|
3028
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_exadata_infrastructure_shapes') do
|
3029
|
+
@api_client.call_api(
|
3030
|
+
:GET,
|
3031
|
+
path,
|
3032
|
+
endpoint,
|
3033
|
+
header_params: header_params,
|
3034
|
+
query_params: query_params,
|
3035
|
+
operation_signing_strategy: operation_signing_strategy,
|
3036
|
+
body: post_body,
|
3037
|
+
return_type: 'Array<OCI::Database::Models::AutonomousExadataInfrastructureShapeSummary>'
|
3038
|
+
)
|
3039
|
+
end
|
3040
|
+
# rubocop:enable Metrics/BlockLength
|
3041
|
+
end
|
3042
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3043
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3044
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3045
|
+
|
3046
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3047
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3048
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3049
|
+
|
3050
|
+
|
3051
|
+
# Gets a list of the Autonomous Exadata Infrastructures in the specified compartment.
|
3052
|
+
#
|
3053
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3054
|
+
# @param [Hash] opts the optional parameters
|
3055
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3056
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3057
|
+
# @option opts [Integer] :limit The maximum number of items to return per page.
|
3058
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
3059
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
3060
|
+
#
|
3061
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
3062
|
+
#
|
3063
|
+
# Allowed values are: TIMECREATED, DISPLAYNAME
|
3064
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3065
|
+
# Allowed values are: ASC, DESC
|
3066
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
3067
|
+
# @option opts [String] :availability_domain A filter to return only resources that match the given availability domain exactly.
|
3068
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
3069
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::AutonomousExadataInfrastructureSummary AutonomousExadataInfrastructureSummary}>
|
3070
|
+
def list_autonomous_exadata_infrastructures(compartment_id, opts = {})
|
3071
|
+
logger.debug 'Calling operation DatabaseClient#list_autonomous_exadata_infrastructures.' if logger
|
3072
|
+
|
3073
|
+
raise "Missing the required parameter 'compartment_id' when calling list_autonomous_exadata_infrastructures." if compartment_id.nil?
|
3074
|
+
|
3075
|
+
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
3076
|
+
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
3077
|
+
end
|
3078
|
+
|
3079
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
3080
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::AutonomousExadataInfrastructureSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
3084
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::AutonomousExadataInfrastructureSummary::LIFECYCLE_STATE_ENUM.'
|
3085
|
+
end
|
3086
|
+
|
3087
|
+
path = '/autonomousExadataInfrastructures'
|
3088
|
+
operation_signing_strategy = :standard
|
3089
|
+
|
3090
|
+
# rubocop:disable Style/NegatedIf
|
3091
|
+
# Query Params
|
3092
|
+
query_params = {}
|
3093
|
+
query_params[:compartmentId] = compartment_id
|
3094
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3095
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3096
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3097
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3098
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
3099
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
3100
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
3101
|
+
|
3102
|
+
# Header Params
|
3103
|
+
header_params = {}
|
3104
|
+
header_params[:accept] = 'application/json'
|
3105
|
+
header_params[:'content-type'] = 'application/json'
|
3106
|
+
# rubocop:enable Style/NegatedIf
|
3107
|
+
|
3108
|
+
post_body = nil
|
3109
|
+
|
3110
|
+
# rubocop:disable Metrics/BlockLength
|
3111
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_autonomous_exadata_infrastructures') do
|
3112
|
+
@api_client.call_api(
|
3113
|
+
:GET,
|
3114
|
+
path,
|
3115
|
+
endpoint,
|
3116
|
+
header_params: header_params,
|
3117
|
+
query_params: query_params,
|
3118
|
+
operation_signing_strategy: operation_signing_strategy,
|
3119
|
+
body: post_body,
|
3120
|
+
return_type: 'Array<OCI::Database::Models::AutonomousExadataInfrastructureSummary>'
|
3121
|
+
)
|
3122
|
+
end
|
3123
|
+
# rubocop:enable Metrics/BlockLength
|
3124
|
+
end
|
3125
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3126
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3127
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3128
|
+
|
3129
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3130
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3131
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3132
|
+
|
3133
|
+
|
2551
3134
|
# Gets a list of backups based on the databaseId or compartmentId specified. Either one of the query parameters must be provided.
|
2552
3135
|
#
|
2553
3136
|
# @param [Hash] opts the optional parameters
|
@@ -2857,10 +3440,10 @@ module OCI
|
|
2857
3440
|
# Gets a list of database homes in the specified DB system and compartment. A database home is a directory where Oracle Database software is installed.
|
2858
3441
|
#
|
2859
3442
|
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2860
|
-
# @param [String] db_system_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
2861
3443
|
# @param [Hash] opts the optional parameters
|
2862
3444
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2863
3445
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3446
|
+
# @option opts [String] :db_system_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
2864
3447
|
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2865
3448
|
# @option opts [String] :page The pagination token to continue listing from.
|
2866
3449
|
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
@@ -2870,11 +3453,10 @@ module OCI
|
|
2870
3453
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
2871
3454
|
# @option opts [String] :display_name A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
2872
3455
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbHomeSummary DbHomeSummary}>
|
2873
|
-
def list_db_homes(compartment_id,
|
3456
|
+
def list_db_homes(compartment_id, opts = {})
|
2874
3457
|
logger.debug 'Calling operation DatabaseClient#list_db_homes.' if logger
|
2875
3458
|
|
2876
3459
|
raise "Missing the required parameter 'compartment_id' when calling list_db_homes." if compartment_id.nil?
|
2877
|
-
raise "Missing the required parameter 'db_system_id' when calling list_db_homes." if db_system_id.nil?
|
2878
3460
|
|
2879
3461
|
if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
|
2880
3462
|
raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
|
@@ -2895,7 +3477,7 @@ module OCI
|
|
2895
3477
|
# Query Params
|
2896
3478
|
query_params = {}
|
2897
3479
|
query_params[:compartmentId] = compartment_id
|
2898
|
-
query_params[:dbSystemId] = db_system_id
|
3480
|
+
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
2899
3481
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
2900
3482
|
query_params[:page] = opts[:page] if opts[:page]
|
2901
3483
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
@@ -2938,10 +3520,10 @@ module OCI
|
|
2938
3520
|
# Gets a list of database nodes in the specified DB system and compartment. A database node is a server running database software.
|
2939
3521
|
#
|
2940
3522
|
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2941
|
-
# @param [String] db_system_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
2942
3523
|
# @param [Hash] opts the optional parameters
|
2943
3524
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2944
3525
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3526
|
+
# @option opts [String] :db_system_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DB system.
|
2945
3527
|
# @option opts [Integer] :limit The maximum number of items to return per page.
|
2946
3528
|
# @option opts [String] :page The pagination token to continue listing from.
|
2947
3529
|
# @option opts [String] :sort_by Sort by TIMECREATED. Default order for TIMECREATED is descending.
|
@@ -2950,11 +3532,10 @@ module OCI
|
|
2950
3532
|
# Allowed values are: ASC, DESC
|
2951
3533
|
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
2952
3534
|
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::DbNodeSummary DbNodeSummary}>
|
2953
|
-
def list_db_nodes(compartment_id,
|
3535
|
+
def list_db_nodes(compartment_id, opts = {})
|
2954
3536
|
logger.debug 'Calling operation DatabaseClient#list_db_nodes.' if logger
|
2955
3537
|
|
2956
3538
|
raise "Missing the required parameter 'compartment_id' when calling list_db_nodes." if compartment_id.nil?
|
2957
|
-
raise "Missing the required parameter 'db_system_id' when calling list_db_nodes." if db_system_id.nil?
|
2958
3539
|
|
2959
3540
|
if opts[:sort_by] && !%w[TIMECREATED].include?(opts[:sort_by])
|
2960
3541
|
raise 'Invalid value for "sort_by", must be one of TIMECREATED.'
|
@@ -2975,7 +3556,7 @@ module OCI
|
|
2975
3556
|
# Query Params
|
2976
3557
|
query_params = {}
|
2977
3558
|
query_params[:compartmentId] = compartment_id
|
2978
|
-
query_params[:dbSystemId] = db_system_id
|
3559
|
+
query_params[:dbSystemId] = opts[:db_system_id] if opts[:db_system_id]
|
2979
3560
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
2980
3561
|
query_params[:page] = opts[:page] if opts[:page]
|
2981
3562
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
@@ -3306,16 +3887,173 @@ module OCI
|
|
3306
3887
|
post_body = nil
|
3307
3888
|
|
3308
3889
|
# rubocop:disable Metrics/BlockLength
|
3309
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_versions') do
|
3890
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_db_versions') do
|
3891
|
+
@api_client.call_api(
|
3892
|
+
:GET,
|
3893
|
+
path,
|
3894
|
+
endpoint,
|
3895
|
+
header_params: header_params,
|
3896
|
+
query_params: query_params,
|
3897
|
+
operation_signing_strategy: operation_signing_strategy,
|
3898
|
+
body: post_body,
|
3899
|
+
return_type: 'Array<OCI::Database::Models::DbVersionSummary>'
|
3900
|
+
)
|
3901
|
+
end
|
3902
|
+
# rubocop:enable Metrics/BlockLength
|
3903
|
+
end
|
3904
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3905
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3906
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3907
|
+
|
3908
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3909
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3910
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3911
|
+
|
3912
|
+
|
3913
|
+
# Gets a list of the Maintenance Runs in the specified compartment.
|
3914
|
+
#
|
3915
|
+
# @param [String] compartment_id The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3916
|
+
# @param [Hash] opts the optional parameters
|
3917
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3918
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3919
|
+
# @option opts [String] :target_resource_id The target resource ID.
|
3920
|
+
# @option opts [String] :target_resource_type The type of the target resource.
|
3921
|
+
# @option opts [String] :maintenance_type The maintenance type.
|
3922
|
+
# @option opts [Integer] :limit The maximum number of items to return per page.
|
3923
|
+
# @option opts [String] :page The pagination token to continue listing from.
|
3924
|
+
# @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIME_SCHEDULED and TIME_ENDED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive.
|
3925
|
+
#
|
3926
|
+
# **Note:** If you do not include the availability domain filter, the resources are grouped by availability domain, then sorted.
|
3927
|
+
#
|
3928
|
+
# Allowed values are: TIME_SCHEDULED, TIME_ENDED, DISPLAYNAME
|
3929
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3930
|
+
# Allowed values are: ASC, DESC
|
3931
|
+
# @option opts [String] :lifecycle_state A filter to return only resources that match the given lifecycle state exactly.
|
3932
|
+
# @option opts [String] :availability_domain A filter to return only resources that match the given availability domain exactly.
|
3933
|
+
# @return [Response] A Response object with data of type Array<{OCI::Database::Models::MaintenanceRunSummary MaintenanceRunSummary}>
|
3934
|
+
def list_maintenance_runs(compartment_id, opts = {})
|
3935
|
+
logger.debug 'Calling operation DatabaseClient#list_maintenance_runs.' if logger
|
3936
|
+
|
3937
|
+
raise "Missing the required parameter 'compartment_id' when calling list_maintenance_runs." if compartment_id.nil?
|
3938
|
+
|
3939
|
+
if opts[:target_resource_type] && !OCI::Database::Models::MaintenanceRunSummary::TARGET_RESOURCE_TYPE_ENUM.include?(opts[:target_resource_type])
|
3940
|
+
raise 'Invalid value for "target_resource_type", must be one of the values in OCI::Database::Models::MaintenanceRunSummary::TARGET_RESOURCE_TYPE_ENUM.'
|
3941
|
+
end
|
3942
|
+
|
3943
|
+
if opts[:maintenance_type] && !OCI::Database::Models::MaintenanceRunSummary::MAINTENANCE_TYPE_ENUM.include?(opts[:maintenance_type])
|
3944
|
+
raise 'Invalid value for "maintenance_type", must be one of the values in OCI::Database::Models::MaintenanceRunSummary::MAINTENANCE_TYPE_ENUM.'
|
3945
|
+
end
|
3946
|
+
|
3947
|
+
if opts[:sort_by] && !%w[TIME_SCHEDULED TIME_ENDED DISPLAYNAME].include?(opts[:sort_by])
|
3948
|
+
raise 'Invalid value for "sort_by", must be one of TIME_SCHEDULED, TIME_ENDED, DISPLAYNAME.'
|
3949
|
+
end
|
3950
|
+
|
3951
|
+
if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
|
3952
|
+
raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
|
3953
|
+
end
|
3954
|
+
|
3955
|
+
if opts[:lifecycle_state] && !OCI::Database::Models::MaintenanceRunSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
3956
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Database::Models::MaintenanceRunSummary::LIFECYCLE_STATE_ENUM.'
|
3957
|
+
end
|
3958
|
+
|
3959
|
+
path = '/maintenanceRuns'
|
3960
|
+
operation_signing_strategy = :standard
|
3961
|
+
|
3962
|
+
# rubocop:disable Style/NegatedIf
|
3963
|
+
# Query Params
|
3964
|
+
query_params = {}
|
3965
|
+
query_params[:compartmentId] = compartment_id
|
3966
|
+
query_params[:targetResourceId] = opts[:target_resource_id] if opts[:target_resource_id]
|
3967
|
+
query_params[:targetResourceType] = opts[:target_resource_type] if opts[:target_resource_type]
|
3968
|
+
query_params[:maintenanceType] = opts[:maintenance_type] if opts[:maintenance_type]
|
3969
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3970
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3971
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3972
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3973
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
3974
|
+
query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
|
3975
|
+
|
3976
|
+
# Header Params
|
3977
|
+
header_params = {}
|
3978
|
+
header_params[:accept] = 'application/json'
|
3979
|
+
header_params[:'content-type'] = 'application/json'
|
3980
|
+
# rubocop:enable Style/NegatedIf
|
3981
|
+
|
3982
|
+
post_body = nil
|
3983
|
+
|
3984
|
+
# rubocop:disable Metrics/BlockLength
|
3985
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#list_maintenance_runs') do
|
3986
|
+
@api_client.call_api(
|
3987
|
+
:GET,
|
3988
|
+
path,
|
3989
|
+
endpoint,
|
3990
|
+
header_params: header_params,
|
3991
|
+
query_params: query_params,
|
3992
|
+
operation_signing_strategy: operation_signing_strategy,
|
3993
|
+
body: post_body,
|
3994
|
+
return_type: 'Array<OCI::Database::Models::MaintenanceRunSummary>'
|
3995
|
+
)
|
3996
|
+
end
|
3997
|
+
# rubocop:enable Metrics/BlockLength
|
3998
|
+
end
|
3999
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4000
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4001
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4002
|
+
|
4003
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4004
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
4005
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
4006
|
+
|
4007
|
+
|
4008
|
+
# Reinstates the database identified by the `databaseId` parameter into the standby role in a Data Guard association.
|
4009
|
+
#
|
4010
|
+
# @param [String] database_id The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4011
|
+
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4012
|
+
# @param [OCI::Database::Models::ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
4013
|
+
# @param [Hash] opts the optional parameters
|
4014
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4015
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4016
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4017
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4018
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4019
|
+
#
|
4020
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::DataGuardAssociation DataGuardAssociation}
|
4021
|
+
def reinstate_data_guard_association(database_id, data_guard_association_id, reinstate_data_guard_association_details, opts = {})
|
4022
|
+
logger.debug 'Calling operation DatabaseClient#reinstate_data_guard_association.' if logger
|
4023
|
+
|
4024
|
+
raise "Missing the required parameter 'database_id' when calling reinstate_data_guard_association." if database_id.nil?
|
4025
|
+
raise "Missing the required parameter 'data_guard_association_id' when calling reinstate_data_guard_association." if data_guard_association_id.nil?
|
4026
|
+
raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
|
4027
|
+
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
4028
|
+
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
4029
|
+
|
4030
|
+
path = '/databases/{databaseId}/dataGuardAssociations/{dataGuardAssociationId}/actions/reinstate'.sub('{databaseId}', database_id.to_s).sub('{dataGuardAssociationId}', data_guard_association_id.to_s)
|
4031
|
+
operation_signing_strategy = :standard
|
4032
|
+
|
4033
|
+
# rubocop:disable Style/NegatedIf
|
4034
|
+
# Query Params
|
4035
|
+
query_params = {}
|
4036
|
+
|
4037
|
+
# Header Params
|
4038
|
+
header_params = {}
|
4039
|
+
header_params[:accept] = 'application/json'
|
4040
|
+
header_params[:'content-type'] = 'application/json'
|
4041
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4042
|
+
# rubocop:enable Style/NegatedIf
|
4043
|
+
|
4044
|
+
post_body = @api_client.object_to_http_body(reinstate_data_guard_association_details)
|
4045
|
+
|
4046
|
+
# rubocop:disable Metrics/BlockLength
|
4047
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#reinstate_data_guard_association') do
|
3310
4048
|
@api_client.call_api(
|
3311
|
-
:
|
4049
|
+
:POST,
|
3312
4050
|
path,
|
3313
4051
|
endpoint,
|
3314
4052
|
header_params: header_params,
|
3315
4053
|
query_params: query_params,
|
3316
4054
|
operation_signing_strategy: operation_signing_strategy,
|
3317
4055
|
body: post_body,
|
3318
|
-
return_type: '
|
4056
|
+
return_type: 'OCI::Database::Models::DataGuardAssociation'
|
3319
4057
|
)
|
3320
4058
|
end
|
3321
4059
|
# rubocop:enable Metrics/BlockLength
|
@@ -3329,11 +4067,9 @@ module OCI
|
|
3329
4067
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3330
4068
|
|
3331
4069
|
|
3332
|
-
#
|
4070
|
+
# Rolling restarts the specified Autonomous Container Database.
|
3333
4071
|
#
|
3334
|
-
# @param [String]
|
3335
|
-
# @param [String] data_guard_association_id The Data Guard association's [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3336
|
-
# @param [OCI::Database::Models::ReinstateDataGuardAssociationDetails] reinstate_data_guard_association_details A request to reinstate a database in a standby role.
|
4072
|
+
# @param [String] autonomous_container_database_id The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3337
4073
|
# @param [Hash] opts the optional parameters
|
3338
4074
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3339
4075
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -3341,17 +4077,16 @@ module OCI
|
|
3341
4077
|
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
3342
4078
|
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
3343
4079
|
#
|
3344
|
-
# @
|
3345
|
-
|
3346
|
-
|
4080
|
+
# @option opts [String] :opc_request_id Unique identifier for the request.
|
4081
|
+
#
|
4082
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousContainerDatabase AutonomousContainerDatabase}
|
4083
|
+
def restart_autonomous_container_database(autonomous_container_database_id, opts = {})
|
4084
|
+
logger.debug 'Calling operation DatabaseClient#restart_autonomous_container_database.' if logger
|
3347
4085
|
|
3348
|
-
raise "Missing the required parameter '
|
3349
|
-
raise "
|
3350
|
-
raise "Missing the required parameter 'reinstate_data_guard_association_details' when calling reinstate_data_guard_association." if reinstate_data_guard_association_details.nil?
|
3351
|
-
raise "Parameter value for 'database_id' must not be blank" if OCI::Internal::Util.blank_string?(database_id)
|
3352
|
-
raise "Parameter value for 'data_guard_association_id' must not be blank" if OCI::Internal::Util.blank_string?(data_guard_association_id)
|
4086
|
+
raise "Missing the required parameter 'autonomous_container_database_id' when calling restart_autonomous_container_database." if autonomous_container_database_id.nil?
|
4087
|
+
raise "Parameter value for 'autonomous_container_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_container_database_id)
|
3353
4088
|
|
3354
|
-
path = '/
|
4089
|
+
path = '/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/restart'.sub('{autonomousContainerDatabaseId}', autonomous_container_database_id.to_s)
|
3355
4090
|
operation_signing_strategy = :standard
|
3356
4091
|
|
3357
4092
|
# rubocop:disable Style/NegatedIf
|
@@ -3363,12 +4098,13 @@ module OCI
|
|
3363
4098
|
header_params[:accept] = 'application/json'
|
3364
4099
|
header_params[:'content-type'] = 'application/json'
|
3365
4100
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4101
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3366
4102
|
# rubocop:enable Style/NegatedIf
|
3367
4103
|
|
3368
|
-
post_body =
|
4104
|
+
post_body = nil
|
3369
4105
|
|
3370
4106
|
# rubocop:disable Metrics/BlockLength
|
3371
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#
|
4107
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#restart_autonomous_container_database') do
|
3372
4108
|
@api_client.call_api(
|
3373
4109
|
:POST,
|
3374
4110
|
path,
|
@@ -3377,7 +4113,7 @@ module OCI
|
|
3377
4113
|
query_params: query_params,
|
3378
4114
|
operation_signing_strategy: operation_signing_strategy,
|
3379
4115
|
body: post_body,
|
3380
|
-
return_type: 'OCI::Database::Models::
|
4116
|
+
return_type: 'OCI::Database::Models::AutonomousContainerDatabase'
|
3381
4117
|
)
|
3382
4118
|
end
|
3383
4119
|
# rubocop:enable Metrics/BlockLength
|
@@ -3864,6 +4600,116 @@ module OCI
|
|
3864
4600
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3865
4601
|
|
3866
4602
|
|
4603
|
+
# Terminates an Autonomous Container Database, which permanently deletes the container database and any databases within the container database. The database data is local to the Autonomous Exadata Infrastructure and will be lost when the container database is terminated. Oracle recommends that you back up any data in the Autonomous Container Database prior to terminating it.
|
4604
|
+
# @param [String] autonomous_container_database_id The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4605
|
+
# @param [Hash] opts the optional parameters
|
4606
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4607
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4608
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4609
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4610
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4611
|
+
#
|
4612
|
+
# @return [Response] A Response object with data of type nil
|
4613
|
+
def terminate_autonomous_container_database(autonomous_container_database_id, opts = {})
|
4614
|
+
logger.debug 'Calling operation DatabaseClient#terminate_autonomous_container_database.' if logger
|
4615
|
+
|
4616
|
+
raise "Missing the required parameter 'autonomous_container_database_id' when calling terminate_autonomous_container_database." if autonomous_container_database_id.nil?
|
4617
|
+
raise "Parameter value for 'autonomous_container_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_container_database_id)
|
4618
|
+
|
4619
|
+
path = '/autonomousContainerDatabases/{autonomousContainerDatabaseId}'.sub('{autonomousContainerDatabaseId}', autonomous_container_database_id.to_s)
|
4620
|
+
operation_signing_strategy = :standard
|
4621
|
+
|
4622
|
+
# rubocop:disable Style/NegatedIf
|
4623
|
+
# Query Params
|
4624
|
+
query_params = {}
|
4625
|
+
|
4626
|
+
# Header Params
|
4627
|
+
header_params = {}
|
4628
|
+
header_params[:accept] = 'application/json'
|
4629
|
+
header_params[:'content-type'] = 'application/json'
|
4630
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4631
|
+
# rubocop:enable Style/NegatedIf
|
4632
|
+
|
4633
|
+
post_body = nil
|
4634
|
+
|
4635
|
+
# rubocop:disable Metrics/BlockLength
|
4636
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#terminate_autonomous_container_database') do
|
4637
|
+
@api_client.call_api(
|
4638
|
+
:DELETE,
|
4639
|
+
path,
|
4640
|
+
endpoint,
|
4641
|
+
header_params: header_params,
|
4642
|
+
query_params: query_params,
|
4643
|
+
operation_signing_strategy: operation_signing_strategy,
|
4644
|
+
body: post_body
|
4645
|
+
)
|
4646
|
+
end
|
4647
|
+
# rubocop:enable Metrics/BlockLength
|
4648
|
+
end
|
4649
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4650
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4651
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4652
|
+
|
4653
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4654
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
4655
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
4656
|
+
|
4657
|
+
|
4658
|
+
# Terminates an Autonomous Exadata Infrastructure, which permanently deletes the Exadata Infrastructure and any container databases and databases contained in the Exadata Infrastructure. The database data is local to the Autonomous Exadata Infrastructure and will be lost when the system is terminated. Oracle recommends that you back up any data in the Autonomous Exadata Infrastructure prior to terminating it.
|
4659
|
+
# @param [String] autonomous_exadata_infrastructure_id The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4660
|
+
# @param [Hash] opts the optional parameters
|
4661
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4662
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4663
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4664
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4665
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4666
|
+
#
|
4667
|
+
# @return [Response] A Response object with data of type nil
|
4668
|
+
def terminate_autonomous_exadata_infrastructure(autonomous_exadata_infrastructure_id, opts = {})
|
4669
|
+
logger.debug 'Calling operation DatabaseClient#terminate_autonomous_exadata_infrastructure.' if logger
|
4670
|
+
|
4671
|
+
raise "Missing the required parameter 'autonomous_exadata_infrastructure_id' when calling terminate_autonomous_exadata_infrastructure." if autonomous_exadata_infrastructure_id.nil?
|
4672
|
+
raise "Parameter value for 'autonomous_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_exadata_infrastructure_id)
|
4673
|
+
|
4674
|
+
path = '/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}'.sub('{autonomousExadataInfrastructureId}', autonomous_exadata_infrastructure_id.to_s)
|
4675
|
+
operation_signing_strategy = :standard
|
4676
|
+
|
4677
|
+
# rubocop:disable Style/NegatedIf
|
4678
|
+
# Query Params
|
4679
|
+
query_params = {}
|
4680
|
+
|
4681
|
+
# Header Params
|
4682
|
+
header_params = {}
|
4683
|
+
header_params[:accept] = 'application/json'
|
4684
|
+
header_params[:'content-type'] = 'application/json'
|
4685
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4686
|
+
# rubocop:enable Style/NegatedIf
|
4687
|
+
|
4688
|
+
post_body = nil
|
4689
|
+
|
4690
|
+
# rubocop:disable Metrics/BlockLength
|
4691
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#terminate_autonomous_exadata_infrastructure') do
|
4692
|
+
@api_client.call_api(
|
4693
|
+
:DELETE,
|
4694
|
+
path,
|
4695
|
+
endpoint,
|
4696
|
+
header_params: header_params,
|
4697
|
+
query_params: query_params,
|
4698
|
+
operation_signing_strategy: operation_signing_strategy,
|
4699
|
+
body: post_body
|
4700
|
+
)
|
4701
|
+
end
|
4702
|
+
# rubocop:enable Metrics/BlockLength
|
4703
|
+
end
|
4704
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4705
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4706
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4707
|
+
|
4708
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4709
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
4710
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
4711
|
+
|
4712
|
+
|
3867
4713
|
# Terminates a DB system and permanently deletes it and any databases running on it, and any storage volumes attached to it. The database data is local to the DB system and will be lost when the system is terminated. Oracle recommends that you back up any data in the DB system prior to terminating it.
|
3868
4714
|
# @param [String] db_system_id The DB system [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3869
4715
|
# @param [Hash] opts the optional parameters
|
@@ -3919,6 +4765,64 @@ module OCI
|
|
3919
4765
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3920
4766
|
|
3921
4767
|
|
4768
|
+
# Updates the properties of an Autonomous Container Database, such as the CPU core count and storage size.
|
4769
|
+
# @param [String] autonomous_container_database_id The Autonomous Container Database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4770
|
+
# @param [OCI::Database::Models::UpdateAutonomousContainerDatabaseDetails] update_autonomous_container_database_details Request to update the properties of an Autonomous Container Database.
|
4771
|
+
# @param [Hash] opts the optional parameters
|
4772
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4773
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4774
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4775
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4776
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4777
|
+
#
|
4778
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousContainerDatabase AutonomousContainerDatabase}
|
4779
|
+
def update_autonomous_container_database(autonomous_container_database_id, update_autonomous_container_database_details, opts = {})
|
4780
|
+
logger.debug 'Calling operation DatabaseClient#update_autonomous_container_database.' if logger
|
4781
|
+
|
4782
|
+
raise "Missing the required parameter 'autonomous_container_database_id' when calling update_autonomous_container_database." if autonomous_container_database_id.nil?
|
4783
|
+
raise "Missing the required parameter 'update_autonomous_container_database_details' when calling update_autonomous_container_database." if update_autonomous_container_database_details.nil?
|
4784
|
+
raise "Parameter value for 'autonomous_container_database_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_container_database_id)
|
4785
|
+
|
4786
|
+
path = '/autonomousContainerDatabases/{autonomousContainerDatabaseId}'.sub('{autonomousContainerDatabaseId}', autonomous_container_database_id.to_s)
|
4787
|
+
operation_signing_strategy = :standard
|
4788
|
+
|
4789
|
+
# rubocop:disable Style/NegatedIf
|
4790
|
+
# Query Params
|
4791
|
+
query_params = {}
|
4792
|
+
|
4793
|
+
# Header Params
|
4794
|
+
header_params = {}
|
4795
|
+
header_params[:accept] = 'application/json'
|
4796
|
+
header_params[:'content-type'] = 'application/json'
|
4797
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4798
|
+
# rubocop:enable Style/NegatedIf
|
4799
|
+
|
4800
|
+
post_body = @api_client.object_to_http_body(update_autonomous_container_database_details)
|
4801
|
+
|
4802
|
+
# rubocop:disable Metrics/BlockLength
|
4803
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_autonomous_container_database') do
|
4804
|
+
@api_client.call_api(
|
4805
|
+
:PUT,
|
4806
|
+
path,
|
4807
|
+
endpoint,
|
4808
|
+
header_params: header_params,
|
4809
|
+
query_params: query_params,
|
4810
|
+
operation_signing_strategy: operation_signing_strategy,
|
4811
|
+
body: post_body,
|
4812
|
+
return_type: 'OCI::Database::Models::AutonomousContainerDatabase'
|
4813
|
+
)
|
4814
|
+
end
|
4815
|
+
# rubocop:enable Metrics/BlockLength
|
4816
|
+
end
|
4817
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4818
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4819
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4820
|
+
|
4821
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4822
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
4823
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
4824
|
+
|
4825
|
+
|
3922
4826
|
# **Deprecated.** To update the CPU core count and storage size of an Autonomous Data Warehouse, use the {#update_autonomous_database update_autonomous_database} operation.
|
3923
4827
|
#
|
3924
4828
|
# @param [String] autonomous_data_warehouse_id The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
@@ -4040,6 +4944,64 @@ module OCI
|
|
4040
4944
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
4041
4945
|
|
4042
4946
|
|
4947
|
+
# Updates the properties of an Autonomous Exadata Infrastructure, such as the CPU core count.
|
4948
|
+
# @param [String] autonomous_exadata_infrastructure_id The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4949
|
+
# @param [OCI::Database::Models::UpdateAutonomousExadataInfrastructureDetails] update_autonomous_exadata_infrastructures_details Request to update the properties of a Autonomous Exadata Infrastructure.
|
4950
|
+
# @param [Hash] opts the optional parameters
|
4951
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
4952
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
4953
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
4954
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
4955
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
4956
|
+
#
|
4957
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::AutonomousExadataInfrastructure AutonomousExadataInfrastructure}
|
4958
|
+
def update_autonomous_exadata_infrastructure(autonomous_exadata_infrastructure_id, update_autonomous_exadata_infrastructures_details, opts = {})
|
4959
|
+
logger.debug 'Calling operation DatabaseClient#update_autonomous_exadata_infrastructure.' if logger
|
4960
|
+
|
4961
|
+
raise "Missing the required parameter 'autonomous_exadata_infrastructure_id' when calling update_autonomous_exadata_infrastructure." if autonomous_exadata_infrastructure_id.nil?
|
4962
|
+
raise "Missing the required parameter 'update_autonomous_exadata_infrastructures_details' when calling update_autonomous_exadata_infrastructure." if update_autonomous_exadata_infrastructures_details.nil?
|
4963
|
+
raise "Parameter value for 'autonomous_exadata_infrastructure_id' must not be blank" if OCI::Internal::Util.blank_string?(autonomous_exadata_infrastructure_id)
|
4964
|
+
|
4965
|
+
path = '/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}'.sub('{autonomousExadataInfrastructureId}', autonomous_exadata_infrastructure_id.to_s)
|
4966
|
+
operation_signing_strategy = :standard
|
4967
|
+
|
4968
|
+
# rubocop:disable Style/NegatedIf
|
4969
|
+
# Query Params
|
4970
|
+
query_params = {}
|
4971
|
+
|
4972
|
+
# Header Params
|
4973
|
+
header_params = {}
|
4974
|
+
header_params[:accept] = 'application/json'
|
4975
|
+
header_params[:'content-type'] = 'application/json'
|
4976
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4977
|
+
# rubocop:enable Style/NegatedIf
|
4978
|
+
|
4979
|
+
post_body = @api_client.object_to_http_body(update_autonomous_exadata_infrastructures_details)
|
4980
|
+
|
4981
|
+
# rubocop:disable Metrics/BlockLength
|
4982
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_autonomous_exadata_infrastructure') do
|
4983
|
+
@api_client.call_api(
|
4984
|
+
:PUT,
|
4985
|
+
path,
|
4986
|
+
endpoint,
|
4987
|
+
header_params: header_params,
|
4988
|
+
query_params: query_params,
|
4989
|
+
operation_signing_strategy: operation_signing_strategy,
|
4990
|
+
body: post_body,
|
4991
|
+
return_type: 'OCI::Database::Models::AutonomousExadataInfrastructure'
|
4992
|
+
)
|
4993
|
+
end
|
4994
|
+
# rubocop:enable Metrics/BlockLength
|
4995
|
+
end
|
4996
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
4997
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4998
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4999
|
+
|
5000
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
5001
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
5002
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
5003
|
+
|
5004
|
+
|
4043
5005
|
# Update a Database based on the request parameters you provide.
|
4044
5006
|
#
|
4045
5007
|
# @param [String] database_id The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
@@ -4272,6 +5234,64 @@ module OCI
|
|
4272
5234
|
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
4273
5235
|
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
4274
5236
|
|
5237
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
5238
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
5239
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
5240
|
+
|
5241
|
+
|
5242
|
+
# Updates the properties of a Maintenance Run, such as the state of a Maintenance Run.
|
5243
|
+
# @param [String] maintenance_run_id The Maintenance Run OCID.
|
5244
|
+
# @param [OCI::Database::Models::UpdateMaintenanceRunDetails] update_maintenance_run_details Request to update the properties of a Maintenance Run.
|
5245
|
+
# @param [Hash] opts the optional parameters
|
5246
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
5247
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
5248
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
5249
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
5250
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
5251
|
+
#
|
5252
|
+
# @return [Response] A Response object with data of type {OCI::Database::Models::MaintenanceRun MaintenanceRun}
|
5253
|
+
def update_maintenance_run(maintenance_run_id, update_maintenance_run_details, opts = {})
|
5254
|
+
logger.debug 'Calling operation DatabaseClient#update_maintenance_run.' if logger
|
5255
|
+
|
5256
|
+
raise "Missing the required parameter 'maintenance_run_id' when calling update_maintenance_run." if maintenance_run_id.nil?
|
5257
|
+
raise "Missing the required parameter 'update_maintenance_run_details' when calling update_maintenance_run." if update_maintenance_run_details.nil?
|
5258
|
+
raise "Parameter value for 'maintenance_run_id' must not be blank" if OCI::Internal::Util.blank_string?(maintenance_run_id)
|
5259
|
+
|
5260
|
+
path = '/maintenanceRuns/{maintenanceRunId}'.sub('{maintenanceRunId}', maintenance_run_id.to_s)
|
5261
|
+
operation_signing_strategy = :standard
|
5262
|
+
|
5263
|
+
# rubocop:disable Style/NegatedIf
|
5264
|
+
# Query Params
|
5265
|
+
query_params = {}
|
5266
|
+
|
5267
|
+
# Header Params
|
5268
|
+
header_params = {}
|
5269
|
+
header_params[:accept] = 'application/json'
|
5270
|
+
header_params[:'content-type'] = 'application/json'
|
5271
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
5272
|
+
# rubocop:enable Style/NegatedIf
|
5273
|
+
|
5274
|
+
post_body = @api_client.object_to_http_body(update_maintenance_run_details)
|
5275
|
+
|
5276
|
+
# rubocop:disable Metrics/BlockLength
|
5277
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseClient#update_maintenance_run') do
|
5278
|
+
@api_client.call_api(
|
5279
|
+
:PUT,
|
5280
|
+
path,
|
5281
|
+
endpoint,
|
5282
|
+
header_params: header_params,
|
5283
|
+
query_params: query_params,
|
5284
|
+
operation_signing_strategy: operation_signing_strategy,
|
5285
|
+
body: post_body,
|
5286
|
+
return_type: 'OCI::Database::Models::MaintenanceRun'
|
5287
|
+
)
|
5288
|
+
end
|
5289
|
+
# rubocop:enable Metrics/BlockLength
|
5290
|
+
end
|
5291
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
5292
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
5293
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
5294
|
+
|
4275
5295
|
private
|
4276
5296
|
|
4277
5297
|
def applicable_retry_config(opts = {})
|