oci 2.145.0__py3-none-any.whl → 2.147.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/__init__.py +2 -2
- 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 +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- 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/auth/federation_client.py +19 -2
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/base_client.py +2 -1
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- 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_engine/models/open_id_connect_token_authentication_config.py +37 -2
- oci/container_instances/container_instance_client.py +18 -18
- oci/container_instances/models/__init__.py +0 -4
- oci/container_instances/models/container_health_check.py +3 -11
- oci/container_instances/models/container_http_health_check.py +1 -1
- oci/container_instances/models/container_tcp_health_check.py +1 -1
- oci/container_instances/models/create_container_details.py +2 -2
- oci/container_instances/models/create_container_health_check_details.py +3 -11
- oci/container_instances/models/create_container_http_health_check_details.py +1 -1
- oci/container_instances/models/create_container_tcp_health_check_details.py +1 -1
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/models/create_byoip_range_details.py +66 -0
- oci/core/models/create_ipv6_details.py +97 -3
- oci/core/models/create_private_ip_details.py +96 -2
- oci/core/models/create_vnic_details.py +18 -18
- oci/core/models/ipv6.py +107 -3
- oci/core/models/launch_attach_volume_details.py +2 -2
- oci/core/models/network_security_group.py +7 -7
- oci/core/models/private_ip.py +107 -3
- oci/core/models/update_byoip_range_details.py +68 -2
- oci/core/models/update_ipv6_details.py +61 -4
- oci/core/models/update_private_ip_details.py +59 -2
- oci/core/models/update_vnic_details.py +8 -4
- oci/core/models/vnic.py +6 -2
- oci/core/virtual_network_client.py +519 -257
- oci/core/virtual_network_client_composite_operations.py +44 -0
- 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 +45 -45
- 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 +306 -306
- oci/data_science/data_science_client.py +101 -101
- oci/data_science/models/__init__.py +8 -0
- oci/data_science/models/create_pipeline_details.py +31 -0
- oci/data_science/models/pipeline.py +31 -0
- oci/data_science/models/pipeline_container_step_details.py +32 -1
- oci/data_science/models/pipeline_container_step_run.py +1 -1
- oci/data_science/models/pipeline_container_step_update_details.py +34 -3
- oci/data_science/models/pipeline_custom_script_step_details.py +32 -1
- oci/data_science/models/pipeline_custom_script_step_run.py +1 -1
- oci/data_science/models/pipeline_custom_script_step_update_details.py +34 -3
- oci/data_science/models/pipeline_dataflow_configuration_details.py +281 -0
- oci/data_science/models/pipeline_dataflow_step_details.py +141 -0
- oci/data_science/models/pipeline_dataflow_step_run.py +122 -0
- oci/data_science/models/pipeline_dataflow_step_update_details.py +99 -0
- oci/data_science/models/pipeline_ml_job_step_details.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_run.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_update_details.py +1 -1
- oci/data_science/models/pipeline_step_details.py +11 -3
- oci/data_science/models/pipeline_step_override_details.py +29 -2
- oci/data_science/models/pipeline_step_run.py +11 -3
- oci/data_science/models/pipeline_step_update_details.py +11 -3
- oci/data_science/models/update_pipeline_details.py +31 -0
- oci/database/database_client.py +1906 -710
- oci/database/database_client_composite_operations.py +794 -22
- oci/database/models/__init__.py +14 -0
- oci/database/models/add_standby_autonomous_container_database_details.py +387 -0
- oci/database/models/autonomous_container_database.py +122 -2
- oci/database/models/autonomous_container_database_dataguard.py +674 -0
- oci/database/models/autonomous_container_database_summary.py +122 -2
- oci/database/models/backup.py +209 -3
- oci/database/models/backup_summary.py +209 -3
- oci/database/models/change_exadb_vm_cluster_subscription_details.py +107 -0
- oci/database/models/change_exascale_db_storage_vault_subscription_details.py +107 -0
- oci/database/models/convert_standby_autonomous_container_database_details.py +147 -0
- oci/database/models/create_backup_details.py +64 -2
- oci/database/models/create_exadb_vm_cluster_details.py +41 -10
- oci/database/models/create_exascale_db_storage_vault_details.py +72 -2
- oci/database/models/edit_autonomous_container_database_dataguard_details.py +158 -0
- oci/database/models/exadb_vm_cluster.py +76 -10
- oci/database/models/exadb_vm_cluster_summary.py +76 -10
- oci/database/models/exascale_db_storage_vault.py +72 -2
- oci/database/models/exascale_db_storage_vault_summary.py +72 -2
- oci/database/models/maintenance_run.py +31 -0
- oci/database/models/maintenance_run_summary.py +31 -0
- oci/database/models/update_backup_details.py +103 -0
- oci/database/models/update_exadb_vm_cluster_details.py +4 -8
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/__init__.py +14 -0
- oci/dblm/db_life_cycle_management_client.py +1762 -0
- oci/dblm/db_life_cycle_management_client_composite_operations.py +65 -0
- oci/dblm/models/__init__.py +70 -0
- oci/dblm/models/aggregated_vulnerability_collection.py +72 -0
- oci/dblm/models/aggregated_vulnerability_summary.py +134 -0
- oci/dblm/models/child_pdb.py +227 -0
- oci/dblm/models/create_vulnerability_scan_details.py +103 -0
- oci/dblm/models/dblm_vulnerability.py +393 -0
- oci/dblm/models/host_info.py +103 -0
- oci/dblm/models/metric_error.py +227 -0
- oci/dblm/models/notification_collection.py +72 -0
- oci/dblm/models/notification_summary.py +185 -0
- oci/dblm/models/patch_recommendation_summary.py +134 -0
- oci/dblm/models/patch_recommendations_details_summary.py +227 -0
- oci/dblm/models/resource_info.py +382 -0
- oci/dblm/models/resource_summary.py +227 -0
- oci/dblm/models/vulnerabilities_summary.py +227 -0
- oci/dblm/models/vulnerability_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_summary.py +475 -0
- oci/dblm/models/vulnerability_scan.py +525 -0
- oci/dblm/models/vulnerability_scan_collection.py +72 -0
- oci/dblm/models/vulnerability_scan_summary.py +443 -0
- oci/dblm/models/vulnerability_summary.py +196 -0
- oci/dblm/models/work_request.py +426 -0
- oci/dblm/models/work_request_error.py +136 -0
- oci/dblm/models/work_request_error_collection.py +72 -0
- oci/dblm/models/work_request_log_entry.py +103 -0
- oci/dblm/models/work_request_log_entry_collection.py +72 -0
- oci/dblm/models/work_request_resource.py +234 -0
- oci/dblm/models/work_request_summary.py +426 -0
- oci/dblm/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/dns/dns_client.py +54 -54
- 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_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email/models/create_dkim_details.py +31 -0
- oci/email/models/dkim.py +62 -0
- oci/email/models/dkim_summary.py +62 -0
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +865 -98
- oci/file_storage/models/__init__.py +10 -0
- oci/file_storage/models/create_file_system_details.py +33 -2
- oci/file_storage/models/create_quota_rule_details.py +236 -0
- oci/file_storage/models/file_system.py +127 -2
- oci/file_storage/models/file_system_summary.py +96 -2
- oci/file_storage/models/quota_rule.py +384 -0
- oci/file_storage/models/quota_rule_summary.py +452 -0
- oci/file_storage/models/toggle_quota_rules_details.py +72 -0
- oci/file_storage/models/update_quota_rule_details.py +107 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
- 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 +84 -84
- 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 +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- 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/load_balancer/models/create_load_balancer_details.py +15 -15
- oci/load_balancer/models/load_balancer.py +15 -15
- oci/load_balancer/models/update_load_balancer_details.py +15 -15
- 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 +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/backup.py +33 -0
- oci/mysql/models/backup_summary.py +33 -0
- oci/mysql/models/channel.py +35 -2
- oci/mysql/models/channel_summary.py +35 -2
- oci/mysql/models/configuration.py +35 -2
- oci/mysql/models/configuration_summary.py +35 -2
- oci/mysql/models/configuration_variables.py +4949 -1858
- oci/mysql/models/db_system.py +33 -0
- oci/mysql/models/db_system_summary.py +33 -0
- 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 +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- 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 +16 -16
- 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 +181 -181
- 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 +10 -10
- oci/os_management_hub/lifecycle_environment_client.py +138 -16
- oci/os_management_hub/lifecycle_environment_client_composite_operations.py +44 -0
- oci/os_management_hub/managed_instance_client.py +309 -35
- oci/os_management_hub/managed_instance_client_composite_operations.py +91 -0
- oci/os_management_hub/managed_instance_group_client.py +149 -27
- oci/os_management_hub/managed_instance_group_client_composite_operations.py +44 -0
- oci/os_management_hub/management_station_client.py +59 -16
- oci/os_management_hub/models/__init__.py +54 -0
- oci/os_management_hub/models/add_packages_to_software_source_details.py +35 -4
- oci/os_management_hub/models/agent_event.py +1 -1
- oci/os_management_hub/models/associate_managed_instances_with_management_station_details.py +103 -0
- oci/os_management_hub/models/attach_lifecycle_stage_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instance_group_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instances_to_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/attach_management_station_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_software_sources_to_profile_details.py +76 -0
- oci/os_management_hub/models/available_package_summary.py +1 -1
- oci/os_management_hub/models/create_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_lifecycle_environment_details.py +7 -3
- oci/os_management_hub/models/create_managed_instance_group_details.py +7 -3
- oci/os_management_hub/models/create_management_station_details.py +31 -0
- oci/os_management_hub/models/create_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/create_private_software_source_details.py +406 -0
- oci/os_management_hub/models/create_profile_details.py +12 -4
- oci/os_management_hub/models/create_scheduled_job_details.py +37 -2
- oci/os_management_hub/models/create_software_source_details.py +19 -3
- oci/os_management_hub/models/create_software_source_profile_details.py +7 -3
- oci/os_management_hub/models/create_station_profile_details.py +7 -3
- oci/os_management_hub/models/create_third_party_software_source_details.py +406 -0
- oci/os_management_hub/models/create_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/create_versioned_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_windows_stand_alone_profile_details.py +288 -0
- oci/os_management_hub/models/custom_software_source.py +102 -9
- oci/os_management_hub/models/custom_software_source_summary.py +64 -8
- oci/os_management_hub/models/detach_managed_instances_from_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/detach_software_sources_from_profile_details.py +76 -0
- oci/os_management_hub/models/event.py +23 -3
- oci/os_management_hub/models/event_summary.py +11 -3
- oci/os_management_hub/models/exploit_attempt_event.py +1 -1
- oci/os_management_hub/models/group_profile.py +16 -2
- oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +33 -2
- oci/os_management_hub/models/installed_package_summary.py +1 -1
- oci/os_management_hub/models/kernel_crash_event.py +1 -1
- oci/os_management_hub/models/kernel_oops_event.py +1 -1
- oci/os_management_hub/models/ksplice_update_event.py +1 -1
- oci/os_management_hub/models/lifecycle_environment.py +7 -3
- oci/os_management_hub/models/lifecycle_environment_summary.py +7 -3
- oci/os_management_hub/models/lifecycle_profile.py +16 -2
- oci/os_management_hub/models/lifecycle_stage.py +7 -3
- oci/os_management_hub/models/lifecycle_stage_summary.py +7 -3
- oci/os_management_hub/models/managed_instance.py +80 -10
- oci/os_management_hub/models/managed_instance_analytic_summary.py +11 -3
- oci/os_management_hub/models/managed_instance_group.py +7 -3
- oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_group_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_summary.py +47 -8
- oci/os_management_hub/models/management_station.py +276 -0
- oci/os_management_hub/models/management_station_event.py +1 -1
- oci/os_management_hub/models/management_station_event_data.py +58 -3
- oci/os_management_hub/models/management_station_summary.py +67 -4
- oci/os_management_hub/models/mirror_configuration.py +33 -2
- oci/os_management_hub/models/mirror_summary.py +107 -25
- oci/os_management_hub/models/mirrors_collection.py +2 -1
- oci/os_management_hub/models/module_stream.py +7 -3
- oci/os_management_hub/models/package_name_summary.py +7 -3
- oci/os_management_hub/models/package_summary.py +7 -3
- oci/os_management_hub/models/peer_management_station.py +108 -0
- oci/os_management_hub/models/private_software_source.py +330 -0
- oci/os_management_hub/models/private_software_source_summary.py +212 -0
- oci/os_management_hub/models/profile.py +84 -8
- oci/os_management_hub/models/profile_collection.py +1 -1
- oci/os_management_hub/models/profile_summary.py +17 -7
- oci/os_management_hub/models/profile_version.py +811 -0
- oci/os_management_hub/models/reboot_event.py +184 -0
- oci/os_management_hub/models/reboot_event_data.py +123 -0
- oci/os_management_hub/models/reboot_lifecycle_stage_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_group_details.py +101 -0
- oci/os_management_hub/models/remove_packages_from_software_source_details.py +72 -0
- oci/os_management_hub/models/replace_packages_in_software_source_details.py +72 -0
- oci/os_management_hub/models/rerun_work_request_details.py +103 -0
- oci/os_management_hub/models/scheduled_job.py +37 -2
- oci/os_management_hub/models/scheduled_job_operation.py +46 -5
- oci/os_management_hub/models/scheduled_job_summary.py +37 -2
- oci/os_management_hub/models/software_source.py +39 -15
- oci/os_management_hub/models/software_source_details.py +11 -3
- oci/os_management_hub/models/software_source_event.py +1 -1
- oci/os_management_hub/models/software_source_profile.py +16 -2
- oci/os_management_hub/models/software_source_summary.py +30 -10
- oci/os_management_hub/models/software_source_vendor_summary.py +7 -3
- oci/os_management_hub/models/software_update_event.py +1 -1
- oci/os_management_hub/models/station_health.py +7 -3
- oci/os_management_hub/models/station_profile.py +16 -2
- oci/os_management_hub/models/synchronize_mirrors_details.py +7 -3
- oci/os_management_hub/models/sysadmin_event.py +184 -0
- oci/os_management_hub/models/sysadmin_event_data.py +239 -0
- oci/os_management_hub/models/system_details.py +7 -3
- oci/os_management_hub/models/third_party_software_source.py +330 -0
- oci/os_management_hub/models/third_party_software_source_summary.py +212 -0
- oci/os_management_hub/models/updatable_package_summary.py +1 -1
- oci/os_management_hub/models/update_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_management_station_details.py +31 -0
- oci/os_management_hub/models/update_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/update_private_software_source_details.py +272 -0
- oci/os_management_hub/models/update_profile_details.py +1 -1
- oci/os_management_hub/models/update_scheduled_job_details.py +2 -2
- oci/os_management_hub/models/update_software_source_details.py +19 -3
- oci/os_management_hub/models/update_third_party_software_source_details.py +272 -0
- oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/update_versioned_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_work_request_details.py +9 -5
- oci/os_management_hub/models/vendor_software_source.py +5 -5
- oci/os_management_hub/models/vendor_software_source_summary.py +2 -2
- oci/os_management_hub/models/versioned_custom_software_source.py +102 -9
- oci/os_management_hub/models/versioned_custom_software_source_summary.py +63 -7
- oci/os_management_hub/models/windows_standalone_profile.py +17 -3
- oci/os_management_hub/models/work_request.py +102 -14
- oci/os_management_hub/models/work_request_error.py +4 -4
- oci/os_management_hub/models/work_request_error_collection.py +1 -1
- oci/os_management_hub/models/work_request_log_entry_collection.py +1 -1
- oci/os_management_hub/models/work_request_summary.py +47 -8
- oci/os_management_hub/models/work_request_summary_collection.py +1 -1
- oci/os_management_hub/onboarding_client.py +991 -75
- oci/os_management_hub/reporting_managed_instance_client.py +9 -9
- oci/os_management_hub/scheduled_job_client.py +9 -9
- oci/os_management_hub/software_source_client.py +848 -47
- oci/os_management_hub/software_source_client_composite_operations.py +132 -0
- oci/os_management_hub/work_request_client.py +144 -11
- oci/os_management_hub/work_request_client_composite_operations.py +46 -0
- 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/models/__init__.py +8 -0
- oci/psql/models/backup.py +110 -5
- oci/psql/models/backup_copy_details.py +134 -0
- oci/psql/models/backup_copy_policy.py +134 -0
- oci/psql/models/backup_copy_status_details.py +193 -0
- oci/psql/models/backup_policy.py +29 -2
- oci/psql/models/backup_summary.py +74 -0
- oci/psql/models/configuration.py +7 -3
- oci/psql/models/daily_backup_policy.py +7 -0
- oci/psql/models/db_system_details.py +33 -2
- oci/psql/models/monthly_backup_policy.py +7 -0
- oci/psql/models/none_backup_policy.py +9 -2
- oci/psql/models/source_backup_details.py +103 -0
- oci/psql/models/weekly_backup_policy.py +7 -0
- oci/psql/postgresql_client.py +163 -33
- oci/psql/postgresql_client_composite_operations.py +42 -0
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/models/redis_cluster.py +7 -3
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +12 -12
- 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/security_attribute/security_attribute_client.py +18 -18
- 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/stack_monitoring_client.py +87 -87
- 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/models/__init__.py +2 -0
- oci/tenant_manager_control_plane/models/additional_assigned_region_collection.py +72 -0
- oci/tenant_manager_control_plane/models/classic_subscription.py +33 -2
- 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/subscription_client_composite_operations.py +10 -7
- 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 +14 -14
- 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/zpr/zpr_client.py +15 -15
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/METADATA +1 -1
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/RECORD +526 -447
- oci/container_instances/models/container_command_health_check.py +0 -147
- oci/container_instances/models/create_container_command_health_check_details.py +0 -132
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/WHEEL +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/top_level.txt +0 -0
@@ -117,6 +117,94 @@ class DatabaseClientCompositeOperations(object):
|
|
117
117
|
except Exception as e:
|
118
118
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
119
119
|
|
120
|
+
def add_standby_autonomous_container_database_and_wait_for_work_request(self, add_standby_autonomous_container_database_details, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
121
|
+
"""
|
122
|
+
Calls :py:func:`~oci.database.DatabaseClient.add_standby_autonomous_container_database` and waits for the oci.work_requests.models.WorkRequest
|
123
|
+
to enter the given state(s).
|
124
|
+
|
125
|
+
:param oci.database.models.AddStandbyAutonomousContainerDatabaseDetails add_standby_autonomous_container_database_details: (required)
|
126
|
+
Request to Add Standy Autonomous Container Database Dataguard.
|
127
|
+
|
128
|
+
:param str autonomous_container_database_id: (required)
|
129
|
+
The Autonomous Container Database `OCID`__.
|
130
|
+
|
131
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
132
|
+
|
133
|
+
:param list[str] work_request_states: (optional)
|
134
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
135
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
136
|
+
|
137
|
+
:param dict operation_kwargs:
|
138
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.add_standby_autonomous_container_database`
|
139
|
+
|
140
|
+
:param dict waiter_kwargs:
|
141
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
142
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
143
|
+
"""
|
144
|
+
operation_result = self.client.add_standby_autonomous_container_database(add_standby_autonomous_container_database_details, autonomous_container_database_id, **operation_kwargs)
|
145
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
146
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
147
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
148
|
+
return operation_result
|
149
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
150
|
+
try:
|
151
|
+
waiter_result = oci.wait_until(
|
152
|
+
self._work_request_client,
|
153
|
+
self._work_request_client.get_work_request(work_request_id),
|
154
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
155
|
+
**waiter_kwargs
|
156
|
+
)
|
157
|
+
return waiter_result
|
158
|
+
except Exception as e:
|
159
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
160
|
+
|
161
|
+
def add_standby_autonomous_container_database_and_wait_for_state(self, add_standby_autonomous_container_database_details, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
162
|
+
"""
|
163
|
+
Calls :py:func:`~oci.database.DatabaseClient.add_standby_autonomous_container_database` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
164
|
+
to enter the given state(s).
|
165
|
+
|
166
|
+
:param oci.database.models.AddStandbyAutonomousContainerDatabaseDetails add_standby_autonomous_container_database_details: (required)
|
167
|
+
Request to Add Standy Autonomous Container Database Dataguard.
|
168
|
+
|
169
|
+
:param str autonomous_container_database_id: (required)
|
170
|
+
The Autonomous Container Database `OCID`__.
|
171
|
+
|
172
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
173
|
+
|
174
|
+
:param list[str] wait_for_states:
|
175
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
176
|
+
|
177
|
+
:param dict operation_kwargs:
|
178
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.add_standby_autonomous_container_database`
|
179
|
+
|
180
|
+
:param dict waiter_kwargs:
|
181
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
182
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
183
|
+
"""
|
184
|
+
operation_result = self.client.add_standby_autonomous_container_database(add_standby_autonomous_container_database_details, autonomous_container_database_id, **operation_kwargs)
|
185
|
+
if not wait_for_states:
|
186
|
+
return operation_result
|
187
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
188
|
+
autonomous_container_database_id = operation_result.data.id
|
189
|
+
|
190
|
+
try:
|
191
|
+
waiter_result = oci.wait_until(
|
192
|
+
self.client,
|
193
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
194
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
195
|
+
**waiter_kwargs
|
196
|
+
)
|
197
|
+
result_to_return = waiter_result
|
198
|
+
|
199
|
+
return result_to_return
|
200
|
+
except (NameError, TypeError) as e:
|
201
|
+
if not e.args:
|
202
|
+
e.args = ('',)
|
203
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
204
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
205
|
+
except Exception as e:
|
206
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
207
|
+
|
120
208
|
def add_storage_capacity_cloud_exadata_infrastructure_and_wait_for_work_request(self, cloud_exadata_infrastructure_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
121
209
|
"""
|
122
210
|
Calls :py:func:`~oci.database.DatabaseClient.add_storage_capacity_cloud_exadata_infrastructure` and waits for the oci.work_requests.models.WorkRequest
|
@@ -1589,6 +1677,47 @@ class DatabaseClientCompositeOperations(object):
|
|
1589
1677
|
except Exception as e:
|
1590
1678
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1591
1679
|
|
1680
|
+
def change_exadb_vm_cluster_subscription_and_wait_for_work_request(self, change_exadb_vm_cluster_subscription_details, exadb_vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1681
|
+
"""
|
1682
|
+
Calls :py:func:`~oci.database.DatabaseClient.change_exadb_vm_cluster_subscription` and waits for the oci.work_requests.models.WorkRequest
|
1683
|
+
to enter the given state(s).
|
1684
|
+
|
1685
|
+
:param oci.database.models.ChangeExadbVmClusterSubscriptionDetails change_exadb_vm_cluster_subscription_details: (required)
|
1686
|
+
Associate a Exadata VM cluster on Exascale Infrastructure with a different subscription.
|
1687
|
+
|
1688
|
+
:param str exadb_vm_cluster_id: (required)
|
1689
|
+
The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
|
1690
|
+
|
1691
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1692
|
+
|
1693
|
+
:param list[str] work_request_states: (optional)
|
1694
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
1695
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
1696
|
+
|
1697
|
+
:param dict operation_kwargs:
|
1698
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.change_exadb_vm_cluster_subscription`
|
1699
|
+
|
1700
|
+
:param dict waiter_kwargs:
|
1701
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1702
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1703
|
+
"""
|
1704
|
+
operation_result = self.client.change_exadb_vm_cluster_subscription(change_exadb_vm_cluster_subscription_details, exadb_vm_cluster_id, **operation_kwargs)
|
1705
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
1706
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
1707
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1708
|
+
return operation_result
|
1709
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
1710
|
+
try:
|
1711
|
+
waiter_result = oci.wait_until(
|
1712
|
+
self._work_request_client,
|
1713
|
+
self._work_request_client.get_work_request(work_request_id),
|
1714
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
1715
|
+
**waiter_kwargs
|
1716
|
+
)
|
1717
|
+
return waiter_result
|
1718
|
+
except Exception as e:
|
1719
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1720
|
+
|
1592
1721
|
def change_exascale_db_storage_vault_compartment_and_wait_for_work_request(self, change_exascale_db_storage_vault_compartment_details, exascale_db_storage_vault_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1593
1722
|
"""
|
1594
1723
|
Calls :py:func:`~oci.database.DatabaseClient.change_exascale_db_storage_vault_compartment` and waits for the oci.work_requests.models.WorkRequest
|
@@ -1630,6 +1759,47 @@ class DatabaseClientCompositeOperations(object):
|
|
1630
1759
|
except Exception as e:
|
1631
1760
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1632
1761
|
|
1762
|
+
def change_exascale_db_storage_vault_subscription_and_wait_for_work_request(self, change_exascale_db_storage_vault_subscription_details, exascale_db_storage_vault_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1763
|
+
"""
|
1764
|
+
Calls :py:func:`~oci.database.DatabaseClient.change_exascale_db_storage_vault_subscription` and waits for the oci.work_requests.models.WorkRequest
|
1765
|
+
to enter the given state(s).
|
1766
|
+
|
1767
|
+
:param oci.database.models.ChangeExascaleDbStorageVaultSubscriptionDetails change_exascale_db_storage_vault_subscription_details: (required)
|
1768
|
+
Associate a Exadata Database Storage Vault with a different subscription.
|
1769
|
+
|
1770
|
+
:param str exascale_db_storage_vault_id: (required)
|
1771
|
+
The Exadata Database Storage Vault `OCID`__.
|
1772
|
+
|
1773
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1774
|
+
|
1775
|
+
:param list[str] work_request_states: (optional)
|
1776
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
1777
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
1778
|
+
|
1779
|
+
:param dict operation_kwargs:
|
1780
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.change_exascale_db_storage_vault_subscription`
|
1781
|
+
|
1782
|
+
:param dict waiter_kwargs:
|
1783
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1784
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1785
|
+
"""
|
1786
|
+
operation_result = self.client.change_exascale_db_storage_vault_subscription(change_exascale_db_storage_vault_subscription_details, exascale_db_storage_vault_id, **operation_kwargs)
|
1787
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
1788
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
1789
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1790
|
+
return operation_result
|
1791
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
1792
|
+
try:
|
1793
|
+
waiter_result = oci.wait_until(
|
1794
|
+
self._work_request_client,
|
1795
|
+
self._work_request_client.get_work_request(work_request_id),
|
1796
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
1797
|
+
**waiter_kwargs
|
1798
|
+
)
|
1799
|
+
return waiter_result
|
1800
|
+
except Exception as e:
|
1801
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1802
|
+
|
1633
1803
|
def change_external_container_database_compartment_and_wait_for_work_request(self, change_compartment_details, external_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1634
1804
|
"""
|
1635
1805
|
Calls :py:func:`~oci.database.DatabaseClient.change_external_container_database_compartment` and waits for the oci.work_requests.models.WorkRequest
|
@@ -2338,6 +2508,94 @@ class DatabaseClientCompositeOperations(object):
|
|
2338
2508
|
except Exception as e:
|
2339
2509
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2340
2510
|
|
2511
|
+
def convert_standby_autonomous_container_database_and_wait_for_work_request(self, convert_standby_autonomous_container_database_details, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2512
|
+
"""
|
2513
|
+
Calls :py:func:`~oci.database.DatabaseClient.convert_standby_autonomous_container_database` and waits for the oci.work_requests.models.WorkRequest
|
2514
|
+
to enter the given state(s).
|
2515
|
+
|
2516
|
+
:param oci.database.models.ConvertStandbyAutonomousContainerDatabaseDetails convert_standby_autonomous_container_database_details: (required)
|
2517
|
+
Request to Convert Standby Autonomous Container Database .
|
2518
|
+
|
2519
|
+
:param str autonomous_container_database_id: (required)
|
2520
|
+
The Autonomous Container Database `OCID`__.
|
2521
|
+
|
2522
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2523
|
+
|
2524
|
+
:param list[str] work_request_states: (optional)
|
2525
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
2526
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
2527
|
+
|
2528
|
+
:param dict operation_kwargs:
|
2529
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.convert_standby_autonomous_container_database`
|
2530
|
+
|
2531
|
+
:param dict waiter_kwargs:
|
2532
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
2533
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2534
|
+
"""
|
2535
|
+
operation_result = self.client.convert_standby_autonomous_container_database(convert_standby_autonomous_container_database_details, autonomous_container_database_id, **operation_kwargs)
|
2536
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
2537
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
2538
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2539
|
+
return operation_result
|
2540
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
2541
|
+
try:
|
2542
|
+
waiter_result = oci.wait_until(
|
2543
|
+
self._work_request_client,
|
2544
|
+
self._work_request_client.get_work_request(work_request_id),
|
2545
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
2546
|
+
**waiter_kwargs
|
2547
|
+
)
|
2548
|
+
return waiter_result
|
2549
|
+
except Exception as e:
|
2550
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2551
|
+
|
2552
|
+
def convert_standby_autonomous_container_database_and_wait_for_state(self, convert_standby_autonomous_container_database_details, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2553
|
+
"""
|
2554
|
+
Calls :py:func:`~oci.database.DatabaseClient.convert_standby_autonomous_container_database` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
2555
|
+
to enter the given state(s).
|
2556
|
+
|
2557
|
+
:param oci.database.models.ConvertStandbyAutonomousContainerDatabaseDetails convert_standby_autonomous_container_database_details: (required)
|
2558
|
+
Request to Convert Standby Autonomous Container Database .
|
2559
|
+
|
2560
|
+
:param str autonomous_container_database_id: (required)
|
2561
|
+
The Autonomous Container Database `OCID`__.
|
2562
|
+
|
2563
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2564
|
+
|
2565
|
+
:param list[str] wait_for_states:
|
2566
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
2567
|
+
|
2568
|
+
:param dict operation_kwargs:
|
2569
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.convert_standby_autonomous_container_database`
|
2570
|
+
|
2571
|
+
:param dict waiter_kwargs:
|
2572
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
2573
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2574
|
+
"""
|
2575
|
+
operation_result = self.client.convert_standby_autonomous_container_database(convert_standby_autonomous_container_database_details, autonomous_container_database_id, **operation_kwargs)
|
2576
|
+
if not wait_for_states:
|
2577
|
+
return operation_result
|
2578
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2579
|
+
autonomous_container_database_id = operation_result.data.id
|
2580
|
+
|
2581
|
+
try:
|
2582
|
+
waiter_result = oci.wait_until(
|
2583
|
+
self.client,
|
2584
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
2585
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
2586
|
+
**waiter_kwargs
|
2587
|
+
)
|
2588
|
+
result_to_return = waiter_result
|
2589
|
+
|
2590
|
+
return result_to_return
|
2591
|
+
except (NameError, TypeError) as e:
|
2592
|
+
if not e.args:
|
2593
|
+
e.args = ('',)
|
2594
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
2595
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2596
|
+
except Exception as e:
|
2597
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2598
|
+
|
2341
2599
|
def convert_to_pdb_and_wait_for_work_request(self, database_id, convert_to_pdb_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2342
2600
|
"""
|
2343
2601
|
Calls :py:func:`~oci.database.DatabaseClient.convert_to_pdb` and waits for the oci.work_requests.models.WorkRequest
|
@@ -7484,13 +7742,16 @@ class DatabaseClientCompositeOperations(object):
|
|
7484
7742
|
except Exception as e:
|
7485
7743
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
7486
7744
|
|
7487
|
-
def
|
7745
|
+
def edit_autonomous_container_database_dataguard_and_wait_for_work_request(self, edit_autonomous_container_database_dataguard_details, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
7488
7746
|
"""
|
7489
|
-
Calls :py:func:`~oci.database.DatabaseClient.
|
7747
|
+
Calls :py:func:`~oci.database.DatabaseClient.edit_autonomous_container_database_dataguard` and waits for the oci.work_requests.models.WorkRequest
|
7490
7748
|
to enter the given state(s).
|
7491
7749
|
|
7492
|
-
:param
|
7493
|
-
|
7750
|
+
:param oci.database.models.EditAutonomousContainerDatabaseDataguardDetails edit_autonomous_container_database_dataguard_details: (required)
|
7751
|
+
Request Edit Autonomous Container Database Dataguard.
|
7752
|
+
|
7753
|
+
:param str autonomous_container_database_id: (required)
|
7754
|
+
The Autonomous Container Database `OCID`__.
|
7494
7755
|
|
7495
7756
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7496
7757
|
|
@@ -7499,13 +7760,13 @@ class DatabaseClientCompositeOperations(object):
|
|
7499
7760
|
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
7500
7761
|
|
7501
7762
|
:param dict operation_kwargs:
|
7502
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.
|
7763
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.edit_autonomous_container_database_dataguard`
|
7503
7764
|
|
7504
7765
|
:param dict waiter_kwargs:
|
7505
7766
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
7506
7767
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
7507
7768
|
"""
|
7508
|
-
operation_result = self.client.
|
7769
|
+
operation_result = self.client.edit_autonomous_container_database_dataguard(edit_autonomous_container_database_dataguard_details, autonomous_container_database_id, **operation_kwargs)
|
7509
7770
|
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
7510
7771
|
lowered_work_request_states = [w.lower() for w in work_request_states]
|
7511
7772
|
if 'opc-work-request-id' not in operation_result.headers:
|
@@ -7522,38 +7783,123 @@ class DatabaseClientCompositeOperations(object):
|
|
7522
7783
|
except Exception as e:
|
7523
7784
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
7524
7785
|
|
7525
|
-
def
|
7786
|
+
def edit_autonomous_container_database_dataguard_and_wait_for_state(self, edit_autonomous_container_database_dataguard_details, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
7526
7787
|
"""
|
7527
|
-
Calls :py:func:`~oci.database.DatabaseClient.
|
7788
|
+
Calls :py:func:`~oci.database.DatabaseClient.edit_autonomous_container_database_dataguard` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
7528
7789
|
to enter the given state(s).
|
7529
7790
|
|
7530
|
-
:param
|
7531
|
-
|
7791
|
+
:param oci.database.models.EditAutonomousContainerDatabaseDataguardDetails edit_autonomous_container_database_dataguard_details: (required)
|
7792
|
+
Request Edit Autonomous Container Database Dataguard.
|
7793
|
+
|
7794
|
+
:param str autonomous_container_database_id: (required)
|
7795
|
+
The Autonomous Container Database `OCID`__.
|
7532
7796
|
|
7533
7797
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7534
7798
|
|
7535
|
-
:param list[str]
|
7536
|
-
An array of
|
7537
|
-
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
7799
|
+
:param list[str] wait_for_states:
|
7800
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
7538
7801
|
|
7539
7802
|
:param dict operation_kwargs:
|
7540
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.
|
7803
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.edit_autonomous_container_database_dataguard`
|
7541
7804
|
|
7542
7805
|
:param dict waiter_kwargs:
|
7543
7806
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
7544
7807
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
7545
7808
|
"""
|
7546
|
-
operation_result = self.client.
|
7547
|
-
|
7548
|
-
lowered_work_request_states = [w.lower() for w in work_request_states]
|
7549
|
-
if 'opc-work-request-id' not in operation_result.headers:
|
7809
|
+
operation_result = self.client.edit_autonomous_container_database_dataguard(edit_autonomous_container_database_dataguard_details, autonomous_container_database_id, **operation_kwargs)
|
7810
|
+
if not wait_for_states:
|
7550
7811
|
return operation_result
|
7551
|
-
|
7812
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
7813
|
+
autonomous_container_database_id = operation_result.data.id
|
7814
|
+
|
7552
7815
|
try:
|
7553
7816
|
waiter_result = oci.wait_until(
|
7554
|
-
self.
|
7555
|
-
self.
|
7556
|
-
evaluate_response=lambda r: getattr(r.data, '
|
7817
|
+
self.client,
|
7818
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
7819
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
7820
|
+
**waiter_kwargs
|
7821
|
+
)
|
7822
|
+
result_to_return = waiter_result
|
7823
|
+
|
7824
|
+
return result_to_return
|
7825
|
+
except (NameError, TypeError) as e:
|
7826
|
+
if not e.args:
|
7827
|
+
e.args = ('',)
|
7828
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
7829
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
7830
|
+
except Exception as e:
|
7831
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
7832
|
+
|
7833
|
+
def enable_autonomous_database_management_and_wait_for_work_request(self, autonomous_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
7834
|
+
"""
|
7835
|
+
Calls :py:func:`~oci.database.DatabaseClient.enable_autonomous_database_management` and waits for the oci.work_requests.models.WorkRequest
|
7836
|
+
to enter the given state(s).
|
7837
|
+
|
7838
|
+
:param str autonomous_database_id: (required)
|
7839
|
+
The database `OCID`__.
|
7840
|
+
|
7841
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7842
|
+
|
7843
|
+
:param list[str] work_request_states: (optional)
|
7844
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
7845
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
7846
|
+
|
7847
|
+
:param dict operation_kwargs:
|
7848
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.enable_autonomous_database_management`
|
7849
|
+
|
7850
|
+
:param dict waiter_kwargs:
|
7851
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
7852
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
7853
|
+
"""
|
7854
|
+
operation_result = self.client.enable_autonomous_database_management(autonomous_database_id, **operation_kwargs)
|
7855
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
7856
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
7857
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
7858
|
+
return operation_result
|
7859
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
7860
|
+
try:
|
7861
|
+
waiter_result = oci.wait_until(
|
7862
|
+
self._work_request_client,
|
7863
|
+
self._work_request_client.get_work_request(work_request_id),
|
7864
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
7865
|
+
**waiter_kwargs
|
7866
|
+
)
|
7867
|
+
return waiter_result
|
7868
|
+
except Exception as e:
|
7869
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
7870
|
+
|
7871
|
+
def enable_autonomous_database_operations_insights_and_wait_for_work_request(self, autonomous_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
7872
|
+
"""
|
7873
|
+
Calls :py:func:`~oci.database.DatabaseClient.enable_autonomous_database_operations_insights` and waits for the oci.work_requests.models.WorkRequest
|
7874
|
+
to enter the given state(s).
|
7875
|
+
|
7876
|
+
:param str autonomous_database_id: (required)
|
7877
|
+
The database `OCID`__.
|
7878
|
+
|
7879
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7880
|
+
|
7881
|
+
:param list[str] work_request_states: (optional)
|
7882
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
7883
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
7884
|
+
|
7885
|
+
:param dict operation_kwargs:
|
7886
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.enable_autonomous_database_operations_insights`
|
7887
|
+
|
7888
|
+
:param dict waiter_kwargs:
|
7889
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
7890
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
7891
|
+
"""
|
7892
|
+
operation_result = self.client.enable_autonomous_database_operations_insights(autonomous_database_id, **operation_kwargs)
|
7893
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
7894
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
7895
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
7896
|
+
return operation_result
|
7897
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
7898
|
+
try:
|
7899
|
+
waiter_result = oci.wait_until(
|
7900
|
+
self._work_request_client,
|
7901
|
+
self._work_request_client.get_work_request(work_request_id),
|
7902
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
7557
7903
|
**waiter_kwargs
|
7558
7904
|
)
|
7559
7905
|
return waiter_result
|
@@ -8146,6 +8492,88 @@ class DatabaseClientCompositeOperations(object):
|
|
8146
8492
|
except Exception as e:
|
8147
8493
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
8148
8494
|
|
8495
|
+
def failover_autonomous_container_database_dataguard_and_wait_for_work_request(self, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
8496
|
+
"""
|
8497
|
+
Calls :py:func:`~oci.database.DatabaseClient.failover_autonomous_container_database_dataguard` and waits for the oci.work_requests.models.WorkRequest
|
8498
|
+
to enter the given state(s).
|
8499
|
+
|
8500
|
+
:param str autonomous_container_database_id: (required)
|
8501
|
+
The Autonomous Container Database `OCID`__.
|
8502
|
+
|
8503
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
8504
|
+
|
8505
|
+
:param list[str] work_request_states: (optional)
|
8506
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
8507
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
8508
|
+
|
8509
|
+
:param dict operation_kwargs:
|
8510
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.failover_autonomous_container_database_dataguard`
|
8511
|
+
|
8512
|
+
:param dict waiter_kwargs:
|
8513
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
8514
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
8515
|
+
"""
|
8516
|
+
operation_result = self.client.failover_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
8517
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
8518
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
8519
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
8520
|
+
return operation_result
|
8521
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
8522
|
+
try:
|
8523
|
+
waiter_result = oci.wait_until(
|
8524
|
+
self._work_request_client,
|
8525
|
+
self._work_request_client.get_work_request(work_request_id),
|
8526
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
8527
|
+
**waiter_kwargs
|
8528
|
+
)
|
8529
|
+
return waiter_result
|
8530
|
+
except Exception as e:
|
8531
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
8532
|
+
|
8533
|
+
def failover_autonomous_container_database_dataguard_and_wait_for_state(self, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
8534
|
+
"""
|
8535
|
+
Calls :py:func:`~oci.database.DatabaseClient.failover_autonomous_container_database_dataguard` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
8536
|
+
to enter the given state(s).
|
8537
|
+
|
8538
|
+
:param str autonomous_container_database_id: (required)
|
8539
|
+
The Autonomous Container Database `OCID`__.
|
8540
|
+
|
8541
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
8542
|
+
|
8543
|
+
:param list[str] wait_for_states:
|
8544
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
8545
|
+
|
8546
|
+
:param dict operation_kwargs:
|
8547
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.failover_autonomous_container_database_dataguard`
|
8548
|
+
|
8549
|
+
:param dict waiter_kwargs:
|
8550
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
8551
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
8552
|
+
"""
|
8553
|
+
operation_result = self.client.failover_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
8554
|
+
if not wait_for_states:
|
8555
|
+
return operation_result
|
8556
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
8557
|
+
autonomous_container_database_id = operation_result.data.id
|
8558
|
+
|
8559
|
+
try:
|
8560
|
+
waiter_result = oci.wait_until(
|
8561
|
+
self.client,
|
8562
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
8563
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
8564
|
+
**waiter_kwargs
|
8565
|
+
)
|
8566
|
+
result_to_return = waiter_result
|
8567
|
+
|
8568
|
+
return result_to_return
|
8569
|
+
except (NameError, TypeError) as e:
|
8570
|
+
if not e.args:
|
8571
|
+
e.args = ('',)
|
8572
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
8573
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
8574
|
+
except Exception as e:
|
8575
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
8576
|
+
|
8149
8577
|
def failover_autonomous_container_database_dataguard_association_and_wait_for_work_request(self, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
8150
8578
|
"""
|
8151
8579
|
Calls :py:func:`~oci.database.DatabaseClient.failover_autonomous_container_database_dataguard_association` and waits for the oci.work_requests.models.WorkRequest
|
@@ -8682,6 +9110,98 @@ class DatabaseClientCompositeOperations(object):
|
|
8682
9110
|
except Exception as e:
|
8683
9111
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
8684
9112
|
|
9113
|
+
def migrate_autonomous_container_database_dataguard_association_and_wait_for_work_request(self, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
9114
|
+
"""
|
9115
|
+
Calls :py:func:`~oci.database.DatabaseClient.migrate_autonomous_container_database_dataguard_association` and waits for the oci.work_requests.models.WorkRequest
|
9116
|
+
to enter the given state(s).
|
9117
|
+
|
9118
|
+
:param str autonomous_container_database_id: (required)
|
9119
|
+
The Autonomous Container Database `OCID`__.
|
9120
|
+
|
9121
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9122
|
+
|
9123
|
+
:param str autonomous_container_database_dataguard_association_id: (required)
|
9124
|
+
The Autonomous Container Database-Autonomous Data Guard association `OCID`__.
|
9125
|
+
|
9126
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9127
|
+
|
9128
|
+
:param list[str] work_request_states: (optional)
|
9129
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
9130
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
9131
|
+
|
9132
|
+
:param dict operation_kwargs:
|
9133
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.migrate_autonomous_container_database_dataguard_association`
|
9134
|
+
|
9135
|
+
:param dict waiter_kwargs:
|
9136
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
9137
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
9138
|
+
"""
|
9139
|
+
operation_result = self.client.migrate_autonomous_container_database_dataguard_association(autonomous_container_database_id, autonomous_container_database_dataguard_association_id, **operation_kwargs)
|
9140
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
9141
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
9142
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
9143
|
+
return operation_result
|
9144
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
9145
|
+
try:
|
9146
|
+
waiter_result = oci.wait_until(
|
9147
|
+
self._work_request_client,
|
9148
|
+
self._work_request_client.get_work_request(work_request_id),
|
9149
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
9150
|
+
**waiter_kwargs
|
9151
|
+
)
|
9152
|
+
return waiter_result
|
9153
|
+
except Exception as e:
|
9154
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9155
|
+
|
9156
|
+
def migrate_autonomous_container_database_dataguard_association_and_wait_for_state(self, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
9157
|
+
"""
|
9158
|
+
Calls :py:func:`~oci.database.DatabaseClient.migrate_autonomous_container_database_dataguard_association` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabaseDataguardAssociation` acted upon
|
9159
|
+
to enter the given state(s).
|
9160
|
+
|
9161
|
+
:param str autonomous_container_database_id: (required)
|
9162
|
+
The Autonomous Container Database `OCID`__.
|
9163
|
+
|
9164
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9165
|
+
|
9166
|
+
:param str autonomous_container_database_dataguard_association_id: (required)
|
9167
|
+
The Autonomous Container Database-Autonomous Data Guard association `OCID`__.
|
9168
|
+
|
9169
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9170
|
+
|
9171
|
+
:param list[str] wait_for_states:
|
9172
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabaseDataguardAssociation.lifecycle_state`
|
9173
|
+
|
9174
|
+
:param dict operation_kwargs:
|
9175
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.migrate_autonomous_container_database_dataguard_association`
|
9176
|
+
|
9177
|
+
:param dict waiter_kwargs:
|
9178
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
9179
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
9180
|
+
"""
|
9181
|
+
operation_result = self.client.migrate_autonomous_container_database_dataguard_association(autonomous_container_database_id, autonomous_container_database_dataguard_association_id, **operation_kwargs)
|
9182
|
+
if not wait_for_states:
|
9183
|
+
return operation_result
|
9184
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
9185
|
+
autonomous_container_database_dataguard_association_id = operation_result.data.id
|
9186
|
+
|
9187
|
+
try:
|
9188
|
+
waiter_result = oci.wait_until(
|
9189
|
+
self.client,
|
9190
|
+
self.client.get_autonomous_container_database_dataguard_association(autonomous_container_database_id, autonomous_container_database_dataguard_association_id), # noqa: F821
|
9191
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
9192
|
+
**waiter_kwargs
|
9193
|
+
)
|
9194
|
+
result_to_return = waiter_result
|
9195
|
+
|
9196
|
+
return result_to_return
|
9197
|
+
except (NameError, TypeError) as e:
|
9198
|
+
if not e.args:
|
9199
|
+
e.args = ('',)
|
9200
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
9201
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9202
|
+
except Exception as e:
|
9203
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9204
|
+
|
8685
9205
|
def migrate_data_guard_association_to_multi_data_guards_and_wait_for_work_request(self, database_id, data_guard_association_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
8686
9206
|
"""
|
8687
9207
|
Calls :py:func:`~oci.database.DatabaseClient.migrate_data_guard_association_to_multi_data_guards` and waits for the oci.work_requests.models.WorkRequest
|
@@ -9284,6 +9804,88 @@ class DatabaseClientCompositeOperations(object):
|
|
9284
9804
|
except Exception as e:
|
9285
9805
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9286
9806
|
|
9807
|
+
def reinstate_autonomous_container_database_dataguard_and_wait_for_work_request(self, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
9808
|
+
"""
|
9809
|
+
Calls :py:func:`~oci.database.DatabaseClient.reinstate_autonomous_container_database_dataguard` and waits for the oci.work_requests.models.WorkRequest
|
9810
|
+
to enter the given state(s).
|
9811
|
+
|
9812
|
+
:param str autonomous_container_database_id: (required)
|
9813
|
+
The Autonomous Container Database `OCID`__.
|
9814
|
+
|
9815
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9816
|
+
|
9817
|
+
:param list[str] work_request_states: (optional)
|
9818
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
9819
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
9820
|
+
|
9821
|
+
:param dict operation_kwargs:
|
9822
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reinstate_autonomous_container_database_dataguard`
|
9823
|
+
|
9824
|
+
:param dict waiter_kwargs:
|
9825
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
9826
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
9827
|
+
"""
|
9828
|
+
operation_result = self.client.reinstate_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
9829
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
9830
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
9831
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
9832
|
+
return operation_result
|
9833
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
9834
|
+
try:
|
9835
|
+
waiter_result = oci.wait_until(
|
9836
|
+
self._work_request_client,
|
9837
|
+
self._work_request_client.get_work_request(work_request_id),
|
9838
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
9839
|
+
**waiter_kwargs
|
9840
|
+
)
|
9841
|
+
return waiter_result
|
9842
|
+
except Exception as e:
|
9843
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9844
|
+
|
9845
|
+
def reinstate_autonomous_container_database_dataguard_and_wait_for_state(self, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
9846
|
+
"""
|
9847
|
+
Calls :py:func:`~oci.database.DatabaseClient.reinstate_autonomous_container_database_dataguard` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
9848
|
+
to enter the given state(s).
|
9849
|
+
|
9850
|
+
:param str autonomous_container_database_id: (required)
|
9851
|
+
The Autonomous Container Database `OCID`__.
|
9852
|
+
|
9853
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9854
|
+
|
9855
|
+
:param list[str] wait_for_states:
|
9856
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
9857
|
+
|
9858
|
+
:param dict operation_kwargs:
|
9859
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reinstate_autonomous_container_database_dataguard`
|
9860
|
+
|
9861
|
+
:param dict waiter_kwargs:
|
9862
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
9863
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
9864
|
+
"""
|
9865
|
+
operation_result = self.client.reinstate_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
9866
|
+
if not wait_for_states:
|
9867
|
+
return operation_result
|
9868
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
9869
|
+
autonomous_container_database_id = operation_result.data.id
|
9870
|
+
|
9871
|
+
try:
|
9872
|
+
waiter_result = oci.wait_until(
|
9873
|
+
self.client,
|
9874
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
9875
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
9876
|
+
**waiter_kwargs
|
9877
|
+
)
|
9878
|
+
result_to_return = waiter_result
|
9879
|
+
|
9880
|
+
return result_to_return
|
9881
|
+
except (NameError, TypeError) as e:
|
9882
|
+
if not e.args:
|
9883
|
+
e.args = ('',)
|
9884
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
9885
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9886
|
+
except Exception as e:
|
9887
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
9888
|
+
|
9287
9889
|
def reinstate_autonomous_container_database_dataguard_association_and_wait_for_work_request(self, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
9288
9890
|
"""
|
9289
9891
|
Calls :py:func:`~oci.database.DatabaseClient.reinstate_autonomous_container_database_dataguard_association` and waits for the oci.work_requests.models.WorkRequest
|
@@ -11764,6 +12366,88 @@ class DatabaseClientCompositeOperations(object):
|
|
11764
12366
|
except Exception as e:
|
11765
12367
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
11766
12368
|
|
12369
|
+
def switchover_autonomous_container_database_dataguard_and_wait_for_work_request(self, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
12370
|
+
"""
|
12371
|
+
Calls :py:func:`~oci.database.DatabaseClient.switchover_autonomous_container_database_dataguard` and waits for the oci.work_requests.models.WorkRequest
|
12372
|
+
to enter the given state(s).
|
12373
|
+
|
12374
|
+
:param str autonomous_container_database_id: (required)
|
12375
|
+
The Autonomous Container Database `OCID`__.
|
12376
|
+
|
12377
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
12378
|
+
|
12379
|
+
:param list[str] work_request_states: (optional)
|
12380
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
12381
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
12382
|
+
|
12383
|
+
:param dict operation_kwargs:
|
12384
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.switchover_autonomous_container_database_dataguard`
|
12385
|
+
|
12386
|
+
:param dict waiter_kwargs:
|
12387
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
12388
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
12389
|
+
"""
|
12390
|
+
operation_result = self.client.switchover_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
12391
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
12392
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
12393
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
12394
|
+
return operation_result
|
12395
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
12396
|
+
try:
|
12397
|
+
waiter_result = oci.wait_until(
|
12398
|
+
self._work_request_client,
|
12399
|
+
self._work_request_client.get_work_request(work_request_id),
|
12400
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
12401
|
+
**waiter_kwargs
|
12402
|
+
)
|
12403
|
+
return waiter_result
|
12404
|
+
except Exception as e:
|
12405
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
12406
|
+
|
12407
|
+
def switchover_autonomous_container_database_dataguard_and_wait_for_state(self, autonomous_container_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
12408
|
+
"""
|
12409
|
+
Calls :py:func:`~oci.database.DatabaseClient.switchover_autonomous_container_database_dataguard` and waits for the :py:class:`~oci.database.models.AutonomousContainerDatabase` acted upon
|
12410
|
+
to enter the given state(s).
|
12411
|
+
|
12412
|
+
:param str autonomous_container_database_id: (required)
|
12413
|
+
The Autonomous Container Database `OCID`__.
|
12414
|
+
|
12415
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
12416
|
+
|
12417
|
+
:param list[str] wait_for_states:
|
12418
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.AutonomousContainerDatabase.lifecycle_state`
|
12419
|
+
|
12420
|
+
:param dict operation_kwargs:
|
12421
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.switchover_autonomous_container_database_dataguard`
|
12422
|
+
|
12423
|
+
:param dict waiter_kwargs:
|
12424
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
12425
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
12426
|
+
"""
|
12427
|
+
operation_result = self.client.switchover_autonomous_container_database_dataguard(autonomous_container_database_id, **operation_kwargs)
|
12428
|
+
if not wait_for_states:
|
12429
|
+
return operation_result
|
12430
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
12431
|
+
autonomous_container_database_id = operation_result.data.id
|
12432
|
+
|
12433
|
+
try:
|
12434
|
+
waiter_result = oci.wait_until(
|
12435
|
+
self.client,
|
12436
|
+
self.client.get_autonomous_container_database(autonomous_container_database_id), # noqa: F821
|
12437
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
12438
|
+
**waiter_kwargs
|
12439
|
+
)
|
12440
|
+
result_to_return = waiter_result
|
12441
|
+
|
12442
|
+
return result_to_return
|
12443
|
+
except (NameError, TypeError) as e:
|
12444
|
+
if not e.args:
|
12445
|
+
e.args = ('',)
|
12446
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
12447
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
12448
|
+
except Exception as e:
|
12449
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
12450
|
+
|
11767
12451
|
def switchover_autonomous_container_database_dataguard_association_and_wait_for_work_request(self, autonomous_container_database_id, autonomous_container_database_dataguard_association_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
11768
12452
|
"""
|
11769
12453
|
Calls :py:func:`~oci.database.DatabaseClient.switchover_autonomous_container_database_dataguard_association` and waits for the oci.work_requests.models.WorkRequest
|
@@ -12812,6 +13496,94 @@ class DatabaseClientCompositeOperations(object):
|
|
12812
13496
|
except Exception as e:
|
12813
13497
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
12814
13498
|
|
13499
|
+
def update_backup_and_wait_for_work_request(self, backup_id, update_backup_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
|
13500
|
+
"""
|
13501
|
+
Calls :py:func:`~oci.database.DatabaseClient.update_backup` and waits for the oci.work_requests.models.WorkRequest
|
13502
|
+
to enter the given state(s).
|
13503
|
+
|
13504
|
+
:param str backup_id: (required)
|
13505
|
+
The backup `OCID`__.
|
13506
|
+
|
13507
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
13508
|
+
|
13509
|
+
:param oci.database.models.UpdateBackupDetails update_backup_details: (required)
|
13510
|
+
Request to update the properties of a Backup.
|
13511
|
+
|
13512
|
+
:param list[str] work_request_states: (optional)
|
13513
|
+
An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
|
13514
|
+
Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
|
13515
|
+
|
13516
|
+
:param dict operation_kwargs:
|
13517
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_backup`
|
13518
|
+
|
13519
|
+
:param dict waiter_kwargs:
|
13520
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
13521
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
13522
|
+
"""
|
13523
|
+
operation_result = self.client.update_backup(backup_id, update_backup_details, **operation_kwargs)
|
13524
|
+
work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
|
13525
|
+
lowered_work_request_states = [w.lower() for w in work_request_states]
|
13526
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
13527
|
+
return operation_result
|
13528
|
+
work_request_id = operation_result.headers['opc-work-request-id']
|
13529
|
+
try:
|
13530
|
+
waiter_result = oci.wait_until(
|
13531
|
+
self._work_request_client,
|
13532
|
+
self._work_request_client.get_work_request(work_request_id),
|
13533
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
|
13534
|
+
**waiter_kwargs
|
13535
|
+
)
|
13536
|
+
return waiter_result
|
13537
|
+
except Exception as e:
|
13538
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
13539
|
+
|
13540
|
+
def update_backup_and_wait_for_state(self, backup_id, update_backup_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
13541
|
+
"""
|
13542
|
+
Calls :py:func:`~oci.database.DatabaseClient.update_backup` and waits for the :py:class:`~oci.database.models.Backup` acted upon
|
13543
|
+
to enter the given state(s).
|
13544
|
+
|
13545
|
+
:param str backup_id: (required)
|
13546
|
+
The backup `OCID`__.
|
13547
|
+
|
13548
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
13549
|
+
|
13550
|
+
:param oci.database.models.UpdateBackupDetails update_backup_details: (required)
|
13551
|
+
Request to update the properties of a Backup.
|
13552
|
+
|
13553
|
+
:param list[str] wait_for_states:
|
13554
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.Backup.lifecycle_state`
|
13555
|
+
|
13556
|
+
:param dict operation_kwargs:
|
13557
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_backup`
|
13558
|
+
|
13559
|
+
:param dict waiter_kwargs:
|
13560
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
13561
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
13562
|
+
"""
|
13563
|
+
operation_result = self.client.update_backup(backup_id, update_backup_details, **operation_kwargs)
|
13564
|
+
if not wait_for_states:
|
13565
|
+
return operation_result
|
13566
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
13567
|
+
backup_id = operation_result.data.id
|
13568
|
+
|
13569
|
+
try:
|
13570
|
+
waiter_result = oci.wait_until(
|
13571
|
+
self.client,
|
13572
|
+
self.client.get_backup(backup_id), # noqa: F821
|
13573
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
13574
|
+
**waiter_kwargs
|
13575
|
+
)
|
13576
|
+
result_to_return = waiter_result
|
13577
|
+
|
13578
|
+
return result_to_return
|
13579
|
+
except (NameError, TypeError) as e:
|
13580
|
+
if not e.args:
|
13581
|
+
e.args = ('',)
|
13582
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
13583
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
13584
|
+
except Exception as e:
|
13585
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
13586
|
+
|
12815
13587
|
def update_backup_destination_and_wait_for_state(self, backup_destination_id, update_backup_destination_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
12816
13588
|
"""
|
12817
13589
|
Calls :py:func:`~oci.database.DatabaseClient.update_backup_destination` and waits for the :py:class:`~oci.database.models.BackupDestination` acted upon
|