oci 2.152.0__py3-none-any.whl → 2.153.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/addons/adk/auth/__init__.py +2 -0
- oci/addons/adk/auth/oci/__init__.py +2 -0
- oci/addons/adk/run/__init__.py +2 -0
- oci/addons/adk/tool/function_tool.py +2 -1
- oci/adm/application_dependency_management_client.py +38 -38
- oci/adm/models/application_dependency.py +4 -3
- oci/adm/models/application_dependency_recommendation_summary.py +4 -4
- oci/adm/models/application_dependency_vulnerability_summary.py +57 -6
- oci/adm/models/detect_configuration.py +7 -7
- oci/adm/models/network_configuration.py +1 -2
- oci/adm/models/vulnerability.py +8 -4
- 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 +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +30 -30
- oci/apm_synthetics/models/create_script_details.py +10 -6
- oci/apm_synthetics/models/monitor.py +51 -0
- oci/apm_synthetics/models/monitor_result.py +2 -2
- oci/apm_synthetics/models/script.py +9 -5
- oci/apm_synthetics/models/script_summary.py +7 -3
- oci/apm_synthetics/models/update_script_details.py +10 -6
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +578 -86
- oci/bds/bds_client_composite_operations.py +42 -0
- oci/bds/models/__init__.py +26 -0
- oci/bds/models/bds_capacity_report.py +132 -0
- oci/bds/models/bds_software_update.py +109 -0
- oci/bds/models/capacity_availability.py +121 -0
- oci/bds/models/capacity_report_shape_availability.py +128 -0
- oci/bds/models/create_bds_capacity_report_details.py +101 -0
- oci/bds/models/create_capacity_report_shape_availability_details.py +97 -0
- oci/bds/models/domain_type_capacity_report.py +107 -0
- oci/bds/models/install_os_patch_details.py +33 -2
- oci/bds/models/install_software_updates_details.py +70 -0
- oci/bds/models/multi_ad_capacity_report.py +107 -0
- oci/bds/models/os_patch_package_summary.py +57 -2
- oci/bds/models/patch_history_summary.py +13 -7
- oci/bds/models/single_ad_capacity_report.py +107 -0
- oci/bds/models/software_update.py +253 -0
- oci/bds/models/software_update_collection.py +70 -0
- oci/bds/models/software_update_summary.py +194 -0
- oci/bds/models/work_request.py +7 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/__init__.py +5 -1
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/capacity_management/demand_signal_client.py +1645 -0
- oci/capacity_management/demand_signal_client_composite_operations.py +318 -0
- oci/capacity_management/internal_demand_signal_client.py +1605 -0
- oci/capacity_management/internal_demand_signal_client_composite_operations.py +172 -0
- oci/capacity_management/models/__init__.py +79 -1
- oci/capacity_management/models/bulk_create_occm_demand_signal_item.py +400 -0
- oci/capacity_management/models/bulk_create_occm_demand_signal_item_details.py +101 -0
- oci/capacity_management/models/create_internal_occm_demand_signal_delivery_details.py +322 -0
- oci/capacity_management/models/create_occm_demand_signal_details.py +198 -0
- oci/capacity_management/models/create_occm_demand_signal_item_details.py +462 -0
- oci/capacity_management/models/internal_occm_demand_signal.py +431 -0
- oci/capacity_management/models/internal_occm_demand_signal_catalog_resource.py +620 -0
- oci/capacity_management/models/internal_occm_demand_signal_catalog_resource_collection.py +70 -0
- oci/capacity_management/models/internal_occm_demand_signal_catalog_resource_summary.py +588 -0
- oci/capacity_management/models/internal_occm_demand_signal_collection.py +70 -0
- oci/capacity_management/models/internal_occm_demand_signal_delivery.py +555 -0
- oci/capacity_management/models/internal_occm_demand_signal_delivery_collection.py +70 -0
- oci/capacity_management/models/internal_occm_demand_signal_delivery_summary.py +495 -0
- oci/capacity_management/models/internal_occm_demand_signal_item_collection.py +70 -0
- oci/capacity_management/models/internal_occm_demand_signal_item_summary.py +674 -0
- oci/capacity_management/models/internal_occm_demand_signal_summary.py +431 -0
- oci/capacity_management/models/occm_demand_signal.py +464 -0
- oci/capacity_management/models/occm_demand_signal_catalog.py +418 -0
- oci/capacity_management/models/occm_demand_signal_catalog_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_catalog_resource.py +558 -0
- oci/capacity_management/models/occm_demand_signal_catalog_resource_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_catalog_resource_summary.py +526 -0
- oci/capacity_management/models/occm_demand_signal_catalog_summary.py +386 -0
- oci/capacity_management/models/occm_demand_signal_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_delivery_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_delivery_summary.py +481 -0
- oci/capacity_management/models/occm_demand_signal_item.py +675 -0
- oci/capacity_management/models/occm_demand_signal_item_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_item_summary.py +643 -0
- oci/capacity_management/models/occm_demand_signal_resource_properties_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_resource_properties_summary.py +256 -0
- oci/capacity_management/models/occm_demand_signal_resource_property_constraints_collection.py +70 -0
- oci/capacity_management/models/occm_demand_signal_resource_property_constraints_summary.py +101 -0
- oci/capacity_management/models/occm_demand_signal_resource_property_option_summary.py +101 -0
- oci/capacity_management/models/occm_demand_signal_summary.py +400 -0
- oci/capacity_management/models/update_internal_occm_demand_signal_delivery_details.py +260 -0
- oci/capacity_management/models/update_internal_occm_demand_signal_details.py +98 -0
- oci/capacity_management/models/update_occm_demand_signal_details.py +210 -0
- oci/capacity_management/models/update_occm_demand_signal_item_details.py +326 -0
- 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 +46 -46
- oci/container_engine/models/cluster.py +33 -2
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +1095 -163
- oci/core/compute_client_composite_operations.py +403 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +30 -0
- oci/core/models/attach_compute_host_group_host_details.py +74 -0
- oci/core/models/change_compute_host_group_compartment_details.py +76 -0
- oci/core/models/compute_bare_metal_host_placement_constraint_details.py +79 -0
- oci/core/models/compute_host.py +191 -0
- oci/core/models/compute_host_configuration_check_details.py +243 -0
- oci/core/models/compute_host_configuration_data.py +97 -0
- oci/core/models/compute_host_group.py +483 -0
- oci/core/models/compute_host_group_collection.py +70 -0
- oci/core/models/compute_host_group_summary.py +428 -0
- oci/core/models/compute_host_summary.py +62 -0
- oci/core/models/create_compute_host_group_details.py +282 -0
- oci/core/models/create_dedicated_vm_host_details.py +29 -2
- oci/core/models/create_ipv6_details.py +4 -4
- oci/core/models/create_local_peering_gateway_details.py +45 -0
- oci/core/models/create_private_ip_details.py +4 -4
- oci/core/models/create_vcn_details.py +33 -2
- oci/core/models/create_volume_details.py +8 -2
- oci/core/models/dedicated_vm_host.py +27 -0
- oci/core/models/detach_compute_host_group_host_details.py +74 -0
- oci/core/models/host_group_configuration.py +152 -0
- oci/core/models/host_group_placement_constraint_details.py +79 -0
- oci/core/models/instance.py +64 -2
- oci/core/models/instance_configuration_create_volume_details.py +8 -2
- oci/core/models/ipv6.py +4 -4
- oci/core/models/launch_instance_details.py +58 -0
- oci/core/models/local_peering_gateway.py +45 -0
- oci/core/models/placement_constraint_details.py +91 -0
- oci/core/models/private_ip.py +4 -4
- oci/core/models/recycle_details.py +125 -0
- oci/core/models/update_compute_host_group_details.py +216 -0
- oci/core/models/update_ipv6_details.py +4 -4
- oci/core/models/update_local_peering_gateway_details.py +45 -0
- oci/core/models/update_private_ip_details.py +4 -4
- oci/core/models/update_vcn_details.py +33 -2
- oci/core/models/update_vnic_details.py +2 -2
- oci/core/models/update_volume_details.py +8 -2
- oci/core/models/vcn.py +33 -2
- oci/core/models/vnic.py +2 -2
- oci/core/models/volume.py +8 -2
- oci/core/virtual_network_client.py +260 -260
- 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 +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +795 -508
- oci/database/models/__init__.py +2 -0
- oci/database/models/autonomous_container_database.py +2 -2
- oci/database/models/autonomous_container_database_summary.py +2 -2
- oci/database/models/autonomous_db_version_summary.py +31 -0
- oci/database/models/backup.py +11 -5
- oci/database/models/backup_summary.py +11 -5
- oci/database/models/create_database_base.py +1 -1
- oci/database/models/create_external_backup_job_details.py +11 -7
- oci/database/models/db_system.py +11 -5
- oci/database/models/db_system_summary.py +11 -5
- oci/database/models/db_system_upgrade_summary.py +152 -0
- oci/database/models/external_container_database.py +11 -5
- oci/database/models/external_container_database_summary.py +11 -5
- oci/database/models/external_database_base.py +11 -5
- oci/database/models/external_non_container_database.py +11 -5
- oci/database/models/external_non_container_database_summary.py +11 -5
- oci/database/models/external_pluggable_database.py +11 -5
- oci/database/models/external_pluggable_database_summary.py +11 -5
- oci/database/models/launch_db_system_details.py +7 -3
- oci/database/models/launch_db_system_from_backup_details.py +7 -3
- oci/database/models/launch_db_system_from_database_details.py +7 -3
- oci/database_management/db_management_client.py +229 -229
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +14 -14
- 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/distributed_database/__init__.py +20 -0
- oci/distributed_database/distributed_autonomous_db_service_client.py +2315 -0
- oci/distributed_database/distributed_autonomous_db_service_client_composite_operations.py +605 -0
- oci/distributed_database/distributed_db_private_endpoint_service_client.py +944 -0
- oci/distributed_database/distributed_db_private_endpoint_service_client_composite_operations.py +238 -0
- oci/distributed_database/distributed_db_service_client.py +2435 -0
- oci/distributed_database/distributed_db_service_client_composite_operations.py +647 -0
- oci/distributed_database/distributed_db_work_request_service_client.py +654 -0
- oci/distributed_database/distributed_db_work_request_service_client_composite_operations.py +26 -0
- oci/distributed_database/models/__init__.py +158 -0
- oci/distributed_database/models/add_distributed_autonomous_database_gds_control_node_details.py +105 -0
- oci/distributed_database/models/add_distributed_database_gds_control_node_details.py +105 -0
- oci/distributed_database/models/catalog_peer_with_dedicated_infra.py +331 -0
- oci/distributed_database/models/catalog_peer_with_exadb_xs.py +331 -0
- oci/distributed_database/models/change_distributed_autonomous_database_compartment_details.py +74 -0
- oci/distributed_database/models/change_distributed_database_compartment_details.py +74 -0
- oci/distributed_database/models/change_distributed_database_private_endpoint_compartment_details.py +74 -0
- oci/distributed_database/models/change_distributed_db_backup_config_details.py +66 -0
- oci/distributed_database/models/configure_distributed_autonomous_database_gsms_details.py +103 -0
- oci/distributed_database/models/configure_distributed_database_gsms_details.py +103 -0
- oci/distributed_database/models/create_distributed_autonomous_database_catalog_details.py +101 -0
- oci/distributed_database/models/create_distributed_autonomous_database_catalog_with_dedicated_infra_details.py +342 -0
- oci/distributed_database/models/create_distributed_autonomous_database_details.py +799 -0
- oci/distributed_database/models/create_distributed_autonomous_database_shard_details.py +101 -0
- oci/distributed_database/models/create_distributed_autonomous_database_shard_with_dedicated_infra_details.py +377 -0
- oci/distributed_database/models/create_distributed_database_catalog_details.py +99 -0
- oci/distributed_database/models/create_distributed_database_catalog_with_exadb_xs_details.py +282 -0
- oci/distributed_database/models/create_distributed_database_details.py +810 -0
- oci/distributed_database/models/create_distributed_database_private_endpoint_details.py +260 -0
- oci/distributed_database/models/create_distributed_database_shard_details.py +99 -0
- oci/distributed_database/models/create_distributed_database_shard_with_exadb_xs_details.py +282 -0
- oci/distributed_database/models/distributed_autonomous_database.py +1143 -0
- oci/distributed_database/models/distributed_autonomous_database_associated_with_private_endpoint.py +105 -0
- oci/distributed_database/models/distributed_autonomous_database_catalog.py +194 -0
- oci/distributed_database/models/distributed_autonomous_database_catalog_with_dedicated_infra.py +559 -0
- oci/distributed_database/models/distributed_autonomous_database_collection.py +70 -0
- oci/distributed_database/models/distributed_autonomous_database_connection_string.py +70 -0
- oci/distributed_database/models/distributed_autonomous_database_gsm.py +385 -0
- oci/distributed_database/models/distributed_autonomous_database_gsm_image.py +105 -0
- oci/distributed_database/models/distributed_autonomous_database_shard.py +194 -0
- oci/distributed_database/models/distributed_autonomous_database_shard_with_dedicated_infra.py +592 -0
- oci/distributed_database/models/distributed_autonomous_database_summary.py +935 -0
- oci/distributed_database/models/distributed_autonomous_db_metadata.py +70 -0
- oci/distributed_database/models/distributed_database.py +1154 -0
- oci/distributed_database/models/distributed_database_associated_with_private_endpoint.py +105 -0
- oci/distributed_database/models/distributed_database_catalog.py +192 -0
- oci/distributed_database/models/distributed_database_catalog_with_exadb_xs.py +466 -0
- oci/distributed_database/models/distributed_database_collection.py +70 -0
- oci/distributed_database/models/distributed_database_gsm.py +385 -0
- oci/distributed_database/models/distributed_database_private_endpoint.py +639 -0
- oci/distributed_database/models/distributed_database_private_endpoint_collection.py +70 -0
- oci/distributed_database/models/distributed_database_private_endpoint_summary.py +479 -0
- oci/distributed_database/models/distributed_database_shard.py +192 -0
- oci/distributed_database/models/distributed_database_shard_with_exadb_xs.py +499 -0
- oci/distributed_database/models/distributed_database_summary.py +904 -0
- oci/distributed_database/models/distributed_db_backup_config.py +536 -0
- oci/distributed_database/models/distributed_db_backup_destination.py +362 -0
- oci/distributed_database/models/distributed_db_connection_string.py +70 -0
- oci/distributed_database/models/distributed_db_gsm_image.py +105 -0
- oci/distributed_database/models/distributed_db_metadata.py +70 -0
- oci/distributed_database/models/generate_distributed_autonomous_database_wallet_details.py +70 -0
- oci/distributed_database/models/generate_distributed_database_wallet_details.py +70 -0
- oci/distributed_database/models/patch_distributed_autonomous_database_details.py +73 -0
- oci/distributed_database/models/patch_distributed_database_details.py +73 -0
- oci/distributed_database/models/patch_insert_instruction.py +87 -0
- oci/distributed_database/models/patch_instruction.py +154 -0
- oci/distributed_database/models/patch_merge_instruction.py +95 -0
- oci/distributed_database/models/patch_remove_instruction.py +57 -0
- oci/distributed_database/models/shard_peer_with_dedicated_infra.py +331 -0
- oci/distributed_database/models/shard_peer_with_exadb_xs.py +331 -0
- oci/distributed_database/models/update_distributed_autonomous_database_details.py +136 -0
- oci/distributed_database/models/update_distributed_database_details.py +136 -0
- oci/distributed_database/models/update_distributed_database_private_endpoint_details.py +198 -0
- oci/distributed_database/models/upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details.py +71 -0
- oci/distributed_database/models/upload_distributed_database_signed_certificate_and_generate_wallet_details.py +71 -0
- oci/distributed_database/models/work_request.py +516 -0
- oci/distributed_database/models/work_request_error.py +134 -0
- oci/distributed_database/models/work_request_error_collection.py +70 -0
- oci/distributed_database/models/work_request_log_entry.py +101 -0
- oci/distributed_database/models/work_request_log_entry_collection.py +70 -0
- oci/distributed_database/models/work_request_resource.py +232 -0
- oci/distributed_database/models/work_request_summary.py +516 -0
- oci/distributed_database/models/work_request_summary_collection.py +70 -0
- 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_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
- oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
- oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
- oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
- oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
- 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 +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- 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 +89 -89
- 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/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +200 -200
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +474 -14
- oci/management_dashboard/models/management_dashboard_tile_details.py +33 -2
- 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/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/model_deployment/model_deployment_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/__init__.py +6 -0
- oci/mysql/models/create_db_system_details.py +58 -0
- oci/mysql/models/create_rest_details.py +117 -0
- oci/mysql/models/db_system.py +58 -0
- oci/mysql/models/db_system_snapshot.py +58 -0
- oci/mysql/models/db_system_summary.py +27 -0
- oci/mysql/models/replica.py +31 -0
- oci/mysql/models/replica_overrides.py +33 -2
- oci/mysql/models/replica_summary.py +31 -0
- oci/mysql/models/rest_details.py +117 -0
- oci/mysql/models/update_db_system_details.py +58 -0
- oci/mysql/models/update_rest_details.py +117 -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/models/__init__.py +24 -0
- oci/network_firewall/models/create_nat_rule_details.py +193 -0
- oci/network_firewall/models/create_nat_v4_rule_details.py +144 -0
- oci/network_firewall/models/create_network_firewall_details.py +27 -0
- oci/network_firewall/models/nat_configuration_request.py +70 -0
- oci/network_firewall/models/nat_configuration_response.py +101 -0
- oci/network_firewall/models/nat_rule.py +254 -0
- oci/network_firewall/models/nat_rule_collection.py +70 -0
- oci/network_firewall/models/nat_rule_match_criteria.py +132 -0
- oci/network_firewall/models/nat_rule_summary.py +228 -0
- oci/network_firewall/models/nat_v4_nat_rule.py +159 -0
- oci/network_firewall/models/nat_v4_nat_summary.py +152 -0
- oci/network_firewall/models/network_firewall.py +30 -11
- oci/network_firewall/models/network_firewall_policy.py +3 -11
- oci/network_firewall/models/network_firewall_policy_summary.py +3 -11
- oci/network_firewall/models/network_firewall_summary.py +30 -11
- oci/network_firewall/models/update_nat_rule_details.py +162 -0
- oci/network_firewall/models/update_nat_v4_rule_details.py +137 -0
- oci/network_firewall/models/update_network_firewall_details.py +27 -0
- oci/network_firewall/network_firewall_client.py +848 -108
- oci/network_firewall/network_firewall_client_composite_operations.py +42 -0
- 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 +17 -17
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- 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 +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +34 -34
- 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/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +14 -14
- 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/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/models/average_carbon_emission.py +3 -3
- oci/usage_api/models/create_email_recipients_group_details.py +3 -3
- oci/usage_api/models/email_recipient.py +6 -6
- oci/usage_api/models/email_recipients_group.py +5 -5
- oci/usage_api/models/email_recipients_group_collection.py +3 -3
- oci/usage_api/models/email_recipients_group_summary.py +5 -5
- oci/usage_api/models/forecast.py +5 -3
- oci/usage_api/models/report_query.py +16 -16
- oci/usage_api/models/request_summarized_usages_details.py +4 -4
- oci/usage_api/models/request_usage_carbon_emissions_details.py +143 -2
- oci/usage_api/models/saved_custom_table.py +4 -4
- oci/usage_api/models/scheduled_run.py +12 -12
- oci/usage_api/models/scheduled_run_summary.py +12 -12
- oci/usage_api/models/update_email_recipients_group_details.py +3 -3
- oci/usage_api/models/usage_carbon_emission_aggregation.py +5 -5
- oci/usage_api/models/usage_carbon_emission_summary.py +36 -5
- oci/usage_api/models/usage_carbon_emissions_query.py +1 -1
- oci/usage_api/models/usage_carbon_emissions_query_collection.py +1 -1
- oci/usage_api/models/usage_carbon_emissions_query_summary.py +1 -1
- oci/usage_api/models/usage_carbon_emissions_report_query.py +98 -5
- oci/usage_api/usageapi_client.py +69 -69
- oci/usage_api/usageapi_client_composite_operations.py +4 -4
- 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.152.0.dist-info → oci-2.153.0.dist-info}/METADATA +1 -1
- {oci-2.152.0.dist-info → oci-2.153.0.dist-info}/RECORD +548 -378
- {oci-2.152.0.dist-info → oci-2.153.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.152.0.dist-info → oci-2.153.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.152.0.dist-info → oci-2.153.0.dist-info}/WHEEL +0 -0
- {oci-2.152.0.dist-info → oci-2.153.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,605 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250101
|
6
|
+
|
7
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class DistributedAutonomousDbServiceClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.distributed_database.DistributedAutonomousDbServiceClient` and offers convenience methods
|
14
|
+
for operations that would otherwise need to be chained together. For example, instead of performing an action
|
15
|
+
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
16
|
+
to enter a given state, you can call a single method in this class to accomplish the same functionality
|
17
|
+
"""
|
18
|
+
|
19
|
+
def __init__(self, client, **kwargs):
|
20
|
+
"""
|
21
|
+
Creates a new DistributedAutonomousDbServiceClientCompositeOperations object
|
22
|
+
|
23
|
+
:param DistributedAutonomousDbServiceClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def add_distributed_autonomous_database_gds_control_node_and_wait_for_state(self, distributed_autonomous_database_id, add_distributed_autonomous_database_gds_control_node_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.add_distributed_autonomous_database_gds_control_node` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param str distributed_autonomous_database_id: (required)
|
34
|
+
Globally distributed autonomous database identifier
|
35
|
+
|
36
|
+
:param oci.distributed_database.models.AddDistributedAutonomousDatabaseGdsControlNodeDetails add_distributed_autonomous_database_gds_control_node_details: (required)
|
37
|
+
Details required to provision the new Global database services control(GDS CTL) node for the Distributed autonomous database.
|
38
|
+
|
39
|
+
:param list[str] wait_for_states:
|
40
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
41
|
+
|
42
|
+
:param dict operation_kwargs:
|
43
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.add_distributed_autonomous_database_gds_control_node`
|
44
|
+
|
45
|
+
:param dict waiter_kwargs:
|
46
|
+
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``
|
47
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
48
|
+
"""
|
49
|
+
operation_result = self.client.add_distributed_autonomous_database_gds_control_node(distributed_autonomous_database_id, add_distributed_autonomous_database_gds_control_node_details, **operation_kwargs)
|
50
|
+
if not wait_for_states:
|
51
|
+
return operation_result
|
52
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
53
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
54
|
+
return operation_result
|
55
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
56
|
+
|
57
|
+
try:
|
58
|
+
waiter_result = oci.wait_until(
|
59
|
+
self.client,
|
60
|
+
self.client.get_work_request(wait_for_resource_id),
|
61
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
62
|
+
**waiter_kwargs
|
63
|
+
)
|
64
|
+
result_to_return = waiter_result
|
65
|
+
|
66
|
+
return result_to_return
|
67
|
+
except Exception as e:
|
68
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
69
|
+
|
70
|
+
def change_distributed_autonomous_database_compartment_and_wait_for_state(self, change_distributed_autonomous_database_compartment_details, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
71
|
+
"""
|
72
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.change_distributed_autonomous_database_compartment` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
73
|
+
to enter the given state(s).
|
74
|
+
|
75
|
+
:param oci.distributed_database.models.ChangeDistributedAutonomousDatabaseCompartmentDetails change_distributed_autonomous_database_compartment_details: (required)
|
76
|
+
Request to move the Globally distributed autonomous database to a different compartment.
|
77
|
+
|
78
|
+
:param str distributed_autonomous_database_id: (required)
|
79
|
+
Globally distributed autonomous database identifier
|
80
|
+
|
81
|
+
:param list[str] wait_for_states:
|
82
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
83
|
+
|
84
|
+
:param dict operation_kwargs:
|
85
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.change_distributed_autonomous_database_compartment`
|
86
|
+
|
87
|
+
:param dict waiter_kwargs:
|
88
|
+
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``
|
89
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
90
|
+
"""
|
91
|
+
operation_result = self.client.change_distributed_autonomous_database_compartment(change_distributed_autonomous_database_compartment_details, distributed_autonomous_database_id, **operation_kwargs)
|
92
|
+
if not wait_for_states:
|
93
|
+
return operation_result
|
94
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
95
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
96
|
+
return operation_result
|
97
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
98
|
+
|
99
|
+
try:
|
100
|
+
waiter_result = oci.wait_until(
|
101
|
+
self.client,
|
102
|
+
self.client.get_work_request(wait_for_resource_id),
|
103
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
104
|
+
**waiter_kwargs
|
105
|
+
)
|
106
|
+
result_to_return = waiter_result
|
107
|
+
|
108
|
+
return result_to_return
|
109
|
+
except Exception as e:
|
110
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
111
|
+
|
112
|
+
def configure_distributed_autonomous_database_gsms_and_wait_for_state(self, configure_distributed_autonomous_database_gsms_details, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
113
|
+
"""
|
114
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.configure_distributed_autonomous_database_gsms` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
115
|
+
to enter the given state(s).
|
116
|
+
|
117
|
+
:param oci.distributed_database.models.ConfigureDistributedAutonomousDatabaseGsmsDetails configure_distributed_autonomous_database_gsms_details: (required)
|
118
|
+
Details to configure the new GSM instances for the distributed autonomous database.
|
119
|
+
|
120
|
+
:param str distributed_autonomous_database_id: (required)
|
121
|
+
Globally distributed autonomous database identifier
|
122
|
+
|
123
|
+
:param list[str] wait_for_states:
|
124
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
125
|
+
|
126
|
+
:param dict operation_kwargs:
|
127
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.configure_distributed_autonomous_database_gsms`
|
128
|
+
|
129
|
+
:param dict waiter_kwargs:
|
130
|
+
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``
|
131
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
132
|
+
"""
|
133
|
+
operation_result = self.client.configure_distributed_autonomous_database_gsms(configure_distributed_autonomous_database_gsms_details, distributed_autonomous_database_id, **operation_kwargs)
|
134
|
+
if not wait_for_states:
|
135
|
+
return operation_result
|
136
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
137
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
138
|
+
return operation_result
|
139
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
140
|
+
|
141
|
+
try:
|
142
|
+
waiter_result = oci.wait_until(
|
143
|
+
self.client,
|
144
|
+
self.client.get_work_request(wait_for_resource_id),
|
145
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
146
|
+
**waiter_kwargs
|
147
|
+
)
|
148
|
+
result_to_return = waiter_result
|
149
|
+
|
150
|
+
return result_to_return
|
151
|
+
except Exception as e:
|
152
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
153
|
+
|
154
|
+
def configure_distributed_autonomous_database_sharding_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
155
|
+
"""
|
156
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.configure_distributed_autonomous_database_sharding` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
157
|
+
to enter the given state(s).
|
158
|
+
|
159
|
+
:param str distributed_autonomous_database_id: (required)
|
160
|
+
Globally distributed autonomous database identifier
|
161
|
+
|
162
|
+
:param list[str] wait_for_states:
|
163
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
164
|
+
|
165
|
+
:param dict operation_kwargs:
|
166
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.configure_distributed_autonomous_database_sharding`
|
167
|
+
|
168
|
+
:param dict waiter_kwargs:
|
169
|
+
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``
|
170
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
171
|
+
"""
|
172
|
+
operation_result = self.client.configure_distributed_autonomous_database_sharding(distributed_autonomous_database_id, **operation_kwargs)
|
173
|
+
if not wait_for_states:
|
174
|
+
return operation_result
|
175
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
176
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
177
|
+
return operation_result
|
178
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
179
|
+
|
180
|
+
try:
|
181
|
+
waiter_result = oci.wait_until(
|
182
|
+
self.client,
|
183
|
+
self.client.get_work_request(wait_for_resource_id),
|
184
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
185
|
+
**waiter_kwargs
|
186
|
+
)
|
187
|
+
result_to_return = waiter_result
|
188
|
+
|
189
|
+
return result_to_return
|
190
|
+
except Exception as e:
|
191
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
192
|
+
|
193
|
+
def create_distributed_autonomous_database_and_wait_for_state(self, create_distributed_autonomous_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
194
|
+
"""
|
195
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.create_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
196
|
+
to enter the given state(s).
|
197
|
+
|
198
|
+
:param oci.distributed_database.models.CreateDistributedAutonomousDatabaseDetails create_distributed_autonomous_database_details: (required)
|
199
|
+
Details of the Globally distributed autonomous database to be created.
|
200
|
+
|
201
|
+
:param list[str] wait_for_states:
|
202
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
203
|
+
|
204
|
+
:param dict operation_kwargs:
|
205
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.create_distributed_autonomous_database`
|
206
|
+
|
207
|
+
:param dict waiter_kwargs:
|
208
|
+
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``
|
209
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
210
|
+
"""
|
211
|
+
operation_result = self.client.create_distributed_autonomous_database(create_distributed_autonomous_database_details, **operation_kwargs)
|
212
|
+
if not wait_for_states:
|
213
|
+
return operation_result
|
214
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
215
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
216
|
+
return operation_result
|
217
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
218
|
+
|
219
|
+
try:
|
220
|
+
waiter_result = oci.wait_until(
|
221
|
+
self.client,
|
222
|
+
self.client.get_work_request(wait_for_resource_id),
|
223
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
224
|
+
**waiter_kwargs
|
225
|
+
)
|
226
|
+
result_to_return = waiter_result
|
227
|
+
|
228
|
+
return result_to_return
|
229
|
+
except Exception as e:
|
230
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
231
|
+
|
232
|
+
def delete_distributed_autonomous_database_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
233
|
+
"""
|
234
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.delete_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
235
|
+
to enter the given state(s).
|
236
|
+
|
237
|
+
:param str distributed_autonomous_database_id: (required)
|
238
|
+
Globally distributed autonomous database identifier
|
239
|
+
|
240
|
+
:param list[str] wait_for_states:
|
241
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
242
|
+
|
243
|
+
:param dict operation_kwargs:
|
244
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.delete_distributed_autonomous_database`
|
245
|
+
|
246
|
+
:param dict waiter_kwargs:
|
247
|
+
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``
|
248
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
249
|
+
"""
|
250
|
+
operation_result = None
|
251
|
+
try:
|
252
|
+
operation_result = self.client.delete_distributed_autonomous_database(distributed_autonomous_database_id, **operation_kwargs)
|
253
|
+
except oci.exceptions.ServiceError as e:
|
254
|
+
if e.status == 404:
|
255
|
+
return WAIT_RESOURCE_NOT_FOUND
|
256
|
+
else:
|
257
|
+
raise e
|
258
|
+
|
259
|
+
if not wait_for_states:
|
260
|
+
return operation_result
|
261
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
262
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
263
|
+
return operation_result
|
264
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
265
|
+
|
266
|
+
try:
|
267
|
+
waiter_result = oci.wait_until(
|
268
|
+
self.client,
|
269
|
+
self.client.get_work_request(wait_for_resource_id),
|
270
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
271
|
+
**waiter_kwargs
|
272
|
+
)
|
273
|
+
result_to_return = waiter_result
|
274
|
+
|
275
|
+
return result_to_return
|
276
|
+
except Exception as e:
|
277
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
278
|
+
|
279
|
+
def generate_distributed_autonomous_database_gsm_certificate_signing_request_and_wait_for_state(self, distributed_autonomous_database_id, ca_bundle_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
280
|
+
"""
|
281
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.generate_distributed_autonomous_database_gsm_certificate_signing_request` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
282
|
+
to enter the given state(s).
|
283
|
+
|
284
|
+
:param str distributed_autonomous_database_id: (required)
|
285
|
+
Globally distributed autonomous database identifier
|
286
|
+
|
287
|
+
:param str ca_bundle_id: (required)
|
288
|
+
The ID of the Ca Bundle.
|
289
|
+
|
290
|
+
:param list[str] wait_for_states:
|
291
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
292
|
+
|
293
|
+
:param dict operation_kwargs:
|
294
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.generate_distributed_autonomous_database_gsm_certificate_signing_request`
|
295
|
+
|
296
|
+
:param dict waiter_kwargs:
|
297
|
+
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``
|
298
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
299
|
+
"""
|
300
|
+
operation_result = self.client.generate_distributed_autonomous_database_gsm_certificate_signing_request(distributed_autonomous_database_id, ca_bundle_id, **operation_kwargs)
|
301
|
+
if not wait_for_states:
|
302
|
+
return operation_result
|
303
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
304
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
305
|
+
return operation_result
|
306
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
307
|
+
|
308
|
+
try:
|
309
|
+
waiter_result = oci.wait_until(
|
310
|
+
self.client,
|
311
|
+
self.client.get_work_request(wait_for_resource_id),
|
312
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
313
|
+
**waiter_kwargs
|
314
|
+
)
|
315
|
+
result_to_return = waiter_result
|
316
|
+
|
317
|
+
return result_to_return
|
318
|
+
except Exception as e:
|
319
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
320
|
+
|
321
|
+
def patch_distributed_autonomous_database_and_wait_for_state(self, distributed_autonomous_database_id, patch_distributed_autonomous_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
322
|
+
"""
|
323
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.patch_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
324
|
+
to enter the given state(s).
|
325
|
+
|
326
|
+
:param str distributed_autonomous_database_id: (required)
|
327
|
+
Globally distributed autonomous database identifier
|
328
|
+
|
329
|
+
:param oci.distributed_database.models.PatchDistributedAutonomousDatabaseDetails patch_distributed_autonomous_database_details: (required)
|
330
|
+
The payload containing instructions to patch the Globally distributed autonomous database.
|
331
|
+
|
332
|
+
:param list[str] wait_for_states:
|
333
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
334
|
+
|
335
|
+
:param dict operation_kwargs:
|
336
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.patch_distributed_autonomous_database`
|
337
|
+
|
338
|
+
:param dict waiter_kwargs:
|
339
|
+
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``
|
340
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
341
|
+
"""
|
342
|
+
operation_result = self.client.patch_distributed_autonomous_database(distributed_autonomous_database_id, patch_distributed_autonomous_database_details, **operation_kwargs)
|
343
|
+
if not wait_for_states:
|
344
|
+
return operation_result
|
345
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
346
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
347
|
+
return operation_result
|
348
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
349
|
+
|
350
|
+
try:
|
351
|
+
waiter_result = oci.wait_until(
|
352
|
+
self.client,
|
353
|
+
self.client.get_work_request(wait_for_resource_id),
|
354
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
355
|
+
**waiter_kwargs
|
356
|
+
)
|
357
|
+
result_to_return = waiter_result
|
358
|
+
|
359
|
+
return result_to_return
|
360
|
+
except Exception as e:
|
361
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
362
|
+
|
363
|
+
def rotate_distributed_autonomous_database_passwords_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
364
|
+
"""
|
365
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.rotate_distributed_autonomous_database_passwords` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
366
|
+
to enter the given state(s).
|
367
|
+
|
368
|
+
:param str distributed_autonomous_database_id: (required)
|
369
|
+
Globally distributed autonomous database identifier
|
370
|
+
|
371
|
+
:param list[str] wait_for_states:
|
372
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
373
|
+
|
374
|
+
:param dict operation_kwargs:
|
375
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.rotate_distributed_autonomous_database_passwords`
|
376
|
+
|
377
|
+
:param dict waiter_kwargs:
|
378
|
+
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``
|
379
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
380
|
+
"""
|
381
|
+
operation_result = self.client.rotate_distributed_autonomous_database_passwords(distributed_autonomous_database_id, **operation_kwargs)
|
382
|
+
if not wait_for_states:
|
383
|
+
return operation_result
|
384
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
385
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
386
|
+
return operation_result
|
387
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
388
|
+
|
389
|
+
try:
|
390
|
+
waiter_result = oci.wait_until(
|
391
|
+
self.client,
|
392
|
+
self.client.get_work_request(wait_for_resource_id),
|
393
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
394
|
+
**waiter_kwargs
|
395
|
+
)
|
396
|
+
result_to_return = waiter_result
|
397
|
+
|
398
|
+
return result_to_return
|
399
|
+
except Exception as e:
|
400
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
401
|
+
|
402
|
+
def start_distributed_autonomous_database_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
403
|
+
"""
|
404
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.start_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
405
|
+
to enter the given state(s).
|
406
|
+
|
407
|
+
:param str distributed_autonomous_database_id: (required)
|
408
|
+
Globally distributed autonomous database identifier
|
409
|
+
|
410
|
+
:param list[str] wait_for_states:
|
411
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
412
|
+
|
413
|
+
:param dict operation_kwargs:
|
414
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.start_distributed_autonomous_database`
|
415
|
+
|
416
|
+
:param dict waiter_kwargs:
|
417
|
+
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``
|
418
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
419
|
+
"""
|
420
|
+
operation_result = self.client.start_distributed_autonomous_database(distributed_autonomous_database_id, **operation_kwargs)
|
421
|
+
if not wait_for_states:
|
422
|
+
return operation_result
|
423
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
424
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
425
|
+
return operation_result
|
426
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
427
|
+
|
428
|
+
try:
|
429
|
+
waiter_result = oci.wait_until(
|
430
|
+
self.client,
|
431
|
+
self.client.get_work_request(wait_for_resource_id),
|
432
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
433
|
+
**waiter_kwargs
|
434
|
+
)
|
435
|
+
result_to_return = waiter_result
|
436
|
+
|
437
|
+
return result_to_return
|
438
|
+
except Exception as e:
|
439
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
440
|
+
|
441
|
+
def stop_distributed_autonomous_database_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
442
|
+
"""
|
443
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.stop_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
444
|
+
to enter the given state(s).
|
445
|
+
|
446
|
+
:param str distributed_autonomous_database_id: (required)
|
447
|
+
Globally distributed autonomous database identifier
|
448
|
+
|
449
|
+
:param list[str] wait_for_states:
|
450
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
451
|
+
|
452
|
+
:param dict operation_kwargs:
|
453
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.stop_distributed_autonomous_database`
|
454
|
+
|
455
|
+
:param dict waiter_kwargs:
|
456
|
+
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``
|
457
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
458
|
+
"""
|
459
|
+
operation_result = self.client.stop_distributed_autonomous_database(distributed_autonomous_database_id, **operation_kwargs)
|
460
|
+
if not wait_for_states:
|
461
|
+
return operation_result
|
462
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
463
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
464
|
+
return operation_result
|
465
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
466
|
+
|
467
|
+
try:
|
468
|
+
waiter_result = oci.wait_until(
|
469
|
+
self.client,
|
470
|
+
self.client.get_work_request(wait_for_resource_id),
|
471
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
472
|
+
**waiter_kwargs
|
473
|
+
)
|
474
|
+
result_to_return = waiter_result
|
475
|
+
|
476
|
+
return result_to_return
|
477
|
+
except Exception as e:
|
478
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
479
|
+
|
480
|
+
def update_distributed_autonomous_database_and_wait_for_state(self, distributed_autonomous_database_id, update_distributed_autonomous_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
481
|
+
"""
|
482
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.update_distributed_autonomous_database` and waits for the :py:class:`~oci.distributed_database.models.DistributedAutonomousDatabase` acted upon
|
483
|
+
to enter the given state(s).
|
484
|
+
|
485
|
+
:param str distributed_autonomous_database_id: (required)
|
486
|
+
Globally distributed autonomous database identifier
|
487
|
+
|
488
|
+
:param oci.distributed_database.models.UpdateDistributedAutonomousDatabaseDetails update_distributed_autonomous_database_details: (required)
|
489
|
+
The configuration of the Globally distributed autonomous database to be updated.
|
490
|
+
|
491
|
+
:param list[str] wait_for_states:
|
492
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.DistributedAutonomousDatabase.lifecycle_state`
|
493
|
+
|
494
|
+
:param dict operation_kwargs:
|
495
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.update_distributed_autonomous_database`
|
496
|
+
|
497
|
+
:param dict waiter_kwargs:
|
498
|
+
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``
|
499
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
500
|
+
"""
|
501
|
+
operation_result = self.client.update_distributed_autonomous_database(distributed_autonomous_database_id, update_distributed_autonomous_database_details, **operation_kwargs)
|
502
|
+
if not wait_for_states:
|
503
|
+
return operation_result
|
504
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
505
|
+
distributed_autonomous_database_id = operation_result.data.id
|
506
|
+
|
507
|
+
try:
|
508
|
+
waiter_result = oci.wait_until(
|
509
|
+
self.client,
|
510
|
+
self.client.get_distributed_autonomous_database(distributed_autonomous_database_id), # noqa: F821
|
511
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
512
|
+
**waiter_kwargs
|
513
|
+
)
|
514
|
+
result_to_return = waiter_result
|
515
|
+
|
516
|
+
return result_to_return
|
517
|
+
except (NameError, TypeError) as e:
|
518
|
+
if not e.args:
|
519
|
+
e.args = ('',)
|
520
|
+
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"', )
|
521
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
522
|
+
except Exception as e:
|
523
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
524
|
+
|
525
|
+
def upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_and_wait_for_state(self, distributed_autonomous_database_id, upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
526
|
+
"""
|
527
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.upload_distributed_autonomous_database_signed_certificate_and_generate_wallet` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
528
|
+
to enter the given state(s).
|
529
|
+
|
530
|
+
:param str distributed_autonomous_database_id: (required)
|
531
|
+
Globally distributed autonomous database identifier
|
532
|
+
|
533
|
+
:param oci.distributed_database.models.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details: (required)
|
534
|
+
Details required to upload the CA signed certificates to GSM instances of Globally distributed autonomous database and generate
|
535
|
+
the wallets.
|
536
|
+
|
537
|
+
:param list[str] wait_for_states:
|
538
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
539
|
+
|
540
|
+
:param dict operation_kwargs:
|
541
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.upload_distributed_autonomous_database_signed_certificate_and_generate_wallet`
|
542
|
+
|
543
|
+
:param dict waiter_kwargs:
|
544
|
+
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``
|
545
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
546
|
+
"""
|
547
|
+
operation_result = self.client.upload_distributed_autonomous_database_signed_certificate_and_generate_wallet(distributed_autonomous_database_id, upload_distributed_autonomous_database_signed_certificate_and_generate_wallet_details, **operation_kwargs)
|
548
|
+
if not wait_for_states:
|
549
|
+
return operation_result
|
550
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
551
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
552
|
+
return operation_result
|
553
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
554
|
+
|
555
|
+
try:
|
556
|
+
waiter_result = oci.wait_until(
|
557
|
+
self.client,
|
558
|
+
self.client.get_work_request(wait_for_resource_id),
|
559
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
560
|
+
**waiter_kwargs
|
561
|
+
)
|
562
|
+
result_to_return = waiter_result
|
563
|
+
|
564
|
+
return result_to_return
|
565
|
+
except Exception as e:
|
566
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
567
|
+
|
568
|
+
def validate_distributed_autonomous_database_network_and_wait_for_state(self, distributed_autonomous_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
569
|
+
"""
|
570
|
+
Calls :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.validate_distributed_autonomous_database_network` and waits for the :py:class:`~oci.distributed_database.models.WorkRequest`
|
571
|
+
to enter the given state(s).
|
572
|
+
|
573
|
+
:param str distributed_autonomous_database_id: (required)
|
574
|
+
Globally distributed autonomous database identifier
|
575
|
+
|
576
|
+
:param list[str] wait_for_states:
|
577
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.distributed_database.models.WorkRequest.status`
|
578
|
+
|
579
|
+
:param dict operation_kwargs:
|
580
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.distributed_database.DistributedAutonomousDbServiceClient.validate_distributed_autonomous_database_network`
|
581
|
+
|
582
|
+
:param dict waiter_kwargs:
|
583
|
+
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``
|
584
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
585
|
+
"""
|
586
|
+
operation_result = self.client.validate_distributed_autonomous_database_network(distributed_autonomous_database_id, **operation_kwargs)
|
587
|
+
if not wait_for_states:
|
588
|
+
return operation_result
|
589
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
590
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
591
|
+
return operation_result
|
592
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
593
|
+
|
594
|
+
try:
|
595
|
+
waiter_result = oci.wait_until(
|
596
|
+
self.client,
|
597
|
+
self.client.get_work_request(wait_for_resource_id),
|
598
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
599
|
+
**waiter_kwargs
|
600
|
+
)
|
601
|
+
result_to_return = waiter_result
|
602
|
+
|
603
|
+
return result_to_return
|
604
|
+
except Exception as e:
|
605
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|