oci 2.154.2__py3-none-any.whl → 2.155.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/agent.py +82 -32
- oci/addons/adk/mcp/__init__.py +11 -0
- oci/addons/adk/mcp/mcp_client.py +420 -0
- oci/addons/adk/tool/function_tool.py +7 -3
- oci/addons/adk/tool/tool.py +11 -1
- oci/addons/adk/tool/toolkit.py +11 -2
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +72 -72
- 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/apiaccesscontrol/api_metadata_client.py +6 -6
- oci/apiaccesscontrol/privileged_api_control_client.py +12 -12
- oci/apiaccesscontrol/privileged_api_requests_client.py +14 -14
- oci/apiaccesscontrol/privileged_api_work_request_client.py +10 -10
- 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 +28 -28
- oci/apm_traces/__init__.py +3 -1
- oci/apm_traces/attributes_client.py +12 -12
- oci/apm_traces/models/__init__.py +25 -1
- oci/apm_traces/models/attribute.py +101 -0
- oci/apm_traces/models/attribute_metadata.py +149 -0
- oci/apm_traces/models/attribute_response.py +2 -2
- oci/apm_traces/models/attribute_update_response.py +2 -2
- oci/apm_traces/models/auto_activate_status.py +16 -0
- oci/apm_traces/models/auto_activate_toggle_status.py +16 -0
- oci/apm_traces/models/bulk_activate_attribute_detail.py +47 -8
- oci/apm_traces/models/bulk_de_activate_attribute_detail.py +7 -3
- oci/apm_traces/models/bulk_pin_attribute_detail.py +7 -3
- oci/apm_traces/models/bulk_unpin_attribute_detail.py +7 -3
- oci/apm_traces/models/bulk_update_attribute_detail.py +9 -5
- oci/apm_traces/models/bulk_update_attribute_notes_detail.py +7 -3
- oci/apm_traces/models/create_scheduled_query_details.py +471 -0
- oci/apm_traces/models/custom_metric.py +295 -0
- oci/apm_traces/models/log.py +475 -0
- oci/apm_traces/models/object_storage.py +132 -0
- oci/apm_traces/models/scheduled_query.py +666 -0
- oci/apm_traces/models/scheduled_query_collection.py +70 -0
- oci/apm_traces/models/scheduled_query_processing_config.py +120 -0
- oci/apm_traces/models/scheduled_query_summary.py +573 -0
- oci/apm_traces/models/streaming.py +70 -0
- oci/apm_traces/models/tag_metadata.py +2 -2
- oci/apm_traces/models/update_scheduled_query_details.py +471 -0
- oci/apm_traces/query_client.py +8 -6
- oci/apm_traces/scheduled_query_client.py +755 -0
- oci/apm_traces/scheduled_query_client_composite_operations.py +181 -0
- oci/apm_traces/trace_client.py +131 -6
- 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/base_client.py +3 -0
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +88 -88
- 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/capacity_management/demand_signal_client.py +13 -13
- oci/capacity_management/internal_demand_signal_client.py +12 -12
- 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_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +125 -125
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +258 -258
- 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 +901 -421
- oci/database/database_client_composite_operations.py +123 -0
- oci/database/models/__init__.py +14 -0
- oci/database/models/autonomous_container_database.py +37 -0
- oci/database/models/autonomous_container_database_summary.py +37 -0
- oci/database/models/autonomous_database_software_image.py +37 -0
- oci/database/models/autonomous_database_software_image_summary.py +37 -0
- oci/database/models/autonomous_vm_cluster.py +37 -0
- oci/database/models/autonomous_vm_cluster_summary.py +37 -0
- oci/database/models/azure_encryption_key_details.py +80 -0
- oci/database/models/backup.py +7 -3
- oci/database/models/backup_destination.py +37 -0
- oci/database/models/backup_destination_configuration_summary.py +7 -3
- oci/database/models/backup_destination_details.py +7 -3
- oci/database/models/backup_destination_details_summary.py +7 -3
- oci/database/models/backup_destination_summary.py +37 -0
- oci/database/models/backup_summary.py +7 -3
- oci/database/models/change_cloud_autonomous_vm_cluster_subscription_details.py +105 -0
- oci/database/models/cloud_autonomous_vm_cluster.py +74 -2
- oci/database/models/cloud_autonomous_vm_cluster_summary.py +74 -2
- oci/database/models/cloud_vm_cluster.py +80 -2
- oci/database/models/cloud_vm_cluster_summary.py +80 -2
- oci/database/models/create_cloud_autonomous_vm_cluster_details.py +37 -2
- oci/database/models/create_cloud_vm_cluster_details.py +17 -17
- oci/database/models/create_database_base.py +1 -1
- oci/database/models/create_vm_cluster_details.py +2 -2
- oci/database/models/database.py +37 -0
- oci/database/models/database_software_image.py +37 -0
- oci/database/models/database_software_image_summary.py +37 -0
- oci/database/models/database_summary.py +37 -0
- oci/database/models/db_home.py +37 -0
- oci/database/models/db_home_from_agent_resource_id.py +37 -0
- oci/database/models/db_home_summary.py +37 -0
- oci/database/models/db_node.py +37 -0
- oci/database/models/db_node_summary.py +37 -0
- oci/database/models/db_server.py +37 -0
- oci/database/models/db_server_summary.py +37 -0
- oci/database/models/db_system.py +37 -0
- oci/database/models/db_system_summary.py +37 -0
- oci/database/models/encryption_key_location_details.py +15 -5
- oci/database/models/exadata_infrastructure.py +37 -0
- oci/database/models/exadata_infrastructure_summary.py +37 -0
- oci/database/models/execution_action.py +39 -2
- oci/database/models/execution_action_summary.py +39 -2
- oci/database/models/execution_window.py +39 -2
- oci/database/models/execution_window_summary.py +39 -2
- oci/database/models/external_container_database.py +37 -0
- oci/database/models/external_container_database_summary.py +37 -0
- oci/database/models/external_database_base.py +37 -0
- oci/database/models/external_database_connector.py +37 -0
- oci/database/models/external_database_connector_summary.py +37 -0
- oci/database/models/external_hsm_encryption_details.py +1 -1
- oci/database/models/external_macs_connector.py +7 -0
- oci/database/models/external_macs_connector_summary.py +7 -0
- oci/database/models/external_non_container_database.py +37 -0
- oci/database/models/external_non_container_database_summary.py +37 -0
- oci/database/models/external_pluggable_database.py +37 -0
- oci/database/models/external_pluggable_database_summary.py +37 -0
- oci/database/models/identity_connector_details.py +113 -0
- oci/database/models/key_store.py +39 -2
- oci/database/models/key_store_summary.py +39 -2
- oci/database/models/maintenance_run.py +37 -0
- oci/database/models/maintenance_run_history.py +39 -2
- oci/database/models/maintenance_run_history_summary.py +39 -2
- oci/database/models/maintenance_run_summary.py +37 -0
- oci/database/models/oneoff_patch.py +39 -2
- oci/database/models/oneoff_patch_summary.py +39 -2
- oci/database/models/pluggable_database.py +37 -0
- oci/database/models/pluggable_database_summary.py +37 -0
- oci/database/models/register_cloud_vm_cluster_pkcs_details.py +86 -0
- oci/database/models/resource_pool_member_collection.py +70 -0
- oci/database/models/resource_pool_member_summary.py +74 -0
- oci/database/models/scheduling_policy.py +39 -2
- oci/database/models/scheduling_policy_summary.py +39 -2
- oci/database/models/scheduling_window.py +39 -2
- oci/database/models/scheduling_window_summary.py +39 -2
- oci/database/models/unregister_cloud_vm_cluster_pkcs_details.py +86 -0
- oci/database/models/vm_cluster.py +37 -0
- oci/database/models/vm_cluster_network.py +39 -2
- oci/database/models/vm_cluster_network_summary.py +39 -2
- oci/database/models/vm_cluster_summary.py +37 -0
- 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 +15 -15
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +155 -42
- oci/database_migration/database_migration_client_composite_operations.py +42 -0
- oci/database_migration/models/__init__.py +4 -0
- oci/database_migration/models/collect_traces_data.py +183 -0
- oci/database_migration/models/collect_traces_details.py +132 -0
- oci/database_migration/models/job.py +27 -0
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +14 -14
- oci/dbmulticloud/__init__.py +28 -0
- oci/dbmulticloud/models/__init__.py +112 -0
- oci/dbmulticloud/models/arc_agent_nodes.py +218 -0
- oci/dbmulticloud/models/change_multi_cloud_resource_discovery_compartment_details.py +191 -0
- oci/dbmulticloud/models/change_oracle_db_azure_blob_container_compartment_details.py +187 -0
- oci/dbmulticloud/models/change_oracle_db_azure_blob_mount_compartment_details.py +187 -0
- oci/dbmulticloud/models/change_oracle_db_azure_connector_compartment_details.py +187 -0
- oci/dbmulticloud/models/change_oracle_db_azure_vault_association_compartment_details.py +191 -0
- oci/dbmulticloud/models/change_oracle_db_azure_vault_compartment_details.py +191 -0
- oci/dbmulticloud/models/create_multi_cloud_resource_discovery_details.py +253 -0
- oci/dbmulticloud/models/create_oracle_db_azure_blob_container_details.py +307 -0
- oci/dbmulticloud/models/create_oracle_db_azure_blob_mount_details.py +245 -0
- oci/dbmulticloud/models/create_oracle_db_azure_connector_details.py +431 -0
- oci/dbmulticloud/models/create_oracle_db_azure_vault_association_details.py +257 -0
- oci/dbmulticloud/models/create_oracle_db_azure_vault_details.py +377 -0
- oci/dbmulticloud/models/multi_cloud_resource_discovery.py +577 -0
- oci/dbmulticloud/models/multi_cloud_resource_discovery_summary.py +517 -0
- oci/dbmulticloud/models/multi_cloud_resource_discovery_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_container.py +568 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_container_summary.py +536 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_container_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_mount.py +537 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_mount_summary.py +505 -0
- oci/dbmulticloud/models/oracle_db_azure_blob_mount_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_connector.py +739 -0
- oci/dbmulticloud/models/oracle_db_azure_connector_summary.py +660 -0
- oci/dbmulticloud/models/oracle_db_azure_connector_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_key.py +518 -0
- oci/dbmulticloud/models/oracle_db_azure_key_summary.py +486 -0
- oci/dbmulticloud/models/oracle_db_azure_key_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_vault.py +642 -0
- oci/dbmulticloud/models/oracle_db_azure_vault_association.py +553 -0
- oci/dbmulticloud/models/oracle_db_azure_vault_association_summary.py +521 -0
- oci/dbmulticloud/models/oracle_db_azure_vault_association_summary_collection.py +70 -0
- oci/dbmulticloud/models/oracle_db_azure_vault_summary.py +610 -0
- oci/dbmulticloud/models/oracle_db_azure_vault_summary_collection.py +70 -0
- oci/dbmulticloud/models/patch_oracle_db_azure_connector_details.py +187 -0
- oci/dbmulticloud/models/resources.py +229 -0
- oci/dbmulticloud/models/update_multi_cloud_resource_discovery_details.py +253 -0
- oci/dbmulticloud/models/update_oracle_db_azure_blob_container_details.py +307 -0
- oci/dbmulticloud/models/update_oracle_db_azure_blob_mount_details.py +245 -0
- oci/dbmulticloud/models/update_oracle_db_azure_connector_details.py +431 -0
- oci/dbmulticloud/models/update_oracle_db_azure_vault_association_details.py +257 -0
- oci/dbmulticloud/models/update_oracle_db_azure_vault_details.py +377 -0
- oci/dbmulticloud/models/work_request.py +496 -0
- oci/dbmulticloud/models/work_request_error.py +134 -0
- oci/dbmulticloud/models/work_request_error_collection.py +70 -0
- oci/dbmulticloud/models/work_request_log_entry.py +101 -0
- oci/dbmulticloud/models/work_request_log_entry_collection.py +70 -0
- oci/dbmulticloud/models/work_request_resource.py +232 -0
- oci/dbmulticloud/models/work_request_summary.py +496 -0
- oci/dbmulticloud/models/work_request_summary_collection.py +70 -0
- oci/dbmulticloud/multi_cloud_resource_discovery_client.py +883 -0
- oci/dbmulticloud/multi_cloud_resource_discovery_client_composite_operations.py +202 -0
- oci/dbmulticloud/oracle_db_azure_blob_container_client.py +864 -0
- oci/dbmulticloud/oracle_db_azure_blob_container_client_composite_operations.py +196 -0
- oci/dbmulticloud/oracle_db_azure_blob_mount_client.py +865 -0
- oci/dbmulticloud/oracle_db_azure_blob_mount_client_composite_operations.py +196 -0
- oci/dbmulticloud/oracle_db_azure_connector_client.py +963 -0
- oci/dbmulticloud/oracle_db_azure_connector_client_composite_operations.py +239 -0
- oci/dbmulticloud/oracle_db_azure_key_client.py +419 -0
- oci/dbmulticloud/oracle_db_azure_key_client_composite_operations.py +26 -0
- oci/dbmulticloud/oracle_db_azure_vault_association_client.py +979 -0
- oci/dbmulticloud/oracle_db_azure_vault_association_client_composite_operations.py +235 -0
- oci/dbmulticloud/oracle_db_azure_vault_client.py +979 -0
- oci/dbmulticloud/oracle_db_azure_vault_client_composite_operations.py +235 -0
- oci/dbmulticloud/work_request_client.py +770 -0
- oci/dbmulticloud/work_request_client_composite_operations.py +26 -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/distributed_database/distributed_autonomous_db_service_client.py +18 -18
- oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
- oci/distributed_database/distributed_db_service_client.py +19 -19
- oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
- 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/fleet_software_update/models/__init__.py +12 -0
- oci/fleet_software_update/models/create_fsu_cycle_details.py +11 -3
- oci/fleet_software_update/models/create_patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/create_upgrade_fsu_cycle.py +147 -0
- oci/fleet_software_update/models/fsu_cycle.py +11 -3
- oci/fleet_software_update/models/fsu_cycle_summary.py +7 -3
- oci/fleet_software_update/models/patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/update_fsu_cycle_details.py +11 -3
- oci/fleet_software_update/models/update_patch_fsu_cycle.py +1 -1
- oci/fleet_software_update/models/update_upgrade_fsu_cycle.py +118 -0
- oci/fleet_software_update/models/upgrade_db_collection_details.py +142 -0
- oci/fleet_software_update/models/upgrade_details.py +107 -0
- oci/fleet_software_update/models/upgrade_fsu_cycle.py +241 -0
- oci/fleet_software_update/models/upgrade_gi_collection_details.py +111 -0
- 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/load_balancer/models/backend.py +4 -4
- oci/load_balancer/models/backend_details.py +10 -4
- oci/load_balancer/models/backend_set.py +6 -4
- oci/load_balancer/models/backend_set_details.py +12 -4
- oci/load_balancer/models/create_backend_details.py +10 -4
- oci/load_balancer/models/create_backend_set_details.py +12 -4
- oci/load_balancer/models/create_listener_details.py +6 -4
- oci/load_balancer/models/create_load_balancer_details.py +39 -0
- oci/load_balancer/models/listener.py +6 -4
- oci/load_balancer/models/listener_details.py +6 -4
- oci/load_balancer/models/load_balancer.py +61 -2
- oci/load_balancer/models/reserved_ip.py +4 -0
- oci/load_balancer/models/update_backend_details.py +10 -4
- oci/load_balancer/models/update_backend_set_details.py +12 -4
- oci/load_balancer/models/update_listener_details.py +6 -4
- oci/load_balancer/models/update_load_balancer_details.py +59 -0
- 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 +18 -18
- 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 +8 -8
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +2 -0
- oci/mysql/models/backup.py +29 -2
- oci/mysql/models/backup_summary.py +29 -2
- oci/mysql/models/copy_backup_details.py +29 -2
- oci/mysql/models/create_db_system_details.py +27 -0
- oci/mysql/models/db_system.py +27 -0
- oci/mysql/models/db_system_snapshot.py +27 -0
- oci/mysql/models/encrypt_data_details.py +117 -0
- oci/mysql/models/replica.py +27 -0
- oci/mysql/models/update_db_system_details.py +27 -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 +92 -92
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/models/__init__.py +14 -0
- oci/nosql/models/configuration.py +109 -0
- oci/nosql/models/hosted_configuration.py +78 -0
- oci/nosql/models/kms_key.py +244 -0
- oci/nosql/models/multi_tenancy_configuration.py +49 -0
- oci/nosql/models/update_configuration_details.py +109 -0
- oci/nosql/models/update_hosted_configuration_details.py +78 -0
- oci/nosql/models/update_multi_tenancy_configuration_details.py +52 -0
- oci/nosql/models/work_request.py +7 -3
- oci/nosql/models/work_request_summary.py +7 -3
- oci/nosql/nosql_client.py +340 -25
- oci/nosql/nosql_client_composite_operations.py +81 -0
- 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/oci_cache_user_client.py +7 -7
- oci/redis/redis_cluster_client.py +15 -15
- oci/redis/redis_identity_client.py +1 -1
- 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 +96 -96
- 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/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/wlms/weblogic_management_service_client.py +41 -41
- oci/wlms/weblogic_management_service_configuration_client.py +2 -2
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/METADATA +1 -1
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/RECORD +520 -413
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/WHEEL +0 -0
- {oci-2.154.2.dist-info → oci-2.155.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,979 @@
|
|
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: 20240501
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from oci._vendor import requests # noqa: F401
|
10
|
+
from oci._vendor import six
|
11
|
+
|
12
|
+
from oci import retry, circuit_breaker # noqa: F401
|
13
|
+
from oci.base_client import BaseClient
|
14
|
+
from oci.config import get_config_value_or_default, validate_config
|
15
|
+
from oci.signer import Signer
|
16
|
+
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
|
17
|
+
from oci.exceptions import InvalidAlloyConfig
|
18
|
+
from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
|
19
|
+
from .models import dbmulticloud_type_mapping
|
20
|
+
missing = Sentinel("Missing")
|
21
|
+
|
22
|
+
|
23
|
+
class OracleDbAzureVaultClient(object):
|
24
|
+
"""
|
25
|
+
1. Oracle Azure Connector Resource: This is for installing Azure Arc Server in ExaCS VM Cluster.
|
26
|
+
There are two way to install Azure Arc Server (Azure Identity) in ExaCS VMCluster.
|
27
|
+
a. Using Bearer Access Token or
|
28
|
+
b. By providing Authentication token
|
29
|
+
|
30
|
+
2. Oracle Azure Blob Container Resource: This is for to capture Azure Container details
|
31
|
+
and same will be used in multiple ExaCS VMCluster to mount the Azure Container.
|
32
|
+
|
33
|
+
3. Oracle Azure Blob Mount Resource: This is for to mount Azure Container in ExaCS VMCluster
|
34
|
+
using Oracle Azure Connector and Oracle Azure Blob Container Resource.
|
35
|
+
"""
|
36
|
+
|
37
|
+
def __init__(self, config, **kwargs):
|
38
|
+
"""
|
39
|
+
Creates a new service client
|
40
|
+
|
41
|
+
:param dict config:
|
42
|
+
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
|
43
|
+
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
|
44
|
+
the dict using :py:meth:`~oci.config.validate_config`
|
45
|
+
|
46
|
+
:param str service_endpoint: (optional)
|
47
|
+
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
|
48
|
+
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
|
49
|
+
need to specify a service endpoint.
|
50
|
+
|
51
|
+
:param timeout: (optional)
|
52
|
+
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
|
53
|
+
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
|
54
|
+
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
|
55
|
+
:type timeout: float or tuple(float, float)
|
56
|
+
|
57
|
+
:param signer: (optional)
|
58
|
+
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
|
59
|
+
provided in the config parameter.
|
60
|
+
|
61
|
+
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
|
62
|
+
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
|
63
|
+
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
|
64
|
+
|
65
|
+
:param obj retry_strategy: (optional)
|
66
|
+
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
|
67
|
+
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
|
68
|
+
Any value provided at the operation level will override whatever is specified at the client level.
|
69
|
+
|
70
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
|
71
|
+
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
72
|
+
|
73
|
+
:param obj circuit_breaker_strategy: (optional)
|
74
|
+
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
|
75
|
+
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
|
76
|
+
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
|
77
|
+
|
78
|
+
:param function circuit_breaker_callback: (optional)
|
79
|
+
Callback function to receive any exceptions triggerred by the circuit breaker.
|
80
|
+
|
81
|
+
:param bool client_level_realm_specific_endpoint_template_enabled: (optional)
|
82
|
+
A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
|
83
|
+
|
84
|
+
:param allow_control_chars: (optional)
|
85
|
+
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
|
86
|
+
allow control characters to be in the response object.
|
87
|
+
"""
|
88
|
+
if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("dbmulticloud"):
|
89
|
+
raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
|
90
|
+
|
91
|
+
validate_config(config, signer=kwargs.get('signer'))
|
92
|
+
if 'signer' in kwargs:
|
93
|
+
signer = kwargs['signer']
|
94
|
+
|
95
|
+
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
|
96
|
+
signer = get_signer_from_authentication_type(config)
|
97
|
+
|
98
|
+
else:
|
99
|
+
signer = Signer(
|
100
|
+
tenancy=config["tenancy"],
|
101
|
+
user=config["user"],
|
102
|
+
fingerprint=config["fingerprint"],
|
103
|
+
private_key_file_location=config.get("key_file"),
|
104
|
+
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
|
105
|
+
private_key_content=config.get("key_content")
|
106
|
+
)
|
107
|
+
|
108
|
+
base_client_init_kwargs = {
|
109
|
+
'regional_client': True,
|
110
|
+
'service_endpoint': kwargs.get('service_endpoint'),
|
111
|
+
'base_path': '/20240501',
|
112
|
+
'service_endpoint_template': 'https://dbmulticloud.{region}.oci.{secondLevelDomain}',
|
113
|
+
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
114
|
+
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
115
|
+
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
|
116
|
+
'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
|
117
|
+
}
|
118
|
+
if 'timeout' in kwargs:
|
119
|
+
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
|
120
|
+
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
|
121
|
+
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
|
122
|
+
if 'allow_control_chars' in kwargs:
|
123
|
+
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
|
124
|
+
self.base_client = BaseClient("oracle_db_azure_vault", config, signer, dbmulticloud_type_mapping, **base_client_init_kwargs)
|
125
|
+
self.retry_strategy = kwargs.get('retry_strategy')
|
126
|
+
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
127
|
+
|
128
|
+
def change_oracle_db_azure_vault_compartment(self, oracle_db_azure_vault_id, change_oracle_db_azure_vault_compartment_details, **kwargs):
|
129
|
+
"""
|
130
|
+
Moves the DB Azure Vault resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource.
|
131
|
+
|
132
|
+
|
133
|
+
:param str oracle_db_azure_vault_id: (required)
|
134
|
+
The ID of the Oracle DB Azure Vault Resource.
|
135
|
+
|
136
|
+
:param oci.dbmulticloud.models.ChangeOracleDbAzureVaultCompartmentDetails change_oracle_db_azure_vault_compartment_details: (required)
|
137
|
+
Moves the DB Azure Vault resource into a different compartment.
|
138
|
+
|
139
|
+
:param str opc_retry_token: (optional)
|
140
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
141
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
142
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
143
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
144
|
+
might be rejected.
|
145
|
+
|
146
|
+
:param str if_match: (optional)
|
147
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
148
|
+
for a resource, set the `if-match` parameter to the value of the
|
149
|
+
etag from a previous GET or POST response for that resource.
|
150
|
+
The resource will be updated or deleted only if the etag you
|
151
|
+
provide matches the resource's current etag value.
|
152
|
+
|
153
|
+
:param str opc_request_id: (optional)
|
154
|
+
The client request ID for tracing.
|
155
|
+
|
156
|
+
:param obj retry_strategy: (optional)
|
157
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
158
|
+
|
159
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
160
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
161
|
+
|
162
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
163
|
+
|
164
|
+
:param bool allow_control_chars: (optional)
|
165
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
166
|
+
By default, the response will not allow control characters in strings
|
167
|
+
|
168
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
169
|
+
:rtype: :class:`~oci.response.Response`
|
170
|
+
|
171
|
+
:example:
|
172
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/change_oracle_db_azure_vault_compartment.py.html>`__ to see an example of how to use change_oracle_db_azure_vault_compartment API.
|
173
|
+
"""
|
174
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
175
|
+
required_arguments = ['oracleDbAzureVaultId']
|
176
|
+
resource_path = "/oracleDbAzureVault/{oracleDbAzureVaultId}/actions/changeCompartment"
|
177
|
+
method = "POST"
|
178
|
+
operation_name = "change_oracle_db_azure_vault_compartment"
|
179
|
+
api_reference_link = ""
|
180
|
+
|
181
|
+
# Don't accept unknown kwargs
|
182
|
+
expected_kwargs = [
|
183
|
+
"allow_control_chars",
|
184
|
+
"retry_strategy",
|
185
|
+
"opc_retry_token",
|
186
|
+
"if_match",
|
187
|
+
"opc_request_id"
|
188
|
+
]
|
189
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
190
|
+
if extra_kwargs:
|
191
|
+
raise ValueError(
|
192
|
+
f"change_oracle_db_azure_vault_compartment got unknown kwargs: {extra_kwargs!r}")
|
193
|
+
|
194
|
+
path_params = {
|
195
|
+
"oracleDbAzureVaultId": oracle_db_azure_vault_id
|
196
|
+
}
|
197
|
+
|
198
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
199
|
+
|
200
|
+
for (k, v) in six.iteritems(path_params):
|
201
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
202
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
203
|
+
|
204
|
+
header_params = {
|
205
|
+
"accept": "application/json",
|
206
|
+
"content-type": "application/json",
|
207
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
208
|
+
"if-match": kwargs.get("if_match", missing),
|
209
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
210
|
+
}
|
211
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
212
|
+
|
213
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
214
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
215
|
+
client_retry_strategy=self.retry_strategy
|
216
|
+
)
|
217
|
+
if retry_strategy is None:
|
218
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
219
|
+
|
220
|
+
if retry_strategy:
|
221
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
222
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
223
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
224
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
225
|
+
return retry_strategy.make_retrying_call(
|
226
|
+
self.base_client.call_api,
|
227
|
+
resource_path=resource_path,
|
228
|
+
method=method,
|
229
|
+
path_params=path_params,
|
230
|
+
header_params=header_params,
|
231
|
+
body=change_oracle_db_azure_vault_compartment_details,
|
232
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
233
|
+
operation_name=operation_name,
|
234
|
+
api_reference_link=api_reference_link,
|
235
|
+
required_arguments=required_arguments)
|
236
|
+
else:
|
237
|
+
return self.base_client.call_api(
|
238
|
+
resource_path=resource_path,
|
239
|
+
method=method,
|
240
|
+
path_params=path_params,
|
241
|
+
header_params=header_params,
|
242
|
+
body=change_oracle_db_azure_vault_compartment_details,
|
243
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
244
|
+
operation_name=operation_name,
|
245
|
+
api_reference_link=api_reference_link,
|
246
|
+
required_arguments=required_arguments)
|
247
|
+
|
248
|
+
def create_oracle_db_azure_vault(self, create_oracle_db_azure_vault_details, **kwargs):
|
249
|
+
"""
|
250
|
+
Create DB Azure Vaults based on the provided information, this will fetch Keys related to Azure Vaults.
|
251
|
+
|
252
|
+
|
253
|
+
:param oci.dbmulticloud.models.CreateOracleDbAzureVaultDetails create_oracle_db_azure_vault_details: (required)
|
254
|
+
Details for to Create DB Azure Vault Details.
|
255
|
+
|
256
|
+
:param str opc_retry_token: (optional)
|
257
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
258
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
259
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
260
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
261
|
+
might be rejected.
|
262
|
+
|
263
|
+
:param str if_match: (optional)
|
264
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
265
|
+
for a resource, set the `if-match` parameter to the value of the
|
266
|
+
etag from a previous GET or POST response for that resource.
|
267
|
+
The resource will be updated or deleted only if the etag you
|
268
|
+
provide matches the resource's current etag value.
|
269
|
+
|
270
|
+
:param str opc_request_id: (optional)
|
271
|
+
The client request ID for tracing.
|
272
|
+
|
273
|
+
:param obj retry_strategy: (optional)
|
274
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
275
|
+
|
276
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
277
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
278
|
+
|
279
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
280
|
+
|
281
|
+
:param bool allow_control_chars: (optional)
|
282
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
283
|
+
By default, the response will not allow control characters in strings
|
284
|
+
|
285
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dbmulticloud.models.OracleDbAzureVault`
|
286
|
+
:rtype: :class:`~oci.response.Response`
|
287
|
+
|
288
|
+
:example:
|
289
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/create_oracle_db_azure_vault.py.html>`__ to see an example of how to use create_oracle_db_azure_vault API.
|
290
|
+
"""
|
291
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
292
|
+
required_arguments = []
|
293
|
+
resource_path = "/oracleDbAzureVault"
|
294
|
+
method = "POST"
|
295
|
+
operation_name = "create_oracle_db_azure_vault"
|
296
|
+
api_reference_link = ""
|
297
|
+
|
298
|
+
# Don't accept unknown kwargs
|
299
|
+
expected_kwargs = [
|
300
|
+
"allow_control_chars",
|
301
|
+
"retry_strategy",
|
302
|
+
"opc_retry_token",
|
303
|
+
"if_match",
|
304
|
+
"opc_request_id"
|
305
|
+
]
|
306
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
307
|
+
if extra_kwargs:
|
308
|
+
raise ValueError(
|
309
|
+
f"create_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}")
|
310
|
+
|
311
|
+
header_params = {
|
312
|
+
"accept": "application/json",
|
313
|
+
"content-type": "application/json",
|
314
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
315
|
+
"if-match": kwargs.get("if_match", missing),
|
316
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
317
|
+
}
|
318
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
319
|
+
|
320
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
321
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
322
|
+
client_retry_strategy=self.retry_strategy
|
323
|
+
)
|
324
|
+
if retry_strategy is None:
|
325
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
326
|
+
|
327
|
+
if retry_strategy:
|
328
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
329
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
330
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
331
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
332
|
+
return retry_strategy.make_retrying_call(
|
333
|
+
self.base_client.call_api,
|
334
|
+
resource_path=resource_path,
|
335
|
+
method=method,
|
336
|
+
header_params=header_params,
|
337
|
+
body=create_oracle_db_azure_vault_details,
|
338
|
+
response_type="OracleDbAzureVault",
|
339
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
340
|
+
operation_name=operation_name,
|
341
|
+
api_reference_link=api_reference_link,
|
342
|
+
required_arguments=required_arguments)
|
343
|
+
else:
|
344
|
+
return self.base_client.call_api(
|
345
|
+
resource_path=resource_path,
|
346
|
+
method=method,
|
347
|
+
header_params=header_params,
|
348
|
+
body=create_oracle_db_azure_vault_details,
|
349
|
+
response_type="OracleDbAzureVault",
|
350
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
351
|
+
operation_name=operation_name,
|
352
|
+
api_reference_link=api_reference_link,
|
353
|
+
required_arguments=required_arguments)
|
354
|
+
|
355
|
+
def delete_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs):
|
356
|
+
"""
|
357
|
+
Delete DB Azure Vault details.
|
358
|
+
|
359
|
+
|
360
|
+
:param str oracle_db_azure_vault_id: (required)
|
361
|
+
The ID of the Oracle DB Azure Vault Resource.
|
362
|
+
|
363
|
+
:param str if_match: (optional)
|
364
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
365
|
+
for a resource, set the `if-match` parameter to the value of the
|
366
|
+
etag from a previous GET or POST response for that resource.
|
367
|
+
The resource will be updated or deleted only if the etag you
|
368
|
+
provide matches the resource's current etag value.
|
369
|
+
|
370
|
+
:param str opc_request_id: (optional)
|
371
|
+
The client request ID for tracing.
|
372
|
+
|
373
|
+
:param obj retry_strategy: (optional)
|
374
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
375
|
+
|
376
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
377
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
378
|
+
|
379
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
380
|
+
|
381
|
+
:param bool allow_control_chars: (optional)
|
382
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
383
|
+
By default, the response will not allow control characters in strings
|
384
|
+
|
385
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
386
|
+
:rtype: :class:`~oci.response.Response`
|
387
|
+
|
388
|
+
:example:
|
389
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/delete_oracle_db_azure_vault.py.html>`__ to see an example of how to use delete_oracle_db_azure_vault API.
|
390
|
+
"""
|
391
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
392
|
+
required_arguments = ['oracleDbAzureVaultId']
|
393
|
+
resource_path = "/oracleDbAzureVault/{oracleDbAzureVaultId}"
|
394
|
+
method = "DELETE"
|
395
|
+
operation_name = "delete_oracle_db_azure_vault"
|
396
|
+
api_reference_link = ""
|
397
|
+
|
398
|
+
# Don't accept unknown kwargs
|
399
|
+
expected_kwargs = [
|
400
|
+
"allow_control_chars",
|
401
|
+
"retry_strategy",
|
402
|
+
"if_match",
|
403
|
+
"opc_request_id"
|
404
|
+
]
|
405
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
406
|
+
if extra_kwargs:
|
407
|
+
raise ValueError(
|
408
|
+
f"delete_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}")
|
409
|
+
|
410
|
+
path_params = {
|
411
|
+
"oracleDbAzureVaultId": oracle_db_azure_vault_id
|
412
|
+
}
|
413
|
+
|
414
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
415
|
+
|
416
|
+
for (k, v) in six.iteritems(path_params):
|
417
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
418
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
419
|
+
|
420
|
+
header_params = {
|
421
|
+
"accept": "application/json",
|
422
|
+
"content-type": "application/json",
|
423
|
+
"if-match": kwargs.get("if_match", missing),
|
424
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
425
|
+
}
|
426
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
427
|
+
|
428
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
429
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
430
|
+
client_retry_strategy=self.retry_strategy
|
431
|
+
)
|
432
|
+
if retry_strategy is None:
|
433
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
434
|
+
|
435
|
+
if retry_strategy:
|
436
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
437
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
438
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
439
|
+
return retry_strategy.make_retrying_call(
|
440
|
+
self.base_client.call_api,
|
441
|
+
resource_path=resource_path,
|
442
|
+
method=method,
|
443
|
+
path_params=path_params,
|
444
|
+
header_params=header_params,
|
445
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
446
|
+
operation_name=operation_name,
|
447
|
+
api_reference_link=api_reference_link,
|
448
|
+
required_arguments=required_arguments)
|
449
|
+
else:
|
450
|
+
return self.base_client.call_api(
|
451
|
+
resource_path=resource_path,
|
452
|
+
method=method,
|
453
|
+
path_params=path_params,
|
454
|
+
header_params=header_params,
|
455
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
456
|
+
operation_name=operation_name,
|
457
|
+
api_reference_link=api_reference_link,
|
458
|
+
required_arguments=required_arguments)
|
459
|
+
|
460
|
+
def get_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs):
|
461
|
+
"""
|
462
|
+
Get Oracle DB Azure Vault Details form a particular Container Resource ID.
|
463
|
+
|
464
|
+
|
465
|
+
:param str oracle_db_azure_vault_id: (required)
|
466
|
+
The ID of the Oracle DB Azure Vault Resource.
|
467
|
+
|
468
|
+
:param int limit: (optional)
|
469
|
+
The maximum number of items to return.
|
470
|
+
|
471
|
+
:param str page: (optional)
|
472
|
+
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
473
|
+
|
474
|
+
:param str sort_order: (optional)
|
475
|
+
The sort order to use, either 'asc' or 'desc'.
|
476
|
+
|
477
|
+
Allowed values are: "ASC", "DESC"
|
478
|
+
|
479
|
+
:param str opc_request_id: (optional)
|
480
|
+
The client request ID for tracing.
|
481
|
+
|
482
|
+
:param obj retry_strategy: (optional)
|
483
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
484
|
+
|
485
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
486
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
487
|
+
|
488
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
489
|
+
|
490
|
+
:param bool allow_control_chars: (optional)
|
491
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
492
|
+
By default, the response will not allow control characters in strings
|
493
|
+
|
494
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dbmulticloud.models.OracleDbAzureVault`
|
495
|
+
:rtype: :class:`~oci.response.Response`
|
496
|
+
|
497
|
+
:example:
|
498
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/get_oracle_db_azure_vault.py.html>`__ to see an example of how to use get_oracle_db_azure_vault API.
|
499
|
+
"""
|
500
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
501
|
+
required_arguments = ['oracleDbAzureVaultId']
|
502
|
+
resource_path = "/oracleDbAzureVault/{oracleDbAzureVaultId}"
|
503
|
+
method = "GET"
|
504
|
+
operation_name = "get_oracle_db_azure_vault"
|
505
|
+
api_reference_link = ""
|
506
|
+
|
507
|
+
# Don't accept unknown kwargs
|
508
|
+
expected_kwargs = [
|
509
|
+
"allow_control_chars",
|
510
|
+
"retry_strategy",
|
511
|
+
"limit",
|
512
|
+
"page",
|
513
|
+
"sort_order",
|
514
|
+
"opc_request_id"
|
515
|
+
]
|
516
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
517
|
+
if extra_kwargs:
|
518
|
+
raise ValueError(
|
519
|
+
f"get_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}")
|
520
|
+
|
521
|
+
path_params = {
|
522
|
+
"oracleDbAzureVaultId": oracle_db_azure_vault_id
|
523
|
+
}
|
524
|
+
|
525
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
526
|
+
|
527
|
+
for (k, v) in six.iteritems(path_params):
|
528
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
529
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
530
|
+
|
531
|
+
if 'sort_order' in kwargs:
|
532
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
533
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
534
|
+
raise ValueError(
|
535
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
536
|
+
)
|
537
|
+
|
538
|
+
query_params = {
|
539
|
+
"limit": kwargs.get("limit", missing),
|
540
|
+
"page": kwargs.get("page", missing),
|
541
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
542
|
+
}
|
543
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
544
|
+
|
545
|
+
header_params = {
|
546
|
+
"accept": "application/json",
|
547
|
+
"content-type": "application/json",
|
548
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
549
|
+
}
|
550
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
551
|
+
|
552
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
553
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
554
|
+
client_retry_strategy=self.retry_strategy
|
555
|
+
)
|
556
|
+
if retry_strategy is None:
|
557
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
558
|
+
|
559
|
+
if retry_strategy:
|
560
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
561
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
562
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
563
|
+
return retry_strategy.make_retrying_call(
|
564
|
+
self.base_client.call_api,
|
565
|
+
resource_path=resource_path,
|
566
|
+
method=method,
|
567
|
+
path_params=path_params,
|
568
|
+
query_params=query_params,
|
569
|
+
header_params=header_params,
|
570
|
+
response_type="OracleDbAzureVault",
|
571
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
572
|
+
operation_name=operation_name,
|
573
|
+
api_reference_link=api_reference_link,
|
574
|
+
required_arguments=required_arguments)
|
575
|
+
else:
|
576
|
+
return self.base_client.call_api(
|
577
|
+
resource_path=resource_path,
|
578
|
+
method=method,
|
579
|
+
path_params=path_params,
|
580
|
+
query_params=query_params,
|
581
|
+
header_params=header_params,
|
582
|
+
response_type="OracleDbAzureVault",
|
583
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
584
|
+
operation_name=operation_name,
|
585
|
+
api_reference_link=api_reference_link,
|
586
|
+
required_arguments=required_arguments)
|
587
|
+
|
588
|
+
def list_oracle_db_azure_vaults(self, compartment_id, **kwargs):
|
589
|
+
"""
|
590
|
+
Lists the all DB Azure Vaults based on filters.
|
591
|
+
|
592
|
+
|
593
|
+
:param str compartment_id: (required)
|
594
|
+
The `ID`__ of the compartment.
|
595
|
+
|
596
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
597
|
+
|
598
|
+
:param str display_name: (optional)
|
599
|
+
A filter to return Azure Vaults.
|
600
|
+
|
601
|
+
:param str oracle_db_azure_vault_id: (optional)
|
602
|
+
A filter to return Oracle DB Azure Vault Resources.
|
603
|
+
|
604
|
+
:param str lifecycle_state: (optional)
|
605
|
+
A filter to return only resources that match the given lifecycle state. The
|
606
|
+
state value is case-insensitive.
|
607
|
+
|
608
|
+
Allowed values are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
609
|
+
|
610
|
+
:param str oracle_db_azure_resource_group: (optional)
|
611
|
+
A filter to return Azure Vaults.
|
612
|
+
|
613
|
+
:param str oracle_db_azure_connector_id: (optional)
|
614
|
+
A filter to return Oracle DB Azure Blob Mount Resources.
|
615
|
+
|
616
|
+
:param int limit: (optional)
|
617
|
+
The maximum number of items to return.
|
618
|
+
|
619
|
+
:param str page: (optional)
|
620
|
+
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
621
|
+
|
622
|
+
:param str sort_order: (optional)
|
623
|
+
The sort order to use, either 'asc' or 'desc'.
|
624
|
+
|
625
|
+
Allowed values are: "ASC", "DESC"
|
626
|
+
|
627
|
+
:param str sort_by: (optional)
|
628
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified, default is timeCreated.
|
629
|
+
|
630
|
+
Allowed values are: "timeCreated", "displayName"
|
631
|
+
|
632
|
+
:param str opc_request_id: (optional)
|
633
|
+
The client request ID for tracing.
|
634
|
+
|
635
|
+
:param obj retry_strategy: (optional)
|
636
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
637
|
+
|
638
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
639
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
640
|
+
|
641
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
642
|
+
|
643
|
+
:param bool allow_control_chars: (optional)
|
644
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
645
|
+
By default, the response will not allow control characters in strings
|
646
|
+
|
647
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.dbmulticloud.models.OracleDbAzureVaultSummaryCollection`
|
648
|
+
:rtype: :class:`~oci.response.Response`
|
649
|
+
|
650
|
+
:example:
|
651
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/list_oracle_db_azure_vaults.py.html>`__ to see an example of how to use list_oracle_db_azure_vaults API.
|
652
|
+
"""
|
653
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
654
|
+
required_arguments = ['compartmentId']
|
655
|
+
resource_path = "/oracleDbAzureVault"
|
656
|
+
method = "GET"
|
657
|
+
operation_name = "list_oracle_db_azure_vaults"
|
658
|
+
api_reference_link = ""
|
659
|
+
|
660
|
+
# Don't accept unknown kwargs
|
661
|
+
expected_kwargs = [
|
662
|
+
"allow_control_chars",
|
663
|
+
"retry_strategy",
|
664
|
+
"display_name",
|
665
|
+
"oracle_db_azure_vault_id",
|
666
|
+
"lifecycle_state",
|
667
|
+
"oracle_db_azure_resource_group",
|
668
|
+
"oracle_db_azure_connector_id",
|
669
|
+
"limit",
|
670
|
+
"page",
|
671
|
+
"sort_order",
|
672
|
+
"sort_by",
|
673
|
+
"opc_request_id"
|
674
|
+
]
|
675
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
676
|
+
if extra_kwargs:
|
677
|
+
raise ValueError(
|
678
|
+
f"list_oracle_db_azure_vaults got unknown kwargs: {extra_kwargs!r}")
|
679
|
+
|
680
|
+
if 'lifecycle_state' in kwargs:
|
681
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
682
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
683
|
+
raise ValueError(
|
684
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
685
|
+
)
|
686
|
+
|
687
|
+
if 'sort_order' in kwargs:
|
688
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
689
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
690
|
+
raise ValueError(
|
691
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
692
|
+
)
|
693
|
+
|
694
|
+
if 'sort_by' in kwargs:
|
695
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
696
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
697
|
+
raise ValueError(
|
698
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
699
|
+
)
|
700
|
+
|
701
|
+
query_params = {
|
702
|
+
"compartmentId": compartment_id,
|
703
|
+
"displayName": kwargs.get("display_name", missing),
|
704
|
+
"oracleDbAzureVaultId": kwargs.get("oracle_db_azure_vault_id", missing),
|
705
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
706
|
+
"oracleDbAzureResourceGroup": kwargs.get("oracle_db_azure_resource_group", missing),
|
707
|
+
"oracleDbAzureConnectorId": kwargs.get("oracle_db_azure_connector_id", missing),
|
708
|
+
"limit": kwargs.get("limit", missing),
|
709
|
+
"page": kwargs.get("page", missing),
|
710
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
711
|
+
"sortBy": kwargs.get("sort_by", missing)
|
712
|
+
}
|
713
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
714
|
+
|
715
|
+
header_params = {
|
716
|
+
"accept": "application/json",
|
717
|
+
"content-type": "application/json",
|
718
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
719
|
+
}
|
720
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
721
|
+
|
722
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
723
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
724
|
+
client_retry_strategy=self.retry_strategy
|
725
|
+
)
|
726
|
+
if retry_strategy is None:
|
727
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
728
|
+
|
729
|
+
if retry_strategy:
|
730
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
731
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
732
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
733
|
+
return retry_strategy.make_retrying_call(
|
734
|
+
self.base_client.call_api,
|
735
|
+
resource_path=resource_path,
|
736
|
+
method=method,
|
737
|
+
query_params=query_params,
|
738
|
+
header_params=header_params,
|
739
|
+
response_type="OracleDbAzureVaultSummaryCollection",
|
740
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
741
|
+
operation_name=operation_name,
|
742
|
+
api_reference_link=api_reference_link,
|
743
|
+
required_arguments=required_arguments)
|
744
|
+
else:
|
745
|
+
return self.base_client.call_api(
|
746
|
+
resource_path=resource_path,
|
747
|
+
method=method,
|
748
|
+
query_params=query_params,
|
749
|
+
header_params=header_params,
|
750
|
+
response_type="OracleDbAzureVaultSummaryCollection",
|
751
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
752
|
+
operation_name=operation_name,
|
753
|
+
api_reference_link=api_reference_link,
|
754
|
+
required_arguments=required_arguments)
|
755
|
+
|
756
|
+
def refresh_oracle_db_azure_vault(self, oracle_db_azure_vault_id, **kwargs):
|
757
|
+
"""
|
758
|
+
Refresh Oracle DB Azure Vault details from backend.
|
759
|
+
|
760
|
+
|
761
|
+
:param str oracle_db_azure_vault_id: (required)
|
762
|
+
The ID of the Oracle DB Azure Vault Resource.
|
763
|
+
|
764
|
+
:param str opc_retry_token: (optional)
|
765
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
766
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
767
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
768
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
769
|
+
might be rejected.
|
770
|
+
|
771
|
+
:param str if_match: (optional)
|
772
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
773
|
+
for a resource, set the `if-match` parameter to the value of the
|
774
|
+
etag from a previous GET or POST response for that resource.
|
775
|
+
The resource will be updated or deleted only if the etag you
|
776
|
+
provide matches the resource's current etag value.
|
777
|
+
|
778
|
+
:param str opc_request_id: (optional)
|
779
|
+
The client request ID for tracing.
|
780
|
+
|
781
|
+
:param obj retry_strategy: (optional)
|
782
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
783
|
+
|
784
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
785
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
786
|
+
|
787
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
788
|
+
|
789
|
+
:param bool allow_control_chars: (optional)
|
790
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
791
|
+
By default, the response will not allow control characters in strings
|
792
|
+
|
793
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
794
|
+
:rtype: :class:`~oci.response.Response`
|
795
|
+
|
796
|
+
:example:
|
797
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/refresh_oracle_db_azure_vault.py.html>`__ to see an example of how to use refresh_oracle_db_azure_vault API.
|
798
|
+
"""
|
799
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
800
|
+
required_arguments = ['oracleDbAzureVaultId']
|
801
|
+
resource_path = "/oracleDbAzureVault/{oracleDbAzureVaultId}/actions/refresh"
|
802
|
+
method = "POST"
|
803
|
+
operation_name = "refresh_oracle_db_azure_vault"
|
804
|
+
api_reference_link = ""
|
805
|
+
|
806
|
+
# Don't accept unknown kwargs
|
807
|
+
expected_kwargs = [
|
808
|
+
"allow_control_chars",
|
809
|
+
"retry_strategy",
|
810
|
+
"opc_retry_token",
|
811
|
+
"if_match",
|
812
|
+
"opc_request_id"
|
813
|
+
]
|
814
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
815
|
+
if extra_kwargs:
|
816
|
+
raise ValueError(
|
817
|
+
f"refresh_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}")
|
818
|
+
|
819
|
+
path_params = {
|
820
|
+
"oracleDbAzureVaultId": oracle_db_azure_vault_id
|
821
|
+
}
|
822
|
+
|
823
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
824
|
+
|
825
|
+
for (k, v) in six.iteritems(path_params):
|
826
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
827
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
828
|
+
|
829
|
+
header_params = {
|
830
|
+
"accept": "application/json",
|
831
|
+
"content-type": "application/json",
|
832
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
833
|
+
"if-match": kwargs.get("if_match", missing),
|
834
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
835
|
+
}
|
836
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
837
|
+
|
838
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
839
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
840
|
+
client_retry_strategy=self.retry_strategy
|
841
|
+
)
|
842
|
+
if retry_strategy is None:
|
843
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
844
|
+
|
845
|
+
if retry_strategy:
|
846
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
847
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
848
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
849
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
850
|
+
return retry_strategy.make_retrying_call(
|
851
|
+
self.base_client.call_api,
|
852
|
+
resource_path=resource_path,
|
853
|
+
method=method,
|
854
|
+
path_params=path_params,
|
855
|
+
header_params=header_params,
|
856
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
857
|
+
operation_name=operation_name,
|
858
|
+
api_reference_link=api_reference_link,
|
859
|
+
required_arguments=required_arguments)
|
860
|
+
else:
|
861
|
+
return self.base_client.call_api(
|
862
|
+
resource_path=resource_path,
|
863
|
+
method=method,
|
864
|
+
path_params=path_params,
|
865
|
+
header_params=header_params,
|
866
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
867
|
+
operation_name=operation_name,
|
868
|
+
api_reference_link=api_reference_link,
|
869
|
+
required_arguments=required_arguments)
|
870
|
+
|
871
|
+
def update_oracle_db_azure_vault(self, oracle_db_azure_vault_id, update_oracle_db_azure_vault_details, **kwargs):
|
872
|
+
"""
|
873
|
+
Modifies the existing Oracle DB Azure Vault Details for a given ID.
|
874
|
+
|
875
|
+
|
876
|
+
:param str oracle_db_azure_vault_id: (required)
|
877
|
+
The ID of the Oracle DB Azure Vault Resource.
|
878
|
+
|
879
|
+
:param oci.dbmulticloud.models.UpdateOracleDbAzureVaultDetails update_oracle_db_azure_vault_details: (required)
|
880
|
+
Details for to update OracleDbAzureVault.
|
881
|
+
|
882
|
+
:param str if_match: (optional)
|
883
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
884
|
+
for a resource, set the `if-match` parameter to the value of the
|
885
|
+
etag from a previous GET or POST response for that resource.
|
886
|
+
The resource will be updated or deleted only if the etag you
|
887
|
+
provide matches the resource's current etag value.
|
888
|
+
|
889
|
+
:param str opc_request_id: (optional)
|
890
|
+
The client request ID for tracing.
|
891
|
+
|
892
|
+
:param obj retry_strategy: (optional)
|
893
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
894
|
+
|
895
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
896
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
897
|
+
|
898
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
899
|
+
|
900
|
+
:param bool allow_control_chars: (optional)
|
901
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
902
|
+
By default, the response will not allow control characters in strings
|
903
|
+
|
904
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
905
|
+
:rtype: :class:`~oci.response.Response`
|
906
|
+
|
907
|
+
:example:
|
908
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/dbmulticloud/update_oracle_db_azure_vault.py.html>`__ to see an example of how to use update_oracle_db_azure_vault API.
|
909
|
+
"""
|
910
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
911
|
+
required_arguments = ['oracleDbAzureVaultId']
|
912
|
+
resource_path = "/oracleDbAzureVault/{oracleDbAzureVaultId}"
|
913
|
+
method = "PUT"
|
914
|
+
operation_name = "update_oracle_db_azure_vault"
|
915
|
+
api_reference_link = ""
|
916
|
+
|
917
|
+
# Don't accept unknown kwargs
|
918
|
+
expected_kwargs = [
|
919
|
+
"allow_control_chars",
|
920
|
+
"retry_strategy",
|
921
|
+
"if_match",
|
922
|
+
"opc_request_id"
|
923
|
+
]
|
924
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
925
|
+
if extra_kwargs:
|
926
|
+
raise ValueError(
|
927
|
+
f"update_oracle_db_azure_vault got unknown kwargs: {extra_kwargs!r}")
|
928
|
+
|
929
|
+
path_params = {
|
930
|
+
"oracleDbAzureVaultId": oracle_db_azure_vault_id
|
931
|
+
}
|
932
|
+
|
933
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
934
|
+
|
935
|
+
for (k, v) in six.iteritems(path_params):
|
936
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
937
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
938
|
+
|
939
|
+
header_params = {
|
940
|
+
"accept": "application/json",
|
941
|
+
"content-type": "application/json",
|
942
|
+
"if-match": kwargs.get("if_match", missing),
|
943
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
944
|
+
}
|
945
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
946
|
+
|
947
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
948
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
949
|
+
client_retry_strategy=self.retry_strategy
|
950
|
+
)
|
951
|
+
if retry_strategy is None:
|
952
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
953
|
+
|
954
|
+
if retry_strategy:
|
955
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
956
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
957
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
958
|
+
return retry_strategy.make_retrying_call(
|
959
|
+
self.base_client.call_api,
|
960
|
+
resource_path=resource_path,
|
961
|
+
method=method,
|
962
|
+
path_params=path_params,
|
963
|
+
header_params=header_params,
|
964
|
+
body=update_oracle_db_azure_vault_details,
|
965
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
966
|
+
operation_name=operation_name,
|
967
|
+
api_reference_link=api_reference_link,
|
968
|
+
required_arguments=required_arguments)
|
969
|
+
else:
|
970
|
+
return self.base_client.call_api(
|
971
|
+
resource_path=resource_path,
|
972
|
+
method=method,
|
973
|
+
path_params=path_params,
|
974
|
+
header_params=header_params,
|
975
|
+
body=update_oracle_db_azure_vault_details,
|
976
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
977
|
+
operation_name=operation_name,
|
978
|
+
api_reference_link=api_reference_link,
|
979
|
+
required_arguments=required_arguments)
|