oci 2.126.4__py3-none-any.whl → 2.128.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 (494) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +22 -22
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +10 -10
  8. oci/ai_vision/ai_service_vision_client.py +25 -25
  9. oci/analytics/analytics_client.py +23 -23
  10. oci/announcements_service/announcement_client.py +4 -4
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +8 -8
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  22. oci/apm_traces/attributes_client.py +8 -8
  23. oci/apm_traces/query_client.py +2 -2
  24. oci/apm_traces/trace_client.py +4 -4
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/autoscaling/auto_scaling_client.py +11 -11
  29. oci/bastion/bastion_client.py +15 -15
  30. oci/bds/bds_client.py +66 -66
  31. oci/blockchain/blockchain_platform_client.py +27 -27
  32. oci/budget/budget_client.py +10 -10
  33. oci/capacity_management/capacity_management_client.py +494 -38
  34. oci/capacity_management/models/__init__.py +4 -2
  35. oci/capacity_management/models/create_occ_capacity_request_details.py +32 -1
  36. oci/capacity_management/models/metadata_details.py +7 -3
  37. oci/capacity_management/models/occ_availability_catalog.py +2 -2
  38. oci/capacity_management/models/occ_availability_catalog_summary.py +2 -2
  39. oci/capacity_management/models/occ_availability_summary.py +99 -40
  40. oci/capacity_management/models/occ_capacity_request.py +47 -0
  41. oci/capacity_management/models/occ_capacity_request_base_details.py +96 -32
  42. oci/capacity_management/models/occ_capacity_request_summary.py +31 -0
  43. oci/capacity_management/models/occ_overview_collection.py +72 -0
  44. oci/capacity_management/models/occ_overview_summary.py +413 -0
  45. oci/certificates/certificates_client.py +5 -5
  46. oci/certificates_management/certificates_management_client.py +32 -32
  47. oci/cims/incident_client.py +8 -8
  48. oci/cims/user_client.py +1 -1
  49. oci/cloud_bridge/common_client.py +5 -5
  50. oci/cloud_bridge/discovery_client.py +14 -14
  51. oci/cloud_bridge/inventory_client.py +16 -16
  52. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  53. oci/cloud_guard/cloud_guard_client.py +155 -155
  54. oci/cloud_migrations/migration_client.py +43 -43
  55. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  56. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  57. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  58. oci/compute_instance_agent/plugin_client.py +2 -2
  59. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  60. oci/container_engine/container_engine_client.py +44 -44
  61. oci/container_instances/container_instance_client.py +18 -18
  62. oci/core/blockstorage_client.py +60 -60
  63. oci/core/compute_client.py +99 -99
  64. oci/core/compute_management_client.py +32 -32
  65. oci/core/virtual_network_client.py +247 -247
  66. oci/dashboard_service/dashboard_client.py +6 -6
  67. oci/dashboard_service/dashboard_group_client.py +6 -6
  68. oci/data_catalog/data_catalog_client.py +149 -149
  69. oci/data_flow/data_flow_client.py +42 -42
  70. oci/data_integration/data_integration_client.py +163 -163
  71. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  72. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  73. oci/data_safe/data_safe_client.py +278 -278
  74. oci/data_science/data_science_client.py +91 -91
  75. oci/database/database_client.py +447 -333
  76. oci/database/models/__init__.py +6 -0
  77. oci/database/models/autonomous_database_peer_collection.py +72 -0
  78. oci/database/models/autonomous_database_peer_summary.py +107 -0
  79. oci/database/models/create_autonomous_database_base.py +4 -0
  80. oci/database/models/create_cross_tenancy_disaster_recovery_details.py +512 -0
  81. oci/database/models/database_connection_credentials_by_details.py +7 -3
  82. oci/database/models/database_ssl_connection_credentials.py +7 -3
  83. oci/database/models/enable_database_management_details.py +7 -3
  84. oci/database/models/enable_pluggable_database_management_details.py +7 -3
  85. oci/database/models/modify_database_management_details.py +7 -3
  86. oci/database/models/modify_pluggable_database_management_details.py +7 -3
  87. oci/database_management/db_management_client.py +478 -206
  88. oci/database_management/diagnosability_client.py +4 -4
  89. oci/database_management/managed_my_sql_databases_client.py +7 -7
  90. oci/database_management/models/__init__.py +10 -0
  91. oci/database_management/models/basic_named_credential_content.py +7 -3
  92. oci/database_management/models/basic_preferred_credential.py +7 -3
  93. oci/database_management/models/data_points.py +103 -0
  94. oci/database_management/models/database_connection_credentials_by_details.py +7 -3
  95. oci/database_management/models/database_password_credential_details.py +7 -3
  96. oci/database_management/models/database_secret_credential_details.py +7 -3
  97. oci/database_management/models/database_ssl_connection_credentials.py +7 -3
  98. oci/database_management/models/database_usage_metrics.py +183 -0
  99. oci/database_management/models/dataguard_performance_metrics.py +72 -0
  100. oci/database_management/models/peer_database_metrics.py +72 -0
  101. oci/database_management/models/performance_metrics.py +165 -0
  102. oci/database_management/models/performance_metrics_data.py +387 -0
  103. oci/database_management/models/preferred_credential_summary.py +7 -3
  104. oci/database_management/models/test_basic_preferred_credential_details.py +7 -3
  105. oci/database_management/models/update_basic_preferred_credential_details.py +7 -3
  106. oci/database_management/perfhub_client.py +1 -1
  107. oci/database_management/sql_tuning_client.py +17 -17
  108. oci/database_migration/database_migration_client.py +41 -41
  109. oci/database_tools/database_tools_client.py +23 -23
  110. oci/demand_signal/__init__.py +14 -0
  111. oci/demand_signal/models/__init__.py +48 -0
  112. oci/demand_signal/models/change_occ_demand_signal_compartment_details.py +76 -0
  113. oci/demand_signal/models/create_occ_demand_signal_details.py +251 -0
  114. oci/demand_signal/models/occ_demand_signal.py +501 -0
  115. oci/demand_signal/models/occ_demand_signal_collection.py +72 -0
  116. oci/demand_signal/models/occ_demand_signal_data.py +134 -0
  117. oci/demand_signal/models/occ_demand_signal_summary.py +430 -0
  118. oci/demand_signal/models/occ_demand_signal_value.py +134 -0
  119. oci/demand_signal/models/patch_insert_instruction.py +171 -0
  120. oci/demand_signal/models/patch_insert_multiple_instruction.py +171 -0
  121. oci/demand_signal/models/patch_instruction.py +192 -0
  122. oci/demand_signal/models/patch_merge_instruction.py +97 -0
  123. oci/demand_signal/models/patch_move_instruction.py +147 -0
  124. oci/demand_signal/models/patch_occ_demand_signal_details.py +72 -0
  125. oci/demand_signal/models/patch_prohibit_instruction.py +100 -0
  126. oci/demand_signal/models/patch_remove_instruction.py +59 -0
  127. oci/demand_signal/models/patch_replace_instruction.py +92 -0
  128. oci/demand_signal/models/patch_require_instruction.py +99 -0
  129. oci/demand_signal/models/update_occ_demand_signal_details.py +185 -0
  130. oci/demand_signal/occ_demand_signal_client.py +953 -0
  131. oci/demand_signal/occ_demand_signal_client_composite_operations.py +176 -0
  132. oci/desktops/desktop_service_client.py +21 -21
  133. oci/devops/devops_client.py +89 -89
  134. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  135. oci/dns/dns_client.py +52 -52
  136. oci/dts/appliance_export_job_client.py +6 -6
  137. oci/dts/shipping_vendors_client.py +1 -1
  138. oci/dts/transfer_appliance_client.py +8 -8
  139. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  140. oci/dts/transfer_device_client.py +5 -5
  141. oci/dts/transfer_job_client.py +6 -6
  142. oci/dts/transfer_package_client.py +7 -7
  143. oci/em_warehouse/em_data_lake_client.py +13 -13
  144. oci/em_warehouse/em_warehouse_client.py +13 -13
  145. oci/email/email_client.py +31 -31
  146. oci/email_data_plane/email_dp_client.py +1 -1
  147. oci/events/events_client.py +6 -6
  148. oci/file_storage/file_storage_client.py +50 -50
  149. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  150. oci/functions/functions_invoke_client.py +1 -1
  151. oci/functions/functions_management_client.py +16 -16
  152. oci/fusion_apps/data_masking_activity_client.py +3 -3
  153. oci/fusion_apps/fusion_applications_client.py +39 -39
  154. oci/fusion_apps/fusion_environment_client.py +15 -15
  155. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  156. oci/fusion_apps/refresh_activity_client.py +4 -4
  157. oci/fusion_apps/scheduled_activity_client.py +2 -2
  158. oci/fusion_apps/service_attachment_client.py +2 -2
  159. oci/generative_ai/generative_ai_client.py +22 -22
  160. oci/generative_ai/models/__init__.py +4 -0
  161. oci/generative_ai/models/chat_model_metrics.py +113 -0
  162. oci/generative_ai/models/create_dedicated_ai_cluster_details.py +8 -0
  163. oci/generative_ai/models/dedicated_ai_cluster.py +17 -5
  164. oci/generative_ai/models/lora_training_config.py +186 -0
  165. oci/generative_ai/models/model_metrics.py +11 -3
  166. oci/generative_ai/models/t_few_training_config.py +1 -1
  167. oci/generative_ai/models/text_generation_model_metrics.py +1 -1
  168. oci/generative_ai/models/training_config.py +11 -3
  169. oci/generative_ai/models/vanilla_training_config.py +1 -1
  170. oci/generative_ai_inference/generative_ai_inference_client.py +13 -17
  171. oci/generative_ai_inference/models/__init__.py +23 -1
  172. oci/generative_ai_inference/models/assistant_message.py +89 -0
  173. oci/generative_ai_inference/models/base_chat_request.py +3 -3
  174. oci/generative_ai_inference/models/base_chat_response.py +3 -3
  175. oci/generative_ai_inference/models/chat_details.py +3 -3
  176. oci/generative_ai_inference/models/chat_result.py +2 -2
  177. oci/generative_ai_inference/models/choice.py +1 -1
  178. oci/generative_ai_inference/models/citation.py +9 -9
  179. oci/generative_ai_inference/models/cohere_chat_bot_message.py +113 -0
  180. oci/generative_ai_inference/models/cohere_chat_request.py +353 -30
  181. oci/generative_ai_inference/models/cohere_chat_response.py +166 -16
  182. oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
  183. oci/generative_ai_inference/models/cohere_message.py +49 -43
  184. oci/generative_ai_inference/models/cohere_parameter_definition.py +134 -0
  185. oci/generative_ai_inference/models/cohere_system_message.py +82 -0
  186. oci/generative_ai_inference/models/cohere_tool.py +134 -0
  187. oci/generative_ai_inference/models/cohere_tool_call.py +103 -0
  188. oci/generative_ai_inference/models/cohere_tool_message.py +82 -0
  189. oci/generative_ai_inference/models/cohere_tool_result.py +99 -0
  190. oci/generative_ai_inference/models/cohere_user_message.py +82 -0
  191. oci/generative_ai_inference/models/embed_text_details.py +4 -4
  192. oci/generative_ai_inference/models/generate_text_details.py +2 -2
  193. oci/generative_ai_inference/models/generic_chat_request.py +16 -10
  194. oci/generative_ai_inference/models/generic_chat_response.py +3 -3
  195. oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
  196. oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
  197. oci/generative_ai_inference/models/llm_inference_response.py +3 -11
  198. oci/generative_ai_inference/models/logprobs.py +3 -1
  199. oci/generative_ai_inference/models/message.py +50 -5
  200. oci/generative_ai_inference/models/on_demand_serving_mode.py +2 -2
  201. oci/generative_ai_inference/models/serving_mode.py +3 -3
  202. oci/generative_ai_inference/models/summarize_text_details.py +2 -2
  203. oci/generative_ai_inference/models/system_message.py +89 -0
  204. oci/generative_ai_inference/models/text_content.py +1 -1
  205. oci/generative_ai_inference/models/user_message.py +89 -0
  206. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  207. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  208. oci/golden_gate/golden_gate_client.py +2420 -1399
  209. oci/golden_gate/golden_gate_client_composite_operations.py +274 -0
  210. oci/golden_gate/models/__init__.py +20 -0
  211. oci/golden_gate/models/add_resource_lock_details.py +124 -0
  212. oci/golden_gate/models/amazon_kinesis_connection.py +8 -1
  213. oci/golden_gate/models/amazon_kinesis_connection_summary.py +8 -1
  214. oci/golden_gate/models/amazon_redshift_connection.py +8 -1
  215. oci/golden_gate/models/amazon_redshift_connection_summary.py +8 -1
  216. oci/golden_gate/models/amazon_s3_connection.py +8 -1
  217. oci/golden_gate/models/amazon_s3_connection_summary.py +8 -1
  218. oci/golden_gate/models/azure_data_lake_storage_connection.py +8 -1
  219. oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +8 -1
  220. oci/golden_gate/models/azure_synapse_connection.py +8 -1
  221. oci/golden_gate/models/azure_synapse_connection_summary.py +8 -1
  222. oci/golden_gate/models/certificate.py +2 -2
  223. oci/golden_gate/models/connection.py +42 -3
  224. oci/golden_gate/models/connection_summary.py +44 -5
  225. oci/golden_gate/models/create_amazon_kinesis_connection_details.py +8 -1
  226. oci/golden_gate/models/create_amazon_redshift_connection_details.py +8 -1
  227. oci/golden_gate/models/create_amazon_s3_connection_details.py +8 -1
  228. oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +8 -1
  229. oci/golden_gate/models/create_azure_synapse_connection_details.py +8 -1
  230. oci/golden_gate/models/create_certificate_details.py +2 -2
  231. oci/golden_gate/models/create_connection_details.py +42 -3
  232. oci/golden_gate/models/create_db2_connection_details.py +474 -0
  233. oci/golden_gate/models/create_deployment_backup_details.py +33 -2
  234. oci/golden_gate/models/create_deployment_details.py +37 -2
  235. oci/golden_gate/models/create_elasticsearch_connection_details.py +8 -1
  236. oci/golden_gate/models/create_generic_connection_details.py +8 -1
  237. oci/golden_gate/models/create_golden_gate_connection_details.py +8 -1
  238. oci/golden_gate/models/create_google_big_query_connection_details.py +8 -1
  239. oci/golden_gate/models/create_google_cloud_storage_connection_details.py +8 -1
  240. oci/golden_gate/models/create_hdfs_connection_details.py +8 -1
  241. oci/golden_gate/models/create_java_message_service_connection_details.py +8 -1
  242. oci/golden_gate/models/create_kafka_connection_details.py +8 -1
  243. oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +8 -1
  244. oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +8 -1
  245. oci/golden_gate/models/create_mongo_db_connection_details.py +8 -1
  246. oci/golden_gate/models/create_mysql_connection_details.py +8 -1
  247. oci/golden_gate/models/create_oci_object_storage_connection_details.py +8 -1
  248. oci/golden_gate/models/create_ogg_deployment_details.py +4 -4
  249. oci/golden_gate/models/create_oracle_connection_details.py +41 -1
  250. oci/golden_gate/models/create_oracle_nosql_connection_details.py +8 -1
  251. oci/golden_gate/models/create_postgresql_connection_details.py +47 -5
  252. oci/golden_gate/models/create_redis_connection_details.py +46 -4
  253. oci/golden_gate/models/create_snowflake_connection_details.py +8 -1
  254. oci/golden_gate/models/db2_connection.py +431 -0
  255. oci/golden_gate/models/db2_connection_summary.py +399 -0
  256. oci/golden_gate/models/deployment.py +37 -2
  257. oci/golden_gate/models/deployment_backup.py +112 -2
  258. oci/golden_gate/models/deployment_backup_summary.py +112 -2
  259. oci/golden_gate/models/deployment_summary.py +39 -4
  260. oci/golden_gate/models/deployment_type_summary.py +7 -3
  261. oci/golden_gate/models/elasticsearch_connection.py +8 -1
  262. oci/golden_gate/models/elasticsearch_connection_summary.py +8 -1
  263. oci/golden_gate/models/generate_library_url_details.py +101 -0
  264. oci/golden_gate/models/generate_log_reader_component_library_url_details.py +51 -0
  265. oci/golden_gate/models/generic_connection.py +8 -1
  266. oci/golden_gate/models/generic_connection_summary.py +8 -1
  267. oci/golden_gate/models/golden_gate_connection.py +8 -1
  268. oci/golden_gate/models/golden_gate_connection_summary.py +8 -1
  269. oci/golden_gate/models/google_big_query_connection.py +8 -1
  270. oci/golden_gate/models/google_big_query_connection_summary.py +8 -1
  271. oci/golden_gate/models/google_cloud_storage_connection.py +8 -1
  272. oci/golden_gate/models/google_cloud_storage_connection_summary.py +8 -1
  273. oci/golden_gate/models/hdfs_connection.py +8 -1
  274. oci/golden_gate/models/hdfs_connection_summary.py +8 -1
  275. oci/golden_gate/models/java_message_service_connection.py +8 -1
  276. oci/golden_gate/models/java_message_service_connection_summary.py +8 -1
  277. oci/golden_gate/models/kafka_connection.py +8 -1
  278. oci/golden_gate/models/kafka_connection_summary.py +8 -1
  279. oci/golden_gate/models/kafka_schema_registry_connection.py +8 -1
  280. oci/golden_gate/models/kafka_schema_registry_connection_summary.py +8 -1
  281. oci/golden_gate/models/library_url.py +72 -0
  282. oci/golden_gate/models/microsoft_sqlserver_connection.py +8 -1
  283. oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +8 -1
  284. oci/golden_gate/models/mongo_db_connection.py +8 -1
  285. oci/golden_gate/models/mongo_db_connection_summary.py +8 -1
  286. oci/golden_gate/models/mysql_connection.py +19 -4
  287. oci/golden_gate/models/mysql_connection_summary.py +8 -1
  288. oci/golden_gate/models/oci_object_storage_connection.py +8 -1
  289. oci/golden_gate/models/oci_object_storage_connection_summary.py +8 -1
  290. oci/golden_gate/models/ogg_deployment.py +2 -2
  291. oci/golden_gate/models/oracle_connection.py +64 -4
  292. oci/golden_gate/models/oracle_connection_summary.py +41 -1
  293. oci/golden_gate/models/oracle_nosql_connection.py +8 -1
  294. oci/golden_gate/models/oracle_nosql_connection_summary.py +8 -1
  295. oci/golden_gate/models/postgresql_connection.py +56 -6
  296. oci/golden_gate/models/postgresql_connection_summary.py +45 -3
  297. oci/golden_gate/models/redis_connection.py +52 -6
  298. oci/golden_gate/models/redis_connection_summary.py +45 -3
  299. oci/golden_gate/models/remove_resource_lock_details.py +91 -0
  300. oci/golden_gate/models/resource_lock.py +185 -0
  301. oci/golden_gate/models/snowflake_connection.py +8 -1
  302. oci/golden_gate/models/snowflake_connection_summary.py +8 -1
  303. oci/golden_gate/models/update_amazon_kinesis_connection_details.py +1 -1
  304. oci/golden_gate/models/update_amazon_redshift_connection_details.py +1 -1
  305. oci/golden_gate/models/update_amazon_s3_connection_details.py +1 -1
  306. oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +1 -1
  307. oci/golden_gate/models/update_azure_synapse_connection_details.py +1 -1
  308. oci/golden_gate/models/update_connection_details.py +11 -3
  309. oci/golden_gate/models/update_db2_connection_details.py +429 -0
  310. oci/golden_gate/models/update_deployment_details.py +43 -0
  311. oci/golden_gate/models/update_elasticsearch_connection_details.py +1 -1
  312. oci/golden_gate/models/update_generic_connection_details.py +1 -1
  313. oci/golden_gate/models/update_golden_gate_connection_details.py +1 -1
  314. oci/golden_gate/models/update_google_big_query_connection_details.py +1 -1
  315. oci/golden_gate/models/update_google_cloud_storage_connection_details.py +1 -1
  316. oci/golden_gate/models/update_hdfs_connection_details.py +1 -1
  317. oci/golden_gate/models/update_java_message_service_connection_details.py +1 -1
  318. oci/golden_gate/models/update_kafka_connection_details.py +1 -1
  319. oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +1 -1
  320. oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +1 -1
  321. oci/golden_gate/models/update_mongo_db_connection_details.py +1 -1
  322. oci/golden_gate/models/update_mysql_connection_details.py +1 -1
  323. oci/golden_gate/models/update_oci_object_storage_connection_details.py +1 -1
  324. oci/golden_gate/models/update_ogg_deployment_details.py +4 -4
  325. oci/golden_gate/models/update_oracle_connection_details.py +34 -1
  326. oci/golden_gate/models/update_oracle_nosql_connection_details.py +1 -1
  327. oci/golden_gate/models/update_postgresql_connection_details.py +38 -3
  328. oci/golden_gate/models/update_redis_connection_details.py +38 -3
  329. oci/golden_gate/models/update_snowflake_connection_details.py +1 -1
  330. oci/golden_gate/models/work_request.py +7 -3
  331. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  332. oci/governance_rules_control_plane/work_request_client.py +5 -5
  333. oci/healthchecks/health_checks_client.py +17 -17
  334. oci/identity/identity_client.py +145 -145
  335. oci/identity_data_plane/dataplane_client.py +2 -2
  336. oci/identity_domains/identity_domains_client.py +300 -300
  337. oci/integration/integration_instance_client.py +15 -15
  338. oci/jms/java_management_service_client.py +66 -66
  339. oci/jms_java_downloads/java_download_client.py +52 -51
  340. oci/jms_java_downloads/models/create_java_download_report_details.py +80 -6
  341. oci/jms_java_downloads/models/create_java_license_acceptance_record_details.py +76 -2
  342. oci/jms_java_downloads/models/java_download_count_aggregation.py +2 -2
  343. oci/jms_java_downloads/models/java_download_record.py +2 -2
  344. oci/jms_java_downloads/models/java_download_record_summary.py +2 -2
  345. oci/jms_java_downloads/models/java_download_report.py +174 -2
  346. oci/jms_java_downloads/models/java_download_report_summary.py +174 -2
  347. oci/jms_java_downloads/models/java_download_token.py +24 -8
  348. oci/jms_java_downloads/models/java_download_token_summary.py +24 -8
  349. oci/jms_java_downloads/models/java_license_acceptance_record.py +4 -4
  350. oci/jms_java_downloads/models/java_license_acceptance_record_summary.py +4 -4
  351. oci/jms_java_downloads/models/request_summarized_java_download_counts_details.py +2 -2
  352. oci/jms_java_downloads/models/update_java_license_acceptance_record_details.py +76 -2
  353. oci/key_management/ekm_client.py +5 -5
  354. oci/key_management/kms_crypto_client.py +6 -6
  355. oci/key_management/kms_hsm_cluster_client.py +12 -12
  356. oci/key_management/kms_management_client.py +21 -21
  357. oci/key_management/kms_vault_client.py +14 -14
  358. oci/license_manager/license_manager_client.py +18 -18
  359. oci/limits/limits_client.py +4 -4
  360. oci/limits/quotas_client.py +7 -7
  361. oci/load_balancer/load_balancer_client.py +61 -61
  362. oci/lockbox/lockbox_client.py +24 -24
  363. oci/log_analytics/log_analytics_client.py +193 -193
  364. oci/logging/logging_management_client.py +30 -30
  365. oci/loggingingestion/logging_client.py +1 -1
  366. oci/loggingsearch/log_search_client.py +1 -1
  367. oci/management_agent/management_agent_client.py +28 -28
  368. oci/management_dashboard/dashx_apis_client.py +14 -14
  369. oci/marketplace/account_client.py +2 -2
  370. oci/marketplace/marketplace_client.py +30 -30
  371. oci/marketplace_private_offer/attachment_client.py +5 -5
  372. oci/marketplace_private_offer/offer_client.py +6 -6
  373. oci/marketplace_publisher/attachment_client.py +5 -5
  374. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  375. oci/marketplace_publisher/offer_client.py +6 -6
  376. oci/media_services/media_services_client.py +60 -60
  377. oci/media_services/media_stream_client.py +2 -2
  378. oci/monitoring/monitoring_client.py +18 -18
  379. oci/mysql/channels_client.py +7 -7
  380. oci/mysql/db_backups_client.py +6 -6
  381. oci/mysql/db_system_client.py +17 -17
  382. oci/mysql/mysqlaas_client.py +7 -7
  383. oci/mysql/replicas_client.py +5 -5
  384. oci/mysql/work_requests_client.py +4 -4
  385. oci/network_firewall/network_firewall_client.py +80 -80
  386. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  387. oci/nosql/nosql_client.py +24 -24
  388. oci/object_storage/object_storage_client.py +50 -50
  389. oci/oce/oce_instance_client.py +10 -10
  390. oci/oci_control_center/occ_metrics_client.py +3 -3
  391. oci/ocvp/cluster_client.py +5 -5
  392. oci/ocvp/esxi_host_client.py +8 -8
  393. oci/ocvp/sddc_client.py +14 -14
  394. oci/ocvp/work_request_client.py +4 -4
  395. oci/oda/management_client.py +59 -59
  396. oci/oda/oda_client.py +17 -17
  397. oci/oda/odapackage_client.py +7 -7
  398. oci/onesubscription/billing_schedule_client.py +1 -1
  399. oci/onesubscription/commitment_client.py +2 -2
  400. oci/onesubscription/computed_usage_client.py +3 -3
  401. oci/onesubscription/invoice_summary_client.py +2 -2
  402. oci/onesubscription/organization_subscription_client.py +1 -1
  403. oci/onesubscription/ratecard_client.py +1 -1
  404. oci/onesubscription/subscribed_service_client.py +2 -2
  405. oci/onesubscription/subscription_client.py +1 -1
  406. oci/ons/notification_control_plane_client.py +6 -6
  407. oci/ons/notification_data_plane_client.py +10 -10
  408. oci/opa/opa_instance_client.py +13 -13
  409. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  410. oci/opensearch/opensearch_cluster_client.py +14 -14
  411. oci/operator_access_control/access_requests_client.py +10 -10
  412. oci/operator_access_control/operator_actions_client.py +2 -2
  413. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  414. oci/operator_access_control/operator_control_client.py +6 -6
  415. oci/opsi/operations_insights_client.py +175 -175
  416. oci/optimizer/optimizer_client.py +26 -26
  417. oci/os_management/event_client.py +8 -8
  418. oci/os_management/os_management_client.py +69 -69
  419. oci/os_management_hub/event_client.py +8 -8
  420. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  421. oci/os_management_hub/managed_instance_client.py +31 -31
  422. oci/os_management_hub/managed_instance_group_client.py +25 -25
  423. oci/os_management_hub/management_station_client.py +10 -10
  424. oci/os_management_hub/onboarding_client.py +6 -6
  425. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  426. oci/os_management_hub/scheduled_job_client.py +7 -7
  427. oci/os_management_hub/software_source_client.py +27 -27
  428. oci/os_management_hub/work_request_client.py +4 -4
  429. oci/osp_gateway/address_rule_service_client.py +1 -1
  430. oci/osp_gateway/address_service_client.py +2 -2
  431. oci/osp_gateway/invoice_service_client.py +5 -5
  432. oci/osp_gateway/subscription_service_client.py +5 -5
  433. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  434. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  435. oci/osub_subscription/commitment_client.py +2 -2
  436. oci/osub_subscription/ratecard_client.py +1 -1
  437. oci/osub_subscription/subscription_client.py +1 -1
  438. oci/osub_usage/computed_usage_client.py +3 -3
  439. oci/psql/postgresql_client.py +33 -33
  440. oci/queue/queue_admin_client.py +11 -11
  441. oci/queue/queue_client.py +8 -8
  442. oci/recovery/database_recovery_client.py +25 -25
  443. oci/redis/redis_cluster_client.py +11 -11
  444. oci/resource_manager/resource_manager_client.py +52 -52
  445. oci/resource_scheduler/schedule_client.py +26 -26
  446. oci/resource_search/resource_search_client.py +3 -3
  447. oci/rover/rover_bundle_client.py +8 -8
  448. oci/rover/rover_cluster_client.py +8 -8
  449. oci/rover/rover_entitlement_client.py +6 -6
  450. oci/rover/rover_node_client.py +15 -15
  451. oci/rover/shape_client.py +1 -1
  452. oci/rover/work_requests_client.py +5 -5
  453. oci/sch/connector_plugins_client.py +2 -2
  454. oci/sch/service_connector_client.py +12 -12
  455. oci/secrets/secrets_client.py +3 -3
  456. oci/service_catalog/service_catalog_client.py +26 -26
  457. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  458. oci/service_mesh/service_mesh_client.py +48 -48
  459. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  460. oci/streaming/stream_admin_client.py +18 -18
  461. oci/streaming/stream_client.py +8 -8
  462. oci/tenant_manager_control_plane/domain_client.py +5 -5
  463. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  464. oci/tenant_manager_control_plane/governance_client.py +2 -2
  465. oci/tenant_manager_control_plane/link_client.py +3 -3
  466. oci/tenant_manager_control_plane/orders_client.py +2 -2
  467. oci/tenant_manager_control_plane/organization_client.py +10 -10
  468. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  469. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  470. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  471. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  472. oci/threat_intelligence/threatintel_client.py +5 -5
  473. oci/usage/resources_client.py +2 -2
  474. oci/usage/rewards_client.py +6 -6
  475. oci/usage/usagelimits_client.py +1 -1
  476. oci/usage_api/usageapi_client.py +33 -33
  477. oci/vault/vaults_client.py +13 -13
  478. oci/vbs_inst/vbs_instance_client.py +10 -10
  479. oci/version.py +1 -1
  480. oci/visual_builder/vb_instance_client.py +13 -13
  481. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  482. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  483. oci/waa/waa_client.py +13 -13
  484. oci/waa/work_request_client.py +4 -4
  485. oci/waas/redirect_client.py +6 -6
  486. oci/waas/waas_client.py +66 -66
  487. oci/waf/waf_client.py +24 -24
  488. oci/work_requests/work_request_client.py +4 -4
  489. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/METADATA +1 -1
  490. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/RECORD +494 -439
  491. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/LICENSE.txt +0 -0
  492. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  493. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/WHEEL +0 -0
  494. {oci-2.126.4.dist-info → oci-2.128.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,953 @@
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: 20240430
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import demand_signal_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class OccDemandSignalClient(object):
24
+ """
25
+ Use the OCI Control Center Demand Signal API to manage Demand Signals.
26
+ """
27
+
28
+ def __init__(self, config, **kwargs):
29
+ """
30
+ Creates a new service client
31
+
32
+ :param dict config:
33
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
34
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
35
+ the dict using :py:meth:`~oci.config.validate_config`
36
+
37
+ :param str service_endpoint: (optional)
38
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
39
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
40
+ need to specify a service endpoint.
41
+
42
+ :param timeout: (optional)
43
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
44
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
45
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
46
+ :type timeout: float or tuple(float, float)
47
+
48
+ :param signer: (optional)
49
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
50
+ provided in the config parameter.
51
+
52
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
53
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
54
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
55
+
56
+ :param obj retry_strategy: (optional)
57
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
58
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
59
+ Any value provided at the operation level will override whatever is specified at the client level.
60
+
61
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
62
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
63
+
64
+ :param obj circuit_breaker_strategy: (optional)
65
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
66
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
67
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
68
+
69
+ :param function circuit_breaker_callback: (optional)
70
+ Callback function to receive any exceptions triggerred by the circuit breaker.
71
+
72
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
73
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
74
+
75
+ :param allow_control_chars: (optional)
76
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
77
+ allow control characters to be in the response object.
78
+ """
79
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("demand_signal"):
80
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
81
+
82
+ validate_config(config, signer=kwargs.get('signer'))
83
+ if 'signer' in kwargs:
84
+ signer = kwargs['signer']
85
+
86
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
87
+ signer = get_signer_from_authentication_type(config)
88
+
89
+ else:
90
+ signer = Signer(
91
+ tenancy=config["tenancy"],
92
+ user=config["user"],
93
+ fingerprint=config["fingerprint"],
94
+ private_key_file_location=config.get("key_file"),
95
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
96
+ private_key_content=config.get("key_content")
97
+ )
98
+
99
+ base_client_init_kwargs = {
100
+ 'regional_client': True,
101
+ 'service_endpoint': kwargs.get('service_endpoint'),
102
+ 'base_path': '/20240430',
103
+ 'service_endpoint_template': 'https://control-center-ds.{region}.oci.{secondLevelDomain}',
104
+ 'endpoint_service_name': 'control-center-ds',
105
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
106
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
107
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
108
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
109
+ }
110
+ if 'timeout' in kwargs:
111
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
112
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
113
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
114
+ if 'allow_control_chars' in kwargs:
115
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
116
+ self.base_client = BaseClient("occ_demand_signal", config, signer, demand_signal_type_mapping, **base_client_init_kwargs)
117
+ self.retry_strategy = kwargs.get('retry_strategy')
118
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
119
+
120
+ def change_occ_demand_signal_compartment(self, occ_demand_signal_id, change_occ_demand_signal_compartment_details, **kwargs):
121
+ """
122
+ Moves a OccDemandSignal into a different compartment within the same tenancy. For information about moving resources between
123
+ compartments, see `Moving Resources to a Different Compartment`__.
124
+
125
+ __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
126
+
127
+
128
+ :param str occ_demand_signal_id: (required)
129
+ The `OCID`__ of the OccDemandSignal.
130
+
131
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
132
+
133
+ :param oci.demand_signal.models.ChangeOccDemandSignalCompartmentDetails change_occ_demand_signal_compartment_details: (required)
134
+ The information to be updated.
135
+
136
+ :param str if_match: (optional)
137
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
138
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
139
+ that resource. The resource will be updated or deleted only if the etag you provide
140
+ matches the resource's current etag value.
141
+
142
+ :param str opc_request_id: (optional)
143
+ Unique Oracle-assigned identifier for the request. If you need to contact
144
+ Oracle about a particular request, please provide the request ID.
145
+ The only valid characters for request IDs are letters, numbers,
146
+ underscore, and dash.
147
+
148
+ :param obj retry_strategy: (optional)
149
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
150
+
151
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
152
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
153
+
154
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
155
+
156
+ :param bool allow_control_chars: (optional)
157
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
158
+ By default, the response will not allow control characters in strings
159
+
160
+ :return: A :class:`~oci.response.Response` object with data of type None
161
+ :rtype: :class:`~oci.response.Response`
162
+
163
+ :example:
164
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/change_occ_demand_signal_compartment.py.html>`__ to see an example of how to use change_occ_demand_signal_compartment API.
165
+ """
166
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
167
+ required_arguments = ['occDemandSignalId']
168
+ resource_path = "/occDemandSignals/{occDemandSignalId}/actions/changeCompartment"
169
+ method = "POST"
170
+ operation_name = "change_occ_demand_signal_compartment"
171
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/ChangeOccDemandSignalCompartment"
172
+
173
+ # Don't accept unknown kwargs
174
+ expected_kwargs = [
175
+ "allow_control_chars",
176
+ "retry_strategy",
177
+ "if_match",
178
+ "opc_request_id"
179
+ ]
180
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
181
+ if extra_kwargs:
182
+ raise ValueError(
183
+ f"change_occ_demand_signal_compartment got unknown kwargs: {extra_kwargs!r}")
184
+
185
+ path_params = {
186
+ "occDemandSignalId": occ_demand_signal_id
187
+ }
188
+
189
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
190
+
191
+ for (k, v) in six.iteritems(path_params):
192
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
193
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
194
+
195
+ header_params = {
196
+ "accept": "application/json",
197
+ "content-type": "application/json",
198
+ "if-match": kwargs.get("if_match", missing),
199
+ "opc-request-id": kwargs.get("opc_request_id", missing)
200
+ }
201
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
202
+
203
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
204
+ operation_retry_strategy=kwargs.get('retry_strategy'),
205
+ client_retry_strategy=self.retry_strategy
206
+ )
207
+ if retry_strategy is None:
208
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
209
+
210
+ if retry_strategy:
211
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
212
+ self.base_client.add_opc_client_retries_header(header_params)
213
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
214
+ return retry_strategy.make_retrying_call(
215
+ self.base_client.call_api,
216
+ resource_path=resource_path,
217
+ method=method,
218
+ path_params=path_params,
219
+ header_params=header_params,
220
+ body=change_occ_demand_signal_compartment_details,
221
+ allow_control_chars=kwargs.get('allow_control_chars'),
222
+ operation_name=operation_name,
223
+ api_reference_link=api_reference_link,
224
+ required_arguments=required_arguments)
225
+ else:
226
+ return self.base_client.call_api(
227
+ resource_path=resource_path,
228
+ method=method,
229
+ path_params=path_params,
230
+ header_params=header_params,
231
+ body=change_occ_demand_signal_compartment_details,
232
+ allow_control_chars=kwargs.get('allow_control_chars'),
233
+ operation_name=operation_name,
234
+ api_reference_link=api_reference_link,
235
+ required_arguments=required_arguments)
236
+
237
+ def create_occ_demand_signal(self, create_occ_demand_signal_details, **kwargs):
238
+ """
239
+ Creates a OccDemandSignal.
240
+
241
+
242
+ :param oci.demand_signal.models.CreateOccDemandSignalDetails create_occ_demand_signal_details: (required)
243
+ Details for the new OccDemandSignal.
244
+
245
+ :param str opc_retry_token: (optional)
246
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
247
+ server error without risk of running that same action again. Retry tokens expire after 24
248
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
249
+ has been deleted and removed from the system, then a retry of the original creation request
250
+ might be rejected.
251
+
252
+ :param str opc_request_id: (optional)
253
+ Unique Oracle-assigned identifier for the request. If you need to contact
254
+ Oracle about a particular request, please provide the request ID.
255
+ The only valid characters for request IDs are letters, numbers,
256
+ underscore, and dash.
257
+
258
+ :param obj retry_strategy: (optional)
259
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
260
+
261
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
262
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
263
+
264
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
265
+
266
+ :param bool allow_control_chars: (optional)
267
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
268
+ By default, the response will not allow control characters in strings
269
+
270
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.demand_signal.models.OccDemandSignal`
271
+ :rtype: :class:`~oci.response.Response`
272
+
273
+ :example:
274
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/create_occ_demand_signal.py.html>`__ to see an example of how to use create_occ_demand_signal API.
275
+ """
276
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
277
+ required_arguments = []
278
+ resource_path = "/occDemandSignals"
279
+ method = "POST"
280
+ operation_name = "create_occ_demand_signal"
281
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/CreateOccDemandSignal"
282
+
283
+ # Don't accept unknown kwargs
284
+ expected_kwargs = [
285
+ "allow_control_chars",
286
+ "retry_strategy",
287
+ "opc_retry_token",
288
+ "opc_request_id"
289
+ ]
290
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
291
+ if extra_kwargs:
292
+ raise ValueError(
293
+ f"create_occ_demand_signal got unknown kwargs: {extra_kwargs!r}")
294
+
295
+ header_params = {
296
+ "accept": "application/json",
297
+ "content-type": "application/json",
298
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
299
+ "opc-request-id": kwargs.get("opc_request_id", missing)
300
+ }
301
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
302
+
303
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
304
+ operation_retry_strategy=kwargs.get('retry_strategy'),
305
+ client_retry_strategy=self.retry_strategy
306
+ )
307
+ if retry_strategy is None:
308
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
309
+
310
+ if retry_strategy:
311
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
312
+ self.base_client.add_opc_retry_token_if_needed(header_params)
313
+ self.base_client.add_opc_client_retries_header(header_params)
314
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
315
+ return retry_strategy.make_retrying_call(
316
+ self.base_client.call_api,
317
+ resource_path=resource_path,
318
+ method=method,
319
+ header_params=header_params,
320
+ body=create_occ_demand_signal_details,
321
+ response_type="OccDemandSignal",
322
+ allow_control_chars=kwargs.get('allow_control_chars'),
323
+ operation_name=operation_name,
324
+ api_reference_link=api_reference_link,
325
+ required_arguments=required_arguments)
326
+ else:
327
+ return self.base_client.call_api(
328
+ resource_path=resource_path,
329
+ method=method,
330
+ header_params=header_params,
331
+ body=create_occ_demand_signal_details,
332
+ response_type="OccDemandSignal",
333
+ allow_control_chars=kwargs.get('allow_control_chars'),
334
+ operation_name=operation_name,
335
+ api_reference_link=api_reference_link,
336
+ required_arguments=required_arguments)
337
+
338
+ def delete_occ_demand_signal(self, occ_demand_signal_id, **kwargs):
339
+ """
340
+ Deletes a OccDemandSignal.
341
+
342
+
343
+ :param str occ_demand_signal_id: (required)
344
+ The `OCID`__ of the OccDemandSignal.
345
+
346
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
347
+
348
+ :param str if_match: (optional)
349
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
350
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
351
+ that resource. The resource will be updated or deleted only if the etag you provide
352
+ matches the resource's current etag value.
353
+
354
+ :param str opc_request_id: (optional)
355
+ Unique Oracle-assigned identifier for the request. If you need to contact
356
+ Oracle about a particular request, please provide the request ID.
357
+ The only valid characters for request IDs are letters, numbers,
358
+ underscore, and dash.
359
+
360
+ :param obj retry_strategy: (optional)
361
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
362
+
363
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
364
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
365
+
366
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
367
+
368
+ :param bool allow_control_chars: (optional)
369
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
370
+ By default, the response will not allow control characters in strings
371
+
372
+ :return: A :class:`~oci.response.Response` object with data of type None
373
+ :rtype: :class:`~oci.response.Response`
374
+
375
+ :example:
376
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/delete_occ_demand_signal.py.html>`__ to see an example of how to use delete_occ_demand_signal API.
377
+ """
378
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
379
+ required_arguments = ['occDemandSignalId']
380
+ resource_path = "/occDemandSignals/{occDemandSignalId}"
381
+ method = "DELETE"
382
+ operation_name = "delete_occ_demand_signal"
383
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/DeleteOccDemandSignal"
384
+
385
+ # Don't accept unknown kwargs
386
+ expected_kwargs = [
387
+ "allow_control_chars",
388
+ "retry_strategy",
389
+ "if_match",
390
+ "opc_request_id"
391
+ ]
392
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
393
+ if extra_kwargs:
394
+ raise ValueError(
395
+ f"delete_occ_demand_signal got unknown kwargs: {extra_kwargs!r}")
396
+
397
+ path_params = {
398
+ "occDemandSignalId": occ_demand_signal_id
399
+ }
400
+
401
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
402
+
403
+ for (k, v) in six.iteritems(path_params):
404
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
405
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
406
+
407
+ header_params = {
408
+ "accept": "application/json",
409
+ "content-type": "application/json",
410
+ "if-match": kwargs.get("if_match", missing),
411
+ "opc-request-id": kwargs.get("opc_request_id", missing)
412
+ }
413
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
414
+
415
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
416
+ operation_retry_strategy=kwargs.get('retry_strategy'),
417
+ client_retry_strategy=self.retry_strategy
418
+ )
419
+ if retry_strategy is None:
420
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
421
+
422
+ if retry_strategy:
423
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
424
+ self.base_client.add_opc_client_retries_header(header_params)
425
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
426
+ return retry_strategy.make_retrying_call(
427
+ self.base_client.call_api,
428
+ resource_path=resource_path,
429
+ method=method,
430
+ path_params=path_params,
431
+ header_params=header_params,
432
+ allow_control_chars=kwargs.get('allow_control_chars'),
433
+ operation_name=operation_name,
434
+ api_reference_link=api_reference_link,
435
+ required_arguments=required_arguments)
436
+ else:
437
+ return self.base_client.call_api(
438
+ resource_path=resource_path,
439
+ method=method,
440
+ path_params=path_params,
441
+ header_params=header_params,
442
+ allow_control_chars=kwargs.get('allow_control_chars'),
443
+ operation_name=operation_name,
444
+ api_reference_link=api_reference_link,
445
+ required_arguments=required_arguments)
446
+
447
+ def get_occ_demand_signal(self, occ_demand_signal_id, **kwargs):
448
+ """
449
+ Gets information about a OccDemandSignal.
450
+
451
+
452
+ :param str occ_demand_signal_id: (required)
453
+ The `OCID`__ of the OccDemandSignal.
454
+
455
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
456
+
457
+ :param str opc_request_id: (optional)
458
+ Unique Oracle-assigned identifier for the request. If you need to contact
459
+ Oracle about a particular request, please provide the request ID.
460
+ The only valid characters for request IDs are letters, numbers,
461
+ underscore, and dash.
462
+
463
+ :param obj retry_strategy: (optional)
464
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
465
+
466
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
467
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
468
+
469
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
470
+
471
+ :param bool allow_control_chars: (optional)
472
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
473
+ By default, the response will not allow control characters in strings
474
+
475
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.demand_signal.models.OccDemandSignal`
476
+ :rtype: :class:`~oci.response.Response`
477
+
478
+ :example:
479
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/get_occ_demand_signal.py.html>`__ to see an example of how to use get_occ_demand_signal API.
480
+ """
481
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
482
+ required_arguments = ['occDemandSignalId']
483
+ resource_path = "/occDemandSignals/{occDemandSignalId}"
484
+ method = "GET"
485
+ operation_name = "get_occ_demand_signal"
486
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/GetOccDemandSignal"
487
+
488
+ # Don't accept unknown kwargs
489
+ expected_kwargs = [
490
+ "allow_control_chars",
491
+ "retry_strategy",
492
+ "opc_request_id"
493
+ ]
494
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
495
+ if extra_kwargs:
496
+ raise ValueError(
497
+ f"get_occ_demand_signal got unknown kwargs: {extra_kwargs!r}")
498
+
499
+ path_params = {
500
+ "occDemandSignalId": occ_demand_signal_id
501
+ }
502
+
503
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
504
+
505
+ for (k, v) in six.iteritems(path_params):
506
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
507
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
508
+
509
+ header_params = {
510
+ "accept": "application/json",
511
+ "content-type": "application/json",
512
+ "opc-request-id": kwargs.get("opc_request_id", missing)
513
+ }
514
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
515
+
516
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
517
+ operation_retry_strategy=kwargs.get('retry_strategy'),
518
+ client_retry_strategy=self.retry_strategy
519
+ )
520
+ if retry_strategy is None:
521
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
522
+
523
+ if retry_strategy:
524
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
525
+ self.base_client.add_opc_client_retries_header(header_params)
526
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
527
+ return retry_strategy.make_retrying_call(
528
+ self.base_client.call_api,
529
+ resource_path=resource_path,
530
+ method=method,
531
+ path_params=path_params,
532
+ header_params=header_params,
533
+ response_type="OccDemandSignal",
534
+ allow_control_chars=kwargs.get('allow_control_chars'),
535
+ operation_name=operation_name,
536
+ api_reference_link=api_reference_link,
537
+ required_arguments=required_arguments)
538
+ else:
539
+ return self.base_client.call_api(
540
+ resource_path=resource_path,
541
+ method=method,
542
+ path_params=path_params,
543
+ header_params=header_params,
544
+ response_type="OccDemandSignal",
545
+ allow_control_chars=kwargs.get('allow_control_chars'),
546
+ operation_name=operation_name,
547
+ api_reference_link=api_reference_link,
548
+ required_arguments=required_arguments)
549
+
550
+ def list_occ_demand_signals(self, **kwargs):
551
+ """
552
+ Gets a list of OccDemandSignals.
553
+
554
+
555
+ :param str compartment_id: (optional)
556
+ The `OCID`__ of the compartment in which to list resources.
557
+
558
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
559
+
560
+ :param str lifecycle_state: (optional)
561
+ A filter to return only resources that match the given lifecycle state. The
562
+ state value is case-insensitive.
563
+
564
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
565
+
566
+ :param str display_name: (optional)
567
+ A filter to return only resources that match the given display name exactly.
568
+
569
+ :param str id: (optional)
570
+ The `OCID`__ of the OccDemandSignal.
571
+
572
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
573
+
574
+ :param int limit: (optional)
575
+ For list pagination. The maximum number of results per page, or items to return in a
576
+ paginated \"List\" call. For important details about how pagination works, see
577
+ `List Pagination`__.
578
+
579
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
580
+
581
+ :param str page: (optional)
582
+ For list pagination. The value of the opc-next-page response header from the previous
583
+ \"List\" call. For important details about how pagination works, see
584
+ `List Pagination`__.
585
+
586
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
587
+
588
+ :param str sort_order: (optional)
589
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
590
+
591
+ Allowed values are: "ASC", "DESC"
592
+
593
+ :param str sort_by: (optional)
594
+ The field to sort by. You can provide only one sort order. Default order for `timeCreated`
595
+ is descending. Default order for `displayName` is ascending.
596
+
597
+ Allowed values are: "timeCreated", "displayName"
598
+
599
+ :param str opc_request_id: (optional)
600
+ Unique Oracle-assigned identifier for the request. If you need to contact
601
+ Oracle about a particular request, please provide the request ID.
602
+ The only valid characters for request IDs are letters, numbers,
603
+ underscore, and dash.
604
+
605
+ :param obj retry_strategy: (optional)
606
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
607
+
608
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
609
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
610
+
611
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
612
+
613
+ :param bool allow_control_chars: (optional)
614
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
615
+ By default, the response will not allow control characters in strings
616
+
617
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.demand_signal.models.OccDemandSignalCollection`
618
+ :rtype: :class:`~oci.response.Response`
619
+
620
+ :example:
621
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/list_occ_demand_signals.py.html>`__ to see an example of how to use list_occ_demand_signals API.
622
+ """
623
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
624
+ required_arguments = []
625
+ resource_path = "/occDemandSignals"
626
+ method = "GET"
627
+ operation_name = "list_occ_demand_signals"
628
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignalCollection/ListOccDemandSignals"
629
+
630
+ # Don't accept unknown kwargs
631
+ expected_kwargs = [
632
+ "allow_control_chars",
633
+ "retry_strategy",
634
+ "compartment_id",
635
+ "lifecycle_state",
636
+ "display_name",
637
+ "id",
638
+ "limit",
639
+ "page",
640
+ "sort_order",
641
+ "sort_by",
642
+ "opc_request_id"
643
+ ]
644
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
645
+ if extra_kwargs:
646
+ raise ValueError(
647
+ f"list_occ_demand_signals got unknown kwargs: {extra_kwargs!r}")
648
+
649
+ if 'lifecycle_state' in kwargs:
650
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
651
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
652
+ raise ValueError(
653
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
654
+ )
655
+
656
+ if 'sort_order' in kwargs:
657
+ sort_order_allowed_values = ["ASC", "DESC"]
658
+ if kwargs['sort_order'] not in sort_order_allowed_values:
659
+ raise ValueError(
660
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
661
+ )
662
+
663
+ if 'sort_by' in kwargs:
664
+ sort_by_allowed_values = ["timeCreated", "displayName"]
665
+ if kwargs['sort_by'] not in sort_by_allowed_values:
666
+ raise ValueError(
667
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
668
+ )
669
+
670
+ query_params = {
671
+ "compartmentId": kwargs.get("compartment_id", missing),
672
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
673
+ "displayName": kwargs.get("display_name", missing),
674
+ "id": kwargs.get("id", missing),
675
+ "limit": kwargs.get("limit", missing),
676
+ "page": kwargs.get("page", missing),
677
+ "sortOrder": kwargs.get("sort_order", missing),
678
+ "sortBy": kwargs.get("sort_by", missing)
679
+ }
680
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
681
+
682
+ header_params = {
683
+ "accept": "application/json",
684
+ "content-type": "application/json",
685
+ "opc-request-id": kwargs.get("opc_request_id", missing)
686
+ }
687
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
688
+
689
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
690
+ operation_retry_strategy=kwargs.get('retry_strategy'),
691
+ client_retry_strategy=self.retry_strategy
692
+ )
693
+ if retry_strategy is None:
694
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
695
+
696
+ if retry_strategy:
697
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
698
+ self.base_client.add_opc_client_retries_header(header_params)
699
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
700
+ return retry_strategy.make_retrying_call(
701
+ self.base_client.call_api,
702
+ resource_path=resource_path,
703
+ method=method,
704
+ query_params=query_params,
705
+ header_params=header_params,
706
+ response_type="OccDemandSignalCollection",
707
+ allow_control_chars=kwargs.get('allow_control_chars'),
708
+ operation_name=operation_name,
709
+ api_reference_link=api_reference_link,
710
+ required_arguments=required_arguments)
711
+ else:
712
+ return self.base_client.call_api(
713
+ resource_path=resource_path,
714
+ method=method,
715
+ query_params=query_params,
716
+ header_params=header_params,
717
+ response_type="OccDemandSignalCollection",
718
+ allow_control_chars=kwargs.get('allow_control_chars'),
719
+ operation_name=operation_name,
720
+ api_reference_link=api_reference_link,
721
+ required_arguments=required_arguments)
722
+
723
+ def patch_occ_demand_signal(self, occ_demand_signal_id, patch_occ_demand_signal_details, **kwargs):
724
+ """
725
+ Updates the data of an OccDemandSignal.
726
+
727
+
728
+ :param str occ_demand_signal_id: (required)
729
+ The `OCID`__ of the OccDemandSignal.
730
+
731
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
732
+
733
+ :param oci.demand_signal.models.PatchOccDemandSignalDetails patch_occ_demand_signal_details: (required)
734
+ The information to be updated.
735
+
736
+ :param str if_match: (optional)
737
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
738
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
739
+ that resource. The resource will be updated or deleted only if the etag you provide
740
+ matches the resource's current etag value.
741
+
742
+ :param str opc_request_id: (optional)
743
+ Unique Oracle-assigned identifier for the request. If you need to contact
744
+ Oracle about a particular request, please provide the request ID.
745
+ The only valid characters for request IDs are letters, numbers,
746
+ underscore, and dash.
747
+
748
+ :param obj retry_strategy: (optional)
749
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
750
+
751
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
752
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
753
+
754
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
755
+
756
+ :param bool allow_control_chars: (optional)
757
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
758
+ By default, the response will not allow control characters in strings
759
+
760
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.demand_signal.models.OccDemandSignal`
761
+ :rtype: :class:`~oci.response.Response`
762
+
763
+ :example:
764
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/patch_occ_demand_signal.py.html>`__ to see an example of how to use patch_occ_demand_signal API.
765
+ """
766
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
767
+ required_arguments = ['occDemandSignalId']
768
+ resource_path = "/occDemandSignals/{occDemandSignalId}"
769
+ method = "PATCH"
770
+ operation_name = "patch_occ_demand_signal"
771
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/PatchOccDemandSignal"
772
+
773
+ # Don't accept unknown kwargs
774
+ expected_kwargs = [
775
+ "allow_control_chars",
776
+ "retry_strategy",
777
+ "if_match",
778
+ "opc_request_id"
779
+ ]
780
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
781
+ if extra_kwargs:
782
+ raise ValueError(
783
+ f"patch_occ_demand_signal got unknown kwargs: {extra_kwargs!r}")
784
+
785
+ path_params = {
786
+ "occDemandSignalId": occ_demand_signal_id
787
+ }
788
+
789
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
790
+
791
+ for (k, v) in six.iteritems(path_params):
792
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
793
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
794
+
795
+ header_params = {
796
+ "accept": "application/json",
797
+ "content-type": "application/json",
798
+ "if-match": kwargs.get("if_match", missing),
799
+ "opc-request-id": kwargs.get("opc_request_id", missing)
800
+ }
801
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
802
+
803
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
804
+ operation_retry_strategy=kwargs.get('retry_strategy'),
805
+ client_retry_strategy=self.retry_strategy
806
+ )
807
+ if retry_strategy is None:
808
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
809
+
810
+ if retry_strategy:
811
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
812
+ self.base_client.add_opc_client_retries_header(header_params)
813
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
814
+ return retry_strategy.make_retrying_call(
815
+ self.base_client.call_api,
816
+ resource_path=resource_path,
817
+ method=method,
818
+ path_params=path_params,
819
+ header_params=header_params,
820
+ body=patch_occ_demand_signal_details,
821
+ response_type="OccDemandSignal",
822
+ allow_control_chars=kwargs.get('allow_control_chars'),
823
+ operation_name=operation_name,
824
+ api_reference_link=api_reference_link,
825
+ required_arguments=required_arguments)
826
+ else:
827
+ return self.base_client.call_api(
828
+ resource_path=resource_path,
829
+ method=method,
830
+ path_params=path_params,
831
+ header_params=header_params,
832
+ body=patch_occ_demand_signal_details,
833
+ response_type="OccDemandSignal",
834
+ allow_control_chars=kwargs.get('allow_control_chars'),
835
+ operation_name=operation_name,
836
+ api_reference_link=api_reference_link,
837
+ required_arguments=required_arguments)
838
+
839
+ def update_occ_demand_signal(self, occ_demand_signal_id, update_occ_demand_signal_details, **kwargs):
840
+ """
841
+ Updates a OccDemandSignal.
842
+
843
+
844
+ :param str occ_demand_signal_id: (required)
845
+ The `OCID`__ of the OccDemandSignal.
846
+
847
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
848
+
849
+ :param oci.demand_signal.models.UpdateOccDemandSignalDetails update_occ_demand_signal_details: (required)
850
+ The information to be updated.
851
+
852
+ :param str if_match: (optional)
853
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
854
+ `if-match` parameter to the value of the etag from a previous GET or POST response for
855
+ that resource. The resource will be updated or deleted only if the etag you provide
856
+ matches the resource's current etag value.
857
+
858
+ :param str opc_request_id: (optional)
859
+ Unique Oracle-assigned identifier for the request. If you need to contact
860
+ Oracle about a particular request, please provide the request ID.
861
+ The only valid characters for request IDs are letters, numbers,
862
+ underscore, and dash.
863
+
864
+ :param obj retry_strategy: (optional)
865
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
866
+
867
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
868
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
869
+
870
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
871
+
872
+ :param bool allow_control_chars: (optional)
873
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
874
+ By default, the response will not allow control characters in strings
875
+
876
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.demand_signal.models.OccDemandSignal`
877
+ :rtype: :class:`~oci.response.Response`
878
+
879
+ :example:
880
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.128.0/demandsignal/update_occ_demand_signal.py.html>`__ to see an example of how to use update_occ_demand_signal API.
881
+ """
882
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
883
+ required_arguments = ['occDemandSignalId']
884
+ resource_path = "/occDemandSignals/{occDemandSignalId}"
885
+ method = "PUT"
886
+ operation_name = "update_occ_demand_signal"
887
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/occds/20240430/OccDemandSignal/UpdateOccDemandSignal"
888
+
889
+ # Don't accept unknown kwargs
890
+ expected_kwargs = [
891
+ "allow_control_chars",
892
+ "retry_strategy",
893
+ "if_match",
894
+ "opc_request_id"
895
+ ]
896
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
897
+ if extra_kwargs:
898
+ raise ValueError(
899
+ f"update_occ_demand_signal got unknown kwargs: {extra_kwargs!r}")
900
+
901
+ path_params = {
902
+ "occDemandSignalId": occ_demand_signal_id
903
+ }
904
+
905
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
906
+
907
+ for (k, v) in six.iteritems(path_params):
908
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
909
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
910
+
911
+ header_params = {
912
+ "accept": "application/json",
913
+ "content-type": "application/json",
914
+ "if-match": kwargs.get("if_match", missing),
915
+ "opc-request-id": kwargs.get("opc_request_id", missing)
916
+ }
917
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
918
+
919
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
920
+ operation_retry_strategy=kwargs.get('retry_strategy'),
921
+ client_retry_strategy=self.retry_strategy
922
+ )
923
+ if retry_strategy is None:
924
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
925
+
926
+ if retry_strategy:
927
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
928
+ self.base_client.add_opc_client_retries_header(header_params)
929
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
930
+ return retry_strategy.make_retrying_call(
931
+ self.base_client.call_api,
932
+ resource_path=resource_path,
933
+ method=method,
934
+ path_params=path_params,
935
+ header_params=header_params,
936
+ body=update_occ_demand_signal_details,
937
+ response_type="OccDemandSignal",
938
+ allow_control_chars=kwargs.get('allow_control_chars'),
939
+ operation_name=operation_name,
940
+ api_reference_link=api_reference_link,
941
+ required_arguments=required_arguments)
942
+ else:
943
+ return self.base_client.call_api(
944
+ resource_path=resource_path,
945
+ method=method,
946
+ path_params=path_params,
947
+ header_params=header_params,
948
+ body=update_occ_demand_signal_details,
949
+ response_type="OccDemandSignal",
950
+ allow_control_chars=kwargs.get('allow_control_chars'),
951
+ operation_name=operation_name,
952
+ api_reference_link=api_reference_link,
953
+ required_arguments=required_arguments)