oci 2.125.2__py3-none-any.whl → 2.126.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 (913) 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 +134 -43
  7. oci/ai_language/models/__init__.py +24 -0
  8. oci/ai_language/models/assertion_details.py +165 -0
  9. oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
  10. oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
  11. oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
  12. oci/ai_language/models/health_entity.py +351 -0
  13. oci/ai_language/models/health_entity_document_result.py +200 -0
  14. oci/ai_language/models/input_location.py +2 -1
  15. oci/ai_language/models/mel_concept.py +103 -0
  16. oci/ai_language/models/mel_concept_details.py +165 -0
  17. oci/ai_language/models/model_details.py +11 -3
  18. oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
  19. oci/ai_language/models/pii_entity.py +118 -7
  20. oci/ai_language/models/pii_model_details.py +91 -0
  21. oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
  22. oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
  23. oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
  24. oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
  25. oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
  26. oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
  27. oci/ai_language/models/pre_trained_summarization.py +1 -1
  28. oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
  29. oci/ai_language/models/pre_trained_universal_model.py +1 -1
  30. oci/ai_language/models/profile.py +134 -0
  31. oci/ai_language/models/relation_entity.py +196 -0
  32. oci/ai_language/models/resolved_entities.py +72 -0
  33. oci/ai_language/models/resolved_entity.py +227 -0
  34. oci/ai_language/models/text_classification_model_details.py +1 -1
  35. oci/ai_speech/ai_service_speech_client.py +10 -10
  36. oci/ai_vision/ai_service_vision_client.py +25 -25
  37. oci/analytics/analytics_client.py +23 -23
  38. oci/announcements_service/announcement_client.py +4 -4
  39. oci/announcements_service/announcement_subscription_client.py +9 -9
  40. oci/announcements_service/announcements_preferences_client.py +4 -4
  41. oci/apigateway/api_gateway_client.py +21 -21
  42. oci/apigateway/deployment_client.py +6 -6
  43. oci/apigateway/gateway_client.py +6 -6
  44. oci/apigateway/subscribers_client.py +6 -6
  45. oci/apigateway/usage_plans_client.py +6 -6
  46. oci/apigateway/work_requests_client.py +5 -5
  47. oci/apm_config/config_client.py +8 -8
  48. oci/apm_control_plane/apm_domain_client.py +14 -14
  49. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  50. oci/apm_traces/attributes_client.py +8 -8
  51. oci/apm_traces/query_client.py +2 -2
  52. oci/apm_traces/trace_client.py +4 -4
  53. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  54. oci/artifacts/artifacts_client.py +32 -32
  55. oci/audit/audit_client.py +3 -3
  56. oci/autoscaling/auto_scaling_client.py +11 -11
  57. oci/bastion/bastion_client.py +15 -15
  58. oci/bds/bds_client.py +51 -51
  59. oci/blockchain/blockchain_platform_client.py +27 -27
  60. oci/budget/budget_client.py +10 -10
  61. oci/capacity_management/capacity_management_client.py +19 -19
  62. oci/certificates/certificates_client.py +5 -5
  63. oci/certificates_management/certificates_management_client.py +32 -32
  64. oci/cims/incident_client.py +8 -8
  65. oci/cims/user_client.py +1 -1
  66. oci/cloud_bridge/common_client.py +5 -5
  67. oci/cloud_bridge/discovery_client.py +14 -14
  68. oci/cloud_bridge/inventory_client.py +16 -16
  69. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  70. oci/cloud_guard/cloud_guard_client.py +5496 -2653
  71. oci/cloud_guard/cloud_guard_client_composite_operations.py +307 -60
  72. oci/cloud_guard/models/__init__.py +74 -0
  73. oci/cloud_guard/models/absolute_time_start_policy.py +3 -3
  74. oci/cloud_guard/models/activity_problem_aggregation.py +4 -4
  75. oci/cloud_guard/models/activity_problem_aggregation_collection.py +3 -3
  76. oci/cloud_guard/models/add_compartment_details.py +1 -1
  77. oci/cloud_guard/models/adhoc_query.py +532 -0
  78. oci/cloud_guard/models/adhoc_query_collection.py +103 -0
  79. oci/cloud_guard/models/adhoc_query_details.py +103 -0
  80. oci/cloud_guard/models/adhoc_query_regional_details.py +294 -0
  81. oci/cloud_guard/models/adhoc_query_resource.py +134 -0
  82. oci/cloud_guard/models/adhoc_query_result_collection.py +72 -0
  83. oci/cloud_guard/models/adhoc_query_result_summary.py +407 -0
  84. oci/cloud_guard/models/adhoc_query_summary.py +532 -0
  85. oci/cloud_guard/models/all_targets_selected.py +1 -1
  86. oci/cloud_guard/models/attach_target_detector_recipe_details.py +5 -3
  87. oci/cloud_guard/models/attach_target_responder_recipe_details.py +5 -3
  88. oci/cloud_guard/models/candidate_responder_rule.py +7 -7
  89. oci/cloud_guard/models/change_data_source_compartment_details.py +3 -3
  90. oci/cloud_guard/models/change_detector_recipe_compartment_details.py +3 -3
  91. oci/cloud_guard/models/change_managed_list_compartment_details.py +3 -3
  92. oci/cloud_guard/models/change_responder_recipe_compartment_details.py +3 -3
  93. oci/cloud_guard/models/change_saved_query_compartment_details.py +72 -0
  94. oci/cloud_guard/models/change_security_policy_compartment_details.py +1 -1
  95. oci/cloud_guard/models/change_security_recipe_compartment_details.py +1 -1
  96. oci/cloud_guard/models/change_security_zone_compartment_details.py +1 -1
  97. oci/cloud_guard/models/composite_condition.py +5 -1
  98. oci/cloud_guard/models/condition.py +3 -3
  99. oci/cloud_guard/models/condition_group.py +3 -3
  100. oci/cloud_guard/models/condition_metadata_type.py +37 -6
  101. oci/cloud_guard/models/condition_metadata_type_collection.py +36 -5
  102. oci/cloud_guard/models/condition_metadata_type_summary.py +38 -7
  103. oci/cloud_guard/models/condition_operator.py +5 -5
  104. oci/cloud_guard/models/config_value.py +7 -7
  105. oci/cloud_guard/models/configuration.py +37 -6
  106. oci/cloud_guard/models/continuous_query_start_policy.py +3 -3
  107. oci/cloud_guard/models/create_adhoc_query_details.py +169 -0
  108. oci/cloud_guard/models/create_data_mask_rule_details.py +15 -15
  109. oci/cloud_guard/models/create_data_source_details.py +16 -12
  110. oci/cloud_guard/models/create_detector_recipe_details.py +16 -12
  111. oci/cloud_guard/models/create_detector_recipe_detector_rule_details.py +1 -1
  112. oci/cloud_guard/models/create_detector_rule_details.py +17 -17
  113. oci/cloud_guard/models/create_managed_list_details.py +11 -11
  114. oci/cloud_guard/models/create_responder_recipe_details.py +7 -7
  115. oci/cloud_guard/models/create_saved_query_details.py +235 -0
  116. oci/cloud_guard/models/create_security_policy_details.py +11 -11
  117. oci/cloud_guard/models/create_security_recipe_details.py +11 -7
  118. oci/cloud_guard/models/create_security_zone_details.py +5 -5
  119. oci/cloud_guard/models/create_target_details.py +13 -13
  120. oci/cloud_guard/models/create_target_detector_recipe_details.py +5 -5
  121. oci/cloud_guard/models/create_target_responder_recipe_details.py +6 -5
  122. oci/cloud_guard/models/create_wlp_agent_details.py +238 -0
  123. oci/cloud_guard/models/data_mask_rule.py +50 -19
  124. oci/cloud_guard/models/data_mask_rule_collection.py +36 -5
  125. oci/cloud_guard/models/data_mask_rule_summary.py +19 -19
  126. oci/cloud_guard/models/data_source.py +51 -16
  127. oci/cloud_guard/models/data_source_collection.py +36 -5
  128. oci/cloud_guard/models/data_source_details.py +13 -5
  129. oci/cloud_guard/models/data_source_event_collection.py +36 -5
  130. oci/cloud_guard/models/data_source_event_info.py +12 -6
  131. oci/cloud_guard/models/data_source_event_summary.py +7 -7
  132. oci/cloud_guard/models/data_source_mapping_info.py +5 -5
  133. oci/cloud_guard/models/data_source_summary.py +20 -16
  134. oci/cloud_guard/models/data_source_summary_details.py +14 -6
  135. oci/cloud_guard/models/detector.py +6 -6
  136. oci/cloud_guard/models/detector_collection.py +3 -3
  137. oci/cloud_guard/models/detector_configuration.py +73 -11
  138. oci/cloud_guard/models/detector_details.py +139 -15
  139. oci/cloud_guard/models/detector_recipe.py +81 -22
  140. oci/cloud_guard/models/detector_recipe_collection.py +36 -5
  141. oci/cloud_guard/models/detector_recipe_detector_rule.py +65 -30
  142. oci/cloud_guard/models/detector_recipe_detector_rule_collection.py +36 -5
  143. oci/cloud_guard/models/detector_recipe_detector_rule_summary.py +32 -28
  144. oci/cloud_guard/models/detector_recipe_summary.py +79 -20
  145. oci/cloud_guard/models/detector_rule.py +60 -25
  146. oci/cloud_guard/models/detector_rule_collection.py +3 -3
  147. oci/cloud_guard/models/detector_rule_summary.py +30 -26
  148. oci/cloud_guard/models/detector_summary.py +40 -9
  149. oci/cloud_guard/models/entities_mapping.py +5 -5
  150. oci/cloud_guard/models/entity_details.py +1 -1
  151. oci/cloud_guard/models/execute_responder_execution_details.py +3 -3
  152. oci/cloud_guard/models/geographical_location.py +5 -5
  153. oci/cloud_guard/models/impacted_resource_collection.py +36 -5
  154. oci/cloud_guard/models/impacted_resource_summary.py +17 -17
  155. oci/cloud_guard/models/insight_type_logging_query_details.py +1 -1
  156. oci/cloud_guard/models/instance_security_service_configuration.py +99 -0
  157. oci/cloud_guard/models/logging_event_info.py +18 -2
  158. oci/cloud_guard/models/logging_query_data_source_details.py +14 -14
  159. oci/cloud_guard/models/logging_query_data_source_summary_details.py +8 -8
  160. oci/cloud_guard/models/logging_query_details.py +3 -3
  161. oci/cloud_guard/models/managed_list.py +25 -25
  162. oci/cloud_guard/models/managed_list_collection.py +36 -5
  163. oci/cloud_guard/models/managed_list_summary.py +25 -25
  164. oci/cloud_guard/models/managed_list_type_collection.py +36 -5
  165. oci/cloud_guard/models/managed_list_type_summary.py +39 -8
  166. oci/cloud_guard/models/no_delay_start_policy.py +1 -1
  167. oci/cloud_guard/models/operator_summary.py +13 -13
  168. oci/cloud_guard/models/package_detail.py +227 -0
  169. oci/cloud_guard/models/policy_collection.py +34 -3
  170. oci/cloud_guard/models/political_location.py +7 -7
  171. oci/cloud_guard/models/problem.py +79 -44
  172. oci/cloud_guard/models/problem_aggregation.py +4 -4
  173. oci/cloud_guard/models/problem_aggregation_collection.py +3 -3
  174. oci/cloud_guard/models/problem_collection.py +36 -5
  175. oci/cloud_guard/models/problem_endpoint_collection.py +36 -5
  176. oci/cloud_guard/models/problem_endpoint_summary.py +18 -18
  177. oci/cloud_guard/models/problem_entity_collection.py +35 -4
  178. oci/cloud_guard/models/problem_entity_summary.py +7 -7
  179. oci/cloud_guard/models/problem_history_collection.py +36 -5
  180. oci/cloud_guard/models/problem_history_summary.py +48 -17
  181. oci/cloud_guard/models/problem_summary.py +69 -34
  182. oci/cloud_guard/models/problem_trend_aggregation.py +6 -6
  183. oci/cloud_guard/models/problem_trend_aggregation_collection.py +3 -3
  184. oci/cloud_guard/models/property_tuple.py +103 -0
  185. oci/cloud_guard/models/recommendation_summary.py +23 -23
  186. oci/cloud_guard/models/recommendation_summary_collection.py +36 -5
  187. oci/cloud_guard/models/region_status_detail.py +5 -5
  188. oci/cloud_guard/models/remove_compartment_details.py +1 -1
  189. oci/cloud_guard/models/request_summarized_trend_resource_risk_scores_details.py +5 -5
  190. oci/cloud_guard/models/resource.py +616 -0
  191. oci/cloud_guard/models/resource_additional_details.py +72 -0
  192. oci/cloud_guard/models/resource_collection.py +72 -0
  193. oci/cloud_guard/models/resource_lock.py +185 -0
  194. oci/cloud_guard/models/resource_port_collection.py +72 -0
  195. oci/cloud_guard/models/resource_port_summary.py +247 -0
  196. oci/cloud_guard/models/resource_profile.py +60 -29
  197. oci/cloud_guard/models/resource_profile_collection.py +36 -5
  198. oci/cloud_guard/models/resource_profile_endpoint_collection.py +3 -3
  199. oci/cloud_guard/models/resource_profile_endpoint_summary.py +29 -29
  200. oci/cloud_guard/models/resource_profile_impacted_resource_collection.py +35 -4
  201. oci/cloud_guard/models/resource_profile_impacted_resource_summary.py +19 -19
  202. oci/cloud_guard/models/resource_profile_risk_score_aggregation_summary.py +5 -5
  203. oci/cloud_guard/models/resource_profile_risk_score_aggregation_summary_collection.py +3 -3
  204. oci/cloud_guard/models/resource_profile_summary.py +15 -15
  205. oci/cloud_guard/models/resource_risk_score_aggregation.py +6 -6
  206. oci/cloud_guard/models/resource_risk_score_aggregation_collection.py +9 -9
  207. oci/cloud_guard/models/resource_summary.py +527 -0
  208. oci/cloud_guard/models/resource_type_collection.py +36 -5
  209. oci/cloud_guard/models/resource_type_summary.py +38 -7
  210. oci/cloud_guard/models/resource_vulnerability.py +496 -0
  211. oci/cloud_guard/models/resource_vulnerability_collection.py +72 -0
  212. oci/cloud_guard/models/resource_vulnerability_summary.py +279 -0
  213. oci/cloud_guard/models/responder_activity_collection.py +3 -3
  214. oci/cloud_guard/models/responder_activity_summary.py +19 -19
  215. oci/cloud_guard/models/responder_configuration.py +7 -7
  216. oci/cloud_guard/models/responder_execution.py +58 -27
  217. oci/cloud_guard/models/responder_execution_aggregation.py +2 -2
  218. oci/cloud_guard/models/responder_execution_aggregation_collection.py +3 -3
  219. oci/cloud_guard/models/responder_execution_collection.py +37 -5
  220. oci/cloud_guard/models/responder_execution_summary.py +17 -17
  221. oci/cloud_guard/models/responder_execution_trend_aggregation.py +6 -6
  222. oci/cloud_guard/models/responder_execution_trend_aggregation_collection.py +3 -3
  223. oci/cloud_guard/models/responder_recipe.py +34 -19
  224. oci/cloud_guard/models/responder_recipe_collection.py +36 -5
  225. oci/cloud_guard/models/responder_recipe_responder_rule.py +70 -21
  226. oci/cloud_guard/models/responder_recipe_responder_rule_collection.py +3 -3
  227. oci/cloud_guard/models/responder_recipe_responder_rule_summary.py +19 -19
  228. oci/cloud_guard/models/responder_recipe_summary.py +19 -19
  229. oci/cloud_guard/models/responder_rule.py +58 -19
  230. oci/cloud_guard/models/responder_rule_collection.py +36 -5
  231. oci/cloud_guard/models/responder_rule_details.py +7 -7
  232. oci/cloud_guard/models/responder_rule_execution_details.py +3 -3
  233. oci/cloud_guard/models/responder_rule_summary.py +17 -17
  234. oci/cloud_guard/models/risk_score_aggregation.py +2 -2
  235. oci/cloud_guard/models/risk_score_aggregation_collection.py +3 -3
  236. oci/cloud_guard/models/rule_summary.py +7 -7
  237. oci/cloud_guard/models/saved_query.py +438 -0
  238. oci/cloud_guard/models/saved_query_collection.py +103 -0
  239. oci/cloud_guard/models/saved_query_summary.py +500 -0
  240. oci/cloud_guard/models/scheduled_query_data_source_obj_details.py +175 -0
  241. oci/cloud_guard/models/scheduled_query_data_source_summary_obj_details.py +175 -0
  242. oci/cloud_guard/models/scheduled_query_scope_detail.py +134 -0
  243. oci/cloud_guard/models/security_policy.py +45 -11
  244. oci/cloud_guard/models/security_policy_collection.py +36 -5
  245. oci/cloud_guard/models/security_policy_summary.py +16 -15
  246. oci/cloud_guard/models/security_recipe.py +13 -11
  247. oci/cloud_guard/models/security_recipe_collection.py +150 -5
  248. oci/cloud_guard/models/security_recipe_summary.py +9 -9
  249. oci/cloud_guard/models/security_score_aggregation.py +6 -6
  250. oci/cloud_guard/models/security_score_aggregation_collection.py +3 -3
  251. oci/cloud_guard/models/security_score_trend_aggregation.py +4 -4
  252. oci/cloud_guard/models/security_score_trend_aggregation_collection.py +3 -3
  253. oci/cloud_guard/models/security_zone.py +11 -9
  254. oci/cloud_guard/models/security_zone_collection.py +36 -5
  255. oci/cloud_guard/models/security_zone_summary.py +10 -9
  256. oci/cloud_guard/models/security_zone_target_details.py +7 -7
  257. oci/cloud_guard/models/service_configuration.py +101 -0
  258. oci/cloud_guard/models/service_type_summary.py +5 -5
  259. oci/cloud_guard/models/sighting.py +55 -24
  260. oci/cloud_guard/models/sighting_collection.py +36 -5
  261. oci/cloud_guard/models/sighting_endpoint_collection.py +3 -3
  262. oci/cloud_guard/models/sighting_endpoint_summary.py +25 -25
  263. oci/cloud_guard/models/sighting_impacted_resource_collection.py +36 -5
  264. oci/cloud_guard/models/sighting_impacted_resource_summary.py +13 -13
  265. oci/cloud_guard/models/sighting_summary.py +27 -27
  266. oci/cloud_guard/models/sighting_type.py +11 -11
  267. oci/cloud_guard/models/simple_condition.py +9 -9
  268. oci/cloud_guard/models/skip_bulk_responder_execution_details.py +3 -3
  269. oci/cloud_guard/models/tactic_collection.py +36 -5
  270. oci/cloud_guard/models/tactic_summary.py +3 -3
  271. oci/cloud_guard/models/target.py +23 -21
  272. oci/cloud_guard/models/target_collection.py +36 -5
  273. oci/cloud_guard/models/target_details.py +2 -2
  274. oci/cloud_guard/models/target_detector_details.py +13 -13
  275. oci/cloud_guard/models/target_detector_recipe.py +124 -22
  276. oci/cloud_guard/models/target_detector_recipe_collection.py +36 -5
  277. oci/cloud_guard/models/target_detector_recipe_detector_rule.py +92 -30
  278. oci/cloud_guard/models/target_detector_recipe_detector_rule_collection.py +36 -5
  279. oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py +63 -28
  280. oci/cloud_guard/models/target_detector_recipe_summary.py +110 -20
  281. oci/cloud_guard/models/target_ids_selected.py +3 -3
  282. oci/cloud_guard/models/target_resource_types_selected.py +3 -3
  283. oci/cloud_guard/models/target_responder_recipe.py +63 -19
  284. oci/cloud_guard/models/target_responder_recipe_collection.py +36 -5
  285. oci/cloud_guard/models/target_responder_recipe_responder_rule.py +32 -19
  286. oci/cloud_guard/models/target_responder_recipe_responder_rule_collection.py +3 -3
  287. oci/cloud_guard/models/target_responder_recipe_responder_rule_summary.py +19 -19
  288. oci/cloud_guard/models/target_responder_recipe_summary.py +50 -19
  289. oci/cloud_guard/models/target_selected.py +3 -3
  290. oci/cloud_guard/models/target_summary.py +15 -15
  291. oci/cloud_guard/models/technique_collection.py +36 -5
  292. oci/cloud_guard/models/technique_summary.py +3 -3
  293. oci/cloud_guard/models/trigger_responder_details.py +5 -5
  294. oci/cloud_guard/models/update_bulk_problem_status_details.py +5 -5
  295. oci/cloud_guard/models/update_configuration_details.py +36 -5
  296. oci/cloud_guard/models/update_data_mask_rule_details.py +11 -11
  297. oci/cloud_guard/models/update_data_source_details.py +5 -5
  298. oci/cloud_guard/models/update_detector_recipe_details.py +7 -5
  299. oci/cloud_guard/models/update_detector_recipe_detector_rule.py +3 -3
  300. oci/cloud_guard/models/update_detector_recipe_detector_rule_details.py +1 -1
  301. oci/cloud_guard/models/update_detector_rule_details.py +17 -17
  302. oci/cloud_guard/models/update_managed_list_details.py +3 -3
  303. oci/cloud_guard/models/update_problem_status_details.py +3 -3
  304. oci/cloud_guard/models/update_responder_recipe_details.py +7 -7
  305. oci/cloud_guard/models/update_responder_recipe_responder_rule.py +3 -3
  306. oci/cloud_guard/models/update_responder_recipe_responder_rule_details.py +1 -1
  307. oci/cloud_guard/models/update_responder_rule_details.py +3 -3
  308. oci/cloud_guard/models/update_saved_query_details.py +204 -0
  309. oci/cloud_guard/models/update_security_policy_details.py +3 -3
  310. oci/cloud_guard/models/update_security_recipe_details.py +5 -5
  311. oci/cloud_guard/models/update_security_zone_details.py +5 -5
  312. oci/cloud_guard/models/update_target_details.py +7 -7
  313. oci/cloud_guard/models/update_target_detector_recipe.py +5 -5
  314. oci/cloud_guard/models/update_target_detector_recipe_details.py +7 -7
  315. oci/cloud_guard/models/update_target_detector_recipe_detector_rule_details.py +1 -1
  316. oci/cloud_guard/models/update_target_detector_rule_details.py +1 -1
  317. oci/cloud_guard/models/update_target_recipe_detector_rule_details.py +3 -3
  318. oci/cloud_guard/models/update_target_recipe_responder_rule_details.py +3 -3
  319. oci/cloud_guard/models/update_target_responder_recipe.py +5 -5
  320. oci/cloud_guard/models/update_target_responder_recipe_details.py +7 -3
  321. oci/cloud_guard/models/update_target_responder_recipe_responder_rule_details.py +1 -1
  322. oci/cloud_guard/models/update_target_responder_rule_details.py +8 -5
  323. oci/cloud_guard/models/update_wlp_agent_details.py +143 -0
  324. oci/cloud_guard/models/wlp_agent.py +469 -0
  325. oci/cloud_guard/models/wlp_agent_collection.py +103 -0
  326. oci/cloud_guard/models/wlp_agent_summary.py +406 -0
  327. oci/cloud_guard/models/work_request.py +54 -23
  328. oci/cloud_guard/models/work_request_error.py +8 -7
  329. oci/cloud_guard/models/work_request_error_collection.py +5 -3
  330. oci/cloud_guard/models/work_request_log_entry.py +4 -4
  331. oci/cloud_guard/models/work_request_log_entry_collection.py +38 -5
  332. oci/cloud_guard/models/work_request_resource.py +7 -7
  333. oci/cloud_guard/models/work_request_summary.py +15 -15
  334. oci/cloud_guard/models/work_request_summary_collection.py +36 -5
  335. oci/cloud_migrations/migration_client.py +43 -43
  336. oci/{application_migration → cluster_placement_groups}/__init__.py +4 -4
  337. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +1705 -0
  338. oci/cluster_placement_groups/cluster_placement_groups_cp_client_composite_operations.py +238 -0
  339. oci/cluster_placement_groups/models/__init__.py +46 -0
  340. oci/cluster_placement_groups/models/capabilities_collection.py +72 -0
  341. oci/cluster_placement_groups/models/capability_details.py +103 -0
  342. oci/{application_migration/models/change_compartment_details.py → cluster_placement_groups/models/change_cluster_placement_group_compartment_details.py} +11 -11
  343. oci/cluster_placement_groups/models/cluster_placement_group.py +568 -0
  344. oci/cluster_placement_groups/models/cluster_placement_group_collection.py +72 -0
  345. oci/cluster_placement_groups/models/cluster_placement_group_summary.py +447 -0
  346. oci/cluster_placement_groups/models/create_cluster_placement_group_details.py +332 -0
  347. oci/cluster_placement_groups/models/placement_instruction_details.py +115 -0
  348. oci/cluster_placement_groups/models/update_cluster_placement_group_details.py +138 -0
  349. oci/{application_migration → cluster_placement_groups}/models/work_request.py +100 -67
  350. oci/{application_migration → cluster_placement_groups}/models/work_request_error.py +14 -8
  351. oci/cluster_placement_groups/models/work_request_error_collection.py +72 -0
  352. oci/{application_migration → cluster_placement_groups}/models/work_request_log_entry.py +10 -6
  353. oci/cluster_placement_groups/models/work_request_log_entry_collection.py +72 -0
  354. oci/{application_migration → cluster_placement_groups}/models/work_request_resource.py +87 -50
  355. oci/{application_migration → cluster_placement_groups}/models/work_request_summary.py +128 -70
  356. oci/cluster_placement_groups/models/work_request_summary_collection.py +72 -0
  357. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  358. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  359. oci/compute_instance_agent/plugin_client.py +2 -2
  360. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  361. oci/container_engine/container_engine_client.py +44 -44
  362. oci/container_instances/container_instance_client.py +18 -18
  363. oci/core/blockstorage_client.py +65 -60
  364. oci/core/compute_client.py +101 -103
  365. oci/core/compute_client_composite_operations.py +1 -2
  366. oci/core/compute_management_client.py +32 -32
  367. oci/core/models/__init__.py +6 -0
  368. oci/core/models/boot_volume.py +31 -0
  369. oci/core/models/boot_volume_attachment.py +39 -0
  370. oci/core/models/capacity_reservation_instance_summary.py +31 -0
  371. oci/core/models/compute_cluster.py +1 -2
  372. oci/core/models/create_boot_volume_details.py +31 -0
  373. oci/core/models/create_compute_cluster_details.py +1 -2
  374. oci/core/models/create_drg_route_distribution_details.py +2 -2
  375. oci/core/models/create_image_details.py +2 -2
  376. oci/core/models/create_vnic_details.py +18 -18
  377. oci/core/models/create_volume_details.py +31 -0
  378. oci/core/models/create_volume_group_details.py +33 -2
  379. oci/core/models/instance.py +31 -0
  380. oci/core/models/instance_configuration_create_volume_details.py +31 -0
  381. oci/core/models/instance_configuration_launch_instance_details.py +31 -0
  382. oci/core/models/instance_reservation_config.py +33 -2
  383. oci/core/models/instance_reservation_config_details.py +33 -2
  384. oci/core/models/launch_instance_details.py +31 -0
  385. oci/core/models/network_security_group.py +7 -7
  386. oci/core/models/private_ip.py +1 -1
  387. oci/core/models/update_instance_details.py +27 -0
  388. oci/core/models/update_instance_source_details.py +128 -0
  389. oci/core/models/update_instance_source_via_boot_volume_details.py +88 -0
  390. oci/core/models/update_instance_source_via_image_details.py +150 -0
  391. oci/core/models/update_vnic_details.py +2 -2
  392. oci/core/models/volume.py +31 -0
  393. oci/core/virtual_network_client.py +258 -258
  394. oci/core/virtual_network_client_composite_operations.py +13 -13
  395. oci/dashboard_service/dashboard_client.py +6 -6
  396. oci/dashboard_service/dashboard_group_client.py +6 -6
  397. oci/data_catalog/data_catalog_client.py +148 -148
  398. oci/data_flow/data_flow_client.py +42 -42
  399. oci/data_integration/data_integration_client.py +163 -163
  400. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  401. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  402. oci/data_safe/data_safe_client.py +272 -272
  403. oci/data_science/data_science_client.py +91 -91
  404. oci/data_science/models/instance_configuration.py +37 -2
  405. oci/database/database_client.py +1224 -537
  406. oci/database/database_client_composite_operations.py +204 -0
  407. oci/database/models/__init__.py +12 -0
  408. oci/database/models/autonomous_container_database.py +31 -0
  409. oci/database/models/autonomous_container_database_summary.py +31 -0
  410. oci/database/models/autonomous_database_software_image.py +489 -0
  411. oci/database/models/autonomous_database_software_image_collection.py +72 -0
  412. oci/database/models/autonomous_database_software_image_summary.py +437 -0
  413. oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
  414. oci/database/models/create_autonomous_container_database_details.py +35 -0
  415. oci/database/models/create_autonomous_database_software_image_details.py +267 -0
  416. oci/database/models/maintenance_window.py +33 -2
  417. oci/database/models/update_autonomous_database_software_image_details.py +119 -0
  418. oci/database_management/db_management_client.py +194 -194
  419. oci/database_management/diagnosability_client.py +4 -4
  420. oci/database_management/managed_my_sql_databases_client.py +7 -7
  421. oci/database_management/perfhub_client.py +1 -1
  422. oci/database_management/sql_tuning_client.py +17 -17
  423. oci/database_migration/database_migration_client.py +41 -41
  424. oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
  425. oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
  426. oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
  427. oci/database_tools/database_tools_client.py +23 -23
  428. oci/desktops/desktop_service_client.py +21 -21
  429. oci/devops/devops_client.py +89 -89
  430. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  431. oci/dns/dns_client.py +52 -52
  432. oci/dts/appliance_export_job_client.py +6 -6
  433. oci/dts/shipping_vendors_client.py +1 -1
  434. oci/dts/transfer_appliance_client.py +8 -8
  435. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  436. oci/dts/transfer_device_client.py +5 -5
  437. oci/dts/transfer_job_client.py +6 -6
  438. oci/dts/transfer_package_client.py +7 -7
  439. oci/em_warehouse/em_data_lake_client.py +13 -13
  440. oci/em_warehouse/em_warehouse_client.py +13 -13
  441. oci/email/email_client.py +26 -26
  442. oci/email_data_plane/email_dp_client.py +1 -1
  443. oci/events/events_client.py +6 -6
  444. oci/file_storage/file_storage_client.py +50 -50
  445. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  446. oci/functions/functions_invoke_client.py +1 -1
  447. oci/functions/functions_management_client.py +16 -16
  448. oci/fusion_apps/data_masking_activity_client.py +3 -3
  449. oci/fusion_apps/fusion_applications_client.py +39 -39
  450. oci/fusion_apps/fusion_environment_client.py +15 -15
  451. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  452. oci/fusion_apps/refresh_activity_client.py +4 -4
  453. oci/fusion_apps/scheduled_activity_client.py +2 -2
  454. oci/fusion_apps/service_attachment_client.py +2 -2
  455. oci/generative_ai/generative_ai_client.py +24 -24
  456. oci/generative_ai/models/dataset.py +1 -1
  457. oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
  458. oci/generative_ai/models/endpoint.py +27 -0
  459. oci/generative_ai/models/model.py +34 -3
  460. oci/generative_ai/models/model_summary.py +7 -3
  461. oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
  462. oci/generative_ai_inference/models/__init__.py +30 -0
  463. oci/generative_ai_inference/models/base_chat_request.py +109 -0
  464. oci/generative_ai_inference/models/base_chat_response.py +109 -0
  465. oci/generative_ai_inference/models/chat_choice.py +161 -0
  466. oci/generative_ai_inference/models/chat_content.py +101 -0
  467. oci/generative_ai_inference/models/chat_details.py +126 -0
  468. oci/generative_ai_inference/models/chat_result.py +130 -0
  469. oci/generative_ai_inference/models/citation.py +165 -0
  470. oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
  471. oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
  472. oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
  473. oci/generative_ai_inference/models/cohere_message.py +119 -0
  474. oci/generative_ai_inference/models/embed_text_details.py +2 -2
  475. oci/generative_ai_inference/models/generic_chat_request.py +474 -0
  476. oci/generative_ai_inference/models/generic_chat_response.py +113 -0
  477. oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
  478. oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
  479. oci/generative_ai_inference/models/llm_inference_response.py +11 -3
  480. oci/generative_ai_inference/models/message.py +103 -0
  481. oci/generative_ai_inference/models/search_query.py +72 -0
  482. oci/generative_ai_inference/models/text_content.py +82 -0
  483. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  484. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  485. oci/golden_gate/golden_gate_client.py +61 -61
  486. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  487. oci/governance_rules_control_plane/work_request_client.py +5 -5
  488. oci/healthchecks/health_checks_client.py +17 -17
  489. oci/identity/identity_client.py +145 -145
  490. oci/identity_data_plane/dataplane_client.py +2 -2
  491. oci/identity_domains/identity_domains_client.py +300 -300
  492. oci/integration/integration_instance_client.py +15 -15
  493. oci/jms/java_management_service_client.py +66 -66
  494. oci/jms_java_downloads/java_download_client.py +25 -25
  495. oci/key_management/ekm_client.py +5 -5
  496. oci/key_management/kms_crypto_client.py +6 -6
  497. oci/key_management/kms_hsm_cluster_client.py +12 -12
  498. oci/key_management/kms_management_client.py +21 -21
  499. oci/key_management/kms_vault_client.py +14 -14
  500. oci/license_manager/license_manager_client.py +18 -18
  501. oci/limits/limits_client.py +4 -4
  502. oci/limits/quotas_client.py +7 -7
  503. oci/load_balancer/load_balancer_client.py +61 -61
  504. oci/lockbox/lockbox_client.py +191 -46
  505. oci/lockbox/models/__init__.py +2 -0
  506. oci/lockbox/models/access_request_ext.py +671 -0
  507. oci/lockbox/models/access_request_summary.py +101 -2
  508. oci/lockbox/models/approver_info.py +33 -2
  509. oci/log_analytics/log_analytics_client.py +193 -193
  510. oci/logging/logging_management_client.py +30 -30
  511. oci/loggingingestion/logging_client.py +1 -1
  512. oci/loggingsearch/log_search_client.py +1 -1
  513. oci/management_agent/management_agent_client.py +28 -28
  514. oci/management_dashboard/dashx_apis_client.py +14 -14
  515. oci/marketplace/account_client.py +2 -2
  516. oci/marketplace/marketplace_client.py +30 -30
  517. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  518. oci/media_services/media_services_client.py +60 -60
  519. oci/media_services/media_stream_client.py +2 -2
  520. oci/monitoring/monitoring_client.py +18 -18
  521. oci/mysql/channels_client.py +7 -7
  522. oci/mysql/db_backups_client.py +6 -6
  523. oci/mysql/db_system_client.py +17 -17
  524. oci/mysql/mysqlaas_client.py +7 -7
  525. oci/mysql/replicas_client.py +5 -5
  526. oci/mysql/work_requests_client.py +4 -4
  527. oci/network_firewall/network_firewall_client.py +80 -80
  528. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  529. oci/nosql/nosql_client.py +24 -24
  530. oci/object_storage/object_storage_client.py +50 -50
  531. oci/oce/oce_instance_client.py +10 -10
  532. oci/oci_control_center/occ_metrics_client.py +3 -3
  533. oci/ocvp/cluster_client.py +5 -5
  534. oci/ocvp/esxi_host_client.py +8 -8
  535. oci/ocvp/sddc_client.py +14 -14
  536. oci/ocvp/work_request_client.py +4 -4
  537. oci/oda/management_client.py +59 -59
  538. oci/oda/oda_client.py +17 -17
  539. oci/oda/odapackage_client.py +7 -7
  540. oci/onesubscription/billing_schedule_client.py +1 -1
  541. oci/onesubscription/commitment_client.py +2 -2
  542. oci/onesubscription/computed_usage_client.py +3 -3
  543. oci/onesubscription/invoice_summary_client.py +2 -2
  544. oci/onesubscription/organization_subscription_client.py +1 -1
  545. oci/onesubscription/ratecard_client.py +1 -1
  546. oci/onesubscription/subscribed_service_client.py +2 -2
  547. oci/onesubscription/subscription_client.py +1 -1
  548. oci/ons/notification_control_plane_client.py +6 -6
  549. oci/ons/notification_data_plane_client.py +10 -10
  550. oci/opa/models/opa_instance.py +7 -3
  551. oci/opa/models/work_request.py +11 -3
  552. oci/opa/models/work_request_summary.py +11 -3
  553. oci/opa/opa_instance_client.py +223 -13
  554. oci/opa/opa_instance_client_composite_operations.py +78 -0
  555. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  556. oci/opensearch/opensearch_cluster_client.py +14 -14
  557. oci/operator_access_control/access_requests_client.py +10 -10
  558. oci/operator_access_control/operator_actions_client.py +2 -2
  559. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  560. oci/operator_access_control/operator_control_client.py +6 -6
  561. oci/opsi/operations_insights_client.py +175 -175
  562. oci/optimizer/optimizer_client.py +26 -26
  563. oci/os_management/event_client.py +8 -8
  564. oci/os_management/os_management_client.py +69 -69
  565. oci/os_management_hub/__init__.py +3 -1
  566. oci/os_management_hub/event_client.py +1115 -0
  567. oci/os_management_hub/event_client_composite_operations.py +163 -0
  568. oci/os_management_hub/lifecycle_environment_client.py +258 -46
  569. oci/os_management_hub/lifecycle_environment_client_composite_operations.py +16 -6
  570. oci/os_management_hub/managed_instance_client.py +1643 -380
  571. oci/os_management_hub/managed_instance_client_composite_operations.py +171 -13
  572. oci/os_management_hub/managed_instance_group_client.py +549 -165
  573. oci/os_management_hub/managed_instance_group_client_composite_operations.py +182 -22
  574. oci/os_management_hub/management_station_client.py +284 -30
  575. oci/os_management_hub/management_station_client_composite_operations.py +55 -6
  576. oci/os_management_hub/models/__init__.py +106 -0
  577. oci/os_management_hub/models/add_packages_to_software_source_details.py +72 -0
  578. oci/os_management_hub/models/agent_event.py +184 -0
  579. oci/os_management_hub/models/agent_event_data.py +166 -0
  580. oci/os_management_hub/models/attach_managed_instances_to_managed_instance_group_details.py +8 -4
  581. oci/os_management_hub/models/attach_profile_to_managed_instance_details.py +76 -0
  582. oci/os_management_hub/models/attach_software_sources_to_managed_instance_details.py +1 -1
  583. oci/os_management_hub/models/attach_software_sources_to_managed_instance_group_details.py +8 -4
  584. oci/os_management_hub/models/autonomous_settings.py +107 -0
  585. oci/os_management_hub/models/available_package_collection.py +1 -1
  586. oci/os_management_hub/models/available_package_summary.py +1 -1
  587. oci/os_management_hub/models/available_software_source_collection.py +2 -1
  588. oci/os_management_hub/models/available_software_source_summary.py +17 -7
  589. oci/os_management_hub/models/available_windows_update_collection.py +72 -0
  590. oci/os_management_hub/models/available_windows_update_summary.py +222 -0
  591. oci/os_management_hub/models/change_availability_of_software_sources_details.py +4 -4
  592. oci/os_management_hub/models/change_event_compartment_details.py +76 -0
  593. oci/os_management_hub/models/change_lifecycle_environment_compartment_details.py +76 -0
  594. oci/os_management_hub/models/change_managed_instance_group_compartment_details.py +78 -0
  595. oci/os_management_hub/models/change_management_station_compartment_details.py +76 -0
  596. oci/os_management_hub/models/change_profile_compartment_details.py +76 -0
  597. oci/os_management_hub/models/change_scheduled_job_compartment_details.py +76 -0
  598. oci/os_management_hub/models/change_software_source_compartment_details.py +76 -0
  599. oci/os_management_hub/models/create_custom_software_source_details.py +98 -5
  600. oci/os_management_hub/models/create_entitlement_details.py +9 -5
  601. oci/os_management_hub/models/create_group_profile_details.py +22 -4
  602. oci/os_management_hub/models/create_lifecycle_environment_details.py +108 -23
  603. oci/os_management_hub/models/create_lifecycle_profile_details.py +22 -4
  604. oci/os_management_hub/models/create_lifecycle_stage_details.py +5 -7
  605. oci/os_management_hub/models/create_managed_instance_group_details.py +181 -24
  606. oci/os_management_hub/models/create_management_station_details.py +13 -9
  607. oci/os_management_hub/models/create_mirror_configuration_details.py +9 -9
  608. oci/os_management_hub/models/create_profile_details.py +86 -12
  609. oci/os_management_hub/models/create_proxy_configuration_details.py +9 -9
  610. oci/os_management_hub/models/create_scheduled_job_details.py +192 -35
  611. oci/os_management_hub/models/create_software_source_details.py +18 -10
  612. oci/os_management_hub/models/create_software_source_profile_details.py +55 -13
  613. oci/os_management_hub/models/create_station_profile_details.py +48 -10
  614. oci/os_management_hub/models/create_vendor_software_source_details.py +121 -0
  615. oci/os_management_hub/models/create_versioned_custom_software_source_details.py +96 -3
  616. oci/os_management_hub/models/custom_software_source.py +120 -10
  617. oci/os_management_hub/models/custom_software_source_filter.py +1 -1
  618. oci/os_management_hub/models/custom_software_source_summary.py +20 -5
  619. oci/os_management_hub/models/detach_managed_instances_from_managed_instance_group_details.py +8 -4
  620. oci/os_management_hub/models/detach_software_sources_from_managed_instance_details.py +1 -1
  621. oci/os_management_hub/models/detach_software_sources_from_managed_instance_group_details.py +8 -4
  622. oci/os_management_hub/models/disable_module_stream_on_managed_instance_details.py +1 -1
  623. oci/os_management_hub/models/disable_module_stream_on_managed_instance_group_details.py +39 -4
  624. oci/os_management_hub/models/enable_module_stream_on_managed_instance_details.py +1 -1
  625. oci/os_management_hub/models/enable_module_stream_on_managed_instance_group_details.py +39 -4
  626. oci/os_management_hub/models/entitlement_collection.py +3 -3
  627. oci/os_management_hub/models/entitlement_summary.py +9 -5
  628. oci/os_management_hub/models/erratum.py +60 -13
  629. oci/os_management_hub/models/erratum_collection.py +3 -3
  630. oci/os_management_hub/models/erratum_summary.py +60 -13
  631. oci/os_management_hub/models/event.py +714 -0
  632. oci/os_management_hub/models/event_collection.py +72 -0
  633. oci/os_management_hub/models/event_content.py +113 -0
  634. oci/os_management_hub/models/event_summary.py +573 -0
  635. oci/os_management_hub/models/exploit_attempt_additional_details.py +72 -0
  636. oci/os_management_hub/models/exploit_attempt_event.py +184 -0
  637. oci/os_management_hub/models/exploit_attempt_event_content.py +113 -0
  638. oci/os_management_hub/models/exploit_attempt_event_data.py +126 -0
  639. oci/os_management_hub/models/group_profile.py +26 -4
  640. oci/os_management_hub/models/id.py +9 -5
  641. oci/os_management_hub/models/install_all_windows_updates_on_managed_instances_in_compartment_details.py +165 -0
  642. oci/os_management_hub/models/install_module_stream_profile_on_managed_instance_details.py +1 -1
  643. oci/os_management_hub/models/install_module_stream_profile_on_managed_instance_group_details.py +39 -4
  644. oci/os_management_hub/models/install_packages_on_managed_instance_details.py +1 -1
  645. oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +1 -1
  646. oci/os_management_hub/models/install_windows_updates_on_managed_instance_details.py +165 -0
  647. oci/os_management_hub/models/install_windows_updates_on_managed_instance_group_details.py +130 -0
  648. oci/os_management_hub/models/installed_package_collection.py +1 -1
  649. oci/os_management_hub/models/installed_package_summary.py +3 -5
  650. oci/os_management_hub/models/installed_windows_update_collection.py +72 -0
  651. oci/os_management_hub/models/installed_windows_update_summary.py +160 -0
  652. oci/os_management_hub/models/kernel_crash_event.py +184 -0
  653. oci/os_management_hub/models/kernel_event_additional_details.py +68 -0
  654. oci/os_management_hub/models/kernel_event_content.py +183 -0
  655. oci/os_management_hub/models/kernel_event_data.py +219 -0
  656. oci/os_management_hub/models/kernel_oops_event.py +184 -0
  657. oci/os_management_hub/models/ksplice_update_event.py +184 -0
  658. oci/os_management_hub/models/ksplice_update_event_data.py +162 -0
  659. oci/os_management_hub/models/lifecycle_environment.py +132 -29
  660. oci/os_management_hub/models/lifecycle_environment_collection.py +1 -1
  661. oci/os_management_hub/models/lifecycle_environment_details.py +7 -3
  662. oci/os_management_hub/models/lifecycle_environment_summary.py +125 -26
  663. oci/os_management_hub/models/lifecycle_profile.py +26 -4
  664. oci/os_management_hub/models/lifecycle_stage.py +131 -30
  665. oci/os_management_hub/models/lifecycle_stage_collection.py +1 -1
  666. oci/os_management_hub/models/lifecycle_stage_details.py +7 -3
  667. oci/os_management_hub/models/lifecycle_stage_summary.py +134 -33
  668. oci/os_management_hub/models/manage_module_streams_on_managed_instance_details.py +16 -8
  669. oci/os_management_hub/models/managed_instance.py +238 -70
  670. oci/os_management_hub/models/managed_instance_analytic_collection.py +3 -3
  671. oci/os_management_hub/models/managed_instance_analytic_summary.py +19 -3
  672. oci/os_management_hub/models/managed_instance_collection.py +1 -1
  673. oci/os_management_hub/models/managed_instance_details.py +7 -3
  674. oci/os_management_hub/models/managed_instance_erratum_summary.py +11 -13
  675. oci/os_management_hub/models/managed_instance_erratum_summary_collection.py +1 -1
  676. oci/os_management_hub/models/managed_instance_group.py +227 -27
  677. oci/os_management_hub/models/managed_instance_group_available_module_collection.py +3 -3
  678. oci/os_management_hub/models/managed_instance_group_available_module_summary.py +9 -5
  679. oci/os_management_hub/models/managed_instance_group_available_package_collection.py +1 -1
  680. oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -7
  681. oci/os_management_hub/models/managed_instance_group_collection.py +1 -1
  682. oci/os_management_hub/models/managed_instance_group_details.py +9 -5
  683. oci/os_management_hub/models/managed_instance_group_installed_package_collection.py +1 -1
  684. oci/os_management_hub/models/managed_instance_group_installed_package_summary.py +1 -1
  685. oci/os_management_hub/models/managed_instance_group_module_collection.py +1 -2
  686. oci/os_management_hub/models/managed_instance_group_module_summary.py +11 -7
  687. oci/os_management_hub/models/managed_instance_group_summary.py +210 -22
  688. oci/os_management_hub/models/managed_instance_module_collection.py +1 -2
  689. oci/os_management_hub/models/managed_instance_module_summary.py +7 -3
  690. oci/os_management_hub/models/managed_instance_summary.py +169 -32
  691. oci/os_management_hub/models/management_station.py +74 -27
  692. oci/os_management_hub/models/management_station_collection.py +3 -3
  693. oci/os_management_hub/models/management_station_details.py +13 -5
  694. oci/os_management_hub/models/management_station_event.py +184 -0
  695. oci/os_management_hub/models/management_station_event_data.py +166 -0
  696. oci/os_management_hub/models/management_station_summary.py +97 -26
  697. oci/os_management_hub/models/mirror_configuration.py +9 -9
  698. oci/os_management_hub/models/mirror_summary.py +23 -3
  699. oci/os_management_hub/models/mirror_sync_status.py +11 -11
  700. oci/os_management_hub/models/module_collection.py +3 -3
  701. oci/os_management_hub/models/module_stream.py +7 -3
  702. oci/os_management_hub/models/module_stream_collection.py +3 -3
  703. oci/os_management_hub/models/module_stream_details.py +38 -3
  704. oci/os_management_hub/models/module_stream_details_body.py +1 -1
  705. oci/os_management_hub/models/module_stream_profile.py +1 -1
  706. oci/os_management_hub/models/module_stream_profile_collection.py +3 -3
  707. oci/os_management_hub/models/module_stream_profile_details.py +38 -3
  708. oci/os_management_hub/models/module_stream_profile_details_body.py +1 -1
  709. oci/os_management_hub/models/module_stream_profile_filter.py +3 -3
  710. oci/os_management_hub/models/module_stream_profile_summary.py +3 -3
  711. oci/os_management_hub/models/module_stream_summary.py +7 -3
  712. oci/os_management_hub/models/module_summary.py +7 -3
  713. oci/os_management_hub/models/package_filter.py +3 -3
  714. oci/os_management_hub/models/package_group.py +9 -9
  715. oci/os_management_hub/models/package_group_collection.py +1 -1
  716. oci/os_management_hub/models/package_group_filter.py +3 -3
  717. oci/os_management_hub/models/package_group_summary.py +7 -7
  718. oci/os_management_hub/models/package_name_summary.py +7 -7
  719. oci/os_management_hub/models/package_summary.py +5 -5
  720. oci/os_management_hub/models/profile.py +189 -24
  721. oci/os_management_hub/models/profile_summary.py +157 -24
  722. oci/os_management_hub/models/promote_software_source_to_lifecycle_stage_details.py +1 -22
  723. oci/os_management_hub/models/proxy_configuration.py +9 -9
  724. oci/os_management_hub/models/remove_module_stream_profile_from_managed_instance_details.py +1 -1
  725. oci/os_management_hub/models/remove_module_stream_profile_from_managed_instance_group_details.py +39 -4
  726. oci/os_management_hub/models/remove_packages_from_managed_instance_details.py +1 -1
  727. oci/os_management_hub/models/remove_packages_from_managed_instance_group_details.py +1 -1
  728. oci/os_management_hub/models/scheduled_job.py +216 -39
  729. oci/os_management_hub/models/scheduled_job_collection.py +1 -1
  730. oci/os_management_hub/models/scheduled_job_operation.py +73 -8
  731. oci/os_management_hub/models/scheduled_job_summary.py +223 -48
  732. oci/os_management_hub/models/search_software_source_module_streams_details.py +7 -3
  733. oci/os_management_hub/models/search_software_source_modules_details.py +9 -5
  734. oci/os_management_hub/models/search_software_source_package_groups_details.py +9 -5
  735. oci/os_management_hub/models/software_package.py +80 -9
  736. oci/os_management_hub/models/software_package_collection.py +1 -1
  737. oci/os_management_hub/models/software_package_dependency.py +1 -1
  738. oci/os_management_hub/models/software_package_file.py +2 -4
  739. oci/os_management_hub/models/software_package_summary.py +74 -7
  740. oci/os_management_hub/models/software_packages_details.py +1 -1
  741. oci/os_management_hub/models/software_source.py +154 -32
  742. oci/os_management_hub/models/software_source_availability.py +76 -11
  743. oci/os_management_hub/models/software_source_collection.py +3 -3
  744. oci/os_management_hub/models/software_source_details.py +40 -5
  745. oci/os_management_hub/models/software_source_event.py +184 -0
  746. oci/os_management_hub/models/software_source_event_data.py +190 -0
  747. oci/os_management_hub/models/software_source_profile.py +26 -4
  748. oci/os_management_hub/models/software_source_summary.py +149 -33
  749. oci/os_management_hub/models/software_source_vendor_collection.py +3 -3
  750. oci/os_management_hub/models/software_source_vendor_summary.py +35 -11
  751. oci/os_management_hub/models/software_update_event.py +184 -0
  752. oci/os_management_hub/models/software_update_event_data.py +186 -0
  753. oci/os_management_hub/models/station_health.py +119 -0
  754. oci/os_management_hub/models/station_profile.py +26 -4
  755. oci/os_management_hub/models/switch_module_stream_on_managed_instance_details.py +38 -3
  756. oci/os_management_hub/models/switch_module_stream_on_managed_instance_group_details.py +165 -0
  757. oci/os_management_hub/models/system_details.py +326 -0
  758. oci/os_management_hub/models/updatable_autonomous_settings.py +72 -0
  759. oci/os_management_hub/models/updatable_package_collection.py +1 -1
  760. oci/os_management_hub/models/updatable_package_summary.py +7 -7
  761. oci/os_management_hub/models/update_all_packages_on_managed_instance_group_details.py +1 -1
  762. oci/os_management_hub/models/update_all_packages_on_managed_instances_in_compartment_details.py +9 -5
  763. oci/os_management_hub/models/update_custom_software_source_details.py +38 -7
  764. oci/os_management_hub/models/update_event_details.py +119 -0
  765. oci/os_management_hub/models/update_lifecycle_environment_details.py +5 -5
  766. oci/os_management_hub/models/update_lifecycle_stage_details.py +9 -5
  767. oci/os_management_hub/models/update_managed_instance_details.py +108 -7
  768. oci/os_management_hub/models/update_managed_instance_group_details.py +67 -5
  769. oci/os_management_hub/models/update_management_station_details.py +7 -7
  770. oci/os_management_hub/models/update_mirror_configuration_details.py +9 -9
  771. oci/os_management_hub/models/update_packages_on_managed_instance_details.py +3 -3
  772. oci/os_management_hub/models/update_profile_details.py +35 -4
  773. oci/os_management_hub/models/update_proxy_configuration_details.py +9 -9
  774. oci/os_management_hub/models/update_scheduled_job_details.py +74 -15
  775. oci/os_management_hub/models/update_software_source_details.py +15 -7
  776. oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
  777. oci/os_management_hub/models/update_versioned_custom_software_source_details.py +86 -0
  778. oci/os_management_hub/models/update_work_request_details.py +1 -1
  779. oci/os_management_hub/models/vendor_software_source.py +97 -9
  780. oci/os_management_hub/models/vendor_software_source_summary.py +59 -8
  781. oci/os_management_hub/models/versioned_custom_software_source.py +116 -8
  782. oci/os_management_hub/models/versioned_custom_software_source_summary.py +20 -5
  783. oci/os_management_hub/models/vmcore_details.py +103 -0
  784. oci/os_management_hub/models/windows_standalone_profile.py +168 -0
  785. oci/os_management_hub/models/windows_update.py +362 -0
  786. oci/os_management_hub/models/windows_update_collection.py +73 -0
  787. oci/os_management_hub/models/windows_update_summary.py +222 -0
  788. oci/os_management_hub/models/work_request.py +348 -40
  789. oci/os_management_hub/models/work_request_details.py +5 -5
  790. oci/os_management_hub/models/work_request_error.py +6 -2
  791. oci/os_management_hub/models/work_request_event_data_additional_details.py +111 -0
  792. oci/os_management_hub/models/work_request_log_entry.py +6 -2
  793. oci/os_management_hub/models/work_request_management_station_details.py +2 -2
  794. oci/os_management_hub/models/work_request_summary.py +147 -19
  795. oci/os_management_hub/models/work_request_summary_collection.py +2 -2
  796. oci/os_management_hub/onboarding_client.py +171 -25
  797. oci/os_management_hub/onboarding_client_composite_operations.py +7 -3
  798. oci/os_management_hub/reporting_managed_instance_client.py +217 -60
  799. oci/os_management_hub/scheduled_job_client.py +214 -38
  800. oci/os_management_hub/scheduled_job_client_composite_operations.py +8 -4
  801. oci/os_management_hub/software_source_client.py +971 -89
  802. oci/os_management_hub/software_source_client_composite_operations.py +50 -2
  803. oci/os_management_hub/work_request_client.py +61 -18
  804. oci/osp_gateway/address_rule_service_client.py +1 -1
  805. oci/osp_gateway/address_service_client.py +2 -2
  806. oci/osp_gateway/invoice_service_client.py +5 -5
  807. oci/osp_gateway/subscription_service_client.py +5 -5
  808. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  809. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  810. oci/osub_subscription/commitment_client.py +2 -2
  811. oci/osub_subscription/ratecard_client.py +1 -1
  812. oci/osub_subscription/subscription_client.py +1 -1
  813. oci/osub_usage/computed_usage_client.py +3 -3
  814. oci/psql/postgresql_client.py +33 -33
  815. oci/queue/queue_admin_client.py +11 -11
  816. oci/queue/queue_client.py +8 -8
  817. oci/recovery/database_recovery_client.py +23 -23
  818. oci/redis/models/create_redis_cluster_details.py +31 -0
  819. oci/redis/models/redis_cluster.py +31 -0
  820. oci/redis/models/redis_cluster_summary.py +31 -0
  821. oci/redis/models/update_redis_cluster_details.py +31 -0
  822. oci/redis/redis_cluster_client.py +11 -11
  823. oci/resource_manager/resource_manager_client.py +52 -52
  824. oci/resource_search/resource_search_client.py +3 -3
  825. oci/rover/rover_bundle_client.py +8 -8
  826. oci/rover/rover_cluster_client.py +8 -8
  827. oci/rover/rover_entitlement_client.py +6 -6
  828. oci/rover/rover_node_client.py +15 -15
  829. oci/rover/shape_client.py +1 -1
  830. oci/rover/work_requests_client.py +5 -5
  831. oci/sch/connector_plugins_client.py +2 -2
  832. oci/sch/service_connector_client.py +12 -12
  833. oci/secrets/secrets_client.py +3 -3
  834. oci/service_catalog/service_catalog_client.py +26 -26
  835. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  836. oci/service_mesh/service_mesh_client.py +48 -48
  837. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  838. oci/streaming/stream_admin_client.py +18 -18
  839. oci/streaming/stream_client.py +8 -8
  840. oci/tenant_manager_control_plane/domain_client.py +5 -5
  841. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  842. oci/tenant_manager_control_plane/governance_client.py +2 -2
  843. oci/tenant_manager_control_plane/link_client.py +3 -3
  844. oci/tenant_manager_control_plane/orders_client.py +2 -2
  845. oci/tenant_manager_control_plane/organization_client.py +10 -10
  846. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  847. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  848. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  849. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  850. oci/threat_intelligence/threatintel_client.py +5 -5
  851. oci/usage/resources_client.py +2 -2
  852. oci/usage/rewards_client.py +6 -6
  853. oci/usage/usagelimits_client.py +1 -1
  854. oci/usage_api/models/__init__.py +12 -0
  855. oci/usage_api/models/create_email_recipients_group_details.py +103 -0
  856. oci/usage_api/models/email_recipient.py +181 -0
  857. oci/usage_api/models/email_recipients_group.py +181 -0
  858. oci/usage_api/models/email_recipients_group_collection.py +72 -0
  859. oci/usage_api/models/email_recipients_group_summary.py +272 -0
  860. oci/usage_api/models/update_email_recipients_group_details.py +72 -0
  861. oci/usage_api/usageapi_client.py +656 -34
  862. oci/usage_api/usageapi_client_composite_operations.py +96 -0
  863. oci/vault/vaults_client.py +13 -13
  864. oci/vbs_inst/vbs_instance_client.py +10 -10
  865. oci/version.py +1 -1
  866. oci/visual_builder/vb_instance_client.py +13 -13
  867. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  868. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  869. oci/waa/waa_client.py +13 -13
  870. oci/waa/work_request_client.py +4 -4
  871. oci/waas/redirect_client.py +6 -6
  872. oci/waas/waas_client.py +66 -66
  873. oci/waf/waf_client.py +24 -24
  874. oci/work_requests/work_request_client.py +4 -4
  875. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/METADATA +1 -1
  876. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/RECORD +880 -764
  877. oci/application_migration/application_migration_client.py +0 -2489
  878. oci/application_migration/application_migration_client_composite_operations.py +0 -419
  879. oci/application_migration/models/__init__.py +0 -84
  880. oci/application_migration/models/authorization_details.py +0 -130
  881. oci/application_migration/models/configuration_field.py +0 -291
  882. oci/application_migration/models/create_migration_details.py +0 -464
  883. oci/application_migration/models/create_source_details.py +0 -272
  884. oci/application_migration/models/discovery_details.py +0 -141
  885. oci/application_migration/models/ics_discovery_details.py +0 -114
  886. oci/application_migration/models/import_manifest.py +0 -227
  887. oci/application_migration/models/import_source_details.py +0 -171
  888. oci/application_migration/models/internal_authorization_details.py +0 -113
  889. oci/application_migration/models/internal_source_details.py +0 -82
  890. oci/application_migration/models/jcs_discovery_details.py +0 -115
  891. oci/application_migration/models/migration.py +0 -731
  892. oci/application_migration/models/migration_summary.py +0 -572
  893. oci/application_migration/models/oac_discovery_details.py +0 -113
  894. oci/application_migration/models/occ_authorization_details.py +0 -113
  895. oci/application_migration/models/occ_source_details.py +0 -86
  896. oci/application_migration/models/ocic_authorization_details.py +0 -113
  897. oci/application_migration/models/ocic_authorization_token_details.py +0 -113
  898. oci/application_migration/models/ocic_source_details.py +0 -121
  899. oci/application_migration/models/oic_discovery_details.py +0 -114
  900. oci/application_migration/models/pcs_discovery_details.py +0 -114
  901. oci/application_migration/models/resource_field.py +0 -165
  902. oci/application_migration/models/soacs_discovery_details.py +0 -115
  903. oci/application_migration/models/source.py +0 -407
  904. oci/application_migration/models/source_application.py +0 -232
  905. oci/application_migration/models/source_application_summary.py +0 -233
  906. oci/application_migration/models/source_details.py +0 -137
  907. oci/application_migration/models/source_summary.py +0 -431
  908. oci/application_migration/models/update_migration_details.py +0 -309
  909. oci/application_migration/models/update_source_details.py +0 -232
  910. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/LICENSE.txt +0 -0
  911. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  912. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/WHEEL +0 -0
  913. {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1705 @@
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: 20230801
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 cluster_placement_groups_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class ClusterPlacementGroupsCPClient(object):
24
+ """
25
+ API for managing cluster placement groups.
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("cluster_placement_groups"):
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': '/20230801',
103
+ 'service_endpoint_template': 'https://clusterPlacementGroups.{region}.oci.{secondLevelDomain}',
104
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
105
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
106
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
107
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
108
+ }
109
+ if 'timeout' in kwargs:
110
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
111
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
112
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
113
+ if 'allow_control_chars' in kwargs:
114
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
115
+ self.base_client = BaseClient("cluster_placement_groups_cp", config, signer, cluster_placement_groups_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def activate_cluster_placement_group(self, cluster_placement_group_id, **kwargs):
120
+ """
121
+ Activates the specified, previously deactivated cluster placement group to let resources be created in it.
122
+
123
+
124
+ :param str cluster_placement_group_id: (required)
125
+ A unique cluster placement group identifier.
126
+
127
+ :param str if_match: (optional)
128
+ For optimistic concurrency control. In the PUT or DELETE call
129
+ for a resource, set the `if-match` parameter to the value of the
130
+ etag from a previous GET or POST response for that resource.
131
+ The resource will be updated or deleted only if the etag you
132
+ provide matches the resource's current etag value.
133
+
134
+ :param str opc_request_id: (optional)
135
+ The client request ID for tracing.
136
+
137
+ :param str opc_retry_token: (optional)
138
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
139
+ server error without risk of executing that same action again. Retry tokens expire after 24
140
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
141
+ has been deleted and purged from the system, then a retry of the original creation request
142
+ might be rejected.
143
+
144
+ :param obj retry_strategy: (optional)
145
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
146
+
147
+ 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.
148
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
149
+
150
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
151
+
152
+ :param bool allow_control_chars: (optional)
153
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
154
+ By default, the response will not allow control characters in strings
155
+
156
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.ClusterPlacementGroup`
157
+ :rtype: :class:`~oci.response.Response`
158
+
159
+ :example:
160
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/activate_cluster_placement_group.py.html>`__ to see an example of how to use activate_cluster_placement_group API.
161
+ """
162
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
163
+ required_arguments = ['clusterPlacementGroupId']
164
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/activate"
165
+ method = "POST"
166
+ operation_name = "activate_cluster_placement_group"
167
+ api_reference_link = ""
168
+
169
+ # Don't accept unknown kwargs
170
+ expected_kwargs = [
171
+ "allow_control_chars",
172
+ "retry_strategy",
173
+ "if_match",
174
+ "opc_request_id",
175
+ "opc_retry_token"
176
+ ]
177
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
178
+ if extra_kwargs:
179
+ raise ValueError(
180
+ f"activate_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
181
+
182
+ path_params = {
183
+ "clusterPlacementGroupId": cluster_placement_group_id
184
+ }
185
+
186
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
187
+
188
+ for (k, v) in six.iteritems(path_params):
189
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
190
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
191
+
192
+ header_params = {
193
+ "accept": "application/json",
194
+ "content-type": "application/json",
195
+ "if-match": kwargs.get("if_match", missing),
196
+ "opc-request-id": kwargs.get("opc_request_id", missing),
197
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
198
+ }
199
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
200
+
201
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
202
+ operation_retry_strategy=kwargs.get('retry_strategy'),
203
+ client_retry_strategy=self.retry_strategy
204
+ )
205
+ if retry_strategy is None:
206
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
207
+
208
+ if retry_strategy:
209
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
210
+ self.base_client.add_opc_retry_token_if_needed(header_params)
211
+ self.base_client.add_opc_client_retries_header(header_params)
212
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
213
+ return retry_strategy.make_retrying_call(
214
+ self.base_client.call_api,
215
+ resource_path=resource_path,
216
+ method=method,
217
+ path_params=path_params,
218
+ header_params=header_params,
219
+ response_type="ClusterPlacementGroup",
220
+ allow_control_chars=kwargs.get('allow_control_chars'),
221
+ operation_name=operation_name,
222
+ api_reference_link=api_reference_link,
223
+ required_arguments=required_arguments)
224
+ else:
225
+ return self.base_client.call_api(
226
+ resource_path=resource_path,
227
+ method=method,
228
+ path_params=path_params,
229
+ header_params=header_params,
230
+ response_type="ClusterPlacementGroup",
231
+ allow_control_chars=kwargs.get('allow_control_chars'),
232
+ operation_name=operation_name,
233
+ api_reference_link=api_reference_link,
234
+ required_arguments=required_arguments)
235
+
236
+ def cancel_work_request(self, work_request_id, **kwargs):
237
+ """
238
+ Cancels the work request with the specified ID.
239
+
240
+
241
+ :param str work_request_id: (required)
242
+ The ID of the asynchronous work request.
243
+
244
+ :param str if_match: (optional)
245
+ For optimistic concurrency control. In the PUT or DELETE call
246
+ for a resource, set the `if-match` parameter to the value of the
247
+ etag from a previous GET or POST response for that resource.
248
+ The resource will be updated or deleted only if the etag you
249
+ provide matches the resource's current etag value.
250
+
251
+ :param str opc_request_id: (optional)
252
+ The client request ID for tracing.
253
+
254
+ :param obj retry_strategy: (optional)
255
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
256
+
257
+ 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.
258
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
259
+
260
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
261
+
262
+ :param bool allow_control_chars: (optional)
263
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
264
+ By default, the response will not allow control characters in strings
265
+
266
+ :return: A :class:`~oci.response.Response` object with data of type None
267
+ :rtype: :class:`~oci.response.Response`
268
+
269
+ :example:
270
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
271
+ """
272
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
273
+ required_arguments = ['workRequestId']
274
+ resource_path = "/workRequests/{workRequestId}"
275
+ method = "DELETE"
276
+ operation_name = "cancel_work_request"
277
+ api_reference_link = ""
278
+
279
+ # Don't accept unknown kwargs
280
+ expected_kwargs = [
281
+ "allow_control_chars",
282
+ "retry_strategy",
283
+ "if_match",
284
+ "opc_request_id"
285
+ ]
286
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
287
+ if extra_kwargs:
288
+ raise ValueError(
289
+ f"cancel_work_request got unknown kwargs: {extra_kwargs!r}")
290
+
291
+ path_params = {
292
+ "workRequestId": work_request_id
293
+ }
294
+
295
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
296
+
297
+ for (k, v) in six.iteritems(path_params):
298
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
299
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
300
+
301
+ header_params = {
302
+ "accept": "application/json",
303
+ "content-type": "application/json",
304
+ "if-match": kwargs.get("if_match", missing),
305
+ "opc-request-id": kwargs.get("opc_request_id", missing)
306
+ }
307
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
308
+
309
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
310
+ operation_retry_strategy=kwargs.get('retry_strategy'),
311
+ client_retry_strategy=self.retry_strategy
312
+ )
313
+ if retry_strategy is None:
314
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
315
+
316
+ if retry_strategy:
317
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
318
+ self.base_client.add_opc_client_retries_header(header_params)
319
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
320
+ return retry_strategy.make_retrying_call(
321
+ self.base_client.call_api,
322
+ resource_path=resource_path,
323
+ method=method,
324
+ path_params=path_params,
325
+ header_params=header_params,
326
+ allow_control_chars=kwargs.get('allow_control_chars'),
327
+ operation_name=operation_name,
328
+ api_reference_link=api_reference_link,
329
+ required_arguments=required_arguments)
330
+ else:
331
+ return self.base_client.call_api(
332
+ resource_path=resource_path,
333
+ method=method,
334
+ path_params=path_params,
335
+ header_params=header_params,
336
+ allow_control_chars=kwargs.get('allow_control_chars'),
337
+ operation_name=operation_name,
338
+ api_reference_link=api_reference_link,
339
+ required_arguments=required_arguments)
340
+
341
+ def change_cluster_placement_group_compartment(self, cluster_placement_group_id, change_cluster_placement_group_compartment_details, **kwargs):
342
+ """
343
+ Moves a cluster placement group resource from one compartment to another in the same tenancy. For information about
344
+ moving resources between compartments, see `Moving Resources to a Different Compartment`__.
345
+
346
+ When provided, If-Match is checked against ETag values of the resource.
347
+
348
+ __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
349
+
350
+
351
+ :param str cluster_placement_group_id: (required)
352
+ A unique cluster placement group identifier.
353
+
354
+ :param oci.cluster_placement_groups.models.ChangeClusterPlacementGroupCompartmentDetails change_cluster_placement_group_compartment_details: (required)
355
+ The details of the updated compartment.
356
+
357
+ :param str if_match: (optional)
358
+ For optimistic concurrency control. In the PUT or DELETE call
359
+ for a resource, set the `if-match` parameter to the value of the
360
+ etag from a previous GET or POST response for that resource.
361
+ The resource will be updated or deleted only if the etag you
362
+ provide matches the resource's current etag value.
363
+
364
+ :param str opc_request_id: (optional)
365
+ The client request ID for tracing.
366
+
367
+ :param str opc_retry_token: (optional)
368
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
369
+ server error without risk of executing that same action again. Retry tokens expire after 24
370
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
371
+ has been deleted and purged from the system, then a retry of the original creation request
372
+ might be rejected.
373
+
374
+ :param obj retry_strategy: (optional)
375
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
376
+
377
+ 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.
378
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
379
+
380
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
381
+
382
+ :param bool allow_control_chars: (optional)
383
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
384
+ By default, the response will not allow control characters in strings
385
+
386
+ :return: A :class:`~oci.response.Response` object with data of type None
387
+ :rtype: :class:`~oci.response.Response`
388
+
389
+ :example:
390
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/change_cluster_placement_group_compartment.py.html>`__ to see an example of how to use change_cluster_placement_group_compartment API.
391
+ """
392
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
393
+ required_arguments = ['clusterPlacementGroupId']
394
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/changeCompartment"
395
+ method = "POST"
396
+ operation_name = "change_cluster_placement_group_compartment"
397
+ api_reference_link = ""
398
+
399
+ # Don't accept unknown kwargs
400
+ expected_kwargs = [
401
+ "allow_control_chars",
402
+ "retry_strategy",
403
+ "if_match",
404
+ "opc_request_id",
405
+ "opc_retry_token"
406
+ ]
407
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
408
+ if extra_kwargs:
409
+ raise ValueError(
410
+ f"change_cluster_placement_group_compartment got unknown kwargs: {extra_kwargs!r}")
411
+
412
+ path_params = {
413
+ "clusterPlacementGroupId": cluster_placement_group_id
414
+ }
415
+
416
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
417
+
418
+ for (k, v) in six.iteritems(path_params):
419
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
420
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
421
+
422
+ header_params = {
423
+ "accept": "application/json",
424
+ "content-type": "application/json",
425
+ "if-match": kwargs.get("if_match", missing),
426
+ "opc-request-id": kwargs.get("opc_request_id", missing),
427
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
428
+ }
429
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
430
+
431
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
432
+ operation_retry_strategy=kwargs.get('retry_strategy'),
433
+ client_retry_strategy=self.retry_strategy
434
+ )
435
+ if retry_strategy is None:
436
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
437
+
438
+ if retry_strategy:
439
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
440
+ self.base_client.add_opc_retry_token_if_needed(header_params)
441
+ self.base_client.add_opc_client_retries_header(header_params)
442
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
443
+ return retry_strategy.make_retrying_call(
444
+ self.base_client.call_api,
445
+ resource_path=resource_path,
446
+ method=method,
447
+ path_params=path_params,
448
+ header_params=header_params,
449
+ body=change_cluster_placement_group_compartment_details,
450
+ allow_control_chars=kwargs.get('allow_control_chars'),
451
+ operation_name=operation_name,
452
+ api_reference_link=api_reference_link,
453
+ required_arguments=required_arguments)
454
+ else:
455
+ return self.base_client.call_api(
456
+ resource_path=resource_path,
457
+ method=method,
458
+ path_params=path_params,
459
+ header_params=header_params,
460
+ body=change_cluster_placement_group_compartment_details,
461
+ allow_control_chars=kwargs.get('allow_control_chars'),
462
+ operation_name=operation_name,
463
+ api_reference_link=api_reference_link,
464
+ required_arguments=required_arguments)
465
+
466
+ def create_cluster_placement_group(self, create_cluster_placement_group_details, **kwargs):
467
+ """
468
+ Creates a new cluster placement group in the specified compartment.
469
+
470
+
471
+ :param oci.cluster_placement_groups.models.CreateClusterPlacementGroupDetails create_cluster_placement_group_details: (required)
472
+ The details for creating the new cluster placement group.
473
+
474
+ :param str opc_retry_token: (optional)
475
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
476
+ server error without risk of executing that same action again. Retry tokens expire after 24
477
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
478
+ has been deleted and purged from the system, then a retry of the original creation request
479
+ might be rejected.
480
+
481
+ :param str opc_request_id: (optional)
482
+ The client request ID for tracing.
483
+
484
+ :param bool opc_dry_run: (optional)
485
+ When set to `true`, the request performs validation on the submitted data without modifying configuration item details.
486
+
487
+ :param obj retry_strategy: (optional)
488
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
489
+
490
+ 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.
491
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
492
+
493
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
494
+
495
+ :param bool allow_control_chars: (optional)
496
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
497
+ By default, the response will not allow control characters in strings
498
+
499
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.ClusterPlacementGroup`
500
+ :rtype: :class:`~oci.response.Response`
501
+
502
+ :example:
503
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/create_cluster_placement_group.py.html>`__ to see an example of how to use create_cluster_placement_group API.
504
+ """
505
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
506
+ required_arguments = []
507
+ resource_path = "/clusterPlacementGroups"
508
+ method = "POST"
509
+ operation_name = "create_cluster_placement_group"
510
+ api_reference_link = ""
511
+
512
+ # Don't accept unknown kwargs
513
+ expected_kwargs = [
514
+ "allow_control_chars",
515
+ "retry_strategy",
516
+ "opc_retry_token",
517
+ "opc_request_id",
518
+ "opc_dry_run"
519
+ ]
520
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
521
+ if extra_kwargs:
522
+ raise ValueError(
523
+ f"create_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
524
+
525
+ header_params = {
526
+ "accept": "application/json",
527
+ "content-type": "application/json",
528
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
529
+ "opc-request-id": kwargs.get("opc_request_id", missing),
530
+ "opc-dry-run": kwargs.get("opc_dry_run", missing)
531
+ }
532
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
533
+
534
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
535
+ operation_retry_strategy=kwargs.get('retry_strategy'),
536
+ client_retry_strategy=self.retry_strategy
537
+ )
538
+ if retry_strategy is None:
539
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
540
+
541
+ if retry_strategy:
542
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
543
+ self.base_client.add_opc_retry_token_if_needed(header_params)
544
+ self.base_client.add_opc_client_retries_header(header_params)
545
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
546
+ return retry_strategy.make_retrying_call(
547
+ self.base_client.call_api,
548
+ resource_path=resource_path,
549
+ method=method,
550
+ header_params=header_params,
551
+ body=create_cluster_placement_group_details,
552
+ response_type="ClusterPlacementGroup",
553
+ allow_control_chars=kwargs.get('allow_control_chars'),
554
+ operation_name=operation_name,
555
+ api_reference_link=api_reference_link,
556
+ required_arguments=required_arguments)
557
+ else:
558
+ return self.base_client.call_api(
559
+ resource_path=resource_path,
560
+ method=method,
561
+ header_params=header_params,
562
+ body=create_cluster_placement_group_details,
563
+ response_type="ClusterPlacementGroup",
564
+ allow_control_chars=kwargs.get('allow_control_chars'),
565
+ operation_name=operation_name,
566
+ api_reference_link=api_reference_link,
567
+ required_arguments=required_arguments)
568
+
569
+ def deactivate_cluster_placement_group(self, cluster_placement_group_id, **kwargs):
570
+ """
571
+ Deactivates the specified cluster placement group to prevent new resources from being created in it.
572
+
573
+
574
+ :param str cluster_placement_group_id: (required)
575
+ A unique cluster placement group identifier.
576
+
577
+ :param str if_match: (optional)
578
+ For optimistic concurrency control. In the PUT or DELETE call
579
+ for a resource, set the `if-match` parameter to the value of the
580
+ etag from a previous GET or POST response for that resource.
581
+ The resource will be updated or deleted only if the etag you
582
+ provide matches the resource's current etag value.
583
+
584
+ :param str opc_request_id: (optional)
585
+ The client request ID for tracing.
586
+
587
+ :param str opc_retry_token: (optional)
588
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
589
+ server error without risk of executing that same action again. Retry tokens expire after 24
590
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
591
+ has been deleted and purged from the system, then a retry of the original creation request
592
+ might be rejected.
593
+
594
+ :param obj retry_strategy: (optional)
595
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
596
+
597
+ 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.
598
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
599
+
600
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
601
+
602
+ :param bool allow_control_chars: (optional)
603
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
604
+ By default, the response will not allow control characters in strings
605
+
606
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.ClusterPlacementGroup`
607
+ :rtype: :class:`~oci.response.Response`
608
+
609
+ :example:
610
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/deactivate_cluster_placement_group.py.html>`__ to see an example of how to use deactivate_cluster_placement_group API.
611
+ """
612
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
613
+ required_arguments = ['clusterPlacementGroupId']
614
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}/actions/deactivate"
615
+ method = "POST"
616
+ operation_name = "deactivate_cluster_placement_group"
617
+ api_reference_link = ""
618
+
619
+ # Don't accept unknown kwargs
620
+ expected_kwargs = [
621
+ "allow_control_chars",
622
+ "retry_strategy",
623
+ "if_match",
624
+ "opc_request_id",
625
+ "opc_retry_token"
626
+ ]
627
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
628
+ if extra_kwargs:
629
+ raise ValueError(
630
+ f"deactivate_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
631
+
632
+ path_params = {
633
+ "clusterPlacementGroupId": cluster_placement_group_id
634
+ }
635
+
636
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
637
+
638
+ for (k, v) in six.iteritems(path_params):
639
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
640
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
641
+
642
+ header_params = {
643
+ "accept": "application/json",
644
+ "content-type": "application/json",
645
+ "if-match": kwargs.get("if_match", missing),
646
+ "opc-request-id": kwargs.get("opc_request_id", missing),
647
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
648
+ }
649
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
650
+
651
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
652
+ operation_retry_strategy=kwargs.get('retry_strategy'),
653
+ client_retry_strategy=self.retry_strategy
654
+ )
655
+ if retry_strategy is None:
656
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
657
+
658
+ if retry_strategy:
659
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
660
+ self.base_client.add_opc_retry_token_if_needed(header_params)
661
+ self.base_client.add_opc_client_retries_header(header_params)
662
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
663
+ return retry_strategy.make_retrying_call(
664
+ self.base_client.call_api,
665
+ resource_path=resource_path,
666
+ method=method,
667
+ path_params=path_params,
668
+ header_params=header_params,
669
+ response_type="ClusterPlacementGroup",
670
+ allow_control_chars=kwargs.get('allow_control_chars'),
671
+ operation_name=operation_name,
672
+ api_reference_link=api_reference_link,
673
+ required_arguments=required_arguments)
674
+ else:
675
+ return self.base_client.call_api(
676
+ resource_path=resource_path,
677
+ method=method,
678
+ path_params=path_params,
679
+ header_params=header_params,
680
+ response_type="ClusterPlacementGroup",
681
+ allow_control_chars=kwargs.get('allow_control_chars'),
682
+ operation_name=operation_name,
683
+ api_reference_link=api_reference_link,
684
+ required_arguments=required_arguments)
685
+
686
+ def delete_cluster_placement_group(self, cluster_placement_group_id, **kwargs):
687
+ """
688
+ Deletes the specified cluster placement group.
689
+
690
+
691
+ :param str cluster_placement_group_id: (required)
692
+ A unique cluster placement group identifier.
693
+
694
+ :param str if_match: (optional)
695
+ For optimistic concurrency control. In the PUT or DELETE call
696
+ for a resource, set the `if-match` parameter to the value of the
697
+ etag from a previous GET or POST response for that resource.
698
+ The resource will be updated or deleted only if the etag you
699
+ provide matches the resource's current etag value.
700
+
701
+ :param str opc_request_id: (optional)
702
+ The client request ID for tracing.
703
+
704
+ :param obj retry_strategy: (optional)
705
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
706
+
707
+ 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.
708
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
709
+
710
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
711
+
712
+ :param bool allow_control_chars: (optional)
713
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
714
+ By default, the response will not allow control characters in strings
715
+
716
+ :return: A :class:`~oci.response.Response` object with data of type None
717
+ :rtype: :class:`~oci.response.Response`
718
+
719
+ :example:
720
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/delete_cluster_placement_group.py.html>`__ to see an example of how to use delete_cluster_placement_group API.
721
+ """
722
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
723
+ required_arguments = ['clusterPlacementGroupId']
724
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}"
725
+ method = "DELETE"
726
+ operation_name = "delete_cluster_placement_group"
727
+ api_reference_link = ""
728
+
729
+ # Don't accept unknown kwargs
730
+ expected_kwargs = [
731
+ "allow_control_chars",
732
+ "retry_strategy",
733
+ "if_match",
734
+ "opc_request_id"
735
+ ]
736
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
737
+ if extra_kwargs:
738
+ raise ValueError(
739
+ f"delete_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
740
+
741
+ path_params = {
742
+ "clusterPlacementGroupId": cluster_placement_group_id
743
+ }
744
+
745
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
746
+
747
+ for (k, v) in six.iteritems(path_params):
748
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
749
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
750
+
751
+ header_params = {
752
+ "accept": "application/json",
753
+ "content-type": "application/json",
754
+ "if-match": kwargs.get("if_match", missing),
755
+ "opc-request-id": kwargs.get("opc_request_id", missing)
756
+ }
757
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
758
+
759
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
760
+ operation_retry_strategy=kwargs.get('retry_strategy'),
761
+ client_retry_strategy=self.retry_strategy
762
+ )
763
+ if retry_strategy is None:
764
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
765
+
766
+ if retry_strategy:
767
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
768
+ self.base_client.add_opc_client_retries_header(header_params)
769
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
770
+ return retry_strategy.make_retrying_call(
771
+ self.base_client.call_api,
772
+ resource_path=resource_path,
773
+ method=method,
774
+ path_params=path_params,
775
+ header_params=header_params,
776
+ allow_control_chars=kwargs.get('allow_control_chars'),
777
+ operation_name=operation_name,
778
+ api_reference_link=api_reference_link,
779
+ required_arguments=required_arguments)
780
+ else:
781
+ return self.base_client.call_api(
782
+ resource_path=resource_path,
783
+ method=method,
784
+ path_params=path_params,
785
+ header_params=header_params,
786
+ allow_control_chars=kwargs.get('allow_control_chars'),
787
+ operation_name=operation_name,
788
+ api_reference_link=api_reference_link,
789
+ required_arguments=required_arguments)
790
+
791
+ def get_cluster_placement_group(self, cluster_placement_group_id, **kwargs):
792
+ """
793
+ Gets the specified cluster placement group.
794
+
795
+
796
+ :param str cluster_placement_group_id: (required)
797
+ A unique cluster placement group identifier.
798
+
799
+ :param str opc_request_id: (optional)
800
+ The client request ID for tracing.
801
+
802
+ :param obj retry_strategy: (optional)
803
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
804
+
805
+ 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.
806
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
807
+
808
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
809
+
810
+ :param bool allow_control_chars: (optional)
811
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
812
+ By default, the response will not allow control characters in strings
813
+
814
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.ClusterPlacementGroup`
815
+ :rtype: :class:`~oci.response.Response`
816
+
817
+ :example:
818
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/get_cluster_placement_group.py.html>`__ to see an example of how to use get_cluster_placement_group API.
819
+ """
820
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
821
+ required_arguments = ['clusterPlacementGroupId']
822
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}"
823
+ method = "GET"
824
+ operation_name = "get_cluster_placement_group"
825
+ api_reference_link = ""
826
+
827
+ # Don't accept unknown kwargs
828
+ expected_kwargs = [
829
+ "allow_control_chars",
830
+ "retry_strategy",
831
+ "opc_request_id"
832
+ ]
833
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
834
+ if extra_kwargs:
835
+ raise ValueError(
836
+ f"get_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
837
+
838
+ path_params = {
839
+ "clusterPlacementGroupId": cluster_placement_group_id
840
+ }
841
+
842
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
843
+
844
+ for (k, v) in six.iteritems(path_params):
845
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
846
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
847
+
848
+ header_params = {
849
+ "accept": "application/json",
850
+ "content-type": "application/json",
851
+ "opc-request-id": kwargs.get("opc_request_id", missing)
852
+ }
853
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
854
+
855
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
856
+ operation_retry_strategy=kwargs.get('retry_strategy'),
857
+ client_retry_strategy=self.retry_strategy
858
+ )
859
+ if retry_strategy is None:
860
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
861
+
862
+ if retry_strategy:
863
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
864
+ self.base_client.add_opc_client_retries_header(header_params)
865
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
866
+ return retry_strategy.make_retrying_call(
867
+ self.base_client.call_api,
868
+ resource_path=resource_path,
869
+ method=method,
870
+ path_params=path_params,
871
+ header_params=header_params,
872
+ response_type="ClusterPlacementGroup",
873
+ allow_control_chars=kwargs.get('allow_control_chars'),
874
+ operation_name=operation_name,
875
+ api_reference_link=api_reference_link,
876
+ required_arguments=required_arguments)
877
+ else:
878
+ return self.base_client.call_api(
879
+ resource_path=resource_path,
880
+ method=method,
881
+ path_params=path_params,
882
+ header_params=header_params,
883
+ response_type="ClusterPlacementGroup",
884
+ allow_control_chars=kwargs.get('allow_control_chars'),
885
+ operation_name=operation_name,
886
+ api_reference_link=api_reference_link,
887
+ required_arguments=required_arguments)
888
+
889
+ def get_work_request(self, work_request_id, **kwargs):
890
+ """
891
+ Gets details of the work request with the specified ID.
892
+
893
+
894
+ :param str work_request_id: (required)
895
+ The ID of the asynchronous work request.
896
+
897
+ :param str opc_request_id: (optional)
898
+ The client request ID for tracing.
899
+
900
+ :param obj retry_strategy: (optional)
901
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
902
+
903
+ 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.
904
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
905
+
906
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
907
+
908
+ :param bool allow_control_chars: (optional)
909
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
910
+ By default, the response will not allow control characters in strings
911
+
912
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.WorkRequest`
913
+ :rtype: :class:`~oci.response.Response`
914
+
915
+ :example:
916
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
917
+ """
918
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
919
+ required_arguments = ['workRequestId']
920
+ resource_path = "/workRequests/{workRequestId}"
921
+ method = "GET"
922
+ operation_name = "get_work_request"
923
+ api_reference_link = ""
924
+
925
+ # Don't accept unknown kwargs
926
+ expected_kwargs = [
927
+ "allow_control_chars",
928
+ "retry_strategy",
929
+ "opc_request_id"
930
+ ]
931
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
932
+ if extra_kwargs:
933
+ raise ValueError(
934
+ f"get_work_request got unknown kwargs: {extra_kwargs!r}")
935
+
936
+ path_params = {
937
+ "workRequestId": work_request_id
938
+ }
939
+
940
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
941
+
942
+ for (k, v) in six.iteritems(path_params):
943
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
944
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
945
+
946
+ header_params = {
947
+ "accept": "application/json",
948
+ "content-type": "application/json",
949
+ "opc-request-id": kwargs.get("opc_request_id", missing)
950
+ }
951
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
952
+
953
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
954
+ operation_retry_strategy=kwargs.get('retry_strategy'),
955
+ client_retry_strategy=self.retry_strategy
956
+ )
957
+ if retry_strategy is None:
958
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
959
+
960
+ if retry_strategy:
961
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
962
+ self.base_client.add_opc_client_retries_header(header_params)
963
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
964
+ return retry_strategy.make_retrying_call(
965
+ self.base_client.call_api,
966
+ resource_path=resource_path,
967
+ method=method,
968
+ path_params=path_params,
969
+ header_params=header_params,
970
+ response_type="WorkRequest",
971
+ allow_control_chars=kwargs.get('allow_control_chars'),
972
+ operation_name=operation_name,
973
+ api_reference_link=api_reference_link,
974
+ required_arguments=required_arguments)
975
+ else:
976
+ return self.base_client.call_api(
977
+ resource_path=resource_path,
978
+ method=method,
979
+ path_params=path_params,
980
+ header_params=header_params,
981
+ response_type="WorkRequest",
982
+ allow_control_chars=kwargs.get('allow_control_chars'),
983
+ operation_name=operation_name,
984
+ api_reference_link=api_reference_link,
985
+ required_arguments=required_arguments)
986
+
987
+ def list_cluster_placement_groups(self, **kwargs):
988
+ """
989
+ Gets a list of all cluster placement groups in the specified compartment.
990
+
991
+
992
+ :param str compartment_id: (optional)
993
+ A filter to return only the resources that match the specified compartment `OCID`__.
994
+
995
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
996
+
997
+ :param str lifecycle_state: (optional)
998
+ A filter to return only the resources that match the specified lifecycle state.
999
+
1000
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
1001
+
1002
+ :param str name: (optional)
1003
+ A filter to return only the resources that match the entire display name specified.
1004
+
1005
+ :param str ad: (optional)
1006
+ A filter to return only the resources that match the specified availability domain.
1007
+
1008
+ :param str id: (optional)
1009
+ A filter to return only the resources that match the specified unique cluster placement group identifier.
1010
+
1011
+ :param int limit: (optional)
1012
+ The maximum number of items to return.
1013
+
1014
+ :param str page: (optional)
1015
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1016
+
1017
+ :param str sort_order: (optional)
1018
+ The sort order to use, either 'ASC' or 'DESC'.
1019
+
1020
+ Allowed values are: "ASC", "DESC"
1021
+
1022
+ :param str sort_by: (optional)
1023
+ The field to sort by. You can specify only one sort order. The default order for `timeCreated` is descending. The default order for `name` is ascending.
1024
+
1025
+ Allowed values are: "timeCreated", "name", "id"
1026
+
1027
+ :param bool compartment_id_in_subtree: (optional)
1028
+ When set to `true`, cluster placement groups in all compartments under the specified compartment are returned. The default is set to `false`.
1029
+
1030
+ :param str opc_request_id: (optional)
1031
+ The client request ID for tracing.
1032
+
1033
+ :param obj retry_strategy: (optional)
1034
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1035
+
1036
+ 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.
1037
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1038
+
1039
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1040
+
1041
+ :param bool allow_control_chars: (optional)
1042
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1043
+ By default, the response will not allow control characters in strings
1044
+
1045
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.ClusterPlacementGroupCollection`
1046
+ :rtype: :class:`~oci.response.Response`
1047
+
1048
+ :example:
1049
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/list_cluster_placement_groups.py.html>`__ to see an example of how to use list_cluster_placement_groups API.
1050
+ """
1051
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1052
+ required_arguments = []
1053
+ resource_path = "/clusterPlacementGroups"
1054
+ method = "GET"
1055
+ operation_name = "list_cluster_placement_groups"
1056
+ api_reference_link = ""
1057
+
1058
+ # Don't accept unknown kwargs
1059
+ expected_kwargs = [
1060
+ "allow_control_chars",
1061
+ "retry_strategy",
1062
+ "compartment_id",
1063
+ "lifecycle_state",
1064
+ "name",
1065
+ "ad",
1066
+ "id",
1067
+ "limit",
1068
+ "page",
1069
+ "sort_order",
1070
+ "sort_by",
1071
+ "compartment_id_in_subtree",
1072
+ "opc_request_id"
1073
+ ]
1074
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1075
+ if extra_kwargs:
1076
+ raise ValueError(
1077
+ f"list_cluster_placement_groups got unknown kwargs: {extra_kwargs!r}")
1078
+
1079
+ if 'lifecycle_state' in kwargs:
1080
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
1081
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1082
+ raise ValueError(
1083
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1084
+ )
1085
+
1086
+ if 'sort_order' in kwargs:
1087
+ sort_order_allowed_values = ["ASC", "DESC"]
1088
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1089
+ raise ValueError(
1090
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1091
+ )
1092
+
1093
+ if 'sort_by' in kwargs:
1094
+ sort_by_allowed_values = ["timeCreated", "name", "id"]
1095
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1096
+ raise ValueError(
1097
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1098
+ )
1099
+
1100
+ query_params = {
1101
+ "compartmentId": kwargs.get("compartment_id", missing),
1102
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1103
+ "name": kwargs.get("name", missing),
1104
+ "ad": kwargs.get("ad", missing),
1105
+ "id": kwargs.get("id", missing),
1106
+ "limit": kwargs.get("limit", missing),
1107
+ "page": kwargs.get("page", missing),
1108
+ "sortOrder": kwargs.get("sort_order", missing),
1109
+ "sortBy": kwargs.get("sort_by", missing),
1110
+ "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing)
1111
+ }
1112
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1113
+
1114
+ header_params = {
1115
+ "accept": "application/json",
1116
+ "content-type": "application/json",
1117
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1118
+ }
1119
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1120
+
1121
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1122
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1123
+ client_retry_strategy=self.retry_strategy
1124
+ )
1125
+ if retry_strategy is None:
1126
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1127
+
1128
+ if retry_strategy:
1129
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1130
+ self.base_client.add_opc_client_retries_header(header_params)
1131
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1132
+ return retry_strategy.make_retrying_call(
1133
+ self.base_client.call_api,
1134
+ resource_path=resource_path,
1135
+ method=method,
1136
+ query_params=query_params,
1137
+ header_params=header_params,
1138
+ response_type="ClusterPlacementGroupCollection",
1139
+ allow_control_chars=kwargs.get('allow_control_chars'),
1140
+ operation_name=operation_name,
1141
+ api_reference_link=api_reference_link,
1142
+ required_arguments=required_arguments)
1143
+ else:
1144
+ return self.base_client.call_api(
1145
+ resource_path=resource_path,
1146
+ method=method,
1147
+ query_params=query_params,
1148
+ header_params=header_params,
1149
+ response_type="ClusterPlacementGroupCollection",
1150
+ allow_control_chars=kwargs.get('allow_control_chars'),
1151
+ operation_name=operation_name,
1152
+ api_reference_link=api_reference_link,
1153
+ required_arguments=required_arguments)
1154
+
1155
+ def list_work_request_errors(self, work_request_id, **kwargs):
1156
+ """
1157
+ Returns a (paginated) list of errors for the work request with the specified ID.
1158
+
1159
+
1160
+ :param str work_request_id: (required)
1161
+ The ID of the asynchronous work request.
1162
+
1163
+ :param str opc_request_id: (optional)
1164
+ The client request ID for tracing.
1165
+
1166
+ :param str page: (optional)
1167
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1168
+
1169
+ :param int limit: (optional)
1170
+ The maximum number of items to return.
1171
+
1172
+ :param str sort_by: (optional)
1173
+ The field to sort by. You can specify only one sort order. The default order for `timestamp` is descending.
1174
+
1175
+ Allowed values are: "timestamp"
1176
+
1177
+ :param str sort_order: (optional)
1178
+ The sort order to use, either 'ASC' or 'DESC'.
1179
+
1180
+ Allowed values are: "ASC", "DESC"
1181
+
1182
+ :param obj retry_strategy: (optional)
1183
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1184
+
1185
+ 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.
1186
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1187
+
1188
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1189
+
1190
+ :param bool allow_control_chars: (optional)
1191
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1192
+ By default, the response will not allow control characters in strings
1193
+
1194
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.WorkRequestErrorCollection`
1195
+ :rtype: :class:`~oci.response.Response`
1196
+
1197
+ :example:
1198
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1199
+ """
1200
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1201
+ required_arguments = ['workRequestId']
1202
+ resource_path = "/workRequests/{workRequestId}/errors"
1203
+ method = "GET"
1204
+ operation_name = "list_work_request_errors"
1205
+ api_reference_link = ""
1206
+
1207
+ # Don't accept unknown kwargs
1208
+ expected_kwargs = [
1209
+ "allow_control_chars",
1210
+ "retry_strategy",
1211
+ "opc_request_id",
1212
+ "page",
1213
+ "limit",
1214
+ "sort_by",
1215
+ "sort_order"
1216
+ ]
1217
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1218
+ if extra_kwargs:
1219
+ raise ValueError(
1220
+ f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
1221
+
1222
+ path_params = {
1223
+ "workRequestId": work_request_id
1224
+ }
1225
+
1226
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1227
+
1228
+ for (k, v) in six.iteritems(path_params):
1229
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1230
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1231
+
1232
+ if 'sort_by' in kwargs:
1233
+ sort_by_allowed_values = ["timestamp"]
1234
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1235
+ raise ValueError(
1236
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1237
+ )
1238
+
1239
+ if 'sort_order' in kwargs:
1240
+ sort_order_allowed_values = ["ASC", "DESC"]
1241
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1242
+ raise ValueError(
1243
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1244
+ )
1245
+
1246
+ query_params = {
1247
+ "page": kwargs.get("page", missing),
1248
+ "limit": kwargs.get("limit", missing),
1249
+ "sortBy": kwargs.get("sort_by", missing),
1250
+ "sortOrder": kwargs.get("sort_order", missing)
1251
+ }
1252
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1253
+
1254
+ header_params = {
1255
+ "accept": "application/json",
1256
+ "content-type": "application/json",
1257
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1258
+ }
1259
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1260
+
1261
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1262
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1263
+ client_retry_strategy=self.retry_strategy
1264
+ )
1265
+ if retry_strategy is None:
1266
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1267
+
1268
+ if retry_strategy:
1269
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1270
+ self.base_client.add_opc_client_retries_header(header_params)
1271
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1272
+ return retry_strategy.make_retrying_call(
1273
+ self.base_client.call_api,
1274
+ resource_path=resource_path,
1275
+ method=method,
1276
+ path_params=path_params,
1277
+ query_params=query_params,
1278
+ header_params=header_params,
1279
+ response_type="WorkRequestErrorCollection",
1280
+ allow_control_chars=kwargs.get('allow_control_chars'),
1281
+ operation_name=operation_name,
1282
+ api_reference_link=api_reference_link,
1283
+ required_arguments=required_arguments)
1284
+ else:
1285
+ return self.base_client.call_api(
1286
+ resource_path=resource_path,
1287
+ method=method,
1288
+ path_params=path_params,
1289
+ query_params=query_params,
1290
+ header_params=header_params,
1291
+ response_type="WorkRequestErrorCollection",
1292
+ allow_control_chars=kwargs.get('allow_control_chars'),
1293
+ operation_name=operation_name,
1294
+ api_reference_link=api_reference_link,
1295
+ required_arguments=required_arguments)
1296
+
1297
+ def list_work_request_logs(self, work_request_id, **kwargs):
1298
+ """
1299
+ Returns a (paginated) list of logs for the work request with the specified ID.
1300
+
1301
+
1302
+ :param str work_request_id: (required)
1303
+ The ID of the asynchronous work request.
1304
+
1305
+ :param str opc_request_id: (optional)
1306
+ The client request ID for tracing.
1307
+
1308
+ :param str page: (optional)
1309
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1310
+
1311
+ :param int limit: (optional)
1312
+ The maximum number of items to return.
1313
+
1314
+ :param str sort_by: (optional)
1315
+ The field to sort by. You can specify only one sort order. The default order for `timestamp` is descending.
1316
+
1317
+ Allowed values are: "timestamp"
1318
+
1319
+ :param str sort_order: (optional)
1320
+ The sort order to use, either 'ASC' or 'DESC'.
1321
+
1322
+ Allowed values are: "ASC", "DESC"
1323
+
1324
+ :param obj retry_strategy: (optional)
1325
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1326
+
1327
+ 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.
1328
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1329
+
1330
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1331
+
1332
+ :param bool allow_control_chars: (optional)
1333
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1334
+ By default, the response will not allow control characters in strings
1335
+
1336
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.WorkRequestLogEntryCollection`
1337
+ :rtype: :class:`~oci.response.Response`
1338
+
1339
+ :example:
1340
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1341
+ """
1342
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1343
+ required_arguments = ['workRequestId']
1344
+ resource_path = "/workRequests/{workRequestId}/logs"
1345
+ method = "GET"
1346
+ operation_name = "list_work_request_logs"
1347
+ api_reference_link = ""
1348
+
1349
+ # Don't accept unknown kwargs
1350
+ expected_kwargs = [
1351
+ "allow_control_chars",
1352
+ "retry_strategy",
1353
+ "opc_request_id",
1354
+ "page",
1355
+ "limit",
1356
+ "sort_by",
1357
+ "sort_order"
1358
+ ]
1359
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1360
+ if extra_kwargs:
1361
+ raise ValueError(
1362
+ f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1363
+
1364
+ path_params = {
1365
+ "workRequestId": work_request_id
1366
+ }
1367
+
1368
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1369
+
1370
+ for (k, v) in six.iteritems(path_params):
1371
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1372
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1373
+
1374
+ if 'sort_by' in kwargs:
1375
+ sort_by_allowed_values = ["timestamp"]
1376
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1377
+ raise ValueError(
1378
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1379
+ )
1380
+
1381
+ if 'sort_order' in kwargs:
1382
+ sort_order_allowed_values = ["ASC", "DESC"]
1383
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1384
+ raise ValueError(
1385
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1386
+ )
1387
+
1388
+ query_params = {
1389
+ "page": kwargs.get("page", missing),
1390
+ "limit": kwargs.get("limit", missing),
1391
+ "sortBy": kwargs.get("sort_by", missing),
1392
+ "sortOrder": kwargs.get("sort_order", missing)
1393
+ }
1394
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1395
+
1396
+ header_params = {
1397
+ "accept": "application/json",
1398
+ "content-type": "application/json",
1399
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1400
+ }
1401
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1402
+
1403
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1404
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1405
+ client_retry_strategy=self.retry_strategy
1406
+ )
1407
+ if retry_strategy is None:
1408
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1409
+
1410
+ if retry_strategy:
1411
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1412
+ self.base_client.add_opc_client_retries_header(header_params)
1413
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1414
+ return retry_strategy.make_retrying_call(
1415
+ self.base_client.call_api,
1416
+ resource_path=resource_path,
1417
+ method=method,
1418
+ path_params=path_params,
1419
+ query_params=query_params,
1420
+ header_params=header_params,
1421
+ response_type="WorkRequestLogEntryCollection",
1422
+ allow_control_chars=kwargs.get('allow_control_chars'),
1423
+ operation_name=operation_name,
1424
+ api_reference_link=api_reference_link,
1425
+ required_arguments=required_arguments)
1426
+ else:
1427
+ return self.base_client.call_api(
1428
+ resource_path=resource_path,
1429
+ method=method,
1430
+ path_params=path_params,
1431
+ query_params=query_params,
1432
+ header_params=header_params,
1433
+ response_type="WorkRequestLogEntryCollection",
1434
+ allow_control_chars=kwargs.get('allow_control_chars'),
1435
+ operation_name=operation_name,
1436
+ api_reference_link=api_reference_link,
1437
+ required_arguments=required_arguments)
1438
+
1439
+ def list_work_requests(self, **kwargs):
1440
+ """
1441
+ Lists all work requests in the specified compartment.
1442
+
1443
+
1444
+ :param str compartment_id: (optional)
1445
+ A filter to return only the resources that match the specified compartment `OCID`__.
1446
+
1447
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1448
+
1449
+ :param str work_request_id: (optional)
1450
+ The ID of the asynchronous work request.
1451
+
1452
+ :param str status: (optional)
1453
+ A filter to return only resources with a lifecycle state that matches the specified operation status.
1454
+
1455
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
1456
+
1457
+ :param str resource_id: (optional)
1458
+ The ID of the resource affected by the work request.
1459
+
1460
+ :param str opc_request_id: (optional)
1461
+ The client request ID for tracing.
1462
+
1463
+ :param str page: (optional)
1464
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1465
+
1466
+ :param int limit: (optional)
1467
+ The maximum number of items to return.
1468
+
1469
+ :param str sort_order: (optional)
1470
+ The sort order to use, either 'ASC' or 'DESC'.
1471
+
1472
+ Allowed values are: "ASC", "DESC"
1473
+
1474
+ :param str sort_by: (optional)
1475
+ The field to sort by. You can specify only one sort order. The default order for `timeAccepted` is descending.
1476
+
1477
+ Allowed values are: "timeAccepted"
1478
+
1479
+ :param obj retry_strategy: (optional)
1480
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1481
+
1482
+ 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.
1483
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1484
+
1485
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1486
+
1487
+ :param bool allow_control_chars: (optional)
1488
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1489
+ By default, the response will not allow control characters in strings
1490
+
1491
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.cluster_placement_groups.models.WorkRequestSummaryCollection`
1492
+ :rtype: :class:`~oci.response.Response`
1493
+
1494
+ :example:
1495
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
1496
+ """
1497
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1498
+ required_arguments = []
1499
+ resource_path = "/workRequests"
1500
+ method = "GET"
1501
+ operation_name = "list_work_requests"
1502
+ api_reference_link = ""
1503
+
1504
+ # Don't accept unknown kwargs
1505
+ expected_kwargs = [
1506
+ "allow_control_chars",
1507
+ "retry_strategy",
1508
+ "compartment_id",
1509
+ "work_request_id",
1510
+ "status",
1511
+ "resource_id",
1512
+ "opc_request_id",
1513
+ "page",
1514
+ "limit",
1515
+ "sort_order",
1516
+ "sort_by"
1517
+ ]
1518
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1519
+ if extra_kwargs:
1520
+ raise ValueError(
1521
+ f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
1522
+
1523
+ if 'status' in kwargs:
1524
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
1525
+ if kwargs['status'] not in status_allowed_values:
1526
+ raise ValueError(
1527
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
1528
+ )
1529
+
1530
+ if 'sort_order' in kwargs:
1531
+ sort_order_allowed_values = ["ASC", "DESC"]
1532
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1533
+ raise ValueError(
1534
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1535
+ )
1536
+
1537
+ if 'sort_by' in kwargs:
1538
+ sort_by_allowed_values = ["timeAccepted"]
1539
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1540
+ raise ValueError(
1541
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1542
+ )
1543
+
1544
+ query_params = {
1545
+ "compartmentId": kwargs.get("compartment_id", missing),
1546
+ "workRequestId": kwargs.get("work_request_id", missing),
1547
+ "status": kwargs.get("status", missing),
1548
+ "resourceId": kwargs.get("resource_id", missing),
1549
+ "page": kwargs.get("page", missing),
1550
+ "limit": kwargs.get("limit", missing),
1551
+ "sortOrder": kwargs.get("sort_order", missing),
1552
+ "sortBy": kwargs.get("sort_by", missing)
1553
+ }
1554
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1555
+
1556
+ header_params = {
1557
+ "accept": "application/json",
1558
+ "content-type": "application/json",
1559
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1560
+ }
1561
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1562
+
1563
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1564
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1565
+ client_retry_strategy=self.retry_strategy
1566
+ )
1567
+ if retry_strategy is None:
1568
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1569
+
1570
+ if retry_strategy:
1571
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1572
+ self.base_client.add_opc_client_retries_header(header_params)
1573
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1574
+ return retry_strategy.make_retrying_call(
1575
+ self.base_client.call_api,
1576
+ resource_path=resource_path,
1577
+ method=method,
1578
+ query_params=query_params,
1579
+ header_params=header_params,
1580
+ response_type="WorkRequestSummaryCollection",
1581
+ allow_control_chars=kwargs.get('allow_control_chars'),
1582
+ operation_name=operation_name,
1583
+ api_reference_link=api_reference_link,
1584
+ required_arguments=required_arguments)
1585
+ else:
1586
+ return self.base_client.call_api(
1587
+ resource_path=resource_path,
1588
+ method=method,
1589
+ query_params=query_params,
1590
+ header_params=header_params,
1591
+ response_type="WorkRequestSummaryCollection",
1592
+ allow_control_chars=kwargs.get('allow_control_chars'),
1593
+ operation_name=operation_name,
1594
+ api_reference_link=api_reference_link,
1595
+ required_arguments=required_arguments)
1596
+
1597
+ def update_cluster_placement_group(self, cluster_placement_group_id, update_cluster_placement_group_details, **kwargs):
1598
+ """
1599
+ Updates the specified cluster placement group.
1600
+
1601
+
1602
+ :param str cluster_placement_group_id: (required)
1603
+ A unique cluster placement group identifier.
1604
+
1605
+ :param oci.cluster_placement_groups.models.UpdateClusterPlacementGroupDetails update_cluster_placement_group_details: (required)
1606
+ The details of the cluster placement group to update.
1607
+
1608
+ :param str if_match: (optional)
1609
+ For optimistic concurrency control. In the PUT or DELETE call
1610
+ for a resource, set the `if-match` parameter to the value of the
1611
+ etag from a previous GET or POST response for that resource.
1612
+ The resource will be updated or deleted only if the etag you
1613
+ provide matches the resource's current etag value.
1614
+
1615
+ :param str opc_request_id: (optional)
1616
+ The client request ID for tracing.
1617
+
1618
+ :param obj retry_strategy: (optional)
1619
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1620
+
1621
+ 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.
1622
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1623
+
1624
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1625
+
1626
+ :param bool allow_control_chars: (optional)
1627
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1628
+ By default, the response will not allow control characters in strings
1629
+
1630
+ :return: A :class:`~oci.response.Response` object with data of type None
1631
+ :rtype: :class:`~oci.response.Response`
1632
+
1633
+ :example:
1634
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/clusterplacementgroups/update_cluster_placement_group.py.html>`__ to see an example of how to use update_cluster_placement_group API.
1635
+ """
1636
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1637
+ required_arguments = ['clusterPlacementGroupId']
1638
+ resource_path = "/clusterPlacementGroups/{clusterPlacementGroupId}"
1639
+ method = "PUT"
1640
+ operation_name = "update_cluster_placement_group"
1641
+ api_reference_link = ""
1642
+
1643
+ # Don't accept unknown kwargs
1644
+ expected_kwargs = [
1645
+ "allow_control_chars",
1646
+ "retry_strategy",
1647
+ "if_match",
1648
+ "opc_request_id"
1649
+ ]
1650
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1651
+ if extra_kwargs:
1652
+ raise ValueError(
1653
+ f"update_cluster_placement_group got unknown kwargs: {extra_kwargs!r}")
1654
+
1655
+ path_params = {
1656
+ "clusterPlacementGroupId": cluster_placement_group_id
1657
+ }
1658
+
1659
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1660
+
1661
+ for (k, v) in six.iteritems(path_params):
1662
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1663
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1664
+
1665
+ header_params = {
1666
+ "accept": "application/json",
1667
+ "content-type": "application/json",
1668
+ "if-match": kwargs.get("if_match", missing),
1669
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1670
+ }
1671
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1672
+
1673
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1674
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1675
+ client_retry_strategy=self.retry_strategy
1676
+ )
1677
+ if retry_strategy is None:
1678
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1679
+
1680
+ if retry_strategy:
1681
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1682
+ self.base_client.add_opc_client_retries_header(header_params)
1683
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1684
+ return retry_strategy.make_retrying_call(
1685
+ self.base_client.call_api,
1686
+ resource_path=resource_path,
1687
+ method=method,
1688
+ path_params=path_params,
1689
+ header_params=header_params,
1690
+ body=update_cluster_placement_group_details,
1691
+ allow_control_chars=kwargs.get('allow_control_chars'),
1692
+ operation_name=operation_name,
1693
+ api_reference_link=api_reference_link,
1694
+ required_arguments=required_arguments)
1695
+ else:
1696
+ return self.base_client.call_api(
1697
+ resource_path=resource_path,
1698
+ method=method,
1699
+ path_params=path_params,
1700
+ header_params=header_params,
1701
+ body=update_cluster_placement_group_details,
1702
+ allow_control_chars=kwargs.get('allow_control_chars'),
1703
+ operation_name=operation_name,
1704
+ api_reference_link=api_reference_link,
1705
+ required_arguments=required_arguments)