oci 2.125.1__py3-none-any.whl → 2.125.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +134 -43
- oci/ai_language/models/__init__.py +24 -0
- oci/ai_language/models/assertion_details.py +165 -0
- oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
- oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
- oci/ai_language/models/health_entity.py +351 -0
- oci/ai_language/models/health_entity_document_result.py +200 -0
- oci/ai_language/models/input_location.py +2 -1
- oci/ai_language/models/mel_concept.py +103 -0
- oci/ai_language/models/mel_concept_details.py +165 -0
- oci/ai_language/models/model_details.py +11 -3
- oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pii_entity.py +118 -7
- oci/ai_language/models/pii_model_details.py +91 -0
- oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
- oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
- oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
- oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
- oci/ai_language/models/pre_trained_summarization.py +1 -1
- oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
- oci/ai_language/models/pre_trained_universal_model.py +1 -1
- oci/ai_language/models/profile.py +134 -0
- oci/ai_language/models/relation_entity.py +196 -0
- oci/ai_language/models/resolved_entities.py +72 -0
- oci/ai_language/models/resolved_entity.py +227 -0
- oci/ai_language/models/text_classification_model_details.py +1 -1
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +36 -36
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +99 -99
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +148 -148
- oci/data_flow/data_flow_client.py +52 -46
- oci/data_flow/models/sql_endpoint.py +42 -3
- oci/data_flow/models/sql_endpoint_summary.py +11 -3
- 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 +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/instance_configuration.py +37 -2
- oci/database/database_client.py +1224 -537
- oci/database/database_client_composite_operations.py +204 -0
- oci/database/models/__init__.py +12 -0
- oci/database/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/autonomous_database_software_image.py +489 -0
- oci/database/models/autonomous_database_software_image_collection.py +72 -0
- oci/database/models/autonomous_database_software_image_summary.py +437 -0
- oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
- oci/database/models/create_autonomous_container_database_details.py +35 -0
- oci/database/models/create_autonomous_database_software_image_details.py +267 -0
- oci/database/models/maintenance_window.py +33 -2
- oci/database/models/update_autonomous_database_software_image_details.py +119 -0
- oci/database_management/db_management_client.py +194 -194
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
- oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
- oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +26 -26
- oci/email_data_plane/email_dp_client.py +2 -2
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +24 -24
- oci/generative_ai/models/dataset.py +1 -1
- oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
- oci/generative_ai/models/endpoint.py +27 -0
- oci/generative_ai/models/model.py +34 -3
- oci/generative_ai/models/model_summary.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
- oci/generative_ai_inference/models/__init__.py +30 -0
- oci/generative_ai_inference/models/base_chat_request.py +109 -0
- oci/generative_ai_inference/models/base_chat_response.py +109 -0
- oci/generative_ai_inference/models/chat_choice.py +161 -0
- oci/generative_ai_inference/models/chat_content.py +101 -0
- oci/generative_ai_inference/models/chat_details.py +126 -0
- oci/generative_ai_inference/models/chat_result.py +130 -0
- oci/generative_ai_inference/models/citation.py +165 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
- oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
- oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/cohere_message.py +119 -0
- oci/generative_ai_inference/models/embed_text_details.py +2 -2
- oci/generative_ai_inference/models/generic_chat_request.py +474 -0
- oci/generative_ai_inference/models/generic_chat_response.py +113 -0
- oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
- oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/llm_inference_response.py +11 -3
- oci/generative_ai_inference/models/message.py +103 -0
- oci/generative_ai_inference/models/search_query.py +72 -0
- oci/generative_ai_inference/models/text_content.py +82 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +23 -23
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/models/__init__.py +2 -0
- oci/network_load_balancer/models/backend_set.py +64 -0
- oci/network_load_balancer/models/backend_set_details.py +64 -0
- oci/network_load_balancer/models/backend_set_summary.py +64 -0
- oci/network_load_balancer/models/create_backend_set_details.py +64 -0
- oci/network_load_balancer/models/dns_health_checker_details.py +264 -0
- oci/network_load_balancer/models/health_checker.py +36 -5
- oci/network_load_balancer/models/health_checker_details.py +36 -5
- oci/network_load_balancer/models/update_backend_set_details.py +64 -0
- oci/network_load_balancer/models/update_health_checker_details.py +36 -5
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/models/opa_instance.py +7 -3
- oci/opa/models/work_request.py +11 -3
- oci/opa/models/work_request_summary.py +11 -3
- oci/opa/opa_instance_client.py +223 -13
- oci/opa/opa_instance_client_composite_operations.py +78 -0
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/models/create_redis_cluster_details.py +31 -0
- oci/redis/models/redis_cluster.py +31 -0
- oci/redis/models/redis_cluster_summary.py +31 -0
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +5 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/associated_monitored_resource.py +118 -0
- oci/stack_monitoring/models/associated_resources_summary.py +118 -0
- oci/stack_monitoring/models/create_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/models/discovery_job_log_summary.py +35 -2
- oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +301 -0
- oci/stack_monitoring/models/monitored_resource.py +118 -0
- oci/stack_monitoring/models/monitored_resource_member_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_summary.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type.py +118 -0
- oci/stack_monitoring/models/monitored_resource_type_summary.py +118 -0
- oci/stack_monitoring/models/search_monitored_resources_details.py +184 -0
- oci/stack_monitoring/models/update_monitored_resource_type_details.py +118 -0
- oci/stack_monitoring/stack_monitoring_client.py +79 -65
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/models/__init__.py +12 -0
- oci/usage_api/models/create_email_recipients_group_details.py +103 -0
- oci/usage_api/models/email_recipient.py +181 -0
- oci/usage_api/models/email_recipients_group.py +181 -0
- oci/usage_api/models/email_recipients_group_collection.py +72 -0
- oci/usage_api/models/email_recipients_group_summary.py +272 -0
- oci/usage_api/models/update_email_recipients_group_details.py +72 -0
- oci/usage_api/usageapi_client.py +656 -34
- oci/usage_api/usageapi_client_composite_operations.py +96 -0
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/METADATA +1 -1
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/RECORD +358 -318
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/LICENSE.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/WHEEL +0 -0
- {oci-2.125.1.dist-info → oci-2.125.3.dist-info}/top_level.txt +0 -0
oci/opa/opa_instance_client.py
CHANGED
@@ -150,7 +150,7 @@ class OpaInstanceClient(object):
|
|
150
150
|
:rtype: :class:`~oci.response.Response`
|
151
151
|
|
152
152
|
:example:
|
153
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
153
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
154
154
|
"""
|
155
155
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
156
|
required_arguments = ['workRequestId']
|
@@ -258,7 +258,7 @@ class OpaInstanceClient(object):
|
|
258
258
|
:rtype: :class:`~oci.response.Response`
|
259
259
|
|
260
260
|
:example:
|
261
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
261
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/change_opa_instance_compartment.py.html>`__ to see an example of how to use change_opa_instance_compartment API.
|
262
262
|
"""
|
263
263
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
264
264
|
required_arguments = ['opaInstanceId']
|
@@ -365,7 +365,7 @@ class OpaInstanceClient(object):
|
|
365
365
|
:rtype: :class:`~oci.response.Response`
|
366
366
|
|
367
367
|
:example:
|
368
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
368
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/create_opa_instance.py.html>`__ to see an example of how to use create_opa_instance API.
|
369
369
|
"""
|
370
370
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
371
371
|
required_arguments = []
|
@@ -461,7 +461,7 @@ class OpaInstanceClient(object):
|
|
461
461
|
:rtype: :class:`~oci.response.Response`
|
462
462
|
|
463
463
|
:example:
|
464
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
464
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/delete_opa_instance.py.html>`__ to see an example of how to use delete_opa_instance API.
|
465
465
|
"""
|
466
466
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
467
467
|
required_arguments = ['opaInstanceId']
|
@@ -559,7 +559,7 @@ class OpaInstanceClient(object):
|
|
559
559
|
:rtype: :class:`~oci.response.Response`
|
560
560
|
|
561
561
|
:example:
|
562
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
562
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/get_opa_instance.py.html>`__ to see an example of how to use get_opa_instance API.
|
563
563
|
"""
|
564
564
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
565
565
|
required_arguments = ['opaInstanceId']
|
@@ -657,7 +657,7 @@ class OpaInstanceClient(object):
|
|
657
657
|
:rtype: :class:`~oci.response.Response`
|
658
658
|
|
659
659
|
:example:
|
660
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
660
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
661
661
|
"""
|
662
662
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
663
663
|
required_arguments = ['workRequestId']
|
@@ -739,7 +739,7 @@ class OpaInstanceClient(object):
|
|
739
739
|
:param str lifecycle_state: (optional)
|
740
740
|
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
741
741
|
|
742
|
-
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
|
742
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
|
743
743
|
|
744
744
|
:param str display_name: (optional)
|
745
745
|
A filter to return only resources that match the entire display name given.
|
@@ -782,7 +782,7 @@ class OpaInstanceClient(object):
|
|
782
782
|
:rtype: :class:`~oci.response.Response`
|
783
783
|
|
784
784
|
:example:
|
785
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
785
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/list_opa_instances.py.html>`__ to see an example of how to use list_opa_instances API.
|
786
786
|
"""
|
787
787
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
788
788
|
required_arguments = []
|
@@ -811,7 +811,7 @@ class OpaInstanceClient(object):
|
|
811
811
|
f"list_opa_instances got unknown kwargs: {extra_kwargs!r}")
|
812
812
|
|
813
813
|
if 'lifecycle_state' in kwargs:
|
814
|
-
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
|
814
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
|
815
815
|
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
816
816
|
raise ValueError(
|
817
817
|
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
@@ -927,7 +927,7 @@ class OpaInstanceClient(object):
|
|
927
927
|
:rtype: :class:`~oci.response.Response`
|
928
928
|
|
929
929
|
:example:
|
930
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
930
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
931
931
|
"""
|
932
932
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
933
933
|
required_arguments = ['workRequestId']
|
@@ -1069,7 +1069,7 @@ class OpaInstanceClient(object):
|
|
1069
1069
|
:rtype: :class:`~oci.response.Response`
|
1070
1070
|
|
1071
1071
|
:example:
|
1072
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1072
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
1073
1073
|
"""
|
1074
1074
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1075
1075
|
required_arguments = ['workRequestId']
|
@@ -1222,7 +1222,7 @@ class OpaInstanceClient(object):
|
|
1222
1222
|
:rtype: :class:`~oci.response.Response`
|
1223
1223
|
|
1224
1224
|
:example:
|
1225
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1225
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
1226
1226
|
"""
|
1227
1227
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1228
1228
|
required_arguments = []
|
@@ -1324,6 +1324,216 @@ class OpaInstanceClient(object):
|
|
1324
1324
|
api_reference_link=api_reference_link,
|
1325
1325
|
required_arguments=required_arguments)
|
1326
1326
|
|
1327
|
+
def start_opa_instance(self, opa_instance_id, **kwargs):
|
1328
|
+
"""
|
1329
|
+
Start an OPA instance that was previously in an INACTIVE state
|
1330
|
+
|
1331
|
+
|
1332
|
+
:param str opa_instance_id: (required)
|
1333
|
+
unique OpaInstance identifier
|
1334
|
+
|
1335
|
+
:param str if_match: (optional)
|
1336
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1337
|
+
for a resource, set the `if-match` parameter to the value of the
|
1338
|
+
etag from a previous GET or POST response for that resource.
|
1339
|
+
The resource will be updated or deleted only if the etag you
|
1340
|
+
provide matches the resource's current etag value.
|
1341
|
+
|
1342
|
+
:param str opc_request_id: (optional)
|
1343
|
+
The client request ID for tracing.
|
1344
|
+
|
1345
|
+
:param obj retry_strategy: (optional)
|
1346
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1347
|
+
|
1348
|
+
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.
|
1349
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1350
|
+
|
1351
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1352
|
+
|
1353
|
+
:param bool allow_control_chars: (optional)
|
1354
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1355
|
+
By default, the response will not allow control characters in strings
|
1356
|
+
|
1357
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1358
|
+
:rtype: :class:`~oci.response.Response`
|
1359
|
+
|
1360
|
+
:example:
|
1361
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/start_opa_instance.py.html>`__ to see an example of how to use start_opa_instance API.
|
1362
|
+
"""
|
1363
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1364
|
+
required_arguments = ['opaInstanceId']
|
1365
|
+
resource_path = "/opaInstances/{opaInstanceId}/actions/start"
|
1366
|
+
method = "POST"
|
1367
|
+
operation_name = "start_opa_instance"
|
1368
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/StartOpaInstance"
|
1369
|
+
|
1370
|
+
# Don't accept unknown kwargs
|
1371
|
+
expected_kwargs = [
|
1372
|
+
"allow_control_chars",
|
1373
|
+
"retry_strategy",
|
1374
|
+
"if_match",
|
1375
|
+
"opc_request_id"
|
1376
|
+
]
|
1377
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1378
|
+
if extra_kwargs:
|
1379
|
+
raise ValueError(
|
1380
|
+
f"start_opa_instance got unknown kwargs: {extra_kwargs!r}")
|
1381
|
+
|
1382
|
+
path_params = {
|
1383
|
+
"opaInstanceId": opa_instance_id
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1387
|
+
|
1388
|
+
for (k, v) in six.iteritems(path_params):
|
1389
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1390
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1391
|
+
|
1392
|
+
header_params = {
|
1393
|
+
"accept": "application/json",
|
1394
|
+
"content-type": "application/json",
|
1395
|
+
"if-match": kwargs.get("if_match", missing),
|
1396
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1397
|
+
}
|
1398
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1399
|
+
|
1400
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1401
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1402
|
+
client_retry_strategy=self.retry_strategy
|
1403
|
+
)
|
1404
|
+
if retry_strategy is None:
|
1405
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1406
|
+
|
1407
|
+
if retry_strategy:
|
1408
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1409
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1410
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1411
|
+
return retry_strategy.make_retrying_call(
|
1412
|
+
self.base_client.call_api,
|
1413
|
+
resource_path=resource_path,
|
1414
|
+
method=method,
|
1415
|
+
path_params=path_params,
|
1416
|
+
header_params=header_params,
|
1417
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1418
|
+
operation_name=operation_name,
|
1419
|
+
api_reference_link=api_reference_link,
|
1420
|
+
required_arguments=required_arguments)
|
1421
|
+
else:
|
1422
|
+
return self.base_client.call_api(
|
1423
|
+
resource_path=resource_path,
|
1424
|
+
method=method,
|
1425
|
+
path_params=path_params,
|
1426
|
+
header_params=header_params,
|
1427
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1428
|
+
operation_name=operation_name,
|
1429
|
+
api_reference_link=api_reference_link,
|
1430
|
+
required_arguments=required_arguments)
|
1431
|
+
|
1432
|
+
def stop_opa_instance(self, opa_instance_id, **kwargs):
|
1433
|
+
"""
|
1434
|
+
Stop an OPA instance that was previously in an ACTIVE state
|
1435
|
+
|
1436
|
+
|
1437
|
+
:param str opa_instance_id: (required)
|
1438
|
+
unique OpaInstance identifier
|
1439
|
+
|
1440
|
+
:param str if_match: (optional)
|
1441
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1442
|
+
for a resource, set the `if-match` parameter to the value of the
|
1443
|
+
etag from a previous GET or POST response for that resource.
|
1444
|
+
The resource will be updated or deleted only if the etag you
|
1445
|
+
provide matches the resource's current etag value.
|
1446
|
+
|
1447
|
+
:param str opc_request_id: (optional)
|
1448
|
+
The client request ID for tracing.
|
1449
|
+
|
1450
|
+
:param obj retry_strategy: (optional)
|
1451
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1452
|
+
|
1453
|
+
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.
|
1454
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1455
|
+
|
1456
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1457
|
+
|
1458
|
+
:param bool allow_control_chars: (optional)
|
1459
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1460
|
+
By default, the response will not allow control characters in strings
|
1461
|
+
|
1462
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1463
|
+
:rtype: :class:`~oci.response.Response`
|
1464
|
+
|
1465
|
+
:example:
|
1466
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/stop_opa_instance.py.html>`__ to see an example of how to use stop_opa_instance API.
|
1467
|
+
"""
|
1468
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1469
|
+
required_arguments = ['opaInstanceId']
|
1470
|
+
resource_path = "/opaInstances/{opaInstanceId}/actions/stop"
|
1471
|
+
method = "POST"
|
1472
|
+
operation_name = "stop_opa_instance"
|
1473
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/StopOpaInstance"
|
1474
|
+
|
1475
|
+
# Don't accept unknown kwargs
|
1476
|
+
expected_kwargs = [
|
1477
|
+
"allow_control_chars",
|
1478
|
+
"retry_strategy",
|
1479
|
+
"if_match",
|
1480
|
+
"opc_request_id"
|
1481
|
+
]
|
1482
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1483
|
+
if extra_kwargs:
|
1484
|
+
raise ValueError(
|
1485
|
+
f"stop_opa_instance got unknown kwargs: {extra_kwargs!r}")
|
1486
|
+
|
1487
|
+
path_params = {
|
1488
|
+
"opaInstanceId": opa_instance_id
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1492
|
+
|
1493
|
+
for (k, v) in six.iteritems(path_params):
|
1494
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1495
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1496
|
+
|
1497
|
+
header_params = {
|
1498
|
+
"accept": "application/json",
|
1499
|
+
"content-type": "application/json",
|
1500
|
+
"if-match": kwargs.get("if_match", missing),
|
1501
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1502
|
+
}
|
1503
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1504
|
+
|
1505
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1506
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1507
|
+
client_retry_strategy=self.retry_strategy
|
1508
|
+
)
|
1509
|
+
if retry_strategy is None:
|
1510
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1511
|
+
|
1512
|
+
if retry_strategy:
|
1513
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1514
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1515
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1516
|
+
return retry_strategy.make_retrying_call(
|
1517
|
+
self.base_client.call_api,
|
1518
|
+
resource_path=resource_path,
|
1519
|
+
method=method,
|
1520
|
+
path_params=path_params,
|
1521
|
+
header_params=header_params,
|
1522
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1523
|
+
operation_name=operation_name,
|
1524
|
+
api_reference_link=api_reference_link,
|
1525
|
+
required_arguments=required_arguments)
|
1526
|
+
else:
|
1527
|
+
return self.base_client.call_api(
|
1528
|
+
resource_path=resource_path,
|
1529
|
+
method=method,
|
1530
|
+
path_params=path_params,
|
1531
|
+
header_params=header_params,
|
1532
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1533
|
+
operation_name=operation_name,
|
1534
|
+
api_reference_link=api_reference_link,
|
1535
|
+
required_arguments=required_arguments)
|
1536
|
+
|
1327
1537
|
def update_opa_instance(self, opa_instance_id, update_opa_instance_details, **kwargs):
|
1328
1538
|
"""
|
1329
1539
|
Updates the OpaInstance
|
@@ -1361,7 +1571,7 @@ class OpaInstanceClient(object):
|
|
1361
1571
|
:rtype: :class:`~oci.response.Response`
|
1362
1572
|
|
1363
1573
|
:example:
|
1364
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1574
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opa/update_opa_instance.py.html>`__ to see an example of how to use update_opa_instance API.
|
1365
1575
|
"""
|
1366
1576
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1367
1577
|
required_arguments = ['opaInstanceId']
|
@@ -153,6 +153,84 @@ class OpaInstanceClientCompositeOperations(object):
|
|
153
153
|
except Exception as e:
|
154
154
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
155
155
|
|
156
|
+
def start_opa_instance_and_wait_for_state(self, opa_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
157
|
+
"""
|
158
|
+
Calls :py:func:`~oci.opa.OpaInstanceClient.start_opa_instance` and waits for the :py:class:`~oci.opa.models.WorkRequest`
|
159
|
+
to enter the given state(s).
|
160
|
+
|
161
|
+
:param str opa_instance_id: (required)
|
162
|
+
unique OpaInstance identifier
|
163
|
+
|
164
|
+
:param list[str] wait_for_states:
|
165
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.opa.models.WorkRequest.status`
|
166
|
+
|
167
|
+
:param dict operation_kwargs:
|
168
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.opa.OpaInstanceClient.start_opa_instance`
|
169
|
+
|
170
|
+
:param dict waiter_kwargs:
|
171
|
+
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``
|
172
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
173
|
+
"""
|
174
|
+
operation_result = self.client.start_opa_instance(opa_instance_id, **operation_kwargs)
|
175
|
+
if not wait_for_states:
|
176
|
+
return operation_result
|
177
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
178
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
179
|
+
return operation_result
|
180
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
181
|
+
|
182
|
+
try:
|
183
|
+
waiter_result = oci.wait_until(
|
184
|
+
self.client,
|
185
|
+
self.client.get_work_request(wait_for_resource_id),
|
186
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
187
|
+
**waiter_kwargs
|
188
|
+
)
|
189
|
+
result_to_return = waiter_result
|
190
|
+
|
191
|
+
return result_to_return
|
192
|
+
except Exception as e:
|
193
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
194
|
+
|
195
|
+
def stop_opa_instance_and_wait_for_state(self, opa_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
196
|
+
"""
|
197
|
+
Calls :py:func:`~oci.opa.OpaInstanceClient.stop_opa_instance` and waits for the :py:class:`~oci.opa.models.WorkRequest`
|
198
|
+
to enter the given state(s).
|
199
|
+
|
200
|
+
:param str opa_instance_id: (required)
|
201
|
+
unique OpaInstance identifier
|
202
|
+
|
203
|
+
:param list[str] wait_for_states:
|
204
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.opa.models.WorkRequest.status`
|
205
|
+
|
206
|
+
:param dict operation_kwargs:
|
207
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.opa.OpaInstanceClient.stop_opa_instance`
|
208
|
+
|
209
|
+
:param dict waiter_kwargs:
|
210
|
+
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``
|
211
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
212
|
+
"""
|
213
|
+
operation_result = self.client.stop_opa_instance(opa_instance_id, **operation_kwargs)
|
214
|
+
if not wait_for_states:
|
215
|
+
return operation_result
|
216
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
217
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
218
|
+
return operation_result
|
219
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
220
|
+
|
221
|
+
try:
|
222
|
+
waiter_result = oci.wait_until(
|
223
|
+
self.client,
|
224
|
+
self.client.get_work_request(wait_for_resource_id),
|
225
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
226
|
+
**waiter_kwargs
|
227
|
+
)
|
228
|
+
result_to_return = waiter_result
|
229
|
+
|
230
|
+
return result_to_return
|
231
|
+
except Exception as e:
|
232
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
233
|
+
|
156
234
|
def update_opa_instance_and_wait_for_state(self, opa_instance_id, update_opa_instance_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
157
235
|
"""
|
158
236
|
Calls :py:func:`~oci.opa.OpaInstanceClient.update_opa_instance` and waits for the :py:class:`~oci.opa.models.WorkRequest`
|
@@ -150,7 +150,7 @@ class OpensearchClusterBackupClient(object):
|
|
150
150
|
:rtype: :class:`~oci.response.Response`
|
151
151
|
|
152
152
|
:example:
|
153
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
153
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/delete_opensearch_cluster_backup.py.html>`__ to see an example of how to use delete_opensearch_cluster_backup API.
|
154
154
|
"""
|
155
155
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
156
|
required_arguments = ['opensearchClusterBackupId']
|
@@ -246,7 +246,7 @@ class OpensearchClusterBackupClient(object):
|
|
246
246
|
:rtype: :class:`~oci.response.Response`
|
247
247
|
|
248
248
|
:example:
|
249
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
249
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/get_opensearch_cluster_backup.py.html>`__ to see an example of how to use get_opensearch_cluster_backup API.
|
250
250
|
"""
|
251
251
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
252
252
|
required_arguments = ['opensearchClusterBackupId']
|
@@ -372,7 +372,7 @@ class OpensearchClusterBackupClient(object):
|
|
372
372
|
:rtype: :class:`~oci.response.Response`
|
373
373
|
|
374
374
|
:example:
|
375
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
375
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_opensearch_cluster_backups.py.html>`__ to see an example of how to use list_opensearch_cluster_backups API.
|
376
376
|
"""
|
377
377
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
378
378
|
required_arguments = ['compartmentId']
|
@@ -510,7 +510,7 @@ class OpensearchClusterBackupClient(object):
|
|
510
510
|
:rtype: :class:`~oci.response.Response`
|
511
511
|
|
512
512
|
:example:
|
513
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
513
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/update_opensearch_cluster_backup.py.html>`__ to see an example of how to use update_opensearch_cluster_backup API.
|
514
514
|
"""
|
515
515
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
516
516
|
required_arguments = ['opensearchClusterBackupId']
|
@@ -160,7 +160,7 @@ class OpensearchClusterClient(object):
|
|
160
160
|
:rtype: :class:`~oci.response.Response`
|
161
161
|
|
162
162
|
:example:
|
163
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
163
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/backup_opensearch_cluster.py.html>`__ to see an example of how to use backup_opensearch_cluster API.
|
164
164
|
"""
|
165
165
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
166
166
|
required_arguments = ['opensearchClusterId']
|
@@ -268,7 +268,7 @@ class OpensearchClusterClient(object):
|
|
268
268
|
:rtype: :class:`~oci.response.Response`
|
269
269
|
|
270
270
|
:example:
|
271
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
271
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/create_opensearch_cluster.py.html>`__ to see an example of how to use create_opensearch_cluster API.
|
272
272
|
"""
|
273
273
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
274
274
|
required_arguments = []
|
@@ -362,7 +362,7 @@ class OpensearchClusterClient(object):
|
|
362
362
|
:rtype: :class:`~oci.response.Response`
|
363
363
|
|
364
364
|
:example:
|
365
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
365
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/delete_opensearch_cluster.py.html>`__ to see an example of how to use delete_opensearch_cluster API.
|
366
366
|
"""
|
367
367
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
368
368
|
required_arguments = ['opensearchClusterId']
|
@@ -458,7 +458,7 @@ class OpensearchClusterClient(object):
|
|
458
458
|
:rtype: :class:`~oci.response.Response`
|
459
459
|
|
460
460
|
:example:
|
461
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
461
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/get_opensearch_cluster.py.html>`__ to see an example of how to use get_opensearch_cluster API.
|
462
462
|
"""
|
463
463
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
464
464
|
required_arguments = ['opensearchClusterId']
|
@@ -554,7 +554,7 @@ class OpensearchClusterClient(object):
|
|
554
554
|
:rtype: :class:`~oci.response.Response`
|
555
555
|
|
556
556
|
:example:
|
557
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
557
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
558
558
|
"""
|
559
559
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
560
560
|
required_arguments = ['workRequestId']
|
@@ -677,7 +677,7 @@ class OpensearchClusterClient(object):
|
|
677
677
|
:rtype: :class:`~oci.response.Response`
|
678
678
|
|
679
679
|
:example:
|
680
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
680
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_opensearch_clusters.py.html>`__ to see an example of how to use list_opensearch_clusters API.
|
681
681
|
"""
|
682
682
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
683
683
|
required_arguments = ['compartmentId']
|
@@ -806,7 +806,7 @@ class OpensearchClusterClient(object):
|
|
806
806
|
:rtype: :class:`~oci.response.Response`
|
807
807
|
|
808
808
|
:example:
|
809
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
809
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_opensearch_versions.py.html>`__ to see an example of how to use list_opensearch_versions API.
|
810
810
|
"""
|
811
811
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
812
812
|
required_arguments = ['compartmentId']
|
@@ -904,7 +904,7 @@ class OpensearchClusterClient(object):
|
|
904
904
|
:rtype: :class:`~oci.response.Response`
|
905
905
|
|
906
906
|
:example:
|
907
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
907
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
908
908
|
"""
|
909
909
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
910
910
|
required_arguments = ['workRequestId']
|
@@ -1016,7 +1016,7 @@ class OpensearchClusterClient(object):
|
|
1016
1016
|
:rtype: :class:`~oci.response.Response`
|
1017
1017
|
|
1018
1018
|
:example:
|
1019
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1019
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
1020
1020
|
"""
|
1021
1021
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1022
1022
|
required_arguments = ['workRequestId']
|
@@ -1134,7 +1134,7 @@ class OpensearchClusterClient(object):
|
|
1134
1134
|
:rtype: :class:`~oci.response.Response`
|
1135
1135
|
|
1136
1136
|
:example:
|
1137
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1137
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
1138
1138
|
"""
|
1139
1139
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1140
1140
|
required_arguments = ['compartmentId']
|
@@ -1250,7 +1250,7 @@ class OpensearchClusterClient(object):
|
|
1250
1250
|
:rtype: :class:`~oci.response.Response`
|
1251
1251
|
|
1252
1252
|
:example:
|
1253
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1253
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/opensearch_cluster_restore.py.html>`__ to see an example of how to use opensearch_cluster_restore API.
|
1254
1254
|
"""
|
1255
1255
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1256
1256
|
required_arguments = ['opensearchClusterId']
|
@@ -1368,7 +1368,7 @@ class OpensearchClusterClient(object):
|
|
1368
1368
|
:rtype: :class:`~oci.response.Response`
|
1369
1369
|
|
1370
1370
|
:example:
|
1371
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1371
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/resize_opensearch_cluster_horizontal.py.html>`__ to see an example of how to use resize_opensearch_cluster_horizontal API.
|
1372
1372
|
"""
|
1373
1373
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1374
1374
|
required_arguments = ['opensearchClusterId']
|
@@ -1486,7 +1486,7 @@ class OpensearchClusterClient(object):
|
|
1486
1486
|
:rtype: :class:`~oci.response.Response`
|
1487
1487
|
|
1488
1488
|
:example:
|
1489
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1489
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/resize_opensearch_cluster_vertical.py.html>`__ to see an example of how to use resize_opensearch_cluster_vertical API.
|
1490
1490
|
"""
|
1491
1491
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1492
1492
|
required_arguments = ['opensearchClusterId']
|
@@ -1597,7 +1597,7 @@ class OpensearchClusterClient(object):
|
|
1597
1597
|
:rtype: :class:`~oci.response.Response`
|
1598
1598
|
|
1599
1599
|
:example:
|
1600
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.
|
1600
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.3/opensearch/update_opensearch_cluster.py.html>`__ to see an example of how to use update_opensearch_cluster API.
|
1601
1601
|
"""
|
1602
1602
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1603
1603
|
required_arguments = ['opensearchClusterId']
|