oci 2.13.0 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +6 -4
- data/README.md +6 -1
- data/lib/oci.rb +4 -0
- data/lib/oci/ai_language/ai_language.rb +35 -0
- data/lib/oci/ai_language/ai_service_language_client.rb +396 -0
- data/lib/oci/ai_language/ai_service_language_client_composite_operations.rb +25 -0
- data/lib/oci/ai_language/models/detect_dominant_language_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_dominant_language_result.rb +154 -0
- data/lib/oci/ai_language/models/detect_language_entities_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_entities_result.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_key_phrases_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_key_phrases_result.rb +154 -0
- data/lib/oci/ai_language/models/detect_language_sentiments_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_sentiments_result.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_text_classification_details.rb +150 -0
- data/lib/oci/ai_language/models/detect_language_text_classification_result.rb +154 -0
- data/lib/oci/ai_language/models/detected_language.rb +172 -0
- data/lib/oci/ai_language/models/entity.rb +205 -0
- data/lib/oci/ai_language/models/key_phrase.rb +160 -0
- data/lib/oci/ai_language/models/ner_model_version.rb +11 -0
- data/lib/oci/ai_language/models/sentiment_aspect.rb +192 -0
- data/lib/oci/ai_language/models/text_classification.rb +160 -0
- data/lib/oci/ai_language/util.rb +3 -0
- data/lib/oci/api_client.rb +3 -6
- data/lib/oci/apigateway/apigateway.rb +17 -0
- data/lib/oci/apigateway/models/api_specification_route_request_policies.rb +56 -4
- data/lib/oci/apigateway/models/api_specification_route_response_policies.rb +17 -4
- data/lib/oci/apigateway/models/body_validation_request_policy.rb +211 -0
- data/lib/oci/apigateway/models/content_validation.rb +194 -0
- data/lib/oci/apigateway/models/create_gateway_details.rb +14 -1
- data/lib/oci/apigateway/models/external_resp_cache.rb +269 -0
- data/lib/oci/apigateway/models/fixed_ttl_response_cache_store_policy.rb +164 -0
- data/lib/oci/apigateway/models/gateway.rb +14 -1
- data/lib/oci/apigateway/models/header_validation_item.rb +161 -0
- data/lib/oci/apigateway/models/header_validation_request_policy.rb +188 -0
- data/lib/oci/apigateway/models/no_cache.rb +146 -0
- data/lib/oci/apigateway/models/no_content_validation.rb +145 -0
- data/lib/oci/apigateway/models/query_parameter_validation_item.rb +161 -0
- data/lib/oci/apigateway/models/query_parameter_validation_request_policy.rb +195 -0
- data/lib/oci/apigateway/models/request_parameter_validation.rb +150 -0
- data/lib/oci/apigateway/models/response_cache_details.rb +188 -0
- data/lib/oci/apigateway/models/response_cache_lookup_policy.rb +225 -0
- data/lib/oci/apigateway/models/response_cache_resp_server.rb +161 -0
- data/lib/oci/apigateway/models/response_cache_store_policy.rb +186 -0
- data/lib/oci/apigateway/models/simple_lookup_policy.rb +173 -0
- data/lib/oci/apigateway/models/update_gateway_details.rb +14 -1
- data/lib/oci/apigateway/models/validation_request_policy.rb +179 -0
- data/lib/oci/auth/signers/resource_principals_federation_signer.rb +15 -17
- data/lib/oci/cloud_guard/cloud_guard.rb +13 -0
- data/lib/oci/cloud_guard/cloud_guard_client.rb +426 -9
- data/lib/oci/cloud_guard/cloud_guard_client_composite_operations.rb +119 -0
- data/lib/oci/cloud_guard/models/all_targets_selected.rb +145 -0
- data/lib/oci/cloud_guard/models/create_data_mask_rule_details.rb +335 -0
- data/lib/oci/cloud_guard/models/create_managed_list_details.rb +2 -1
- data/lib/oci/cloud_guard/models/data_mask_category.rb +15 -0
- data/lib/oci/cloud_guard/models/data_mask_rule.rb +425 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_collection.rb +150 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_status.rb +11 -0
- data/lib/oci/cloud_guard/models/data_mask_rule_summary.rb +425 -0
- data/lib/oci/cloud_guard/models/detector_recipe.rb +2 -2
- data/lib/oci/cloud_guard/models/detector_recipe_detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_recipe_detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/managed_list_type.rb +2 -1
- data/lib/oci/cloud_guard/models/policy_collection.rb +150 -0
- data/lib/oci/cloud_guard/models/policy_summary.rb +150 -0
- data/lib/oci/cloud_guard/models/problem.rb +35 -1
- data/lib/oci/cloud_guard/models/security_rating.rb +2 -1
- data/lib/oci/cloud_guard/models/security_score_aggregation.rb +1 -0
- data/lib/oci/cloud_guard/models/security_score_trend_aggregation.rb +1 -0
- data/lib/oci/cloud_guard/models/target_detector_recipe_detector_rule.rb +1 -0
- data/lib/oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.rb +1 -0
- data/lib/oci/cloud_guard/models/target_ids_selected.rb +158 -0
- data/lib/oci/cloud_guard/models/target_resource_types_selected.rb +186 -0
- data/lib/oci/cloud_guard/models/target_selected.rb +189 -0
- data/lib/oci/cloud_guard/models/update_bulk_problem_status_details.rb +14 -4
- data/lib/oci/cloud_guard/models/update_data_mask_rule_details.rb +292 -0
- data/lib/oci/config.rb +1 -3
- data/lib/oci/core/compute_client.rb +6 -5
- data/lib/oci/core/core.rb +47 -0
- data/lib/oci/core/models/add_drg_route_distribution_statement_details.rb +195 -0
- data/lib/oci/core/models/add_drg_route_distribution_statements_details.rb +152 -0
- data/lib/oci/core/models/add_drg_route_rule_details.rb +202 -0
- data/lib/oci/core/models/add_drg_route_rules_details.rb +156 -0
- data/lib/oci/core/models/add_security_rule_details.rb +2 -2
- data/lib/oci/core/models/bgp_session_info.rb +90 -4
- data/lib/oci/core/models/block_volume_replica.rb +19 -4
- data/lib/oci/core/models/boot_volume_replica.rb +19 -4
- data/lib/oci/core/models/create_drg_attachment_details.rb +72 -4
- data/lib/oci/core/models/create_drg_details.rb +1 -1
- data/lib/oci/core/models/create_drg_route_distribution_details.rb +235 -0
- data/lib/oci/core/models/create_drg_route_table_details.rb +242 -0
- data/lib/oci/core/models/create_image_details.rb +2 -2
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/create_ip_sec_tunnel_bgp_session_details.rb +53 -1
- data/lib/oci/core/models/create_ipv6_details.rb +1 -23
- data/lib/oci/core/models/create_subnet_details.rb +26 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -36
- data/lib/oci/core/models/create_vnic_details.rb +20 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +1 -1
- data/lib/oci/core/models/cross_connect_mapping_details.rb +356 -0
- data/lib/oci/core/models/cross_connect_mapping_details_collection.rb +150 -0
- data/lib/oci/core/models/default_drg_route_tables.rb +206 -0
- data/lib/oci/core/models/drg.rb +38 -10
- data/lib/oci/core/models/drg_attachment.rb +115 -10
- data/lib/oci/core/models/drg_attachment_id_drg_route_distribution_match_criteria.rb +164 -0
- data/lib/oci/core/models/drg_attachment_info.rb +152 -0
- data/lib/oci/core/models/drg_attachment_network_create_details.rb +189 -0
- data/lib/oci/core/models/drg_attachment_network_details.rb +202 -0
- data/lib/oci/core/models/drg_attachment_network_update_details.rb +178 -0
- data/lib/oci/core/models/drg_attachment_type_drg_route_distribution_match_criteria.rb +188 -0
- data/lib/oci/core/models/drg_redundancy_status.rb +1 -1
- data/lib/oci/core/models/drg_route_distribution.rb +336 -0
- data/lib/oci/core/models/drg_route_distribution_match_criteria.rb +194 -0
- data/lib/oci/core/models/drg_route_distribution_statement.rb +215 -0
- data/lib/oci/core/models/drg_route_rule.rb +341 -0
- data/lib/oci/core/models/drg_route_table.rb +332 -0
- data/lib/oci/core/models/image.rb +2 -2
- data/lib/oci/core/models/ingress_security_rule.rb +1 -1
- data/lib/oci/core/models/instance.rb +15 -2
- data/lib/oci/core/models/instance_availability_config.rb +18 -1
- data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +17 -1
- data/lib/oci/core/models/instance_configuration_launch_instance_details.rb +18 -5
- data/lib/oci/core/models/instance_configuration_launch_instance_shape_config_details.rb +46 -4
- data/lib/oci/core/models/instance_configuration_launch_options.rb +5 -5
- data/lib/oci/core/models/instance_shape_config.rb +43 -1
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ipsec_tunnel_drg_attachment_network_details.rb +166 -0
- data/lib/oci/core/models/ipv6.rb +4 -54
- data/lib/oci/core/models/launch_instance_availability_config_details.rb +20 -2
- data/lib/oci/core/models/launch_instance_details.rb +14 -1
- data/lib/oci/core/models/launch_instance_shape_config_details.rb +39 -4
- data/lib/oci/core/models/launch_options.rb +5 -5
- data/lib/oci/core/models/local_peering_gateway.rb +15 -1
- data/lib/oci/core/models/networking_topology.rb +158 -0
- data/lib/oci/core/models/port_range.rb +2 -2
- data/lib/oci/core/models/preemptible_instance_config_details.rb +155 -0
- data/lib/oci/core/models/preemption_action.rb +186 -0
- data/lib/oci/core/models/remote_peering_connection_drg_attachment_network_details.rb +149 -0
- data/lib/oci/core/models/remove_drg_route_distribution_statements_details.rb +156 -0
- data/lib/oci/core/models/remove_drg_route_rules_details.rb +156 -0
- data/lib/oci/core/models/route_rule.rb +3 -2
- data/lib/oci/core/models/route_table.rb +1 -1
- data/lib/oci/core/models/security_rule.rb +4 -4
- data/lib/oci/core/models/shape.rb +75 -1
- data/lib/oci/core/models/subnet.rb +30 -24
- data/lib/oci/core/models/terminate_preemption_action.rb +166 -0
- data/lib/oci/core/models/topology.rb +214 -0
- data/lib/oci/core/models/topology_associated_with_entity_relationship.rb +157 -0
- data/lib/oci/core/models/topology_contains_entity_relationship.rb +157 -0
- data/lib/oci/core/models/topology_entity_relationship.rb +209 -0
- data/lib/oci/core/models/topology_routes_to_entity_relationship.rb +173 -0
- data/lib/oci/core/models/topology_routes_to_relationship_details.rb +183 -0
- data/lib/oci/core/models/update_cluster_network_details.rb +19 -4
- data/lib/oci/core/models/update_cluster_network_instance_pool_details.rb +212 -0
- data/lib/oci/core/models/update_drg_attachment_details.rb +88 -2
- data/lib/oci/core/models/update_drg_details.rb +14 -1
- data/lib/oci/core/models/update_drg_route_distribution_details.rb +195 -0
- data/lib/oci/core/models/update_drg_route_distribution_statement_details.rb +179 -0
- data/lib/oci/core/models/update_drg_route_distribution_statements_details.rb +152 -0
- data/lib/oci/core/models/update_drg_route_rule_details.rb +212 -0
- data/lib/oci/core/models/update_drg_route_rules_details.rb +155 -0
- data/lib/oci/core/models/update_drg_route_table_details.rb +227 -0
- data/lib/oci/core/models/update_instance_availability_config_details.rb +20 -2
- data/lib/oci/core/models/update_instance_shape_config_details.rb +39 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -2
- data/lib/oci/core/models/update_ip_sec_tunnel_bgp_session_details.rb +53 -1
- data/lib/oci/core/models/update_ipv6_details.rb +1 -23
- data/lib/oci/core/models/update_launch_options.rb +1 -1
- data/lib/oci/core/models/update_security_rule_details.rb +2 -2
- data/lib/oci/core/models/update_subnet_details.rb +27 -4
- data/lib/oci/core/models/upgrade_status.rb +203 -0
- data/lib/oci/core/models/vcn.rb +12 -38
- data/lib/oci/core/models/vcn_drg_attachment_network_create_details.rb +174 -0
- data/lib/oci/core/models/vcn_drg_attachment_network_details.rb +172 -0
- data/lib/oci/core/models/vcn_drg_attachment_network_update_details.rb +168 -0
- data/lib/oci/core/models/vcn_topology.rb +175 -0
- data/lib/oci/core/models/virtual_circuit.rb +35 -2
- data/lib/oci/core/models/virtual_circuit_drg_attachment_network_details.rb +149 -0
- data/lib/oci/core/virtual_network_client.rb +2092 -236
- data/lib/oci/core/virtual_network_client_composite_operations.rb +446 -32
- data/lib/oci/data_catalog/data_catalog.rb +2 -0
- data/lib/oci/data_catalog/data_catalog_client.rb +91 -0
- data/lib/oci/data_catalog/models/attribute.rb +15 -1
- data/lib/oci/data_catalog/models/attribute_summary.rb +29 -1
- data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_connection_details.rb +1 -1
- data/lib/oci/data_catalog/models/create_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/create_entity_details.rb +15 -1
- data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
- data/lib/oci/data_catalog/models/custom_property.rb +17 -1
- data/lib/oci/data_catalog/models/custom_property_get_usage.rb +17 -1
- data/lib/oci/data_catalog/models/custom_property_summary.rb +17 -1
- data/lib/oci/data_catalog/models/entity.rb +15 -1
- data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
- data/lib/oci/data_catalog/models/folder.rb +15 -1
- data/lib/oci/data_catalog/models/folder_summary.rb +15 -1
- data/lib/oci/data_catalog/models/job.rb +15 -1
- data/lib/oci/data_catalog/models/job_definition_summary.rb +18 -4
- data/lib/oci/data_catalog/models/job_summary.rb +15 -1
- data/lib/oci/data_catalog/models/search_result.rb +55 -1
- data/lib/oci/data_catalog/models/suggest_list_item.rb +166 -0
- data/lib/oci/data_catalog/models/suggest_results.rb +194 -0
- data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_connection_details.rb +1 -1
- data/lib/oci/data_catalog/models/update_custom_property_details.rb +17 -1
- data/lib/oci/data_catalog/models/update_entity_details.rb +15 -1
- data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
- data/lib/oci/data_flow/data_flow_client.rb +4 -4
- data/lib/oci/data_flow/data_flow_client_composite_operations.rb +1 -1
- data/lib/oci/data_flow/models/application.rb +16 -1
- data/lib/oci/data_flow/models/change_private_endpoint_compartment_details.rb +1 -1
- data/lib/oci/data_flow/models/create_application_details.rb +16 -1
- data/lib/oci/data_flow/models/create_private_endpoint_details.rb +1 -1
- data/lib/oci/data_flow/models/create_run_details.rb +66 -4
- data/lib/oci/data_flow/models/private_endpoint_collection.rb +2 -2
- data/lib/oci/data_flow/models/run.rb +16 -1
- data/lib/oci/data_flow/models/update_application_details.rb +16 -1
- data/lib/oci/data_flow/models/update_private_endpoint_details.rb +1 -1
- data/lib/oci/data_flow/models/work_request_summary.rb +1 -1
- data/lib/oci/data_science/data_science_client.rb +8 -7
- data/lib/oci/data_science/data_science_client_composite_operations.rb +4 -3
- data/lib/oci/database/database.rb +5 -0
- data/lib/oci/database/database_client.rb +278 -0
- data/lib/oci/database/database_client_composite_operations.rb +200 -0
- data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +4 -2
- data/lib/oci/database/models/autonomous_database.rb +20 -5
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +18 -4
- data/lib/oci/database/models/autonomous_database_dataguard_association.rb +4 -2
- data/lib/oci/database/models/autonomous_database_summary.rb +20 -5
- data/lib/oci/database/models/create_autonomous_database_base.rb +18 -4
- data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_details.rb +8 -4
- data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
- data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_database_software_image_details.rb +2 -2
- data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
- data/lib/oci/database/models/customer_contact.rb +151 -0
- data/lib/oci/database/models/database.rb +1 -1
- data/lib/oci/database/models/database_summary.rb +1 -1
- data/lib/oci/database/models/enable_external_database_operations_insights_details_base.rb +156 -0
- data/lib/oci/database/models/enable_external_non_container_database_operations_insights_details.rb +153 -0
- data/lib/oci/database/models/enable_external_pluggable_database_operations_insights_details.rb +153 -0
- data/lib/oci/database/models/exadata_infrastructure.rb +29 -1
- data/lib/oci/database/models/exadata_infrastructure_summary.rb +29 -1
- data/lib/oci/database/models/external_container_database.rb +34 -1
- data/lib/oci/database/models/external_container_database_summary.rb +34 -1
- data/lib/oci/database/models/external_database_base.rb +28 -1
- data/lib/oci/database/models/external_non_container_database.rb +50 -1
- data/lib/oci/database/models/external_non_container_database_summary.rb +50 -1
- data/lib/oci/database/models/external_pluggable_database.rb +47 -1
- data/lib/oci/database/models/external_pluggable_database_summary.rb +47 -1
- data/lib/oci/database/models/maintenance_run.rb +51 -4
- data/lib/oci/database/models/maintenance_run_summary.rb +51 -4
- data/lib/oci/database/models/operations_insights_config.rb +194 -0
- data/lib/oci/database/models/update_autonomous_database_details.rb +18 -4
- data/lib/oci/database/models/update_maintenance_run_details.rb +31 -4
- data/lib/oci/database_management/database_management.rb +6 -0
- data/lib/oci/database_management/db_management_client.rb +70 -3
- data/lib/oci/database_management/models/activity_time_series_metrics.rb +13 -4
- data/lib/oci/database_management/models/change_database_parameters_details.rb +1 -1
- data/lib/oci/database_management/models/cluster_cache_metric.rb +156 -0
- data/lib/oci/database_management/models/database_home_metrics.rb +18 -4
- data/lib/oci/database_management/models/database_instance_home_metrics_definition.rb +234 -0
- data/lib/oci/database_management/models/database_parameter_summary.rb +1 -1
- data/lib/oci/database_management/models/database_parameters_collection.rb +1 -1
- data/lib/oci/database_management/models/database_time_aggregate_metrics.rb +13 -4
- data/lib/oci/database_management/models/instance_details.rb +205 -0
- data/lib/oci/database_management/models/managed_database.rb +88 -1
- data/lib/oci/database_management/models/pdb_status_details.rb +181 -0
- data/lib/oci/database_management/models/reset_database_parameters_details.rb +8 -7
- data/lib/oci/database_management/models/time_series_metric_data_point.rb +180 -0
- data/lib/oci/database_management/models/time_series_metric_definition.rb +166 -0
- data/lib/oci/database_management/models/update_database_parameters_result.rb +1 -1
- data/lib/oci/database_migration/database_migration.rb +132 -0
- data/lib/oci/database_migration/database_migration_client.rb +2579 -0
- data/lib/oci/database_migration/database_migration_client_composite_operations.rb +736 -0
- data/lib/oci/database_migration/models/admin_credentials.rb +152 -0
- data/lib/oci/database_migration/models/agent.rb +356 -0
- data/lib/oci/database_migration/models/agent_collection.rb +152 -0
- data/lib/oci/database_migration/models/agent_image_collection.rb +152 -0
- data/lib/oci/database_migration/models/agent_image_summary.rb +167 -0
- data/lib/oci/database_migration/models/agent_summary.rb +341 -0
- data/lib/oci/database_migration/models/change_agent_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/change_connection_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/change_migration_compartment_details.rb +156 -0
- data/lib/oci/database_migration/models/clone_migration_details.rb +292 -0
- data/lib/oci/database_migration/models/connect_descriptor.rb +193 -0
- data/lib/oci/database_migration/models/connection.rb +461 -0
- data/lib/oci/database_migration/models/connection_collection.rb +152 -0
- data/lib/oci/database_migration/models/connection_summary.rb +366 -0
- data/lib/oci/database_migration/models/create_admin_credentials.rb +163 -0
- data/lib/oci/database_migration/models/create_agent_details.rb +244 -0
- data/lib/oci/database_migration/models/create_connect_descriptor.rb +198 -0
- data/lib/oci/database_migration/models/create_connection_details.rb +360 -0
- data/lib/oci/database_migration/models/create_data_pump_parameters.rb +261 -0
- data/lib/oci/database_migration/models/create_data_pump_settings.rb +228 -0
- data/lib/oci/database_migration/models/create_data_transfer_medium_details.rb +168 -0
- data/lib/oci/database_migration/models/create_database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/create_directory_object.rb +165 -0
- data/lib/oci/database_migration/models/create_extract.rb +188 -0
- data/lib/oci/database_migration/models/create_golden_gate_details.rb +160 -0
- data/lib/oci/database_migration/models/create_golden_gate_hub.rb +253 -0
- data/lib/oci/database_migration/models/create_golden_gate_settings.rb +174 -0
- data/lib/oci/database_migration/models/create_migration_details.rb +355 -0
- data/lib/oci/database_migration/models/create_object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/create_private_endpoint.rb +189 -0
- data/lib/oci/database_migration/models/create_replicat.rb +186 -0
- data/lib/oci/database_migration/models/create_ssh_details.rb +190 -0
- data/lib/oci/database_migration/models/create_vault_details.rb +186 -0
- data/lib/oci/database_migration/models/data_pump_estimate.rb +11 -0
- data/lib/oci/database_migration/models/data_pump_exclude_parameters.rb +12 -0
- data/lib/oci/database_migration/models/data_pump_job_mode.rb +14 -0
- data/lib/oci/database_migration/models/data_pump_parameters.rb +274 -0
- data/lib/oci/database_migration/models/data_pump_settings.rb +235 -0
- data/lib/oci/database_migration/models/data_pump_table_exists_action.rb +13 -0
- data/lib/oci/database_migration/models/data_transfer_medium_details.rb +167 -0
- data/lib/oci/database_migration/models/database_connection_types.rb +12 -0
- data/lib/oci/database_migration/models/database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/database_object.rb +167 -0
- data/lib/oci/database_migration/models/directory_object.rb +163 -0
- data/lib/oci/database_migration/models/extract.rb +195 -0
- data/lib/oci/database_migration/models/extract_performance_profile.rb +12 -0
- data/lib/oci/database_migration/models/generate_token.rb +156 -0
- data/lib/oci/database_migration/models/golden_gate_details.rb +160 -0
- data/lib/oci/database_migration/models/golden_gate_hub.rb +253 -0
- data/lib/oci/database_migration/models/golden_gate_settings.rb +174 -0
- data/lib/oci/database_migration/models/job.rb +372 -0
- data/lib/oci/database_migration/models/job_collection.rb +152 -0
- data/lib/oci/database_migration/models/job_lifecycle_states.rb +18 -0
- data/lib/oci/database_migration/models/job_output_summary.rb +152 -0
- data/lib/oci/database_migration/models/job_output_summary_collection.rb +152 -0
- data/lib/oci/database_migration/models/job_phase_status.rb +13 -0
- data/lib/oci/database_migration/models/job_summary.rb +357 -0
- data/lib/oci/database_migration/models/job_types.rb +11 -0
- data/lib/oci/database_migration/models/lifecycle_states.rb +16 -0
- data/lib/oci/database_migration/models/metadata_remap.rb +205 -0
- data/lib/oci/database_migration/models/migration.rb +590 -0
- data/lib/oci/database_migration/models/migration_collection.rb +152 -0
- data/lib/oci/database_migration/models/migration_job_progress_resource.rb +237 -0
- data/lib/oci/database_migration/models/migration_job_progress_summary.rb +241 -0
- data/lib/oci/database_migration/models/migration_phase_collection.rb +152 -0
- data/lib/oci/database_migration/models/migration_phase_summary.rb +234 -0
- data/lib/oci/database_migration/models/migration_status.rb +16 -0
- data/lib/oci/database_migration/models/migration_summary.rb +472 -0
- data/lib/oci/database_migration/models/migration_types.rb +11 -0
- data/lib/oci/database_migration/models/object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/odms_job_phases.rb +25 -0
- data/lib/oci/database_migration/models/odms_phase_actions.rb +10 -0
- data/lib/oci/database_migration/models/operation_status.rb +15 -0
- data/lib/oci/database_migration/models/operation_types.rb +20 -0
- data/lib/oci/database_migration/models/par_link.rb +156 -0
- data/lib/oci/database_migration/models/phase_status.rb +244 -0
- data/lib/oci/database_migration/models/private_endpoint_details.rb +199 -0
- data/lib/oci/database_migration/models/replicat.rb +186 -0
- data/lib/oci/database_migration/models/resume_job_details.rb +184 -0
- data/lib/oci/database_migration/models/sort_orders.rb +11 -0
- data/lib/oci/database_migration/models/ssh_details.rb +178 -0
- data/lib/oci/database_migration/models/start_migration_details.rb +184 -0
- data/lib/oci/database_migration/models/unsupported_database_object.rb +197 -0
- data/lib/oci/database_migration/models/update_admin_credentials.rb +163 -0
- data/lib/oci/database_migration/models/update_agent_details.rb +244 -0
- data/lib/oci/database_migration/models/update_connect_descriptor.rb +197 -0
- data/lib/oci/database_migration/models/update_connection_details.rb +312 -0
- data/lib/oci/database_migration/models/update_data_pump_parameters.rb +262 -0
- data/lib/oci/database_migration/models/update_data_pump_settings.rb +229 -0
- data/lib/oci/database_migration/models/update_data_transfer_medium_details.rb +169 -0
- data/lib/oci/database_migration/models/update_database_link_details.rb +152 -0
- data/lib/oci/database_migration/models/update_directory_object.rb +166 -0
- data/lib/oci/database_migration/models/update_extract.rb +189 -0
- data/lib/oci/database_migration/models/update_golden_gate_details.rb +159 -0
- data/lib/oci/database_migration/models/update_golden_gate_hub.rb +250 -0
- data/lib/oci/database_migration/models/update_golden_gate_settings.rb +175 -0
- data/lib/oci/database_migration/models/update_job_details.rb +188 -0
- data/lib/oci/database_migration/models/update_migration_details.rb +342 -0
- data/lib/oci/database_migration/models/update_object_store_bucket.rb +171 -0
- data/lib/oci/database_migration/models/update_private_endpoint.rb +189 -0
- data/lib/oci/database_migration/models/update_replicat.rb +187 -0
- data/lib/oci/database_migration/models/update_ssh_details.rb +189 -0
- data/lib/oci/database_migration/models/update_vault_details.rb +186 -0
- data/lib/oci/database_migration/models/vault_details.rb +186 -0
- data/lib/oci/database_migration/models/work_request.rb +319 -0
- data/lib/oci/database_migration/models/work_request_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_error.rb +180 -0
- data/lib/oci/database_migration/models/work_request_error_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_log_entry.rb +167 -0
- data/lib/oci/database_migration/models/work_request_log_entry_collection.rb +152 -0
- data/lib/oci/database_migration/models/work_request_resource.rb +223 -0
- data/lib/oci/database_migration/models/work_request_summary.rb +280 -0
- data/lib/oci/database_migration/util.rb +3 -0
- data/lib/oci/functions/functions.rb +2 -0
- data/lib/oci/functions/models/application.rb +14 -1
- data/lib/oci/functions/models/application_summary.rb +14 -1
- data/lib/oci/functions/models/application_trace_config.rb +171 -0
- data/lib/oci/functions/models/create_application_details.rb +14 -1
- data/lib/oci/functions/models/create_function_details.rb +14 -1
- data/lib/oci/functions/models/function.rb +14 -1
- data/lib/oci/functions/models/function_summary.rb +14 -1
- data/lib/oci/functions/models/function_trace_config.rb +156 -0
- data/lib/oci/functions/models/update_application_details.rb +14 -1
- data/lib/oci/functions/models/update_function_details.rb +14 -1
- data/lib/oci/limits/limits_client.rb +3 -3
- data/lib/oci/limits/models/limit_definition_summary.rb +34 -4
- data/lib/oci/limits/models/resource_availability.rb +54 -6
- data/lib/oci/limits/quotas_client.rb +1 -1
- data/lib/oci/loggingsearch/models/search_result.rb +1 -0
- data/lib/oci/object_storage/models/bucket.rb +40 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +22 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +21 -4
- data/lib/oci/object_storage/object_storage_client.rb +8 -5
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +66 -1
- data/lib/oci/ocvp/models/create_sddc_details.rb +34 -1
- data/lib/oci/ocvp/models/esxi_host.rb +94 -1
- data/lib/oci/ocvp/models/esxi_host_summary.rb +94 -1
- data/lib/oci/ocvp/models/sddc.rb +40 -1
- data/lib/oci/ocvp/models/sku.rb +13 -0
- data/lib/oci/ocvp/models/supported_sku_summary.rb +173 -0
- data/lib/oci/ocvp/models/supported_sku_summary_collection.rb +150 -0
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +32 -1
- data/lib/oci/ocvp/ocvp.rb +3 -0
- data/lib/oci/ocvp/sddc_client.rb +68 -0
- data/lib/oci/operator_access_control/access_requests_client.rb +515 -0
- data/lib/oci/operator_access_control/access_requests_client_composite_operations.rb +25 -0
- data/lib/oci/operator_access_control/models/access_request.rb +583 -0
- data/lib/oci/operator_access_control/models/access_request_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/access_request_history_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/access_request_history_summary.rb +269 -0
- data/lib/oci/operator_access_control/models/access_request_lifecycle_states.rb +29 -0
- data/lib/oci/operator_access_control/models/access_request_severities.rb +13 -0
- data/lib/oci/operator_access_control/models/access_request_summary.rb +403 -0
- data/lib/oci/operator_access_control/models/approve_access_request_details.rb +185 -0
- data/lib/oci/operator_access_control/models/change_operator_control_assignment_compartment_details.rb +154 -0
- data/lib/oci/operator_access_control/models/change_operator_control_compartment_details.rb +154 -0
- data/lib/oci/operator_access_control/models/create_operator_control_assignment_details.rb +322 -0
- data/lib/oci/operator_access_control/models/create_operator_control_details.rb +302 -0
- data/lib/oci/operator_access_control/models/infrastrcuture_layers.rb +12 -0
- data/lib/oci/operator_access_control/models/operator_action.rb +198 -0
- data/lib/oci/operator_access_control/models/operator_action_categories.rb +14 -0
- data/lib/oci/operator_access_control/models/operator_action_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_action_lifecycle_states.rb +11 -0
- data/lib/oci/operator_access_control/models/operator_action_properties.rb +160 -0
- data/lib/oci/operator_access_control/models/operator_action_summary.rb +230 -0
- data/lib/oci/operator_access_control/models/operator_control.rb +407 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment.rb +448 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_lifecycle_states.rb +13 -0
- data/lib/oci/operator_access_control/models/operator_control_assignment_summary.rb +331 -0
- data/lib/oci/operator_access_control/models/operator_control_collection.rb +150 -0
- data/lib/oci/operator_access_control/models/operator_control_lifecycle_states.rb +13 -0
- data/lib/oci/operator_access_control/models/operator_control_summary.rb +303 -0
- data/lib/oci/operator_access_control/models/reject_access_request_details.rb +154 -0
- data/lib/oci/operator_access_control/models/resource_types.rb +10 -0
- data/lib/oci/operator_access_control/models/revoke_access_request_details.rb +154 -0
- data/lib/oci/operator_access_control/models/sort_orders.rb +11 -0
- data/lib/oci/operator_access_control/models/update_operator_control_assignment_details.rb +224 -0
- data/lib/oci/operator_access_control/models/update_operator_control_details.rb +283 -0
- data/lib/oci/operator_access_control/operator_access_control.rb +57 -0
- data/lib/oci/operator_access_control/operator_actions_client.rb +243 -0
- data/lib/oci/operator_access_control/operator_actions_client_composite_operations.rb +25 -0
- data/lib/oci/operator_access_control/operator_control_assignment_client.rb +501 -0
- data/lib/oci/operator_access_control/operator_control_assignment_client_composite_operations.rb +105 -0
- data/lib/oci/operator_access_control/operator_control_client.rb +507 -0
- data/lib/oci/operator_access_control/operator_control_client_composite_operations.rb +144 -0
- data/lib/oci/operator_access_control/util.rb +3 -0
- data/lib/oci/opsi/models/action_type.rb +14 -0
- data/lib/oci/opsi/models/autonomous_database_insight.rb +271 -0
- data/lib/oci/opsi/models/autonomous_database_insight_summary.rb +230 -0
- data/lib/oci/opsi/models/change_database_insight_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/change_enterprise_manager_bridge_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/change_host_insight_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/connection_details.rb +208 -0
- data/lib/oci/opsi/models/create_database_insight_details.rb +228 -0
- data/lib/oci/opsi/models/create_em_managed_external_database_insight_details.rb +202 -0
- data/lib/oci/opsi/models/create_enterprise_manager_bridge_details.rb +224 -0
- data/lib/oci/opsi/models/create_host_insight_details.rb +228 -0
- data/lib/oci/opsi/models/create_macs_managed_external_host_insight_details.rb +174 -0
- data/lib/oci/opsi/models/credential_details.rb +204 -0
- data/lib/oci/opsi/models/credentials_by_source.rb +150 -0
- data/lib/oci/opsi/models/database_configuration_metric_group.rb +204 -0
- data/lib/oci/opsi/models/database_details.rb +24 -4
- data/lib/oci/opsi/models/database_entity_source.rb +10 -0
- data/lib/oci/opsi/models/database_entity_source_all.rb +12 -0
- data/lib/oci/opsi/models/database_insight.rb +416 -0
- data/lib/oci/opsi/models/database_insight_summary.rb +191 -5
- data/lib/oci/opsi/models/db_external_instance.rb +300 -0
- data/lib/oci/opsi/models/db_external_properties.rb +280 -0
- data/lib/oci/opsi/models/dbos_config_instance.rb +236 -0
- data/lib/oci/opsi/models/em_managed_external_database_insight.rb +284 -0
- data/lib/oci/opsi/models/em_managed_external_database_insight_summary.rb +300 -0
- data/lib/oci/opsi/models/enable_database_insight_details.rb +182 -0
- data/lib/oci/opsi/models/enable_em_managed_external_database_insight_details.rb +145 -0
- data/lib/oci/opsi/models/enable_host_insight_details.rb +182 -0
- data/lib/oci/opsi/models/enable_macs_managed_external_host_insight_details.rb +145 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge.rb +344 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge_collection.rb +150 -0
- data/lib/oci/opsi/models/enterprise_manager_bridge_summary.rb +334 -0
- data/lib/oci/opsi/models/enterprise_manager_bridges.rb +154 -0
- data/lib/oci/opsi/models/host_configuration_metric_group.rb +212 -0
- data/lib/oci/opsi/models/host_cpu_hardware_configuration.rb +289 -0
- data/lib/oci/opsi/models/host_cpu_statistics.rb +174 -0
- data/lib/oci/opsi/models/host_cpu_usage.rb +279 -0
- data/lib/oci/opsi/models/host_details.rb +225 -0
- data/lib/oci/opsi/models/host_entities.rb +181 -0
- data/lib/oci/opsi/models/host_entity_source.rb +10 -0
- data/lib/oci/opsi/models/host_hardware_configuration.rb +167 -0
- data/lib/oci/opsi/models/host_insight.rb +426 -0
- data/lib/oci/opsi/models/host_insight_resource_statistics_aggregation.rb +169 -0
- data/lib/oci/opsi/models/host_insight_summary.rb +426 -0
- data/lib/oci/opsi/models/host_insight_summary_collection.rb +150 -0
- data/lib/oci/opsi/models/host_insights.rb +154 -0
- data/lib/oci/opsi/models/host_instance_map.rb +168 -0
- data/lib/oci/opsi/models/host_memory_configuration.rb +223 -0
- data/lib/oci/opsi/models/host_memory_statistics.rb +260 -0
- data/lib/oci/opsi/models/host_memory_usage.rb +349 -0
- data/lib/oci/opsi/models/host_network_activity_summary.rb +195 -0
- data/lib/oci/opsi/models/host_network_configuration.rb +195 -0
- data/lib/oci/opsi/models/host_performance_metric_group.rb +204 -0
- data/lib/oci/opsi/models/host_product.rb +183 -0
- data/lib/oci/opsi/models/host_resource_allocation.rb +181 -0
- data/lib/oci/opsi/models/host_resource_capacity_trend_aggregation.rb +165 -0
- data/lib/oci/opsi/models/host_resource_statistics.rb +243 -0
- data/lib/oci/opsi/models/hosted_entity_collection.rb +180 -0
- data/lib/oci/opsi/models/hosted_entity_summary.rb +183 -0
- data/lib/oci/opsi/models/importable_enterprise_manager_entity.rb +210 -0
- data/lib/oci/opsi/models/importable_enterprise_manager_entity_collection.rb +150 -0
- data/lib/oci/opsi/models/ingest_database_configuration_details.rb +150 -0
- data/lib/oci/opsi/models/ingest_database_configuration_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_host_configuration_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_host_configuration_response_details.rb +152 -0
- data/lib/oci/opsi/models/ingest_host_metrics_details.rb +151 -0
- data/lib/oci/opsi/models/ingest_host_metrics_response_details.rb +152 -0
- data/lib/oci/opsi/models/lifecycle_state.rb +15 -0
- data/lib/oci/opsi/models/macs_managed_external_database_insight.rb +325 -0
- data/lib/oci/opsi/models/macs_managed_external_database_insight_summary.rb +258 -0
- data/lib/oci/opsi/models/macs_managed_external_host_insight.rb +279 -0
- data/lib/oci/opsi/models/macs_managed_external_host_insight_summary.rb +251 -0
- data/lib/oci/opsi/models/operation_status.rb +15 -0
- data/lib/oci/opsi/models/operation_type.rb +25 -0
- data/lib/oci/opsi/models/resource_status.rb +12 -0
- data/lib/oci/opsi/models/sql_plan_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_search_summary.rb +11 -1
- data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +11 -1
- data/lib/oci/opsi/models/sql_text_summary.rb +11 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +5 -1
- data/lib/oci/opsi/models/summarize_database_insight_tablespace_usage_trend_aggregation_collection.rb +232 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.rb +271 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.rb +304 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.rb +251 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_usage_aggregation.rb +277 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.rb +271 -0
- data/lib/oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.rb +233 -0
- data/lib/oci/opsi/models/summary_statistics.rb +209 -0
- data/lib/oci/opsi/models/tablespace_usage_trend.rb +176 -0
- data/lib/oci/opsi/models/tablespace_usage_trend_aggregation.rb +182 -0
- data/lib/oci/opsi/models/update_autonomous_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_database_insight_details.rb +218 -0
- data/lib/oci/opsi/models/update_em_managed_external_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_enterprise_manager_bridge_details.rb +196 -0
- data/lib/oci/opsi/models/update_host_insight_details.rb +214 -0
- data/lib/oci/opsi/models/update_macs_managed_external_database_insight_details.rb +153 -0
- data/lib/oci/opsi/models/update_macs_managed_external_host_insight_details.rb +153 -0
- data/lib/oci/opsi/models/work_request.rb +320 -0
- data/lib/oci/opsi/models/work_request_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_error.rb +173 -0
- data/lib/oci/opsi/models/work_request_error_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_log_entry.rb +160 -0
- data/lib/oci/opsi/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/opsi/models/work_request_resource.rb +219 -0
- data/lib/oci/opsi/models/work_requests.rb +154 -0
- data/lib/oci/opsi/operations_insights_client.rb +3475 -411
- data/lib/oci/opsi/operations_insights_client_composite_operations.rb +792 -0
- data/lib/oci/opsi/opsi.rb +99 -0
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/resource_manager/models/config_source.rb +2 -0
- data/lib/oci/resource_manager/models/config_source_record.rb +2 -0
- data/lib/oci/resource_manager/models/create_config_source_details.rb +1 -0
- data/lib/oci/resource_manager/models/create_object_storage_config_source_details.rb +189 -0
- data/lib/oci/resource_manager/models/object_storage_config_source.rb +189 -0
- data/lib/oci/resource_manager/models/object_storage_config_source_record.rb +185 -0
- data/lib/oci/resource_manager/models/update_config_source_details.rb +1 -0
- data/lib/oci/resource_manager/models/update_object_storage_config_source_details.rb +188 -0
- data/lib/oci/resource_manager/resource_manager.rb +4 -0
- data/lib/oci/resource_manager/resource_manager_client.rb +1 -0
- data/lib/oci/retry/functions/should_retry_on_error.rb +31 -0
- data/lib/oci/retry/retry.rb +15 -0
- data/lib/oci/sch/models/function_task_details.rb +194 -0
- data/lib/oci/sch/models/latest_streaming_cursor.rb +146 -0
- data/lib/oci/sch/models/source_details.rb +2 -0
- data/lib/oci/sch/models/streaming_cursor_details.rb +189 -0
- data/lib/oci/sch/models/streaming_source_details.rb +173 -0
- data/lib/oci/sch/models/task_details.rb +2 -0
- data/lib/oci/sch/models/trim_horizon_streaming_cursor.rb +146 -0
- data/lib/oci/sch/sch.rb +5 -0
- data/lib/oci/service_catalog/models/action_type.rb +13 -0
- data/lib/oci/service_catalog/models/application_collection.rb +150 -0
- data/lib/oci/service_catalog/models/application_summary.rb +295 -0
- data/lib/oci/service_catalog/models/bulk_replace_service_catalog_associations_details.rb +150 -0
- data/lib/oci/service_catalog/models/change_private_application_compartment_details.rb +155 -0
- data/lib/oci/service_catalog/models/change_service_catalog_compartment_details.rb +154 -0
- data/lib/oci/service_catalog/models/create_private_application_details.rb +259 -0
- data/lib/oci/service_catalog/models/create_private_application_package.rb +192 -0
- data/lib/oci/service_catalog/models/create_private_application_stack_package.rb +166 -0
- data/lib/oci/service_catalog/models/create_service_catalog_association_details.rb +182 -0
- data/lib/oci/service_catalog/models/create_service_catalog_details.rb +200 -0
- data/lib/oci/service_catalog/models/error_entity.rb +160 -0
- data/lib/oci/service_catalog/models/operation_status.rb +12 -0
- data/lib/oci/service_catalog/models/operation_type.rb +13 -0
- data/lib/oci/service_catalog/models/package_type_enum.rb +10 -0
- data/lib/oci/service_catalog/models/pricing_type_enum.rb +12 -0
- data/lib/oci/service_catalog/models/private_application.rb +354 -0
- data/lib/oci/service_catalog/models/private_application_collection.rb +150 -0
- data/lib/oci/service_catalog/models/private_application_package.rb +257 -0
- data/lib/oci/service_catalog/models/private_application_package_collection.rb +150 -0
- data/lib/oci/service_catalog/models/private_application_package_summary.rb +241 -0
- data/lib/oci/service_catalog/models/private_application_stack_package.rb +196 -0
- data/lib/oci/service_catalog/models/private_application_summary.rb +268 -0
- data/lib/oci/service_catalog/models/publisher_summary.rb +164 -0
- data/lib/oci/service_catalog/models/service_catalog.rb +280 -0
- data/lib/oci/service_catalog/models/service_catalog_association.rb +206 -0
- data/lib/oci/service_catalog/models/service_catalog_association_collection.rb +150 -0
- data/lib/oci/service_catalog/models/service_catalog_association_summary.rb +206 -0
- data/lib/oci/service_catalog/models/service_catalog_collection.rb +150 -0
- data/lib/oci/service_catalog/models/service_catalog_summary.rb +210 -0
- data/lib/oci/service_catalog/models/update_private_application_details.rb +230 -0
- data/lib/oci/service_catalog/models/update_service_catalog_details.rb +186 -0
- data/lib/oci/service_catalog/models/upload_data.rb +182 -0
- data/lib/oci/service_catalog/models/work_request.rb +305 -0
- data/lib/oci/service_catalog/models/work_request_error.rb +173 -0
- data/lib/oci/service_catalog/models/work_request_error_collection.rb +150 -0
- data/lib/oci/service_catalog/models/work_request_log_entry.rb +160 -0
- data/lib/oci/service_catalog/models/work_request_log_entry_collection.rb +150 -0
- data/lib/oci/service_catalog/models/work_request_resource.rb +222 -0
- data/lib/oci/service_catalog/models/work_request_summary.rb +305 -0
- data/lib/oci/service_catalog/models/work_request_summary_collection.rb +150 -0
- data/lib/oci/service_catalog/service_catalog.rb +61 -0
- data/lib/oci/service_catalog/service_catalog_client.rb +1957 -0
- data/lib/oci/service_catalog/service_catalog_client_composite_operations.rb +342 -0
- data/lib/oci/service_catalog/util.rb +3 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule.rb +1 -1
- data/lib/oci/waas/models/address_rate_limiting.rb +1 -1
- data/lib/oci/waas/models/block_challenge_settings.rb +1 -1
- data/lib/oci/waas/models/certificate.rb +36 -4
- data/lib/oci/waas/models/load_balancing_method.rb +3 -3
- data/lib/oci/waas/models/origin.rb +2 -2
- data/lib/oci/waas/redirect_client.rb +1 -1
- data/lib/oci/waas/waas_client.rb +1 -1
- metadata +428 -2
@@ -0,0 +1,2579 @@
|
|
1
|
+
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
3
|
+
|
4
|
+
require 'uri'
|
5
|
+
require 'logger'
|
6
|
+
|
7
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
8
|
+
module OCI
|
9
|
+
# Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations.
|
10
|
+
class DatabaseMigration::DatabaseMigrationClient
|
11
|
+
# Client used to make HTTP requests.
|
12
|
+
# @return [OCI::ApiClient]
|
13
|
+
attr_reader :api_client
|
14
|
+
|
15
|
+
# Fully qualified endpoint URL
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :endpoint
|
18
|
+
|
19
|
+
# The default retry configuration to apply to all operations in this service client. This can be overridden
|
20
|
+
# on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
21
|
+
# will not perform any retries
|
22
|
+
# @return [OCI::Retry::RetryConfig]
|
23
|
+
attr_reader :retry_config
|
24
|
+
|
25
|
+
# The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
|
26
|
+
# @return [String]
|
27
|
+
attr_reader :region
|
28
|
+
|
29
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
30
|
+
|
31
|
+
|
32
|
+
# Creates a new DatabaseMigrationClient.
|
33
|
+
# Notes:
|
34
|
+
# If a config is not specified, then the global OCI.config will be used.
|
35
|
+
#
|
36
|
+
# This client is not thread-safe
|
37
|
+
#
|
38
|
+
# Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
|
39
|
+
# region. A region may be specified in the config or via or the region parameter. If specified in both, then the
|
40
|
+
# region parameter will be used.
|
41
|
+
# @param [Config] config A Config object.
|
42
|
+
# @param [String] region A region used to determine the service endpoint. This will usually
|
43
|
+
# correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
|
44
|
+
# @param [String] endpoint The fully qualified endpoint URL
|
45
|
+
# @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
|
46
|
+
# a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
|
47
|
+
# so that the instance principals signer can be provided to the client
|
48
|
+
# @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
|
49
|
+
# the details for the proxy can be provided in this parameter
|
50
|
+
# @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
|
51
|
+
# apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
|
52
|
+
# will not perform any retries
|
53
|
+
def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
|
54
|
+
# If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
|
55
|
+
# then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
|
56
|
+
# and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
|
57
|
+
# pass it to this constructor.
|
58
|
+
#
|
59
|
+
# If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
|
60
|
+
# so try and load the config from the default file.
|
61
|
+
config = OCI::Config.validate_and_build_config_with_signer(config, signer)
|
62
|
+
|
63
|
+
signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
|
64
|
+
|
65
|
+
@api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
|
66
|
+
@retry_config = retry_config
|
67
|
+
|
68
|
+
if endpoint
|
69
|
+
@endpoint = endpoint + '/20200720'
|
70
|
+
else
|
71
|
+
region ||= config.region
|
72
|
+
region ||= signer.region if signer.respond_to?(:region)
|
73
|
+
self.region = region
|
74
|
+
end
|
75
|
+
logger.info "DatabaseMigrationClient endpoint set to '#{@endpoint}'." if logger
|
76
|
+
end
|
77
|
+
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
|
78
|
+
|
79
|
+
# Set the region that will be used to determine the service endpoint.
|
80
|
+
# This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
|
81
|
+
# but may be an arbitrary string.
|
82
|
+
def region=(new_region)
|
83
|
+
@region = new_region
|
84
|
+
|
85
|
+
raise 'A region must be specified.' unless @region
|
86
|
+
|
87
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://odms.{region}.oci.{secondLevelDomain}') + '/20200720'
|
88
|
+
logger.info "DatabaseMigrationClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
89
|
+
end
|
90
|
+
|
91
|
+
# @return [Logger] The logger for this client. May be nil.
|
92
|
+
def logger
|
93
|
+
@api_client.config.logger
|
94
|
+
end
|
95
|
+
|
96
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
97
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
98
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
99
|
+
|
100
|
+
|
101
|
+
# Aborts a Migration Job (either Evaluation or Migration).
|
102
|
+
#
|
103
|
+
# @param [String] job_id The OCID of the job
|
104
|
+
#
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
107
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
108
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
109
|
+
# for a resource, set the `if-match` parameter to the value of the
|
110
|
+
# etag from a previous GET or POST response for that resource.
|
111
|
+
# The resource will be updated or deleted only if the etag you
|
112
|
+
# provide matches the resource's current etag value.
|
113
|
+
#
|
114
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
115
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
116
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
117
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
118
|
+
# might be rejected.
|
119
|
+
#
|
120
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
121
|
+
# particular request, please provide the request ID.
|
122
|
+
#
|
123
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
124
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/abort_job.rb.html) to see an example of how to use abort_job API.
|
125
|
+
def abort_job(job_id, opts = {})
|
126
|
+
logger.debug 'Calling operation DatabaseMigrationClient#abort_job.' if logger
|
127
|
+
|
128
|
+
raise "Missing the required parameter 'job_id' when calling abort_job." if job_id.nil?
|
129
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
130
|
+
|
131
|
+
path = '/jobs/{jobId}/actions/abort'.sub('{jobId}', job_id.to_s)
|
132
|
+
operation_signing_strategy = :standard
|
133
|
+
|
134
|
+
# rubocop:disable Style/NegatedIf
|
135
|
+
# Query Params
|
136
|
+
query_params = {}
|
137
|
+
|
138
|
+
# Header Params
|
139
|
+
header_params = {}
|
140
|
+
header_params[:accept] = 'application/json'
|
141
|
+
header_params[:'content-type'] = 'application/json'
|
142
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
143
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
144
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
145
|
+
# rubocop:enable Style/NegatedIf
|
146
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
147
|
+
|
148
|
+
post_body = nil
|
149
|
+
|
150
|
+
# rubocop:disable Metrics/BlockLength
|
151
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#abort_job') do
|
152
|
+
@api_client.call_api(
|
153
|
+
:POST,
|
154
|
+
path,
|
155
|
+
endpoint,
|
156
|
+
header_params: header_params,
|
157
|
+
query_params: query_params,
|
158
|
+
operation_signing_strategy: operation_signing_strategy,
|
159
|
+
body: post_body,
|
160
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
161
|
+
)
|
162
|
+
end
|
163
|
+
# rubocop:enable Metrics/BlockLength
|
164
|
+
end
|
165
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
166
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
167
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
168
|
+
|
169
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
170
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
171
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
172
|
+
|
173
|
+
|
174
|
+
# Used to configure an ODMS Agent Compartment ID.
|
175
|
+
#
|
176
|
+
# @param [String] agent_id The OCID of the agent
|
177
|
+
#
|
178
|
+
# @param [OCI::DatabaseMigration::Models::ChangeAgentCompartmentDetails] change_agent_compartment_details Details to change the compartment.
|
179
|
+
#
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
182
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
183
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
184
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
185
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
186
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
187
|
+
# might be rejected.
|
188
|
+
#
|
189
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
190
|
+
# particular request, please provide the request ID.
|
191
|
+
#
|
192
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
193
|
+
# for a resource, set the `if-match` parameter to the value of the
|
194
|
+
# etag from a previous GET or POST response for that resource.
|
195
|
+
# The resource will be updated or deleted only if the etag you
|
196
|
+
# provide matches the resource's current etag value.
|
197
|
+
#
|
198
|
+
# @return [Response] A Response object with data of type nil
|
199
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/change_agent_compartment.rb.html) to see an example of how to use change_agent_compartment API.
|
200
|
+
def change_agent_compartment(agent_id, change_agent_compartment_details, opts = {})
|
201
|
+
logger.debug 'Calling operation DatabaseMigrationClient#change_agent_compartment.' if logger
|
202
|
+
|
203
|
+
raise "Missing the required parameter 'agent_id' when calling change_agent_compartment." if agent_id.nil?
|
204
|
+
raise "Missing the required parameter 'change_agent_compartment_details' when calling change_agent_compartment." if change_agent_compartment_details.nil?
|
205
|
+
raise "Parameter value for 'agent_id' must not be blank" if OCI::Internal::Util.blank_string?(agent_id)
|
206
|
+
|
207
|
+
path = '/agents/{agentId}/actions/changeCompartment'.sub('{agentId}', agent_id.to_s)
|
208
|
+
operation_signing_strategy = :standard
|
209
|
+
|
210
|
+
# rubocop:disable Style/NegatedIf
|
211
|
+
# Query Params
|
212
|
+
query_params = {}
|
213
|
+
|
214
|
+
# Header Params
|
215
|
+
header_params = {}
|
216
|
+
header_params[:accept] = 'application/json'
|
217
|
+
header_params[:'content-type'] = 'application/json'
|
218
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
219
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
220
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
221
|
+
# rubocop:enable Style/NegatedIf
|
222
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
223
|
+
|
224
|
+
post_body = @api_client.object_to_http_body(change_agent_compartment_details)
|
225
|
+
|
226
|
+
# rubocop:disable Metrics/BlockLength
|
227
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#change_agent_compartment') do
|
228
|
+
@api_client.call_api(
|
229
|
+
:POST,
|
230
|
+
path,
|
231
|
+
endpoint,
|
232
|
+
header_params: header_params,
|
233
|
+
query_params: query_params,
|
234
|
+
operation_signing_strategy: operation_signing_strategy,
|
235
|
+
body: post_body
|
236
|
+
)
|
237
|
+
end
|
238
|
+
# rubocop:enable Metrics/BlockLength
|
239
|
+
end
|
240
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
241
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
242
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
243
|
+
|
244
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
245
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
246
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
247
|
+
|
248
|
+
|
249
|
+
# Used to change the Database Connection compartment.
|
250
|
+
#
|
251
|
+
# @param [String] connection_id The OCID of the database connection
|
252
|
+
#
|
253
|
+
# @param [OCI::DatabaseMigration::Models::ChangeConnectionCompartmentDetails] change_connection_compartment_details Details to change the compartment.
|
254
|
+
#
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
257
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
258
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
259
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
260
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
261
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
262
|
+
# might be rejected.
|
263
|
+
#
|
264
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
265
|
+
# particular request, please provide the request ID.
|
266
|
+
#
|
267
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
268
|
+
# for a resource, set the `if-match` parameter to the value of the
|
269
|
+
# etag from a previous GET or POST response for that resource.
|
270
|
+
# The resource will be updated or deleted only if the etag you
|
271
|
+
# provide matches the resource's current etag value.
|
272
|
+
#
|
273
|
+
# @return [Response] A Response object with data of type nil
|
274
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/change_connection_compartment.rb.html) to see an example of how to use change_connection_compartment API.
|
275
|
+
def change_connection_compartment(connection_id, change_connection_compartment_details, opts = {})
|
276
|
+
logger.debug 'Calling operation DatabaseMigrationClient#change_connection_compartment.' if logger
|
277
|
+
|
278
|
+
raise "Missing the required parameter 'connection_id' when calling change_connection_compartment." if connection_id.nil?
|
279
|
+
raise "Missing the required parameter 'change_connection_compartment_details' when calling change_connection_compartment." if change_connection_compartment_details.nil?
|
280
|
+
raise "Parameter value for 'connection_id' must not be blank" if OCI::Internal::Util.blank_string?(connection_id)
|
281
|
+
|
282
|
+
path = '/connections/{connectionId}/actions/changeCompartment'.sub('{connectionId}', connection_id.to_s)
|
283
|
+
operation_signing_strategy = :standard
|
284
|
+
|
285
|
+
# rubocop:disable Style/NegatedIf
|
286
|
+
# Query Params
|
287
|
+
query_params = {}
|
288
|
+
|
289
|
+
# Header Params
|
290
|
+
header_params = {}
|
291
|
+
header_params[:accept] = 'application/json'
|
292
|
+
header_params[:'content-type'] = 'application/json'
|
293
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
294
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
295
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
296
|
+
# rubocop:enable Style/NegatedIf
|
297
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
298
|
+
|
299
|
+
post_body = @api_client.object_to_http_body(change_connection_compartment_details)
|
300
|
+
|
301
|
+
# rubocop:disable Metrics/BlockLength
|
302
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#change_connection_compartment') do
|
303
|
+
@api_client.call_api(
|
304
|
+
:POST,
|
305
|
+
path,
|
306
|
+
endpoint,
|
307
|
+
header_params: header_params,
|
308
|
+
query_params: query_params,
|
309
|
+
operation_signing_strategy: operation_signing_strategy,
|
310
|
+
body: post_body
|
311
|
+
)
|
312
|
+
end
|
313
|
+
# rubocop:enable Metrics/BlockLength
|
314
|
+
end
|
315
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
316
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
317
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
318
|
+
|
319
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
320
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
321
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
322
|
+
|
323
|
+
|
324
|
+
# Used to change the Migration compartment.
|
325
|
+
#
|
326
|
+
# @param [String] migration_id The OCID of the migration
|
327
|
+
#
|
328
|
+
# @param [OCI::DatabaseMigration::Models::ChangeMigrationCompartmentDetails] change_migration_compartment_details Details to change the compartment.
|
329
|
+
#
|
330
|
+
# @param [Hash] opts the optional parameters
|
331
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
332
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
333
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
334
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
335
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
336
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
337
|
+
# might be rejected.
|
338
|
+
#
|
339
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
340
|
+
# particular request, please provide the request ID.
|
341
|
+
#
|
342
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
343
|
+
# for a resource, set the `if-match` parameter to the value of the
|
344
|
+
# etag from a previous GET or POST response for that resource.
|
345
|
+
# The resource will be updated or deleted only if the etag you
|
346
|
+
# provide matches the resource's current etag value.
|
347
|
+
#
|
348
|
+
# @return [Response] A Response object with data of type nil
|
349
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/change_migration_compartment.rb.html) to see an example of how to use change_migration_compartment API.
|
350
|
+
def change_migration_compartment(migration_id, change_migration_compartment_details, opts = {})
|
351
|
+
logger.debug 'Calling operation DatabaseMigrationClient#change_migration_compartment.' if logger
|
352
|
+
|
353
|
+
raise "Missing the required parameter 'migration_id' when calling change_migration_compartment." if migration_id.nil?
|
354
|
+
raise "Missing the required parameter 'change_migration_compartment_details' when calling change_migration_compartment." if change_migration_compartment_details.nil?
|
355
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
356
|
+
|
357
|
+
path = '/migrations/{migrationId}/actions/changeCompartment'.sub('{migrationId}', migration_id.to_s)
|
358
|
+
operation_signing_strategy = :standard
|
359
|
+
|
360
|
+
# rubocop:disable Style/NegatedIf
|
361
|
+
# Query Params
|
362
|
+
query_params = {}
|
363
|
+
|
364
|
+
# Header Params
|
365
|
+
header_params = {}
|
366
|
+
header_params[:accept] = 'application/json'
|
367
|
+
header_params[:'content-type'] = 'application/json'
|
368
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
369
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
370
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
371
|
+
# rubocop:enable Style/NegatedIf
|
372
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
373
|
+
|
374
|
+
post_body = @api_client.object_to_http_body(change_migration_compartment_details)
|
375
|
+
|
376
|
+
# rubocop:disable Metrics/BlockLength
|
377
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#change_migration_compartment') do
|
378
|
+
@api_client.call_api(
|
379
|
+
:POST,
|
380
|
+
path,
|
381
|
+
endpoint,
|
382
|
+
header_params: header_params,
|
383
|
+
query_params: query_params,
|
384
|
+
operation_signing_strategy: operation_signing_strategy,
|
385
|
+
body: post_body
|
386
|
+
)
|
387
|
+
end
|
388
|
+
# rubocop:enable Metrics/BlockLength
|
389
|
+
end
|
390
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
391
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
392
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
393
|
+
|
394
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
395
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
396
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
397
|
+
|
398
|
+
|
399
|
+
# Clone a configuration from an existing Migration.
|
400
|
+
#
|
401
|
+
# @param [String] migration_id The OCID of the migration
|
402
|
+
#
|
403
|
+
# @param [OCI::DatabaseMigration::Models::CloneMigrationDetails] clone_migration_details Clone Migration properties.
|
404
|
+
#
|
405
|
+
# @param [Hash] opts the optional parameters
|
406
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
407
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
408
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
409
|
+
# for a resource, set the `if-match` parameter to the value of the
|
410
|
+
# etag from a previous GET or POST response for that resource.
|
411
|
+
# The resource will be updated or deleted only if the etag you
|
412
|
+
# provide matches the resource's current etag value.
|
413
|
+
#
|
414
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
415
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
416
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
417
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
418
|
+
# might be rejected.
|
419
|
+
#
|
420
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
421
|
+
# particular request, please provide the request ID.
|
422
|
+
#
|
423
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Migration Migration}
|
424
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/clone_migration.rb.html) to see an example of how to use clone_migration API.
|
425
|
+
def clone_migration(migration_id, clone_migration_details, opts = {})
|
426
|
+
logger.debug 'Calling operation DatabaseMigrationClient#clone_migration.' if logger
|
427
|
+
|
428
|
+
raise "Missing the required parameter 'migration_id' when calling clone_migration." if migration_id.nil?
|
429
|
+
raise "Missing the required parameter 'clone_migration_details' when calling clone_migration." if clone_migration_details.nil?
|
430
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
431
|
+
|
432
|
+
path = '/migrations/{migrationId}/actions/clone'.sub('{migrationId}', migration_id.to_s)
|
433
|
+
operation_signing_strategy = :standard
|
434
|
+
|
435
|
+
# rubocop:disable Style/NegatedIf
|
436
|
+
# Query Params
|
437
|
+
query_params = {}
|
438
|
+
|
439
|
+
# Header Params
|
440
|
+
header_params = {}
|
441
|
+
header_params[:accept] = 'application/json'
|
442
|
+
header_params[:'content-type'] = 'application/json'
|
443
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
444
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
445
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
446
|
+
# rubocop:enable Style/NegatedIf
|
447
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
448
|
+
|
449
|
+
post_body = @api_client.object_to_http_body(clone_migration_details)
|
450
|
+
|
451
|
+
# rubocop:disable Metrics/BlockLength
|
452
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#clone_migration') do
|
453
|
+
@api_client.call_api(
|
454
|
+
:POST,
|
455
|
+
path,
|
456
|
+
endpoint,
|
457
|
+
header_params: header_params,
|
458
|
+
query_params: query_params,
|
459
|
+
operation_signing_strategy: operation_signing_strategy,
|
460
|
+
body: post_body,
|
461
|
+
return_type: 'OCI::DatabaseMigration::Models::Migration'
|
462
|
+
)
|
463
|
+
end
|
464
|
+
# rubocop:enable Metrics/BlockLength
|
465
|
+
end
|
466
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
467
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
468
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
469
|
+
|
470
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
471
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
472
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
473
|
+
|
474
|
+
|
475
|
+
# Create a Database Connection resource that contains the details to connect to either a Source or Target Database
|
476
|
+
# in the migration.
|
477
|
+
#
|
478
|
+
# @param [OCI::DatabaseMigration::Models::CreateConnectionDetails] create_connection_details Database Connection properties.
|
479
|
+
#
|
480
|
+
# @param [Hash] opts the optional parameters
|
481
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
482
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
483
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
484
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
485
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
486
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
487
|
+
# might be rejected.
|
488
|
+
#
|
489
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
490
|
+
# particular request, please provide the request ID.
|
491
|
+
#
|
492
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Connection Connection}
|
493
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/create_connection.rb.html) to see an example of how to use create_connection API.
|
494
|
+
def create_connection(create_connection_details, opts = {})
|
495
|
+
logger.debug 'Calling operation DatabaseMigrationClient#create_connection.' if logger
|
496
|
+
|
497
|
+
raise "Missing the required parameter 'create_connection_details' when calling create_connection." if create_connection_details.nil?
|
498
|
+
|
499
|
+
path = '/connections'
|
500
|
+
operation_signing_strategy = :standard
|
501
|
+
|
502
|
+
# rubocop:disable Style/NegatedIf
|
503
|
+
# Query Params
|
504
|
+
query_params = {}
|
505
|
+
|
506
|
+
# Header Params
|
507
|
+
header_params = {}
|
508
|
+
header_params[:accept] = 'application/json'
|
509
|
+
header_params[:'content-type'] = 'application/json'
|
510
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
511
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
512
|
+
# rubocop:enable Style/NegatedIf
|
513
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
514
|
+
|
515
|
+
post_body = @api_client.object_to_http_body(create_connection_details)
|
516
|
+
|
517
|
+
# rubocop:disable Metrics/BlockLength
|
518
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#create_connection') do
|
519
|
+
@api_client.call_api(
|
520
|
+
:POST,
|
521
|
+
path,
|
522
|
+
endpoint,
|
523
|
+
header_params: header_params,
|
524
|
+
query_params: query_params,
|
525
|
+
operation_signing_strategy: operation_signing_strategy,
|
526
|
+
body: post_body,
|
527
|
+
return_type: 'OCI::DatabaseMigration::Models::Connection'
|
528
|
+
)
|
529
|
+
end
|
530
|
+
# rubocop:enable Metrics/BlockLength
|
531
|
+
end
|
532
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
533
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
534
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
535
|
+
|
536
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
537
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
538
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
539
|
+
|
540
|
+
|
541
|
+
# Create a Migration resource that contains all the details to perform the
|
542
|
+
# database migration operation, such as source and destination database
|
543
|
+
# details, credentials, etc.
|
544
|
+
#
|
545
|
+
# @param [OCI::DatabaseMigration::Models::CreateMigrationDetails] create_migration_details Migration properties.
|
546
|
+
#
|
547
|
+
# @param [Hash] opts the optional parameters
|
548
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
549
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
550
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
551
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
552
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
553
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
554
|
+
# might be rejected.
|
555
|
+
#
|
556
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
557
|
+
# particular request, please provide the request ID.
|
558
|
+
#
|
559
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Migration Migration}
|
560
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/create_migration.rb.html) to see an example of how to use create_migration API.
|
561
|
+
def create_migration(create_migration_details, opts = {})
|
562
|
+
logger.debug 'Calling operation DatabaseMigrationClient#create_migration.' if logger
|
563
|
+
|
564
|
+
raise "Missing the required parameter 'create_migration_details' when calling create_migration." if create_migration_details.nil?
|
565
|
+
|
566
|
+
path = '/migrations'
|
567
|
+
operation_signing_strategy = :standard
|
568
|
+
|
569
|
+
# rubocop:disable Style/NegatedIf
|
570
|
+
# Query Params
|
571
|
+
query_params = {}
|
572
|
+
|
573
|
+
# Header Params
|
574
|
+
header_params = {}
|
575
|
+
header_params[:accept] = 'application/json'
|
576
|
+
header_params[:'content-type'] = 'application/json'
|
577
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
578
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
579
|
+
# rubocop:enable Style/NegatedIf
|
580
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
581
|
+
|
582
|
+
post_body = @api_client.object_to_http_body(create_migration_details)
|
583
|
+
|
584
|
+
# rubocop:disable Metrics/BlockLength
|
585
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#create_migration') do
|
586
|
+
@api_client.call_api(
|
587
|
+
:POST,
|
588
|
+
path,
|
589
|
+
endpoint,
|
590
|
+
header_params: header_params,
|
591
|
+
query_params: query_params,
|
592
|
+
operation_signing_strategy: operation_signing_strategy,
|
593
|
+
body: post_body,
|
594
|
+
return_type: 'OCI::DatabaseMigration::Models::Migration'
|
595
|
+
)
|
596
|
+
end
|
597
|
+
# rubocop:enable Metrics/BlockLength
|
598
|
+
end
|
599
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
600
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
601
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
602
|
+
|
603
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
604
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
605
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
606
|
+
|
607
|
+
|
608
|
+
# Delete the ODMS Agent represented by the specified ODMS Agent ID.
|
609
|
+
#
|
610
|
+
# @param [String] agent_id The OCID of the agent
|
611
|
+
#
|
612
|
+
# @param [Hash] opts the optional parameters
|
613
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
614
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
615
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
616
|
+
# particular request, please provide the request ID.
|
617
|
+
#
|
618
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
619
|
+
# for a resource, set the `if-match` parameter to the value of the
|
620
|
+
# etag from a previous GET or POST response for that resource.
|
621
|
+
# The resource will be updated or deleted only if the etag you
|
622
|
+
# provide matches the resource's current etag value.
|
623
|
+
#
|
624
|
+
# @return [Response] A Response object with data of type nil
|
625
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/delete_agent.rb.html) to see an example of how to use delete_agent API.
|
626
|
+
def delete_agent(agent_id, opts = {})
|
627
|
+
logger.debug 'Calling operation DatabaseMigrationClient#delete_agent.' if logger
|
628
|
+
|
629
|
+
raise "Missing the required parameter 'agent_id' when calling delete_agent." if agent_id.nil?
|
630
|
+
raise "Parameter value for 'agent_id' must not be blank" if OCI::Internal::Util.blank_string?(agent_id)
|
631
|
+
|
632
|
+
path = '/agents/{agentId}'.sub('{agentId}', agent_id.to_s)
|
633
|
+
operation_signing_strategy = :standard
|
634
|
+
|
635
|
+
# rubocop:disable Style/NegatedIf
|
636
|
+
# Query Params
|
637
|
+
query_params = {}
|
638
|
+
|
639
|
+
# Header Params
|
640
|
+
header_params = {}
|
641
|
+
header_params[:accept] = 'application/json'
|
642
|
+
header_params[:'content-type'] = 'application/json'
|
643
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
644
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
645
|
+
# rubocop:enable Style/NegatedIf
|
646
|
+
|
647
|
+
post_body = nil
|
648
|
+
|
649
|
+
# rubocop:disable Metrics/BlockLength
|
650
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#delete_agent') do
|
651
|
+
@api_client.call_api(
|
652
|
+
:DELETE,
|
653
|
+
path,
|
654
|
+
endpoint,
|
655
|
+
header_params: header_params,
|
656
|
+
query_params: query_params,
|
657
|
+
operation_signing_strategy: operation_signing_strategy,
|
658
|
+
body: post_body
|
659
|
+
)
|
660
|
+
end
|
661
|
+
# rubocop:enable Metrics/BlockLength
|
662
|
+
end
|
663
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
664
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
665
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
666
|
+
|
667
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
668
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
669
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
670
|
+
|
671
|
+
|
672
|
+
# Deletes the Database Connection represented by the specified connection ID.
|
673
|
+
#
|
674
|
+
# @param [String] connection_id The OCID of the database connection
|
675
|
+
#
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
678
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
679
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
680
|
+
# particular request, please provide the request ID.
|
681
|
+
#
|
682
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
683
|
+
# for a resource, set the `if-match` parameter to the value of the
|
684
|
+
# etag from a previous GET or POST response for that resource.
|
685
|
+
# The resource will be updated or deleted only if the etag you
|
686
|
+
# provide matches the resource's current etag value.
|
687
|
+
#
|
688
|
+
# @return [Response] A Response object with data of type nil
|
689
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/delete_connection.rb.html) to see an example of how to use delete_connection API.
|
690
|
+
def delete_connection(connection_id, opts = {})
|
691
|
+
logger.debug 'Calling operation DatabaseMigrationClient#delete_connection.' if logger
|
692
|
+
|
693
|
+
raise "Missing the required parameter 'connection_id' when calling delete_connection." if connection_id.nil?
|
694
|
+
raise "Parameter value for 'connection_id' must not be blank" if OCI::Internal::Util.blank_string?(connection_id)
|
695
|
+
|
696
|
+
path = '/connections/{connectionId}'.sub('{connectionId}', connection_id.to_s)
|
697
|
+
operation_signing_strategy = :standard
|
698
|
+
|
699
|
+
# rubocop:disable Style/NegatedIf
|
700
|
+
# Query Params
|
701
|
+
query_params = {}
|
702
|
+
|
703
|
+
# Header Params
|
704
|
+
header_params = {}
|
705
|
+
header_params[:accept] = 'application/json'
|
706
|
+
header_params[:'content-type'] = 'application/json'
|
707
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
708
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
709
|
+
# rubocop:enable Style/NegatedIf
|
710
|
+
|
711
|
+
post_body = nil
|
712
|
+
|
713
|
+
# rubocop:disable Metrics/BlockLength
|
714
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#delete_connection') do
|
715
|
+
@api_client.call_api(
|
716
|
+
:DELETE,
|
717
|
+
path,
|
718
|
+
endpoint,
|
719
|
+
header_params: header_params,
|
720
|
+
query_params: query_params,
|
721
|
+
operation_signing_strategy: operation_signing_strategy,
|
722
|
+
body: post_body
|
723
|
+
)
|
724
|
+
end
|
725
|
+
# rubocop:enable Metrics/BlockLength
|
726
|
+
end
|
727
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
728
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
729
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
730
|
+
|
731
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
732
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
733
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
734
|
+
|
735
|
+
|
736
|
+
# Deletes the migration job represented by the given job ID.
|
737
|
+
#
|
738
|
+
# @param [String] job_id The OCID of the job
|
739
|
+
#
|
740
|
+
# @param [Hash] opts the optional parameters
|
741
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
742
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
743
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
744
|
+
# particular request, please provide the request ID.
|
745
|
+
#
|
746
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
747
|
+
# for a resource, set the `if-match` parameter to the value of the
|
748
|
+
# etag from a previous GET or POST response for that resource.
|
749
|
+
# The resource will be updated or deleted only if the etag you
|
750
|
+
# provide matches the resource's current etag value.
|
751
|
+
#
|
752
|
+
# @return [Response] A Response object with data of type nil
|
753
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/delete_job.rb.html) to see an example of how to use delete_job API.
|
754
|
+
def delete_job(job_id, opts = {})
|
755
|
+
logger.debug 'Calling operation DatabaseMigrationClient#delete_job.' if logger
|
756
|
+
|
757
|
+
raise "Missing the required parameter 'job_id' when calling delete_job." if job_id.nil?
|
758
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
759
|
+
|
760
|
+
path = '/jobs/{jobId}'.sub('{jobId}', job_id.to_s)
|
761
|
+
operation_signing_strategy = :standard
|
762
|
+
|
763
|
+
# rubocop:disable Style/NegatedIf
|
764
|
+
# Query Params
|
765
|
+
query_params = {}
|
766
|
+
|
767
|
+
# Header Params
|
768
|
+
header_params = {}
|
769
|
+
header_params[:accept] = 'application/json'
|
770
|
+
header_params[:'content-type'] = 'application/json'
|
771
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
772
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
773
|
+
# rubocop:enable Style/NegatedIf
|
774
|
+
|
775
|
+
post_body = nil
|
776
|
+
|
777
|
+
# rubocop:disable Metrics/BlockLength
|
778
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#delete_job') do
|
779
|
+
@api_client.call_api(
|
780
|
+
:DELETE,
|
781
|
+
path,
|
782
|
+
endpoint,
|
783
|
+
header_params: header_params,
|
784
|
+
query_params: query_params,
|
785
|
+
operation_signing_strategy: operation_signing_strategy,
|
786
|
+
body: post_body
|
787
|
+
)
|
788
|
+
end
|
789
|
+
# rubocop:enable Metrics/BlockLength
|
790
|
+
end
|
791
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
792
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
793
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
794
|
+
|
795
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
796
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
797
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
798
|
+
|
799
|
+
|
800
|
+
# Deletes the Migration represented by the specified migration ID.
|
801
|
+
#
|
802
|
+
# @param [String] migration_id The OCID of the migration
|
803
|
+
#
|
804
|
+
# @param [Hash] opts the optional parameters
|
805
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
806
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
807
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
808
|
+
# particular request, please provide the request ID.
|
809
|
+
#
|
810
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
811
|
+
# for a resource, set the `if-match` parameter to the value of the
|
812
|
+
# etag from a previous GET or POST response for that resource.
|
813
|
+
# The resource will be updated or deleted only if the etag you
|
814
|
+
# provide matches the resource's current etag value.
|
815
|
+
#
|
816
|
+
# @return [Response] A Response object with data of type nil
|
817
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/delete_migration.rb.html) to see an example of how to use delete_migration API.
|
818
|
+
def delete_migration(migration_id, opts = {})
|
819
|
+
logger.debug 'Calling operation DatabaseMigrationClient#delete_migration.' if logger
|
820
|
+
|
821
|
+
raise "Missing the required parameter 'migration_id' when calling delete_migration." if migration_id.nil?
|
822
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
823
|
+
|
824
|
+
path = '/migrations/{migrationId}'.sub('{migrationId}', migration_id.to_s)
|
825
|
+
operation_signing_strategy = :standard
|
826
|
+
|
827
|
+
# rubocop:disable Style/NegatedIf
|
828
|
+
# Query Params
|
829
|
+
query_params = {}
|
830
|
+
|
831
|
+
# Header Params
|
832
|
+
header_params = {}
|
833
|
+
header_params[:accept] = 'application/json'
|
834
|
+
header_params[:'content-type'] = 'application/json'
|
835
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
836
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
837
|
+
# rubocop:enable Style/NegatedIf
|
838
|
+
|
839
|
+
post_body = nil
|
840
|
+
|
841
|
+
# rubocop:disable Metrics/BlockLength
|
842
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#delete_migration') do
|
843
|
+
@api_client.call_api(
|
844
|
+
:DELETE,
|
845
|
+
path,
|
846
|
+
endpoint,
|
847
|
+
header_params: header_params,
|
848
|
+
query_params: query_params,
|
849
|
+
operation_signing_strategy: operation_signing_strategy,
|
850
|
+
body: post_body
|
851
|
+
)
|
852
|
+
end
|
853
|
+
# rubocop:enable Metrics/BlockLength
|
854
|
+
end
|
855
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
856
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
857
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
858
|
+
|
859
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
860
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
861
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
862
|
+
|
863
|
+
|
864
|
+
# Start Validate Migration job.
|
865
|
+
#
|
866
|
+
# @param [String] migration_id The OCID of the migration
|
867
|
+
#
|
868
|
+
# @param [Hash] opts the optional parameters
|
869
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
870
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
871
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
872
|
+
# for a resource, set the `if-match` parameter to the value of the
|
873
|
+
# etag from a previous GET or POST response for that resource.
|
874
|
+
# The resource will be updated or deleted only if the etag you
|
875
|
+
# provide matches the resource's current etag value.
|
876
|
+
#
|
877
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
878
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
879
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
880
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
881
|
+
# might be rejected.
|
882
|
+
#
|
883
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
884
|
+
# particular request, please provide the request ID.
|
885
|
+
#
|
886
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
887
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/evaluate_migration.rb.html) to see an example of how to use evaluate_migration API.
|
888
|
+
def evaluate_migration(migration_id, opts = {})
|
889
|
+
logger.debug 'Calling operation DatabaseMigrationClient#evaluate_migration.' if logger
|
890
|
+
|
891
|
+
raise "Missing the required parameter 'migration_id' when calling evaluate_migration." if migration_id.nil?
|
892
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
893
|
+
|
894
|
+
path = '/migrations/{migrationId}/actions/validate'.sub('{migrationId}', migration_id.to_s)
|
895
|
+
operation_signing_strategy = :standard
|
896
|
+
|
897
|
+
# rubocop:disable Style/NegatedIf
|
898
|
+
# Query Params
|
899
|
+
query_params = {}
|
900
|
+
|
901
|
+
# Header Params
|
902
|
+
header_params = {}
|
903
|
+
header_params[:accept] = 'application/json'
|
904
|
+
header_params[:'content-type'] = 'application/json'
|
905
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
906
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
907
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
908
|
+
# rubocop:enable Style/NegatedIf
|
909
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
910
|
+
|
911
|
+
post_body = nil
|
912
|
+
|
913
|
+
# rubocop:disable Metrics/BlockLength
|
914
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#evaluate_migration') do
|
915
|
+
@api_client.call_api(
|
916
|
+
:POST,
|
917
|
+
path,
|
918
|
+
endpoint,
|
919
|
+
header_params: header_params,
|
920
|
+
query_params: query_params,
|
921
|
+
operation_signing_strategy: operation_signing_strategy,
|
922
|
+
body: post_body,
|
923
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
924
|
+
)
|
925
|
+
end
|
926
|
+
# rubocop:enable Metrics/BlockLength
|
927
|
+
end
|
928
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
929
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
930
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
931
|
+
|
932
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
933
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
934
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
935
|
+
|
936
|
+
|
937
|
+
# Display the ODMS Agent configuration.
|
938
|
+
#
|
939
|
+
# @param [String] agent_id The OCID of the agent
|
940
|
+
#
|
941
|
+
# @param [Hash] opts the optional parameters
|
942
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
943
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
944
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
945
|
+
# particular request, please provide the request ID.
|
946
|
+
#
|
947
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Agent Agent}
|
948
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_agent.rb.html) to see an example of how to use get_agent API.
|
949
|
+
def get_agent(agent_id, opts = {})
|
950
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_agent.' if logger
|
951
|
+
|
952
|
+
raise "Missing the required parameter 'agent_id' when calling get_agent." if agent_id.nil?
|
953
|
+
raise "Parameter value for 'agent_id' must not be blank" if OCI::Internal::Util.blank_string?(agent_id)
|
954
|
+
|
955
|
+
path = '/agents/{agentId}'.sub('{agentId}', agent_id.to_s)
|
956
|
+
operation_signing_strategy = :standard
|
957
|
+
|
958
|
+
# rubocop:disable Style/NegatedIf
|
959
|
+
# Query Params
|
960
|
+
query_params = {}
|
961
|
+
|
962
|
+
# Header Params
|
963
|
+
header_params = {}
|
964
|
+
header_params[:accept] = 'application/json'
|
965
|
+
header_params[:'content-type'] = 'application/json'
|
966
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
967
|
+
# rubocop:enable Style/NegatedIf
|
968
|
+
|
969
|
+
post_body = nil
|
970
|
+
|
971
|
+
# rubocop:disable Metrics/BlockLength
|
972
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_agent') do
|
973
|
+
@api_client.call_api(
|
974
|
+
:GET,
|
975
|
+
path,
|
976
|
+
endpoint,
|
977
|
+
header_params: header_params,
|
978
|
+
query_params: query_params,
|
979
|
+
operation_signing_strategy: operation_signing_strategy,
|
980
|
+
body: post_body,
|
981
|
+
return_type: 'OCI::DatabaseMigration::Models::Agent'
|
982
|
+
)
|
983
|
+
end
|
984
|
+
# rubocop:enable Metrics/BlockLength
|
985
|
+
end
|
986
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
987
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
988
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
989
|
+
|
990
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
991
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
992
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
993
|
+
|
994
|
+
|
995
|
+
# Display Database Connection details.
|
996
|
+
#
|
997
|
+
# @param [String] connection_id The OCID of the database connection
|
998
|
+
#
|
999
|
+
# @param [Hash] opts the optional parameters
|
1000
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1001
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1002
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1003
|
+
# particular request, please provide the request ID.
|
1004
|
+
#
|
1005
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Connection Connection}
|
1006
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_connection.rb.html) to see an example of how to use get_connection API.
|
1007
|
+
def get_connection(connection_id, opts = {})
|
1008
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_connection.' if logger
|
1009
|
+
|
1010
|
+
raise "Missing the required parameter 'connection_id' when calling get_connection." if connection_id.nil?
|
1011
|
+
raise "Parameter value for 'connection_id' must not be blank" if OCI::Internal::Util.blank_string?(connection_id)
|
1012
|
+
|
1013
|
+
path = '/connections/{connectionId}'.sub('{connectionId}', connection_id.to_s)
|
1014
|
+
operation_signing_strategy = :standard
|
1015
|
+
|
1016
|
+
# rubocop:disable Style/NegatedIf
|
1017
|
+
# Query Params
|
1018
|
+
query_params = {}
|
1019
|
+
|
1020
|
+
# Header Params
|
1021
|
+
header_params = {}
|
1022
|
+
header_params[:accept] = 'application/json'
|
1023
|
+
header_params[:'content-type'] = 'application/json'
|
1024
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1025
|
+
# rubocop:enable Style/NegatedIf
|
1026
|
+
|
1027
|
+
post_body = nil
|
1028
|
+
|
1029
|
+
# rubocop:disable Metrics/BlockLength
|
1030
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_connection') do
|
1031
|
+
@api_client.call_api(
|
1032
|
+
:GET,
|
1033
|
+
path,
|
1034
|
+
endpoint,
|
1035
|
+
header_params: header_params,
|
1036
|
+
query_params: query_params,
|
1037
|
+
operation_signing_strategy: operation_signing_strategy,
|
1038
|
+
body: post_body,
|
1039
|
+
return_type: 'OCI::DatabaseMigration::Models::Connection'
|
1040
|
+
)
|
1041
|
+
end
|
1042
|
+
# rubocop:enable Metrics/BlockLength
|
1043
|
+
end
|
1044
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1045
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1046
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1047
|
+
|
1048
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1049
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1050
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1051
|
+
|
1052
|
+
|
1053
|
+
# Get a migration job.
|
1054
|
+
#
|
1055
|
+
# @param [String] job_id The OCID of the job
|
1056
|
+
#
|
1057
|
+
# @param [Hash] opts the optional parameters
|
1058
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1059
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1060
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1061
|
+
# particular request, please provide the request ID.
|
1062
|
+
#
|
1063
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
1064
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_job.rb.html) to see an example of how to use get_job API.
|
1065
|
+
def get_job(job_id, opts = {})
|
1066
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_job.' if logger
|
1067
|
+
|
1068
|
+
raise "Missing the required parameter 'job_id' when calling get_job." if job_id.nil?
|
1069
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
1070
|
+
|
1071
|
+
path = '/jobs/{jobId}'.sub('{jobId}', job_id.to_s)
|
1072
|
+
operation_signing_strategy = :standard
|
1073
|
+
|
1074
|
+
# rubocop:disable Style/NegatedIf
|
1075
|
+
# Query Params
|
1076
|
+
query_params = {}
|
1077
|
+
|
1078
|
+
# Header Params
|
1079
|
+
header_params = {}
|
1080
|
+
header_params[:accept] = 'application/json'
|
1081
|
+
header_params[:'content-type'] = 'application/json'
|
1082
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1083
|
+
# rubocop:enable Style/NegatedIf
|
1084
|
+
|
1085
|
+
post_body = nil
|
1086
|
+
|
1087
|
+
# rubocop:disable Metrics/BlockLength
|
1088
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_job') do
|
1089
|
+
@api_client.call_api(
|
1090
|
+
:GET,
|
1091
|
+
path,
|
1092
|
+
endpoint,
|
1093
|
+
header_params: header_params,
|
1094
|
+
query_params: query_params,
|
1095
|
+
operation_signing_strategy: operation_signing_strategy,
|
1096
|
+
body: post_body,
|
1097
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
1098
|
+
)
|
1099
|
+
end
|
1100
|
+
# rubocop:enable Metrics/BlockLength
|
1101
|
+
end
|
1102
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1103
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1104
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1105
|
+
|
1106
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1107
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1108
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1109
|
+
|
1110
|
+
|
1111
|
+
# Get the migration Job Output content as a String.
|
1112
|
+
#
|
1113
|
+
# @param [String] job_id The OCID of the job
|
1114
|
+
#
|
1115
|
+
# @param [Hash] opts the optional parameters
|
1116
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1117
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1118
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1119
|
+
# particular request, please provide the request ID.
|
1120
|
+
#
|
1121
|
+
# @option opts [String, IO] :response_target Streaming http body into a file (specified by file name or File object) or IO object if the block is not given
|
1122
|
+
# @option [Block] &block Streaming http body to the block
|
1123
|
+
# @return [Response] A Response object with data of type String if response_target and block are not given, otherwise with nil data
|
1124
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_job_output_content.rb.html) to see an example of how to use get_job_output_content API.
|
1125
|
+
def get_job_output_content(job_id, opts = {}, &block)
|
1126
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_job_output_content.' if logger
|
1127
|
+
|
1128
|
+
raise "Missing the required parameter 'job_id' when calling get_job_output_content." if job_id.nil?
|
1129
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
1130
|
+
|
1131
|
+
path = '/jobs/{jobId}/output/content'.sub('{jobId}', job_id.to_s)
|
1132
|
+
operation_signing_strategy = :standard
|
1133
|
+
|
1134
|
+
# rubocop:disable Style/NegatedIf
|
1135
|
+
# Query Params
|
1136
|
+
query_params = {}
|
1137
|
+
|
1138
|
+
# Header Params
|
1139
|
+
header_params = {}
|
1140
|
+
header_params[:accept] = opts[:accept] if opts[:accept]
|
1141
|
+
header_params[:accept] ||= 'application/x-yaml'
|
1142
|
+
header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding]
|
1143
|
+
header_params[:'content-type'] = 'application/json'
|
1144
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1145
|
+
# rubocop:enable Style/NegatedIf
|
1146
|
+
|
1147
|
+
post_body = nil
|
1148
|
+
|
1149
|
+
# rubocop:disable Metrics/BlockLength
|
1150
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_job_output_content') do
|
1151
|
+
if !block.nil?
|
1152
|
+
@api_client.call_api(
|
1153
|
+
:GET,
|
1154
|
+
path,
|
1155
|
+
endpoint,
|
1156
|
+
header_params: header_params,
|
1157
|
+
query_params: query_params,
|
1158
|
+
operation_signing_strategy: operation_signing_strategy,
|
1159
|
+
body: post_body,
|
1160
|
+
return_type: 'Stream',
|
1161
|
+
&block
|
1162
|
+
)
|
1163
|
+
elsif opts[:response_target]
|
1164
|
+
if opts[:response_target].respond_to? :write
|
1165
|
+
@api_client.call_api(
|
1166
|
+
:GET,
|
1167
|
+
path,
|
1168
|
+
endpoint,
|
1169
|
+
header_params: header_params,
|
1170
|
+
query_params: query_params,
|
1171
|
+
operation_signing_strategy: operation_signing_strategy,
|
1172
|
+
body: post_body,
|
1173
|
+
return_type: 'Stream',
|
1174
|
+
&proc { |chunk, _response| opts[:response_target].write(chunk) }
|
1175
|
+
)
|
1176
|
+
elsif opts[:response_target].is_a?(String)
|
1177
|
+
File.open(opts[:response_target], 'wb') do |output|
|
1178
|
+
return @api_client.call_api(
|
1179
|
+
:GET,
|
1180
|
+
path,
|
1181
|
+
endpoint,
|
1182
|
+
header_params: header_params,
|
1183
|
+
query_params: query_params,
|
1184
|
+
operation_signing_strategy: operation_signing_strategy,
|
1185
|
+
body: post_body,
|
1186
|
+
return_type: 'Stream',
|
1187
|
+
&proc { |chunk, _response| output.write(chunk) }
|
1188
|
+
)
|
1189
|
+
end
|
1190
|
+
end
|
1191
|
+
else
|
1192
|
+
@api_client.call_api(
|
1193
|
+
:GET,
|
1194
|
+
path,
|
1195
|
+
endpoint,
|
1196
|
+
header_params: header_params,
|
1197
|
+
query_params: query_params,
|
1198
|
+
operation_signing_strategy: operation_signing_strategy,
|
1199
|
+
body: post_body,
|
1200
|
+
return_type: 'String'
|
1201
|
+
)
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
# rubocop:enable Metrics/BlockLength
|
1205
|
+
end
|
1206
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1207
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1208
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1209
|
+
|
1210
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1211
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1212
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1213
|
+
|
1214
|
+
|
1215
|
+
# Display Migration details.
|
1216
|
+
#
|
1217
|
+
# @param [String] migration_id The OCID of the migration
|
1218
|
+
#
|
1219
|
+
# @param [Hash] opts the optional parameters
|
1220
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1221
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1222
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1223
|
+
# particular request, please provide the request ID.
|
1224
|
+
#
|
1225
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1226
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1227
|
+
# etag from a previous GET or POST response for that resource.
|
1228
|
+
# The resource will be updated or deleted only if the etag you
|
1229
|
+
# provide matches the resource's current etag value.
|
1230
|
+
#
|
1231
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Migration Migration}
|
1232
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_migration.rb.html) to see an example of how to use get_migration API.
|
1233
|
+
def get_migration(migration_id, opts = {})
|
1234
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_migration.' if logger
|
1235
|
+
|
1236
|
+
raise "Missing the required parameter 'migration_id' when calling get_migration." if migration_id.nil?
|
1237
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
1238
|
+
|
1239
|
+
path = '/migrations/{migrationId}'.sub('{migrationId}', migration_id.to_s)
|
1240
|
+
operation_signing_strategy = :standard
|
1241
|
+
|
1242
|
+
# rubocop:disable Style/NegatedIf
|
1243
|
+
# Query Params
|
1244
|
+
query_params = {}
|
1245
|
+
|
1246
|
+
# Header Params
|
1247
|
+
header_params = {}
|
1248
|
+
header_params[:accept] = 'application/json'
|
1249
|
+
header_params[:'content-type'] = 'application/json'
|
1250
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1251
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1252
|
+
# rubocop:enable Style/NegatedIf
|
1253
|
+
|
1254
|
+
post_body = nil
|
1255
|
+
|
1256
|
+
# rubocop:disable Metrics/BlockLength
|
1257
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_migration') do
|
1258
|
+
@api_client.call_api(
|
1259
|
+
:GET,
|
1260
|
+
path,
|
1261
|
+
endpoint,
|
1262
|
+
header_params: header_params,
|
1263
|
+
query_params: query_params,
|
1264
|
+
operation_signing_strategy: operation_signing_strategy,
|
1265
|
+
body: post_body,
|
1266
|
+
return_type: 'OCI::DatabaseMigration::Models::Migration'
|
1267
|
+
)
|
1268
|
+
end
|
1269
|
+
# rubocop:enable Metrics/BlockLength
|
1270
|
+
end
|
1271
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1272
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1273
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1274
|
+
|
1275
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1276
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1277
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1278
|
+
|
1279
|
+
|
1280
|
+
# Gets the details of a work request.
|
1281
|
+
#
|
1282
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1283
|
+
#
|
1284
|
+
# @param [Hash] opts the optional parameters
|
1285
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1286
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1287
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1288
|
+
# particular request, please provide the request ID.
|
1289
|
+
#
|
1290
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::WorkRequest WorkRequest}
|
1291
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/get_work_request.rb.html) to see an example of how to use get_work_request API.
|
1292
|
+
def get_work_request(work_request_id, opts = {})
|
1293
|
+
logger.debug 'Calling operation DatabaseMigrationClient#get_work_request.' if logger
|
1294
|
+
|
1295
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
1296
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1297
|
+
|
1298
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
1299
|
+
operation_signing_strategy = :standard
|
1300
|
+
|
1301
|
+
# rubocop:disable Style/NegatedIf
|
1302
|
+
# Query Params
|
1303
|
+
query_params = {}
|
1304
|
+
|
1305
|
+
# Header Params
|
1306
|
+
header_params = {}
|
1307
|
+
header_params[:accept] = 'application/json'
|
1308
|
+
header_params[:'content-type'] = 'application/json'
|
1309
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1310
|
+
# rubocop:enable Style/NegatedIf
|
1311
|
+
|
1312
|
+
post_body = nil
|
1313
|
+
|
1314
|
+
# rubocop:disable Metrics/BlockLength
|
1315
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#get_work_request') do
|
1316
|
+
@api_client.call_api(
|
1317
|
+
:GET,
|
1318
|
+
path,
|
1319
|
+
endpoint,
|
1320
|
+
header_params: header_params,
|
1321
|
+
query_params: query_params,
|
1322
|
+
operation_signing_strategy: operation_signing_strategy,
|
1323
|
+
body: post_body,
|
1324
|
+
return_type: 'OCI::DatabaseMigration::Models::WorkRequest'
|
1325
|
+
)
|
1326
|
+
end
|
1327
|
+
# rubocop:enable Metrics/BlockLength
|
1328
|
+
end
|
1329
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1330
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1331
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1332
|
+
|
1333
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1334
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1335
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1336
|
+
|
1337
|
+
|
1338
|
+
# Get details of the ODMS Agent Images available to install on-premises.
|
1339
|
+
#
|
1340
|
+
# @param [Hash] opts the optional parameters
|
1341
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1342
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1343
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1344
|
+
# (default to 10)
|
1345
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1346
|
+
# (default to 1)
|
1347
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1348
|
+
# (default to ASC)
|
1349
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1350
|
+
# particular request, please provide the request ID.
|
1351
|
+
#
|
1352
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::AgentImageCollection AgentImageCollection}
|
1353
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_agent_images.rb.html) to see an example of how to use list_agent_images API.
|
1354
|
+
def list_agent_images(opts = {})
|
1355
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_agent_images.' if logger
|
1356
|
+
|
1357
|
+
|
1358
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1359
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1360
|
+
end
|
1361
|
+
|
1362
|
+
path = '/agentImages'
|
1363
|
+
operation_signing_strategy = :standard
|
1364
|
+
|
1365
|
+
# rubocop:disable Style/NegatedIf
|
1366
|
+
# Query Params
|
1367
|
+
query_params = {}
|
1368
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1369
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1370
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1371
|
+
|
1372
|
+
# Header Params
|
1373
|
+
header_params = {}
|
1374
|
+
header_params[:accept] = 'application/json'
|
1375
|
+
header_params[:'content-type'] = 'application/json'
|
1376
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1377
|
+
# rubocop:enable Style/NegatedIf
|
1378
|
+
|
1379
|
+
post_body = nil
|
1380
|
+
|
1381
|
+
# rubocop:disable Metrics/BlockLength
|
1382
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_agent_images') do
|
1383
|
+
@api_client.call_api(
|
1384
|
+
:GET,
|
1385
|
+
path,
|
1386
|
+
endpoint,
|
1387
|
+
header_params: header_params,
|
1388
|
+
query_params: query_params,
|
1389
|
+
operation_signing_strategy: operation_signing_strategy,
|
1390
|
+
body: post_body,
|
1391
|
+
return_type: 'OCI::DatabaseMigration::Models::AgentImageCollection'
|
1392
|
+
)
|
1393
|
+
end
|
1394
|
+
# rubocop:enable Metrics/BlockLength
|
1395
|
+
end
|
1396
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1397
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1398
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1399
|
+
|
1400
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1401
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1402
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1403
|
+
|
1404
|
+
|
1405
|
+
# Display the name of all the existing ODMS Agents in the server.
|
1406
|
+
#
|
1407
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
1408
|
+
#
|
1409
|
+
# @param [Hash] opts the optional parameters
|
1410
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1411
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1412
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1413
|
+
# (default to 10)
|
1414
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1415
|
+
# (default to 1)
|
1416
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1417
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1418
|
+
# (default to timeCreated)
|
1419
|
+
# Allowed values are: timeCreated, displayName
|
1420
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1421
|
+
# (default to ASC)
|
1422
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1423
|
+
#
|
1424
|
+
# @option opts [String] :lifecycle_state The current state of the Database Migration Deployment.
|
1425
|
+
#
|
1426
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1427
|
+
# particular request, please provide the request ID.
|
1428
|
+
#
|
1429
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::AgentCollection AgentCollection}
|
1430
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_agents.rb.html) to see an example of how to use list_agents API.
|
1431
|
+
def list_agents(compartment_id, opts = {})
|
1432
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_agents.' if logger
|
1433
|
+
|
1434
|
+
raise "Missing the required parameter 'compartment_id' when calling list_agents." if compartment_id.nil?
|
1435
|
+
|
1436
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1437
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1438
|
+
end
|
1439
|
+
|
1440
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1441
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
if opts[:lifecycle_state] && !OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
|
1445
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.'
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
path = '/agents'
|
1449
|
+
operation_signing_strategy = :standard
|
1450
|
+
|
1451
|
+
# rubocop:disable Style/NegatedIf
|
1452
|
+
# Query Params
|
1453
|
+
query_params = {}
|
1454
|
+
query_params[:compartmentId] = compartment_id
|
1455
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1456
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1457
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1458
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1459
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1460
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1461
|
+
|
1462
|
+
# Header Params
|
1463
|
+
header_params = {}
|
1464
|
+
header_params[:accept] = 'application/json'
|
1465
|
+
header_params[:'content-type'] = 'application/json'
|
1466
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1467
|
+
# rubocop:enable Style/NegatedIf
|
1468
|
+
|
1469
|
+
post_body = nil
|
1470
|
+
|
1471
|
+
# rubocop:disable Metrics/BlockLength
|
1472
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_agents') do
|
1473
|
+
@api_client.call_api(
|
1474
|
+
:GET,
|
1475
|
+
path,
|
1476
|
+
endpoint,
|
1477
|
+
header_params: header_params,
|
1478
|
+
query_params: query_params,
|
1479
|
+
operation_signing_strategy: operation_signing_strategy,
|
1480
|
+
body: post_body,
|
1481
|
+
return_type: 'OCI::DatabaseMigration::Models::AgentCollection'
|
1482
|
+
)
|
1483
|
+
end
|
1484
|
+
# rubocop:enable Metrics/BlockLength
|
1485
|
+
end
|
1486
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1487
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1488
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1489
|
+
|
1490
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1491
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1492
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1493
|
+
|
1494
|
+
|
1495
|
+
# List all Database Connections.
|
1496
|
+
#
|
1497
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
1498
|
+
#
|
1499
|
+
# @param [Hash] opts the optional parameters
|
1500
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1501
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1502
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1503
|
+
# particular request, please provide the request ID.
|
1504
|
+
#
|
1505
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1506
|
+
#
|
1507
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1508
|
+
# (default to 10)
|
1509
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1510
|
+
# (default to 1)
|
1511
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1512
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1513
|
+
# (default to timeCreated)
|
1514
|
+
# Allowed values are: timeCreated, displayName
|
1515
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1516
|
+
# (default to ASC)
|
1517
|
+
# @option opts [String] :lifecycle_state The current state of the Database Migration Deployment.
|
1518
|
+
#
|
1519
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::ConnectionCollection ConnectionCollection}
|
1520
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_connections.rb.html) to see an example of how to use list_connections API.
|
1521
|
+
def list_connections(compartment_id, opts = {})
|
1522
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_connections.' if logger
|
1523
|
+
|
1524
|
+
raise "Missing the required parameter 'compartment_id' when calling list_connections." if compartment_id.nil?
|
1525
|
+
|
1526
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1527
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1531
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
if opts[:lifecycle_state] && !OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
|
1535
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.'
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
path = '/connections'
|
1539
|
+
operation_signing_strategy = :standard
|
1540
|
+
|
1541
|
+
# rubocop:disable Style/NegatedIf
|
1542
|
+
# Query Params
|
1543
|
+
query_params = {}
|
1544
|
+
query_params[:compartmentId] = compartment_id
|
1545
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1546
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1547
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1548
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1549
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1550
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1551
|
+
|
1552
|
+
# Header Params
|
1553
|
+
header_params = {}
|
1554
|
+
header_params[:accept] = 'application/json'
|
1555
|
+
header_params[:'content-type'] = 'application/json'
|
1556
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1557
|
+
# rubocop:enable Style/NegatedIf
|
1558
|
+
|
1559
|
+
post_body = nil
|
1560
|
+
|
1561
|
+
# rubocop:disable Metrics/BlockLength
|
1562
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_connections') do
|
1563
|
+
@api_client.call_api(
|
1564
|
+
:GET,
|
1565
|
+
path,
|
1566
|
+
endpoint,
|
1567
|
+
header_params: header_params,
|
1568
|
+
query_params: query_params,
|
1569
|
+
operation_signing_strategy: operation_signing_strategy,
|
1570
|
+
body: post_body,
|
1571
|
+
return_type: 'OCI::DatabaseMigration::Models::ConnectionCollection'
|
1572
|
+
)
|
1573
|
+
end
|
1574
|
+
# rubocop:enable Metrics/BlockLength
|
1575
|
+
end
|
1576
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1577
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1578
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1579
|
+
|
1580
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1581
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1582
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1583
|
+
|
1584
|
+
|
1585
|
+
# List the Job Outputs
|
1586
|
+
#
|
1587
|
+
# @param [String] job_id The OCID of the job
|
1588
|
+
#
|
1589
|
+
# @param [Hash] opts the optional parameters
|
1590
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1591
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1592
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1593
|
+
# particular request, please provide the request ID.
|
1594
|
+
#
|
1595
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1596
|
+
# (default to 10)
|
1597
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1598
|
+
# (default to 1)
|
1599
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::JobOutputSummaryCollection JobOutputSummaryCollection}
|
1600
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_job_outputs.rb.html) to see an example of how to use list_job_outputs API.
|
1601
|
+
def list_job_outputs(job_id, opts = {})
|
1602
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_job_outputs.' if logger
|
1603
|
+
|
1604
|
+
raise "Missing the required parameter 'job_id' when calling list_job_outputs." if job_id.nil?
|
1605
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
1606
|
+
|
1607
|
+
path = '/jobs/{jobId}/output'.sub('{jobId}', job_id.to_s)
|
1608
|
+
operation_signing_strategy = :standard
|
1609
|
+
|
1610
|
+
# rubocop:disable Style/NegatedIf
|
1611
|
+
# Query Params
|
1612
|
+
query_params = {}
|
1613
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1614
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1615
|
+
|
1616
|
+
# Header Params
|
1617
|
+
header_params = {}
|
1618
|
+
header_params[:accept] = 'application/json'
|
1619
|
+
header_params[:'content-type'] = 'application/json'
|
1620
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1621
|
+
# rubocop:enable Style/NegatedIf
|
1622
|
+
|
1623
|
+
post_body = nil
|
1624
|
+
|
1625
|
+
# rubocop:disable Metrics/BlockLength
|
1626
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_job_outputs') do
|
1627
|
+
@api_client.call_api(
|
1628
|
+
:GET,
|
1629
|
+
path,
|
1630
|
+
endpoint,
|
1631
|
+
header_params: header_params,
|
1632
|
+
query_params: query_params,
|
1633
|
+
operation_signing_strategy: operation_signing_strategy,
|
1634
|
+
body: post_body,
|
1635
|
+
return_type: 'OCI::DatabaseMigration::Models::JobOutputSummaryCollection'
|
1636
|
+
)
|
1637
|
+
end
|
1638
|
+
# rubocop:enable Metrics/BlockLength
|
1639
|
+
end
|
1640
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1641
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1642
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1643
|
+
|
1644
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1645
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1646
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1647
|
+
|
1648
|
+
|
1649
|
+
# List all the names of the Migration jobs associated to the specified
|
1650
|
+
# migration site.
|
1651
|
+
#
|
1652
|
+
# @param [String] migration_id The ID of the migration in which to list resources.
|
1653
|
+
#
|
1654
|
+
# @param [Hash] opts the optional parameters
|
1655
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1656
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1657
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1658
|
+
# particular request, please provide the request ID.
|
1659
|
+
#
|
1660
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1661
|
+
#
|
1662
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1663
|
+
# (default to 10)
|
1664
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1665
|
+
# (default to 1)
|
1666
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1667
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1668
|
+
# (default to timeCreated)
|
1669
|
+
# Allowed values are: timeCreated, displayName
|
1670
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1671
|
+
# (default to ASC)
|
1672
|
+
# @option opts [String] :lifecycle_state The lifecycle state of the Migration Job.
|
1673
|
+
#
|
1674
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::JobCollection JobCollection}
|
1675
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_jobs.rb.html) to see an example of how to use list_jobs API.
|
1676
|
+
def list_jobs(migration_id, opts = {})
|
1677
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_jobs.' if logger
|
1678
|
+
|
1679
|
+
raise "Missing the required parameter 'migration_id' when calling list_jobs." if migration_id.nil?
|
1680
|
+
|
1681
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1682
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1686
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1687
|
+
end
|
1688
|
+
|
1689
|
+
if opts[:lifecycle_state] && !OCI::DatabaseMigration::Models::JOB_LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
|
1690
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseMigration::Models::JOB_LIFECYCLE_STATES_ENUM.'
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
path = '/jobs'
|
1694
|
+
operation_signing_strategy = :standard
|
1695
|
+
|
1696
|
+
# rubocop:disable Style/NegatedIf
|
1697
|
+
# Query Params
|
1698
|
+
query_params = {}
|
1699
|
+
query_params[:migrationId] = migration_id
|
1700
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1701
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1702
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1703
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1704
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1705
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1706
|
+
|
1707
|
+
# Header Params
|
1708
|
+
header_params = {}
|
1709
|
+
header_params[:accept] = 'application/json'
|
1710
|
+
header_params[:'content-type'] = 'application/json'
|
1711
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1712
|
+
# rubocop:enable Style/NegatedIf
|
1713
|
+
|
1714
|
+
post_body = nil
|
1715
|
+
|
1716
|
+
# rubocop:disable Metrics/BlockLength
|
1717
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_jobs') do
|
1718
|
+
@api_client.call_api(
|
1719
|
+
:GET,
|
1720
|
+
path,
|
1721
|
+
endpoint,
|
1722
|
+
header_params: header_params,
|
1723
|
+
query_params: query_params,
|
1724
|
+
operation_signing_strategy: operation_signing_strategy,
|
1725
|
+
body: post_body,
|
1726
|
+
return_type: 'OCI::DatabaseMigration::Models::JobCollection'
|
1727
|
+
)
|
1728
|
+
end
|
1729
|
+
# rubocop:enable Metrics/BlockLength
|
1730
|
+
end
|
1731
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1732
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1733
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1734
|
+
|
1735
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1736
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1737
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1738
|
+
|
1739
|
+
|
1740
|
+
# List all Migrations.
|
1741
|
+
#
|
1742
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
1743
|
+
#
|
1744
|
+
# @param [Hash] opts the optional parameters
|
1745
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1746
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1747
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1748
|
+
# particular request, please provide the request ID.
|
1749
|
+
#
|
1750
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1751
|
+
#
|
1752
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1753
|
+
# (default to 10)
|
1754
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1755
|
+
# (default to 1)
|
1756
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1757
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1758
|
+
# (default to timeCreated)
|
1759
|
+
# Allowed values are: timeCreated, displayName
|
1760
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1761
|
+
# (default to ASC)
|
1762
|
+
# @option opts [String] :lifecycle_state The current state of the Database Migration Deployment.
|
1763
|
+
#
|
1764
|
+
# @option opts [String] :lifecycle_details The lifecycle detailed status of the Migration.
|
1765
|
+
#
|
1766
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::MigrationCollection MigrationCollection}
|
1767
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_migrations.rb.html) to see an example of how to use list_migrations API.
|
1768
|
+
def list_migrations(compartment_id, opts = {})
|
1769
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_migrations.' if logger
|
1770
|
+
|
1771
|
+
raise "Missing the required parameter 'compartment_id' when calling list_migrations." if compartment_id.nil?
|
1772
|
+
|
1773
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1774
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1778
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1779
|
+
end
|
1780
|
+
|
1781
|
+
if opts[:lifecycle_state] && !OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
|
1782
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::DatabaseMigration::Models::LIFECYCLE_STATES_ENUM.'
|
1783
|
+
end
|
1784
|
+
|
1785
|
+
if opts[:lifecycle_details] && !OCI::DatabaseMigration::Models::MIGRATION_STATUS_ENUM.include?(opts[:lifecycle_details])
|
1786
|
+
raise 'Invalid value for "lifecycle_details", must be one of the values in OCI::DatabaseMigration::Models::MIGRATION_STATUS_ENUM.'
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
path = '/migrations'
|
1790
|
+
operation_signing_strategy = :standard
|
1791
|
+
|
1792
|
+
# rubocop:disable Style/NegatedIf
|
1793
|
+
# Query Params
|
1794
|
+
query_params = {}
|
1795
|
+
query_params[:compartmentId] = compartment_id
|
1796
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1797
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1798
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1799
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1800
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1801
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1802
|
+
query_params[:lifecycleDetails] = opts[:lifecycle_details] if opts[:lifecycle_details]
|
1803
|
+
|
1804
|
+
# Header Params
|
1805
|
+
header_params = {}
|
1806
|
+
header_params[:accept] = 'application/json'
|
1807
|
+
header_params[:'content-type'] = 'application/json'
|
1808
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1809
|
+
# rubocop:enable Style/NegatedIf
|
1810
|
+
|
1811
|
+
post_body = nil
|
1812
|
+
|
1813
|
+
# rubocop:disable Metrics/BlockLength
|
1814
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_migrations') do
|
1815
|
+
@api_client.call_api(
|
1816
|
+
:GET,
|
1817
|
+
path,
|
1818
|
+
endpoint,
|
1819
|
+
header_params: header_params,
|
1820
|
+
query_params: query_params,
|
1821
|
+
operation_signing_strategy: operation_signing_strategy,
|
1822
|
+
body: post_body,
|
1823
|
+
return_type: 'OCI::DatabaseMigration::Models::MigrationCollection'
|
1824
|
+
)
|
1825
|
+
end
|
1826
|
+
# rubocop:enable Metrics/BlockLength
|
1827
|
+
end
|
1828
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1829
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1830
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1831
|
+
|
1832
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1833
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1834
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1835
|
+
|
1836
|
+
|
1837
|
+
# Gets the errors for a work request.
|
1838
|
+
#
|
1839
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1840
|
+
#
|
1841
|
+
# @param [Hash] opts the optional parameters
|
1842
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1843
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1844
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1845
|
+
# (default to 10)
|
1846
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1847
|
+
# (default to 1)
|
1848
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1849
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1850
|
+
# (default to timeCreated)
|
1851
|
+
# Allowed values are: timeCreated, displayName
|
1852
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1853
|
+
# (default to ASC)
|
1854
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1855
|
+
#
|
1856
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1857
|
+
# particular request, please provide the request ID.
|
1858
|
+
#
|
1859
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
|
1860
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
|
1861
|
+
def list_work_request_errors(work_request_id, opts = {})
|
1862
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_work_request_errors.' if logger
|
1863
|
+
|
1864
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
1865
|
+
|
1866
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1867
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1871
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1872
|
+
end
|
1873
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1874
|
+
|
1875
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
1876
|
+
operation_signing_strategy = :standard
|
1877
|
+
|
1878
|
+
# rubocop:disable Style/NegatedIf
|
1879
|
+
# Query Params
|
1880
|
+
query_params = {}
|
1881
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1882
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1883
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1884
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1885
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1886
|
+
|
1887
|
+
# Header Params
|
1888
|
+
header_params = {}
|
1889
|
+
header_params[:accept] = 'application/json'
|
1890
|
+
header_params[:'content-type'] = 'application/json'
|
1891
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1892
|
+
# rubocop:enable Style/NegatedIf
|
1893
|
+
|
1894
|
+
post_body = nil
|
1895
|
+
|
1896
|
+
# rubocop:disable Metrics/BlockLength
|
1897
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_work_request_errors') do
|
1898
|
+
@api_client.call_api(
|
1899
|
+
:GET,
|
1900
|
+
path,
|
1901
|
+
endpoint,
|
1902
|
+
header_params: header_params,
|
1903
|
+
query_params: query_params,
|
1904
|
+
operation_signing_strategy: operation_signing_strategy,
|
1905
|
+
body: post_body,
|
1906
|
+
return_type: 'OCI::DatabaseMigration::Models::WorkRequestErrorCollection'
|
1907
|
+
)
|
1908
|
+
end
|
1909
|
+
# rubocop:enable Metrics/BlockLength
|
1910
|
+
end
|
1911
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1912
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1913
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1914
|
+
|
1915
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1916
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1917
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1918
|
+
|
1919
|
+
|
1920
|
+
# Gets the logs for a work request.
|
1921
|
+
#
|
1922
|
+
# @param [String] work_request_id The ID of the asynchronous request.
|
1923
|
+
#
|
1924
|
+
# @param [Hash] opts the optional parameters
|
1925
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1926
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1927
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
1928
|
+
# (default to 10)
|
1929
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
1930
|
+
# (default to 1)
|
1931
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
1932
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
1933
|
+
# (default to timeCreated)
|
1934
|
+
# Allowed values are: timeCreated, displayName
|
1935
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
1936
|
+
# (default to ASC)
|
1937
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
1938
|
+
#
|
1939
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1940
|
+
# particular request, please provide the request ID.
|
1941
|
+
#
|
1942
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
|
1943
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
|
1944
|
+
def list_work_request_logs(work_request_id, opts = {})
|
1945
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_work_request_logs.' if logger
|
1946
|
+
|
1947
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
1948
|
+
|
1949
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
1950
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
1951
|
+
end
|
1952
|
+
|
1953
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
1954
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
1955
|
+
end
|
1956
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1957
|
+
|
1958
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
1959
|
+
operation_signing_strategy = :standard
|
1960
|
+
|
1961
|
+
# rubocop:disable Style/NegatedIf
|
1962
|
+
# Query Params
|
1963
|
+
query_params = {}
|
1964
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1965
|
+
query_params[:page] = opts[:page] if opts[:page]
|
1966
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1967
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1968
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1969
|
+
|
1970
|
+
# Header Params
|
1971
|
+
header_params = {}
|
1972
|
+
header_params[:accept] = 'application/json'
|
1973
|
+
header_params[:'content-type'] = 'application/json'
|
1974
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1975
|
+
# rubocop:enable Style/NegatedIf
|
1976
|
+
|
1977
|
+
post_body = nil
|
1978
|
+
|
1979
|
+
# rubocop:disable Metrics/BlockLength
|
1980
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_work_request_logs') do
|
1981
|
+
@api_client.call_api(
|
1982
|
+
:GET,
|
1983
|
+
path,
|
1984
|
+
endpoint,
|
1985
|
+
header_params: header_params,
|
1986
|
+
query_params: query_params,
|
1987
|
+
operation_signing_strategy: operation_signing_strategy,
|
1988
|
+
body: post_body,
|
1989
|
+
return_type: 'OCI::DatabaseMigration::Models::WorkRequestLogEntryCollection'
|
1990
|
+
)
|
1991
|
+
end
|
1992
|
+
# rubocop:enable Metrics/BlockLength
|
1993
|
+
end
|
1994
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1995
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1996
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1997
|
+
|
1998
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1999
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2000
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2001
|
+
|
2002
|
+
|
2003
|
+
# Lists the work requests in a compartment or for a specified resource.
|
2004
|
+
#
|
2005
|
+
# @param [String] compartment_id The ID of the compartment in which to list resources.
|
2006
|
+
#
|
2007
|
+
# @param [Hash] opts the optional parameters
|
2008
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2009
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2010
|
+
# @option opts [String] :resource_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
|
2011
|
+
# (default to resourceId)
|
2012
|
+
# @option opts [Integer] :limit The maximum number of items to return.
|
2013
|
+
# (default to 10)
|
2014
|
+
# @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
2015
|
+
# (default to 1)
|
2016
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
2017
|
+
# Default order for displayName is ascending. If no value is specified timeCreated is default.
|
2018
|
+
# (default to timeCreated)
|
2019
|
+
# Allowed values are: timeCreated, displayName
|
2020
|
+
# @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'.
|
2021
|
+
# (default to ASC)
|
2022
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
2023
|
+
#
|
2024
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2025
|
+
# particular request, please provide the request ID.
|
2026
|
+
#
|
2027
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::WorkRequestCollection WorkRequestCollection}
|
2028
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
|
2029
|
+
def list_work_requests(compartment_id, opts = {})
|
2030
|
+
logger.debug 'Calling operation DatabaseMigrationClient#list_work_requests.' if logger
|
2031
|
+
|
2032
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
2033
|
+
|
2034
|
+
if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
|
2035
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
|
2036
|
+
end
|
2037
|
+
|
2038
|
+
if opts[:sort_order] && !OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
|
2039
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseMigration::Models::SORT_ORDERS_ENUM.'
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
path = '/workRequests'
|
2043
|
+
operation_signing_strategy = :standard
|
2044
|
+
|
2045
|
+
# rubocop:disable Style/NegatedIf
|
2046
|
+
# Query Params
|
2047
|
+
query_params = {}
|
2048
|
+
query_params[:compartmentId] = compartment_id
|
2049
|
+
query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
|
2050
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2051
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2052
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2053
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2054
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2055
|
+
|
2056
|
+
# Header Params
|
2057
|
+
header_params = {}
|
2058
|
+
header_params[:accept] = 'application/json'
|
2059
|
+
header_params[:'content-type'] = 'application/json'
|
2060
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2061
|
+
# rubocop:enable Style/NegatedIf
|
2062
|
+
|
2063
|
+
post_body = nil
|
2064
|
+
|
2065
|
+
# rubocop:disable Metrics/BlockLength
|
2066
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#list_work_requests') do
|
2067
|
+
@api_client.call_api(
|
2068
|
+
:GET,
|
2069
|
+
path,
|
2070
|
+
endpoint,
|
2071
|
+
header_params: header_params,
|
2072
|
+
query_params: query_params,
|
2073
|
+
operation_signing_strategy: operation_signing_strategy,
|
2074
|
+
body: post_body,
|
2075
|
+
return_type: 'OCI::DatabaseMigration::Models::WorkRequestCollection'
|
2076
|
+
)
|
2077
|
+
end
|
2078
|
+
# rubocop:enable Metrics/BlockLength
|
2079
|
+
end
|
2080
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2081
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2082
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2083
|
+
|
2084
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2085
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2086
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2087
|
+
|
2088
|
+
|
2089
|
+
# Resume a migration Job.
|
2090
|
+
#
|
2091
|
+
# @param [String] job_id The OCID of the job
|
2092
|
+
#
|
2093
|
+
# @param [Hash] opts the optional parameters
|
2094
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2095
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2096
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2097
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2098
|
+
# etag from a previous GET or POST response for that resource.
|
2099
|
+
# The resource will be updated or deleted only if the etag you
|
2100
|
+
# provide matches the resource's current etag value.
|
2101
|
+
#
|
2102
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2103
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
2104
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2105
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
2106
|
+
# might be rejected.
|
2107
|
+
#
|
2108
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2109
|
+
# particular request, please provide the request ID.
|
2110
|
+
#
|
2111
|
+
# @option opts [OCI::DatabaseMigration::Models::ResumeJobDetails] :resume_job_details Resume Job options.
|
2112
|
+
#
|
2113
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
2114
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/resume_job.rb.html) to see an example of how to use resume_job API.
|
2115
|
+
def resume_job(job_id, opts = {})
|
2116
|
+
logger.debug 'Calling operation DatabaseMigrationClient#resume_job.' if logger
|
2117
|
+
|
2118
|
+
raise "Missing the required parameter 'job_id' when calling resume_job." if job_id.nil?
|
2119
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
2120
|
+
|
2121
|
+
path = '/jobs/{jobId}/actions/resume'.sub('{jobId}', job_id.to_s)
|
2122
|
+
operation_signing_strategy = :standard
|
2123
|
+
|
2124
|
+
# rubocop:disable Style/NegatedIf
|
2125
|
+
# Query Params
|
2126
|
+
query_params = {}
|
2127
|
+
|
2128
|
+
# Header Params
|
2129
|
+
header_params = {}
|
2130
|
+
header_params[:accept] = 'application/json'
|
2131
|
+
header_params[:'content-type'] = 'application/json'
|
2132
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2133
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2134
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2135
|
+
# rubocop:enable Style/NegatedIf
|
2136
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2137
|
+
|
2138
|
+
post_body = @api_client.object_to_http_body(opts[:resume_job_details])
|
2139
|
+
|
2140
|
+
# rubocop:disable Metrics/BlockLength
|
2141
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#resume_job') do
|
2142
|
+
@api_client.call_api(
|
2143
|
+
:POST,
|
2144
|
+
path,
|
2145
|
+
endpoint,
|
2146
|
+
header_params: header_params,
|
2147
|
+
query_params: query_params,
|
2148
|
+
operation_signing_strategy: operation_signing_strategy,
|
2149
|
+
body: post_body,
|
2150
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
2151
|
+
)
|
2152
|
+
end
|
2153
|
+
# rubocop:enable Metrics/BlockLength
|
2154
|
+
end
|
2155
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2156
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2157
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2158
|
+
|
2159
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2160
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2161
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2162
|
+
|
2163
|
+
|
2164
|
+
# Display Migration Phases for a specified migration.
|
2165
|
+
#
|
2166
|
+
# @param [String] migration_id The OCID of the migration
|
2167
|
+
#
|
2168
|
+
# @param [Hash] opts the optional parameters
|
2169
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2170
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2171
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2172
|
+
# particular request, please provide the request ID.
|
2173
|
+
#
|
2174
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::MigrationPhaseCollection MigrationPhaseCollection}
|
2175
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/retrieve_supported_phases.rb.html) to see an example of how to use retrieve_supported_phases API.
|
2176
|
+
def retrieve_supported_phases(migration_id, opts = {})
|
2177
|
+
logger.debug 'Calling operation DatabaseMigrationClient#retrieve_supported_phases.' if logger
|
2178
|
+
|
2179
|
+
raise "Missing the required parameter 'migration_id' when calling retrieve_supported_phases." if migration_id.nil?
|
2180
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
2181
|
+
|
2182
|
+
path = '/migrations/{migrationId}/actions/getSupportedPhases'.sub('{migrationId}', migration_id.to_s)
|
2183
|
+
operation_signing_strategy = :standard
|
2184
|
+
|
2185
|
+
# rubocop:disable Style/NegatedIf
|
2186
|
+
# Query Params
|
2187
|
+
query_params = {}
|
2188
|
+
|
2189
|
+
# Header Params
|
2190
|
+
header_params = {}
|
2191
|
+
header_params[:accept] = 'application/json'
|
2192
|
+
header_params[:'content-type'] = 'application/json'
|
2193
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2194
|
+
# rubocop:enable Style/NegatedIf
|
2195
|
+
|
2196
|
+
post_body = nil
|
2197
|
+
|
2198
|
+
# rubocop:disable Metrics/BlockLength
|
2199
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#retrieve_supported_phases') do
|
2200
|
+
@api_client.call_api(
|
2201
|
+
:POST,
|
2202
|
+
path,
|
2203
|
+
endpoint,
|
2204
|
+
header_params: header_params,
|
2205
|
+
query_params: query_params,
|
2206
|
+
operation_signing_strategy: operation_signing_strategy,
|
2207
|
+
body: post_body,
|
2208
|
+
return_type: 'OCI::DatabaseMigration::Models::MigrationPhaseCollection'
|
2209
|
+
)
|
2210
|
+
end
|
2211
|
+
# rubocop:enable Metrics/BlockLength
|
2212
|
+
end
|
2213
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2214
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2215
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2216
|
+
|
2217
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2218
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2219
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2220
|
+
|
2221
|
+
|
2222
|
+
# Start Migration job.
|
2223
|
+
#
|
2224
|
+
# @param [String] migration_id The OCID of the migration
|
2225
|
+
#
|
2226
|
+
# @param [Hash] opts the optional parameters
|
2227
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2228
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2229
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2230
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2231
|
+
# etag from a previous GET or POST response for that resource.
|
2232
|
+
# The resource will be updated or deleted only if the etag you
|
2233
|
+
# provide matches the resource's current etag value.
|
2234
|
+
#
|
2235
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2236
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
2237
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2238
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
2239
|
+
# might be rejected.
|
2240
|
+
#
|
2241
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2242
|
+
# particular request, please provide the request ID.
|
2243
|
+
#
|
2244
|
+
# @option opts [OCI::DatabaseMigration::Models::StartMigrationDetails] :start_migration_details Start Migration Job properties.
|
2245
|
+
#
|
2246
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
2247
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/start_migration.rb.html) to see an example of how to use start_migration API.
|
2248
|
+
def start_migration(migration_id, opts = {})
|
2249
|
+
logger.debug 'Calling operation DatabaseMigrationClient#start_migration.' if logger
|
2250
|
+
|
2251
|
+
raise "Missing the required parameter 'migration_id' when calling start_migration." if migration_id.nil?
|
2252
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
2253
|
+
|
2254
|
+
path = '/migrations/{migrationId}/actions/start'.sub('{migrationId}', migration_id.to_s)
|
2255
|
+
operation_signing_strategy = :standard
|
2256
|
+
|
2257
|
+
# rubocop:disable Style/NegatedIf
|
2258
|
+
# Query Params
|
2259
|
+
query_params = {}
|
2260
|
+
|
2261
|
+
# Header Params
|
2262
|
+
header_params = {}
|
2263
|
+
header_params[:accept] = 'application/json'
|
2264
|
+
header_params[:'content-type'] = 'application/json'
|
2265
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2266
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2267
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2268
|
+
# rubocop:enable Style/NegatedIf
|
2269
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2270
|
+
|
2271
|
+
post_body = @api_client.object_to_http_body(opts[:start_migration_details])
|
2272
|
+
|
2273
|
+
# rubocop:disable Metrics/BlockLength
|
2274
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#start_migration') do
|
2275
|
+
@api_client.call_api(
|
2276
|
+
:POST,
|
2277
|
+
path,
|
2278
|
+
endpoint,
|
2279
|
+
header_params: header_params,
|
2280
|
+
query_params: query_params,
|
2281
|
+
operation_signing_strategy: operation_signing_strategy,
|
2282
|
+
body: post_body,
|
2283
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
2284
|
+
)
|
2285
|
+
end
|
2286
|
+
# rubocop:enable Metrics/BlockLength
|
2287
|
+
end
|
2288
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2289
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2290
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2291
|
+
|
2292
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2293
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2294
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2295
|
+
|
2296
|
+
|
2297
|
+
# Modifies the ODMS Agent represented by the given ODMS Agent ID.
|
2298
|
+
#
|
2299
|
+
# @param [String] agent_id The OCID of the agent
|
2300
|
+
#
|
2301
|
+
# @param [OCI::DatabaseMigration::Models::UpdateAgentDetails] update_agent_details Update ODMS Agent properties.
|
2302
|
+
#
|
2303
|
+
# @param [Hash] opts the optional parameters
|
2304
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2305
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2306
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2307
|
+
# particular request, please provide the request ID.
|
2308
|
+
#
|
2309
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2310
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
2311
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2312
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
2313
|
+
# might be rejected.
|
2314
|
+
#
|
2315
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2316
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2317
|
+
# etag from a previous GET or POST response for that resource.
|
2318
|
+
# The resource will be updated or deleted only if the etag you
|
2319
|
+
# provide matches the resource's current etag value.
|
2320
|
+
#
|
2321
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Agent Agent}
|
2322
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/update_agent.rb.html) to see an example of how to use update_agent API.
|
2323
|
+
def update_agent(agent_id, update_agent_details, opts = {})
|
2324
|
+
logger.debug 'Calling operation DatabaseMigrationClient#update_agent.' if logger
|
2325
|
+
|
2326
|
+
raise "Missing the required parameter 'agent_id' when calling update_agent." if agent_id.nil?
|
2327
|
+
raise "Missing the required parameter 'update_agent_details' when calling update_agent." if update_agent_details.nil?
|
2328
|
+
raise "Parameter value for 'agent_id' must not be blank" if OCI::Internal::Util.blank_string?(agent_id)
|
2329
|
+
|
2330
|
+
path = '/agents/{agentId}'.sub('{agentId}', agent_id.to_s)
|
2331
|
+
operation_signing_strategy = :standard
|
2332
|
+
|
2333
|
+
# rubocop:disable Style/NegatedIf
|
2334
|
+
# Query Params
|
2335
|
+
query_params = {}
|
2336
|
+
|
2337
|
+
# Header Params
|
2338
|
+
header_params = {}
|
2339
|
+
header_params[:accept] = 'application/json'
|
2340
|
+
header_params[:'content-type'] = 'application/json'
|
2341
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2342
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2343
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2344
|
+
# rubocop:enable Style/NegatedIf
|
2345
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2346
|
+
|
2347
|
+
post_body = @api_client.object_to_http_body(update_agent_details)
|
2348
|
+
|
2349
|
+
# rubocop:disable Metrics/BlockLength
|
2350
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#update_agent') do
|
2351
|
+
@api_client.call_api(
|
2352
|
+
:PUT,
|
2353
|
+
path,
|
2354
|
+
endpoint,
|
2355
|
+
header_params: header_params,
|
2356
|
+
query_params: query_params,
|
2357
|
+
operation_signing_strategy: operation_signing_strategy,
|
2358
|
+
body: post_body,
|
2359
|
+
return_type: 'OCI::DatabaseMigration::Models::Agent'
|
2360
|
+
)
|
2361
|
+
end
|
2362
|
+
# rubocop:enable Metrics/BlockLength
|
2363
|
+
end
|
2364
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2365
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2366
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2367
|
+
|
2368
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2369
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2370
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2371
|
+
|
2372
|
+
|
2373
|
+
# Update Database Connection resource details.
|
2374
|
+
#
|
2375
|
+
# @param [String] connection_id The OCID of the database connection
|
2376
|
+
#
|
2377
|
+
# @param [OCI::DatabaseMigration::Models::UpdateConnectionDetails] update_connection_details Database Connection properties.
|
2378
|
+
#
|
2379
|
+
# @param [Hash] opts the optional parameters
|
2380
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2381
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2382
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2383
|
+
# particular request, please provide the request ID.
|
2384
|
+
#
|
2385
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2386
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2387
|
+
# etag from a previous GET or POST response for that resource.
|
2388
|
+
# The resource will be updated or deleted only if the etag you
|
2389
|
+
# provide matches the resource's current etag value.
|
2390
|
+
#
|
2391
|
+
# @return [Response] A Response object with data of type nil
|
2392
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/update_connection.rb.html) to see an example of how to use update_connection API.
|
2393
|
+
def update_connection(connection_id, update_connection_details, opts = {})
|
2394
|
+
logger.debug 'Calling operation DatabaseMigrationClient#update_connection.' if logger
|
2395
|
+
|
2396
|
+
raise "Missing the required parameter 'connection_id' when calling update_connection." if connection_id.nil?
|
2397
|
+
raise "Missing the required parameter 'update_connection_details' when calling update_connection." if update_connection_details.nil?
|
2398
|
+
raise "Parameter value for 'connection_id' must not be blank" if OCI::Internal::Util.blank_string?(connection_id)
|
2399
|
+
|
2400
|
+
path = '/connections/{connectionId}'.sub('{connectionId}', connection_id.to_s)
|
2401
|
+
operation_signing_strategy = :standard
|
2402
|
+
|
2403
|
+
# rubocop:disable Style/NegatedIf
|
2404
|
+
# Query Params
|
2405
|
+
query_params = {}
|
2406
|
+
|
2407
|
+
# Header Params
|
2408
|
+
header_params = {}
|
2409
|
+
header_params[:accept] = 'application/json'
|
2410
|
+
header_params[:'content-type'] = 'application/json'
|
2411
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2412
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2413
|
+
# rubocop:enable Style/NegatedIf
|
2414
|
+
|
2415
|
+
post_body = @api_client.object_to_http_body(update_connection_details)
|
2416
|
+
|
2417
|
+
# rubocop:disable Metrics/BlockLength
|
2418
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#update_connection') do
|
2419
|
+
@api_client.call_api(
|
2420
|
+
:PUT,
|
2421
|
+
path,
|
2422
|
+
endpoint,
|
2423
|
+
header_params: header_params,
|
2424
|
+
query_params: query_params,
|
2425
|
+
operation_signing_strategy: operation_signing_strategy,
|
2426
|
+
body: post_body
|
2427
|
+
)
|
2428
|
+
end
|
2429
|
+
# rubocop:enable Metrics/BlockLength
|
2430
|
+
end
|
2431
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2432
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2433
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2434
|
+
|
2435
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2436
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2437
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2438
|
+
|
2439
|
+
|
2440
|
+
# Update Migration Job resource details.
|
2441
|
+
#
|
2442
|
+
# @param [String] job_id The OCID of the job
|
2443
|
+
#
|
2444
|
+
# @param [OCI::DatabaseMigration::Models::UpdateJobDetails] update_job_details Migration Job properties.
|
2445
|
+
#
|
2446
|
+
# @param [Hash] opts the optional parameters
|
2447
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2448
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2449
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2450
|
+
# particular request, please provide the request ID.
|
2451
|
+
#
|
2452
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2453
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2454
|
+
# etag from a previous GET or POST response for that resource.
|
2455
|
+
# The resource will be updated or deleted only if the etag you
|
2456
|
+
# provide matches the resource's current etag value.
|
2457
|
+
#
|
2458
|
+
# @return [Response] A Response object with data of type {OCI::DatabaseMigration::Models::Job Job}
|
2459
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/update_job.rb.html) to see an example of how to use update_job API.
|
2460
|
+
def update_job(job_id, update_job_details, opts = {})
|
2461
|
+
logger.debug 'Calling operation DatabaseMigrationClient#update_job.' if logger
|
2462
|
+
|
2463
|
+
raise "Missing the required parameter 'job_id' when calling update_job." if job_id.nil?
|
2464
|
+
raise "Missing the required parameter 'update_job_details' when calling update_job." if update_job_details.nil?
|
2465
|
+
raise "Parameter value for 'job_id' must not be blank" if OCI::Internal::Util.blank_string?(job_id)
|
2466
|
+
|
2467
|
+
path = '/jobs/{jobId}'.sub('{jobId}', job_id.to_s)
|
2468
|
+
operation_signing_strategy = :standard
|
2469
|
+
|
2470
|
+
# rubocop:disable Style/NegatedIf
|
2471
|
+
# Query Params
|
2472
|
+
query_params = {}
|
2473
|
+
|
2474
|
+
# Header Params
|
2475
|
+
header_params = {}
|
2476
|
+
header_params[:accept] = 'application/json'
|
2477
|
+
header_params[:'content-type'] = 'application/json'
|
2478
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2479
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2480
|
+
# rubocop:enable Style/NegatedIf
|
2481
|
+
|
2482
|
+
post_body = @api_client.object_to_http_body(update_job_details)
|
2483
|
+
|
2484
|
+
# rubocop:disable Metrics/BlockLength
|
2485
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#update_job') do
|
2486
|
+
@api_client.call_api(
|
2487
|
+
:PUT,
|
2488
|
+
path,
|
2489
|
+
endpoint,
|
2490
|
+
header_params: header_params,
|
2491
|
+
query_params: query_params,
|
2492
|
+
operation_signing_strategy: operation_signing_strategy,
|
2493
|
+
body: post_body,
|
2494
|
+
return_type: 'OCI::DatabaseMigration::Models::Job'
|
2495
|
+
)
|
2496
|
+
end
|
2497
|
+
# rubocop:enable Metrics/BlockLength
|
2498
|
+
end
|
2499
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2500
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2501
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2502
|
+
|
2503
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2504
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2505
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2506
|
+
|
2507
|
+
|
2508
|
+
# Update Migration resource details.
|
2509
|
+
#
|
2510
|
+
# @param [String] migration_id The OCID of the migration
|
2511
|
+
#
|
2512
|
+
# @param [OCI::DatabaseMigration::Models::UpdateMigrationDetails] update_migration_details Migration properties.
|
2513
|
+
#
|
2514
|
+
# @param [Hash] opts the optional parameters
|
2515
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2516
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2517
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2518
|
+
# particular request, please provide the request ID.
|
2519
|
+
#
|
2520
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2521
|
+
# for a resource, set the `if-match` parameter to the value of the
|
2522
|
+
# etag from a previous GET or POST response for that resource.
|
2523
|
+
# The resource will be updated or deleted only if the etag you
|
2524
|
+
# provide matches the resource's current etag value.
|
2525
|
+
#
|
2526
|
+
# @return [Response] A Response object with data of type nil
|
2527
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemigration/update_migration.rb.html) to see an example of how to use update_migration API.
|
2528
|
+
def update_migration(migration_id, update_migration_details, opts = {})
|
2529
|
+
logger.debug 'Calling operation DatabaseMigrationClient#update_migration.' if logger
|
2530
|
+
|
2531
|
+
raise "Missing the required parameter 'migration_id' when calling update_migration." if migration_id.nil?
|
2532
|
+
raise "Missing the required parameter 'update_migration_details' when calling update_migration." if update_migration_details.nil?
|
2533
|
+
raise "Parameter value for 'migration_id' must not be blank" if OCI::Internal::Util.blank_string?(migration_id)
|
2534
|
+
|
2535
|
+
path = '/migrations/{migrationId}'.sub('{migrationId}', migration_id.to_s)
|
2536
|
+
operation_signing_strategy = :standard
|
2537
|
+
|
2538
|
+
# rubocop:disable Style/NegatedIf
|
2539
|
+
# Query Params
|
2540
|
+
query_params = {}
|
2541
|
+
|
2542
|
+
# Header Params
|
2543
|
+
header_params = {}
|
2544
|
+
header_params[:accept] = 'application/json'
|
2545
|
+
header_params[:'content-type'] = 'application/json'
|
2546
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2547
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
2548
|
+
# rubocop:enable Style/NegatedIf
|
2549
|
+
|
2550
|
+
post_body = @api_client.object_to_http_body(update_migration_details)
|
2551
|
+
|
2552
|
+
# rubocop:disable Metrics/BlockLength
|
2553
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DatabaseMigrationClient#update_migration') do
|
2554
|
+
@api_client.call_api(
|
2555
|
+
:PUT,
|
2556
|
+
path,
|
2557
|
+
endpoint,
|
2558
|
+
header_params: header_params,
|
2559
|
+
query_params: query_params,
|
2560
|
+
operation_signing_strategy: operation_signing_strategy,
|
2561
|
+
body: post_body
|
2562
|
+
)
|
2563
|
+
end
|
2564
|
+
# rubocop:enable Metrics/BlockLength
|
2565
|
+
end
|
2566
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2567
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2568
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2569
|
+
|
2570
|
+
private
|
2571
|
+
|
2572
|
+
def applicable_retry_config(opts = {})
|
2573
|
+
return @retry_config unless opts.key?(:retry_config)
|
2574
|
+
|
2575
|
+
opts[:retry_config]
|
2576
|
+
end
|
2577
|
+
end
|
2578
|
+
end
|
2579
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|