oci 2.129.3__py3-none-any.whl → 2.130.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/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 +44 -44
- oci/ai_speech/ai_service_speech_client.py +870 -87
- oci/ai_speech/ai_service_speech_client_composite_operations.py +146 -0
- oci/ai_speech/models/__init__.py +70 -0
- oci/ai_speech/models/change_customization_compartment_details.py +78 -0
- oci/ai_speech/models/create_customization_details.py +289 -0
- oci/ai_speech/models/create_realtime_session_token_details.py +142 -0
- oci/ai_speech/models/customization.py +544 -0
- oci/ai_speech/models/customization_collection.py +72 -0
- oci/ai_speech/models/customization_dataset_details.py +109 -0
- oci/ai_speech/models/customization_inference.py +173 -0
- oci/ai_speech/models/customization_inference_entity.py +138 -0
- oci/ai_speech/models/customization_model_details.py +139 -0
- oci/ai_speech/models/customization_referenced_entities.py +134 -0
- oci/ai_speech/models/customization_summary.py +396 -0
- oci/ai_speech/models/entity.py +134 -0
- oci/ai_speech/models/entity_list.py +166 -0
- oci/ai_speech/models/entity_list_dataset.py +115 -0
- oci/ai_speech/models/location_details.py +101 -0
- oci/ai_speech/models/object_list_dataset.py +144 -0
- oci/ai_speech/models/object_storage_dataset.py +109 -0
- oci/ai_speech/models/pronunciation.py +99 -0
- oci/ai_speech/models/realtime_message.py +168 -0
- oci/ai_speech/models/realtime_message_ack_audio.py +85 -0
- oci/ai_speech/models/realtime_message_ack_audio_details.py +134 -0
- oci/ai_speech/models/realtime_message_authentication.py +140 -0
- oci/ai_speech/models/realtime_message_authentication_credentials.py +89 -0
- oci/ai_speech/models/realtime_message_authentication_token.py +89 -0
- oci/ai_speech/models/realtime_message_connect.py +58 -0
- oci/ai_speech/models/realtime_message_error.py +120 -0
- oci/ai_speech/models/realtime_message_out.py +103 -0
- oci/ai_speech/models/realtime_message_result.py +89 -0
- oci/ai_speech/models/realtime_message_result_transcription.py +258 -0
- oci/ai_speech/models/realtime_message_result_transcription_token.py +212 -0
- oci/ai_speech/models/realtime_message_send_final_result.py +51 -0
- oci/ai_speech/models/realtime_model_details.py +139 -0
- oci/ai_speech/models/realtime_parameters.py +390 -0
- oci/ai_speech/models/realtime_session_token.py +200 -0
- oci/ai_speech/models/update_customization_details.py +254 -0
- 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 +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +29 -29
- oci/apm_synthetics/models/__init__.py +14 -0
- oci/apm_synthetics/models/basic_authentication_details.py +99 -0
- oci/apm_synthetics/models/browser_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/create_monitor_details.py +48 -9
- oci/apm_synthetics/models/database_wallet_details.py +103 -0
- oci/apm_synthetics/models/dns_sec_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/dns_server_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/dns_trace_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/ftp_monitor_configuration.py +379 -0
- oci/apm_synthetics/models/monitor.py +112 -11
- oci/apm_synthetics/models/monitor_configuration.py +19 -3
- oci/apm_synthetics/models/monitor_summary.py +112 -11
- oci/apm_synthetics/models/network_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/password.py +109 -0
- oci/apm_synthetics/models/password_in_text.py +82 -0
- oci/apm_synthetics/models/password_in_vault.py +83 -0
- oci/apm_synthetics/models/rest_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/scripted_browser_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/scripted_rest_monitor_configuration.py +1 -1
- oci/apm_synthetics/models/sql_monitor_configuration.py +307 -0
- oci/apm_synthetics/models/update_monitor_details.py +37 -6
- oci/apm_synthetics/models/vantage_point_info.py +33 -2
- oci/apm_synthetics/models/worker_monitor_list.py +11 -3
- 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/auth/certificate_retriever.py +13 -6
- oci/auth/signers/ephemeral_resource_principals_v21_signer.py +38 -5
- oci/auth/signers/instance_principals_security_token_signer.py +1 -1
- oci/auth/signers/key_pair_signer.py +2 -2
- oci/auth/signers/resource_principals_signer.py +17 -5
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +66 -66
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- 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 +508 -99
- oci/core/compute_client_composite_operations.py +39 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +6 -0
- oci/core/models/instance_maintenance_event.py +1022 -0
- oci/core/models/instance_maintenance_event_summary.py +795 -0
- oci/core/models/update_instance_maintenance_event_details.py +281 -0
- 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 +3762 -2702
- oci/data_safe/data_safe_client_composite_operations.py +307 -0
- oci/data_safe/models/__init__.py +14 -0
- oci/data_safe/models/alert.py +62 -0
- oci/data_safe/models/alert_policy.py +31 -0
- oci/data_safe/models/alert_policy_rule.py +127 -2
- oci/data_safe/models/alert_policy_rule_summary.py +127 -2
- oci/data_safe/models/alert_policy_summary.py +31 -0
- oci/data_safe/models/alert_summary.py +62 -0
- oci/data_safe/models/audit_event_summary.py +62 -0
- oci/data_safe/models/create_alert_policy_details.py +31 -0
- oci/data_safe/models/create_alert_policy_rule_details.py +33 -2
- oci/data_safe/models/create_discovery_job_details.py +33 -0
- oci/data_safe/models/create_security_assessment_details.py +31 -0
- oci/data_safe/models/create_sensitive_data_model_details.py +35 -0
- oci/data_safe/models/create_user_assessment_details.py +31 -0
- oci/data_safe/models/discovery_job.py +31 -0
- oci/data_safe/models/finding_summary.py +31 -0
- oci/data_safe/models/generate_report_details.py +2 -2
- oci/data_safe/models/references.py +34 -3
- oci/data_safe/models/report.py +44 -5
- oci/data_safe/models/report_definition.py +40 -5
- oci/data_safe/models/report_definition_summary.py +7 -3
- oci/data_safe/models/report_summary.py +13 -5
- oci/data_safe/models/schedule_report_details.py +2 -2
- oci/data_safe/models/security_assessment.py +31 -0
- oci/data_safe/models/sensitive_data_model.py +35 -0
- oci/data_safe/models/sensitive_data_model_sensitive_type_collection.py +72 -0
- oci/data_safe/models/sensitive_data_model_sensitive_type_summary.py +103 -0
- oci/data_safe/models/sql_firewall_allowed_sql.py +626 -0
- oci/data_safe/models/sql_firewall_allowed_sql_dimensions.py +7 -3
- oci/data_safe/models/sql_firewall_allowed_sql_summary.py +7 -3
- oci/data_safe/models/tables_for_discovery.py +103 -0
- oci/data_safe/models/target_alert_policy_association.py +31 -0
- oci/data_safe/models/target_alert_policy_association_summary.py +31 -0
- oci/data_safe/models/unset_security_assessment_baseline_details.py +72 -0
- oci/data_safe/models/unset_user_assessment_baseline_details.py +72 -0
- oci/data_safe/models/update_alert_policy_details.py +240 -0
- oci/data_safe/models/update_alert_policy_rule_details.py +33 -2
- oci/data_safe/models/update_security_assessment_details.py +31 -0
- oci/data_safe/models/update_sensitive_data_model_details.py +35 -0
- oci/data_safe/models/update_user_assessment_details.py +31 -0
- oci/data_safe/models/user_assessment.py +31 -0
- oci/data_safe/models/user_assessment_summary.py +31 -0
- oci/data_safe/models/work_request.py +39 -3
- oci/data_safe/models/work_request_summary.py +39 -3
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +707 -353
- oci/database/database_client_composite_operations.py +123 -0
- oci/database/models/__init__.py +8 -0
- oci/database/models/autonomous_database.py +103 -2
- oci/database/models/autonomous_database_summary.py +103 -2
- oci/database/models/change_autonomous_database_subscription_details.py +107 -0
- oci/database/models/change_cloud_exadata_infrastructure_subscription_details.py +107 -0
- oci/database/models/change_cloud_vm_cluster_subscription_details.py +107 -0
- oci/database/models/change_subscription_details.py +107 -0
- oci/database/models/cloud_exadata_infrastructure.py +35 -0
- oci/database/models/cloud_exadata_infrastructure_summary.py +35 -0
- oci/database/models/cloud_vm_cluster.py +35 -0
- oci/database/models/cloud_vm_cluster_summary.py +35 -0
- oci/database/models/create_autonomous_database_base.py +66 -0
- oci/database/models/create_autonomous_database_clone_details.py +14 -0
- oci/database/models/create_autonomous_database_details.py +14 -0
- oci/database/models/create_autonomous_database_from_backup_details.py +14 -0
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +14 -0
- oci/database/models/create_cloud_exadata_infrastructure_details.py +35 -0
- oci/database/models/create_cloud_vm_cluster_details.py +35 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +14 -0
- oci/database/models/create_cross_region_disaster_recovery_details.py +14 -0
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +14 -0
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +14 -0
- oci/database/models/update_autonomous_database_details.py +31 -0
- oci/database_management/db_management_client.py +208 -208
- 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 +792 -66
- oci/database_migration/database_migration_client_composite_operations.py +179 -0
- oci/database_migration/models/__init__.py +8 -0
- oci/database_migration/models/adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_parameter_file_version_details.py +181 -0
- oci/database_migration/models/job.py +31 -0
- oci/database_migration/models/non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/parameter_file_version.py +274 -0
- oci/database_migration/models/parameter_file_version_collection.py +72 -0
- oci/database_migration/models/parameter_file_version_summary.py +342 -0
- oci/database_migration/models/phase_status.py +80 -2
- oci/database_migration/models/update_adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/update_non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_tools/database_tools_client.py +23 -23
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- 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 +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 +51 -51
- oci/fleet_software_update/fleet_software_update_client.py +259 -45
- oci/fleet_software_update/fleet_software_update_client_composite_operations.py +52 -1
- oci/fleet_software_update/models/__init__.py +4 -0
- oci/fleet_software_update/models/cloud_vm_cluster_target_summary.py +33 -2
- oci/fleet_software_update/models/create_fsu_cycle_details.py +27 -0
- oci/fleet_software_update/models/create_patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/diagnostics_collection_details.py +94 -0
- oci/fleet_software_update/models/fsu_collection_target.py +239 -0
- oci/fleet_software_update/models/fsu_cycle.py +27 -0
- oci/fleet_software_update/models/fsu_cycle_summary.py +27 -0
- oci/fleet_software_update/models/gi_resource_id_filter.py +7 -3
- oci/fleet_software_update/models/image_id_fsu_target_details.py +4 -1
- oci/fleet_software_update/models/patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/update_fsu_cycle_details.py +27 -0
- oci/fleet_software_update/models/update_patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/vm_cluster_target_summary.py +33 -2
- 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/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 +22 -22
- 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 +1525 -662
- oci/identity_domains/models/__init__.py +12 -0
- oci/identity_domains/models/extension_social_identity_provider.py +220 -0
- oci/identity_domains/models/identity_propagation_trust.py +0 -49
- oci/identity_domains/models/identity_provider_jit_prov_assigned_groups.py +214 -0
- oci/identity_domains/models/social_identity_provider.py +2083 -0
- oci/identity_domains/models/social_identity_provider_jit_prov_assigned_groups.py +202 -0
- oci/identity_domains/models/social_identity_provider_relay_idp_param_mappings.py +147 -0
- oci/identity_domains/models/social_identity_provider_search_request.py +364 -0
- oci/identity_domains/models/social_identity_providers.py +196 -0
- 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 +24 -24
- 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/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/models/__init__.py +22 -0
- oci/network_firewall/models/create_tunnel_inspection_rule_details.py +218 -0
- oci/network_firewall/models/create_vxlan_inspection_rule_details.py +127 -0
- oci/network_firewall/models/tunnel_inspection_rule.py +280 -0
- oci/network_firewall/models/tunnel_inspection_rule_summary.py +253 -0
- oci/network_firewall/models/tunnel_inspection_rule_summary_collection.py +72 -0
- oci/network_firewall/models/update_tunnel_inspection_rule_details.py +187 -0
- oci/network_firewall/models/update_vxlan_inspection_rule_details.py +120 -0
- oci/network_firewall/models/vxlan_inspection_rule.py +141 -0
- oci/network_firewall/models/vxlan_inspection_rule_match_criteria.py +104 -0
- oci/network_firewall/models/vxlan_inspection_rule_profile.py +72 -0
- oci/network_firewall/models/vxlan_inspection_rule_summary.py +134 -0
- oci/network_firewall/network_firewall_client.py +837 -97
- oci/network_firewall/network_firewall_client_composite_operations.py +42 -0
- 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/object_storage/transfer/internal/download/__init__.py +1 -1
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +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/models/__init__.py +22 -0
- oci/opsi/models/autonomous_database_configuration_summary.py +1 -1
- oci/opsi/models/autonomous_database_insight.py +1 -1
- oci/opsi/models/autonomous_database_insight_summary.py +1 -1
- oci/opsi/models/create_database_insight_details.py +11 -3
- oci/opsi/models/create_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/create_mds_my_sql_database_insight_details.py +107 -0
- oci/opsi/models/create_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/database_configuration_summary.py +11 -3
- oci/opsi/models/database_insight.py +11 -3
- oci/opsi/models/database_insight_summary.py +11 -3
- oci/opsi/models/em_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/em_managed_external_database_insight.py +1 -1
- oci/opsi/models/em_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/enable_database_insight_details.py +11 -3
- oci/opsi/models/enable_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/enable_mds_my_sql_database_insight_details.py +51 -0
- oci/opsi/models/enable_pe_comanaged_database_insight_details.py +1 -1
- oci/opsi/models/host_containers.py +182 -0
- oci/opsi/models/host_cpu_usage.py +1 -1
- oci/opsi/models/host_filesystem_usage.py +30 -3
- oci/opsi/models/host_gpu_processes.py +1 -1
- oci/opsi/models/host_gpu_usage.py +1 -1
- oci/opsi/models/host_io_usage.py +244 -0
- oci/opsi/models/host_memory_usage.py +1 -1
- oci/opsi/models/host_network_activity_summary.py +1 -1
- oci/opsi/models/host_performance_metric_group.py +19 -3
- oci/opsi/models/host_top_processes.py +158 -3
- oci/opsi/models/ingest_my_sql_sql_stats_details.py +72 -0
- oci/opsi/models/ingest_my_sql_sql_stats_response_details.py +72 -0
- oci/opsi/models/macs_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight.py +1 -1
- oci/opsi/models/macs_managed_external_database_insight_summary.py +1 -1
- oci/opsi/models/mds_my_sql_database_insight.py +374 -0
- oci/opsi/models/mds_my_sql_database_insight_summary.py +210 -0
- oci/opsi/models/mds_mysql_database_configuration_summary.py +251 -0
- oci/opsi/models/my_sql_sql_stats.py +1074 -0
- oci/opsi/models/pe_comanaged_database_insight.py +1 -1
- oci/opsi/models/pe_comanaged_database_insight_summary.py +1 -1
- oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py +1 -1
- oci/opsi/models/resource_statistics.py +64 -2
- oci/opsi/models/summarize_host_insight_host_recommendation_aggregation.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py +11 -3
- oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py +11 -3
- oci/opsi/models/update_autonomous_database_insight_details.py +1 -1
- oci/opsi/models/update_database_insight_details.py +11 -3
- oci/opsi/models/update_em_managed_external_database_insight_details.py +1 -1
- oci/opsi/models/update_macs_managed_external_database_insight_details.py +2 -2
- oci/opsi/models/update_mds_my_sql_database_insight.py +65 -0
- oci/opsi/models/update_pe_comanaged_database_insight_details.py +2 -2
- oci/opsi/operations_insights_client.py +464 -195
- 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 +25 -25
- oci/redis/models/create_redis_cluster_details.py +12 -2
- oci/redis/models/redis_cluster.py +19 -5
- oci/redis/models/redis_cluster_summary.py +12 -2
- oci/redis/models/update_redis_cluster_details.py +12 -2
- oci/redis/redis_cluster_client.py +11 -11
- 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_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/baselineable_metric.py +155 -124
- oci/stack_monitoring/models/baselineable_metric_summary.py +31 -0
- oci/stack_monitoring/models/create_baselineable_metric_details.py +35 -4
- oci/stack_monitoring/models/update_baselineable_metric_details.py +31 -0
- oci/stack_monitoring/stack_monitoring_client.py +74 -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/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/METADATA +1 -1
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/RECORD +507 -417
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/WHEEL +0 -0
- {oci-2.129.3.dist-info → oci-2.130.0.dist-info}/top_level.txt +0 -0
@@ -157,7 +157,7 @@ class AIServiceSpeechClient(object):
|
|
157
157
|
:rtype: :class:`~oci.response.Response`
|
158
158
|
|
159
159
|
:example:
|
160
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
160
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/cancel_transcription_job.py.html>`__ to see an example of how to use cancel_transcription_job API.
|
161
161
|
"""
|
162
162
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
163
163
|
required_arguments = ['transcriptionJobId']
|
@@ -273,7 +273,7 @@ class AIServiceSpeechClient(object):
|
|
273
273
|
:rtype: :class:`~oci.response.Response`
|
274
274
|
|
275
275
|
:example:
|
276
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
276
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/cancel_transcription_task.py.html>`__ to see an example of how to use cancel_transcription_task API.
|
277
277
|
"""
|
278
278
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
279
279
|
required_arguments = ['transcriptionJobId', 'transcriptionTaskId']
|
@@ -346,6 +346,124 @@ class AIServiceSpeechClient(object):
|
|
346
346
|
api_reference_link=api_reference_link,
|
347
347
|
required_arguments=required_arguments)
|
348
348
|
|
349
|
+
def change_customization_compartment(self, customization_id, change_customization_compartment_details, **kwargs):
|
350
|
+
"""
|
351
|
+
Moves a Customization resource into a different compartment.
|
352
|
+
|
353
|
+
|
354
|
+
:param str customization_id: (required)
|
355
|
+
Unique Customization training Job identifier.
|
356
|
+
|
357
|
+
:param oci.ai_speech.models.ChangeCustomizationCompartmentDetails change_customization_compartment_details: (required)
|
358
|
+
Details for changing the compartment of a Customization.
|
359
|
+
|
360
|
+
:param str if_match: (optional)
|
361
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
362
|
+
for a resource, set the `if-match` parameter to the value of the
|
363
|
+
etag from a previous GET or POST response for that resource.
|
364
|
+
The resource will be updated or deleted only if the etag you
|
365
|
+
provide matches the resource's current etag value.
|
366
|
+
|
367
|
+
:param str opc_request_id: (optional)
|
368
|
+
The client request ID for tracing.
|
369
|
+
|
370
|
+
:param str opc_retry_token: (optional)
|
371
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
372
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
373
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
374
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
375
|
+
might be rejected.
|
376
|
+
|
377
|
+
:param obj retry_strategy: (optional)
|
378
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
379
|
+
|
380
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
381
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
382
|
+
|
383
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
384
|
+
|
385
|
+
:param bool allow_control_chars: (optional)
|
386
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
387
|
+
By default, the response will not allow control characters in strings
|
388
|
+
|
389
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
390
|
+
:rtype: :class:`~oci.response.Response`
|
391
|
+
|
392
|
+
:example:
|
393
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/change_customization_compartment.py.html>`__ to see an example of how to use change_customization_compartment API.
|
394
|
+
"""
|
395
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
396
|
+
required_arguments = ['customizationId']
|
397
|
+
resource_path = "/customizations/{customizationId}/actions/changeCompartment"
|
398
|
+
method = "POST"
|
399
|
+
operation_name = "change_customization_compartment"
|
400
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ChangeCustomizationCompartment"
|
401
|
+
|
402
|
+
# Don't accept unknown kwargs
|
403
|
+
expected_kwargs = [
|
404
|
+
"allow_control_chars",
|
405
|
+
"retry_strategy",
|
406
|
+
"if_match",
|
407
|
+
"opc_request_id",
|
408
|
+
"opc_retry_token"
|
409
|
+
]
|
410
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
411
|
+
if extra_kwargs:
|
412
|
+
raise ValueError(
|
413
|
+
f"change_customization_compartment got unknown kwargs: {extra_kwargs!r}")
|
414
|
+
|
415
|
+
path_params = {
|
416
|
+
"customizationId": customization_id
|
417
|
+
}
|
418
|
+
|
419
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
420
|
+
|
421
|
+
for (k, v) in six.iteritems(path_params):
|
422
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
423
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
424
|
+
|
425
|
+
header_params = {
|
426
|
+
"accept": "application/json",
|
427
|
+
"content-type": "application/json",
|
428
|
+
"if-match": kwargs.get("if_match", missing),
|
429
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
430
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
431
|
+
}
|
432
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
433
|
+
|
434
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
435
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
436
|
+
client_retry_strategy=self.retry_strategy
|
437
|
+
)
|
438
|
+
|
439
|
+
if retry_strategy:
|
440
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
441
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
442
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
443
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
444
|
+
return retry_strategy.make_retrying_call(
|
445
|
+
self.base_client.call_api,
|
446
|
+
resource_path=resource_path,
|
447
|
+
method=method,
|
448
|
+
path_params=path_params,
|
449
|
+
header_params=header_params,
|
450
|
+
body=change_customization_compartment_details,
|
451
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
452
|
+
operation_name=operation_name,
|
453
|
+
api_reference_link=api_reference_link,
|
454
|
+
required_arguments=required_arguments)
|
455
|
+
else:
|
456
|
+
return self.base_client.call_api(
|
457
|
+
resource_path=resource_path,
|
458
|
+
method=method,
|
459
|
+
path_params=path_params,
|
460
|
+
header_params=header_params,
|
461
|
+
body=change_customization_compartment_details,
|
462
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
463
|
+
operation_name=operation_name,
|
464
|
+
api_reference_link=api_reference_link,
|
465
|
+
required_arguments=required_arguments)
|
466
|
+
|
349
467
|
def change_transcription_job_compartment(self, transcription_job_id, change_transcription_job_compartment_details, **kwargs):
|
350
468
|
"""
|
351
469
|
Moves a transcription Job resource into a different compartment.
|
@@ -390,7 +508,7 @@ class AIServiceSpeechClient(object):
|
|
390
508
|
:rtype: :class:`~oci.response.Response`
|
391
509
|
|
392
510
|
:example:
|
393
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
511
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/change_transcription_job_compartment.py.html>`__ to see an example of how to use change_transcription_job_compartment API.
|
394
512
|
"""
|
395
513
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
396
514
|
required_arguments = ['transcriptionJobId']
|
@@ -464,13 +582,13 @@ class AIServiceSpeechClient(object):
|
|
464
582
|
api_reference_link=api_reference_link,
|
465
583
|
required_arguments=required_arguments)
|
466
584
|
|
467
|
-
def
|
585
|
+
def create_customization(self, create_customization_details, **kwargs):
|
468
586
|
"""
|
469
|
-
Creates a new
|
587
|
+
Creates a new Customization.
|
470
588
|
|
471
589
|
|
472
|
-
:param oci.ai_speech.models.
|
473
|
-
Details for the new
|
590
|
+
:param oci.ai_speech.models.CreateCustomizationDetails create_customization_details: (required)
|
591
|
+
Details for the new Customization.
|
474
592
|
|
475
593
|
:param str opc_retry_token: (optional)
|
476
594
|
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
@@ -494,18 +612,18 @@ class AIServiceSpeechClient(object):
|
|
494
612
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
495
613
|
By default, the response will not allow control characters in strings
|
496
614
|
|
497
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.
|
615
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.Customization`
|
498
616
|
:rtype: :class:`~oci.response.Response`
|
499
617
|
|
500
618
|
:example:
|
501
|
-
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.130.0/aispeech/create_customization.py.html>`__ to see an example of how to use create_customization API.
|
502
620
|
"""
|
503
621
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
504
622
|
required_arguments = []
|
505
|
-
resource_path = "/
|
623
|
+
resource_path = "/customizations"
|
506
624
|
method = "POST"
|
507
|
-
operation_name = "
|
508
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/
|
625
|
+
operation_name = "create_customization"
|
626
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/CreateCustomization"
|
509
627
|
|
510
628
|
# Don't accept unknown kwargs
|
511
629
|
expected_kwargs = [
|
@@ -517,7 +635,103 @@ class AIServiceSpeechClient(object):
|
|
517
635
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
518
636
|
if extra_kwargs:
|
519
637
|
raise ValueError(
|
520
|
-
f"
|
638
|
+
f"create_customization got unknown kwargs: {extra_kwargs!r}")
|
639
|
+
|
640
|
+
header_params = {
|
641
|
+
"accept": "application/json",
|
642
|
+
"content-type": "application/json",
|
643
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
644
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
645
|
+
}
|
646
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
647
|
+
|
648
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
649
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
650
|
+
client_retry_strategy=self.retry_strategy
|
651
|
+
)
|
652
|
+
|
653
|
+
if retry_strategy:
|
654
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
655
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
656
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
657
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
658
|
+
return retry_strategy.make_retrying_call(
|
659
|
+
self.base_client.call_api,
|
660
|
+
resource_path=resource_path,
|
661
|
+
method=method,
|
662
|
+
header_params=header_params,
|
663
|
+
body=create_customization_details,
|
664
|
+
response_type="Customization",
|
665
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
666
|
+
operation_name=operation_name,
|
667
|
+
api_reference_link=api_reference_link,
|
668
|
+
required_arguments=required_arguments)
|
669
|
+
else:
|
670
|
+
return self.base_client.call_api(
|
671
|
+
resource_path=resource_path,
|
672
|
+
method=method,
|
673
|
+
header_params=header_params,
|
674
|
+
body=create_customization_details,
|
675
|
+
response_type="Customization",
|
676
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
677
|
+
operation_name=operation_name,
|
678
|
+
api_reference_link=api_reference_link,
|
679
|
+
required_arguments=required_arguments)
|
680
|
+
|
681
|
+
def create_realtime_session_token(self, create_realtime_session_token_details, **kwargs):
|
682
|
+
"""
|
683
|
+
Returns an authentication token to the user.
|
684
|
+
|
685
|
+
|
686
|
+
:param oci.ai_speech.models.CreateRealtimeSessionTokenDetails create_realtime_session_token_details: (required)
|
687
|
+
An object containing the compartment ID for authorization purposes.
|
688
|
+
|
689
|
+
:param str opc_retry_token: (optional)
|
690
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
691
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
692
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
693
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
694
|
+
might be rejected.
|
695
|
+
|
696
|
+
:param str opc_request_id: (optional)
|
697
|
+
The client request ID for tracing.
|
698
|
+
|
699
|
+
:param obj retry_strategy: (optional)
|
700
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
701
|
+
|
702
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
703
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
704
|
+
|
705
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
706
|
+
|
707
|
+
:param bool allow_control_chars: (optional)
|
708
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
709
|
+
By default, the response will not allow control characters in strings
|
710
|
+
|
711
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.RealtimeSessionToken`
|
712
|
+
:rtype: :class:`~oci.response.Response`
|
713
|
+
|
714
|
+
:example:
|
715
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/create_realtime_session_token.py.html>`__ to see an example of how to use create_realtime_session_token API.
|
716
|
+
"""
|
717
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
718
|
+
required_arguments = []
|
719
|
+
resource_path = "/actions/realtimeSessionToken"
|
720
|
+
method = "POST"
|
721
|
+
operation_name = "create_realtime_session_token"
|
722
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/RealtimeSessionToken/CreateRealtimeSessionToken"
|
723
|
+
|
724
|
+
# Don't accept unknown kwargs
|
725
|
+
expected_kwargs = [
|
726
|
+
"allow_control_chars",
|
727
|
+
"retry_strategy",
|
728
|
+
"opc_retry_token",
|
729
|
+
"opc_request_id"
|
730
|
+
]
|
731
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
732
|
+
if extra_kwargs:
|
733
|
+
raise ValueError(
|
734
|
+
f"create_realtime_session_token got unknown kwargs: {extra_kwargs!r}")
|
521
735
|
|
522
736
|
header_params = {
|
523
737
|
"accept": "application/json",
|
@@ -534,16 +748,434 @@ class AIServiceSpeechClient(object):
|
|
534
748
|
|
535
749
|
if retry_strategy:
|
536
750
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
537
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
751
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
752
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
753
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
754
|
+
return retry_strategy.make_retrying_call(
|
755
|
+
self.base_client.call_api,
|
756
|
+
resource_path=resource_path,
|
757
|
+
method=method,
|
758
|
+
header_params=header_params,
|
759
|
+
body=create_realtime_session_token_details,
|
760
|
+
response_type="RealtimeSessionToken",
|
761
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
762
|
+
operation_name=operation_name,
|
763
|
+
api_reference_link=api_reference_link,
|
764
|
+
required_arguments=required_arguments)
|
765
|
+
else:
|
766
|
+
return self.base_client.call_api(
|
767
|
+
resource_path=resource_path,
|
768
|
+
method=method,
|
769
|
+
header_params=header_params,
|
770
|
+
body=create_realtime_session_token_details,
|
771
|
+
response_type="RealtimeSessionToken",
|
772
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
773
|
+
operation_name=operation_name,
|
774
|
+
api_reference_link=api_reference_link,
|
775
|
+
required_arguments=required_arguments)
|
776
|
+
|
777
|
+
def create_transcription_job(self, create_transcription_job_details, **kwargs):
|
778
|
+
"""
|
779
|
+
Creates a new Transcription Job.
|
780
|
+
|
781
|
+
|
782
|
+
:param oci.ai_speech.models.CreateTranscriptionJobDetails create_transcription_job_details: (required)
|
783
|
+
Details for the new Transcription Job.
|
784
|
+
|
785
|
+
:param str opc_retry_token: (optional)
|
786
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
787
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
788
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
789
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
790
|
+
might be rejected.
|
791
|
+
|
792
|
+
:param str opc_request_id: (optional)
|
793
|
+
The client request ID for tracing.
|
794
|
+
|
795
|
+
:param obj retry_strategy: (optional)
|
796
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
797
|
+
|
798
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
799
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
800
|
+
|
801
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
802
|
+
|
803
|
+
:param bool allow_control_chars: (optional)
|
804
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
805
|
+
By default, the response will not allow control characters in strings
|
806
|
+
|
807
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.TranscriptionJob`
|
808
|
+
:rtype: :class:`~oci.response.Response`
|
809
|
+
|
810
|
+
:example:
|
811
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/create_transcription_job.py.html>`__ to see an example of how to use create_transcription_job API.
|
812
|
+
"""
|
813
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
814
|
+
required_arguments = []
|
815
|
+
resource_path = "/transcriptionJobs"
|
816
|
+
method = "POST"
|
817
|
+
operation_name = "create_transcription_job"
|
818
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/TranscriptionJob/CreateTranscriptionJob"
|
819
|
+
|
820
|
+
# Don't accept unknown kwargs
|
821
|
+
expected_kwargs = [
|
822
|
+
"allow_control_chars",
|
823
|
+
"retry_strategy",
|
824
|
+
"opc_retry_token",
|
825
|
+
"opc_request_id"
|
826
|
+
]
|
827
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
828
|
+
if extra_kwargs:
|
829
|
+
raise ValueError(
|
830
|
+
f"create_transcription_job got unknown kwargs: {extra_kwargs!r}")
|
831
|
+
|
832
|
+
header_params = {
|
833
|
+
"accept": "application/json",
|
834
|
+
"content-type": "application/json",
|
835
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
836
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
837
|
+
}
|
838
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
839
|
+
|
840
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
841
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
842
|
+
client_retry_strategy=self.retry_strategy
|
843
|
+
)
|
844
|
+
|
845
|
+
if retry_strategy:
|
846
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
847
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
848
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
849
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
850
|
+
return retry_strategy.make_retrying_call(
|
851
|
+
self.base_client.call_api,
|
852
|
+
resource_path=resource_path,
|
853
|
+
method=method,
|
854
|
+
header_params=header_params,
|
855
|
+
body=create_transcription_job_details,
|
856
|
+
response_type="TranscriptionJob",
|
857
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
858
|
+
operation_name=operation_name,
|
859
|
+
api_reference_link=api_reference_link,
|
860
|
+
required_arguments=required_arguments)
|
861
|
+
else:
|
862
|
+
return self.base_client.call_api(
|
863
|
+
resource_path=resource_path,
|
864
|
+
method=method,
|
865
|
+
header_params=header_params,
|
866
|
+
body=create_transcription_job_details,
|
867
|
+
response_type="TranscriptionJob",
|
868
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
869
|
+
operation_name=operation_name,
|
870
|
+
api_reference_link=api_reference_link,
|
871
|
+
required_arguments=required_arguments)
|
872
|
+
|
873
|
+
def delete_customization(self, customization_id, **kwargs):
|
874
|
+
"""
|
875
|
+
Delete Customization and its metadata from tenancy.
|
876
|
+
|
877
|
+
|
878
|
+
:param str customization_id: (required)
|
879
|
+
Unique Customization training Job identifier.
|
880
|
+
|
881
|
+
:param str if_match: (optional)
|
882
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
883
|
+
for a resource, set the `if-match` parameter to the value of the
|
884
|
+
etag from a previous GET or POST response for that resource.
|
885
|
+
The resource will be updated or deleted only if the etag you
|
886
|
+
provide matches the resource's current etag value.
|
887
|
+
|
888
|
+
:param str opc_request_id: (optional)
|
889
|
+
The client request ID for tracing.
|
890
|
+
|
891
|
+
:param str opc_retry_token: (optional)
|
892
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
893
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
894
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
895
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
896
|
+
might be rejected.
|
897
|
+
|
898
|
+
:param obj retry_strategy: (optional)
|
899
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
900
|
+
|
901
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
902
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
903
|
+
|
904
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
905
|
+
|
906
|
+
:param bool allow_control_chars: (optional)
|
907
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
908
|
+
By default, the response will not allow control characters in strings
|
909
|
+
|
910
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
911
|
+
:rtype: :class:`~oci.response.Response`
|
912
|
+
|
913
|
+
:example:
|
914
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/delete_customization.py.html>`__ to see an example of how to use delete_customization API.
|
915
|
+
"""
|
916
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
917
|
+
required_arguments = ['customizationId']
|
918
|
+
resource_path = "/customizations/{customizationId}"
|
919
|
+
method = "DELETE"
|
920
|
+
operation_name = "delete_customization"
|
921
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/DeleteCustomization"
|
922
|
+
|
923
|
+
# Don't accept unknown kwargs
|
924
|
+
expected_kwargs = [
|
925
|
+
"allow_control_chars",
|
926
|
+
"retry_strategy",
|
927
|
+
"if_match",
|
928
|
+
"opc_request_id",
|
929
|
+
"opc_retry_token"
|
930
|
+
]
|
931
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
932
|
+
if extra_kwargs:
|
933
|
+
raise ValueError(
|
934
|
+
f"delete_customization got unknown kwargs: {extra_kwargs!r}")
|
935
|
+
|
936
|
+
path_params = {
|
937
|
+
"customizationId": customization_id
|
938
|
+
}
|
939
|
+
|
940
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
941
|
+
|
942
|
+
for (k, v) in six.iteritems(path_params):
|
943
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
944
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
945
|
+
|
946
|
+
header_params = {
|
947
|
+
"accept": "application/json",
|
948
|
+
"content-type": "application/json",
|
949
|
+
"if-match": kwargs.get("if_match", missing),
|
950
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
951
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
952
|
+
}
|
953
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
954
|
+
|
955
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
956
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
957
|
+
client_retry_strategy=self.retry_strategy
|
958
|
+
)
|
959
|
+
|
960
|
+
if retry_strategy:
|
961
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
962
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
963
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
964
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
965
|
+
return retry_strategy.make_retrying_call(
|
966
|
+
self.base_client.call_api,
|
967
|
+
resource_path=resource_path,
|
968
|
+
method=method,
|
969
|
+
path_params=path_params,
|
970
|
+
header_params=header_params,
|
971
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
972
|
+
operation_name=operation_name,
|
973
|
+
api_reference_link=api_reference_link,
|
974
|
+
required_arguments=required_arguments)
|
975
|
+
else:
|
976
|
+
return self.base_client.call_api(
|
977
|
+
resource_path=resource_path,
|
978
|
+
method=method,
|
979
|
+
path_params=path_params,
|
980
|
+
header_params=header_params,
|
981
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
982
|
+
operation_name=operation_name,
|
983
|
+
api_reference_link=api_reference_link,
|
984
|
+
required_arguments=required_arguments)
|
985
|
+
|
986
|
+
def delete_transcription_job(self, transcription_job_id, **kwargs):
|
987
|
+
"""
|
988
|
+
Delete API cleans job, tasks and the related metadata. However the generated transcriptions in customer tenancy will not be deleted.
|
989
|
+
|
990
|
+
|
991
|
+
:param str transcription_job_id: (required)
|
992
|
+
Unique Transcription Job identifier.
|
993
|
+
|
994
|
+
:param str if_match: (optional)
|
995
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
996
|
+
for a resource, set the `if-match` parameter to the value of the
|
997
|
+
etag from a previous GET or POST response for that resource.
|
998
|
+
The resource will be updated or deleted only if the etag you
|
999
|
+
provide matches the resource's current etag value.
|
1000
|
+
|
1001
|
+
:param str opc_request_id: (optional)
|
1002
|
+
The client request ID for tracing.
|
1003
|
+
|
1004
|
+
:param str opc_retry_token: (optional)
|
1005
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1006
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1007
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1008
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1009
|
+
might be rejected.
|
1010
|
+
|
1011
|
+
:param obj retry_strategy: (optional)
|
1012
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1013
|
+
|
1014
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
1015
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1016
|
+
|
1017
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1018
|
+
|
1019
|
+
:param bool allow_control_chars: (optional)
|
1020
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1021
|
+
By default, the response will not allow control characters in strings
|
1022
|
+
|
1023
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1024
|
+
:rtype: :class:`~oci.response.Response`
|
1025
|
+
|
1026
|
+
:example:
|
1027
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/delete_transcription_job.py.html>`__ to see an example of how to use delete_transcription_job API.
|
1028
|
+
"""
|
1029
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1030
|
+
required_arguments = ['transcriptionJobId']
|
1031
|
+
resource_path = "/transcriptionJobs/{transcriptionJobId}"
|
1032
|
+
method = "DELETE"
|
1033
|
+
operation_name = "delete_transcription_job"
|
1034
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/TranscriptionJob/DeleteTranscriptionJob"
|
1035
|
+
|
1036
|
+
# Don't accept unknown kwargs
|
1037
|
+
expected_kwargs = [
|
1038
|
+
"allow_control_chars",
|
1039
|
+
"retry_strategy",
|
1040
|
+
"if_match",
|
1041
|
+
"opc_request_id",
|
1042
|
+
"opc_retry_token"
|
1043
|
+
]
|
1044
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1045
|
+
if extra_kwargs:
|
1046
|
+
raise ValueError(
|
1047
|
+
f"delete_transcription_job got unknown kwargs: {extra_kwargs!r}")
|
1048
|
+
|
1049
|
+
path_params = {
|
1050
|
+
"transcriptionJobId": transcription_job_id
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1054
|
+
|
1055
|
+
for (k, v) in six.iteritems(path_params):
|
1056
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1057
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1058
|
+
|
1059
|
+
header_params = {
|
1060
|
+
"accept": "application/json",
|
1061
|
+
"content-type": "application/json",
|
1062
|
+
"if-match": kwargs.get("if_match", missing),
|
1063
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1064
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1065
|
+
}
|
1066
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1067
|
+
|
1068
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1069
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1070
|
+
client_retry_strategy=self.retry_strategy
|
1071
|
+
)
|
1072
|
+
|
1073
|
+
if retry_strategy:
|
1074
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1075
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1076
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1077
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1078
|
+
return retry_strategy.make_retrying_call(
|
1079
|
+
self.base_client.call_api,
|
1080
|
+
resource_path=resource_path,
|
1081
|
+
method=method,
|
1082
|
+
path_params=path_params,
|
1083
|
+
header_params=header_params,
|
1084
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1085
|
+
operation_name=operation_name,
|
1086
|
+
api_reference_link=api_reference_link,
|
1087
|
+
required_arguments=required_arguments)
|
1088
|
+
else:
|
1089
|
+
return self.base_client.call_api(
|
1090
|
+
resource_path=resource_path,
|
1091
|
+
method=method,
|
1092
|
+
path_params=path_params,
|
1093
|
+
header_params=header_params,
|
1094
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1095
|
+
operation_name=operation_name,
|
1096
|
+
api_reference_link=api_reference_link,
|
1097
|
+
required_arguments=required_arguments)
|
1098
|
+
|
1099
|
+
def get_customization(self, customization_id, **kwargs):
|
1100
|
+
"""
|
1101
|
+
Gets a Customization by identifier
|
1102
|
+
|
1103
|
+
|
1104
|
+
:param str customization_id: (required)
|
1105
|
+
Unique Customization training Job identifier.
|
1106
|
+
|
1107
|
+
:param str opc_request_id: (optional)
|
1108
|
+
The client request ID for tracing.
|
1109
|
+
|
1110
|
+
:param obj retry_strategy: (optional)
|
1111
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1112
|
+
|
1113
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
1114
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1115
|
+
|
1116
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1117
|
+
|
1118
|
+
:param bool allow_control_chars: (optional)
|
1119
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1120
|
+
By default, the response will not allow control characters in strings
|
1121
|
+
|
1122
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.Customization`
|
1123
|
+
:rtype: :class:`~oci.response.Response`
|
1124
|
+
|
1125
|
+
:example:
|
1126
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/get_customization.py.html>`__ to see an example of how to use get_customization API.
|
1127
|
+
"""
|
1128
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1129
|
+
required_arguments = ['customizationId']
|
1130
|
+
resource_path = "/customizations/{customizationId}"
|
1131
|
+
method = "GET"
|
1132
|
+
operation_name = "get_customization"
|
1133
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/GetCustomization"
|
1134
|
+
|
1135
|
+
# Don't accept unknown kwargs
|
1136
|
+
expected_kwargs = [
|
1137
|
+
"allow_control_chars",
|
1138
|
+
"retry_strategy",
|
1139
|
+
"opc_request_id"
|
1140
|
+
]
|
1141
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1142
|
+
if extra_kwargs:
|
1143
|
+
raise ValueError(
|
1144
|
+
f"get_customization got unknown kwargs: {extra_kwargs!r}")
|
1145
|
+
|
1146
|
+
path_params = {
|
1147
|
+
"customizationId": customization_id
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1151
|
+
|
1152
|
+
for (k, v) in six.iteritems(path_params):
|
1153
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1154
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1155
|
+
|
1156
|
+
header_params = {
|
1157
|
+
"accept": "application/json",
|
1158
|
+
"content-type": "application/json",
|
1159
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1160
|
+
}
|
1161
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1162
|
+
|
1163
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1164
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1165
|
+
client_retry_strategy=self.retry_strategy
|
1166
|
+
)
|
1167
|
+
|
1168
|
+
if retry_strategy:
|
1169
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
538
1170
|
self.base_client.add_opc_client_retries_header(header_params)
|
539
1171
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
540
1172
|
return retry_strategy.make_retrying_call(
|
541
1173
|
self.base_client.call_api,
|
542
1174
|
resource_path=resource_path,
|
543
1175
|
method=method,
|
1176
|
+
path_params=path_params,
|
544
1177
|
header_params=header_params,
|
545
|
-
|
546
|
-
response_type="TranscriptionJob",
|
1178
|
+
response_type="Customization",
|
547
1179
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
548
1180
|
operation_name=operation_name,
|
549
1181
|
api_reference_link=api_reference_link,
|
@@ -552,39 +1184,25 @@ class AIServiceSpeechClient(object):
|
|
552
1184
|
return self.base_client.call_api(
|
553
1185
|
resource_path=resource_path,
|
554
1186
|
method=method,
|
1187
|
+
path_params=path_params,
|
555
1188
|
header_params=header_params,
|
556
|
-
|
557
|
-
response_type="TranscriptionJob",
|
1189
|
+
response_type="Customization",
|
558
1190
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
559
1191
|
operation_name=operation_name,
|
560
1192
|
api_reference_link=api_reference_link,
|
561
1193
|
required_arguments=required_arguments)
|
562
1194
|
|
563
|
-
def
|
1195
|
+
def get_transcription_job(self, transcription_job_id, **kwargs):
|
564
1196
|
"""
|
565
|
-
|
1197
|
+
Gets a Transcription Job by identifier
|
566
1198
|
|
567
1199
|
|
568
1200
|
:param str transcription_job_id: (required)
|
569
1201
|
Unique Transcription Job identifier.
|
570
1202
|
|
571
|
-
:param str if_match: (optional)
|
572
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
573
|
-
for a resource, set the `if-match` parameter to the value of the
|
574
|
-
etag from a previous GET or POST response for that resource.
|
575
|
-
The resource will be updated or deleted only if the etag you
|
576
|
-
provide matches the resource's current etag value.
|
577
|
-
|
578
1203
|
:param str opc_request_id: (optional)
|
579
1204
|
The client request ID for tracing.
|
580
1205
|
|
581
|
-
:param str opc_retry_token: (optional)
|
582
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
583
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
584
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
585
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
586
|
-
might be rejected.
|
587
|
-
|
588
1206
|
:param obj retry_strategy: (optional)
|
589
1207
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
590
1208
|
|
@@ -597,31 +1215,29 @@ class AIServiceSpeechClient(object):
|
|
597
1215
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
598
1216
|
By default, the response will not allow control characters in strings
|
599
1217
|
|
600
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
1218
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.TranscriptionJob`
|
601
1219
|
:rtype: :class:`~oci.response.Response`
|
602
1220
|
|
603
1221
|
:example:
|
604
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1222
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/get_transcription_job.py.html>`__ to see an example of how to use get_transcription_job API.
|
605
1223
|
"""
|
606
1224
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
607
1225
|
required_arguments = ['transcriptionJobId']
|
608
1226
|
resource_path = "/transcriptionJobs/{transcriptionJobId}"
|
609
|
-
method = "
|
610
|
-
operation_name = "
|
611
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/TranscriptionJob/
|
1227
|
+
method = "GET"
|
1228
|
+
operation_name = "get_transcription_job"
|
1229
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/TranscriptionJob/GetTranscriptionJob"
|
612
1230
|
|
613
1231
|
# Don't accept unknown kwargs
|
614
1232
|
expected_kwargs = [
|
615
1233
|
"allow_control_chars",
|
616
1234
|
"retry_strategy",
|
617
|
-
"
|
618
|
-
"opc_request_id",
|
619
|
-
"opc_retry_token"
|
1235
|
+
"opc_request_id"
|
620
1236
|
]
|
621
1237
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
622
1238
|
if extra_kwargs:
|
623
1239
|
raise ValueError(
|
624
|
-
f"
|
1240
|
+
f"get_transcription_job got unknown kwargs: {extra_kwargs!r}")
|
625
1241
|
|
626
1242
|
path_params = {
|
627
1243
|
"transcriptionJobId": transcription_job_id
|
@@ -636,9 +1252,7 @@ class AIServiceSpeechClient(object):
|
|
636
1252
|
header_params = {
|
637
1253
|
"accept": "application/json",
|
638
1254
|
"content-type": "application/json",
|
639
|
-
"
|
640
|
-
"opc-request-id": kwargs.get("opc_request_id", missing),
|
641
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1255
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
642
1256
|
}
|
643
1257
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
644
1258
|
|
@@ -649,7 +1263,6 @@ class AIServiceSpeechClient(object):
|
|
649
1263
|
|
650
1264
|
if retry_strategy:
|
651
1265
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
652
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
653
1266
|
self.base_client.add_opc_client_retries_header(header_params)
|
654
1267
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
655
1268
|
return retry_strategy.make_retrying_call(
|
@@ -658,6 +1271,7 @@ class AIServiceSpeechClient(object):
|
|
658
1271
|
method=method,
|
659
1272
|
path_params=path_params,
|
660
1273
|
header_params=header_params,
|
1274
|
+
response_type="TranscriptionJob",
|
661
1275
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
662
1276
|
operation_name=operation_name,
|
663
1277
|
api_reference_link=api_reference_link,
|
@@ -668,19 +1282,23 @@ class AIServiceSpeechClient(object):
|
|
668
1282
|
method=method,
|
669
1283
|
path_params=path_params,
|
670
1284
|
header_params=header_params,
|
1285
|
+
response_type="TranscriptionJob",
|
671
1286
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
672
1287
|
operation_name=operation_name,
|
673
1288
|
api_reference_link=api_reference_link,
|
674
1289
|
required_arguments=required_arguments)
|
675
1290
|
|
676
|
-
def
|
1291
|
+
def get_transcription_task(self, transcription_job_id, transcription_task_id, **kwargs):
|
677
1292
|
"""
|
678
|
-
Gets a Transcription
|
1293
|
+
Gets a Transcription Task by identifier
|
679
1294
|
|
680
1295
|
|
681
1296
|
:param str transcription_job_id: (required)
|
682
1297
|
Unique Transcription Job identifier.
|
683
1298
|
|
1299
|
+
:param str transcription_task_id: (required)
|
1300
|
+
Unique Transcription Task identifier.
|
1301
|
+
|
684
1302
|
:param str opc_request_id: (optional)
|
685
1303
|
The client request ID for tracing.
|
686
1304
|
|
@@ -696,18 +1314,18 @@ class AIServiceSpeechClient(object):
|
|
696
1314
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
697
1315
|
By default, the response will not allow control characters in strings
|
698
1316
|
|
699
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.
|
1317
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.TranscriptionTask`
|
700
1318
|
:rtype: :class:`~oci.response.Response`
|
701
1319
|
|
702
1320
|
:example:
|
703
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1321
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/get_transcription_task.py.html>`__ to see an example of how to use get_transcription_task API.
|
704
1322
|
"""
|
705
1323
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
706
|
-
required_arguments = ['transcriptionJobId']
|
707
|
-
resource_path = "/transcriptionJobs/{transcriptionJobId}"
|
1324
|
+
required_arguments = ['transcriptionJobId', 'transcriptionTaskId']
|
1325
|
+
resource_path = "/transcriptionJobs/{transcriptionJobId}/transcriptionTasks/{transcriptionTaskId}"
|
708
1326
|
method = "GET"
|
709
|
-
operation_name = "
|
710
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/
|
1327
|
+
operation_name = "get_transcription_task"
|
1328
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/TranscriptionTask/GetTranscriptionTask"
|
711
1329
|
|
712
1330
|
# Don't accept unknown kwargs
|
713
1331
|
expected_kwargs = [
|
@@ -718,10 +1336,11 @@ class AIServiceSpeechClient(object):
|
|
718
1336
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
719
1337
|
if extra_kwargs:
|
720
1338
|
raise ValueError(
|
721
|
-
f"
|
1339
|
+
f"get_transcription_task got unknown kwargs: {extra_kwargs!r}")
|
722
1340
|
|
723
1341
|
path_params = {
|
724
|
-
"transcriptionJobId": transcription_job_id
|
1342
|
+
"transcriptionJobId": transcription_job_id,
|
1343
|
+
"transcriptionTaskId": transcription_task_id
|
725
1344
|
}
|
726
1345
|
|
727
1346
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -752,7 +1371,7 @@ class AIServiceSpeechClient(object):
|
|
752
1371
|
method=method,
|
753
1372
|
path_params=path_params,
|
754
1373
|
header_params=header_params,
|
755
|
-
response_type="
|
1374
|
+
response_type="TranscriptionTask",
|
756
1375
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
757
1376
|
operation_name=operation_name,
|
758
1377
|
api_reference_link=api_reference_link,
|
@@ -763,22 +1382,46 @@ class AIServiceSpeechClient(object):
|
|
763
1382
|
method=method,
|
764
1383
|
path_params=path_params,
|
765
1384
|
header_params=header_params,
|
766
|
-
response_type="
|
1385
|
+
response_type="TranscriptionTask",
|
767
1386
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
768
1387
|
operation_name=operation_name,
|
769
1388
|
api_reference_link=api_reference_link,
|
770
1389
|
required_arguments=required_arguments)
|
771
1390
|
|
772
|
-
def
|
1391
|
+
def list_customizations(self, **kwargs):
|
773
1392
|
"""
|
774
|
-
|
1393
|
+
Returns a list of Customizations.
|
775
1394
|
|
776
1395
|
|
777
|
-
:param str
|
778
|
-
|
1396
|
+
:param str compartment_id: (optional)
|
1397
|
+
The ID of the compartment in which to list resources.
|
779
1398
|
|
780
|
-
:param str
|
781
|
-
|
1399
|
+
:param str lifecycle_state: (optional)
|
1400
|
+
A filter to return only resources whose lifecycleState matches the given lifecycleState.
|
1401
|
+
|
1402
|
+
Allowed values are: "DELETING", "DELETED", "FAILED", "UPDATING", "ACTIVE", "CREATING"
|
1403
|
+
|
1404
|
+
:param str display_name: (optional)
|
1405
|
+
A filter to return only resources that match the entire display name given.
|
1406
|
+
|
1407
|
+
:param str id: (optional)
|
1408
|
+
Unique identifier(OCID).
|
1409
|
+
|
1410
|
+
:param int limit: (optional)
|
1411
|
+
The maximum number of items to return.
|
1412
|
+
|
1413
|
+
:param str page: (optional)
|
1414
|
+
A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
|
1415
|
+
|
1416
|
+
:param str sort_order: (optional)
|
1417
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1418
|
+
|
1419
|
+
Allowed values are: "ASC", "DESC"
|
1420
|
+
|
1421
|
+
:param str sort_by: (optional)
|
1422
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1423
|
+
|
1424
|
+
Allowed values are: "timeCreated", "displayName"
|
782
1425
|
|
783
1426
|
:param str opc_request_id: (optional)
|
784
1427
|
The client request ID for tracing.
|
@@ -795,40 +1438,70 @@ class AIServiceSpeechClient(object):
|
|
795
1438
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
796
1439
|
By default, the response will not allow control characters in strings
|
797
1440
|
|
798
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.
|
1441
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.CustomizationCollection`
|
799
1442
|
:rtype: :class:`~oci.response.Response`
|
800
1443
|
|
801
1444
|
:example:
|
802
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1445
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/list_customizations.py.html>`__ to see an example of how to use list_customizations API.
|
803
1446
|
"""
|
804
1447
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
805
|
-
required_arguments = [
|
806
|
-
resource_path = "/
|
1448
|
+
required_arguments = []
|
1449
|
+
resource_path = "/customizations"
|
807
1450
|
method = "GET"
|
808
|
-
operation_name = "
|
809
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/
|
1451
|
+
operation_name = "list_customizations"
|
1452
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/ListCustomizations"
|
810
1453
|
|
811
1454
|
# Don't accept unknown kwargs
|
812
1455
|
expected_kwargs = [
|
813
1456
|
"allow_control_chars",
|
814
1457
|
"retry_strategy",
|
1458
|
+
"compartment_id",
|
1459
|
+
"lifecycle_state",
|
1460
|
+
"display_name",
|
1461
|
+
"id",
|
1462
|
+
"limit",
|
1463
|
+
"page",
|
1464
|
+
"sort_order",
|
1465
|
+
"sort_by",
|
815
1466
|
"opc_request_id"
|
816
1467
|
]
|
817
1468
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
818
1469
|
if extra_kwargs:
|
819
1470
|
raise ValueError(
|
820
|
-
f"
|
1471
|
+
f"list_customizations got unknown kwargs: {extra_kwargs!r}")
|
821
1472
|
|
822
|
-
|
823
|
-
"
|
824
|
-
|
825
|
-
|
1473
|
+
if 'lifecycle_state' in kwargs:
|
1474
|
+
lifecycle_state_allowed_values = ["DELETING", "DELETED", "FAILED", "UPDATING", "ACTIVE", "CREATING"]
|
1475
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1476
|
+
raise ValueError(
|
1477
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1478
|
+
)
|
826
1479
|
|
827
|
-
|
1480
|
+
if 'sort_order' in kwargs:
|
1481
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1482
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1483
|
+
raise ValueError(
|
1484
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1485
|
+
)
|
828
1486
|
|
829
|
-
|
830
|
-
|
831
|
-
|
1487
|
+
if 'sort_by' in kwargs:
|
1488
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1489
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1490
|
+
raise ValueError(
|
1491
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1492
|
+
)
|
1493
|
+
|
1494
|
+
query_params = {
|
1495
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1496
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1497
|
+
"displayName": kwargs.get("display_name", missing),
|
1498
|
+
"id": kwargs.get("id", missing),
|
1499
|
+
"limit": kwargs.get("limit", missing),
|
1500
|
+
"page": kwargs.get("page", missing),
|
1501
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1502
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1503
|
+
}
|
1504
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
832
1505
|
|
833
1506
|
header_params = {
|
834
1507
|
"accept": "application/json",
|
@@ -850,9 +1523,9 @@ class AIServiceSpeechClient(object):
|
|
850
1523
|
self.base_client.call_api,
|
851
1524
|
resource_path=resource_path,
|
852
1525
|
method=method,
|
853
|
-
|
1526
|
+
query_params=query_params,
|
854
1527
|
header_params=header_params,
|
855
|
-
response_type="
|
1528
|
+
response_type="CustomizationCollection",
|
856
1529
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
857
1530
|
operation_name=operation_name,
|
858
1531
|
api_reference_link=api_reference_link,
|
@@ -861,9 +1534,9 @@ class AIServiceSpeechClient(object):
|
|
861
1534
|
return self.base_client.call_api(
|
862
1535
|
resource_path=resource_path,
|
863
1536
|
method=method,
|
864
|
-
|
1537
|
+
query_params=query_params,
|
865
1538
|
header_params=header_params,
|
866
|
-
response_type="
|
1539
|
+
response_type="CustomizationCollection",
|
867
1540
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
868
1541
|
operation_name=operation_name,
|
869
1542
|
api_reference_link=api_reference_link,
|
@@ -923,7 +1596,7 @@ class AIServiceSpeechClient(object):
|
|
923
1596
|
:rtype: :class:`~oci.response.Response`
|
924
1597
|
|
925
1598
|
:example:
|
926
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1599
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/list_transcription_jobs.py.html>`__ to see an example of how to use list_transcription_jobs API.
|
927
1600
|
"""
|
928
1601
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
929
1602
|
required_arguments = []
|
@@ -1077,7 +1750,7 @@ class AIServiceSpeechClient(object):
|
|
1077
1750
|
:rtype: :class:`~oci.response.Response`
|
1078
1751
|
|
1079
1752
|
:example:
|
1080
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1753
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/list_transcription_tasks.py.html>`__ to see an example of how to use list_transcription_tasks API.
|
1081
1754
|
"""
|
1082
1755
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1083
1756
|
required_arguments = ['transcriptionJobId']
|
@@ -1187,6 +1860,116 @@ class AIServiceSpeechClient(object):
|
|
1187
1860
|
api_reference_link=api_reference_link,
|
1188
1861
|
required_arguments=required_arguments)
|
1189
1862
|
|
1863
|
+
def update_customization(self, customization_id, update_customization_details, **kwargs):
|
1864
|
+
"""
|
1865
|
+
Updates a Customization by identifier
|
1866
|
+
|
1867
|
+
|
1868
|
+
:param str customization_id: (required)
|
1869
|
+
Unique Customization training Job identifier.
|
1870
|
+
|
1871
|
+
:param oci.ai_speech.models.UpdateCustomizationDetails update_customization_details: (required)
|
1872
|
+
The information to be updated.
|
1873
|
+
|
1874
|
+
:param str if_match: (optional)
|
1875
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1876
|
+
for a resource, set the `if-match` parameter to the value of the
|
1877
|
+
etag from a previous GET or POST response for that resource.
|
1878
|
+
The resource will be updated or deleted only if the etag you
|
1879
|
+
provide matches the resource's current etag value.
|
1880
|
+
|
1881
|
+
:param str opc_request_id: (optional)
|
1882
|
+
The client request ID for tracing.
|
1883
|
+
|
1884
|
+
:param obj retry_strategy: (optional)
|
1885
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1886
|
+
|
1887
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
1888
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1889
|
+
|
1890
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1891
|
+
|
1892
|
+
:param bool allow_control_chars: (optional)
|
1893
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1894
|
+
By default, the response will not allow control characters in strings
|
1895
|
+
|
1896
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ai_speech.models.Customization`
|
1897
|
+
:rtype: :class:`~oci.response.Response`
|
1898
|
+
|
1899
|
+
:example:
|
1900
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/update_customization.py.html>`__ to see an example of how to use update_customization API.
|
1901
|
+
"""
|
1902
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1903
|
+
required_arguments = ['customizationId']
|
1904
|
+
resource_path = "/customizations/{customizationId}"
|
1905
|
+
method = "PUT"
|
1906
|
+
operation_name = "update_customization"
|
1907
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/speech/20220101/Customization/UpdateCustomization"
|
1908
|
+
|
1909
|
+
# Don't accept unknown kwargs
|
1910
|
+
expected_kwargs = [
|
1911
|
+
"allow_control_chars",
|
1912
|
+
"retry_strategy",
|
1913
|
+
"if_match",
|
1914
|
+
"opc_request_id"
|
1915
|
+
]
|
1916
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1917
|
+
if extra_kwargs:
|
1918
|
+
raise ValueError(
|
1919
|
+
f"update_customization got unknown kwargs: {extra_kwargs!r}")
|
1920
|
+
|
1921
|
+
path_params = {
|
1922
|
+
"customizationId": customization_id
|
1923
|
+
}
|
1924
|
+
|
1925
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1926
|
+
|
1927
|
+
for (k, v) in six.iteritems(path_params):
|
1928
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1929
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1930
|
+
|
1931
|
+
header_params = {
|
1932
|
+
"accept": "application/json",
|
1933
|
+
"content-type": "application/json",
|
1934
|
+
"if-match": kwargs.get("if_match", missing),
|
1935
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1936
|
+
}
|
1937
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1938
|
+
|
1939
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1940
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1941
|
+
client_retry_strategy=self.retry_strategy
|
1942
|
+
)
|
1943
|
+
|
1944
|
+
if retry_strategy:
|
1945
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1946
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1947
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1948
|
+
return retry_strategy.make_retrying_call(
|
1949
|
+
self.base_client.call_api,
|
1950
|
+
resource_path=resource_path,
|
1951
|
+
method=method,
|
1952
|
+
path_params=path_params,
|
1953
|
+
header_params=header_params,
|
1954
|
+
body=update_customization_details,
|
1955
|
+
response_type="Customization",
|
1956
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1957
|
+
operation_name=operation_name,
|
1958
|
+
api_reference_link=api_reference_link,
|
1959
|
+
required_arguments=required_arguments)
|
1960
|
+
else:
|
1961
|
+
return self.base_client.call_api(
|
1962
|
+
resource_path=resource_path,
|
1963
|
+
method=method,
|
1964
|
+
path_params=path_params,
|
1965
|
+
header_params=header_params,
|
1966
|
+
body=update_customization_details,
|
1967
|
+
response_type="Customization",
|
1968
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1969
|
+
operation_name=operation_name,
|
1970
|
+
api_reference_link=api_reference_link,
|
1971
|
+
required_arguments=required_arguments)
|
1972
|
+
|
1190
1973
|
def update_transcription_job(self, transcription_job_id, update_transcription_job_details, **kwargs):
|
1191
1974
|
"""
|
1192
1975
|
Updates the Transcription Job
|
@@ -1224,7 +2007,7 @@ class AIServiceSpeechClient(object):
|
|
1224
2007
|
:rtype: :class:`~oci.response.Response`
|
1225
2008
|
|
1226
2009
|
:example:
|
1227
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2010
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.130.0/aispeech/update_transcription_job.py.html>`__ to see an example of how to use update_transcription_job API.
|
1228
2011
|
"""
|
1229
2012
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1230
2013
|
required_arguments = ['transcriptionJobId']
|