oci 2.133.0__py3-none-any.whl → 2.134.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +214 -17
  7. oci/ai_speech/models/__init__.py +23 -1
  8. oci/ai_speech/models/synthesize_speech_details.py +196 -0
  9. oci/ai_speech/models/tts_audio_config.py +106 -0
  10. oci/ai_speech/models/tts_base_audio_config.py +82 -0
  11. oci/ai_speech/models/tts_configuration.py +103 -0
  12. oci/ai_speech/models/tts_oracle_configuration.py +105 -0
  13. oci/ai_speech/models/tts_oracle_model_details.py +113 -0
  14. oci/ai_speech/models/tts_oracle_speech_settings.py +246 -0
  15. oci/ai_speech/models/tts_oracle_tts1_standard_model_details.py +84 -0
  16. oci/ai_speech/models/tts_oracle_tts2_natural_model_details.py +84 -0
  17. oci/ai_speech/models/voice_collection.py +72 -0
  18. oci/ai_speech/models/voice_summary.py +379 -0
  19. oci/ai_vision/ai_service_vision_client.py +25 -25
  20. oci/analytics/analytics_client.py +24 -24
  21. oci/announcements_service/announcement_client.py +5 -5
  22. oci/announcements_service/announcement_subscription_client.py +9 -9
  23. oci/announcements_service/announcements_preferences_client.py +4 -4
  24. oci/announcements_service/service_client.py +1 -1
  25. oci/apigateway/api_gateway_client.py +21 -21
  26. oci/apigateway/deployment_client.py +6 -6
  27. oci/apigateway/gateway_client.py +6 -6
  28. oci/apigateway/subscribers_client.py +6 -6
  29. oci/apigateway/usage_plans_client.py +6 -6
  30. oci/apigateway/work_requests_client.py +5 -5
  31. oci/apm_config/config_client.py +9 -9
  32. oci/apm_control_plane/apm_domain_client.py +14 -14
  33. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  34. oci/apm_traces/attributes_client.py +8 -8
  35. oci/apm_traces/query_client.py +2 -2
  36. oci/apm_traces/trace_client.py +4 -4
  37. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  38. oci/artifacts/artifacts_client.py +32 -32
  39. oci/audit/audit_client.py +3 -3
  40. oci/autoscaling/auto_scaling_client.py +11 -11
  41. oci/bastion/bastion_client.py +15 -15
  42. oci/bds/bds_client.py +72 -72
  43. oci/blockchain/blockchain_platform_client.py +27 -27
  44. oci/budget/budget_client.py +10 -10
  45. oci/capacity_management/capacity_management_client.py +1692 -423
  46. oci/capacity_management/capacity_management_client_composite_operations.py +146 -0
  47. oci/capacity_management/models/__init__.py +23 -1
  48. oci/capacity_management/models/associated_capacity_request_details.py +103 -0
  49. oci/capacity_management/models/associated_occ_handover_resource_block.py +103 -0
  50. oci/capacity_management/models/create_occ_capacity_request_details.py +3 -3
  51. oci/capacity_management/models/create_occ_customer_details.py +181 -0
  52. oci/capacity_management/models/create_occ_customer_group_details.py +309 -0
  53. oci/capacity_management/models/occ_capacity_request_base_details.py +62 -0
  54. oci/capacity_management/models/occ_handover_resource_block_collection.py +72 -0
  55. oci/capacity_management/models/occ_handover_resource_block_detail_collection.py +72 -0
  56. oci/capacity_management/models/occ_handover_resource_block_detail_summary.py +104 -0
  57. oci/capacity_management/models/occ_handover_resource_block_summary.py +332 -0
  58. oci/capacity_management/models/placement_details.py +227 -0
  59. oci/capacity_management/models/update_occ_customer_details.py +150 -0
  60. oci/capacity_management/models/update_occ_customer_group_details.py +216 -0
  61. oci/certificates/certificates_client.py +5 -5
  62. oci/certificates_management/certificates_management_client.py +32 -32
  63. oci/cims/incident_client.py +8 -8
  64. oci/cims/user_client.py +1 -1
  65. oci/cloud_bridge/common_client.py +5 -5
  66. oci/cloud_bridge/discovery_client.py +14 -14
  67. oci/cloud_bridge/inventory_client.py +16 -16
  68. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  69. oci/cloud_guard/cloud_guard_client.py +155 -155
  70. oci/cloud_migrations/migration_client.py +43 -43
  71. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  72. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  73. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  74. oci/compute_instance_agent/plugin_client.py +2 -2
  75. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  76. oci/container_engine/container_engine_client.py +44 -44
  77. oci/container_instances/container_instance_client.py +18 -18
  78. oci/core/blockstorage_client.py +60 -60
  79. oci/core/compute_client.py +102 -102
  80. oci/core/compute_management_client.py +32 -32
  81. oci/core/virtual_network_client.py +247 -247
  82. oci/dashboard_service/dashboard_client.py +6 -6
  83. oci/dashboard_service/dashboard_group_client.py +6 -6
  84. oci/data_catalog/data_catalog_client.py +149 -149
  85. oci/data_flow/data_flow_client.py +42 -42
  86. oci/data_integration/data_integration_client.py +163 -163
  87. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  88. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  89. oci/data_safe/data_safe_client.py +287 -287
  90. oci/data_science/data_science_client.py +91 -91
  91. oci/database/database_client.py +394 -394
  92. oci/database_management/db_management_client.py +211 -211
  93. oci/database_management/diagnosability_client.py +4 -4
  94. oci/database_management/managed_my_sql_databases_client.py +7 -7
  95. oci/database_management/perfhub_client.py +1 -1
  96. oci/database_management/sql_tuning_client.py +17 -17
  97. oci/database_migration/database_migration_client.py +42 -42
  98. oci/database_tools/database_tools_client.py +23 -23
  99. oci/delegate_access_control/delegate_access_control_client.py +52 -52
  100. oci/delegate_access_control/work_request_client.py +8 -8
  101. oci/demand_signal/occ_demand_signal_client.py +7 -7
  102. oci/desktops/desktop_service_client.py +21 -21
  103. oci/devops/devops_client.py +141 -141
  104. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  105. oci/dns/dns_client.py +52 -52
  106. oci/dts/appliance_export_job_client.py +6 -6
  107. oci/dts/shipping_vendors_client.py +1 -1
  108. oci/dts/transfer_appliance_client.py +8 -8
  109. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  110. oci/dts/transfer_device_client.py +5 -5
  111. oci/dts/transfer_job_client.py +6 -6
  112. oci/dts/transfer_package_client.py +7 -7
  113. oci/em_warehouse/em_data_lake_client.py +13 -13
  114. oci/em_warehouse/em_warehouse_client.py +13 -13
  115. oci/email/email_client.py +31 -31
  116. oci/email_data_plane/email_dp_client.py +1 -1
  117. oci/events/events_client.py +6 -6
  118. oci/file_storage/file_storage_client.py +54 -54
  119. oci/fleet_apps_management/fleet_apps_management_admin_client.py +16 -16
  120. oci/fleet_apps_management/fleet_apps_management_client.py +70 -70
  121. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +10 -10
  122. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  123. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +8 -8
  124. oci/fleet_software_update/fleet_software_update_client.py +48 -48
  125. oci/fleet_software_update/models/create_db_fsu_collection_details.py +7 -3
  126. oci/fleet_software_update/models/create_gi_fsu_collection_details.py +7 -3
  127. oci/fleet_software_update/models/db_collection.py +7 -3
  128. oci/fleet_software_update/models/db_discovery_details.py +7 -3
  129. oci/fleet_software_update/models/db_fsu_collection_summary.py +7 -3
  130. oci/fleet_software_update/models/gi_collection.py +7 -3
  131. oci/fleet_software_update/models/gi_discovery_details.py +7 -3
  132. oci/fleet_software_update/models/gi_fsu_collection_summary.py +7 -3
  133. oci/fleet_software_update/models/work_request.py +7 -3
  134. oci/fleet_software_update/models/work_request_summary.py +7 -3
  135. oci/functions/functions_invoke_client.py +1 -1
  136. oci/functions/functions_management_client.py +16 -16
  137. oci/fusion_apps/data_masking_activity_client.py +3 -3
  138. oci/fusion_apps/fusion_applications_client.py +41 -41
  139. oci/fusion_apps/fusion_environment_client.py +15 -15
  140. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  141. oci/fusion_apps/refresh_activity_client.py +4 -4
  142. oci/fusion_apps/scheduled_activity_client.py +2 -2
  143. oci/fusion_apps/service_attachment_client.py +2 -2
  144. oci/generative_ai/generative_ai_client.py +23 -23
  145. oci/generative_ai/models/create_endpoint_details.py +2 -2
  146. oci/generative_ai/models/dedicated_ai_cluster.py +7 -3
  147. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  148. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  149. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  150. oci/golden_gate/golden_gate_client.py +68 -68
  151. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  152. oci/governance_rules_control_plane/work_request_client.py +5 -5
  153. oci/healthchecks/health_checks_client.py +17 -17
  154. oci/identity/identity_client.py +145 -145
  155. oci/identity_data_plane/dataplane_client.py +2 -2
  156. oci/identity_domains/identity_domains_client.py +307 -307
  157. oci/integration/integration_instance_client.py +16 -16
  158. oci/jms/java_management_service_client.py +75 -75
  159. oci/jms_java_downloads/java_download_client.py +25 -25
  160. oci/key_management/ekm_client.py +5 -5
  161. oci/key_management/kms_crypto_client.py +6 -6
  162. oci/key_management/kms_hsm_cluster_client.py +12 -12
  163. oci/key_management/kms_management_client.py +21 -21
  164. oci/key_management/kms_vault_client.py +14 -14
  165. oci/license_manager/license_manager_client.py +18 -18
  166. oci/limits/limits_client.py +4 -4
  167. oci/limits/quotas_client.py +7 -7
  168. oci/load_balancer/load_balancer_client.py +61 -61
  169. oci/lockbox/lockbox_client.py +24 -24
  170. oci/lockbox/models/access_request.py +35 -2
  171. oci/lockbox/models/access_request_ext.py +35 -2
  172. oci/lockbox/models/access_request_summary.py +33 -0
  173. oci/lockbox/models/create_access_request_details.py +35 -2
  174. oci/log_analytics/log_analytics_client.py +193 -193
  175. oci/logging/logging_management_client.py +30 -30
  176. oci/loggingingestion/logging_client.py +1 -1
  177. oci/loggingsearch/log_search_client.py +1 -1
  178. oci/management_agent/management_agent_client.py +28 -28
  179. oci/management_dashboard/dashx_apis_client.py +14 -14
  180. oci/marketplace/account_client.py +2 -2
  181. oci/marketplace/marketplace_client.py +30 -30
  182. oci/marketplace_private_offer/attachment_client.py +5 -5
  183. oci/marketplace_private_offer/offer_client.py +6 -6
  184. oci/marketplace_publisher/attachment_client.py +5 -5
  185. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  186. oci/marketplace_publisher/offer_client.py +6 -6
  187. oci/media_services/media_services_client.py +60 -60
  188. oci/media_services/media_stream_client.py +2 -2
  189. oci/monitoring/monitoring_client.py +18 -18
  190. oci/mysql/channels_client.py +7 -7
  191. oci/mysql/db_backups_client.py +7 -7
  192. oci/mysql/db_system_client.py +17 -17
  193. oci/mysql/mysqlaas_client.py +7 -7
  194. oci/mysql/replicas_client.py +5 -5
  195. oci/mysql/work_requests_client.py +4 -4
  196. oci/network_firewall/network_firewall_client.py +86 -86
  197. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  198. oci/nosql/nosql_client.py +24 -24
  199. oci/object_storage/object_storage_client.py +55 -55
  200. oci/oce/oce_instance_client.py +10 -10
  201. oci/oci_control_center/occ_metrics_client.py +3 -3
  202. oci/ocvp/cluster_client.py +5 -5
  203. oci/ocvp/esxi_host_client.py +8 -8
  204. oci/ocvp/sddc_client.py +14 -14
  205. oci/ocvp/work_request_client.py +4 -4
  206. oci/oda/management_client.py +59 -59
  207. oci/oda/oda_client.py +17 -17
  208. oci/oda/odapackage_client.py +7 -7
  209. oci/onesubscription/billing_schedule_client.py +1 -1
  210. oci/onesubscription/commitment_client.py +2 -2
  211. oci/onesubscription/computed_usage_client.py +3 -3
  212. oci/onesubscription/invoice_summary_client.py +2 -2
  213. oci/onesubscription/organization_subscription_client.py +1 -1
  214. oci/onesubscription/ratecard_client.py +1 -1
  215. oci/onesubscription/subscribed_service_client.py +2 -2
  216. oci/onesubscription/subscription_client.py +1 -1
  217. oci/ons/notification_control_plane_client.py +6 -6
  218. oci/ons/notification_data_plane_client.py +10 -10
  219. oci/opa/opa_instance_client.py +13 -13
  220. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  221. oci/opensearch/opensearch_cluster_client.py +14 -14
  222. oci/operator_access_control/access_requests_client.py +10 -10
  223. oci/operator_access_control/operator_actions_client.py +2 -2
  224. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  225. oci/operator_access_control/operator_control_client.py +6 -6
  226. oci/opsi/operations_insights_client.py +177 -177
  227. oci/optimizer/optimizer_client.py +26 -26
  228. oci/os_management/event_client.py +8 -8
  229. oci/os_management/os_management_client.py +69 -69
  230. oci/os_management_hub/event_client.py +8 -8
  231. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  232. oci/os_management_hub/managed_instance_client.py +31 -31
  233. oci/os_management_hub/managed_instance_group_client.py +25 -25
  234. oci/os_management_hub/management_station_client.py +10 -10
  235. oci/os_management_hub/onboarding_client.py +6 -6
  236. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  237. oci/os_management_hub/scheduled_job_client.py +7 -7
  238. oci/os_management_hub/software_source_client.py +27 -27
  239. oci/os_management_hub/work_request_client.py +4 -4
  240. oci/osp_gateway/address_rule_service_client.py +1 -1
  241. oci/osp_gateway/address_service_client.py +2 -2
  242. oci/osp_gateway/invoice_service_client.py +5 -5
  243. oci/osp_gateway/subscription_service_client.py +5 -5
  244. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  245. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  246. oci/osub_subscription/commitment_client.py +2 -2
  247. oci/osub_subscription/ratecard_client.py +1 -1
  248. oci/osub_subscription/subscription_client.py +1 -1
  249. oci/osub_usage/computed_usage_client.py +3 -3
  250. oci/psql/postgresql_client.py +33 -33
  251. oci/queue/queue_admin_client.py +11 -11
  252. oci/queue/queue_client.py +8 -8
  253. oci/recovery/database_recovery_client.py +26 -26
  254. oci/redis/redis_cluster_client.py +12 -12
  255. oci/regions_definitions.py +3 -0
  256. oci/resource_manager/resource_manager_client.py +52 -52
  257. oci/resource_scheduler/schedule_client.py +13 -13
  258. oci/resource_search/resource_search_client.py +3 -3
  259. oci/rover/rover_bundle_client.py +8 -8
  260. oci/rover/rover_cluster_client.py +8 -8
  261. oci/rover/rover_entitlement_client.py +6 -6
  262. oci/rover/rover_node_client.py +15 -15
  263. oci/rover/shape_client.py +1 -1
  264. oci/rover/work_requests_client.py +5 -5
  265. oci/sch/connector_plugins_client.py +2 -2
  266. oci/sch/service_connector_client.py +12 -12
  267. oci/secrets/secrets_client.py +3 -3
  268. oci/service_catalog/service_catalog_client.py +26 -26
  269. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  270. oci/service_mesh/service_mesh_client.py +48 -48
  271. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  272. oci/streaming/stream_admin_client.py +18 -18
  273. oci/streaming/stream_client.py +8 -8
  274. oci/tenant_manager_control_plane/domain_client.py +5 -5
  275. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  276. oci/tenant_manager_control_plane/governance_client.py +2 -2
  277. oci/tenant_manager_control_plane/link_client.py +3 -3
  278. oci/tenant_manager_control_plane/orders_client.py +2 -2
  279. oci/tenant_manager_control_plane/organization_client.py +10 -10
  280. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  281. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  282. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  283. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  284. oci/threat_intelligence/threatintel_client.py +5 -5
  285. oci/usage/resources_client.py +2 -2
  286. oci/usage/rewards_client.py +6 -6
  287. oci/usage/usagelimits_client.py +1 -1
  288. oci/usage_api/usageapi_client.py +33 -33
  289. oci/vault/vaults_client.py +13 -13
  290. oci/vbs_inst/vbs_instance_client.py +10 -10
  291. oci/version.py +1 -1
  292. oci/visual_builder/vb_instance_client.py +13 -13
  293. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  294. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  295. oci/waa/waa_client.py +13 -13
  296. oci/waa/work_request_client.py +4 -4
  297. oci/waas/redirect_client.py +6 -6
  298. oci/waas/waas_client.py +66 -66
  299. oci/waf/waf_client.py +24 -24
  300. oci/work_requests/work_request_client.py +4 -4
  301. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/METADATA +1 -1
  302. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/RECORD +306 -284
  303. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/LICENSE.txt +0 -0
  304. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  305. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/WHEEL +0 -0
  306. {oci-2.133.0.dist-info → oci-2.134.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,106 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101
6
+
7
+
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class TtsAudioConfig(object):
14
+ """
15
+ Use this schema to specify handling of audio response.
16
+ If audioConfig is not provided, raw response is handed over for the user to handle.
17
+ """
18
+
19
+ #: A constant which can be used with the config_type property of a TtsAudioConfig.
20
+ #: This constant has a value of "BASE_AUDIO_CONFIG"
21
+ CONFIG_TYPE_BASE_AUDIO_CONFIG = "BASE_AUDIO_CONFIG"
22
+
23
+ def __init__(self, **kwargs):
24
+ """
25
+ Initializes a new TtsAudioConfig object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
26
+ to a service operations then you should favor using a subclass over the base class:
27
+
28
+ * :class:`~oci.ai_speech.models.TtsBaseAudioConfig`
29
+
30
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
31
+
32
+ :param config_type:
33
+ The value to assign to the config_type property of this TtsAudioConfig.
34
+ Allowed values for this property are: "BASE_AUDIO_CONFIG"
35
+ :type config_type: str
36
+
37
+ """
38
+ self.swagger_types = {
39
+ 'config_type': 'str'
40
+ }
41
+
42
+ self.attribute_map = {
43
+ 'config_type': 'configType'
44
+ }
45
+
46
+ self._config_type = None
47
+
48
+ @staticmethod
49
+ def get_subtype(object_dictionary):
50
+ """
51
+ Given the hash representation of a subtype of this class,
52
+ use the info in the hash to return the class of the subtype.
53
+ """
54
+ type = object_dictionary['configType']
55
+
56
+ if type == 'BASE_AUDIO_CONFIG':
57
+ return 'TtsBaseAudioConfig'
58
+ else:
59
+ return 'TtsAudioConfig'
60
+
61
+ @property
62
+ def config_type(self):
63
+ """
64
+ **[Required]** Gets the config_type of this TtsAudioConfig.
65
+ The audio config type to use for handling the audio output.
66
+ Supported config types are:
67
+ - BASE_AUDIO_CONFIG
68
+
69
+ Allowed values for this property are: "BASE_AUDIO_CONFIG"
70
+
71
+
72
+ :return: The config_type of this TtsAudioConfig.
73
+ :rtype: str
74
+ """
75
+ return self._config_type
76
+
77
+ @config_type.setter
78
+ def config_type(self, config_type):
79
+ """
80
+ Sets the config_type of this TtsAudioConfig.
81
+ The audio config type to use for handling the audio output.
82
+ Supported config types are:
83
+ - BASE_AUDIO_CONFIG
84
+
85
+
86
+ :param config_type: The config_type of this TtsAudioConfig.
87
+ :type: str
88
+ """
89
+ allowed_values = ["BASE_AUDIO_CONFIG"]
90
+ if not value_allowed_none_or_none_sentinel(config_type, allowed_values):
91
+ raise ValueError(
92
+ f"Invalid value for `config_type`, must be None or one of {allowed_values}"
93
+ )
94
+ self._config_type = config_type
95
+
96
+ def __repr__(self):
97
+ return formatted_flat_dict(self)
98
+
99
+ def __eq__(self, other):
100
+ if other is None:
101
+ return False
102
+
103
+ return self.__dict__ == other.__dict__
104
+
105
+ def __ne__(self, other):
106
+ return not self == other
@@ -0,0 +1,82 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101
6
+
7
+ from .tts_audio_config import TtsAudioConfig
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class TtsBaseAudioConfig(TtsAudioConfig):
14
+ """
15
+ Use this audio config for saving the audio response at specified path.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new TtsBaseAudioConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.ai_speech.models.TtsBaseAudioConfig.config_type` attribute
21
+ of this class is ``BASE_AUDIO_CONFIG`` and it should not be changed.
22
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
23
+
24
+ :param config_type:
25
+ The value to assign to the config_type property of this TtsBaseAudioConfig.
26
+ Allowed values for this property are: "BASE_AUDIO_CONFIG"
27
+ :type config_type: str
28
+
29
+ :param save_path:
30
+ The value to assign to the save_path property of this TtsBaseAudioConfig.
31
+ :type save_path: str
32
+
33
+ """
34
+ self.swagger_types = {
35
+ 'config_type': 'str',
36
+ 'save_path': 'str'
37
+ }
38
+
39
+ self.attribute_map = {
40
+ 'config_type': 'configType',
41
+ 'save_path': 'savePath'
42
+ }
43
+
44
+ self._config_type = None
45
+ self._save_path = None
46
+ self._config_type = 'BASE_AUDIO_CONFIG'
47
+
48
+ @property
49
+ def save_path(self):
50
+ """
51
+ **[Required]** Gets the save_path of this TtsBaseAudioConfig.
52
+ Specify the path where you want to save the audio response.
53
+
54
+
55
+ :return: The save_path of this TtsBaseAudioConfig.
56
+ :rtype: str
57
+ """
58
+ return self._save_path
59
+
60
+ @save_path.setter
61
+ def save_path(self, save_path):
62
+ """
63
+ Sets the save_path of this TtsBaseAudioConfig.
64
+ Specify the path where you want to save the audio response.
65
+
66
+
67
+ :param save_path: The save_path of this TtsBaseAudioConfig.
68
+ :type: str
69
+ """
70
+ self._save_path = save_path
71
+
72
+ def __repr__(self):
73
+ return formatted_flat_dict(self)
74
+
75
+ def __eq__(self, other):
76
+ if other is None:
77
+ return False
78
+
79
+ return self.__dict__ == other.__dict__
80
+
81
+ def __ne__(self, other):
82
+ return not self == other
@@ -0,0 +1,103 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101
6
+
7
+
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class TtsConfiguration(object):
14
+ """
15
+ Speech configuration for TTS API.
16
+ """
17
+
18
+ #: A constant which can be used with the model_family property of a TtsConfiguration.
19
+ #: This constant has a value of "ORACLE"
20
+ MODEL_FAMILY_ORACLE = "ORACLE"
21
+
22
+ def __init__(self, **kwargs):
23
+ """
24
+ Initializes a new TtsConfiguration object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
25
+ to a service operations then you should favor using a subclass over the base class:
26
+
27
+ * :class:`~oci.ai_speech.models.TtsOracleConfiguration`
28
+
29
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
30
+
31
+ :param model_family:
32
+ The value to assign to the model_family property of this TtsConfiguration.
33
+ Allowed values for this property are: "ORACLE"
34
+ :type model_family: str
35
+
36
+ """
37
+ self.swagger_types = {
38
+ 'model_family': 'str'
39
+ }
40
+
41
+ self.attribute_map = {
42
+ 'model_family': 'modelFamily'
43
+ }
44
+
45
+ self._model_family = None
46
+
47
+ @staticmethod
48
+ def get_subtype(object_dictionary):
49
+ """
50
+ Given the hash representation of a subtype of this class,
51
+ use the info in the hash to return the class of the subtype.
52
+ """
53
+ type = object_dictionary['modelFamily']
54
+
55
+ if type == 'ORACLE':
56
+ return 'TtsOracleConfiguration'
57
+ else:
58
+ return 'TtsConfiguration'
59
+
60
+ @property
61
+ def model_family(self):
62
+ """
63
+ **[Required]** Gets the model_family of this TtsConfiguration.
64
+ The class of models to use for speech generation. The available model families are:
65
+ - ORACLE
66
+
67
+ Allowed values for this property are: "ORACLE"
68
+
69
+
70
+ :return: The model_family of this TtsConfiguration.
71
+ :rtype: str
72
+ """
73
+ return self._model_family
74
+
75
+ @model_family.setter
76
+ def model_family(self, model_family):
77
+ """
78
+ Sets the model_family of this TtsConfiguration.
79
+ The class of models to use for speech generation. The available model families are:
80
+ - ORACLE
81
+
82
+
83
+ :param model_family: The model_family of this TtsConfiguration.
84
+ :type: str
85
+ """
86
+ allowed_values = ["ORACLE"]
87
+ if not value_allowed_none_or_none_sentinel(model_family, allowed_values):
88
+ raise ValueError(
89
+ f"Invalid value for `model_family`, must be None or one of {allowed_values}"
90
+ )
91
+ self._model_family = model_family
92
+
93
+ def __repr__(self):
94
+ return formatted_flat_dict(self)
95
+
96
+ def __eq__(self, other):
97
+ if other is None:
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other):
103
+ return not self == other
@@ -0,0 +1,105 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101
6
+
7
+ from .tts_configuration import TtsConfiguration
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class TtsOracleConfiguration(TtsConfiguration):
14
+ """
15
+ Use this configuration for selecting a model from Oracle model family.
16
+ """
17
+
18
+ def __init__(self, **kwargs):
19
+ """
20
+ Initializes a new TtsOracleConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.ai_speech.models.TtsOracleConfiguration.model_family` attribute
21
+ of this class is ``ORACLE`` and it should not be changed.
22
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
23
+
24
+ :param model_family:
25
+ The value to assign to the model_family property of this TtsOracleConfiguration.
26
+ Allowed values for this property are: "ORACLE"
27
+ :type model_family: str
28
+
29
+ :param model_details:
30
+ The value to assign to the model_details property of this TtsOracleConfiguration.
31
+ :type model_details: oci.ai_speech.models.TtsOracleModelDetails
32
+
33
+ :param speech_settings:
34
+ The value to assign to the speech_settings property of this TtsOracleConfiguration.
35
+ :type speech_settings: oci.ai_speech.models.TtsOracleSpeechSettings
36
+
37
+ """
38
+ self.swagger_types = {
39
+ 'model_family': 'str',
40
+ 'model_details': 'TtsOracleModelDetails',
41
+ 'speech_settings': 'TtsOracleSpeechSettings'
42
+ }
43
+
44
+ self.attribute_map = {
45
+ 'model_family': 'modelFamily',
46
+ 'model_details': 'modelDetails',
47
+ 'speech_settings': 'speechSettings'
48
+ }
49
+
50
+ self._model_family = None
51
+ self._model_details = None
52
+ self._speech_settings = None
53
+ self._model_family = 'ORACLE'
54
+
55
+ @property
56
+ def model_details(self):
57
+ """
58
+ Gets the model_details of this TtsOracleConfiguration.
59
+
60
+ :return: The model_details of this TtsOracleConfiguration.
61
+ :rtype: oci.ai_speech.models.TtsOracleModelDetails
62
+ """
63
+ return self._model_details
64
+
65
+ @model_details.setter
66
+ def model_details(self, model_details):
67
+ """
68
+ Sets the model_details of this TtsOracleConfiguration.
69
+
70
+ :param model_details: The model_details of this TtsOracleConfiguration.
71
+ :type: oci.ai_speech.models.TtsOracleModelDetails
72
+ """
73
+ self._model_details = model_details
74
+
75
+ @property
76
+ def speech_settings(self):
77
+ """
78
+ Gets the speech_settings of this TtsOracleConfiguration.
79
+
80
+ :return: The speech_settings of this TtsOracleConfiguration.
81
+ :rtype: oci.ai_speech.models.TtsOracleSpeechSettings
82
+ """
83
+ return self._speech_settings
84
+
85
+ @speech_settings.setter
86
+ def speech_settings(self, speech_settings):
87
+ """
88
+ Sets the speech_settings of this TtsOracleConfiguration.
89
+
90
+ :param speech_settings: The speech_settings of this TtsOracleConfiguration.
91
+ :type: oci.ai_speech.models.TtsOracleSpeechSettings
92
+ """
93
+ self._speech_settings = speech_settings
94
+
95
+ def __repr__(self):
96
+ return formatted_flat_dict(self)
97
+
98
+ def __eq__(self, other):
99
+ if other is None:
100
+ return False
101
+
102
+ return self.__dict__ == other.__dict__
103
+
104
+ def __ne__(self, other):
105
+ return not self == other
@@ -0,0 +1,113 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101
6
+
7
+
8
+ from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
9
+ from oci.decorators import init_model_state_from_kwargs
10
+
11
+
12
+ @init_model_state_from_kwargs
13
+ class TtsOracleModelDetails(object):
14
+ """
15
+ Model specific properties to use with Oracle model for TTS.
16
+ """
17
+
18
+ #: A constant which can be used with the model_name property of a TtsOracleModelDetails.
19
+ #: This constant has a value of "TTS_1_STANDARD"
20
+ MODEL_NAME_TTS_1_STANDARD = "TTS_1_STANDARD"
21
+
22
+ #: A constant which can be used with the model_name property of a TtsOracleModelDetails.
23
+ #: This constant has a value of "TTS_2_NATURAL"
24
+ MODEL_NAME_TTS_2_NATURAL = "TTS_2_NATURAL"
25
+
26
+ def __init__(self, **kwargs):
27
+ """
28
+ Initializes a new TtsOracleModelDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
29
+ to a service operations then you should favor using a subclass over the base class:
30
+
31
+ * :class:`~oci.ai_speech.models.TtsOracleTts2NaturalModelDetails`
32
+ * :class:`~oci.ai_speech.models.TtsOracleTts1StandardModelDetails`
33
+
34
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
35
+
36
+ :param model_name:
37
+ The value to assign to the model_name property of this TtsOracleModelDetails.
38
+ Allowed values for this property are: "TTS_1_STANDARD", "TTS_2_NATURAL"
39
+ :type model_name: str
40
+
41
+ """
42
+ self.swagger_types = {
43
+ 'model_name': 'str'
44
+ }
45
+
46
+ self.attribute_map = {
47
+ 'model_name': 'modelName'
48
+ }
49
+
50
+ self._model_name = None
51
+
52
+ @staticmethod
53
+ def get_subtype(object_dictionary):
54
+ """
55
+ Given the hash representation of a subtype of this class,
56
+ use the info in the hash to return the class of the subtype.
57
+ """
58
+ type = object_dictionary['modelName']
59
+
60
+ if type == 'TTS_2_NATURAL':
61
+ return 'TtsOracleTts2NaturalModelDetails'
62
+
63
+ if type == 'TTS_1_STANDARD':
64
+ return 'TtsOracleTts1StandardModelDetails'
65
+ else:
66
+ return 'TtsOracleModelDetails'
67
+
68
+ @property
69
+ def model_name(self):
70
+ """
71
+ **[Required]** Gets the model_name of this TtsOracleModelDetails.
72
+ The fully qualified name of model to use for speech generation. The available models are:
73
+ - TTS_1_STANDARD
74
+ - TTS_2_NATURAL
75
+
76
+ Allowed values for this property are: "TTS_1_STANDARD", "TTS_2_NATURAL"
77
+
78
+
79
+ :return: The model_name of this TtsOracleModelDetails.
80
+ :rtype: str
81
+ """
82
+ return self._model_name
83
+
84
+ @model_name.setter
85
+ def model_name(self, model_name):
86
+ """
87
+ Sets the model_name of this TtsOracleModelDetails.
88
+ The fully qualified name of model to use for speech generation. The available models are:
89
+ - TTS_1_STANDARD
90
+ - TTS_2_NATURAL
91
+
92
+
93
+ :param model_name: The model_name of this TtsOracleModelDetails.
94
+ :type: str
95
+ """
96
+ allowed_values = ["TTS_1_STANDARD", "TTS_2_NATURAL"]
97
+ if not value_allowed_none_or_none_sentinel(model_name, allowed_values):
98
+ raise ValueError(
99
+ f"Invalid value for `model_name`, must be None or one of {allowed_values}"
100
+ )
101
+ self._model_name = model_name
102
+
103
+ def __repr__(self):
104
+ return formatted_flat_dict(self)
105
+
106
+ def __eq__(self, other):
107
+ if other is None:
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ return not self == other