oci 2.132.0__py3-none-any.whl → 2.134.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +626 -28
- oci/ai_document/ai_service_document_client_composite_operations.py +180 -0
- oci/ai_document/models/__init__.py +10 -0
- oci/ai_document/models/add_model_lock_details.py +150 -0
- oci/ai_document/models/add_project_lock_details.py +150 -0
- oci/ai_document/models/analyze_document_details.py +5 -5
- oci/ai_document/models/detected_document_type.py +0 -35
- oci/ai_document/models/document_classification_feature.py +2 -33
- oci/ai_document/models/document_key_value_extraction_feature.py +2 -33
- oci/ai_document/models/general_processor_config.py +5 -5
- oci/ai_document/models/model.py +33 -2
- oci/ai_document/models/model_summary.py +33 -2
- oci/ai_document/models/output_location.py +1 -1
- oci/ai_document/models/project.py +33 -2
- oci/ai_document/models/remove_model_lock_details.py +88 -0
- oci/ai_document/models/remove_project_lock_details.py +88 -0
- oci/ai_document/models/resource_lock.py +216 -0
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +214 -17
- oci/ai_speech/models/__init__.py +23 -1
- oci/ai_speech/models/synthesize_speech_details.py +196 -0
- oci/ai_speech/models/tts_audio_config.py +106 -0
- oci/ai_speech/models/tts_base_audio_config.py +82 -0
- oci/ai_speech/models/tts_configuration.py +103 -0
- oci/ai_speech/models/tts_oracle_configuration.py +105 -0
- oci/ai_speech/models/tts_oracle_model_details.py +113 -0
- oci/ai_speech/models/tts_oracle_speech_settings.py +246 -0
- oci/ai_speech/models/tts_oracle_tts1_standard_model_details.py +84 -0
- oci/ai_speech/models/tts_oracle_tts2_natural_model_details.py +84 -0
- oci/ai_speech/models/voice_collection.py +72 -0
- oci/ai_speech/models/voice_summary.py +379 -0
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/__init__.py +3 -1
- oci/announcements_service/announcement_client.py +103 -6
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/models/__init__.py +12 -0
- oci/announcements_service/models/announcement.py +1 -1
- oci/announcements_service/models/announcement_compartment.py +72 -0
- oci/announcements_service/models/announcement_summary.py +1 -1
- oci/announcements_service/models/base_announcement.py +7 -3
- oci/announcements_service/models/base_service.py +498 -0
- oci/announcements_service/models/notifications_summary.py +130 -0
- oci/announcements_service/models/service.py +130 -0
- oci/announcements_service/models/service_summary.py +133 -0
- oci/announcements_service/models/services_collection.py +72 -0
- oci/announcements_service/service_client.py +275 -0
- oci/announcements_service/service_client_composite_operations.py +26 -0
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +1692 -423
- oci/capacity_management/capacity_management_client_composite_operations.py +146 -0
- oci/capacity_management/models/__init__.py +23 -1
- oci/capacity_management/models/associated_capacity_request_details.py +103 -0
- oci/capacity_management/models/associated_occ_handover_resource_block.py +103 -0
- oci/capacity_management/models/create_occ_capacity_request_details.py +3 -3
- oci/capacity_management/models/create_occ_customer_details.py +181 -0
- oci/capacity_management/models/create_occ_customer_group_details.py +309 -0
- oci/capacity_management/models/occ_capacity_request_base_details.py +62 -0
- oci/capacity_management/models/occ_handover_resource_block_collection.py +72 -0
- oci/capacity_management/models/occ_handover_resource_block_detail_collection.py +72 -0
- oci/capacity_management/models/occ_handover_resource_block_detail_summary.py +104 -0
- oci/capacity_management/models/occ_handover_resource_block_summary.py +332 -0
- oci/capacity_management/models/placement_details.py +227 -0
- oci/capacity_management/models/update_occ_customer_details.py +150 -0
- oci/capacity_management/models/update_occ_customer_group_details.py +216 -0
- 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 +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- 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 +42 -42
- 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 +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +13862 -9467
- oci/database/database_client_composite_operations.py +1868 -232
- oci/database/models/__init__.py +80 -0
- oci/database/models/action_member.py +134 -0
- oci/database/models/action_order_details.py +107 -0
- oci/database/models/action_param_values_collection.py +72 -0
- oci/database/models/action_param_values_summary.py +216 -0
- oci/database/models/autonomous_database.py +33 -6
- oci/database/models/autonomous_database_standby_summary.py +33 -2
- oci/database/models/autonomous_database_summary.py +33 -6
- oci/database/models/cancel_execution_window_details.py +134 -0
- oci/database/models/change_scheduling_plan_compartment_details.py +76 -0
- oci/database/models/change_scheduling_policy_compartment_details.py +76 -0
- oci/database/models/cloud_exadata_infrastructure.py +33 -2
- oci/database/models/cloud_exadata_infrastructure_summary.py +33 -2
- oci/database/models/create_autonomous_database_base.py +2 -6
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +35 -0
- oci/database/models/create_exadb_vm_cluster_details.py +12 -2
- oci/database/models/create_execution_action_details.py +304 -0
- oci/database/models/create_execution_window_details.py +282 -0
- oci/database/models/create_pluggable_database_creation_type_details.py +0 -2
- oci/database/models/create_scheduled_action_details.py +339 -0
- oci/database/models/create_scheduling_plan_details.py +306 -0
- oci/database/models/create_scheduling_policy_details.py +267 -0
- oci/database/models/create_scheduling_window_details.py +181 -0
- oci/database/models/exadata_infrastructure.py +33 -2
- oci/database/models/exadata_infrastructure_summary.py +33 -2
- oci/database/models/exadb_vm_cluster.py +12 -2
- oci/database/models/exadb_vm_cluster_summary.py +12 -2
- oci/database/models/execution_action.py +715 -0
- oci/database/models/execution_action_member.py +216 -0
- oci/database/models/execution_action_summary.py +715 -0
- oci/database/models/execution_window.py +783 -0
- oci/database/models/execution_window_summary.py +783 -0
- oci/database/models/granular_maintenance_history_details.py +99 -0
- oci/database/models/maintenance_run.py +62 -0
- oci/database/models/maintenance_run_history.py +64 -2
- oci/database/models/maintenance_run_history_summary.py +64 -2
- oci/database/models/maintenance_run_summary.py +62 -0
- oci/database/models/move_execution_action_member_details.py +220 -0
- oci/database/models/recommended_scheduled_action_summary.py +280 -0
- oci/database/models/recommended_scheduled_actions_collection.py +72 -0
- oci/database/models/reorder_execution_action_details.py +152 -0
- oci/database/models/reorder_scheduled_actions_details.py +109 -0
- oci/database/models/scheduled_action.py +633 -0
- oci/database/models/scheduled_action_collection.py +72 -0
- oci/database/models/scheduled_action_summary.py +633 -0
- oci/database/models/scheduling_plan.py +643 -0
- oci/database/models/scheduling_plan_collection.py +72 -0
- oci/database/models/scheduling_plan_summary.py +643 -0
- oci/database/models/scheduling_policy.py +493 -0
- oci/database/models/scheduling_policy_summary.py +493 -0
- oci/database/models/scheduling_window.py +469 -0
- oci/database/models/scheduling_window_summary.py +469 -0
- oci/database/models/update_autonomous_database_details.py +2 -6
- oci/database/models/update_exadb_vm_cluster_details.py +12 -2
- oci/database/models/update_execution_action_details.py +218 -0
- oci/database/models/update_execution_window_details.py +212 -0
- oci/database/models/update_scheduled_action_details.py +140 -0
- oci/database/models/update_scheduling_policy_details.py +232 -0
- oci/database/models/update_scheduling_window_details.py +146 -0
- oci/database/models/window_preference_detail.py +231 -0
- oci/database_management/db_management_client.py +580 -208
- oci/database_management/db_management_client_composite_operations.py +132 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +14 -0
- oci/database_management/models/autonomous_database_diagnostics_and_management_feature_details.py +65 -0
- oci/database_management/models/autonomous_database_feature_details.py +167 -0
- oci/database_management/models/autonomous_database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/connector_details.py +15 -3
- oci/database_management/models/create_db_management_private_endpoint_details.py +31 -0
- oci/database_management/models/db_management_private_endpoint.py +31 -0
- oci/database_management/models/direct_connector_details.py +51 -0
- oci/database_management/models/disable_autonomous_database_management_feature_details.py +92 -0
- oci/database_management/models/enable_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/external_connector_details.py +1 -1
- oci/database_management/models/macs_connector_details.py +1 -1
- oci/database_management/models/modify_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/optimizer_statistics_collection_operation.py +7 -3
- oci/database_management/models/optimizer_statistics_collection_operation_summary.py +7 -3
- oci/database_management/models/private_end_point_connector_details.py +1 -1
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/__init__.py +16 -0
- oci/delegate_access_control/delegate_access_control_client.py +3324 -0
- oci/delegate_access_control/delegate_access_control_client_composite_operations.py +492 -0
- oci/delegate_access_control/models/__init__.py +96 -0
- oci/delegate_access_control/models/approve_delegated_resource_access_request_details.py +138 -0
- oci/delegate_access_control/models/change_delegation_control_compartment_details.py +72 -0
- oci/delegate_access_control/models/change_delegation_subscription_compartment_details.py +72 -0
- oci/delegate_access_control/models/create_delegation_control_details.py +548 -0
- oci/delegate_access_control/models/create_delegation_subscription_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request.py +1373 -0
- oci/delegate_access_control/models/delegated_resource_access_request_approval_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request_audit_log_report.py +193 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_collection.py +72 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_summary.py +300 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary.py +981 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control.py +833 -0
- oci/delegate_access_control/models/delegation_control_resource_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control_resource_summary.py +147 -0
- oci/delegate_access_control/models/delegation_control_summary.py +465 -0
- oci/delegate_access_control/models/delegation_control_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_subscription.py +524 -0
- oci/delegate_access_control/models/delegation_subscription_summary.py +461 -0
- oci/delegate_access_control/models/delegation_subscription_summary_collection.py +72 -0
- oci/delegate_access_control/models/reject_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/revoke_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider.py +583 -0
- oci/delegate_access_control/models/service_provider_action.py +371 -0
- oci/delegate_access_control/models/service_provider_action_properties.py +103 -0
- oci/delegate_access_control/models/service_provider_action_summary.py +323 -0
- oci/delegate_access_control/models/service_provider_action_summary_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_summary.py +247 -0
- oci/delegate_access_control/models/service_provider_summary.py +508 -0
- oci/delegate_access_control/models/service_provider_summary_collection.py +72 -0
- oci/delegate_access_control/models/update_delegation_control_details.py +404 -0
- oci/delegate_access_control/models/update_delegation_subscription_details.py +154 -0
- oci/delegate_access_control/models/work_request.py +438 -0
- oci/delegate_access_control/models/work_request_error.py +136 -0
- oci/delegate_access_control/models/work_request_error_collection.py +72 -0
- oci/delegate_access_control/models/work_request_log_entry.py +103 -0
- oci/delegate_access_control/models/work_request_log_entry_collection.py +72 -0
- oci/delegate_access_control/models/work_request_resource.py +234 -0
- oci/delegate_access_control/models/work_request_summary.py +438 -0
- oci/delegate_access_control/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/work_request_client.py +660 -0
- oci/delegate_access_control/work_request_client_composite_operations.py +26 -0
- 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 +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 +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 +393 -59
- oci/file_storage/file_storage_client_composite_operations.py +138 -0
- oci/file_storage/models/__init__.py +4 -0
- oci/file_storage/models/create_mount_target_details.py +39 -26
- oci/file_storage/models/mount_target.py +153 -3
- oci/file_storage/models/mount_target_summary.py +155 -3
- oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +16 -16
- oci/fleet_apps_management/fleet_apps_management_client.py +70 -70
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +10 -10
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +8 -8
- oci/fleet_software_update/fleet_software_update_client.py +48 -48
- oci/fleet_software_update/models/create_db_fsu_collection_details.py +7 -3
- oci/fleet_software_update/models/create_gi_fsu_collection_details.py +7 -3
- oci/fleet_software_update/models/db_collection.py +7 -3
- oci/fleet_software_update/models/db_discovery_details.py +7 -3
- oci/fleet_software_update/models/db_fsu_collection_summary.py +7 -3
- oci/fleet_software_update/models/gi_collection.py +7 -3
- oci/fleet_software_update/models/gi_discovery_details.py +7 -3
- oci/fleet_software_update/models/gi_fsu_collection_summary.py +7 -3
- oci/fleet_software_update/models/work_request.py +7 -3
- oci/fleet_software_update/models/work_request_summary.py +7 -3
- 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 +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/fusion_environment_family.py +33 -2
- 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 +23 -23
- oci/generative_ai/models/create_endpoint_details.py +2 -2
- oci/generative_ai/models/dedicated_ai_cluster.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- 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 +68 -68
- 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 +307 -307
- oci/integration/integration_instance_client.py +16 -16
- oci/jms/java_management_service_client.py +75 -75
- 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 +25 -25
- oci/key_management/kms_hsm_cluster_client_composite_operations.py +3 -3
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/key_management/models/auto_key_rotation_details.py +10 -10
- oci/key_management/models/change_hsm_cluster_compartment_details.py +3 -3
- oci/key_management/models/create_hsm_cluster_details.py +5 -5
- oci/key_management/models/hsm_cluster.py +4 -4
- oci/key_management/models/hsm_cluster_collection.py +2 -2
- oci/key_management/models/hsm_cluster_summary.py +3 -3
- oci/key_management/models/hsm_partition.py +29 -9
- oci/key_management/models/hsm_partition_collection.py +1 -1
- oci/key_management/models/hsm_partition_summary.py +11 -7
- oci/key_management/models/port_information.py +5 -5
- oci/key_management/models/pre_co_user_credentials.py +2 -2
- oci/key_management/models/upload_partition_certificates_details.py +5 -5
- oci/key_management/models/vault.py +31 -0
- 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 -0
- oci/load_balancer/models/backend_details.py +4 -0
- oci/load_balancer/models/backend_set.py +6 -2
- oci/load_balancer/models/backend_set_details.py +6 -2
- oci/load_balancer/models/create_backend_details.py +4 -0
- oci/load_balancer/models/create_backend_set_details.py +6 -2
- oci/load_balancer/models/create_load_balancer_details.py +116 -0
- oci/load_balancer/models/ip_max_connections.py +8 -2
- oci/load_balancer/models/load_balancer.py +100 -0
- oci/load_balancer/models/update_backend_details.py +4 -0
- oci/load_balancer/models/update_backend_set_details.py +6 -2
- oci/load_balancer/models/update_load_balancer_details.py +112 -0
- oci/lockbox/lockbox_client.py +24 -24
- oci/lockbox/models/access_request.py +35 -2
- oci/lockbox/models/access_request_ext.py +35 -2
- oci/lockbox/models/access_request_summary.py +33 -0
- oci/lockbox/models/create_access_request_details.py +35 -2
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +2 -0
- oci/mysql/models/create_db_system_details.py +37 -2
- oci/mysql/models/customer_contact.py +72 -0
- oci/mysql/models/db_system.py +37 -2
- oci/mysql/models/update_db_system_details.py +37 -2
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/models/__init__.py +14 -0
- oci/object_storage/models/access_target_details.py +136 -0
- oci/object_storage/models/create_private_endpoint_details.py +389 -0
- oci/object_storage/models/fqdns.py +99 -0
- oci/object_storage/models/prefix_fqdns.py +134 -0
- oci/object_storage/models/private_endpoint.py +685 -0
- oci/object_storage/models/private_endpoint_summary.py +369 -0
- oci/object_storage/models/update_private_endpoint_details.py +216 -0
- oci/object_storage/models/work_request.py +15 -3
- oci/object_storage/models/work_request_summary.py +15 -3
- oci/object_storage/object_storage_client.py +686 -71
- oci/object_storage/object_storage_client_composite_operations.py +139 -0
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +8 -8
- oci/ocvp/cluster_client_composite_operations.py +2 -2
- oci/ocvp/esxi_host_client.py +9 -9
- oci/ocvp/models/cluster.py +35 -2
- oci/ocvp/models/cluster_summary.py +35 -2
- oci/ocvp/models/datastore_details.py +1 -1
- oci/ocvp/models/esxi_host.py +35 -2
- oci/ocvp/models/esxi_host_summary.py +35 -2
- oci/ocvp/models/sddc.py +35 -2
- oci/ocvp/models/sddc_summary.py +35 -2
- oci/ocvp/models/supported_host_shape_summary.py +55 -3
- oci/ocvp/models/work_request.py +55 -3
- oci/ocvp/sddc_client.py +21 -16
- 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 +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 +177 -177
- 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 +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- 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 +27 -27
- 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 +135 -25
- oci/recovery/database_recovery_client_composite_operations.py +42 -0
- oci/recovery/models/__init__.py +2 -0
- oci/recovery/models/change_protected_database_subscription_details.py +103 -0
- oci/recovery/models/create_protected_database_details.py +33 -0
- oci/recovery/models/create_protection_policy_details.py +39 -0
- oci/recovery/models/protected_database.py +31 -0
- oci/recovery/models/protected_database_summary.py +31 -0
- oci/recovery/models/protection_policy.py +31 -0
- oci/recovery/models/protection_policy_summary.py +31 -0
- oci/redis/redis_cluster_client.py +12 -12
- oci/regions_definitions.py +3 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_endpoints.py +1 -0
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- 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 +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/models/__init__.py +2 -0
- oci/waf/models/dynamic_http_response_body.py +104 -0
- oci/waf/models/http_response_body.py +11 -3
- oci/waf/models/static_text_http_response_body.py +1 -1
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/METADATA +1 -1
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/RECORD +533 -391
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/WHEEL +0 -0
- {oci-2.132.0.dist-info → oci-2.134.0.dist-info}/top_level.txt +0 -0
@@ -116,6 +116,272 @@ class AIServiceDocumentClient(object):
|
|
116
116
|
self.retry_strategy = kwargs.get('retry_strategy')
|
117
117
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
118
118
|
|
119
|
+
def add_model_lock(self, model_id, add_model_lock_details, **kwargs):
|
120
|
+
"""
|
121
|
+
Adds a lock to a resource.
|
122
|
+
|
123
|
+
|
124
|
+
:param str model_id: (required)
|
125
|
+
A unique model identifier.
|
126
|
+
|
127
|
+
:param oci.ai_document.models.AddModelLockDetails add_model_lock_details: (required)
|
128
|
+
Request payload to add lock to the resource.
|
129
|
+
|
130
|
+
:param str opc_retry_token: (optional)
|
131
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
132
|
+
server error without the risk of executing that same action again. Retry tokens expire after 24
|
133
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
134
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
135
|
+
might be rejected.
|
136
|
+
|
137
|
+
:param str opc_request_id: (optional)
|
138
|
+
The client request ID for tracing.
|
139
|
+
|
140
|
+
:param str if_match: (optional)
|
141
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
142
|
+
for a resource, set the `if-match` parameter to the value of the
|
143
|
+
etag from a previous GET or POST response for that resource.
|
144
|
+
The resource will be updated or deleted only if the etag you
|
145
|
+
provide matches the resource's current etag value.
|
146
|
+
|
147
|
+
:param bool is_lock_override: (optional)
|
148
|
+
Whether to override locks (if any exist).
|
149
|
+
|
150
|
+
:param obj retry_strategy: (optional)
|
151
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
152
|
+
|
153
|
+
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.
|
154
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
155
|
+
|
156
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
157
|
+
|
158
|
+
:param bool allow_control_chars: (optional)
|
159
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
160
|
+
By default, the response will not allow control characters in strings
|
161
|
+
|
162
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_document.models.Model`
|
163
|
+
:rtype: :class:`~oci.response.Response`
|
164
|
+
|
165
|
+
:example:
|
166
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/add_model_lock.py.html>`__ to see an example of how to use add_model_lock API.
|
167
|
+
"""
|
168
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
169
|
+
required_arguments = ['modelId']
|
170
|
+
resource_path = "/models/{modelId}/actions/addLock"
|
171
|
+
method = "POST"
|
172
|
+
operation_name = "add_model_lock"
|
173
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock"
|
174
|
+
|
175
|
+
# Don't accept unknown kwargs
|
176
|
+
expected_kwargs = [
|
177
|
+
"allow_control_chars",
|
178
|
+
"retry_strategy",
|
179
|
+
"opc_retry_token",
|
180
|
+
"opc_request_id",
|
181
|
+
"if_match",
|
182
|
+
"is_lock_override"
|
183
|
+
]
|
184
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
185
|
+
if extra_kwargs:
|
186
|
+
raise ValueError(
|
187
|
+
f"add_model_lock got unknown kwargs: {extra_kwargs!r}")
|
188
|
+
|
189
|
+
path_params = {
|
190
|
+
"modelId": model_id
|
191
|
+
}
|
192
|
+
|
193
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
194
|
+
|
195
|
+
for (k, v) in six.iteritems(path_params):
|
196
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
197
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
198
|
+
|
199
|
+
query_params = {
|
200
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
201
|
+
}
|
202
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
203
|
+
|
204
|
+
header_params = {
|
205
|
+
"accept": "application/json",
|
206
|
+
"content-type": "application/json",
|
207
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
208
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
209
|
+
"if-match": kwargs.get("if_match", missing)
|
210
|
+
}
|
211
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
212
|
+
|
213
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
214
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
215
|
+
client_retry_strategy=self.retry_strategy
|
216
|
+
)
|
217
|
+
if retry_strategy is None:
|
218
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
219
|
+
|
220
|
+
if retry_strategy:
|
221
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
222
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
223
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
224
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
225
|
+
return retry_strategy.make_retrying_call(
|
226
|
+
self.base_client.call_api,
|
227
|
+
resource_path=resource_path,
|
228
|
+
method=method,
|
229
|
+
path_params=path_params,
|
230
|
+
query_params=query_params,
|
231
|
+
header_params=header_params,
|
232
|
+
body=add_model_lock_details,
|
233
|
+
response_type="Model",
|
234
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
235
|
+
operation_name=operation_name,
|
236
|
+
api_reference_link=api_reference_link,
|
237
|
+
required_arguments=required_arguments)
|
238
|
+
else:
|
239
|
+
return self.base_client.call_api(
|
240
|
+
resource_path=resource_path,
|
241
|
+
method=method,
|
242
|
+
path_params=path_params,
|
243
|
+
query_params=query_params,
|
244
|
+
header_params=header_params,
|
245
|
+
body=add_model_lock_details,
|
246
|
+
response_type="Model",
|
247
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
248
|
+
operation_name=operation_name,
|
249
|
+
api_reference_link=api_reference_link,
|
250
|
+
required_arguments=required_arguments)
|
251
|
+
|
252
|
+
def add_project_lock(self, project_id, add_project_lock_details, **kwargs):
|
253
|
+
"""
|
254
|
+
Adds a lock to a resource.
|
255
|
+
|
256
|
+
|
257
|
+
:param str project_id: (required)
|
258
|
+
A unique project identifier.
|
259
|
+
|
260
|
+
:param oci.ai_document.models.AddProjectLockDetails add_project_lock_details: (required)
|
261
|
+
Request payload to add lock to the resource.
|
262
|
+
|
263
|
+
:param str opc_retry_token: (optional)
|
264
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
265
|
+
server error without the risk of executing that same action again. Retry tokens expire after 24
|
266
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
267
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
268
|
+
might be rejected.
|
269
|
+
|
270
|
+
:param str opc_request_id: (optional)
|
271
|
+
The client request ID for tracing.
|
272
|
+
|
273
|
+
:param str if_match: (optional)
|
274
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
275
|
+
for a resource, set the `if-match` parameter to the value of the
|
276
|
+
etag from a previous GET or POST response for that resource.
|
277
|
+
The resource will be updated or deleted only if the etag you
|
278
|
+
provide matches the resource's current etag value.
|
279
|
+
|
280
|
+
:param bool is_lock_override: (optional)
|
281
|
+
Whether to override locks (if any exist).
|
282
|
+
|
283
|
+
:param obj retry_strategy: (optional)
|
284
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
285
|
+
|
286
|
+
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.
|
287
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
288
|
+
|
289
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
290
|
+
|
291
|
+
:param bool allow_control_chars: (optional)
|
292
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
293
|
+
By default, the response will not allow control characters in strings
|
294
|
+
|
295
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_document.models.Project`
|
296
|
+
:rtype: :class:`~oci.response.Response`
|
297
|
+
|
298
|
+
:example:
|
299
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/add_project_lock.py.html>`__ to see an example of how to use add_project_lock API.
|
300
|
+
"""
|
301
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
302
|
+
required_arguments = ['projectId']
|
303
|
+
resource_path = "/projects/{projectId}/actions/addLock"
|
304
|
+
method = "POST"
|
305
|
+
operation_name = "add_project_lock"
|
306
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock"
|
307
|
+
|
308
|
+
# Don't accept unknown kwargs
|
309
|
+
expected_kwargs = [
|
310
|
+
"allow_control_chars",
|
311
|
+
"retry_strategy",
|
312
|
+
"opc_retry_token",
|
313
|
+
"opc_request_id",
|
314
|
+
"if_match",
|
315
|
+
"is_lock_override"
|
316
|
+
]
|
317
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
318
|
+
if extra_kwargs:
|
319
|
+
raise ValueError(
|
320
|
+
f"add_project_lock got unknown kwargs: {extra_kwargs!r}")
|
321
|
+
|
322
|
+
path_params = {
|
323
|
+
"projectId": project_id
|
324
|
+
}
|
325
|
+
|
326
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
327
|
+
|
328
|
+
for (k, v) in six.iteritems(path_params):
|
329
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
330
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
331
|
+
|
332
|
+
query_params = {
|
333
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
334
|
+
}
|
335
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
336
|
+
|
337
|
+
header_params = {
|
338
|
+
"accept": "application/json",
|
339
|
+
"content-type": "application/json",
|
340
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
341
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
342
|
+
"if-match": kwargs.get("if_match", missing)
|
343
|
+
}
|
344
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
345
|
+
|
346
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
347
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
348
|
+
client_retry_strategy=self.retry_strategy
|
349
|
+
)
|
350
|
+
if retry_strategy is None:
|
351
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
352
|
+
|
353
|
+
if retry_strategy:
|
354
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
355
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
356
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
357
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
358
|
+
return retry_strategy.make_retrying_call(
|
359
|
+
self.base_client.call_api,
|
360
|
+
resource_path=resource_path,
|
361
|
+
method=method,
|
362
|
+
path_params=path_params,
|
363
|
+
query_params=query_params,
|
364
|
+
header_params=header_params,
|
365
|
+
body=add_project_lock_details,
|
366
|
+
response_type="Project",
|
367
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
368
|
+
operation_name=operation_name,
|
369
|
+
api_reference_link=api_reference_link,
|
370
|
+
required_arguments=required_arguments)
|
371
|
+
else:
|
372
|
+
return self.base_client.call_api(
|
373
|
+
resource_path=resource_path,
|
374
|
+
method=method,
|
375
|
+
path_params=path_params,
|
376
|
+
query_params=query_params,
|
377
|
+
header_params=header_params,
|
378
|
+
body=add_project_lock_details,
|
379
|
+
response_type="Project",
|
380
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
381
|
+
operation_name=operation_name,
|
382
|
+
api_reference_link=api_reference_link,
|
383
|
+
required_arguments=required_arguments)
|
384
|
+
|
119
385
|
def analyze_document(self, analyze_document_details, **kwargs):
|
120
386
|
"""
|
121
387
|
Perform different types of document analysis.
|
@@ -150,7 +416,7 @@ class AIServiceDocumentClient(object):
|
|
150
416
|
:rtype: :class:`~oci.response.Response`
|
151
417
|
|
152
418
|
:example:
|
153
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
419
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/analyze_document.py.html>`__ to see an example of how to use analyze_document API.
|
154
420
|
"""
|
155
421
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
422
|
required_arguments = []
|
@@ -247,7 +513,7 @@ class AIServiceDocumentClient(object):
|
|
247
513
|
:rtype: :class:`~oci.response.Response`
|
248
514
|
|
249
515
|
:example:
|
250
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
516
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/cancel_processor_job.py.html>`__ to see an example of how to use cancel_processor_job API.
|
251
517
|
"""
|
252
518
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
253
519
|
required_arguments = ['processorJobId']
|
@@ -350,7 +616,7 @@ class AIServiceDocumentClient(object):
|
|
350
616
|
:rtype: :class:`~oci.response.Response`
|
351
617
|
|
352
618
|
:example:
|
353
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
619
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
354
620
|
"""
|
355
621
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
356
622
|
required_arguments = ['workRequestId']
|
@@ -440,6 +706,9 @@ class AIServiceDocumentClient(object):
|
|
440
706
|
:param str opc_request_id: (optional)
|
441
707
|
The client request ID for tracing.
|
442
708
|
|
709
|
+
:param bool is_lock_override: (optional)
|
710
|
+
Whether to override locks (if any exist).
|
711
|
+
|
443
712
|
:param obj retry_strategy: (optional)
|
444
713
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
445
714
|
|
@@ -456,7 +725,7 @@ class AIServiceDocumentClient(object):
|
|
456
725
|
:rtype: :class:`~oci.response.Response`
|
457
726
|
|
458
727
|
:example:
|
459
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
728
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/change_model_compartment.py.html>`__ to see an example of how to use change_model_compartment API.
|
460
729
|
"""
|
461
730
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
462
731
|
required_arguments = ['modelId']
|
@@ -470,7 +739,8 @@ class AIServiceDocumentClient(object):
|
|
470
739
|
"allow_control_chars",
|
471
740
|
"retry_strategy",
|
472
741
|
"if_match",
|
473
|
-
"opc_request_id"
|
742
|
+
"opc_request_id",
|
743
|
+
"is_lock_override"
|
474
744
|
]
|
475
745
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
476
746
|
if extra_kwargs:
|
@@ -487,6 +757,11 @@ class AIServiceDocumentClient(object):
|
|
487
757
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
488
758
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
489
759
|
|
760
|
+
query_params = {
|
761
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
762
|
+
}
|
763
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
764
|
+
|
490
765
|
header_params = {
|
491
766
|
"accept": "application/json",
|
492
767
|
"content-type": "application/json",
|
@@ -509,6 +784,7 @@ class AIServiceDocumentClient(object):
|
|
509
784
|
resource_path=resource_path,
|
510
785
|
method=method,
|
511
786
|
path_params=path_params,
|
787
|
+
query_params=query_params,
|
512
788
|
header_params=header_params,
|
513
789
|
body=change_model_compartment_details,
|
514
790
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -520,6 +796,7 @@ class AIServiceDocumentClient(object):
|
|
520
796
|
resource_path=resource_path,
|
521
797
|
method=method,
|
522
798
|
path_params=path_params,
|
799
|
+
query_params=query_params,
|
523
800
|
header_params=header_params,
|
524
801
|
body=change_model_compartment_details,
|
525
802
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -548,6 +825,9 @@ class AIServiceDocumentClient(object):
|
|
548
825
|
:param str opc_request_id: (optional)
|
549
826
|
The client request ID for tracing.
|
550
827
|
|
828
|
+
:param bool is_lock_override: (optional)
|
829
|
+
Whether to override locks (if any exist).
|
830
|
+
|
551
831
|
:param obj retry_strategy: (optional)
|
552
832
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
553
833
|
|
@@ -564,7 +844,7 @@ class AIServiceDocumentClient(object):
|
|
564
844
|
:rtype: :class:`~oci.response.Response`
|
565
845
|
|
566
846
|
:example:
|
567
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
847
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/change_project_compartment.py.html>`__ to see an example of how to use change_project_compartment API.
|
568
848
|
"""
|
569
849
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
570
850
|
required_arguments = ['projectId']
|
@@ -578,7 +858,8 @@ class AIServiceDocumentClient(object):
|
|
578
858
|
"allow_control_chars",
|
579
859
|
"retry_strategy",
|
580
860
|
"if_match",
|
581
|
-
"opc_request_id"
|
861
|
+
"opc_request_id",
|
862
|
+
"is_lock_override"
|
582
863
|
]
|
583
864
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
584
865
|
if extra_kwargs:
|
@@ -595,6 +876,11 @@ class AIServiceDocumentClient(object):
|
|
595
876
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
596
877
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
597
878
|
|
879
|
+
query_params = {
|
880
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
881
|
+
}
|
882
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
883
|
+
|
598
884
|
header_params = {
|
599
885
|
"accept": "application/json",
|
600
886
|
"content-type": "application/json",
|
@@ -617,6 +903,7 @@ class AIServiceDocumentClient(object):
|
|
617
903
|
resource_path=resource_path,
|
618
904
|
method=method,
|
619
905
|
path_params=path_params,
|
906
|
+
query_params=query_params,
|
620
907
|
header_params=header_params,
|
621
908
|
body=change_project_compartment_details,
|
622
909
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -628,6 +915,7 @@ class AIServiceDocumentClient(object):
|
|
628
915
|
resource_path=resource_path,
|
629
916
|
method=method,
|
630
917
|
path_params=path_params,
|
918
|
+
query_params=query_params,
|
631
919
|
header_params=header_params,
|
632
920
|
body=change_project_compartment_details,
|
633
921
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -669,7 +957,7 @@ class AIServiceDocumentClient(object):
|
|
669
957
|
:rtype: :class:`~oci.response.Response`
|
670
958
|
|
671
959
|
:example:
|
672
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
960
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/create_model.py.html>`__ to see an example of how to use create_model API.
|
673
961
|
"""
|
674
962
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
675
963
|
required_arguments = []
|
@@ -767,7 +1055,7 @@ class AIServiceDocumentClient(object):
|
|
767
1055
|
:rtype: :class:`~oci.response.Response`
|
768
1056
|
|
769
1057
|
:example:
|
770
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1058
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/create_processor_job.py.html>`__ to see an example of how to use create_processor_job API.
|
771
1059
|
"""
|
772
1060
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
773
1061
|
required_arguments = []
|
@@ -865,7 +1153,7 @@ class AIServiceDocumentClient(object):
|
|
865
1153
|
:rtype: :class:`~oci.response.Response`
|
866
1154
|
|
867
1155
|
:example:
|
868
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1156
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/create_project.py.html>`__ to see an example of how to use create_project API.
|
869
1157
|
"""
|
870
1158
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
871
1159
|
required_arguments = []
|
@@ -947,6 +1235,9 @@ class AIServiceDocumentClient(object):
|
|
947
1235
|
:param str opc_request_id: (optional)
|
948
1236
|
The client request ID for tracing.
|
949
1237
|
|
1238
|
+
:param bool is_lock_override: (optional)
|
1239
|
+
Whether to override locks (if any exist).
|
1240
|
+
|
950
1241
|
:param obj retry_strategy: (optional)
|
951
1242
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
952
1243
|
|
@@ -963,7 +1254,7 @@ class AIServiceDocumentClient(object):
|
|
963
1254
|
:rtype: :class:`~oci.response.Response`
|
964
1255
|
|
965
1256
|
:example:
|
966
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1257
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/delete_model.py.html>`__ to see an example of how to use delete_model API.
|
967
1258
|
"""
|
968
1259
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
969
1260
|
required_arguments = ['modelId']
|
@@ -977,7 +1268,8 @@ class AIServiceDocumentClient(object):
|
|
977
1268
|
"allow_control_chars",
|
978
1269
|
"retry_strategy",
|
979
1270
|
"if_match",
|
980
|
-
"opc_request_id"
|
1271
|
+
"opc_request_id",
|
1272
|
+
"is_lock_override"
|
981
1273
|
]
|
982
1274
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
983
1275
|
if extra_kwargs:
|
@@ -994,6 +1286,11 @@ class AIServiceDocumentClient(object):
|
|
994
1286
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
995
1287
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
996
1288
|
|
1289
|
+
query_params = {
|
1290
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
1291
|
+
}
|
1292
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1293
|
+
|
997
1294
|
header_params = {
|
998
1295
|
"accept": "application/json",
|
999
1296
|
"content-type": "application/json",
|
@@ -1016,6 +1313,7 @@ class AIServiceDocumentClient(object):
|
|
1016
1313
|
resource_path=resource_path,
|
1017
1314
|
method=method,
|
1018
1315
|
path_params=path_params,
|
1316
|
+
query_params=query_params,
|
1019
1317
|
header_params=header_params,
|
1020
1318
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1021
1319
|
operation_name=operation_name,
|
@@ -1026,6 +1324,7 @@ class AIServiceDocumentClient(object):
|
|
1026
1324
|
resource_path=resource_path,
|
1027
1325
|
method=method,
|
1028
1326
|
path_params=path_params,
|
1327
|
+
query_params=query_params,
|
1029
1328
|
header_params=header_params,
|
1030
1329
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1031
1330
|
operation_name=operation_name,
|
@@ -1050,6 +1349,9 @@ class AIServiceDocumentClient(object):
|
|
1050
1349
|
:param str opc_request_id: (optional)
|
1051
1350
|
The client request ID for tracing.
|
1052
1351
|
|
1352
|
+
:param bool is_lock_override: (optional)
|
1353
|
+
Whether to override locks (if any exist).
|
1354
|
+
|
1053
1355
|
:param obj retry_strategy: (optional)
|
1054
1356
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1055
1357
|
|
@@ -1066,7 +1368,7 @@ class AIServiceDocumentClient(object):
|
|
1066
1368
|
:rtype: :class:`~oci.response.Response`
|
1067
1369
|
|
1068
1370
|
:example:
|
1069
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1371
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/delete_project.py.html>`__ to see an example of how to use delete_project API.
|
1070
1372
|
"""
|
1071
1373
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1072
1374
|
required_arguments = ['projectId']
|
@@ -1080,7 +1382,8 @@ class AIServiceDocumentClient(object):
|
|
1080
1382
|
"allow_control_chars",
|
1081
1383
|
"retry_strategy",
|
1082
1384
|
"if_match",
|
1083
|
-
"opc_request_id"
|
1385
|
+
"opc_request_id",
|
1386
|
+
"is_lock_override"
|
1084
1387
|
]
|
1085
1388
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1086
1389
|
if extra_kwargs:
|
@@ -1097,6 +1400,11 @@ class AIServiceDocumentClient(object):
|
|
1097
1400
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1098
1401
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1099
1402
|
|
1403
|
+
query_params = {
|
1404
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
1405
|
+
}
|
1406
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1407
|
+
|
1100
1408
|
header_params = {
|
1101
1409
|
"accept": "application/json",
|
1102
1410
|
"content-type": "application/json",
|
@@ -1119,6 +1427,7 @@ class AIServiceDocumentClient(object):
|
|
1119
1427
|
resource_path=resource_path,
|
1120
1428
|
method=method,
|
1121
1429
|
path_params=path_params,
|
1430
|
+
query_params=query_params,
|
1122
1431
|
header_params=header_params,
|
1123
1432
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1124
1433
|
operation_name=operation_name,
|
@@ -1129,6 +1438,7 @@ class AIServiceDocumentClient(object):
|
|
1129
1438
|
resource_path=resource_path,
|
1130
1439
|
method=method,
|
1131
1440
|
path_params=path_params,
|
1441
|
+
query_params=query_params,
|
1132
1442
|
header_params=header_params,
|
1133
1443
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1134
1444
|
operation_name=operation_name,
|
@@ -1162,7 +1472,7 @@ class AIServiceDocumentClient(object):
|
|
1162
1472
|
:rtype: :class:`~oci.response.Response`
|
1163
1473
|
|
1164
1474
|
:example:
|
1165
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1475
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/get_model.py.html>`__ to see an example of how to use get_model API.
|
1166
1476
|
"""
|
1167
1477
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1168
1478
|
required_arguments = ['modelId']
|
@@ -1260,7 +1570,7 @@ class AIServiceDocumentClient(object):
|
|
1260
1570
|
:rtype: :class:`~oci.response.Response`
|
1261
1571
|
|
1262
1572
|
:example:
|
1263
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1573
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/get_processor_job.py.html>`__ to see an example of how to use get_processor_job API.
|
1264
1574
|
"""
|
1265
1575
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1266
1576
|
required_arguments = ['processorJobId']
|
@@ -1358,7 +1668,7 @@ class AIServiceDocumentClient(object):
|
|
1358
1668
|
:rtype: :class:`~oci.response.Response`
|
1359
1669
|
|
1360
1670
|
:example:
|
1361
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1671
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/get_project.py.html>`__ to see an example of how to use get_project API.
|
1362
1672
|
"""
|
1363
1673
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1364
1674
|
required_arguments = ['projectId']
|
@@ -1456,7 +1766,7 @@ class AIServiceDocumentClient(object):
|
|
1456
1766
|
:rtype: :class:`~oci.response.Response`
|
1457
1767
|
|
1458
1768
|
:example:
|
1459
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1769
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
1460
1770
|
"""
|
1461
1771
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1462
1772
|
required_arguments = ['workRequestId']
|
@@ -1584,7 +1894,7 @@ class AIServiceDocumentClient(object):
|
|
1584
1894
|
:rtype: :class:`~oci.response.Response`
|
1585
1895
|
|
1586
1896
|
:example:
|
1587
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1897
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/list_models.py.html>`__ to see an example of how to use list_models API.
|
1588
1898
|
"""
|
1589
1899
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1590
1900
|
required_arguments = []
|
@@ -1742,7 +2052,7 @@ class AIServiceDocumentClient(object):
|
|
1742
2052
|
:rtype: :class:`~oci.response.Response`
|
1743
2053
|
|
1744
2054
|
:example:
|
1745
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2055
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/list_projects.py.html>`__ to see an example of how to use list_projects API.
|
1746
2056
|
"""
|
1747
2057
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1748
2058
|
required_arguments = []
|
@@ -1887,7 +2197,7 @@ class AIServiceDocumentClient(object):
|
|
1887
2197
|
:rtype: :class:`~oci.response.Response`
|
1888
2198
|
|
1889
2199
|
:example:
|
1890
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2200
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
1891
2201
|
"""
|
1892
2202
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1893
2203
|
required_arguments = ['workRequestId']
|
@@ -2029,7 +2339,7 @@ class AIServiceDocumentClient(object):
|
|
2029
2339
|
:rtype: :class:`~oci.response.Response`
|
2030
2340
|
|
2031
2341
|
:example:
|
2032
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2342
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
2033
2343
|
"""
|
2034
2344
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2035
2345
|
required_arguments = ['workRequestId']
|
@@ -2182,7 +2492,7 @@ class AIServiceDocumentClient(object):
|
|
2182
2492
|
:rtype: :class:`~oci.response.Response`
|
2183
2493
|
|
2184
2494
|
:example:
|
2185
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2495
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
2186
2496
|
"""
|
2187
2497
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2188
2498
|
required_arguments = []
|
@@ -2321,7 +2631,7 @@ class AIServiceDocumentClient(object):
|
|
2321
2631
|
:rtype: :class:`~oci.response.Response`
|
2322
2632
|
|
2323
2633
|
:example:
|
2324
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2634
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/patch_model.py.html>`__ to see an example of how to use patch_model API.
|
2325
2635
|
"""
|
2326
2636
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2327
2637
|
required_arguments = ['modelId']
|
@@ -2394,6 +2704,272 @@ class AIServiceDocumentClient(object):
|
|
2394
2704
|
api_reference_link=api_reference_link,
|
2395
2705
|
required_arguments=required_arguments)
|
2396
2706
|
|
2707
|
+
def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs):
|
2708
|
+
"""
|
2709
|
+
Remove a lock from a resource.
|
2710
|
+
|
2711
|
+
|
2712
|
+
:param str model_id: (required)
|
2713
|
+
A unique model identifier.
|
2714
|
+
|
2715
|
+
:param oci.ai_document.models.RemoveModelLockDetails remove_model_lock_details: (required)
|
2716
|
+
Request payload to remove lock to the resource.
|
2717
|
+
|
2718
|
+
:param str opc_retry_token: (optional)
|
2719
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2720
|
+
server error without the risk of executing that same action again. Retry tokens expire after 24
|
2721
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2722
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2723
|
+
might be rejected.
|
2724
|
+
|
2725
|
+
:param str opc_request_id: (optional)
|
2726
|
+
The client request ID for tracing.
|
2727
|
+
|
2728
|
+
:param str if_match: (optional)
|
2729
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2730
|
+
for a resource, set the `if-match` parameter to the value of the
|
2731
|
+
etag from a previous GET or POST response for that resource.
|
2732
|
+
The resource will be updated or deleted only if the etag you
|
2733
|
+
provide matches the resource's current etag value.
|
2734
|
+
|
2735
|
+
:param bool is_lock_override: (optional)
|
2736
|
+
Whether to override locks (if any exist).
|
2737
|
+
|
2738
|
+
:param obj retry_strategy: (optional)
|
2739
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2740
|
+
|
2741
|
+
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.
|
2742
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2743
|
+
|
2744
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2745
|
+
|
2746
|
+
:param bool allow_control_chars: (optional)
|
2747
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2748
|
+
By default, the response will not allow control characters in strings
|
2749
|
+
|
2750
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_document.models.Model`
|
2751
|
+
:rtype: :class:`~oci.response.Response`
|
2752
|
+
|
2753
|
+
:example:
|
2754
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/remove_model_lock.py.html>`__ to see an example of how to use remove_model_lock API.
|
2755
|
+
"""
|
2756
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2757
|
+
required_arguments = ['modelId']
|
2758
|
+
resource_path = "/models/{modelId}/actions/removeLock"
|
2759
|
+
method = "POST"
|
2760
|
+
operation_name = "remove_model_lock"
|
2761
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock"
|
2762
|
+
|
2763
|
+
# Don't accept unknown kwargs
|
2764
|
+
expected_kwargs = [
|
2765
|
+
"allow_control_chars",
|
2766
|
+
"retry_strategy",
|
2767
|
+
"opc_retry_token",
|
2768
|
+
"opc_request_id",
|
2769
|
+
"if_match",
|
2770
|
+
"is_lock_override"
|
2771
|
+
]
|
2772
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2773
|
+
if extra_kwargs:
|
2774
|
+
raise ValueError(
|
2775
|
+
f"remove_model_lock got unknown kwargs: {extra_kwargs!r}")
|
2776
|
+
|
2777
|
+
path_params = {
|
2778
|
+
"modelId": model_id
|
2779
|
+
}
|
2780
|
+
|
2781
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2782
|
+
|
2783
|
+
for (k, v) in six.iteritems(path_params):
|
2784
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2785
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2786
|
+
|
2787
|
+
query_params = {
|
2788
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
2789
|
+
}
|
2790
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2791
|
+
|
2792
|
+
header_params = {
|
2793
|
+
"accept": "application/json",
|
2794
|
+
"content-type": "application/json",
|
2795
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
2796
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2797
|
+
"if-match": kwargs.get("if_match", missing)
|
2798
|
+
}
|
2799
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2800
|
+
|
2801
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2802
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2803
|
+
client_retry_strategy=self.retry_strategy
|
2804
|
+
)
|
2805
|
+
if retry_strategy is None:
|
2806
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2807
|
+
|
2808
|
+
if retry_strategy:
|
2809
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2810
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2811
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2812
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2813
|
+
return retry_strategy.make_retrying_call(
|
2814
|
+
self.base_client.call_api,
|
2815
|
+
resource_path=resource_path,
|
2816
|
+
method=method,
|
2817
|
+
path_params=path_params,
|
2818
|
+
query_params=query_params,
|
2819
|
+
header_params=header_params,
|
2820
|
+
body=remove_model_lock_details,
|
2821
|
+
response_type="Model",
|
2822
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2823
|
+
operation_name=operation_name,
|
2824
|
+
api_reference_link=api_reference_link,
|
2825
|
+
required_arguments=required_arguments)
|
2826
|
+
else:
|
2827
|
+
return self.base_client.call_api(
|
2828
|
+
resource_path=resource_path,
|
2829
|
+
method=method,
|
2830
|
+
path_params=path_params,
|
2831
|
+
query_params=query_params,
|
2832
|
+
header_params=header_params,
|
2833
|
+
body=remove_model_lock_details,
|
2834
|
+
response_type="Model",
|
2835
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2836
|
+
operation_name=operation_name,
|
2837
|
+
api_reference_link=api_reference_link,
|
2838
|
+
required_arguments=required_arguments)
|
2839
|
+
|
2840
|
+
def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs):
|
2841
|
+
"""
|
2842
|
+
Remove a lock from a resource.
|
2843
|
+
|
2844
|
+
|
2845
|
+
:param str project_id: (required)
|
2846
|
+
A unique project identifier.
|
2847
|
+
|
2848
|
+
:param oci.ai_document.models.RemoveProjectLockDetails remove_project_lock_details: (required)
|
2849
|
+
Request payload to remove lock to the resource.
|
2850
|
+
|
2851
|
+
:param str opc_retry_token: (optional)
|
2852
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2853
|
+
server error without the risk of executing that same action again. Retry tokens expire after 24
|
2854
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2855
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2856
|
+
might be rejected.
|
2857
|
+
|
2858
|
+
:param str opc_request_id: (optional)
|
2859
|
+
The client request ID for tracing.
|
2860
|
+
|
2861
|
+
:param str if_match: (optional)
|
2862
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2863
|
+
for a resource, set the `if-match` parameter to the value of the
|
2864
|
+
etag from a previous GET or POST response for that resource.
|
2865
|
+
The resource will be updated or deleted only if the etag you
|
2866
|
+
provide matches the resource's current etag value.
|
2867
|
+
|
2868
|
+
:param bool is_lock_override: (optional)
|
2869
|
+
Whether to override locks (if any exist).
|
2870
|
+
|
2871
|
+
:param obj retry_strategy: (optional)
|
2872
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2873
|
+
|
2874
|
+
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.
|
2875
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2876
|
+
|
2877
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2878
|
+
|
2879
|
+
:param bool allow_control_chars: (optional)
|
2880
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2881
|
+
By default, the response will not allow control characters in strings
|
2882
|
+
|
2883
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_document.models.Project`
|
2884
|
+
:rtype: :class:`~oci.response.Response`
|
2885
|
+
|
2886
|
+
:example:
|
2887
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/remove_project_lock.py.html>`__ to see an example of how to use remove_project_lock API.
|
2888
|
+
"""
|
2889
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2890
|
+
required_arguments = ['projectId']
|
2891
|
+
resource_path = "/projects/{projectId}/actions/removeLock"
|
2892
|
+
method = "POST"
|
2893
|
+
operation_name = "remove_project_lock"
|
2894
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock"
|
2895
|
+
|
2896
|
+
# Don't accept unknown kwargs
|
2897
|
+
expected_kwargs = [
|
2898
|
+
"allow_control_chars",
|
2899
|
+
"retry_strategy",
|
2900
|
+
"opc_retry_token",
|
2901
|
+
"opc_request_id",
|
2902
|
+
"if_match",
|
2903
|
+
"is_lock_override"
|
2904
|
+
]
|
2905
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2906
|
+
if extra_kwargs:
|
2907
|
+
raise ValueError(
|
2908
|
+
f"remove_project_lock got unknown kwargs: {extra_kwargs!r}")
|
2909
|
+
|
2910
|
+
path_params = {
|
2911
|
+
"projectId": project_id
|
2912
|
+
}
|
2913
|
+
|
2914
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2915
|
+
|
2916
|
+
for (k, v) in six.iteritems(path_params):
|
2917
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2918
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2919
|
+
|
2920
|
+
query_params = {
|
2921
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
2922
|
+
}
|
2923
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2924
|
+
|
2925
|
+
header_params = {
|
2926
|
+
"accept": "application/json",
|
2927
|
+
"content-type": "application/json",
|
2928
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
2929
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2930
|
+
"if-match": kwargs.get("if_match", missing)
|
2931
|
+
}
|
2932
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2933
|
+
|
2934
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2935
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2936
|
+
client_retry_strategy=self.retry_strategy
|
2937
|
+
)
|
2938
|
+
if retry_strategy is None:
|
2939
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2940
|
+
|
2941
|
+
if retry_strategy:
|
2942
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2943
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2944
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2945
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2946
|
+
return retry_strategy.make_retrying_call(
|
2947
|
+
self.base_client.call_api,
|
2948
|
+
resource_path=resource_path,
|
2949
|
+
method=method,
|
2950
|
+
path_params=path_params,
|
2951
|
+
query_params=query_params,
|
2952
|
+
header_params=header_params,
|
2953
|
+
body=remove_project_lock_details,
|
2954
|
+
response_type="Project",
|
2955
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2956
|
+
operation_name=operation_name,
|
2957
|
+
api_reference_link=api_reference_link,
|
2958
|
+
required_arguments=required_arguments)
|
2959
|
+
else:
|
2960
|
+
return self.base_client.call_api(
|
2961
|
+
resource_path=resource_path,
|
2962
|
+
method=method,
|
2963
|
+
path_params=path_params,
|
2964
|
+
query_params=query_params,
|
2965
|
+
header_params=header_params,
|
2966
|
+
body=remove_project_lock_details,
|
2967
|
+
response_type="Project",
|
2968
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2969
|
+
operation_name=operation_name,
|
2970
|
+
api_reference_link=api_reference_link,
|
2971
|
+
required_arguments=required_arguments)
|
2972
|
+
|
2397
2973
|
def update_model(self, model_id, update_model_details, **kwargs):
|
2398
2974
|
"""
|
2399
2975
|
Updates the model metadata.
|
@@ -2415,6 +2991,9 @@ class AIServiceDocumentClient(object):
|
|
2415
2991
|
:param str opc_request_id: (optional)
|
2416
2992
|
The client request ID for tracing.
|
2417
2993
|
|
2994
|
+
:param bool is_lock_override: (optional)
|
2995
|
+
Whether to override locks (if any exist).
|
2996
|
+
|
2418
2997
|
:param obj retry_strategy: (optional)
|
2419
2998
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2420
2999
|
|
@@ -2431,7 +3010,7 @@ class AIServiceDocumentClient(object):
|
|
2431
3010
|
:rtype: :class:`~oci.response.Response`
|
2432
3011
|
|
2433
3012
|
:example:
|
2434
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3013
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/update_model.py.html>`__ to see an example of how to use update_model API.
|
2435
3014
|
"""
|
2436
3015
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2437
3016
|
required_arguments = ['modelId']
|
@@ -2445,7 +3024,8 @@ class AIServiceDocumentClient(object):
|
|
2445
3024
|
"allow_control_chars",
|
2446
3025
|
"retry_strategy",
|
2447
3026
|
"if_match",
|
2448
|
-
"opc_request_id"
|
3027
|
+
"opc_request_id",
|
3028
|
+
"is_lock_override"
|
2449
3029
|
]
|
2450
3030
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2451
3031
|
if extra_kwargs:
|
@@ -2462,6 +3042,11 @@ class AIServiceDocumentClient(object):
|
|
2462
3042
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2463
3043
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2464
3044
|
|
3045
|
+
query_params = {
|
3046
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
3047
|
+
}
|
3048
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3049
|
+
|
2465
3050
|
header_params = {
|
2466
3051
|
"accept": "application/json",
|
2467
3052
|
"content-type": "application/json",
|
@@ -2484,6 +3069,7 @@ class AIServiceDocumentClient(object):
|
|
2484
3069
|
resource_path=resource_path,
|
2485
3070
|
method=method,
|
2486
3071
|
path_params=path_params,
|
3072
|
+
query_params=query_params,
|
2487
3073
|
header_params=header_params,
|
2488
3074
|
body=update_model_details,
|
2489
3075
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -2495,6 +3081,7 @@ class AIServiceDocumentClient(object):
|
|
2495
3081
|
resource_path=resource_path,
|
2496
3082
|
method=method,
|
2497
3083
|
path_params=path_params,
|
3084
|
+
query_params=query_params,
|
2498
3085
|
header_params=header_params,
|
2499
3086
|
body=update_model_details,
|
2500
3087
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -2523,6 +3110,9 @@ class AIServiceDocumentClient(object):
|
|
2523
3110
|
:param str opc_request_id: (optional)
|
2524
3111
|
The client request ID for tracing.
|
2525
3112
|
|
3113
|
+
:param bool is_lock_override: (optional)
|
3114
|
+
Whether to override locks (if any exist).
|
3115
|
+
|
2526
3116
|
:param obj retry_strategy: (optional)
|
2527
3117
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2528
3118
|
|
@@ -2539,7 +3129,7 @@ class AIServiceDocumentClient(object):
|
|
2539
3129
|
:rtype: :class:`~oci.response.Response`
|
2540
3130
|
|
2541
3131
|
:example:
|
2542
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3132
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.134.0/aidocument/update_project.py.html>`__ to see an example of how to use update_project API.
|
2543
3133
|
"""
|
2544
3134
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2545
3135
|
required_arguments = ['projectId']
|
@@ -2553,7 +3143,8 @@ class AIServiceDocumentClient(object):
|
|
2553
3143
|
"allow_control_chars",
|
2554
3144
|
"retry_strategy",
|
2555
3145
|
"if_match",
|
2556
|
-
"opc_request_id"
|
3146
|
+
"opc_request_id",
|
3147
|
+
"is_lock_override"
|
2557
3148
|
]
|
2558
3149
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2559
3150
|
if extra_kwargs:
|
@@ -2570,6 +3161,11 @@ class AIServiceDocumentClient(object):
|
|
2570
3161
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2571
3162
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2572
3163
|
|
3164
|
+
query_params = {
|
3165
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
3166
|
+
}
|
3167
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3168
|
+
|
2573
3169
|
header_params = {
|
2574
3170
|
"accept": "application/json",
|
2575
3171
|
"content-type": "application/json",
|
@@ -2592,6 +3188,7 @@ class AIServiceDocumentClient(object):
|
|
2592
3188
|
resource_path=resource_path,
|
2593
3189
|
method=method,
|
2594
3190
|
path_params=path_params,
|
3191
|
+
query_params=query_params,
|
2595
3192
|
header_params=header_params,
|
2596
3193
|
body=update_project_details,
|
2597
3194
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -2603,6 +3200,7 @@ class AIServiceDocumentClient(object):
|
|
2603
3200
|
resource_path=resource_path,
|
2604
3201
|
method=method,
|
2605
3202
|
path_params=path_params,
|
3203
|
+
query_params=query_params,
|
2606
3204
|
header_params=header_params,
|
2607
3205
|
body=update_project_details,
|
2608
3206
|
allow_control_chars=kwargs.get('allow_control_chars'),
|