oci 2.128.1__py3-none-any.whl → 2.129.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_document/models/analyze_document_details.py +7 -3
- oci/ai_document/models/general_processor_config.py +7 -3
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +66 -66
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +99 -99
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +278 -278
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +334 -334
- oci/database/models/autonomous_database.py +62 -0
- oci/database/models/autonomous_database_summary.py +62 -0
- oci/database_management/db_management_client.py +208 -208
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/__init__.py +1 -1
- oci/database_migration/database_migration_client.py +177 -845
- oci/database_migration/database_migration_client_composite_operations.py +3 -95
- oci/database_migration/models/__init__.py +137 -115
- oci/database_migration/models/adb_dedicated_auto_create_tablespace_details.py +12 -8
- oci/database_migration/models/adb_dedicated_remap_target_tablespace_details.py +4 -4
- oci/database_migration/models/adb_serverles_tablespace_details.py +4 -4
- oci/database_migration/models/admin_credentials.py +1 -1
- oci/database_migration/models/advisor_report.py +4 -4
- oci/database_migration/models/advisor_report_bucket_details.py +6 -6
- oci/database_migration/models/advisor_report_location_details.py +4 -4
- oci/database_migration/models/change_connection_compartment_details.py +4 -4
- oci/database_migration/models/change_migration_compartment_details.py +4 -4
- oci/database_migration/models/clone_migration_details.py +87 -168
- oci/database_migration/models/connection.py +453 -420
- oci/database_migration/models/connection_collection.py +4 -4
- oci/database_migration/models/connection_summary.py +315 -280
- oci/database_migration/models/create_adb_dedicated_auto_create_tablespace_details.py +12 -8
- oci/database_migration/models/create_adb_dedicated_remap_target_tablespace_details.py +4 -4
- oci/database_migration/models/create_adb_serverles_tablespace_details.py +2 -2
- oci/database_migration/models/create_admin_credentials.py +1 -1
- oci/database_migration/models/create_connection_details.py +276 -342
- oci/database_migration/models/create_curl_transfer_details.py +1 -1
- oci/database_migration/models/create_data_pump_parameters.py +2 -4
- oci/database_migration/models/create_directory_object.py +1 -1
- oci/database_migration/models/create_extract.py +1 -1
- oci/database_migration/models/create_golden_gate_hub_details.py +277 -0
- oci/database_migration/models/create_host_dump_transfer_details.py +4 -4
- oci/database_migration/models/create_migration_details.py +143 -409
- oci/database_migration/models/create_my_sql_advisor_settings.py +103 -0
- oci/database_migration/models/create_my_sql_data_transfer_medium_details.py +101 -0
- oci/database_migration/models/create_my_sql_ggs_deployment_details.py +99 -0
- oci/database_migration/models/create_my_sql_initial_load_settings.py +316 -0
- oci/database_migration/models/create_my_sql_migration_details.py +340 -0
- oci/database_migration/models/create_my_sql_object_storage_data_transfer_medium_details.py +78 -0
- oci/database_migration/models/create_mysql_connection_details.py +524 -0
- oci/database_migration/models/create_non_adb_auto_create_tablespace_details.py +1 -1
- oci/database_migration/models/create_non_adb_remap_tablespace_details.py +1 -1
- oci/database_migration/models/create_object_store_bucket.py +1 -1
- oci/database_migration/models/create_oci_cli_dump_transfer_details.py +1 -1
- oci/database_migration/models/create_oracle_advisor_settings.py +103 -0
- oci/database_migration/models/create_oracle_aws_s3_data_transfer_medium_details.py +211 -0
- oci/database_migration/models/create_oracle_connection_details.py +392 -0
- oci/database_migration/models/create_oracle_data_transfer_medium_details.py +125 -0
- oci/database_migration/models/create_oracle_db_link_data_transfer_medium_details.py +111 -0
- oci/database_migration/models/create_oracle_ggs_deployment_details.py +126 -0
- oci/database_migration/models/create_oracle_initial_load_settings.py +239 -0
- oci/database_migration/models/create_oracle_migration_details.py +371 -0
- oci/database_migration/models/create_oracle_nfs_data_transfer_medium_details.py +163 -0
- oci/database_migration/models/create_oracle_object_storage_data_transfer_medium_details.py +132 -0
- oci/database_migration/models/create_replicat.py +3 -96
- oci/database_migration/models/create_target_type_tablespace_details.py +1 -1
- oci/database_migration/models/curl_transfer_details.py +1 -1
- oci/database_migration/models/data_pump_parameters.py +4 -6
- oci/database_migration/models/diagnostics_result.py +1 -1
- oci/database_migration/models/directory_object.py +1 -1
- oci/database_migration/models/excluded_object_summary.py +1 -1
- oci/database_migration/models/excluded_object_summary_collection.py +1 -1
- oci/database_migration/models/extract.py +1 -1
- oci/database_migration/models/ggs_deployment.py +5 -5
- oci/database_migration/models/golden_gate_hub_details.py +277 -0
- oci/database_migration/models/host_dump_transfer_details.py +2 -2
- oci/database_migration/models/ingress_ip_details.py +72 -0
- oci/database_migration/models/job.py +5 -5
- oci/database_migration/models/job_collection.py +1 -1
- oci/database_migration/models/job_output_summary.py +1 -1
- oci/database_migration/models/job_output_summary_collection.py +1 -1
- oci/database_migration/models/job_summary.py +5 -5
- oci/database_migration/models/log_location_bucket_details.py +1 -1
- oci/database_migration/models/metadata_remap.py +1 -1
- oci/database_migration/models/migration.py +154 -412
- oci/database_migration/models/migration_collection.py +1 -1
- oci/database_migration/models/migration_job_progress_resource.py +18 -10
- oci/database_migration/models/migration_job_progress_summary.py +18 -10
- oci/database_migration/models/migration_object_collection.py +54 -46
- oci/database_migration/models/migration_object_type_summary.py +1 -1
- oci/database_migration/models/migration_object_type_summary_collection.py +1 -1
- oci/database_migration/models/migration_phase_collection.py +1 -1
- oci/database_migration/models/migration_phase_summary.py +18 -10
- oci/database_migration/models/migration_summary.py +102 -117
- oci/database_migration/models/my_sql_advisor_settings.py +103 -0
- oci/database_migration/models/my_sql_clone_migration_details.py +93 -0
- oci/database_migration/models/my_sql_data_transfer_medium_details.py +101 -0
- oci/database_migration/models/my_sql_database_object.py +136 -0
- oci/database_migration/models/my_sql_database_object_summary.py +183 -0
- oci/database_migration/models/my_sql_ggs_deployment_details.py +126 -0
- oci/database_migration/models/my_sql_initial_load_settings.py +316 -0
- oci/database_migration/models/my_sql_migration.py +309 -0
- oci/database_migration/models/my_sql_migration_object_collection.py +117 -0
- oci/database_migration/models/my_sql_migration_summary.py +159 -0
- oci/database_migration/models/my_sql_object_storage_data_transfer_medium_details.py +78 -0
- oci/database_migration/models/mysql_connection.py +538 -0
- oci/database_migration/models/mysql_connection_summary.py +413 -0
- oci/database_migration/models/name_value_pair.py +103 -0
- oci/database_migration/models/non_adb_auto_create_tablespace_details.py +1 -1
- oci/database_migration/models/non_adb_remap_tablespace_details.py +1 -1
- oci/database_migration/models/object_store_bucket.py +1 -1
- oci/database_migration/models/oci_cli_dump_transfer_details.py +1 -1
- oci/database_migration/models/oracle_advisor_settings.py +103 -0
- oci/database_migration/models/oracle_aws_s3_data_transfer_medium_details.py +211 -0
- oci/database_migration/models/oracle_clone_migration_details.py +124 -0
- oci/database_migration/models/oracle_connection.py +449 -0
- oci/database_migration/models/oracle_connection_summary.py +256 -0
- oci/database_migration/models/oracle_data_transfer_medium_details.py +125 -0
- oci/database_migration/models/oracle_database_object.py +169 -0
- oci/database_migration/models/oracle_database_object_summary.py +216 -0
- oci/database_migration/models/oracle_db_link_data_transfer_medium_details.py +111 -0
- oci/database_migration/models/oracle_ggs_deployment_details.py +153 -0
- oci/database_migration/models/oracle_initial_load_settings.py +239 -0
- oci/database_migration/models/oracle_migration.py +340 -0
- oci/database_migration/models/oracle_migration_object_collection.py +117 -0
- oci/database_migration/models/oracle_migration_summary.py +190 -0
- oci/database_migration/models/oracle_nfs_data_transfer_medium_details.py +163 -0
- oci/database_migration/models/oracle_object_storage_data_transfer_medium_details.py +132 -0
- oci/database_migration/models/phase_extract_entry.py +1 -1
- oci/database_migration/models/phase_status.py +18 -10
- oci/database_migration/models/replicat.py +3 -96
- oci/database_migration/models/result_error.py +1 -1
- oci/database_migration/models/resume_job_details.py +18 -10
- oci/database_migration/models/start_migration_details.py +18 -10
- oci/database_migration/models/target_type_tablespace_details.py +1 -1
- oci/database_migration/models/unsupported_database_object.py +1 -1
- oci/database_migration/models/update_adb_dedicated_auto_create_tablespace_details.py +12 -8
- oci/database_migration/models/update_adb_dedicated_remap_target_tablespace_details.py +4 -4
- oci/database_migration/models/update_adb_serverles_tablespace_details.py +2 -2
- oci/database_migration/models/update_admin_credentials.py +1 -1
- oci/database_migration/models/update_connection_details.py +278 -244
- oci/database_migration/models/update_curl_transfer_details.py +1 -1
- oci/database_migration/models/update_data_pump_parameters.py +6 -8
- oci/database_migration/models/update_directory_object.py +1 -1
- oci/database_migration/models/update_extract.py +1 -1
- oci/database_migration/models/update_golden_gate_hub_details.py +277 -0
- oci/database_migration/models/update_host_dump_transfer_details.py +4 -4
- oci/database_migration/models/update_job_details.py +5 -5
- oci/database_migration/models/update_migration_details.py +122 -363
- oci/database_migration/models/update_my_sql_advisor_settings.py +103 -0
- oci/database_migration/models/update_my_sql_data_transfer_medium_details.py +101 -0
- oci/database_migration/models/update_my_sql_ggs_deployment_details.py +99 -0
- oci/database_migration/models/update_my_sql_initial_load_settings.py +316 -0
- oci/database_migration/models/update_my_sql_migration_details.py +236 -0
- oci/database_migration/models/update_my_sql_object_storage_data_transfer_medium_details.py +78 -0
- oci/database_migration/models/update_mysql_connection_details.py +484 -0
- oci/database_migration/models/update_non_adb_auto_create_tablespace_details.py +1 -1
- oci/database_migration/models/update_non_adb_remap_tablespace_details.py +1 -1
- oci/database_migration/models/update_object_store_bucket.py +1 -1
- oci/database_migration/models/update_oci_cli_dump_transfer_details.py +1 -1
- oci/database_migration/models/update_oracle_advisor_settings.py +103 -0
- oci/database_migration/models/update_oracle_aws_s3_data_transfer_medium_details.py +211 -0
- oci/database_migration/models/update_oracle_connection_details.py +354 -0
- oci/database_migration/models/update_oracle_data_transfer_medium_details.py +125 -0
- oci/database_migration/models/update_oracle_db_link_data_transfer_medium_details.py +111 -0
- oci/database_migration/models/update_oracle_ggs_deployment_details.py +126 -0
- oci/database_migration/models/update_oracle_initial_load_settings.py +239 -0
- oci/database_migration/models/update_oracle_migration_details.py +267 -0
- oci/database_migration/models/update_oracle_nfs_data_transfer_medium_details.py +163 -0
- oci/database_migration/models/update_oracle_object_storage_data_transfer_medium_details.py +132 -0
- oci/database_migration/models/update_replicat.py +3 -96
- oci/database_migration/models/update_target_defaults_auto_create_tablespace_details.py +1 -1
- oci/database_migration/models/update_target_defaults_remap_tablespace_details.py +1 -1
- oci/database_migration/models/update_target_type_tablespace_details.py +1 -1
- oci/database_migration/models/work_request.py +4 -12
- oci/database_migration/models/work_request_collection.py +1 -1
- oci/database_migration/models/work_request_error.py +1 -1
- oci/database_migration/models/work_request_error_collection.py +1 -1
- oci/database_migration/models/work_request_log_entry.py +1 -1
- oci/database_migration/models/work_request_log_entry_collection.py +1 -1
- oci/database_migration/models/work_request_resource.py +1 -1
- oci/database_migration/models/work_request_summary.py +1 -1
- oci/database_tools/database_tools_client.py +23 -23
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +116 -6
- oci/mysql/db_backups_client_composite_operations.py +39 -0
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +4 -0
- oci/mysql/models/backup.py +99 -2
- oci/mysql/models/backup_summary.py +126 -2
- oci/mysql/models/copy_backup_details.py +210 -0
- oci/mysql/models/db_system_snapshot.py +39 -2
- oci/mysql/models/db_system_snapshot_summary.py +140 -0
- oci/mysql/models/work_request.py +7 -3
- oci/mysql/models/work_request_summary.py +7 -3
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +25 -25
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/discovery_details.py +7 -3
- oci/stack_monitoring/models/discovery_job_summary.py +7 -3
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/METADATA +1 -1
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/RECORD +436 -366
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/WHEEL +0 -0
- {oci-2.128.1.dist-info → oci-2.129.0.dist-info}/top_level.txt +0 -0
@@ -2,7 +2,7 @@
|
|
2
2
|
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
4
|
|
5
|
-
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version:
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230518
|
6
6
|
|
7
7
|
from __future__ import absolute_import
|
8
8
|
|
@@ -99,7 +99,7 @@ class DatabaseMigrationClient(object):
|
|
99
99
|
base_client_init_kwargs = {
|
100
100
|
'regional_client': True,
|
101
101
|
'service_endpoint': kwargs.get('service_endpoint'),
|
102
|
-
'base_path': '/
|
102
|
+
'base_path': '/20230518',
|
103
103
|
'service_endpoint_template': 'https://odms.{region}.oci.{secondLevelDomain}',
|
104
104
|
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
105
105
|
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
@@ -158,14 +158,14 @@ class DatabaseMigrationClient(object):
|
|
158
158
|
:rtype: :class:`~oci.response.Response`
|
159
159
|
|
160
160
|
:example:
|
161
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
161
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/abort_job.py.html>`__ to see an example of how to use abort_job API.
|
162
162
|
"""
|
163
163
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
164
164
|
required_arguments = ['jobId']
|
165
165
|
resource_path = "/jobs/{jobId}/actions/abort"
|
166
166
|
method = "POST"
|
167
167
|
operation_name = "abort_job"
|
168
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
168
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob"
|
169
169
|
|
170
170
|
# Don't accept unknown kwargs
|
171
171
|
expected_kwargs = [
|
@@ -272,14 +272,14 @@ class DatabaseMigrationClient(object):
|
|
272
272
|
:rtype: :class:`~oci.response.Response`
|
273
273
|
|
274
274
|
:example:
|
275
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
275
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/add_migration_objects.py.html>`__ to see an example of how to use add_migration_objects API.
|
276
276
|
"""
|
277
277
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
278
278
|
required_arguments = ['migrationId']
|
279
279
|
resource_path = "/migrations/{migrationId}/actions/addMigrationObjects"
|
280
280
|
method = "POST"
|
281
281
|
operation_name = "add_migration_objects"
|
282
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
282
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects"
|
283
283
|
|
284
284
|
# Don't accept unknown kwargs
|
285
285
|
expected_kwargs = [
|
@@ -345,134 +345,13 @@ class DatabaseMigrationClient(object):
|
|
345
345
|
api_reference_link=api_reference_link,
|
346
346
|
required_arguments=required_arguments)
|
347
347
|
|
348
|
-
def change_agent_compartment(self, agent_id, change_agent_compartment_details, **kwargs):
|
349
|
-
"""
|
350
|
-
Used to configure an ODMS Agent Compartment ID.
|
351
|
-
|
352
|
-
|
353
|
-
:param str agent_id: (required)
|
354
|
-
The OCID of the agent
|
355
|
-
|
356
|
-
:param oci.database_migration.models.ChangeAgentCompartmentDetails change_agent_compartment_details: (required)
|
357
|
-
Details to change the compartment.
|
358
|
-
|
359
|
-
:param str opc_retry_token: (optional)
|
360
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
361
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
362
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
363
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
364
|
-
might be rejected.
|
365
|
-
|
366
|
-
:param str opc_request_id: (optional)
|
367
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
368
|
-
particular request, please provide the request ID.
|
369
|
-
|
370
|
-
:param str if_match: (optional)
|
371
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
372
|
-
for a resource, set the `if-match` parameter to the value of the
|
373
|
-
etag from a previous GET or POST response for that resource.
|
374
|
-
The resource will be updated or deleted only if the etag you
|
375
|
-
provide matches the resource's current etag value.
|
376
|
-
|
377
|
-
:param obj retry_strategy: (optional)
|
378
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
379
|
-
|
380
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
381
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
382
|
-
|
383
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
384
|
-
|
385
|
-
:param bool allow_control_chars: (optional)
|
386
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
387
|
-
By default, the response will not allow control characters in strings
|
388
|
-
|
389
|
-
:return: A :class:`~oci.response.Response` object with data of type None
|
390
|
-
:rtype: :class:`~oci.response.Response`
|
391
|
-
|
392
|
-
:example:
|
393
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/change_agent_compartment.py.html>`__ to see an example of how to use change_agent_compartment API.
|
394
|
-
"""
|
395
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
396
|
-
required_arguments = ['agentId']
|
397
|
-
resource_path = "/agents/{agentId}/actions/changeCompartment"
|
398
|
-
method = "POST"
|
399
|
-
operation_name = "change_agent_compartment"
|
400
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment"
|
401
|
-
|
402
|
-
# Don't accept unknown kwargs
|
403
|
-
expected_kwargs = [
|
404
|
-
"allow_control_chars",
|
405
|
-
"retry_strategy",
|
406
|
-
"opc_retry_token",
|
407
|
-
"opc_request_id",
|
408
|
-
"if_match"
|
409
|
-
]
|
410
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
411
|
-
if extra_kwargs:
|
412
|
-
raise ValueError(
|
413
|
-
f"change_agent_compartment got unknown kwargs: {extra_kwargs!r}")
|
414
|
-
|
415
|
-
path_params = {
|
416
|
-
"agentId": agent_id
|
417
|
-
}
|
418
|
-
|
419
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
420
|
-
|
421
|
-
for (k, v) in six.iteritems(path_params):
|
422
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
423
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
424
|
-
|
425
|
-
header_params = {
|
426
|
-
"accept": "application/json",
|
427
|
-
"content-type": "application/json",
|
428
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
429
|
-
"opc-request-id": kwargs.get("opc_request_id", missing),
|
430
|
-
"if-match": kwargs.get("if_match", missing)
|
431
|
-
}
|
432
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
433
|
-
|
434
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
435
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
436
|
-
client_retry_strategy=self.retry_strategy
|
437
|
-
)
|
438
|
-
if retry_strategy is None:
|
439
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
440
|
-
|
441
|
-
if retry_strategy:
|
442
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
443
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
444
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
445
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
446
|
-
return retry_strategy.make_retrying_call(
|
447
|
-
self.base_client.call_api,
|
448
|
-
resource_path=resource_path,
|
449
|
-
method=method,
|
450
|
-
path_params=path_params,
|
451
|
-
header_params=header_params,
|
452
|
-
body=change_agent_compartment_details,
|
453
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
454
|
-
operation_name=operation_name,
|
455
|
-
api_reference_link=api_reference_link,
|
456
|
-
required_arguments=required_arguments)
|
457
|
-
else:
|
458
|
-
return self.base_client.call_api(
|
459
|
-
resource_path=resource_path,
|
460
|
-
method=method,
|
461
|
-
path_params=path_params,
|
462
|
-
header_params=header_params,
|
463
|
-
body=change_agent_compartment_details,
|
464
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
465
|
-
operation_name=operation_name,
|
466
|
-
api_reference_link=api_reference_link,
|
467
|
-
required_arguments=required_arguments)
|
468
|
-
|
469
348
|
def change_connection_compartment(self, connection_id, change_connection_compartment_details, **kwargs):
|
470
349
|
"""
|
471
350
|
Used to change the Database Connection compartment.
|
472
351
|
|
473
352
|
|
474
353
|
:param str connection_id: (required)
|
475
|
-
The OCID of the database connection
|
354
|
+
The OCID of the database connection.
|
476
355
|
|
477
356
|
:param oci.database_migration.models.ChangeConnectionCompartmentDetails change_connection_compartment_details: (required)
|
478
357
|
Details to change the compartment.
|
@@ -511,14 +390,14 @@ class DatabaseMigrationClient(object):
|
|
511
390
|
:rtype: :class:`~oci.response.Response`
|
512
391
|
|
513
392
|
:example:
|
514
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
393
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/change_connection_compartment.py.html>`__ to see an example of how to use change_connection_compartment API.
|
515
394
|
"""
|
516
395
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
517
396
|
required_arguments = ['connectionId']
|
518
397
|
resource_path = "/connections/{connectionId}/actions/changeCompartment"
|
519
398
|
method = "POST"
|
520
399
|
operation_name = "change_connection_compartment"
|
521
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
400
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment"
|
522
401
|
|
523
402
|
# Don't accept unknown kwargs
|
524
403
|
expected_kwargs = [
|
@@ -632,14 +511,14 @@ class DatabaseMigrationClient(object):
|
|
632
511
|
:rtype: :class:`~oci.response.Response`
|
633
512
|
|
634
513
|
:example:
|
635
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
514
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/change_migration_compartment.py.html>`__ to see an example of how to use change_migration_compartment API.
|
636
515
|
"""
|
637
516
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
638
517
|
required_arguments = ['migrationId']
|
639
518
|
resource_path = "/migrations/{migrationId}/actions/changeCompartment"
|
640
519
|
method = "POST"
|
641
520
|
operation_name = "change_migration_compartment"
|
642
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
521
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment"
|
643
522
|
|
644
523
|
# Don't accept unknown kwargs
|
645
524
|
expected_kwargs = [
|
@@ -753,14 +632,14 @@ class DatabaseMigrationClient(object):
|
|
753
632
|
:rtype: :class:`~oci.response.Response`
|
754
633
|
|
755
634
|
:example:
|
756
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
635
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/clone_migration.py.html>`__ to see an example of how to use clone_migration API.
|
757
636
|
"""
|
758
637
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
759
638
|
required_arguments = ['migrationId']
|
760
639
|
resource_path = "/migrations/{migrationId}/actions/clone"
|
761
640
|
method = "POST"
|
762
641
|
operation_name = "clone_migration"
|
763
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
642
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration"
|
764
643
|
|
765
644
|
# Don't accept unknown kwargs
|
766
645
|
expected_kwargs = [
|
@@ -837,7 +716,7 @@ class DatabaseMigrationClient(object):
|
|
837
716
|
|
838
717
|
|
839
718
|
:param str connection_id: (required)
|
840
|
-
The OCID of the database connection
|
719
|
+
The OCID of the database connection.
|
841
720
|
|
842
721
|
:param str if_match: (optional)
|
843
722
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -873,14 +752,14 @@ class DatabaseMigrationClient(object):
|
|
873
752
|
:rtype: :class:`~oci.response.Response`
|
874
753
|
|
875
754
|
:example:
|
876
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
755
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/connection_diagnostics.py.html>`__ to see an example of how to use connection_diagnostics API.
|
877
756
|
"""
|
878
757
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
879
758
|
required_arguments = ['connectionId']
|
880
759
|
resource_path = "/connections/{connectionId}/actions/diagnostics"
|
881
760
|
method = "POST"
|
882
761
|
operation_name = "connection_diagnostics"
|
883
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
762
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics"
|
884
763
|
|
885
764
|
# Don't accept unknown kwargs
|
886
765
|
expected_kwargs = [
|
@@ -985,7 +864,7 @@ class DatabaseMigrationClient(object):
|
|
985
864
|
:rtype: :class:`~oci.response.Response`
|
986
865
|
|
987
866
|
:example:
|
988
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
867
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/create_connection.py.html>`__ to see an example of how to use create_connection API.
|
989
868
|
"""
|
990
869
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
991
870
|
required_arguments = []
|
@@ -1086,14 +965,14 @@ class DatabaseMigrationClient(object):
|
|
1086
965
|
:rtype: :class:`~oci.response.Response`
|
1087
966
|
|
1088
967
|
:example:
|
1089
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
968
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/create_migration.py.html>`__ to see an example of how to use create_migration API.
|
1090
969
|
"""
|
1091
970
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1092
971
|
required_arguments = []
|
1093
972
|
resource_path = "/migrations"
|
1094
973
|
method = "POST"
|
1095
974
|
operation_name = "create_migration"
|
1096
|
-
api_reference_link = ""
|
975
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration"
|
1097
976
|
|
1098
977
|
# Don't accept unknown kwargs
|
1099
978
|
expected_kwargs = [
|
@@ -1150,119 +1029,13 @@ class DatabaseMigrationClient(object):
|
|
1150
1029
|
api_reference_link=api_reference_link,
|
1151
1030
|
required_arguments=required_arguments)
|
1152
1031
|
|
1153
|
-
def delete_agent(self, agent_id, **kwargs):
|
1154
|
-
"""
|
1155
|
-
Delete the ODMS Agent represented by the specified ODMS Agent ID.
|
1156
|
-
|
1157
|
-
|
1158
|
-
:param str agent_id: (required)
|
1159
|
-
The OCID of the agent
|
1160
|
-
|
1161
|
-
:param str opc_request_id: (optional)
|
1162
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1163
|
-
particular request, please provide the request ID.
|
1164
|
-
|
1165
|
-
:param str if_match: (optional)
|
1166
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
1167
|
-
for a resource, set the `if-match` parameter to the value of the
|
1168
|
-
etag from a previous GET or POST response for that resource.
|
1169
|
-
The resource will be updated or deleted only if the etag you
|
1170
|
-
provide matches the resource's current etag value.
|
1171
|
-
|
1172
|
-
:param obj retry_strategy: (optional)
|
1173
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1174
|
-
|
1175
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1176
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1177
|
-
|
1178
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1179
|
-
|
1180
|
-
:param bool allow_control_chars: (optional)
|
1181
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1182
|
-
By default, the response will not allow control characters in strings
|
1183
|
-
|
1184
|
-
:return: A :class:`~oci.response.Response` object with data of type None
|
1185
|
-
:rtype: :class:`~oci.response.Response`
|
1186
|
-
|
1187
|
-
:example:
|
1188
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/delete_agent.py.html>`__ to see an example of how to use delete_agent API.
|
1189
|
-
"""
|
1190
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1191
|
-
required_arguments = ['agentId']
|
1192
|
-
resource_path = "/agents/{agentId}"
|
1193
|
-
method = "DELETE"
|
1194
|
-
operation_name = "delete_agent"
|
1195
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent"
|
1196
|
-
|
1197
|
-
# Don't accept unknown kwargs
|
1198
|
-
expected_kwargs = [
|
1199
|
-
"allow_control_chars",
|
1200
|
-
"retry_strategy",
|
1201
|
-
"opc_request_id",
|
1202
|
-
"if_match"
|
1203
|
-
]
|
1204
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1205
|
-
if extra_kwargs:
|
1206
|
-
raise ValueError(
|
1207
|
-
f"delete_agent got unknown kwargs: {extra_kwargs!r}")
|
1208
|
-
|
1209
|
-
path_params = {
|
1210
|
-
"agentId": agent_id
|
1211
|
-
}
|
1212
|
-
|
1213
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1214
|
-
|
1215
|
-
for (k, v) in six.iteritems(path_params):
|
1216
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1217
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1218
|
-
|
1219
|
-
header_params = {
|
1220
|
-
"accept": "application/json",
|
1221
|
-
"content-type": "application/json",
|
1222
|
-
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1223
|
-
"if-match": kwargs.get("if_match", missing)
|
1224
|
-
}
|
1225
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1226
|
-
|
1227
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1228
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1229
|
-
client_retry_strategy=self.retry_strategy
|
1230
|
-
)
|
1231
|
-
if retry_strategy is None:
|
1232
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1233
|
-
|
1234
|
-
if retry_strategy:
|
1235
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1236
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
1237
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1238
|
-
return retry_strategy.make_retrying_call(
|
1239
|
-
self.base_client.call_api,
|
1240
|
-
resource_path=resource_path,
|
1241
|
-
method=method,
|
1242
|
-
path_params=path_params,
|
1243
|
-
header_params=header_params,
|
1244
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
1245
|
-
operation_name=operation_name,
|
1246
|
-
api_reference_link=api_reference_link,
|
1247
|
-
required_arguments=required_arguments)
|
1248
|
-
else:
|
1249
|
-
return self.base_client.call_api(
|
1250
|
-
resource_path=resource_path,
|
1251
|
-
method=method,
|
1252
|
-
path_params=path_params,
|
1253
|
-
header_params=header_params,
|
1254
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
1255
|
-
operation_name=operation_name,
|
1256
|
-
api_reference_link=api_reference_link,
|
1257
|
-
required_arguments=required_arguments)
|
1258
|
-
|
1259
1032
|
def delete_connection(self, connection_id, **kwargs):
|
1260
1033
|
"""
|
1261
1034
|
Deletes the Database Connection represented by the specified connection ID.
|
1262
1035
|
|
1263
1036
|
|
1264
1037
|
:param str connection_id: (required)
|
1265
|
-
The OCID of the database connection
|
1038
|
+
The OCID of the database connection.
|
1266
1039
|
|
1267
1040
|
:param str opc_request_id: (optional)
|
1268
1041
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
@@ -1291,14 +1064,14 @@ class DatabaseMigrationClient(object):
|
|
1291
1064
|
:rtype: :class:`~oci.response.Response`
|
1292
1065
|
|
1293
1066
|
:example:
|
1294
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1067
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/delete_connection.py.html>`__ to see an example of how to use delete_connection API.
|
1295
1068
|
"""
|
1296
1069
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1297
1070
|
required_arguments = ['connectionId']
|
1298
1071
|
resource_path = "/connections/{connectionId}"
|
1299
1072
|
method = "DELETE"
|
1300
1073
|
operation_name = "delete_connection"
|
1301
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1074
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection"
|
1302
1075
|
|
1303
1076
|
# Don't accept unknown kwargs
|
1304
1077
|
expected_kwargs = [
|
@@ -1397,14 +1170,14 @@ class DatabaseMigrationClient(object):
|
|
1397
1170
|
:rtype: :class:`~oci.response.Response`
|
1398
1171
|
|
1399
1172
|
:example:
|
1400
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1173
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/delete_job.py.html>`__ to see an example of how to use delete_job API.
|
1401
1174
|
"""
|
1402
1175
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1403
1176
|
required_arguments = ['jobId']
|
1404
1177
|
resource_path = "/jobs/{jobId}"
|
1405
1178
|
method = "DELETE"
|
1406
1179
|
operation_name = "delete_job"
|
1407
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1180
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob"
|
1408
1181
|
|
1409
1182
|
# Don't accept unknown kwargs
|
1410
1183
|
expected_kwargs = [
|
@@ -1503,14 +1276,14 @@ class DatabaseMigrationClient(object):
|
|
1503
1276
|
:rtype: :class:`~oci.response.Response`
|
1504
1277
|
|
1505
1278
|
:example:
|
1506
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1279
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/delete_migration.py.html>`__ to see an example of how to use delete_migration API.
|
1507
1280
|
"""
|
1508
1281
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1509
1282
|
required_arguments = ['migrationId']
|
1510
1283
|
resource_path = "/migrations/{migrationId}"
|
1511
1284
|
method = "DELETE"
|
1512
1285
|
operation_name = "delete_migration"
|
1513
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1286
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration"
|
1514
1287
|
|
1515
1288
|
# Don't accept unknown kwargs
|
1516
1289
|
expected_kwargs = [
|
@@ -1616,14 +1389,14 @@ class DatabaseMigrationClient(object):
|
|
1616
1389
|
:rtype: :class:`~oci.response.Response`
|
1617
1390
|
|
1618
1391
|
:example:
|
1619
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1392
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/evaluate_migration.py.html>`__ to see an example of how to use evaluate_migration API.
|
1620
1393
|
"""
|
1621
1394
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1622
1395
|
required_arguments = ['migrationId']
|
1623
1396
|
resource_path = "/migrations/{migrationId}/actions/validate"
|
1624
1397
|
method = "POST"
|
1625
1398
|
operation_name = "evaluate_migration"
|
1626
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1399
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration"
|
1627
1400
|
|
1628
1401
|
# Don't accept unknown kwargs
|
1629
1402
|
expected_kwargs = [
|
@@ -1720,14 +1493,14 @@ class DatabaseMigrationClient(object):
|
|
1720
1493
|
:rtype: :class:`~oci.response.Response`
|
1721
1494
|
|
1722
1495
|
:example:
|
1723
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1496
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_advisor_report.py.html>`__ to see an example of how to use get_advisor_report API.
|
1724
1497
|
"""
|
1725
1498
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1726
1499
|
required_arguments = ['jobId']
|
1727
1500
|
resource_path = "/jobs/{jobId}/advisorReport"
|
1728
1501
|
method = "GET"
|
1729
1502
|
operation_name = "get_advisor_report"
|
1730
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1503
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport"
|
1731
1504
|
|
1732
1505
|
# Don't accept unknown kwargs
|
1733
1506
|
expected_kwargs = [
|
@@ -1791,112 +1564,13 @@ class DatabaseMigrationClient(object):
|
|
1791
1564
|
api_reference_link=api_reference_link,
|
1792
1565
|
required_arguments=required_arguments)
|
1793
1566
|
|
1794
|
-
def get_agent(self, agent_id, **kwargs):
|
1795
|
-
"""
|
1796
|
-
Display the ODMS Agent configuration.
|
1797
|
-
|
1798
|
-
|
1799
|
-
:param str agent_id: (required)
|
1800
|
-
The OCID of the agent
|
1801
|
-
|
1802
|
-
:param str opc_request_id: (optional)
|
1803
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1804
|
-
particular request, please provide the request ID.
|
1805
|
-
|
1806
|
-
:param obj retry_strategy: (optional)
|
1807
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1808
|
-
|
1809
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1810
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1811
|
-
|
1812
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1813
|
-
|
1814
|
-
:param bool allow_control_chars: (optional)
|
1815
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1816
|
-
By default, the response will not allow control characters in strings
|
1817
|
-
|
1818
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Agent`
|
1819
|
-
:rtype: :class:`~oci.response.Response`
|
1820
|
-
|
1821
|
-
:example:
|
1822
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/get_agent.py.html>`__ to see an example of how to use get_agent API.
|
1823
|
-
"""
|
1824
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1825
|
-
required_arguments = ['agentId']
|
1826
|
-
resource_path = "/agents/{agentId}"
|
1827
|
-
method = "GET"
|
1828
|
-
operation_name = "get_agent"
|
1829
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent"
|
1830
|
-
|
1831
|
-
# Don't accept unknown kwargs
|
1832
|
-
expected_kwargs = [
|
1833
|
-
"allow_control_chars",
|
1834
|
-
"retry_strategy",
|
1835
|
-
"opc_request_id"
|
1836
|
-
]
|
1837
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1838
|
-
if extra_kwargs:
|
1839
|
-
raise ValueError(
|
1840
|
-
f"get_agent got unknown kwargs: {extra_kwargs!r}")
|
1841
|
-
|
1842
|
-
path_params = {
|
1843
|
-
"agentId": agent_id
|
1844
|
-
}
|
1845
|
-
|
1846
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1847
|
-
|
1848
|
-
for (k, v) in six.iteritems(path_params):
|
1849
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1850
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1851
|
-
|
1852
|
-
header_params = {
|
1853
|
-
"accept": "application/json",
|
1854
|
-
"content-type": "application/json",
|
1855
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1856
|
-
}
|
1857
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1858
|
-
|
1859
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1860
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1861
|
-
client_retry_strategy=self.retry_strategy
|
1862
|
-
)
|
1863
|
-
if retry_strategy is None:
|
1864
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1865
|
-
|
1866
|
-
if retry_strategy:
|
1867
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1868
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
1869
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1870
|
-
return retry_strategy.make_retrying_call(
|
1871
|
-
self.base_client.call_api,
|
1872
|
-
resource_path=resource_path,
|
1873
|
-
method=method,
|
1874
|
-
path_params=path_params,
|
1875
|
-
header_params=header_params,
|
1876
|
-
response_type="Agent",
|
1877
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
1878
|
-
operation_name=operation_name,
|
1879
|
-
api_reference_link=api_reference_link,
|
1880
|
-
required_arguments=required_arguments)
|
1881
|
-
else:
|
1882
|
-
return self.base_client.call_api(
|
1883
|
-
resource_path=resource_path,
|
1884
|
-
method=method,
|
1885
|
-
path_params=path_params,
|
1886
|
-
header_params=header_params,
|
1887
|
-
response_type="Agent",
|
1888
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
1889
|
-
operation_name=operation_name,
|
1890
|
-
api_reference_link=api_reference_link,
|
1891
|
-
required_arguments=required_arguments)
|
1892
|
-
|
1893
1567
|
def get_connection(self, connection_id, **kwargs):
|
1894
1568
|
"""
|
1895
1569
|
Display Database Connection details.
|
1896
1570
|
|
1897
1571
|
|
1898
1572
|
:param str connection_id: (required)
|
1899
|
-
The OCID of the database connection
|
1573
|
+
The OCID of the database connection.
|
1900
1574
|
|
1901
1575
|
:param str opc_request_id: (optional)
|
1902
1576
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
@@ -1918,14 +1592,14 @@ class DatabaseMigrationClient(object):
|
|
1918
1592
|
:rtype: :class:`~oci.response.Response`
|
1919
1593
|
|
1920
1594
|
:example:
|
1921
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1595
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_connection.py.html>`__ to see an example of how to use get_connection API.
|
1922
1596
|
"""
|
1923
1597
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1924
1598
|
required_arguments = ['connectionId']
|
1925
1599
|
resource_path = "/connections/{connectionId}"
|
1926
1600
|
method = "GET"
|
1927
1601
|
operation_name = "get_connection"
|
1928
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1602
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection"
|
1929
1603
|
|
1930
1604
|
# Don't accept unknown kwargs
|
1931
1605
|
expected_kwargs = [
|
@@ -2017,14 +1691,14 @@ class DatabaseMigrationClient(object):
|
|
2017
1691
|
:rtype: :class:`~oci.response.Response`
|
2018
1692
|
|
2019
1693
|
:example:
|
2020
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1694
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_job.py.html>`__ to see an example of how to use get_job API.
|
2021
1695
|
"""
|
2022
1696
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2023
1697
|
required_arguments = ['jobId']
|
2024
1698
|
resource_path = "/jobs/{jobId}"
|
2025
1699
|
method = "GET"
|
2026
1700
|
operation_name = "get_job"
|
2027
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1701
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob"
|
2028
1702
|
|
2029
1703
|
# Don't accept unknown kwargs
|
2030
1704
|
expected_kwargs = [
|
@@ -2116,14 +1790,14 @@ class DatabaseMigrationClient(object):
|
|
2116
1790
|
:rtype: :class:`~oci.response.Response`
|
2117
1791
|
|
2118
1792
|
:example:
|
2119
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1793
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_job_output_content.py.html>`__ to see an example of how to use get_job_output_content API.
|
2120
1794
|
"""
|
2121
1795
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2122
1796
|
required_arguments = ['jobId']
|
2123
1797
|
resource_path = "/jobs/{jobId}/output/content"
|
2124
1798
|
method = "GET"
|
2125
1799
|
operation_name = "get_job_output_content"
|
2126
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1800
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent"
|
2127
1801
|
|
2128
1802
|
# Don't accept unknown kwargs
|
2129
1803
|
expected_kwargs = [
|
@@ -2191,229 +1865,21 @@ class DatabaseMigrationClient(object):
|
|
2191
1865
|
"""
|
2192
1866
|
Display Migration details.
|
2193
1867
|
|
2194
|
-
|
2195
|
-
:param str migration_id: (required)
|
2196
|
-
The OCID of the migration
|
2197
|
-
|
2198
|
-
:param str opc_request_id: (optional)
|
2199
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2200
|
-
particular request, please provide the request ID.
|
2201
|
-
|
2202
|
-
:param str if_match: (optional)
|
2203
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
2204
|
-
for a resource, set the `if-match` parameter to the value of the
|
2205
|
-
etag from a previous GET or POST response for that resource.
|
2206
|
-
The resource will be updated or deleted only if the etag you
|
2207
|
-
provide matches the resource's current etag value.
|
2208
|
-
|
2209
|
-
:param obj retry_strategy: (optional)
|
2210
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2211
|
-
|
2212
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2213
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2214
|
-
|
2215
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2216
|
-
|
2217
|
-
:param bool allow_control_chars: (optional)
|
2218
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2219
|
-
By default, the response will not allow control characters in strings
|
2220
|
-
|
2221
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Migration`
|
2222
|
-
:rtype: :class:`~oci.response.Response`
|
2223
|
-
|
2224
|
-
:example:
|
2225
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/get_migration.py.html>`__ to see an example of how to use get_migration API.
|
2226
|
-
"""
|
2227
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2228
|
-
required_arguments = ['migrationId']
|
2229
|
-
resource_path = "/migrations/{migrationId}"
|
2230
|
-
method = "GET"
|
2231
|
-
operation_name = "get_migration"
|
2232
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration"
|
2233
|
-
|
2234
|
-
# Don't accept unknown kwargs
|
2235
|
-
expected_kwargs = [
|
2236
|
-
"allow_control_chars",
|
2237
|
-
"retry_strategy",
|
2238
|
-
"opc_request_id",
|
2239
|
-
"if_match"
|
2240
|
-
]
|
2241
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2242
|
-
if extra_kwargs:
|
2243
|
-
raise ValueError(
|
2244
|
-
f"get_migration got unknown kwargs: {extra_kwargs!r}")
|
2245
|
-
|
2246
|
-
path_params = {
|
2247
|
-
"migrationId": migration_id
|
2248
|
-
}
|
2249
|
-
|
2250
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2251
|
-
|
2252
|
-
for (k, v) in six.iteritems(path_params):
|
2253
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2254
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2255
|
-
|
2256
|
-
header_params = {
|
2257
|
-
"accept": "application/json",
|
2258
|
-
"content-type": "application/json",
|
2259
|
-
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2260
|
-
"if-match": kwargs.get("if_match", missing)
|
2261
|
-
}
|
2262
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2263
|
-
|
2264
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2265
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2266
|
-
client_retry_strategy=self.retry_strategy
|
2267
|
-
)
|
2268
|
-
if retry_strategy is None:
|
2269
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2270
|
-
|
2271
|
-
if retry_strategy:
|
2272
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2273
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
2274
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2275
|
-
return retry_strategy.make_retrying_call(
|
2276
|
-
self.base_client.call_api,
|
2277
|
-
resource_path=resource_path,
|
2278
|
-
method=method,
|
2279
|
-
path_params=path_params,
|
2280
|
-
header_params=header_params,
|
2281
|
-
response_type="Migration",
|
2282
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
2283
|
-
operation_name=operation_name,
|
2284
|
-
api_reference_link=api_reference_link,
|
2285
|
-
required_arguments=required_arguments)
|
2286
|
-
else:
|
2287
|
-
return self.base_client.call_api(
|
2288
|
-
resource_path=resource_path,
|
2289
|
-
method=method,
|
2290
|
-
path_params=path_params,
|
2291
|
-
header_params=header_params,
|
2292
|
-
response_type="Migration",
|
2293
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
2294
|
-
operation_name=operation_name,
|
2295
|
-
api_reference_link=api_reference_link,
|
2296
|
-
required_arguments=required_arguments)
|
2297
|
-
|
2298
|
-
def get_work_request(self, work_request_id, **kwargs):
|
2299
|
-
"""
|
2300
|
-
Gets the details of a work request.
|
2301
|
-
|
2302
|
-
|
2303
|
-
:param str work_request_id: (required)
|
2304
|
-
The ID of the asynchronous request.
|
2305
|
-
|
2306
|
-
:param str opc_request_id: (optional)
|
2307
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2308
|
-
particular request, please provide the request ID.
|
2309
|
-
|
2310
|
-
:param obj retry_strategy: (optional)
|
2311
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2312
|
-
|
2313
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2314
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2315
|
-
|
2316
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2317
|
-
|
2318
|
-
:param bool allow_control_chars: (optional)
|
2319
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2320
|
-
By default, the response will not allow control characters in strings
|
2321
|
-
|
2322
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequest`
|
2323
|
-
:rtype: :class:`~oci.response.Response`
|
2324
|
-
|
2325
|
-
:example:
|
2326
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
2327
|
-
"""
|
2328
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2329
|
-
required_arguments = ['workRequestId']
|
2330
|
-
resource_path = "/workRequests/{workRequestId}"
|
2331
|
-
method = "GET"
|
2332
|
-
operation_name = "get_work_request"
|
2333
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest"
|
2334
|
-
|
2335
|
-
# Don't accept unknown kwargs
|
2336
|
-
expected_kwargs = [
|
2337
|
-
"allow_control_chars",
|
2338
|
-
"retry_strategy",
|
2339
|
-
"opc_request_id"
|
2340
|
-
]
|
2341
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2342
|
-
if extra_kwargs:
|
2343
|
-
raise ValueError(
|
2344
|
-
f"get_work_request got unknown kwargs: {extra_kwargs!r}")
|
2345
|
-
|
2346
|
-
path_params = {
|
2347
|
-
"workRequestId": work_request_id
|
2348
|
-
}
|
2349
|
-
|
2350
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2351
|
-
|
2352
|
-
for (k, v) in six.iteritems(path_params):
|
2353
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2354
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2355
|
-
|
2356
|
-
header_params = {
|
2357
|
-
"accept": "application/json",
|
2358
|
-
"content-type": "application/json",
|
2359
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2360
|
-
}
|
2361
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2362
|
-
|
2363
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2364
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2365
|
-
client_retry_strategy=self.retry_strategy
|
2366
|
-
)
|
2367
|
-
if retry_strategy is None:
|
2368
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2369
|
-
|
2370
|
-
if retry_strategy:
|
2371
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2372
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
2373
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2374
|
-
return retry_strategy.make_retrying_call(
|
2375
|
-
self.base_client.call_api,
|
2376
|
-
resource_path=resource_path,
|
2377
|
-
method=method,
|
2378
|
-
path_params=path_params,
|
2379
|
-
header_params=header_params,
|
2380
|
-
response_type="WorkRequest",
|
2381
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
2382
|
-
operation_name=operation_name,
|
2383
|
-
api_reference_link=api_reference_link,
|
2384
|
-
required_arguments=required_arguments)
|
2385
|
-
else:
|
2386
|
-
return self.base_client.call_api(
|
2387
|
-
resource_path=resource_path,
|
2388
|
-
method=method,
|
2389
|
-
path_params=path_params,
|
2390
|
-
header_params=header_params,
|
2391
|
-
response_type="WorkRequest",
|
2392
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
2393
|
-
operation_name=operation_name,
|
2394
|
-
api_reference_link=api_reference_link,
|
2395
|
-
required_arguments=required_arguments)
|
2396
|
-
|
2397
|
-
def list_agent_images(self, **kwargs):
|
2398
|
-
"""
|
2399
|
-
Get details of the ODMS Agent Images available to install on-premises.
|
2400
|
-
|
2401
|
-
|
2402
|
-
:param int limit: (optional)
|
2403
|
-
The maximum number of items to return.
|
2404
|
-
|
2405
|
-
:param str page: (optional)
|
2406
|
-
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
2407
|
-
|
2408
|
-
:param str sort_order: (optional)
|
2409
|
-
The sort order to use, either 'asc' or 'desc'.
|
2410
|
-
|
2411
|
-
Allowed values are: "ASC", "DESC"
|
1868
|
+
|
1869
|
+
:param str migration_id: (required)
|
1870
|
+
The OCID of the migration
|
2412
1871
|
|
2413
1872
|
:param str opc_request_id: (optional)
|
2414
1873
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2415
1874
|
particular request, please provide the request ID.
|
2416
1875
|
|
1876
|
+
:param str if_match: (optional)
|
1877
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1878
|
+
for a resource, set the `if-match` parameter to the value of the
|
1879
|
+
etag from a previous GET or POST response for that resource.
|
1880
|
+
The resource will be updated or deleted only if the etag you
|
1881
|
+
provide matches the resource's current etag value.
|
1882
|
+
|
2417
1883
|
:param obj retry_strategy: (optional)
|
2418
1884
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2419
1885
|
|
@@ -2426,51 +1892,46 @@ class DatabaseMigrationClient(object):
|
|
2426
1892
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2427
1893
|
By default, the response will not allow control characters in strings
|
2428
1894
|
|
2429
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.
|
1895
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Migration`
|
2430
1896
|
:rtype: :class:`~oci.response.Response`
|
2431
1897
|
|
2432
1898
|
:example:
|
2433
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1899
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_migration.py.html>`__ to see an example of how to use get_migration API.
|
2434
1900
|
"""
|
2435
1901
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2436
|
-
required_arguments = []
|
2437
|
-
resource_path = "/
|
1902
|
+
required_arguments = ['migrationId']
|
1903
|
+
resource_path = "/migrations/{migrationId}"
|
2438
1904
|
method = "GET"
|
2439
|
-
operation_name = "
|
2440
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
1905
|
+
operation_name = "get_migration"
|
1906
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration"
|
2441
1907
|
|
2442
1908
|
# Don't accept unknown kwargs
|
2443
1909
|
expected_kwargs = [
|
2444
1910
|
"allow_control_chars",
|
2445
1911
|
"retry_strategy",
|
2446
|
-
"
|
2447
|
-
"
|
2448
|
-
"sort_order",
|
2449
|
-
"opc_request_id"
|
1912
|
+
"opc_request_id",
|
1913
|
+
"if_match"
|
2450
1914
|
]
|
2451
1915
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2452
1916
|
if extra_kwargs:
|
2453
1917
|
raise ValueError(
|
2454
|
-
f"
|
2455
|
-
|
2456
|
-
if 'sort_order' in kwargs:
|
2457
|
-
sort_order_allowed_values = ["ASC", "DESC"]
|
2458
|
-
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2459
|
-
raise ValueError(
|
2460
|
-
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2461
|
-
)
|
1918
|
+
f"get_migration got unknown kwargs: {extra_kwargs!r}")
|
2462
1919
|
|
2463
|
-
|
2464
|
-
"
|
2465
|
-
"page": kwargs.get("page", missing),
|
2466
|
-
"sortOrder": kwargs.get("sort_order", missing)
|
1920
|
+
path_params = {
|
1921
|
+
"migrationId": migration_id
|
2467
1922
|
}
|
2468
|
-
|
1923
|
+
|
1924
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1925
|
+
|
1926
|
+
for (k, v) in six.iteritems(path_params):
|
1927
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1928
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2469
1929
|
|
2470
1930
|
header_params = {
|
2471
1931
|
"accept": "application/json",
|
2472
1932
|
"content-type": "application/json",
|
2473
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1933
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1934
|
+
"if-match": kwargs.get("if_match", missing)
|
2474
1935
|
}
|
2475
1936
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2476
1937
|
|
@@ -2489,9 +1950,9 @@ class DatabaseMigrationClient(object):
|
|
2489
1950
|
self.base_client.call_api,
|
2490
1951
|
resource_path=resource_path,
|
2491
1952
|
method=method,
|
2492
|
-
|
1953
|
+
path_params=path_params,
|
2493
1954
|
header_params=header_params,
|
2494
|
-
response_type="
|
1955
|
+
response_type="Migration",
|
2495
1956
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2496
1957
|
operation_name=operation_name,
|
2497
1958
|
api_reference_link=api_reference_link,
|
@@ -2500,46 +1961,21 @@ class DatabaseMigrationClient(object):
|
|
2500
1961
|
return self.base_client.call_api(
|
2501
1962
|
resource_path=resource_path,
|
2502
1963
|
method=method,
|
2503
|
-
|
1964
|
+
path_params=path_params,
|
2504
1965
|
header_params=header_params,
|
2505
|
-
response_type="
|
1966
|
+
response_type="Migration",
|
2506
1967
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2507
1968
|
operation_name=operation_name,
|
2508
1969
|
api_reference_link=api_reference_link,
|
2509
1970
|
required_arguments=required_arguments)
|
2510
1971
|
|
2511
|
-
def
|
1972
|
+
def get_work_request(self, work_request_id, **kwargs):
|
2512
1973
|
"""
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
:param str compartment_id: (required)
|
2517
|
-
The ID of the compartment in which to list resources.
|
2518
|
-
|
2519
|
-
:param int limit: (optional)
|
2520
|
-
The maximum number of items to return.
|
2521
|
-
|
2522
|
-
:param str page: (optional)
|
2523
|
-
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
2524
|
-
|
2525
|
-
:param str sort_by: (optional)
|
2526
|
-
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
|
2527
|
-
Default order for displayName is ascending. If no value is specified timeCreated is default.
|
2528
|
-
|
2529
|
-
Allowed values are: "timeCreated", "displayName"
|
2530
|
-
|
2531
|
-
:param str sort_order: (optional)
|
2532
|
-
The sort order to use, either 'asc' or 'desc'.
|
2533
|
-
|
2534
|
-
Allowed values are: "ASC", "DESC"
|
2535
|
-
|
2536
|
-
:param str display_name: (optional)
|
2537
|
-
A filter to return only resources that match the entire display name given.
|
1974
|
+
Gets the details of a work request.
|
2538
1975
|
|
2539
|
-
:param str lifecycle_state: (optional)
|
2540
|
-
The current state of the Database Migration Deployment.
|
2541
1976
|
|
2542
|
-
|
1977
|
+
:param str work_request_id: (required)
|
1978
|
+
The ID of the asynchronous request.
|
2543
1979
|
|
2544
1980
|
:param str opc_request_id: (optional)
|
2545
1981
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
@@ -2557,67 +1993,39 @@ class DatabaseMigrationClient(object):
|
|
2557
1993
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2558
1994
|
By default, the response will not allow control characters in strings
|
2559
1995
|
|
2560
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.
|
1996
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequest`
|
2561
1997
|
:rtype: :class:`~oci.response.Response`
|
2562
1998
|
|
2563
1999
|
:example:
|
2564
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2000
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
2565
2001
|
"""
|
2566
2002
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2567
|
-
required_arguments = ['
|
2568
|
-
resource_path = "/
|
2003
|
+
required_arguments = ['workRequestId']
|
2004
|
+
resource_path = "/workRequests/{workRequestId}"
|
2569
2005
|
method = "GET"
|
2570
|
-
operation_name = "
|
2571
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2006
|
+
operation_name = "get_work_request"
|
2007
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest"
|
2572
2008
|
|
2573
2009
|
# Don't accept unknown kwargs
|
2574
2010
|
expected_kwargs = [
|
2575
2011
|
"allow_control_chars",
|
2576
2012
|
"retry_strategy",
|
2577
|
-
"limit",
|
2578
|
-
"page",
|
2579
|
-
"sort_by",
|
2580
|
-
"sort_order",
|
2581
|
-
"display_name",
|
2582
|
-
"lifecycle_state",
|
2583
2013
|
"opc_request_id"
|
2584
2014
|
]
|
2585
2015
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2586
2016
|
if extra_kwargs:
|
2587
2017
|
raise ValueError(
|
2588
|
-
f"
|
2589
|
-
|
2590
|
-
if 'sort_by' in kwargs:
|
2591
|
-
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2592
|
-
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2593
|
-
raise ValueError(
|
2594
|
-
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2595
|
-
)
|
2018
|
+
f"get_work_request got unknown kwargs: {extra_kwargs!r}")
|
2596
2019
|
|
2597
|
-
|
2598
|
-
|
2599
|
-
|
2600
|
-
raise ValueError(
|
2601
|
-
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2602
|
-
)
|
2020
|
+
path_params = {
|
2021
|
+
"workRequestId": work_request_id
|
2022
|
+
}
|
2603
2023
|
|
2604
|
-
|
2605
|
-
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
|
2606
|
-
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
2607
|
-
raise ValueError(
|
2608
|
-
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
2609
|
-
)
|
2024
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2610
2025
|
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
"page": kwargs.get("page", missing),
|
2615
|
-
"sortBy": kwargs.get("sort_by", missing),
|
2616
|
-
"sortOrder": kwargs.get("sort_order", missing),
|
2617
|
-
"displayName": kwargs.get("display_name", missing),
|
2618
|
-
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
2619
|
-
}
|
2620
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2026
|
+
for (k, v) in six.iteritems(path_params):
|
2027
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2028
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2621
2029
|
|
2622
2030
|
header_params = {
|
2623
2031
|
"accept": "application/json",
|
@@ -2641,9 +2049,9 @@ class DatabaseMigrationClient(object):
|
|
2641
2049
|
self.base_client.call_api,
|
2642
2050
|
resource_path=resource_path,
|
2643
2051
|
method=method,
|
2644
|
-
|
2052
|
+
path_params=path_params,
|
2645
2053
|
header_params=header_params,
|
2646
|
-
response_type="
|
2054
|
+
response_type="WorkRequest",
|
2647
2055
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2648
2056
|
operation_name=operation_name,
|
2649
2057
|
api_reference_link=api_reference_link,
|
@@ -2652,9 +2060,9 @@ class DatabaseMigrationClient(object):
|
|
2652
2060
|
return self.base_client.call_api(
|
2653
2061
|
resource_path=resource_path,
|
2654
2062
|
method=method,
|
2655
|
-
|
2063
|
+
path_params=path_params,
|
2656
2064
|
header_params=header_params,
|
2657
|
-
response_type="
|
2065
|
+
response_type="WorkRequest",
|
2658
2066
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2659
2067
|
operation_name=operation_name,
|
2660
2068
|
api_reference_link=api_reference_link,
|
@@ -2672,6 +2080,19 @@ class DatabaseMigrationClient(object):
|
|
2672
2080
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2673
2081
|
particular request, please provide the request ID.
|
2674
2082
|
|
2083
|
+
:param list[str] technology_type: (optional)
|
2084
|
+
The array of technology types.
|
2085
|
+
|
2086
|
+
Allowed values are: "OCI_AUTONOMOUS_DATABASE", "OCI_MYSQL", "ORACLE_DATABASE", "ORACLE_EXADATA", "AMAZON_RDS_ORACLE", "AMAZON_AURORA_MYSQL", "AMAZON_RDS_MYSQL", "AZURE_MYSQL", "GOOGLE_CLOUD_SQL_MYSQL", "MYSQL_SERVER"
|
2087
|
+
|
2088
|
+
:param list[str] connection_type: (optional)
|
2089
|
+
The array of connection types.
|
2090
|
+
|
2091
|
+
Allowed values are: "MYSQL", "ORACLE"
|
2092
|
+
|
2093
|
+
:param str source_connection_id: (optional)
|
2094
|
+
The OCID of the source database connection.
|
2095
|
+
|
2675
2096
|
:param str display_name: (optional)
|
2676
2097
|
A filter to return only resources that match the entire display name given.
|
2677
2098
|
|
@@ -2713,20 +2134,23 @@ class DatabaseMigrationClient(object):
|
|
2713
2134
|
:rtype: :class:`~oci.response.Response`
|
2714
2135
|
|
2715
2136
|
:example:
|
2716
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2137
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_connections.py.html>`__ to see an example of how to use list_connections API.
|
2717
2138
|
"""
|
2718
2139
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2719
2140
|
required_arguments = ['compartmentId']
|
2720
2141
|
resource_path = "/connections"
|
2721
2142
|
method = "GET"
|
2722
2143
|
operation_name = "list_connections"
|
2723
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2144
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections"
|
2724
2145
|
|
2725
2146
|
# Don't accept unknown kwargs
|
2726
2147
|
expected_kwargs = [
|
2727
2148
|
"allow_control_chars",
|
2728
2149
|
"retry_strategy",
|
2729
2150
|
"opc_request_id",
|
2151
|
+
"technology_type",
|
2152
|
+
"connection_type",
|
2153
|
+
"source_connection_id",
|
2730
2154
|
"display_name",
|
2731
2155
|
"limit",
|
2732
2156
|
"page",
|
@@ -2739,6 +2163,22 @@ class DatabaseMigrationClient(object):
|
|
2739
2163
|
raise ValueError(
|
2740
2164
|
f"list_connections got unknown kwargs: {extra_kwargs!r}")
|
2741
2165
|
|
2166
|
+
if 'technology_type' in kwargs:
|
2167
|
+
technology_type_allowed_values = ["OCI_AUTONOMOUS_DATABASE", "OCI_MYSQL", "ORACLE_DATABASE", "ORACLE_EXADATA", "AMAZON_RDS_ORACLE", "AMAZON_AURORA_MYSQL", "AMAZON_RDS_MYSQL", "AZURE_MYSQL", "GOOGLE_CLOUD_SQL_MYSQL", "MYSQL_SERVER"]
|
2168
|
+
for technology_type_item in kwargs['technology_type']:
|
2169
|
+
if technology_type_item not in technology_type_allowed_values:
|
2170
|
+
raise ValueError(
|
2171
|
+
f"Invalid value for `technology_type`, must be one of { technology_type_allowed_values }"
|
2172
|
+
)
|
2173
|
+
|
2174
|
+
if 'connection_type' in kwargs:
|
2175
|
+
connection_type_allowed_values = ["MYSQL", "ORACLE"]
|
2176
|
+
for connection_type_item in kwargs['connection_type']:
|
2177
|
+
if connection_type_item not in connection_type_allowed_values:
|
2178
|
+
raise ValueError(
|
2179
|
+
f"Invalid value for `connection_type`, must be one of { connection_type_allowed_values }"
|
2180
|
+
)
|
2181
|
+
|
2742
2182
|
if 'sort_by' in kwargs:
|
2743
2183
|
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2744
2184
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
@@ -2762,6 +2202,9 @@ class DatabaseMigrationClient(object):
|
|
2762
2202
|
|
2763
2203
|
query_params = {
|
2764
2204
|
"compartmentId": compartment_id,
|
2205
|
+
"technologyType": self.base_client.generate_collection_format_param(kwargs.get("technology_type", missing), 'multi'),
|
2206
|
+
"connectionType": self.base_client.generate_collection_format_param(kwargs.get("connection_type", missing), 'multi'),
|
2207
|
+
"sourceConnectionId": kwargs.get("source_connection_id", missing),
|
2765
2208
|
"displayName": kwargs.get("display_name", missing),
|
2766
2209
|
"limit": kwargs.get("limit", missing),
|
2767
2210
|
"page": kwargs.get("page", missing),
|
@@ -2881,14 +2324,14 @@ class DatabaseMigrationClient(object):
|
|
2881
2324
|
:rtype: :class:`~oci.response.Response`
|
2882
2325
|
|
2883
2326
|
:example:
|
2884
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2327
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_excluded_objects.py.html>`__ to see an example of how to use list_excluded_objects API.
|
2885
2328
|
"""
|
2886
2329
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2887
2330
|
required_arguments = ['jobId']
|
2888
2331
|
resource_path = "/jobs/{jobId}/excludedObjects"
|
2889
2332
|
method = "GET"
|
2890
2333
|
operation_name = "list_excluded_objects"
|
2891
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2334
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects"
|
2892
2335
|
|
2893
2336
|
# Don't accept unknown kwargs
|
2894
2337
|
expected_kwargs = [
|
@@ -3035,14 +2478,14 @@ class DatabaseMigrationClient(object):
|
|
3035
2478
|
:rtype: :class:`~oci.response.Response`
|
3036
2479
|
|
3037
2480
|
:example:
|
3038
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2481
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_job_outputs.py.html>`__ to see an example of how to use list_job_outputs API.
|
3039
2482
|
"""
|
3040
2483
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3041
2484
|
required_arguments = ['jobId']
|
3042
2485
|
resource_path = "/jobs/{jobId}/output"
|
3043
2486
|
method = "GET"
|
3044
2487
|
operation_name = "list_job_outputs"
|
3045
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2488
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs"
|
3046
2489
|
|
3047
2490
|
# Don't accept unknown kwargs
|
3048
2491
|
expected_kwargs = [
|
@@ -3170,14 +2613,14 @@ class DatabaseMigrationClient(object):
|
|
3170
2613
|
:rtype: :class:`~oci.response.Response`
|
3171
2614
|
|
3172
2615
|
:example:
|
3173
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2616
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_jobs.py.html>`__ to see an example of how to use list_jobs API.
|
3174
2617
|
"""
|
3175
2618
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3176
2619
|
required_arguments = ['migrationId']
|
3177
2620
|
resource_path = "/jobs"
|
3178
2621
|
method = "GET"
|
3179
2622
|
operation_name = "list_jobs"
|
3180
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2623
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs"
|
3181
2624
|
|
3182
2625
|
# Don't accept unknown kwargs
|
3183
2626
|
expected_kwargs = [
|
@@ -3269,11 +2712,16 @@ class DatabaseMigrationClient(object):
|
|
3269
2712
|
api_reference_link=api_reference_link,
|
3270
2713
|
required_arguments=required_arguments)
|
3271
2714
|
|
3272
|
-
def list_migration_object_types(self, **kwargs):
|
2715
|
+
def list_migration_object_types(self, connection_type, **kwargs):
|
3273
2716
|
"""
|
3274
2717
|
Display sample object types to exclude or include for a Migration.
|
3275
2718
|
|
3276
2719
|
|
2720
|
+
:param str connection_type: (required)
|
2721
|
+
The connection type for migration objects.
|
2722
|
+
|
2723
|
+
Allowed values are: "MYSQL", "ORACLE"
|
2724
|
+
|
3277
2725
|
:param str opc_request_id: (optional)
|
3278
2726
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3279
2727
|
particular request, please provide the request ID.
|
@@ -3311,14 +2759,14 @@ class DatabaseMigrationClient(object):
|
|
3311
2759
|
:rtype: :class:`~oci.response.Response`
|
3312
2760
|
|
3313
2761
|
:example:
|
3314
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2762
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_migration_object_types.py.html>`__ to see an example of how to use list_migration_object_types API.
|
3315
2763
|
"""
|
3316
2764
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3317
|
-
required_arguments = []
|
2765
|
+
required_arguments = ['connectionType']
|
3318
2766
|
resource_path = "/migrationObjectTypes"
|
3319
2767
|
method = "GET"
|
3320
2768
|
operation_name = "list_migration_object_types"
|
3321
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2769
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes"
|
3322
2770
|
|
3323
2771
|
# Don't accept unknown kwargs
|
3324
2772
|
expected_kwargs = [
|
@@ -3349,11 +2797,18 @@ class DatabaseMigrationClient(object):
|
|
3349
2797
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3350
2798
|
)
|
3351
2799
|
|
2800
|
+
connection_type_allowed_values = ["MYSQL", "ORACLE"]
|
2801
|
+
if connection_type not in connection_type_allowed_values:
|
2802
|
+
raise ValueError(
|
2803
|
+
f"Invalid value for `connection_type`, must be one of { connection_type_allowed_values }"
|
2804
|
+
)
|
2805
|
+
|
3352
2806
|
query_params = {
|
3353
2807
|
"sortBy": kwargs.get("sort_by", missing),
|
3354
2808
|
"sortOrder": kwargs.get("sort_order", missing),
|
3355
2809
|
"limit": kwargs.get("limit", missing),
|
3356
|
-
"page": kwargs.get("page", missing)
|
2810
|
+
"page": kwargs.get("page", missing),
|
2811
|
+
"connectionType": connection_type
|
3357
2812
|
}
|
3358
2813
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3359
2814
|
|
@@ -3439,14 +2894,14 @@ class DatabaseMigrationClient(object):
|
|
3439
2894
|
:rtype: :class:`~oci.response.Response`
|
3440
2895
|
|
3441
2896
|
:example:
|
3442
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2897
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_migration_objects.py.html>`__ to see an example of how to use list_migration_objects API.
|
3443
2898
|
"""
|
3444
2899
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3445
2900
|
required_arguments = ['migrationId']
|
3446
2901
|
resource_path = "/migrations/{migrationId}/migrationObjects"
|
3447
2902
|
method = "GET"
|
3448
2903
|
operation_name = "list_migration_objects"
|
3449
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
2904
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects"
|
3450
2905
|
|
3451
2906
|
# Don't accept unknown kwargs
|
3452
2907
|
expected_kwargs = [
|
@@ -3580,14 +3035,14 @@ class DatabaseMigrationClient(object):
|
|
3580
3035
|
:rtype: :class:`~oci.response.Response`
|
3581
3036
|
|
3582
3037
|
:example:
|
3583
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3038
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_migrations.py.html>`__ to see an example of how to use list_migrations API.
|
3584
3039
|
"""
|
3585
3040
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3586
3041
|
required_arguments = ['compartmentId']
|
3587
3042
|
resource_path = "/migrations"
|
3588
3043
|
method = "GET"
|
3589
3044
|
operation_name = "list_migrations"
|
3590
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3045
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations"
|
3591
3046
|
|
3592
3047
|
# Don't accept unknown kwargs
|
3593
3048
|
expected_kwargs = [
|
@@ -3732,14 +3187,14 @@ class DatabaseMigrationClient(object):
|
|
3732
3187
|
:rtype: :class:`~oci.response.Response`
|
3733
3188
|
|
3734
3189
|
:example:
|
3735
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3190
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
3736
3191
|
"""
|
3737
3192
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3738
3193
|
required_arguments = ['workRequestId']
|
3739
3194
|
resource_path = "/workRequests/{workRequestId}/errors"
|
3740
3195
|
method = "GET"
|
3741
3196
|
operation_name = "list_work_request_errors"
|
3742
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3197
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors"
|
3743
3198
|
|
3744
3199
|
# Don't accept unknown kwargs
|
3745
3200
|
expected_kwargs = [
|
@@ -3875,14 +3330,14 @@ class DatabaseMigrationClient(object):
|
|
3875
3330
|
:rtype: :class:`~oci.response.Response`
|
3876
3331
|
|
3877
3332
|
:example:
|
3878
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3333
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
3879
3334
|
"""
|
3880
3335
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3881
3336
|
required_arguments = ['workRequestId']
|
3882
3337
|
resource_path = "/workRequests/{workRequestId}/logs"
|
3883
3338
|
method = "GET"
|
3884
3339
|
operation_name = "list_work_request_logs"
|
3885
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3340
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs"
|
3886
3341
|
|
3887
3342
|
# Don't accept unknown kwargs
|
3888
3343
|
expected_kwargs = [
|
@@ -4028,14 +3483,14 @@ class DatabaseMigrationClient(object):
|
|
4028
3483
|
:rtype: :class:`~oci.response.Response`
|
4029
3484
|
|
4030
3485
|
:example:
|
4031
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3486
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
4032
3487
|
"""
|
4033
3488
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4034
3489
|
required_arguments = ['compartmentId']
|
4035
3490
|
resource_path = "/workRequests"
|
4036
3491
|
method = "GET"
|
4037
3492
|
operation_name = "list_work_requests"
|
4038
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3493
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests"
|
4039
3494
|
|
4040
3495
|
# Don't accept unknown kwargs
|
4041
3496
|
expected_kwargs = [
|
@@ -4165,14 +3620,14 @@ class DatabaseMigrationClient(object):
|
|
4165
3620
|
:rtype: :class:`~oci.response.Response`
|
4166
3621
|
|
4167
3622
|
:example:
|
4168
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3623
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/remove_migration_objects.py.html>`__ to see an example of how to use remove_migration_objects API.
|
4169
3624
|
"""
|
4170
3625
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4171
3626
|
required_arguments = ['migrationId']
|
4172
3627
|
resource_path = "/migrations/{migrationId}/actions/removeMigrationObjects"
|
4173
3628
|
method = "POST"
|
4174
3629
|
operation_name = "remove_migration_objects"
|
4175
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3630
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects"
|
4176
3631
|
|
4177
3632
|
# Don't accept unknown kwargs
|
4178
3633
|
expected_kwargs = [
|
@@ -4283,14 +3738,14 @@ class DatabaseMigrationClient(object):
|
|
4283
3738
|
:rtype: :class:`~oci.response.Response`
|
4284
3739
|
|
4285
3740
|
:example:
|
4286
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3741
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/resume_job.py.html>`__ to see an example of how to use resume_job API.
|
4287
3742
|
"""
|
4288
3743
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4289
3744
|
required_arguments = ['jobId']
|
4290
3745
|
resource_path = "/jobs/{jobId}/actions/resume"
|
4291
3746
|
method = "POST"
|
4292
3747
|
operation_name = "resume_job"
|
4293
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3748
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob"
|
4294
3749
|
|
4295
3750
|
# Don't accept unknown kwargs
|
4296
3751
|
expected_kwargs = [
|
@@ -4390,14 +3845,14 @@ class DatabaseMigrationClient(object):
|
|
4390
3845
|
:rtype: :class:`~oci.response.Response`
|
4391
3846
|
|
4392
3847
|
:example:
|
4393
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3848
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/retrieve_supported_phases.py.html>`__ to see an example of how to use retrieve_supported_phases API.
|
4394
3849
|
"""
|
4395
3850
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4396
3851
|
required_arguments = ['migrationId']
|
4397
3852
|
resource_path = "/migrations/{migrationId}/actions/getSupportedPhases"
|
4398
3853
|
method = "POST"
|
4399
3854
|
operation_name = "retrieve_supported_phases"
|
4400
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3855
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases"
|
4401
3856
|
|
4402
3857
|
# Don't accept unknown kwargs
|
4403
3858
|
expected_kwargs = [
|
@@ -4506,14 +3961,14 @@ class DatabaseMigrationClient(object):
|
|
4506
3961
|
:rtype: :class:`~oci.response.Response`
|
4507
3962
|
|
4508
3963
|
:example:
|
4509
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3964
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/start_migration.py.html>`__ to see an example of how to use start_migration API.
|
4510
3965
|
"""
|
4511
3966
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4512
3967
|
required_arguments = ['migrationId']
|
4513
3968
|
resource_path = "/migrations/{migrationId}/actions/start"
|
4514
3969
|
method = "POST"
|
4515
3970
|
operation_name = "start_migration"
|
4516
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
3971
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration"
|
4517
3972
|
|
4518
3973
|
# Don't accept unknown kwargs
|
4519
3974
|
expected_kwargs = [
|
@@ -4585,136 +4040,13 @@ class DatabaseMigrationClient(object):
|
|
4585
4040
|
api_reference_link=api_reference_link,
|
4586
4041
|
required_arguments=required_arguments)
|
4587
4042
|
|
4588
|
-
def update_agent(self, agent_id, update_agent_details, **kwargs):
|
4589
|
-
"""
|
4590
|
-
Modifies the ODMS Agent represented by the given ODMS Agent ID.
|
4591
|
-
|
4592
|
-
|
4593
|
-
:param str agent_id: (required)
|
4594
|
-
The OCID of the agent
|
4595
|
-
|
4596
|
-
:param oci.database_migration.models.UpdateAgentDetails update_agent_details: (required)
|
4597
|
-
Update ODMS Agent properties.
|
4598
|
-
|
4599
|
-
:param str opc_request_id: (optional)
|
4600
|
-
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4601
|
-
particular request, please provide the request ID.
|
4602
|
-
|
4603
|
-
:param str opc_retry_token: (optional)
|
4604
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
4605
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
4606
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
4607
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
4608
|
-
might be rejected.
|
4609
|
-
|
4610
|
-
:param str if_match: (optional)
|
4611
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
4612
|
-
for a resource, set the `if-match` parameter to the value of the
|
4613
|
-
etag from a previous GET or POST response for that resource.
|
4614
|
-
The resource will be updated or deleted only if the etag you
|
4615
|
-
provide matches the resource's current etag value.
|
4616
|
-
|
4617
|
-
:param obj retry_strategy: (optional)
|
4618
|
-
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4619
|
-
|
4620
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
4621
|
-
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4622
|
-
|
4623
|
-
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4624
|
-
|
4625
|
-
:param bool allow_control_chars: (optional)
|
4626
|
-
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4627
|
-
By default, the response will not allow control characters in strings
|
4628
|
-
|
4629
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Agent`
|
4630
|
-
:rtype: :class:`~oci.response.Response`
|
4631
|
-
|
4632
|
-
:example:
|
4633
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.1/databasemigration/update_agent.py.html>`__ to see an example of how to use update_agent API.
|
4634
|
-
"""
|
4635
|
-
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4636
|
-
required_arguments = ['agentId']
|
4637
|
-
resource_path = "/agents/{agentId}"
|
4638
|
-
method = "PUT"
|
4639
|
-
operation_name = "update_agent"
|
4640
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent"
|
4641
|
-
|
4642
|
-
# Don't accept unknown kwargs
|
4643
|
-
expected_kwargs = [
|
4644
|
-
"allow_control_chars",
|
4645
|
-
"retry_strategy",
|
4646
|
-
"opc_request_id",
|
4647
|
-
"opc_retry_token",
|
4648
|
-
"if_match"
|
4649
|
-
]
|
4650
|
-
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4651
|
-
if extra_kwargs:
|
4652
|
-
raise ValueError(
|
4653
|
-
f"update_agent got unknown kwargs: {extra_kwargs!r}")
|
4654
|
-
|
4655
|
-
path_params = {
|
4656
|
-
"agentId": agent_id
|
4657
|
-
}
|
4658
|
-
|
4659
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4660
|
-
|
4661
|
-
for (k, v) in six.iteritems(path_params):
|
4662
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4663
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4664
|
-
|
4665
|
-
header_params = {
|
4666
|
-
"accept": "application/json",
|
4667
|
-
"content-type": "application/json",
|
4668
|
-
"opc-request-id": kwargs.get("opc_request_id", missing),
|
4669
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
4670
|
-
"if-match": kwargs.get("if_match", missing)
|
4671
|
-
}
|
4672
|
-
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4673
|
-
|
4674
|
-
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4675
|
-
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4676
|
-
client_retry_strategy=self.retry_strategy
|
4677
|
-
)
|
4678
|
-
if retry_strategy is None:
|
4679
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4680
|
-
|
4681
|
-
if retry_strategy:
|
4682
|
-
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4683
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
4684
|
-
self.base_client.add_opc_client_retries_header(header_params)
|
4685
|
-
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4686
|
-
return retry_strategy.make_retrying_call(
|
4687
|
-
self.base_client.call_api,
|
4688
|
-
resource_path=resource_path,
|
4689
|
-
method=method,
|
4690
|
-
path_params=path_params,
|
4691
|
-
header_params=header_params,
|
4692
|
-
body=update_agent_details,
|
4693
|
-
response_type="Agent",
|
4694
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
4695
|
-
operation_name=operation_name,
|
4696
|
-
api_reference_link=api_reference_link,
|
4697
|
-
required_arguments=required_arguments)
|
4698
|
-
else:
|
4699
|
-
return self.base_client.call_api(
|
4700
|
-
resource_path=resource_path,
|
4701
|
-
method=method,
|
4702
|
-
path_params=path_params,
|
4703
|
-
header_params=header_params,
|
4704
|
-
body=update_agent_details,
|
4705
|
-
response_type="Agent",
|
4706
|
-
allow_control_chars=kwargs.get('allow_control_chars'),
|
4707
|
-
operation_name=operation_name,
|
4708
|
-
api_reference_link=api_reference_link,
|
4709
|
-
required_arguments=required_arguments)
|
4710
|
-
|
4711
4043
|
def update_connection(self, connection_id, update_connection_details, **kwargs):
|
4712
4044
|
"""
|
4713
4045
|
Update Database Connection resource details.
|
4714
4046
|
|
4715
4047
|
|
4716
4048
|
:param str connection_id: (required)
|
4717
|
-
The OCID of the database connection
|
4049
|
+
The OCID of the database connection.
|
4718
4050
|
|
4719
4051
|
:param oci.database_migration.models.UpdateConnectionDetails update_connection_details: (required)
|
4720
4052
|
Database Connection properties.
|
@@ -4746,14 +4078,14 @@ class DatabaseMigrationClient(object):
|
|
4746
4078
|
:rtype: :class:`~oci.response.Response`
|
4747
4079
|
|
4748
4080
|
:example:
|
4749
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4081
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/update_connection.py.html>`__ to see an example of how to use update_connection API.
|
4750
4082
|
"""
|
4751
4083
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4752
4084
|
required_arguments = ['connectionId']
|
4753
4085
|
resource_path = "/connections/{connectionId}"
|
4754
4086
|
method = "PUT"
|
4755
4087
|
operation_name = "update_connection"
|
4756
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
4088
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection"
|
4757
4089
|
|
4758
4090
|
# Don't accept unknown kwargs
|
4759
4091
|
expected_kwargs = [
|
@@ -4857,14 +4189,14 @@ class DatabaseMigrationClient(object):
|
|
4857
4189
|
:rtype: :class:`~oci.response.Response`
|
4858
4190
|
|
4859
4191
|
:example:
|
4860
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4192
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/update_job.py.html>`__ to see an example of how to use update_job API.
|
4861
4193
|
"""
|
4862
4194
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4863
4195
|
required_arguments = ['jobId']
|
4864
4196
|
resource_path = "/jobs/{jobId}"
|
4865
4197
|
method = "PUT"
|
4866
4198
|
operation_name = "update_job"
|
4867
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
4199
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob"
|
4868
4200
|
|
4869
4201
|
# Don't accept unknown kwargs
|
4870
4202
|
expected_kwargs = [
|
@@ -4970,14 +4302,14 @@ class DatabaseMigrationClient(object):
|
|
4970
4302
|
:rtype: :class:`~oci.response.Response`
|
4971
4303
|
|
4972
4304
|
:example:
|
4973
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4305
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.129.0/databasemigration/update_migration.py.html>`__ to see an example of how to use update_migration API.
|
4974
4306
|
"""
|
4975
4307
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4976
4308
|
required_arguments = ['migrationId']
|
4977
4309
|
resource_path = "/migrations/{migrationId}"
|
4978
4310
|
method = "PUT"
|
4979
4311
|
operation_name = "update_migration"
|
4980
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/
|
4312
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration"
|
4981
4313
|
|
4982
4314
|
# Don't accept unknown kwargs
|
4983
4315
|
expected_kwargs = [
|