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
oci/nosql/nosql_client.py
CHANGED
@@ -165,7 +165,7 @@ class NosqlClient(object):
|
|
165
165
|
:rtype: :class:`~oci.response.Response`
|
166
166
|
|
167
167
|
:example:
|
168
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
168
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/change_table_compartment.py.html>`__ to see an example of how to use change_table_compartment API.
|
169
169
|
"""
|
170
170
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
171
171
|
required_arguments = ['tableNameOrId']
|
@@ -280,7 +280,7 @@ class NosqlClient(object):
|
|
280
280
|
:rtype: :class:`~oci.response.Response`
|
281
281
|
|
282
282
|
:example:
|
283
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
283
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/create_index.py.html>`__ to see an example of how to use create_index API.
|
284
284
|
"""
|
285
285
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
286
286
|
required_arguments = ['tableNameOrId']
|
@@ -356,7 +356,7 @@ class NosqlClient(object):
|
|
356
356
|
|
357
357
|
def create_replica(self, table_name_or_id, create_replica_details, **kwargs):
|
358
358
|
"""
|
359
|
-
Add a replica for this table
|
359
|
+
Add a replica for this table. The table's schema must be frozen prior to this operation.
|
360
360
|
|
361
361
|
|
362
362
|
:param str table_name_or_id: (required)
|
@@ -400,7 +400,7 @@ class NosqlClient(object):
|
|
400
400
|
:rtype: :class:`~oci.response.Response`
|
401
401
|
|
402
402
|
:example:
|
403
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
403
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/create_replica.py.html>`__ to see an example of how to use create_replica API.
|
404
404
|
"""
|
405
405
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
406
406
|
required_arguments = ['tableNameOrId']
|
@@ -512,7 +512,7 @@ class NosqlClient(object):
|
|
512
512
|
:rtype: :class:`~oci.response.Response`
|
513
513
|
|
514
514
|
:example:
|
515
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
515
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/create_table.py.html>`__ to see an example of how to use create_table API.
|
516
516
|
"""
|
517
517
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
518
518
|
required_arguments = []
|
@@ -619,7 +619,7 @@ class NosqlClient(object):
|
|
619
619
|
:rtype: :class:`~oci.response.Response`
|
620
620
|
|
621
621
|
:example:
|
622
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
622
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/delete_index.py.html>`__ to see an example of how to use delete_index API.
|
623
623
|
"""
|
624
624
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
625
625
|
required_arguments = ['tableNameOrId', 'indexName']
|
@@ -741,7 +741,7 @@ class NosqlClient(object):
|
|
741
741
|
:rtype: :class:`~oci.response.Response`
|
742
742
|
|
743
743
|
:example:
|
744
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
744
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/delete_replica.py.html>`__ to see an example of how to use delete_replica API.
|
745
745
|
"""
|
746
746
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
747
747
|
required_arguments = ['tableNameOrId', 'region']
|
@@ -869,7 +869,7 @@ class NosqlClient(object):
|
|
869
869
|
:rtype: :class:`~oci.response.Response`
|
870
870
|
|
871
871
|
:example:
|
872
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
872
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/delete_row.py.html>`__ to see an example of how to use delete_row API.
|
873
873
|
"""
|
874
874
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
875
875
|
required_arguments = ['tableNameOrId', 'key']
|
@@ -995,7 +995,7 @@ class NosqlClient(object):
|
|
995
995
|
:rtype: :class:`~oci.response.Response`
|
996
996
|
|
997
997
|
:example:
|
998
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
998
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/delete_table.py.html>`__ to see an example of how to use delete_table API.
|
999
999
|
"""
|
1000
1000
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1001
1001
|
required_arguments = ['tableNameOrId']
|
@@ -1108,7 +1108,7 @@ class NosqlClient(object):
|
|
1108
1108
|
:rtype: :class:`~oci.response.Response`
|
1109
1109
|
|
1110
1110
|
:example:
|
1111
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1111
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/delete_work_request.py.html>`__ to see an example of how to use delete_work_request API.
|
1112
1112
|
"""
|
1113
1113
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1114
1114
|
required_arguments = ['workRequestId']
|
@@ -1177,6 +1177,103 @@ class NosqlClient(object):
|
|
1177
1177
|
api_reference_link=api_reference_link,
|
1178
1178
|
required_arguments=required_arguments)
|
1179
1179
|
|
1180
|
+
def get_configuration(self, compartment_id, **kwargs):
|
1181
|
+
"""
|
1182
|
+
Retrieves the current service-level configuration. The
|
1183
|
+
service may of the standard MULTI_TENANCY type, or of the
|
1184
|
+
HOSTED environment type. In the latter case, information about the
|
1185
|
+
current state of the environment's global encryption key is
|
1186
|
+
included in the response.
|
1187
|
+
|
1188
|
+
|
1189
|
+
:param str compartment_id: (required)
|
1190
|
+
The ID of a table's compartment.
|
1191
|
+
|
1192
|
+
:param str opc_request_id: (optional)
|
1193
|
+
The client request ID for tracing.
|
1194
|
+
|
1195
|
+
:param obj retry_strategy: (optional)
|
1196
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1197
|
+
|
1198
|
+
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.
|
1199
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1200
|
+
|
1201
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1202
|
+
|
1203
|
+
:param bool allow_control_chars: (optional)
|
1204
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1205
|
+
By default, the response will not allow control characters in strings
|
1206
|
+
|
1207
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.nosql.models.Configuration`
|
1208
|
+
:rtype: :class:`~oci.response.Response`
|
1209
|
+
|
1210
|
+
:example:
|
1211
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/get_configuration.py.html>`__ to see an example of how to use get_configuration API.
|
1212
|
+
"""
|
1213
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1214
|
+
required_arguments = ['compartmentId']
|
1215
|
+
resource_path = "/configuration"
|
1216
|
+
method = "GET"
|
1217
|
+
operation_name = "get_configuration"
|
1218
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Configuration/GetConfiguration"
|
1219
|
+
|
1220
|
+
# Don't accept unknown kwargs
|
1221
|
+
expected_kwargs = [
|
1222
|
+
"allow_control_chars",
|
1223
|
+
"retry_strategy",
|
1224
|
+
"opc_request_id"
|
1225
|
+
]
|
1226
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1227
|
+
if extra_kwargs:
|
1228
|
+
raise ValueError(
|
1229
|
+
f"get_configuration got unknown kwargs: {extra_kwargs!r}")
|
1230
|
+
|
1231
|
+
query_params = {
|
1232
|
+
"compartmentId": compartment_id
|
1233
|
+
}
|
1234
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1235
|
+
|
1236
|
+
header_params = {
|
1237
|
+
"accept": "application/json",
|
1238
|
+
"content-type": "application/json",
|
1239
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1240
|
+
}
|
1241
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1242
|
+
|
1243
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1244
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1245
|
+
client_retry_strategy=self.retry_strategy
|
1246
|
+
)
|
1247
|
+
if retry_strategy is None:
|
1248
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1249
|
+
|
1250
|
+
if retry_strategy:
|
1251
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1252
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1253
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1254
|
+
return retry_strategy.make_retrying_call(
|
1255
|
+
self.base_client.call_api,
|
1256
|
+
resource_path=resource_path,
|
1257
|
+
method=method,
|
1258
|
+
query_params=query_params,
|
1259
|
+
header_params=header_params,
|
1260
|
+
response_type="Configuration",
|
1261
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1262
|
+
operation_name=operation_name,
|
1263
|
+
api_reference_link=api_reference_link,
|
1264
|
+
required_arguments=required_arguments)
|
1265
|
+
else:
|
1266
|
+
return self.base_client.call_api(
|
1267
|
+
resource_path=resource_path,
|
1268
|
+
method=method,
|
1269
|
+
query_params=query_params,
|
1270
|
+
header_params=header_params,
|
1271
|
+
response_type="Configuration",
|
1272
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1273
|
+
operation_name=operation_name,
|
1274
|
+
api_reference_link=api_reference_link,
|
1275
|
+
required_arguments=required_arguments)
|
1276
|
+
|
1180
1277
|
def get_index(self, table_name_or_id, index_name, **kwargs):
|
1181
1278
|
"""
|
1182
1279
|
Get information about a single index.
|
@@ -1212,7 +1309,7 @@ class NosqlClient(object):
|
|
1212
1309
|
:rtype: :class:`~oci.response.Response`
|
1213
1310
|
|
1214
1311
|
:example:
|
1215
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1312
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/get_index.py.html>`__ to see an example of how to use get_index API.
|
1216
1313
|
"""
|
1217
1314
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1218
1315
|
required_arguments = ['tableNameOrId', 'indexName']
|
@@ -1336,7 +1433,7 @@ class NosqlClient(object):
|
|
1336
1433
|
:rtype: :class:`~oci.response.Response`
|
1337
1434
|
|
1338
1435
|
:example:
|
1339
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1436
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/get_row.py.html>`__ to see an example of how to use get_row API.
|
1340
1437
|
"""
|
1341
1438
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1342
1439
|
required_arguments = ['tableNameOrId', 'key']
|
@@ -1459,7 +1556,7 @@ class NosqlClient(object):
|
|
1459
1556
|
:rtype: :class:`~oci.response.Response`
|
1460
1557
|
|
1461
1558
|
:example:
|
1462
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1559
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/get_table.py.html>`__ to see an example of how to use get_table API.
|
1463
1560
|
"""
|
1464
1561
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1465
1562
|
required_arguments = ['tableNameOrId']
|
@@ -1565,7 +1662,7 @@ class NosqlClient(object):
|
|
1565
1662
|
:rtype: :class:`~oci.response.Response`
|
1566
1663
|
|
1567
1664
|
:example:
|
1568
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1665
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
1569
1666
|
"""
|
1570
1667
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1571
1668
|
required_arguments = ['workRequestId']
|
@@ -1697,7 +1794,7 @@ class NosqlClient(object):
|
|
1697
1794
|
:rtype: :class:`~oci.response.Response`
|
1698
1795
|
|
1699
1796
|
:example:
|
1700
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1797
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_indexes.py.html>`__ to see an example of how to use list_indexes API.
|
1701
1798
|
"""
|
1702
1799
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1703
1800
|
required_arguments = ['tableNameOrId']
|
@@ -1857,7 +1954,7 @@ class NosqlClient(object):
|
|
1857
1954
|
:rtype: :class:`~oci.response.Response`
|
1858
1955
|
|
1859
1956
|
:example:
|
1860
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1957
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_table_usage.py.html>`__ to see an example of how to use list_table_usage API.
|
1861
1958
|
"""
|
1862
1959
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1863
1960
|
required_arguments = ['tableNameOrId']
|
@@ -2000,7 +2097,7 @@ class NosqlClient(object):
|
|
2000
2097
|
:rtype: :class:`~oci.response.Response`
|
2001
2098
|
|
2002
2099
|
:example:
|
2003
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2100
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_tables.py.html>`__ to see an example of how to use list_tables API.
|
2004
2101
|
"""
|
2005
2102
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2006
2103
|
required_arguments = ['compartmentId']
|
@@ -2134,7 +2231,7 @@ class NosqlClient(object):
|
|
2134
2231
|
:rtype: :class:`~oci.response.Response`
|
2135
2232
|
|
2136
2233
|
:example:
|
2137
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2234
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
2138
2235
|
"""
|
2139
2236
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2140
2237
|
required_arguments = ['workRequestId']
|
@@ -2250,7 +2347,7 @@ class NosqlClient(object):
|
|
2250
2347
|
:rtype: :class:`~oci.response.Response`
|
2251
2348
|
|
2252
2349
|
:example:
|
2253
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2350
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
2254
2351
|
"""
|
2255
2352
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2256
2353
|
required_arguments = ['workRequestId']
|
@@ -2366,7 +2463,7 @@ class NosqlClient(object):
|
|
2366
2463
|
:rtype: :class:`~oci.response.Response`
|
2367
2464
|
|
2368
2465
|
:example:
|
2369
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2466
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
2370
2467
|
"""
|
2371
2468
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2372
2469
|
required_arguments = ['compartmentId']
|
@@ -2469,7 +2566,7 @@ class NosqlClient(object):
|
|
2469
2566
|
:rtype: :class:`~oci.response.Response`
|
2470
2567
|
|
2471
2568
|
:example:
|
2472
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2569
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/prepare_statement.py.html>`__ to see an example of how to use prepare_statement API.
|
2473
2570
|
"""
|
2474
2571
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2475
2572
|
required_arguments = ['compartmentId', 'statement']
|
@@ -2573,7 +2670,7 @@ class NosqlClient(object):
|
|
2573
2670
|
:rtype: :class:`~oci.response.Response`
|
2574
2671
|
|
2575
2672
|
:example:
|
2576
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2673
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/query.py.html>`__ to see an example of how to use query API.
|
2577
2674
|
"""
|
2578
2675
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2579
2676
|
required_arguments = []
|
@@ -2672,7 +2769,7 @@ class NosqlClient(object):
|
|
2672
2769
|
:rtype: :class:`~oci.response.Response`
|
2673
2770
|
|
2674
2771
|
:example:
|
2675
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2772
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/summarize_statement.py.html>`__ to see an example of how to use summarize_statement API.
|
2676
2773
|
"""
|
2677
2774
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2678
2775
|
required_arguments = ['compartmentId', 'statement']
|
@@ -2739,6 +2836,224 @@ class NosqlClient(object):
|
|
2739
2836
|
api_reference_link=api_reference_link,
|
2740
2837
|
required_arguments=required_arguments)
|
2741
2838
|
|
2839
|
+
def unassign_kms_key(self, compartment_id, **kwargs):
|
2840
|
+
"""
|
2841
|
+
Removes the global encryption key, if such exists, from a
|
2842
|
+
Hosted Environment, reverting to Oracle-managed encryption.
|
2843
|
+
|
2844
|
+
|
2845
|
+
:param str compartment_id: (required)
|
2846
|
+
The ID of a table's compartment.
|
2847
|
+
|
2848
|
+
:param str opc_request_id: (optional)
|
2849
|
+
The client request ID for tracing.
|
2850
|
+
|
2851
|
+
:param str if_match: (optional)
|
2852
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2853
|
+
for a resource, set the `if-match` parameter to the value of the
|
2854
|
+
etag from a previous GET or POST response for that resource.
|
2855
|
+
The resource will be updated or deleted only if the etag you
|
2856
|
+
provide matches the resource's current etag value.
|
2857
|
+
|
2858
|
+
:param bool is_opc_dry_run: (optional)
|
2859
|
+
If true, indicates that the request is a dry run
|
2860
|
+
A dry run request does not modify the configuration item details
|
2861
|
+
and is used only to perform validation on the submitted data.
|
2862
|
+
|
2863
|
+
:param obj retry_strategy: (optional)
|
2864
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2865
|
+
|
2866
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
2867
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2868
|
+
|
2869
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2870
|
+
|
2871
|
+
:param bool allow_control_chars: (optional)
|
2872
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2873
|
+
By default, the response will not allow control characters in strings
|
2874
|
+
|
2875
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2876
|
+
:rtype: :class:`~oci.response.Response`
|
2877
|
+
|
2878
|
+
:example:
|
2879
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/unassign_kms_key.py.html>`__ to see an example of how to use unassign_kms_key API.
|
2880
|
+
"""
|
2881
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2882
|
+
required_arguments = ['compartmentId']
|
2883
|
+
resource_path = "/configuration/actions/unassignkmskey"
|
2884
|
+
method = "POST"
|
2885
|
+
operation_name = "unassign_kms_key"
|
2886
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Configuration/UnassignKmsKey"
|
2887
|
+
|
2888
|
+
# Don't accept unknown kwargs
|
2889
|
+
expected_kwargs = [
|
2890
|
+
"allow_control_chars",
|
2891
|
+
"retry_strategy",
|
2892
|
+
"opc_request_id",
|
2893
|
+
"if_match",
|
2894
|
+
"is_opc_dry_run"
|
2895
|
+
]
|
2896
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2897
|
+
if extra_kwargs:
|
2898
|
+
raise ValueError(
|
2899
|
+
f"unassign_kms_key got unknown kwargs: {extra_kwargs!r}")
|
2900
|
+
|
2901
|
+
query_params = {
|
2902
|
+
"compartmentId": compartment_id
|
2903
|
+
}
|
2904
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2905
|
+
|
2906
|
+
header_params = {
|
2907
|
+
"accept": "application/json",
|
2908
|
+
"content-type": "application/json",
|
2909
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2910
|
+
"if-match": kwargs.get("if_match", missing),
|
2911
|
+
"is-opc-dry-run": kwargs.get("is_opc_dry_run", missing)
|
2912
|
+
}
|
2913
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2914
|
+
|
2915
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2916
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2917
|
+
client_retry_strategy=self.retry_strategy
|
2918
|
+
)
|
2919
|
+
|
2920
|
+
if retry_strategy:
|
2921
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2922
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2923
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2924
|
+
return retry_strategy.make_retrying_call(
|
2925
|
+
self.base_client.call_api,
|
2926
|
+
resource_path=resource_path,
|
2927
|
+
method=method,
|
2928
|
+
query_params=query_params,
|
2929
|
+
header_params=header_params,
|
2930
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2931
|
+
operation_name=operation_name,
|
2932
|
+
api_reference_link=api_reference_link,
|
2933
|
+
required_arguments=required_arguments)
|
2934
|
+
else:
|
2935
|
+
return self.base_client.call_api(
|
2936
|
+
resource_path=resource_path,
|
2937
|
+
method=method,
|
2938
|
+
query_params=query_params,
|
2939
|
+
header_params=header_params,
|
2940
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2941
|
+
operation_name=operation_name,
|
2942
|
+
api_reference_link=api_reference_link,
|
2943
|
+
required_arguments=required_arguments)
|
2944
|
+
|
2945
|
+
def update_configuration(self, compartment_id, update_configuration_details, **kwargs):
|
2946
|
+
"""
|
2947
|
+
Updates the service-level configuration. The discriminator value
|
2948
|
+
`UpdateConfigurationDetails.environment` must match the service's
|
2949
|
+
environment type.
|
2950
|
+
|
2951
|
+
|
2952
|
+
:param str compartment_id: (required)
|
2953
|
+
The ID of a table's compartment.
|
2954
|
+
|
2955
|
+
:param oci.nosql.models.UpdateConfigurationDetails update_configuration_details: (required)
|
2956
|
+
The configuration details.
|
2957
|
+
|
2958
|
+
:param str opc_request_id: (optional)
|
2959
|
+
The client request ID for tracing.
|
2960
|
+
|
2961
|
+
:param str if_match: (optional)
|
2962
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2963
|
+
for a resource, set the `if-match` parameter to the value of the
|
2964
|
+
etag from a previous GET or POST response for that resource.
|
2965
|
+
The resource will be updated or deleted only if the etag you
|
2966
|
+
provide matches the resource's current etag value.
|
2967
|
+
|
2968
|
+
:param bool is_opc_dry_run: (optional)
|
2969
|
+
If true, indicates that the request is a dry run
|
2970
|
+
A dry run request does not modify the configuration item details
|
2971
|
+
and is used only to perform validation on the submitted data.
|
2972
|
+
|
2973
|
+
:param obj retry_strategy: (optional)
|
2974
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2975
|
+
|
2976
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
2977
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2978
|
+
|
2979
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2980
|
+
|
2981
|
+
:param bool allow_control_chars: (optional)
|
2982
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2983
|
+
By default, the response will not allow control characters in strings
|
2984
|
+
|
2985
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2986
|
+
:rtype: :class:`~oci.response.Response`
|
2987
|
+
|
2988
|
+
:example:
|
2989
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/update_configuration.py.html>`__ to see an example of how to use update_configuration API.
|
2990
|
+
"""
|
2991
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2992
|
+
required_arguments = ['compartmentId']
|
2993
|
+
resource_path = "/configuration"
|
2994
|
+
method = "PUT"
|
2995
|
+
operation_name = "update_configuration"
|
2996
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/nosql-database/20190828/Configuration/UpdateConfiguration"
|
2997
|
+
|
2998
|
+
# Don't accept unknown kwargs
|
2999
|
+
expected_kwargs = [
|
3000
|
+
"allow_control_chars",
|
3001
|
+
"retry_strategy",
|
3002
|
+
"opc_request_id",
|
3003
|
+
"if_match",
|
3004
|
+
"is_opc_dry_run"
|
3005
|
+
]
|
3006
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3007
|
+
if extra_kwargs:
|
3008
|
+
raise ValueError(
|
3009
|
+
f"update_configuration got unknown kwargs: {extra_kwargs!r}")
|
3010
|
+
|
3011
|
+
query_params = {
|
3012
|
+
"compartmentId": compartment_id
|
3013
|
+
}
|
3014
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3015
|
+
|
3016
|
+
header_params = {
|
3017
|
+
"accept": "application/json",
|
3018
|
+
"content-type": "application/json",
|
3019
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
3020
|
+
"if-match": kwargs.get("if_match", missing),
|
3021
|
+
"is-opc-dry-run": kwargs.get("is_opc_dry_run", missing)
|
3022
|
+
}
|
3023
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3024
|
+
|
3025
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3026
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3027
|
+
client_retry_strategy=self.retry_strategy
|
3028
|
+
)
|
3029
|
+
|
3030
|
+
if retry_strategy:
|
3031
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3032
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3033
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3034
|
+
return retry_strategy.make_retrying_call(
|
3035
|
+
self.base_client.call_api,
|
3036
|
+
resource_path=resource_path,
|
3037
|
+
method=method,
|
3038
|
+
query_params=query_params,
|
3039
|
+
header_params=header_params,
|
3040
|
+
body=update_configuration_details,
|
3041
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3042
|
+
operation_name=operation_name,
|
3043
|
+
api_reference_link=api_reference_link,
|
3044
|
+
required_arguments=required_arguments)
|
3045
|
+
else:
|
3046
|
+
return self.base_client.call_api(
|
3047
|
+
resource_path=resource_path,
|
3048
|
+
method=method,
|
3049
|
+
query_params=query_params,
|
3050
|
+
header_params=header_params,
|
3051
|
+
body=update_configuration_details,
|
3052
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3053
|
+
operation_name=operation_name,
|
3054
|
+
api_reference_link=api_reference_link,
|
3055
|
+
required_arguments=required_arguments)
|
3056
|
+
|
2742
3057
|
def update_row(self, table_name_or_id, update_row_details, **kwargs):
|
2743
3058
|
"""
|
2744
3059
|
Write a single row into the table.
|
@@ -2776,7 +3091,7 @@ class NosqlClient(object):
|
|
2776
3091
|
:rtype: :class:`~oci.response.Response`
|
2777
3092
|
|
2778
3093
|
:example:
|
2779
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3094
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/update_row.py.html>`__ to see an example of how to use update_row API.
|
2780
3095
|
"""
|
2781
3096
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2782
3097
|
required_arguments = ['tableNameOrId']
|
@@ -2887,7 +3202,7 @@ class NosqlClient(object):
|
|
2887
3202
|
:rtype: :class:`~oci.response.Response`
|
2888
3203
|
|
2889
3204
|
:example:
|
2890
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3205
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.155.0/nosql/update_table.py.html>`__ to see an example of how to use update_table API.
|
2891
3206
|
"""
|
2892
3207
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2893
3208
|
required_arguments = ['tableNameOrId']
|
@@ -384,6 +384,87 @@ class NosqlClientCompositeOperations(object):
|
|
384
384
|
except Exception as e:
|
385
385
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
386
386
|
|
387
|
+
def unassign_kms_key_and_wait_for_state(self, compartment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
388
|
+
"""
|
389
|
+
Calls :py:func:`~oci.nosql.NosqlClient.unassign_kms_key` and waits for the :py:class:`~oci.nosql.models.WorkRequest`
|
390
|
+
to enter the given state(s).
|
391
|
+
|
392
|
+
:param str compartment_id: (required)
|
393
|
+
The ID of a table's compartment.
|
394
|
+
|
395
|
+
:param list[str] wait_for_states:
|
396
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.nosql.models.WorkRequest.status`
|
397
|
+
|
398
|
+
:param dict operation_kwargs:
|
399
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.nosql.NosqlClient.unassign_kms_key`
|
400
|
+
|
401
|
+
:param dict waiter_kwargs:
|
402
|
+
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``
|
403
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
404
|
+
"""
|
405
|
+
operation_result = self.client.unassign_kms_key(compartment_id, **operation_kwargs)
|
406
|
+
if not wait_for_states:
|
407
|
+
return operation_result
|
408
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
409
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
410
|
+
return operation_result
|
411
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
412
|
+
|
413
|
+
try:
|
414
|
+
waiter_result = oci.wait_until(
|
415
|
+
self.client,
|
416
|
+
self.client.get_work_request(wait_for_resource_id),
|
417
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
418
|
+
**waiter_kwargs
|
419
|
+
)
|
420
|
+
result_to_return = waiter_result
|
421
|
+
|
422
|
+
return result_to_return
|
423
|
+
except Exception as e:
|
424
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
425
|
+
|
426
|
+
def update_configuration_and_wait_for_state(self, compartment_id, update_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
427
|
+
"""
|
428
|
+
Calls :py:func:`~oci.nosql.NosqlClient.update_configuration` and waits for the :py:class:`~oci.nosql.models.WorkRequest`
|
429
|
+
to enter the given state(s).
|
430
|
+
|
431
|
+
:param str compartment_id: (required)
|
432
|
+
The ID of a table's compartment.
|
433
|
+
|
434
|
+
:param oci.nosql.models.UpdateConfigurationDetails update_configuration_details: (required)
|
435
|
+
The configuration details.
|
436
|
+
|
437
|
+
:param list[str] wait_for_states:
|
438
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.nosql.models.WorkRequest.status`
|
439
|
+
|
440
|
+
:param dict operation_kwargs:
|
441
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.nosql.NosqlClient.update_configuration`
|
442
|
+
|
443
|
+
:param dict waiter_kwargs:
|
444
|
+
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``
|
445
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
446
|
+
"""
|
447
|
+
operation_result = self.client.update_configuration(compartment_id, update_configuration_details, **operation_kwargs)
|
448
|
+
if not wait_for_states:
|
449
|
+
return operation_result
|
450
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
451
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
452
|
+
return operation_result
|
453
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
454
|
+
|
455
|
+
try:
|
456
|
+
waiter_result = oci.wait_until(
|
457
|
+
self.client,
|
458
|
+
self.client.get_work_request(wait_for_resource_id),
|
459
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
460
|
+
**waiter_kwargs
|
461
|
+
)
|
462
|
+
result_to_return = waiter_result
|
463
|
+
|
464
|
+
return result_to_return
|
465
|
+
except Exception as e:
|
466
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
467
|
+
|
387
468
|
def update_table_and_wait_for_state(self, table_name_or_id, update_table_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
388
469
|
"""
|
389
470
|
Calls :py:func:`~oci.nosql.NosqlClient.update_table` and waits for the :py:class:`~oci.nosql.models.WorkRequest`
|