oci 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/lib/oci/analytics/analytics.rb +5 -0
- data/lib/oci/analytics/analytics_client.rb +422 -52
- data/lib/oci/analytics/analytics_client_composite_operations.rb +188 -27
- data/lib/oci/analytics/models/analytics_instance.rb +32 -15
- data/lib/oci/analytics/models/analytics_instance_summary.rb +9 -8
- data/lib/oci/analytics/models/capacity.rb +2 -2
- data/lib/oci/analytics/models/change_analytics_instance_network_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/create_analytics_instance_details.rb +8 -6
- data/lib/oci/analytics/models/create_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/create_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/create_vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/feature_bundle.rb +1 -0
- data/lib/oci/analytics/models/instance_resource_group.rb +200 -0
- data/lib/oci/analytics/models/instance_resource_group_summary.rb +200 -0
- data/lib/oci/analytics/models/private_access_channel.rb +13 -13
- data/lib/oci/analytics/models/private_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/private_source_dns_zone.rb +3 -3
- data/lib/oci/analytics/models/private_source_scan_host.rb +4 -4
- data/lib/oci/analytics/models/public_endpoint_details.rb +1 -1
- data/lib/oci/analytics/models/resource_group_sort_by.rb +17 -0
- data/lib/oci/analytics/models/set_feature_bundle_details.rb +1 -0
- data/lib/oci/analytics/models/set_kms_key_details.rb +2 -2
- data/lib/oci/analytics/models/update_analytics_instance_details.rb +3 -3
- data/lib/oci/analytics/models/update_private_access_channel_details.rb +9 -9
- data/lib/oci/analytics/models/update_resource_group_details.rb +190 -0
- data/lib/oci/analytics/models/update_vanity_url_details.rb +4 -4
- data/lib/oci/analytics/models/vanity_url_details.rb +5 -5
- data/lib/oci/analytics/models/work_request.rb +4 -0
- data/lib/oci/analytics/models/work_request_action_result.rb +4 -1
- data/lib/oci/analytics/models/work_request_error.rb +2 -2
- data/lib/oci/analytics/models/work_request_log.rb +1 -1
- data/lib/oci/analytics/models/work_request_operation_type.rb +5 -1
- data/lib/oci/analytics/models/work_request_resource.rb +4 -1
- data/lib/oci/analytics/models/work_request_summary.rb +4 -0
- data/lib/oci/apiaccesscontrol/api_metadata_client.rb +8 -6
- data/lib/oci/apiaccesscontrol/apiaccesscontrol.rb +1 -0
- data/lib/oci/apiaccesscontrol/models/api_metadata.rb +12 -2
- data/lib/oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_detail.rb +15 -1
- data/lib/oci/apiaccesscontrol/models/approver_group_level.rb +169 -0
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_control_details.rb +17 -3
- data/lib/oci/apiaccesscontrol/models/create_privileged_api_request_details.rb +1 -1
- data/lib/oci/apiaccesscontrol/models/privileged_api_control.rb +15 -2
- data/lib/oci/apiaccesscontrol/models/privileged_api_control_summary.rb +0 -1
- data/lib/oci/apiaccesscontrol/models/update_privileged_api_control_details.rb +16 -2
- data/lib/oci/apiaccesscontrol/privileged_api_control_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_requests_client.rb +4 -3
- data/lib/oci/apiaccesscontrol/privileged_api_work_request_client.rb +4 -3
- data/lib/oci/core/core.rb +5 -0
- data/lib/oci/core/models/boot_volume_backup.rb +87 -4
- data/lib/oci/core/models/create_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +50 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +71 -4
- data/lib/oci/core/models/create_dedicated_vm_host_details.rb +21 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +63 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/create_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/cross_connect.rb +43 -1
- data/lib/oci/core/models/cross_connect_group.rb +63 -4
- data/lib/oci/core/models/dedicated_vm_host.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +18 -1
- data/lib/oci/core/models/dedicated_vm_host_summary.rb +18 -1
- data/lib/oci/core/models/instances.rb +140 -0
- data/lib/oci/core/models/letter_of_authority.rb +31 -4
- data/lib/oci/core/models/loa_extension_data.rb +170 -0
- data/lib/oci/core/models/provider_remote_region_name.rb +174 -0
- data/lib/oci/core/models/retention_duration.rb +189 -0
- data/lib/oci/core/models/supported_capabilities.rb +21 -4
- data/lib/oci/core/models/update_boot_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +32 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +49 -4
- data/lib/oci/core/models/update_cross_connect_letter_of_authority_details.rb +195 -0
- data/lib/oci/core/models/update_virtual_circuit_details.rb +30 -1
- data/lib/oci/core/models/update_volume_backup_details.rb +59 -4
- data/lib/oci/core/models/update_volume_group_backup_details.rb +59 -4
- data/lib/oci/core/models/virtual_circuit.rb +80 -1
- data/lib/oci/core/models/volume_backup.rb +87 -4
- data/lib/oci/core/models/volume_backup_schedule.rb +45 -4
- data/lib/oci/core/models/volume_group_backup.rb +73 -4
- data/lib/oci/core/virtual_network_client.rb +136 -2
- data/lib/oci/database/database.rb +13 -0
- data/lib/oci/database/database_client.rb +923 -111
- data/lib/oci/database/database_client_composite_operations.rb +283 -0
- data/lib/oci/database/models/basecc_vm_cluster.rb +713 -0
- data/lib/oci/database/models/basecc_vm_cluster_summary.rb +716 -0
- data/lib/oci/database/models/basecc_vm_cluster_update.rb +342 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_details.rb +198 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry.rb +318 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_history_entry_summary.rb +321 -0
- data/lib/oci/database/models/basecc_vm_cluster_update_summary.rb +349 -0
- data/lib/oci/database/models/change_basecc_vm_cluster_compartment_details.rb +156 -0
- data/lib/oci/database/models/cloud_vm_cluster.rb +28 -1
- data/lib/oci/database/models/cloud_vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/create_basecc_vm_cluster_details.rb +506 -0
- data/lib/oci/database/models/create_database_software_image_details.rb +2 -1
- data/lib/oci/database/models/database_software_image.rb +1 -0
- data/lib/oci/database/models/database_software_image_summary.rb +1 -0
- data/lib/oci/database/models/exadata_live_image_version_details.rb +216 -0
- data/lib/oci/database/models/exadb_vm_cluster.rb +53 -4
- data/lib/oci/database/models/exadb_vm_cluster_summary.rb +53 -4
- data/lib/oci/database/models/register_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/unregister_exadb_vm_cluster_pkcs_details.rb +171 -0
- data/lib/oci/database/models/update.rb +94 -1
- data/lib/oci/database/models/update_basecc_vm_cluster_details.rb +345 -0
- data/lib/oci/database/models/update_details.rb +33 -1
- data/lib/oci/database/models/update_history_entry.rb +39 -1
- data/lib/oci/database/models/update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/update_summary.rb +94 -1
- data/lib/oci/database/models/vm_cluster.rb +28 -1
- data/lib/oci/database/models/vm_cluster_summary.rb +28 -1
- data/lib/oci/database/models/vm_cluster_update.rb +94 -1
- data/lib/oci/database/models/vm_cluster_update_details.rb +33 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +39 -1
- data/lib/oci/database/models/vm_cluster_update_summary.rb +94 -1
- data/lib/oci/file_storage/models/file_system.rb +37 -4
- data/lib/oci/file_storage/models/file_system_summary.rb +37 -4
- data/lib/oci/file_storage/models/snapshot.rb +19 -4
- data/lib/oci/file_storage/models/snapshot_summary.rb +19 -4
- data/lib/oci/generative_ai/models/create_dedicated_ai_cluster_details.rb +3 -0
- data/lib/oci/generative_ai/models/dedicated_ai_cluster.rb +2 -0
- data/lib/oci/golden_gate/golden_gate.rb +29 -0
- data/lib/oci/golden_gate/golden_gate_client.rb +185 -6
- data/lib/oci/golden_gate/models/ai_model_auth_details.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_details_summary.rb +194 -0
- data/lib/oci/golden_gate/models/ai_model_auth_type.rb +13 -0
- data/lib/oci/golden_gate/models/ai_model_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_model_connection.rb +350 -0
- data/lib/oci/golden_gate/models/ai_model_connection_summary.rb +333 -0
- data/lib/oci/golden_gate/models/ai_model_summary.rb +216 -0
- data/lib/oci/golden_gate/models/ai_provider_collection.rb +153 -0
- data/lib/oci/golden_gate/models/ai_provider_summary.rb +249 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_connection.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage.rb +1 -0
- data/lib/oci/golden_gate/models/amazon_s3_iceberg_storage_summary.rb +1 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/api_key_ai_model_auth_details_summary.rb +181 -0
- data/lib/oci/golden_gate/models/connection.rb +43 -6
- data/lib/oci/golden_gate/models/connection_assignment.rb +63 -1
- data/lib/oci/golden_gate/models/connection_assignment_summary.rb +64 -1
- data/lib/oci/golden_gate/models/connection_summary.rb +42 -6
- data/lib/oci/golden_gate/models/connection_type.rb +2 -1
- data/lib/oci/golden_gate/models/create_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/create_ai_model_connection_details.rb +298 -0
- data/lib/oci/golden_gate/models/create_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/create_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/create_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/create_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/create_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_iceberg_connection_details.rb +1 -0
- data/lib/oci/golden_gate/models/create_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/create_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/create_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/create_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/create_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/create_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/create_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/create_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/create_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/create_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/create_snowflake_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/deployment_type_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_connection_summary.rb +1 -0
- data/lib/oci/golden_gate/models/iceberg_storage.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_summary.rb +4 -0
- data/lib/oci/golden_gate/models/iceberg_storage_type.rb +3 -1
- data/lib/oci/golden_gate/models/kafka_connection.rb +1 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage.rb +148 -0
- data/lib/oci/golden_gate/models/no_iceberg_storage_summary.rb +148 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/oci_gen_ai_model_auth_details_summary.rb +224 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage.rb +209 -0
- data/lib/oci/golden_gate/models/oci_object_storage_s3_api_iceberg_storage_summary.rb +209 -0
- data/lib/oci/golden_gate/models/oracle_connection.rb +4 -1
- data/lib/oci/golden_gate/models/oracle_connection_summary.rb +1 -1
- data/lib/oci/golden_gate/models/technology_type.rb +6 -1
- data/lib/oci/golden_gate/models/update_ai_model_auth_details.rb +187 -0
- data/lib/oci/golden_gate/models/update_ai_model_connection_details.rb +237 -0
- data/lib/oci/golden_gate/models/update_amazon_kinesis_connection_details.rb +4 -1
- data/lib/oci/golden_gate/models/update_amazon_redshift_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_amazon_s3_connection_details.rb +5 -3
- data/lib/oci/golden_gate/models/update_amazon_s3_iceberg_storage_details.rb +5 -2
- data/lib/oci/golden_gate/models/update_api_key_ai_model_auth_details.rb +199 -0
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_azure_data_lake_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_azure_synapse_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_connection_details.rb +43 -7
- data/lib/oci/golden_gate/models/update_database_registration_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_databricks_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_db2_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_elasticsearch_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_golden_gate_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_big_query_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_cloud_storage_iceberg_storage_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_google_pub_sub_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_iceberg_storage_details.rb +5 -1
- data/lib/oci/golden_gate/models/update_java_message_service_connection_details.rb +21 -7
- data/lib/oci/golden_gate/models/update_kafka_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_kafka_schema_registry_connection_details.rb +18 -6
- data/lib/oci/golden_gate/models/update_microsoft_fabric_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_microsoft_sqlserver_connection_details.rb +3 -1
- data/lib/oci/golden_gate/models/update_mongo_db_connection_details.rb +9 -3
- data/lib/oci/golden_gate/models/update_mysql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_no_iceberg_storage_details.rb +148 -0
- data/lib/oci/golden_gate/models/update_oci_gen_ai_model_auth_details.rb +242 -0
- data/lib/oci/golden_gate/models/update_oci_object_storage_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oci_object_storage_s3_api_iceberg_storage_details.rb +228 -0
- data/lib/oci/golden_gate/models/update_oracle_ai_data_platform_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_oracle_connection_details.rb +7 -3
- data/lib/oci/golden_gate/models/update_oracle_nosql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_postgresql_connection_details.rb +6 -2
- data/lib/oci/golden_gate/models/update_redis_connection_details.rb +15 -5
- data/lib/oci/golden_gate/models/update_snowflake_connection_details.rb +9 -3
- data/lib/oci/regions.rb +8 -1
- data/lib/oci/version.rb +1 -1
- metadata +55 -2
|
@@ -803,6 +803,57 @@ module OCI
|
|
|
803
803
|
# rubocop:disable Layout/EmptyLines
|
|
804
804
|
|
|
805
805
|
|
|
806
|
+
# Calls {OCI::Database::DatabaseClient#change_basecc_vm_cluster_compartment} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
807
|
+
# to enter the given state(s).
|
|
808
|
+
#
|
|
809
|
+
# @param [OCI::Database::Models::ChangeBaseccVmClusterCompartmentDetails] change_basecc_vm_cluster_compartment_details Request to move the BaseDB-C@C VM cluster to a different compartment.
|
|
810
|
+
# @param [String] basecc_vm_cluster_id The BaseDB-C@C VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
811
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::WorkRequest#status}
|
|
812
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#change_basecc_vm_cluster_compartment}
|
|
813
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
814
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
815
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
816
|
+
#
|
|
817
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::Database::Models::WorkRequest}
|
|
818
|
+
def change_basecc_vm_cluster_compartment_and_wait_for_state(change_basecc_vm_cluster_compartment_details, basecc_vm_cluster_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
819
|
+
operation_result = @service_client.change_basecc_vm_cluster_compartment(change_basecc_vm_cluster_compartment_details, basecc_vm_cluster_id, base_operation_opts)
|
|
820
|
+
use_util = OCI::Database::Util.respond_to?(:wait_on_work_request)
|
|
821
|
+
|
|
822
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
823
|
+
|
|
824
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
825
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
826
|
+
return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty?
|
|
827
|
+
|
|
828
|
+
begin
|
|
829
|
+
if use_util
|
|
830
|
+
waiter_result = OCI::Database::Util.wait_on_work_request(
|
|
831
|
+
@service_client,
|
|
832
|
+
wait_for_resource_id,
|
|
833
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
834
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
835
|
+
)
|
|
836
|
+
else
|
|
837
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
838
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
839
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
840
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
841
|
+
)
|
|
842
|
+
end
|
|
843
|
+
result_to_return = waiter_result
|
|
844
|
+
|
|
845
|
+
return result_to_return
|
|
846
|
+
rescue StandardError
|
|
847
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
848
|
+
end
|
|
849
|
+
end
|
|
850
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
851
|
+
# rubocop:enable Layout/EmptyLines
|
|
852
|
+
|
|
853
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
854
|
+
# rubocop:disable Layout/EmptyLines
|
|
855
|
+
|
|
856
|
+
|
|
806
857
|
# Calls {OCI::Database::DatabaseClient#change_cloud_autonomous_vm_cluster_compartment} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
807
858
|
# to enter the given state(s).
|
|
808
859
|
#
|
|
@@ -2982,6 +3033,46 @@ module OCI
|
|
|
2982
3033
|
# rubocop:disable Layout/EmptyLines
|
|
2983
3034
|
|
|
2984
3035
|
|
|
3036
|
+
# Calls {OCI::Database::DatabaseClient#create_basecc_vm_cluster} and then waits for the {OCI::Database::Models::BaseccVmCluster} acted upon
|
|
3037
|
+
# to enter the given state(s).
|
|
3038
|
+
#
|
|
3039
|
+
# @param [OCI::Database::Models::CreateBaseccVmClusterDetails] create_basecc_vm_cluster_details Request to create a BaseDB-C@C VM cluster. Applies to Base Database Service on Cloud@Customer instances only.
|
|
3040
|
+
#
|
|
3041
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::BaseccVmCluster#lifecycle_state}
|
|
3042
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#create_basecc_vm_cluster}
|
|
3043
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
3044
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
3045
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
3046
|
+
#
|
|
3047
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Database::Models::BaseccVmCluster}
|
|
3048
|
+
def create_basecc_vm_cluster_and_wait_for_state(create_basecc_vm_cluster_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
3049
|
+
operation_result = @service_client.create_basecc_vm_cluster(create_basecc_vm_cluster_details, base_operation_opts)
|
|
3050
|
+
|
|
3051
|
+
return operation_result if wait_for_states.empty?
|
|
3052
|
+
|
|
3053
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
3054
|
+
wait_for_resource_id = operation_result.data.id
|
|
3055
|
+
|
|
3056
|
+
begin
|
|
3057
|
+
waiter_result = @service_client.get_basecc_vm_cluster(wait_for_resource_id).wait_until(
|
|
3058
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
|
3059
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
3060
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
3061
|
+
)
|
|
3062
|
+
result_to_return = waiter_result
|
|
3063
|
+
|
|
3064
|
+
return result_to_return
|
|
3065
|
+
rescue StandardError
|
|
3066
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
3067
|
+
end
|
|
3068
|
+
end
|
|
3069
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
3070
|
+
# rubocop:enable Layout/EmptyLines
|
|
3071
|
+
|
|
3072
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
3073
|
+
# rubocop:disable Layout/EmptyLines
|
|
3074
|
+
|
|
3075
|
+
|
|
2985
3076
|
# Calls {OCI::Database::DatabaseClient#create_cloud_autonomous_vm_cluster} and then waits for the {OCI::Database::Models::CloudAutonomousVmCluster} acted upon
|
|
2986
3077
|
# to enter the given state(s).
|
|
2987
3078
|
#
|
|
@@ -4559,6 +4650,56 @@ module OCI
|
|
|
4559
4650
|
# rubocop:disable Layout/EmptyLines
|
|
4560
4651
|
|
|
4561
4652
|
|
|
4653
|
+
# Calls {OCI::Database::DatabaseClient#delete_basecc_vm_cluster} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
4654
|
+
# to enter the given state(s).
|
|
4655
|
+
#
|
|
4656
|
+
# @param [String] basecc_vm_cluster_id The BaseDB-C@C VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
4657
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::WorkRequest#status}
|
|
4658
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#delete_basecc_vm_cluster}
|
|
4659
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
4660
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
4661
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
4662
|
+
#
|
|
4663
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::Database::Models::WorkRequest}
|
|
4664
|
+
def delete_basecc_vm_cluster_and_wait_for_state(basecc_vm_cluster_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
4665
|
+
operation_result = @service_client.delete_basecc_vm_cluster(basecc_vm_cluster_id, base_operation_opts)
|
|
4666
|
+
use_util = OCI::Database::Util.respond_to?(:wait_on_work_request)
|
|
4667
|
+
|
|
4668
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
4669
|
+
|
|
4670
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
4671
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
4672
|
+
return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty?
|
|
4673
|
+
|
|
4674
|
+
begin
|
|
4675
|
+
if use_util
|
|
4676
|
+
waiter_result = OCI::Database::Util.wait_on_work_request(
|
|
4677
|
+
@service_client,
|
|
4678
|
+
wait_for_resource_id,
|
|
4679
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
4680
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
4681
|
+
)
|
|
4682
|
+
else
|
|
4683
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
4684
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
4685
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
4686
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
4687
|
+
)
|
|
4688
|
+
end
|
|
4689
|
+
result_to_return = waiter_result
|
|
4690
|
+
|
|
4691
|
+
return result_to_return
|
|
4692
|
+
rescue StandardError
|
|
4693
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
4694
|
+
end
|
|
4695
|
+
end
|
|
4696
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
4697
|
+
# rubocop:enable Layout/EmptyLines
|
|
4698
|
+
|
|
4699
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
4700
|
+
# rubocop:disable Layout/EmptyLines
|
|
4701
|
+
|
|
4702
|
+
|
|
4562
4703
|
# Calls {OCI::Database::DatabaseClient#delete_cloud_autonomous_vm_cluster} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
4563
4704
|
# to enter the given state(s).
|
|
4564
4705
|
#
|
|
@@ -8108,6 +8249,57 @@ module OCI
|
|
|
8108
8249
|
# rubocop:disable Layout/EmptyLines
|
|
8109
8250
|
|
|
8110
8251
|
|
|
8252
|
+
# Calls {OCI::Database::DatabaseClient#register_exadb_vm_cluster_pkcs} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
8253
|
+
# to enter the given state(s).
|
|
8254
|
+
#
|
|
8255
|
+
# @param [String] exadb_vm_cluster_id The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure.
|
|
8256
|
+
# @param [OCI::Database::Models::RegisterExadbVmClusterPkcsDetails] register_exadb_vm_cluster_pkcs_details Details of registering PKCS11 driver.
|
|
8257
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::WorkRequest#status}
|
|
8258
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#register_exadb_vm_cluster_pkcs}
|
|
8259
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
8260
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
8261
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
8262
|
+
#
|
|
8263
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::Database::Models::WorkRequest}
|
|
8264
|
+
def register_exadb_vm_cluster_pkcs_and_wait_for_state(exadb_vm_cluster_id, register_exadb_vm_cluster_pkcs_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
8265
|
+
operation_result = @service_client.register_exadb_vm_cluster_pkcs(exadb_vm_cluster_id, register_exadb_vm_cluster_pkcs_details, base_operation_opts)
|
|
8266
|
+
use_util = OCI::Database::Util.respond_to?(:wait_on_work_request)
|
|
8267
|
+
|
|
8268
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
8269
|
+
|
|
8270
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
8271
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
8272
|
+
return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty?
|
|
8273
|
+
|
|
8274
|
+
begin
|
|
8275
|
+
if use_util
|
|
8276
|
+
waiter_result = OCI::Database::Util.wait_on_work_request(
|
|
8277
|
+
@service_client,
|
|
8278
|
+
wait_for_resource_id,
|
|
8279
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
8280
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
8281
|
+
)
|
|
8282
|
+
else
|
|
8283
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
8284
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
8285
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
8286
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
8287
|
+
)
|
|
8288
|
+
end
|
|
8289
|
+
result_to_return = waiter_result
|
|
8290
|
+
|
|
8291
|
+
return result_to_return
|
|
8292
|
+
rescue StandardError
|
|
8293
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
8294
|
+
end
|
|
8295
|
+
end
|
|
8296
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
8297
|
+
# rubocop:enable Layout/EmptyLines
|
|
8298
|
+
|
|
8299
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
8300
|
+
# rubocop:disable Layout/EmptyLines
|
|
8301
|
+
|
|
8302
|
+
|
|
8111
8303
|
# Calls {OCI::Database::DatabaseClient#reinstate_autonomous_container_database_dataguard} and then waits for the {OCI::Database::Models::AutonomousContainerDatabase} acted upon
|
|
8112
8304
|
# to enter the given state(s).
|
|
8113
8305
|
#
|
|
@@ -10212,6 +10404,57 @@ module OCI
|
|
|
10212
10404
|
# rubocop:disable Layout/EmptyLines
|
|
10213
10405
|
|
|
10214
10406
|
|
|
10407
|
+
# Calls {OCI::Database::DatabaseClient#unregister_exadb_vm_cluster_pkcs} and then waits for the {OCI::Database::Models::WorkRequest}
|
|
10408
|
+
# to enter the given state(s).
|
|
10409
|
+
#
|
|
10410
|
+
# @param [String] exadb_vm_cluster_id The Exadata VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) on Exascale Infrastructure.
|
|
10411
|
+
# @param [OCI::Database::Models::UnregisterExadbVmClusterPkcsDetails] unregister_exadb_vm_cluster_pkcs_details Details of unregistering PKCS11 driver.
|
|
10412
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::WorkRequest#status}
|
|
10413
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#unregister_exadb_vm_cluster_pkcs}
|
|
10414
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
10415
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
10416
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
10417
|
+
#
|
|
10418
|
+
# @return [OCI::Response] A {OCI::Response} object containing the completed {OCI::Database::Models::WorkRequest}
|
|
10419
|
+
def unregister_exadb_vm_cluster_pkcs_and_wait_for_state(exadb_vm_cluster_id, unregister_exadb_vm_cluster_pkcs_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
10420
|
+
operation_result = @service_client.unregister_exadb_vm_cluster_pkcs(exadb_vm_cluster_id, unregister_exadb_vm_cluster_pkcs_details, base_operation_opts)
|
|
10421
|
+
use_util = OCI::Database::Util.respond_to?(:wait_on_work_request)
|
|
10422
|
+
|
|
10423
|
+
return operation_result if wait_for_states.empty? && !use_util
|
|
10424
|
+
|
|
10425
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
10426
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
|
10427
|
+
return operation_result if wait_for_resource_id.nil? || wait_for_resource_id.empty?
|
|
10428
|
+
|
|
10429
|
+
begin
|
|
10430
|
+
if use_util
|
|
10431
|
+
waiter_result = OCI::Database::Util.wait_on_work_request(
|
|
10432
|
+
@service_client,
|
|
10433
|
+
wait_for_resource_id,
|
|
10434
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
10435
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
10436
|
+
)
|
|
10437
|
+
else
|
|
10438
|
+
waiter_result = @service_client.get_work_request(wait_for_resource_id).wait_until(
|
|
10439
|
+
eval_proc: ->(response) { response.data.respond_to?(:status) && lowered_wait_for_states.include?(response.data.status.downcase) },
|
|
10440
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
10441
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
10442
|
+
)
|
|
10443
|
+
end
|
|
10444
|
+
result_to_return = waiter_result
|
|
10445
|
+
|
|
10446
|
+
return result_to_return
|
|
10447
|
+
rescue StandardError
|
|
10448
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
10449
|
+
end
|
|
10450
|
+
end
|
|
10451
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
10452
|
+
# rubocop:enable Layout/EmptyLines
|
|
10453
|
+
|
|
10454
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
10455
|
+
# rubocop:disable Layout/EmptyLines
|
|
10456
|
+
|
|
10457
|
+
|
|
10215
10458
|
# Calls {OCI::Database::DatabaseClient#update_advanced_cluster_file_system} and then waits for the {OCI::Database::Models::AdvancedClusterFileSystem} acted upon
|
|
10216
10459
|
# to enter the given state(s).
|
|
10217
10460
|
#
|
|
@@ -10716,6 +10959,46 @@ module OCI
|
|
|
10716
10959
|
# rubocop:disable Layout/EmptyLines
|
|
10717
10960
|
|
|
10718
10961
|
|
|
10962
|
+
# Calls {OCI::Database::DatabaseClient#update_basecc_vm_cluster} and then waits for the {OCI::Database::Models::BaseccVmCluster} acted upon
|
|
10963
|
+
# to enter the given state(s).
|
|
10964
|
+
#
|
|
10965
|
+
# @param [String] basecc_vm_cluster_id The BaseDB-C@C VM cluster [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
10966
|
+
# @param [OCI::Database::Models::UpdateBaseccVmClusterDetails] update_basecc_vm_cluster_details Request to update the attributes of a BaseDB-C@C VM cluster.
|
|
10967
|
+
# @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Database::Models::BaseccVmCluster#lifecycle_state}
|
|
10968
|
+
# @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Database::DatabaseClient#update_basecc_vm_cluster}
|
|
10969
|
+
# @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
|
|
10970
|
+
# * max_interval_seconds: The maximum interval between queries, in seconds.
|
|
10971
|
+
# * max_wait_seconds The maximum time to wait, in seconds
|
|
10972
|
+
#
|
|
10973
|
+
# @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Database::Models::BaseccVmCluster}
|
|
10974
|
+
def update_basecc_vm_cluster_and_wait_for_state(basecc_vm_cluster_id, update_basecc_vm_cluster_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
|
|
10975
|
+
operation_result = @service_client.update_basecc_vm_cluster(basecc_vm_cluster_id, update_basecc_vm_cluster_details, base_operation_opts)
|
|
10976
|
+
|
|
10977
|
+
return operation_result if wait_for_states.empty?
|
|
10978
|
+
|
|
10979
|
+
lowered_wait_for_states = wait_for_states.map(&:downcase)
|
|
10980
|
+
wait_for_resource_id = operation_result.data.id
|
|
10981
|
+
|
|
10982
|
+
begin
|
|
10983
|
+
waiter_result = @service_client.get_basecc_vm_cluster(wait_for_resource_id).wait_until(
|
|
10984
|
+
eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
|
|
10985
|
+
max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
|
|
10986
|
+
max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
|
|
10987
|
+
)
|
|
10988
|
+
result_to_return = waiter_result
|
|
10989
|
+
|
|
10990
|
+
return result_to_return
|
|
10991
|
+
rescue StandardError
|
|
10992
|
+
raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
|
|
10993
|
+
end
|
|
10994
|
+
end
|
|
10995
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
10996
|
+
# rubocop:enable Layout/EmptyLines
|
|
10997
|
+
|
|
10998
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
|
|
10999
|
+
# rubocop:disable Layout/EmptyLines
|
|
11000
|
+
|
|
11001
|
+
|
|
10719
11002
|
# Calls {OCI::Database::DatabaseClient#update_cloud_autonomous_vm_cluster} and then waits for the {OCI::Database::Models::CloudAutonomousVmCluster} acted upon
|
|
10720
11003
|
# to enter the given state(s).
|
|
10721
11004
|
#
|