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
@@ -1,2489 +0,0 @@
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: 20191031
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 application_migration_type_mapping
20
- missing = Sentinel("Missing")
21
-
22
-
23
- class ApplicationMigrationClient(object):
24
- """
25
- Application Migration simplifies the migration of applications from Oracle Cloud Infrastructure Classic to Oracle Cloud Infrastructure.
26
- You can use Application Migration API to migrate applications, such as Oracle Java Cloud Service, SOA Cloud Service, and Integration Classic
27
- instances, to Oracle Cloud Infrastructure. For more information, see
28
- [Overview of Application Migration](/iaas/application-migration/appmigrationoverview.htm).
29
- """
30
-
31
- def __init__(self, config, **kwargs):
32
- """
33
- Creates a new service client
34
-
35
- :param dict config:
36
- Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
37
- 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
38
- the dict using :py:meth:`~oci.config.validate_config`
39
-
40
- :param str service_endpoint: (optional)
41
- The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
42
- 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
43
- need to specify a service endpoint.
44
-
45
- :param timeout: (optional)
46
- 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
47
- 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
48
- a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
49
- :type timeout: float or tuple(float, float)
50
-
51
- :param signer: (optional)
52
- 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
53
- provided in the config parameter.
54
-
55
- One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
56
- by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
57
- :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
58
-
59
- :param obj retry_strategy: (optional)
60
- 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.
61
- Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
62
- Any value provided at the operation level will override whatever is specified at the client level.
63
-
64
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
65
- 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>`__.
66
-
67
- :param obj circuit_breaker_strategy: (optional)
68
- A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
69
- This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
70
- The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
71
-
72
- :param function circuit_breaker_callback: (optional)
73
- Callback function to receive any exceptions triggerred by the circuit breaker.
74
-
75
- :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
76
- 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.
77
-
78
- :param allow_control_chars: (optional)
79
- 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
80
- allow control characters to be in the response object.
81
- """
82
- if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("application_migration"):
83
- 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")
84
-
85
- validate_config(config, signer=kwargs.get('signer'))
86
- if 'signer' in kwargs:
87
- signer = kwargs['signer']
88
-
89
- elif AUTHENTICATION_TYPE_FIELD_NAME in config:
90
- signer = get_signer_from_authentication_type(config)
91
-
92
- else:
93
- signer = Signer(
94
- tenancy=config["tenancy"],
95
- user=config["user"],
96
- fingerprint=config["fingerprint"],
97
- private_key_file_location=config.get("key_file"),
98
- pass_phrase=get_config_value_or_default(config, "pass_phrase"),
99
- private_key_content=config.get("key_content")
100
- )
101
-
102
- base_client_init_kwargs = {
103
- 'regional_client': True,
104
- 'service_endpoint': kwargs.get('service_endpoint'),
105
- 'base_path': '/20191031',
106
- 'service_endpoint_template': 'https://applicationmigration.{region}.oci.{secondLevelDomain}',
107
- 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
108
- 'skip_deserialization': kwargs.get('skip_deserialization', False),
109
- 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
110
- 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
111
- }
112
- if 'timeout' in kwargs:
113
- base_client_init_kwargs['timeout'] = kwargs.get('timeout')
114
- if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
115
- base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
116
- if 'allow_control_chars' in kwargs:
117
- base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
118
- self.base_client = BaseClient("application_migration", config, signer, application_migration_type_mapping, **base_client_init_kwargs)
119
- self.retry_strategy = kwargs.get('retry_strategy')
120
- self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
121
-
122
- def cancel_work_request(self, work_request_id, **kwargs):
123
- """
124
- Cancels the specified work request. When you cancel a work request, it causes the in-progress task to be canceled.
125
- For example, if the create migration work request is in the accepted or in progress state for a long time, you can cancel the work request.
126
-
127
- When you cancel a work request, the state of the work request changes to cancelling, and then to the cancelled state.
128
-
129
-
130
- :param str work_request_id: (required)
131
- The `OCID`__ of the work request.
132
-
133
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
134
-
135
- :param str opc_request_id: (optional)
136
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
137
- particular request, please provide the request ID.
138
-
139
- :param str if_match: (optional)
140
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
141
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
142
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
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 None
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.125.2/applicationmigration/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
161
- """
162
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
163
- required_arguments = ['workRequestId']
164
- resource_path = "/workRequests/{workRequestId}"
165
- method = "DELETE"
166
- operation_name = "cancel_work_request"
167
- api_reference_link = ""
168
-
169
- # Don't accept unknown kwargs
170
- expected_kwargs = [
171
- "allow_control_chars",
172
- "retry_strategy",
173
- "opc_request_id",
174
- "if_match"
175
- ]
176
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
177
- if extra_kwargs:
178
- raise ValueError(
179
- f"cancel_work_request got unknown kwargs: {extra_kwargs!r}")
180
-
181
- path_params = {
182
- "workRequestId": work_request_id
183
- }
184
-
185
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
186
-
187
- for (k, v) in six.iteritems(path_params):
188
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
189
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
190
-
191
- header_params = {
192
- "accept": "application/json",
193
- "content-type": "application/json",
194
- "opc-request-id": kwargs.get("opc_request_id", missing),
195
- "if-match": kwargs.get("if_match", missing)
196
- }
197
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
198
-
199
- retry_strategy = self.base_client.get_preferred_retry_strategy(
200
- operation_retry_strategy=kwargs.get('retry_strategy'),
201
- client_retry_strategy=self.retry_strategy
202
- )
203
-
204
- if retry_strategy:
205
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
206
- self.base_client.add_opc_client_retries_header(header_params)
207
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
208
- return retry_strategy.make_retrying_call(
209
- self.base_client.call_api,
210
- resource_path=resource_path,
211
- method=method,
212
- path_params=path_params,
213
- header_params=header_params,
214
- allow_control_chars=kwargs.get('allow_control_chars'),
215
- operation_name=operation_name,
216
- api_reference_link=api_reference_link,
217
- required_arguments=required_arguments)
218
- else:
219
- return self.base_client.call_api(
220
- resource_path=resource_path,
221
- method=method,
222
- path_params=path_params,
223
- header_params=header_params,
224
- allow_control_chars=kwargs.get('allow_control_chars'),
225
- operation_name=operation_name,
226
- api_reference_link=api_reference_link,
227
- required_arguments=required_arguments)
228
-
229
- def change_migration_compartment(self, migration_id, change_migration_compartment_details, **kwargs):
230
- """
231
- Moves the specified migration into a different compartment within the same tenancy. For information about moving resources between compartments,
232
- see `Moving Resources to a Different Compartment`__.
233
-
234
- __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
235
-
236
-
237
- :param str migration_id: (required)
238
- The `OCID`__ of the migration.
239
-
240
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
241
-
242
- :param oci.application_migration.models.ChangeCompartmentDetails change_migration_compartment_details: (required)
243
- The updated compartment details
244
-
245
- :param str if_match: (optional)
246
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
247
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
248
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
249
-
250
- :param str opc_request_id: (optional)
251
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
252
- particular request, please provide the request ID.
253
-
254
- :param str opc_retry_token: (optional)
255
- A token that uniquely identifies a request so it can be retried in case of a timeout or
256
- server error without risk of retrying the same action. Retry tokens expire after
257
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
258
- if a resource has been deleted and purged from the system, then a retry of the original
259
- creation request may be rejected.
260
-
261
- :param obj retry_strategy: (optional)
262
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
263
-
264
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
265
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
266
-
267
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
268
-
269
- :param bool allow_control_chars: (optional)
270
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
271
- By default, the response will not allow control characters in strings
272
-
273
- :return: A :class:`~oci.response.Response` object with data of type None
274
- :rtype: :class:`~oci.response.Response`
275
-
276
- :example:
277
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/change_migration_compartment.py.html>`__ to see an example of how to use change_migration_compartment API.
278
- """
279
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
280
- required_arguments = ['migrationId']
281
- resource_path = "/migrations/{migrationId}/actions/changeCompartment"
282
- method = "POST"
283
- operation_name = "change_migration_compartment"
284
- api_reference_link = ""
285
-
286
- # Don't accept unknown kwargs
287
- expected_kwargs = [
288
- "allow_control_chars",
289
- "retry_strategy",
290
- "if_match",
291
- "opc_request_id",
292
- "opc_retry_token"
293
- ]
294
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
295
- if extra_kwargs:
296
- raise ValueError(
297
- f"change_migration_compartment got unknown kwargs: {extra_kwargs!r}")
298
-
299
- path_params = {
300
- "migrationId": migration_id
301
- }
302
-
303
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
304
-
305
- for (k, v) in six.iteritems(path_params):
306
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
307
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
308
-
309
- header_params = {
310
- "accept": "application/json",
311
- "content-type": "application/json",
312
- "if-match": kwargs.get("if_match", missing),
313
- "opc-request-id": kwargs.get("opc_request_id", missing),
314
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
315
- }
316
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
317
-
318
- retry_strategy = self.base_client.get_preferred_retry_strategy(
319
- operation_retry_strategy=kwargs.get('retry_strategy'),
320
- client_retry_strategy=self.retry_strategy
321
- )
322
-
323
- if retry_strategy:
324
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
325
- self.base_client.add_opc_retry_token_if_needed(header_params)
326
- self.base_client.add_opc_client_retries_header(header_params)
327
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
328
- return retry_strategy.make_retrying_call(
329
- self.base_client.call_api,
330
- resource_path=resource_path,
331
- method=method,
332
- path_params=path_params,
333
- header_params=header_params,
334
- body=change_migration_compartment_details,
335
- allow_control_chars=kwargs.get('allow_control_chars'),
336
- operation_name=operation_name,
337
- api_reference_link=api_reference_link,
338
- required_arguments=required_arguments)
339
- else:
340
- return self.base_client.call_api(
341
- resource_path=resource_path,
342
- method=method,
343
- path_params=path_params,
344
- header_params=header_params,
345
- body=change_migration_compartment_details,
346
- allow_control_chars=kwargs.get('allow_control_chars'),
347
- operation_name=operation_name,
348
- api_reference_link=api_reference_link,
349
- required_arguments=required_arguments)
350
-
351
- def change_source_compartment(self, source_id, change_source_compartment_details, **kwargs):
352
- """
353
- Moves the specified source into a different compartment within the same tenancy. For information about moving resources
354
- between compartments, see `Moving Resources to a Different Compartment`__.
355
-
356
- __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
357
-
358
-
359
- :param str source_id: (required)
360
- The `OCID`__ of the source.
361
-
362
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
363
-
364
- :param oci.application_migration.models.ChangeCompartmentDetails change_source_compartment_details: (required)
365
- The updated compartment details
366
-
367
- :param str if_match: (optional)
368
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
369
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
370
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
371
-
372
- :param str opc_request_id: (optional)
373
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
374
- particular request, please provide the request ID.
375
-
376
- :param str opc_retry_token: (optional)
377
- A token that uniquely identifies a request so it can be retried in case of a timeout or
378
- server error without risk of retrying the same action. Retry tokens expire after
379
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
380
- if a resource has been deleted and purged from the system, then a retry of the original
381
- creation request may be rejected.
382
-
383
- :param obj retry_strategy: (optional)
384
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
385
-
386
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
387
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
388
-
389
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
390
-
391
- :param bool allow_control_chars: (optional)
392
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
393
- By default, the response will not allow control characters in strings
394
-
395
- :return: A :class:`~oci.response.Response` object with data of type None
396
- :rtype: :class:`~oci.response.Response`
397
-
398
- :example:
399
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/change_source_compartment.py.html>`__ to see an example of how to use change_source_compartment API.
400
- """
401
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
402
- required_arguments = ['sourceId']
403
- resource_path = "/sources/{sourceId}/actions/changeCompartment"
404
- method = "POST"
405
- operation_name = "change_source_compartment"
406
- api_reference_link = ""
407
-
408
- # Don't accept unknown kwargs
409
- expected_kwargs = [
410
- "allow_control_chars",
411
- "retry_strategy",
412
- "if_match",
413
- "opc_request_id",
414
- "opc_retry_token"
415
- ]
416
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
417
- if extra_kwargs:
418
- raise ValueError(
419
- f"change_source_compartment got unknown kwargs: {extra_kwargs!r}")
420
-
421
- path_params = {
422
- "sourceId": source_id
423
- }
424
-
425
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
426
-
427
- for (k, v) in six.iteritems(path_params):
428
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
429
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
430
-
431
- header_params = {
432
- "accept": "application/json",
433
- "content-type": "application/json",
434
- "if-match": kwargs.get("if_match", missing),
435
- "opc-request-id": kwargs.get("opc_request_id", missing),
436
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
437
- }
438
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
439
-
440
- retry_strategy = self.base_client.get_preferred_retry_strategy(
441
- operation_retry_strategy=kwargs.get('retry_strategy'),
442
- client_retry_strategy=self.retry_strategy
443
- )
444
-
445
- if retry_strategy:
446
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
447
- self.base_client.add_opc_retry_token_if_needed(header_params)
448
- self.base_client.add_opc_client_retries_header(header_params)
449
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
450
- return retry_strategy.make_retrying_call(
451
- self.base_client.call_api,
452
- resource_path=resource_path,
453
- method=method,
454
- path_params=path_params,
455
- header_params=header_params,
456
- body=change_source_compartment_details,
457
- allow_control_chars=kwargs.get('allow_control_chars'),
458
- operation_name=operation_name,
459
- api_reference_link=api_reference_link,
460
- required_arguments=required_arguments)
461
- else:
462
- return self.base_client.call_api(
463
- resource_path=resource_path,
464
- method=method,
465
- path_params=path_params,
466
- header_params=header_params,
467
- body=change_source_compartment_details,
468
- allow_control_chars=kwargs.get('allow_control_chars'),
469
- operation_name=operation_name,
470
- api_reference_link=api_reference_link,
471
- required_arguments=required_arguments)
472
-
473
- def create_migration(self, create_migration_details, **kwargs):
474
- """
475
- Creates a migration. A migration represents the end-to-end workflow of moving an application from a source environment to Oracle Cloud
476
- Infrastructure. Each migration moves a single application to Oracle Cloud Infrastructure. For more information,
477
- see `Manage Migrations`__.
478
-
479
- When you create a migration, provide the required information to let Application Migration access the source environment.
480
- Application Migration uses this information to access the application in the source environment and discover application artifacts.
481
-
482
- All Oracle Cloud Infrastructure resources, including migrations, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID).
483
- When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on
484
- that resource type, or by viewing the resource in the Console. For more information, see Resource Identifiers.
485
-
486
- After you send your request, a migration is created in the compartment that contains the source. The new migration's lifecycle state
487
- will temporarily be <code>CREATING</code> and the state of the migration will be <code>DISCOVERING_APPLICATION</code>. During this phase,
488
- Application Migration sets the template for the <code>serviceConfig</code> and <code>applicationConfig</code> fields of the migration.
489
- When this operation is complete, the state of the migration changes to <code>MISSING_CONFIG_VALUES</code>.
490
- Next, you'll need to update the migration to provide configuration values. Before updating the
491
- migration, ensure that its state has changed to <code>MISSING_CONFIG_VALUES</code>.
492
-
493
- To track the progress of this operation, you can monitor the status of the Create Migration and Discover Application work requests
494
- by using the <code>:func:`get_work_request`</code> REST API operation on the work request or by viewing the status of the work request in
495
- the console.
496
-
497
- __ https://docs.cloud.oracle.com/iaas/application-migration/manage_migrations.htm
498
-
499
-
500
- :param oci.application_migration.models.CreateMigrationDetails create_migration_details: (required)
501
- The properties for creating a migration.
502
-
503
- :param str opc_request_id: (optional)
504
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
505
- particular request, please provide the request ID.
506
-
507
- :param str opc_retry_token: (optional)
508
- A token that uniquely identifies a request so it can be retried in case of a timeout or
509
- server error without risk of retrying the same action. Retry tokens expire after
510
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
511
- if a resource has been deleted and purged from the system, then a retry of the original
512
- creation request may be rejected.
513
-
514
- :param obj retry_strategy: (optional)
515
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
516
-
517
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
518
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
519
-
520
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
521
-
522
- :param bool allow_control_chars: (optional)
523
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
524
- By default, the response will not allow control characters in strings
525
-
526
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.application_migration.models.Migration`
527
- :rtype: :class:`~oci.response.Response`
528
-
529
- :example:
530
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/create_migration.py.html>`__ to see an example of how to use create_migration API.
531
- """
532
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
533
- required_arguments = []
534
- resource_path = "/migrations"
535
- method = "POST"
536
- operation_name = "create_migration"
537
- api_reference_link = ""
538
-
539
- # Don't accept unknown kwargs
540
- expected_kwargs = [
541
- "allow_control_chars",
542
- "retry_strategy",
543
- "opc_request_id",
544
- "opc_retry_token"
545
- ]
546
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
547
- if extra_kwargs:
548
- raise ValueError(
549
- f"create_migration got unknown kwargs: {extra_kwargs!r}")
550
-
551
- header_params = {
552
- "accept": "application/json",
553
- "content-type": "application/json",
554
- "opc-request-id": kwargs.get("opc_request_id", missing),
555
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
556
- }
557
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
558
-
559
- retry_strategy = self.base_client.get_preferred_retry_strategy(
560
- operation_retry_strategy=kwargs.get('retry_strategy'),
561
- client_retry_strategy=self.retry_strategy
562
- )
563
-
564
- if retry_strategy:
565
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
566
- self.base_client.add_opc_retry_token_if_needed(header_params)
567
- self.base_client.add_opc_client_retries_header(header_params)
568
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
569
- return retry_strategy.make_retrying_call(
570
- self.base_client.call_api,
571
- resource_path=resource_path,
572
- method=method,
573
- header_params=header_params,
574
- body=create_migration_details,
575
- response_type="Migration",
576
- allow_control_chars=kwargs.get('allow_control_chars'),
577
- operation_name=operation_name,
578
- api_reference_link=api_reference_link,
579
- required_arguments=required_arguments)
580
- else:
581
- return self.base_client.call_api(
582
- resource_path=resource_path,
583
- method=method,
584
- header_params=header_params,
585
- body=create_migration_details,
586
- response_type="Migration",
587
- allow_control_chars=kwargs.get('allow_control_chars'),
588
- operation_name=operation_name,
589
- api_reference_link=api_reference_link,
590
- required_arguments=required_arguments)
591
-
592
- def create_source(self, create_source_details, **kwargs):
593
- """
594
- Creates a source in the specified compartment. In Application Migration, a source refers to the environment from which the application
595
- is being migrated. For more information, see `Manage Sources`__.
596
-
597
- All Oracle Cloud Infrastructure resources, including sources, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier (OCID).
598
- When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation
599
- on that resource type, or by viewing the resource in the Console.
600
-
601
- After you send your request, a source is created in the specified compartment. The new source's lifecycle state will temporarily be
602
- <code>CREATING</code>. Application Migration connects to the source environment with the authentication credentials that you have provided.
603
- If the connection is established, the status of the source changes to <code>ACTIVE</code> and Application Migration fetches the list of
604
- applications that are available for migration in the source environment.
605
-
606
- To track the progress of the operation, you can monitor the status of the Create Source work request by using the
607
- <code>:func:`get_work_request`</code> REST API operation on the work request or by viewing the status of the work request in the console.
608
-
609
- Ensure that the state of the source has changed to <code>ACTIVE</code>, before you retrieve the list of applications from
610
- the source environment using the <code>:func:`list_source_applications`</code> REST API call.
611
-
612
- __ https://docs.cloud.oracle.com/iaas/application-migration/manage_sources.htm
613
-
614
-
615
- :param oci.application_migration.models.CreateSourceDetails create_source_details: (required)
616
- The properties for creating a source.
617
-
618
- :param str opc_request_id: (optional)
619
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
620
- particular request, please provide the request ID.
621
-
622
- :param str opc_retry_token: (optional)
623
- A token that uniquely identifies a request so it can be retried in case of a timeout or
624
- server error without risk of retrying the same action. Retry tokens expire after
625
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
626
- if a resource has been deleted and purged from the system, then a retry of the original
627
- creation request may be rejected.
628
-
629
- :param obj retry_strategy: (optional)
630
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
631
-
632
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
633
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
634
-
635
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
636
-
637
- :param bool allow_control_chars: (optional)
638
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
639
- By default, the response will not allow control characters in strings
640
-
641
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.application_migration.models.Source`
642
- :rtype: :class:`~oci.response.Response`
643
-
644
- :example:
645
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/create_source.py.html>`__ to see an example of how to use create_source API.
646
- """
647
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
648
- required_arguments = []
649
- resource_path = "/sources"
650
- method = "POST"
651
- operation_name = "create_source"
652
- api_reference_link = ""
653
-
654
- # Don't accept unknown kwargs
655
- expected_kwargs = [
656
- "allow_control_chars",
657
- "retry_strategy",
658
- "opc_request_id",
659
- "opc_retry_token"
660
- ]
661
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
662
- if extra_kwargs:
663
- raise ValueError(
664
- f"create_source got unknown kwargs: {extra_kwargs!r}")
665
-
666
- header_params = {
667
- "accept": "application/json",
668
- "content-type": "application/json",
669
- "opc-request-id": kwargs.get("opc_request_id", missing),
670
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
671
- }
672
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
673
-
674
- retry_strategy = self.base_client.get_preferred_retry_strategy(
675
- operation_retry_strategy=kwargs.get('retry_strategy'),
676
- client_retry_strategy=self.retry_strategy
677
- )
678
-
679
- if retry_strategy:
680
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
681
- self.base_client.add_opc_retry_token_if_needed(header_params)
682
- self.base_client.add_opc_client_retries_header(header_params)
683
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
684
- return retry_strategy.make_retrying_call(
685
- self.base_client.call_api,
686
- resource_path=resource_path,
687
- method=method,
688
- header_params=header_params,
689
- body=create_source_details,
690
- response_type="Source",
691
- allow_control_chars=kwargs.get('allow_control_chars'),
692
- operation_name=operation_name,
693
- api_reference_link=api_reference_link,
694
- required_arguments=required_arguments)
695
- else:
696
- return self.base_client.call_api(
697
- resource_path=resource_path,
698
- method=method,
699
- header_params=header_params,
700
- body=create_source_details,
701
- response_type="Source",
702
- allow_control_chars=kwargs.get('allow_control_chars'),
703
- operation_name=operation_name,
704
- api_reference_link=api_reference_link,
705
- required_arguments=required_arguments)
706
-
707
- def delete_migration(self, migration_id, **kwargs):
708
- """
709
- Deletes the specified migration.
710
-
711
- If you have migrated the application or for any other reason if you no longer require a migration, then you can delete the
712
- relevant migration. You can delete a migration, irrespective of its state. If any work request is being processed for the migration
713
- that you want to delete, then the associated work requests are cancelled and then the migration is deleted.
714
-
715
-
716
- :param str migration_id: (required)
717
- The `OCID`__ of the migration.
718
-
719
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
720
-
721
- :param str opc_request_id: (optional)
722
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
723
- particular request, please provide the request ID.
724
-
725
- :param str if_match: (optional)
726
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
727
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
728
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
729
-
730
- :param obj retry_strategy: (optional)
731
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
732
-
733
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
734
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
735
-
736
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
737
-
738
- :param bool allow_control_chars: (optional)
739
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
740
- By default, the response will not allow control characters in strings
741
-
742
- :return: A :class:`~oci.response.Response` object with data of type None
743
- :rtype: :class:`~oci.response.Response`
744
-
745
- :example:
746
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/delete_migration.py.html>`__ to see an example of how to use delete_migration API.
747
- """
748
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
749
- required_arguments = ['migrationId']
750
- resource_path = "/migrations/{migrationId}"
751
- method = "DELETE"
752
- operation_name = "delete_migration"
753
- api_reference_link = ""
754
-
755
- # Don't accept unknown kwargs
756
- expected_kwargs = [
757
- "allow_control_chars",
758
- "retry_strategy",
759
- "opc_request_id",
760
- "if_match"
761
- ]
762
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
763
- if extra_kwargs:
764
- raise ValueError(
765
- f"delete_migration got unknown kwargs: {extra_kwargs!r}")
766
-
767
- path_params = {
768
- "migrationId": migration_id
769
- }
770
-
771
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
772
-
773
- for (k, v) in six.iteritems(path_params):
774
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
775
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
776
-
777
- header_params = {
778
- "accept": "application/json",
779
- "content-type": "application/json",
780
- "opc-request-id": kwargs.get("opc_request_id", missing),
781
- "if-match": kwargs.get("if_match", missing)
782
- }
783
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
784
-
785
- retry_strategy = self.base_client.get_preferred_retry_strategy(
786
- operation_retry_strategy=kwargs.get('retry_strategy'),
787
- client_retry_strategy=self.retry_strategy
788
- )
789
-
790
- if retry_strategy:
791
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
792
- self.base_client.add_opc_client_retries_header(header_params)
793
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
794
- return retry_strategy.make_retrying_call(
795
- self.base_client.call_api,
796
- resource_path=resource_path,
797
- method=method,
798
- path_params=path_params,
799
- header_params=header_params,
800
- allow_control_chars=kwargs.get('allow_control_chars'),
801
- operation_name=operation_name,
802
- api_reference_link=api_reference_link,
803
- required_arguments=required_arguments)
804
- else:
805
- return self.base_client.call_api(
806
- resource_path=resource_path,
807
- method=method,
808
- path_params=path_params,
809
- header_params=header_params,
810
- allow_control_chars=kwargs.get('allow_control_chars'),
811
- operation_name=operation_name,
812
- api_reference_link=api_reference_link,
813
- required_arguments=required_arguments)
814
-
815
- def delete_source(self, source_id, **kwargs):
816
- """
817
- Deletes the specified source.
818
-
819
- Before deleting a source, you must delete all the migrations associated with the source.
820
- If you have migrated all the required applications in a source or for any other reason you no longer require a source, then you can
821
- delete the relevant source.
822
-
823
-
824
- :param str source_id: (required)
825
- The `OCID`__ of the source.
826
-
827
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
828
-
829
- :param str opc_request_id: (optional)
830
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
831
- particular request, please provide the request ID.
832
-
833
- :param str if_match: (optional)
834
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
835
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
836
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
837
-
838
- :param obj retry_strategy: (optional)
839
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
840
-
841
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
842
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
843
-
844
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
845
-
846
- :param bool allow_control_chars: (optional)
847
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
848
- By default, the response will not allow control characters in strings
849
-
850
- :return: A :class:`~oci.response.Response` object with data of type None
851
- :rtype: :class:`~oci.response.Response`
852
-
853
- :example:
854
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/delete_source.py.html>`__ to see an example of how to use delete_source API.
855
- """
856
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
857
- required_arguments = ['sourceId']
858
- resource_path = "/sources/{sourceId}"
859
- method = "DELETE"
860
- operation_name = "delete_source"
861
- api_reference_link = ""
862
-
863
- # Don't accept unknown kwargs
864
- expected_kwargs = [
865
- "allow_control_chars",
866
- "retry_strategy",
867
- "opc_request_id",
868
- "if_match"
869
- ]
870
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
871
- if extra_kwargs:
872
- raise ValueError(
873
- f"delete_source got unknown kwargs: {extra_kwargs!r}")
874
-
875
- path_params = {
876
- "sourceId": source_id
877
- }
878
-
879
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
880
-
881
- for (k, v) in six.iteritems(path_params):
882
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
883
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
884
-
885
- header_params = {
886
- "accept": "application/json",
887
- "content-type": "application/json",
888
- "opc-request-id": kwargs.get("opc_request_id", missing),
889
- "if-match": kwargs.get("if_match", missing)
890
- }
891
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
892
-
893
- retry_strategy = self.base_client.get_preferred_retry_strategy(
894
- operation_retry_strategy=kwargs.get('retry_strategy'),
895
- client_retry_strategy=self.retry_strategy
896
- )
897
-
898
- if retry_strategy:
899
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
900
- self.base_client.add_opc_client_retries_header(header_params)
901
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
902
- return retry_strategy.make_retrying_call(
903
- self.base_client.call_api,
904
- resource_path=resource_path,
905
- method=method,
906
- path_params=path_params,
907
- header_params=header_params,
908
- allow_control_chars=kwargs.get('allow_control_chars'),
909
- operation_name=operation_name,
910
- api_reference_link=api_reference_link,
911
- required_arguments=required_arguments)
912
- else:
913
- return self.base_client.call_api(
914
- resource_path=resource_path,
915
- method=method,
916
- path_params=path_params,
917
- header_params=header_params,
918
- allow_control_chars=kwargs.get('allow_control_chars'),
919
- operation_name=operation_name,
920
- api_reference_link=api_reference_link,
921
- required_arguments=required_arguments)
922
-
923
- def get_migration(self, migration_id, **kwargs):
924
- """
925
- Retrieves details of the specified migration.
926
-
927
-
928
- :param str migration_id: (required)
929
- The `OCID`__ of the migration.
930
-
931
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
932
-
933
- :param str opc_request_id: (optional)
934
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
935
- particular request, please provide the request ID.
936
-
937
- :param obj retry_strategy: (optional)
938
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
939
-
940
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
941
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
942
-
943
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
944
-
945
- :param bool allow_control_chars: (optional)
946
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
947
- By default, the response will not allow control characters in strings
948
-
949
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.application_migration.models.Migration`
950
- :rtype: :class:`~oci.response.Response`
951
-
952
- :example:
953
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/get_migration.py.html>`__ to see an example of how to use get_migration API.
954
- """
955
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
956
- required_arguments = ['migrationId']
957
- resource_path = "/migrations/{migrationId}"
958
- method = "GET"
959
- operation_name = "get_migration"
960
- api_reference_link = ""
961
-
962
- # Don't accept unknown kwargs
963
- expected_kwargs = [
964
- "allow_control_chars",
965
- "retry_strategy",
966
- "opc_request_id"
967
- ]
968
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
969
- if extra_kwargs:
970
- raise ValueError(
971
- f"get_migration got unknown kwargs: {extra_kwargs!r}")
972
-
973
- path_params = {
974
- "migrationId": migration_id
975
- }
976
-
977
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
978
-
979
- for (k, v) in six.iteritems(path_params):
980
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
981
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
982
-
983
- header_params = {
984
- "accept": "application/json",
985
- "content-type": "application/json",
986
- "opc-request-id": kwargs.get("opc_request_id", missing)
987
- }
988
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
989
-
990
- retry_strategy = self.base_client.get_preferred_retry_strategy(
991
- operation_retry_strategy=kwargs.get('retry_strategy'),
992
- client_retry_strategy=self.retry_strategy
993
- )
994
-
995
- if retry_strategy:
996
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
997
- self.base_client.add_opc_client_retries_header(header_params)
998
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
999
- return retry_strategy.make_retrying_call(
1000
- self.base_client.call_api,
1001
- resource_path=resource_path,
1002
- method=method,
1003
- path_params=path_params,
1004
- header_params=header_params,
1005
- response_type="Migration",
1006
- allow_control_chars=kwargs.get('allow_control_chars'),
1007
- operation_name=operation_name,
1008
- api_reference_link=api_reference_link,
1009
- required_arguments=required_arguments)
1010
- else:
1011
- return self.base_client.call_api(
1012
- resource_path=resource_path,
1013
- method=method,
1014
- path_params=path_params,
1015
- header_params=header_params,
1016
- response_type="Migration",
1017
- allow_control_chars=kwargs.get('allow_control_chars'),
1018
- operation_name=operation_name,
1019
- api_reference_link=api_reference_link,
1020
- required_arguments=required_arguments)
1021
-
1022
- def get_source(self, source_id, **kwargs):
1023
- """
1024
- Retrieves details of the specified source. Specify the OCID of the source for which you want to retrieve details.
1025
-
1026
-
1027
- :param str source_id: (required)
1028
- The `OCID`__ of the source.
1029
-
1030
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1031
-
1032
- :param str opc_request_id: (optional)
1033
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1034
- particular request, please provide the request ID.
1035
-
1036
- :param obj retry_strategy: (optional)
1037
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1038
-
1039
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1040
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1041
-
1042
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1043
-
1044
- :param bool allow_control_chars: (optional)
1045
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1046
- By default, the response will not allow control characters in strings
1047
-
1048
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.application_migration.models.Source`
1049
- :rtype: :class:`~oci.response.Response`
1050
-
1051
- :example:
1052
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/get_source.py.html>`__ to see an example of how to use get_source API.
1053
- """
1054
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1055
- required_arguments = ['sourceId']
1056
- resource_path = "/sources/{sourceId}"
1057
- method = "GET"
1058
- operation_name = "get_source"
1059
- api_reference_link = ""
1060
-
1061
- # Don't accept unknown kwargs
1062
- expected_kwargs = [
1063
- "allow_control_chars",
1064
- "retry_strategy",
1065
- "opc_request_id"
1066
- ]
1067
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1068
- if extra_kwargs:
1069
- raise ValueError(
1070
- f"get_source got unknown kwargs: {extra_kwargs!r}")
1071
-
1072
- path_params = {
1073
- "sourceId": source_id
1074
- }
1075
-
1076
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1077
-
1078
- for (k, v) in six.iteritems(path_params):
1079
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1080
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1081
-
1082
- header_params = {
1083
- "accept": "application/json",
1084
- "content-type": "application/json",
1085
- "opc-request-id": kwargs.get("opc_request_id", missing)
1086
- }
1087
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1088
-
1089
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1090
- operation_retry_strategy=kwargs.get('retry_strategy'),
1091
- client_retry_strategy=self.retry_strategy
1092
- )
1093
-
1094
- if retry_strategy:
1095
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1096
- self.base_client.add_opc_client_retries_header(header_params)
1097
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1098
- return retry_strategy.make_retrying_call(
1099
- self.base_client.call_api,
1100
- resource_path=resource_path,
1101
- method=method,
1102
- path_params=path_params,
1103
- header_params=header_params,
1104
- response_type="Source",
1105
- allow_control_chars=kwargs.get('allow_control_chars'),
1106
- operation_name=operation_name,
1107
- api_reference_link=api_reference_link,
1108
- required_arguments=required_arguments)
1109
- else:
1110
- return self.base_client.call_api(
1111
- resource_path=resource_path,
1112
- method=method,
1113
- path_params=path_params,
1114
- header_params=header_params,
1115
- response_type="Source",
1116
- allow_control_chars=kwargs.get('allow_control_chars'),
1117
- operation_name=operation_name,
1118
- api_reference_link=api_reference_link,
1119
- required_arguments=required_arguments)
1120
-
1121
- def get_work_request(self, work_request_id, **kwargs):
1122
- """
1123
- Gets the details of the specified work request.
1124
-
1125
-
1126
- :param str work_request_id: (required)
1127
- The `OCID`__ of the work request.
1128
-
1129
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1130
-
1131
- :param str opc_request_id: (optional)
1132
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1133
- particular request, please provide the request ID.
1134
-
1135
- :param obj retry_strategy: (optional)
1136
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1137
-
1138
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1139
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1140
-
1141
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1142
-
1143
- :param bool allow_control_chars: (optional)
1144
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1145
- By default, the response will not allow control characters in strings
1146
-
1147
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.application_migration.models.WorkRequest`
1148
- :rtype: :class:`~oci.response.Response`
1149
-
1150
- :example:
1151
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
1152
- """
1153
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1154
- required_arguments = ['workRequestId']
1155
- resource_path = "/workRequests/{workRequestId}"
1156
- method = "GET"
1157
- operation_name = "get_work_request"
1158
- api_reference_link = ""
1159
-
1160
- # Don't accept unknown kwargs
1161
- expected_kwargs = [
1162
- "allow_control_chars",
1163
- "retry_strategy",
1164
- "opc_request_id"
1165
- ]
1166
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1167
- if extra_kwargs:
1168
- raise ValueError(
1169
- f"get_work_request got unknown kwargs: {extra_kwargs!r}")
1170
-
1171
- path_params = {
1172
- "workRequestId": work_request_id
1173
- }
1174
-
1175
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1176
-
1177
- for (k, v) in six.iteritems(path_params):
1178
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1179
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1180
-
1181
- header_params = {
1182
- "accept": "application/json",
1183
- "content-type": "application/json",
1184
- "opc-request-id": kwargs.get("opc_request_id", missing)
1185
- }
1186
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1187
-
1188
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1189
- operation_retry_strategy=kwargs.get('retry_strategy'),
1190
- client_retry_strategy=self.retry_strategy
1191
- )
1192
-
1193
- if retry_strategy:
1194
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1195
- self.base_client.add_opc_client_retries_header(header_params)
1196
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1197
- return retry_strategy.make_retrying_call(
1198
- self.base_client.call_api,
1199
- resource_path=resource_path,
1200
- method=method,
1201
- path_params=path_params,
1202
- header_params=header_params,
1203
- response_type="WorkRequest",
1204
- allow_control_chars=kwargs.get('allow_control_chars'),
1205
- operation_name=operation_name,
1206
- api_reference_link=api_reference_link,
1207
- required_arguments=required_arguments)
1208
- else:
1209
- return self.base_client.call_api(
1210
- resource_path=resource_path,
1211
- method=method,
1212
- path_params=path_params,
1213
- header_params=header_params,
1214
- response_type="WorkRequest",
1215
- allow_control_chars=kwargs.get('allow_control_chars'),
1216
- operation_name=operation_name,
1217
- api_reference_link=api_reference_link,
1218
- required_arguments=required_arguments)
1219
-
1220
- def list_migrations(self, compartment_id, **kwargs):
1221
- """
1222
- Retrieves details of all the migrations that are available in the specified compartment.
1223
-
1224
-
1225
- :param str compartment_id: (required)
1226
- The `OCID`__ of a compartment. Retrieves details of objects in the specified compartment.
1227
-
1228
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1229
-
1230
- :param str opc_request_id: (optional)
1231
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1232
- particular request, please provide the request ID.
1233
-
1234
- :param str id: (optional)
1235
- The `OCID`__ on which to query for a migration.
1236
-
1237
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1238
-
1239
- :param int limit: (optional)
1240
- The number of items returned in a paginated `List` call. For information about pagination, see
1241
- `List Pagination`__.
1242
-
1243
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1244
-
1245
- :param str page: (optional)
1246
- The value of the `opc-next-page` response header from the preceding `List` call.
1247
- For information about pagination, see `List Pagination`__.
1248
-
1249
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1250
-
1251
- :param str sort_order: (optional)
1252
- The sort order, either `ASC` (ascending) or `DESC` (descending).
1253
-
1254
- Allowed values are: "ASC", "DESC"
1255
-
1256
- :param str sort_by: (optional)
1257
- Specifies the field on which to sort.
1258
- By default, `TIMECREATED` is ordered descending.
1259
- By default, `DISPLAYNAME` is ordered ascending. Note that you can sort only on one field.
1260
-
1261
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
1262
-
1263
- :param str display_name: (optional)
1264
- Display name on which to query.
1265
-
1266
- :param str lifecycle_state: (optional)
1267
- This field is not supported. Do not use.
1268
-
1269
- Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "SUCCEEDED", "DELETING", "DELETED"
1270
-
1271
- :param obj retry_strategy: (optional)
1272
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1273
-
1274
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1275
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1276
-
1277
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1278
-
1279
- :param bool allow_control_chars: (optional)
1280
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1281
- By default, the response will not allow control characters in strings
1282
-
1283
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.MigrationSummary`
1284
- :rtype: :class:`~oci.response.Response`
1285
-
1286
- :example:
1287
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_migrations.py.html>`__ to see an example of how to use list_migrations API.
1288
- """
1289
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1290
- required_arguments = ['compartmentId']
1291
- resource_path = "/migrations"
1292
- method = "GET"
1293
- operation_name = "list_migrations"
1294
- api_reference_link = ""
1295
-
1296
- # Don't accept unknown kwargs
1297
- expected_kwargs = [
1298
- "allow_control_chars",
1299
- "retry_strategy",
1300
- "opc_request_id",
1301
- "id",
1302
- "limit",
1303
- "page",
1304
- "sort_order",
1305
- "sort_by",
1306
- "display_name",
1307
- "lifecycle_state"
1308
- ]
1309
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1310
- if extra_kwargs:
1311
- raise ValueError(
1312
- f"list_migrations got unknown kwargs: {extra_kwargs!r}")
1313
-
1314
- if 'sort_order' in kwargs:
1315
- sort_order_allowed_values = ["ASC", "DESC"]
1316
- if kwargs['sort_order'] not in sort_order_allowed_values:
1317
- raise ValueError(
1318
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1319
- )
1320
-
1321
- if 'sort_by' in kwargs:
1322
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
1323
- if kwargs['sort_by'] not in sort_by_allowed_values:
1324
- raise ValueError(
1325
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1326
- )
1327
-
1328
- if 'lifecycle_state' in kwargs:
1329
- lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "SUCCEEDED", "DELETING", "DELETED"]
1330
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1331
- raise ValueError(
1332
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1333
- )
1334
-
1335
- query_params = {
1336
- "compartmentId": compartment_id,
1337
- "id": kwargs.get("id", missing),
1338
- "limit": kwargs.get("limit", missing),
1339
- "page": kwargs.get("page", missing),
1340
- "sortOrder": kwargs.get("sort_order", missing),
1341
- "sortBy": kwargs.get("sort_by", missing),
1342
- "displayName": kwargs.get("display_name", missing),
1343
- "lifecycleState": kwargs.get("lifecycle_state", missing)
1344
- }
1345
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1346
-
1347
- header_params = {
1348
- "accept": "application/json",
1349
- "content-type": "application/json",
1350
- "opc-request-id": kwargs.get("opc_request_id", missing)
1351
- }
1352
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1353
-
1354
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1355
- operation_retry_strategy=kwargs.get('retry_strategy'),
1356
- client_retry_strategy=self.retry_strategy
1357
- )
1358
-
1359
- if retry_strategy:
1360
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1361
- self.base_client.add_opc_client_retries_header(header_params)
1362
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1363
- return retry_strategy.make_retrying_call(
1364
- self.base_client.call_api,
1365
- resource_path=resource_path,
1366
- method=method,
1367
- query_params=query_params,
1368
- header_params=header_params,
1369
- response_type="list[MigrationSummary]",
1370
- allow_control_chars=kwargs.get('allow_control_chars'),
1371
- operation_name=operation_name,
1372
- api_reference_link=api_reference_link,
1373
- required_arguments=required_arguments)
1374
- else:
1375
- return self.base_client.call_api(
1376
- resource_path=resource_path,
1377
- method=method,
1378
- query_params=query_params,
1379
- header_params=header_params,
1380
- response_type="list[MigrationSummary]",
1381
- allow_control_chars=kwargs.get('allow_control_chars'),
1382
- operation_name=operation_name,
1383
- api_reference_link=api_reference_link,
1384
- required_arguments=required_arguments)
1385
-
1386
- def list_source_applications(self, source_id, compartment_id, **kwargs):
1387
- """
1388
- Retrieves details of all the applications associated with the specified source.
1389
- This list is generated dynamically by interrogating the source and the list changes as applications are started or
1390
- stopped in the source environment.
1391
-
1392
-
1393
- :param str source_id: (required)
1394
- The `OCID`__ of the source.
1395
-
1396
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1397
-
1398
- :param str compartment_id: (required)
1399
- The `OCID`__ of a compartment. Retrieves details of objects in the specified compartment.
1400
-
1401
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1402
-
1403
- :param str opc_request_id: (optional)
1404
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1405
- particular request, please provide the request ID.
1406
-
1407
- :param int limit: (optional)
1408
- The number of items returned in a paginated `List` call. For information about pagination, see
1409
- `List Pagination`__.
1410
-
1411
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1412
-
1413
- :param str page: (optional)
1414
- The value of the `opc-next-page` response header from the preceding `List` call.
1415
- For information about pagination, see `List Pagination`__.
1416
-
1417
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1418
-
1419
- :param str sort_order: (optional)
1420
- The sort order, either `ASC` (ascending) or `DESC` (descending).
1421
-
1422
- Allowed values are: "ASC", "DESC"
1423
-
1424
- :param str sort_by: (optional)
1425
- Specifies the field on which to sort.
1426
- By default, `TIMECREATED` is ordered descending.
1427
- By default, `DISPLAYNAME` is ordered ascending. Note that you can sort only on one field.
1428
-
1429
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
1430
-
1431
- :param str display_name: (optional)
1432
- Resource name on which to query.
1433
-
1434
- :param obj retry_strategy: (optional)
1435
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1436
-
1437
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1438
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1439
-
1440
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1441
-
1442
- :param bool allow_control_chars: (optional)
1443
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1444
- By default, the response will not allow control characters in strings
1445
-
1446
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.SourceApplicationSummary`
1447
- :rtype: :class:`~oci.response.Response`
1448
-
1449
- :example:
1450
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_source_applications.py.html>`__ to see an example of how to use list_source_applications API.
1451
- """
1452
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1453
- required_arguments = ['sourceId', 'compartmentId']
1454
- resource_path = "/sources/{sourceId}/applications"
1455
- method = "GET"
1456
- operation_name = "list_source_applications"
1457
- api_reference_link = ""
1458
-
1459
- # Don't accept unknown kwargs
1460
- expected_kwargs = [
1461
- "allow_control_chars",
1462
- "retry_strategy",
1463
- "opc_request_id",
1464
- "limit",
1465
- "page",
1466
- "sort_order",
1467
- "sort_by",
1468
- "display_name"
1469
- ]
1470
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1471
- if extra_kwargs:
1472
- raise ValueError(
1473
- f"list_source_applications got unknown kwargs: {extra_kwargs!r}")
1474
-
1475
- path_params = {
1476
- "sourceId": source_id
1477
- }
1478
-
1479
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1480
-
1481
- for (k, v) in six.iteritems(path_params):
1482
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1483
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1484
-
1485
- if 'sort_order' in kwargs:
1486
- sort_order_allowed_values = ["ASC", "DESC"]
1487
- if kwargs['sort_order'] not in sort_order_allowed_values:
1488
- raise ValueError(
1489
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1490
- )
1491
-
1492
- if 'sort_by' in kwargs:
1493
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
1494
- if kwargs['sort_by'] not in sort_by_allowed_values:
1495
- raise ValueError(
1496
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1497
- )
1498
-
1499
- query_params = {
1500
- "limit": kwargs.get("limit", missing),
1501
- "page": kwargs.get("page", missing),
1502
- "sortOrder": kwargs.get("sort_order", missing),
1503
- "sortBy": kwargs.get("sort_by", missing),
1504
- "compartmentId": compartment_id,
1505
- "displayName": kwargs.get("display_name", missing)
1506
- }
1507
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1508
-
1509
- header_params = {
1510
- "accept": "application/json",
1511
- "content-type": "application/json",
1512
- "opc-request-id": kwargs.get("opc_request_id", missing)
1513
- }
1514
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1515
-
1516
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1517
- operation_retry_strategy=kwargs.get('retry_strategy'),
1518
- client_retry_strategy=self.retry_strategy
1519
- )
1520
-
1521
- if retry_strategy:
1522
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1523
- self.base_client.add_opc_client_retries_header(header_params)
1524
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1525
- return retry_strategy.make_retrying_call(
1526
- self.base_client.call_api,
1527
- resource_path=resource_path,
1528
- method=method,
1529
- path_params=path_params,
1530
- query_params=query_params,
1531
- header_params=header_params,
1532
- response_type="list[SourceApplicationSummary]",
1533
- allow_control_chars=kwargs.get('allow_control_chars'),
1534
- operation_name=operation_name,
1535
- api_reference_link=api_reference_link,
1536
- required_arguments=required_arguments)
1537
- else:
1538
- return self.base_client.call_api(
1539
- resource_path=resource_path,
1540
- method=method,
1541
- path_params=path_params,
1542
- query_params=query_params,
1543
- header_params=header_params,
1544
- response_type="list[SourceApplicationSummary]",
1545
- allow_control_chars=kwargs.get('allow_control_chars'),
1546
- operation_name=operation_name,
1547
- api_reference_link=api_reference_link,
1548
- required_arguments=required_arguments)
1549
-
1550
- def list_sources(self, compartment_id, **kwargs):
1551
- """
1552
- Retrieves details of all the sources that are available in the specified compartment and match the specified query criteria.
1553
- If you don't specify any query criteria, then details of all the sources are displayed.
1554
- To filter the retrieved results, you can pass one or more of the following query parameters, by appending them to the URI
1555
- as shown in the following example.
1556
-
1557
-
1558
- :param str compartment_id: (required)
1559
- The `OCID`__ of a compartment. Retrieves details of objects in the specified compartment.
1560
-
1561
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1562
-
1563
- :param str opc_request_id: (optional)
1564
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1565
- particular request, please provide the request ID.
1566
-
1567
- :param str id: (optional)
1568
- The `OCID`__ on which to query for a source.
1569
-
1570
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1571
-
1572
- :param int limit: (optional)
1573
- The number of items returned in a paginated `List` call. For information about pagination, see
1574
- `List Pagination`__.
1575
-
1576
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1577
-
1578
- :param str page: (optional)
1579
- The value of the `opc-next-page` response header from the preceding `List` call.
1580
- For information about pagination, see `List Pagination`__.
1581
-
1582
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1583
-
1584
- :param str sort_order: (optional)
1585
- The sort order, either `ASC` (ascending) or `DESC` (descending).
1586
-
1587
- Allowed values are: "ASC", "DESC"
1588
-
1589
- :param str sort_by: (optional)
1590
- Specifies the field on which to sort.
1591
- By default, `TIMECREATED` is ordered descending.
1592
- By default, `DISPLAYNAME` is ordered ascending. Note that you can sort only on one field.
1593
-
1594
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
1595
-
1596
- :param str display_name: (optional)
1597
- Display name on which to query.
1598
-
1599
- :param str lifecycle_state: (optional)
1600
- Retrieves details of sources in the specified lifecycle state.
1601
-
1602
- Allowed values are: "CREATING", "DELETING", "UPDATING", "ACTIVE", "INACTIVE", "DELETED"
1603
-
1604
- :param obj retry_strategy: (optional)
1605
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1606
-
1607
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1608
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1609
-
1610
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1611
-
1612
- :param bool allow_control_chars: (optional)
1613
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1614
- By default, the response will not allow control characters in strings
1615
-
1616
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.SourceSummary`
1617
- :rtype: :class:`~oci.response.Response`
1618
-
1619
- :example:
1620
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_sources.py.html>`__ to see an example of how to use list_sources API.
1621
- """
1622
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1623
- required_arguments = ['compartmentId']
1624
- resource_path = "/sources"
1625
- method = "GET"
1626
- operation_name = "list_sources"
1627
- api_reference_link = ""
1628
-
1629
- # Don't accept unknown kwargs
1630
- expected_kwargs = [
1631
- "allow_control_chars",
1632
- "retry_strategy",
1633
- "opc_request_id",
1634
- "id",
1635
- "limit",
1636
- "page",
1637
- "sort_order",
1638
- "sort_by",
1639
- "display_name",
1640
- "lifecycle_state"
1641
- ]
1642
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1643
- if extra_kwargs:
1644
- raise ValueError(
1645
- f"list_sources got unknown kwargs: {extra_kwargs!r}")
1646
-
1647
- if 'sort_order' in kwargs:
1648
- sort_order_allowed_values = ["ASC", "DESC"]
1649
- if kwargs['sort_order'] not in sort_order_allowed_values:
1650
- raise ValueError(
1651
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1652
- )
1653
-
1654
- if 'sort_by' in kwargs:
1655
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
1656
- if kwargs['sort_by'] not in sort_by_allowed_values:
1657
- raise ValueError(
1658
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1659
- )
1660
-
1661
- if 'lifecycle_state' in kwargs:
1662
- lifecycle_state_allowed_values = ["CREATING", "DELETING", "UPDATING", "ACTIVE", "INACTIVE", "DELETED"]
1663
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1664
- raise ValueError(
1665
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1666
- )
1667
-
1668
- query_params = {
1669
- "compartmentId": compartment_id,
1670
- "id": kwargs.get("id", missing),
1671
- "limit": kwargs.get("limit", missing),
1672
- "page": kwargs.get("page", missing),
1673
- "sortOrder": kwargs.get("sort_order", missing),
1674
- "sortBy": kwargs.get("sort_by", missing),
1675
- "displayName": kwargs.get("display_name", missing),
1676
- "lifecycleState": kwargs.get("lifecycle_state", missing)
1677
- }
1678
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1679
-
1680
- header_params = {
1681
- "accept": "application/json",
1682
- "content-type": "application/json",
1683
- "opc-request-id": kwargs.get("opc_request_id", missing)
1684
- }
1685
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1686
-
1687
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1688
- operation_retry_strategy=kwargs.get('retry_strategy'),
1689
- client_retry_strategy=self.retry_strategy
1690
- )
1691
-
1692
- if retry_strategy:
1693
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1694
- self.base_client.add_opc_client_retries_header(header_params)
1695
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1696
- return retry_strategy.make_retrying_call(
1697
- self.base_client.call_api,
1698
- resource_path=resource_path,
1699
- method=method,
1700
- query_params=query_params,
1701
- header_params=header_params,
1702
- response_type="list[SourceSummary]",
1703
- allow_control_chars=kwargs.get('allow_control_chars'),
1704
- operation_name=operation_name,
1705
- api_reference_link=api_reference_link,
1706
- required_arguments=required_arguments)
1707
- else:
1708
- return self.base_client.call_api(
1709
- resource_path=resource_path,
1710
- method=method,
1711
- query_params=query_params,
1712
- header_params=header_params,
1713
- response_type="list[SourceSummary]",
1714
- allow_control_chars=kwargs.get('allow_control_chars'),
1715
- operation_name=operation_name,
1716
- api_reference_link=api_reference_link,
1717
- required_arguments=required_arguments)
1718
-
1719
- def list_work_request_errors(self, work_request_id, **kwargs):
1720
- """
1721
- Retrieves details of the errors encountered while executing an operation that is tracked by the specified work request.
1722
-
1723
-
1724
- :param str work_request_id: (required)
1725
- The `OCID`__ of the work request.
1726
-
1727
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1728
-
1729
- :param int limit: (optional)
1730
- The number of items returned in a paginated `List` call. For information about pagination, see
1731
- `List Pagination`__.
1732
-
1733
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1734
-
1735
- :param str page: (optional)
1736
- The value of the `opc-next-page` response header from the preceding `List` call.
1737
- For information about pagination, see `List Pagination`__.
1738
-
1739
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1740
-
1741
- :param str sort_order: (optional)
1742
- The sort order, either `ASC` (ascending) or `DESC` (descending).
1743
-
1744
- Allowed values are: "ASC", "DESC"
1745
-
1746
- :param str opc_request_id: (optional)
1747
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1748
- particular request, please provide the request ID.
1749
-
1750
- :param obj retry_strategy: (optional)
1751
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1752
-
1753
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1754
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1755
-
1756
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1757
-
1758
- :param bool allow_control_chars: (optional)
1759
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1760
- By default, the response will not allow control characters in strings
1761
-
1762
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.WorkRequestError`
1763
- :rtype: :class:`~oci.response.Response`
1764
-
1765
- :example:
1766
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
1767
- """
1768
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1769
- required_arguments = ['workRequestId']
1770
- resource_path = "/workRequests/{workRequestId}/errors"
1771
- method = "GET"
1772
- operation_name = "list_work_request_errors"
1773
- api_reference_link = ""
1774
-
1775
- # Don't accept unknown kwargs
1776
- expected_kwargs = [
1777
- "allow_control_chars",
1778
- "retry_strategy",
1779
- "limit",
1780
- "page",
1781
- "sort_order",
1782
- "opc_request_id"
1783
- ]
1784
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1785
- if extra_kwargs:
1786
- raise ValueError(
1787
- f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
1788
-
1789
- path_params = {
1790
- "workRequestId": work_request_id
1791
- }
1792
-
1793
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1794
-
1795
- for (k, v) in six.iteritems(path_params):
1796
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1797
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1798
-
1799
- if 'sort_order' in kwargs:
1800
- sort_order_allowed_values = ["ASC", "DESC"]
1801
- if kwargs['sort_order'] not in sort_order_allowed_values:
1802
- raise ValueError(
1803
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1804
- )
1805
-
1806
- query_params = {
1807
- "limit": kwargs.get("limit", missing),
1808
- "page": kwargs.get("page", missing),
1809
- "sortOrder": kwargs.get("sort_order", missing)
1810
- }
1811
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1812
-
1813
- header_params = {
1814
- "accept": "application/json",
1815
- "content-type": "application/json",
1816
- "opc-request-id": kwargs.get("opc_request_id", missing)
1817
- }
1818
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1819
-
1820
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1821
- operation_retry_strategy=kwargs.get('retry_strategy'),
1822
- client_retry_strategy=self.retry_strategy
1823
- )
1824
-
1825
- if retry_strategy:
1826
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1827
- self.base_client.add_opc_client_retries_header(header_params)
1828
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1829
- return retry_strategy.make_retrying_call(
1830
- self.base_client.call_api,
1831
- resource_path=resource_path,
1832
- method=method,
1833
- path_params=path_params,
1834
- query_params=query_params,
1835
- header_params=header_params,
1836
- response_type="list[WorkRequestError]",
1837
- allow_control_chars=kwargs.get('allow_control_chars'),
1838
- operation_name=operation_name,
1839
- api_reference_link=api_reference_link,
1840
- required_arguments=required_arguments)
1841
- else:
1842
- return self.base_client.call_api(
1843
- resource_path=resource_path,
1844
- method=method,
1845
- path_params=path_params,
1846
- query_params=query_params,
1847
- header_params=header_params,
1848
- response_type="list[WorkRequestError]",
1849
- allow_control_chars=kwargs.get('allow_control_chars'),
1850
- operation_name=operation_name,
1851
- api_reference_link=api_reference_link,
1852
- required_arguments=required_arguments)
1853
-
1854
- def list_work_request_logs(self, work_request_id, **kwargs):
1855
- """
1856
- Retrieves logs for the specified work request.
1857
-
1858
-
1859
- :param str work_request_id: (required)
1860
- The `OCID`__ of the work request.
1861
-
1862
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1863
-
1864
- :param int limit: (optional)
1865
- The number of items returned in a paginated `List` call. For information about pagination, see
1866
- `List Pagination`__.
1867
-
1868
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1869
-
1870
- :param str page: (optional)
1871
- The value of the `opc-next-page` response header from the preceding `List` call.
1872
- For information about pagination, see `List Pagination`__.
1873
-
1874
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
1875
-
1876
- :param str sort_order: (optional)
1877
- The sort order, either `ASC` (ascending) or `DESC` (descending).
1878
-
1879
- Allowed values are: "ASC", "DESC"
1880
-
1881
- :param str opc_request_id: (optional)
1882
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1883
- particular request, please provide the request ID.
1884
-
1885
- :param obj retry_strategy: (optional)
1886
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1887
-
1888
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
1889
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1890
-
1891
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1892
-
1893
- :param bool allow_control_chars: (optional)
1894
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1895
- By default, the response will not allow control characters in strings
1896
-
1897
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.WorkRequestLogEntry`
1898
- :rtype: :class:`~oci.response.Response`
1899
-
1900
- :example:
1901
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
1902
- """
1903
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1904
- required_arguments = ['workRequestId']
1905
- resource_path = "/workRequests/{workRequestId}/logs"
1906
- method = "GET"
1907
- operation_name = "list_work_request_logs"
1908
- api_reference_link = ""
1909
-
1910
- # Don't accept unknown kwargs
1911
- expected_kwargs = [
1912
- "allow_control_chars",
1913
- "retry_strategy",
1914
- "limit",
1915
- "page",
1916
- "sort_order",
1917
- "opc_request_id"
1918
- ]
1919
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1920
- if extra_kwargs:
1921
- raise ValueError(
1922
- f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
1923
-
1924
- path_params = {
1925
- "workRequestId": work_request_id
1926
- }
1927
-
1928
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1929
-
1930
- for (k, v) in six.iteritems(path_params):
1931
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1932
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1933
-
1934
- if 'sort_order' in kwargs:
1935
- sort_order_allowed_values = ["ASC", "DESC"]
1936
- if kwargs['sort_order'] not in sort_order_allowed_values:
1937
- raise ValueError(
1938
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1939
- )
1940
-
1941
- query_params = {
1942
- "limit": kwargs.get("limit", missing),
1943
- "page": kwargs.get("page", missing),
1944
- "sortOrder": kwargs.get("sort_order", missing)
1945
- }
1946
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1947
-
1948
- header_params = {
1949
- "accept": "application/json",
1950
- "content-type": "application/json",
1951
- "opc-request-id": kwargs.get("opc_request_id", missing)
1952
- }
1953
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1954
-
1955
- retry_strategy = self.base_client.get_preferred_retry_strategy(
1956
- operation_retry_strategy=kwargs.get('retry_strategy'),
1957
- client_retry_strategy=self.retry_strategy
1958
- )
1959
-
1960
- if retry_strategy:
1961
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1962
- self.base_client.add_opc_client_retries_header(header_params)
1963
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1964
- return retry_strategy.make_retrying_call(
1965
- self.base_client.call_api,
1966
- resource_path=resource_path,
1967
- method=method,
1968
- path_params=path_params,
1969
- query_params=query_params,
1970
- header_params=header_params,
1971
- response_type="list[WorkRequestLogEntry]",
1972
- allow_control_chars=kwargs.get('allow_control_chars'),
1973
- operation_name=operation_name,
1974
- api_reference_link=api_reference_link,
1975
- required_arguments=required_arguments)
1976
- else:
1977
- return self.base_client.call_api(
1978
- resource_path=resource_path,
1979
- method=method,
1980
- path_params=path_params,
1981
- query_params=query_params,
1982
- header_params=header_params,
1983
- response_type="list[WorkRequestLogEntry]",
1984
- allow_control_chars=kwargs.get('allow_control_chars'),
1985
- operation_name=operation_name,
1986
- api_reference_link=api_reference_link,
1987
- required_arguments=required_arguments)
1988
-
1989
- def list_work_requests(self, compartment_id, **kwargs):
1990
- """
1991
- Retrieves details of all the work requests and match the specified query criteria. To filter the retrieved results, you can pass one or more of the following query parameters, by appending them to the URI as shown in the following example.
1992
-
1993
-
1994
- :param str compartment_id: (required)
1995
- The `OCID`__ of a compartment. Retrieves details of objects in the specified compartment.
1996
-
1997
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
1998
-
1999
- :param str resource_id: (optional)
2000
- The `OCID`__ for a resource. Retrieves details of the specified resource.
2001
-
2002
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2003
-
2004
- :param str opc_request_id: (optional)
2005
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2006
- particular request, please provide the request ID.
2007
-
2008
- :param int limit: (optional)
2009
- The number of items returned in a paginated `List` call. For information about pagination, see
2010
- `List Pagination`__.
2011
-
2012
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
2013
-
2014
- :param str page: (optional)
2015
- The value of the `opc-next-page` response header from the preceding `List` call.
2016
- For information about pagination, see `List Pagination`__.
2017
-
2018
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
2019
-
2020
- :param obj retry_strategy: (optional)
2021
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2022
-
2023
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2024
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2025
-
2026
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2027
-
2028
- :param bool allow_control_chars: (optional)
2029
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2030
- By default, the response will not allow control characters in strings
2031
-
2032
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.application_migration.models.WorkRequestSummary`
2033
- :rtype: :class:`~oci.response.Response`
2034
-
2035
- :example:
2036
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
2037
- """
2038
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2039
- required_arguments = ['compartmentId']
2040
- resource_path = "/workRequests"
2041
- method = "GET"
2042
- operation_name = "list_work_requests"
2043
- api_reference_link = ""
2044
-
2045
- # Don't accept unknown kwargs
2046
- expected_kwargs = [
2047
- "allow_control_chars",
2048
- "retry_strategy",
2049
- "resource_id",
2050
- "opc_request_id",
2051
- "limit",
2052
- "page"
2053
- ]
2054
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2055
- if extra_kwargs:
2056
- raise ValueError(
2057
- f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
2058
-
2059
- query_params = {
2060
- "compartmentId": compartment_id,
2061
- "resourceId": kwargs.get("resource_id", missing),
2062
- "limit": kwargs.get("limit", missing),
2063
- "page": kwargs.get("page", missing)
2064
- }
2065
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2066
-
2067
- header_params = {
2068
- "accept": "application/json",
2069
- "content-type": "application/json",
2070
- "opc-request-id": kwargs.get("opc_request_id", missing)
2071
- }
2072
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2073
-
2074
- retry_strategy = self.base_client.get_preferred_retry_strategy(
2075
- operation_retry_strategy=kwargs.get('retry_strategy'),
2076
- client_retry_strategy=self.retry_strategy
2077
- )
2078
-
2079
- if retry_strategy:
2080
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2081
- self.base_client.add_opc_client_retries_header(header_params)
2082
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2083
- return retry_strategy.make_retrying_call(
2084
- self.base_client.call_api,
2085
- resource_path=resource_path,
2086
- method=method,
2087
- query_params=query_params,
2088
- header_params=header_params,
2089
- response_type="list[WorkRequestSummary]",
2090
- allow_control_chars=kwargs.get('allow_control_chars'),
2091
- operation_name=operation_name,
2092
- api_reference_link=api_reference_link,
2093
- required_arguments=required_arguments)
2094
- else:
2095
- return self.base_client.call_api(
2096
- resource_path=resource_path,
2097
- method=method,
2098
- query_params=query_params,
2099
- header_params=header_params,
2100
- response_type="list[WorkRequestSummary]",
2101
- allow_control_chars=kwargs.get('allow_control_chars'),
2102
- operation_name=operation_name,
2103
- api_reference_link=api_reference_link,
2104
- required_arguments=required_arguments)
2105
-
2106
- def migrate_application(self, migration_id, **kwargs):
2107
- """
2108
- Starts migrating the specified application to Oracle Cloud Infrastructure.
2109
-
2110
- Before sending this request, ensure that you have provided configuration details to update the migration and the state of the migration
2111
- is <code>READY</code>.
2112
-
2113
- After you send this request, the migration's state will temporarily be <code>MIGRATING</code>.
2114
-
2115
- To track the progress of the operation, you can monitor the status of the Migrate Application work request by using the
2116
- <code>:func:`get_work_request`</code> REST API operation on the work request or by viewing the status of the work request in the console.
2117
- When this work request is processed successfully, Application Migration creates the required resources in the target environment
2118
- and the state of the migration changes to <code>MIGRATION_SUCCEEDED</code>.
2119
-
2120
-
2121
- :param str migration_id: (required)
2122
- The `OCID`__ of the migration.
2123
-
2124
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2125
-
2126
- :param str opc_request_id: (optional)
2127
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2128
- particular request, please provide the request ID.
2129
-
2130
- :param str if_match: (optional)
2131
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
2132
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
2133
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
2134
-
2135
- :param str opc_retry_token: (optional)
2136
- A token that uniquely identifies a request so it can be retried in case of a timeout or
2137
- server error without risk of retrying the same action. Retry tokens expire after
2138
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
2139
- if a resource has been deleted and purged from the system, then a retry of the original
2140
- creation request may be rejected.
2141
-
2142
- :param obj retry_strategy: (optional)
2143
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2144
-
2145
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2146
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2147
-
2148
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2149
-
2150
- :param bool allow_control_chars: (optional)
2151
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2152
- By default, the response will not allow control characters in strings
2153
-
2154
- :return: A :class:`~oci.response.Response` object with data of type None
2155
- :rtype: :class:`~oci.response.Response`
2156
-
2157
- :example:
2158
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/migrate_application.py.html>`__ to see an example of how to use migrate_application API.
2159
- """
2160
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2161
- required_arguments = ['migrationId']
2162
- resource_path = "/migrations/{migrationId}/actions/migrate"
2163
- method = "POST"
2164
- operation_name = "migrate_application"
2165
- api_reference_link = ""
2166
-
2167
- # Don't accept unknown kwargs
2168
- expected_kwargs = [
2169
- "allow_control_chars",
2170
- "retry_strategy",
2171
- "opc_request_id",
2172
- "if_match",
2173
- "opc_retry_token"
2174
- ]
2175
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2176
- if extra_kwargs:
2177
- raise ValueError(
2178
- f"migrate_application got unknown kwargs: {extra_kwargs!r}")
2179
-
2180
- path_params = {
2181
- "migrationId": migration_id
2182
- }
2183
-
2184
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2185
-
2186
- for (k, v) in six.iteritems(path_params):
2187
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2188
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2189
-
2190
- header_params = {
2191
- "accept": "application/json",
2192
- "content-type": "application/json",
2193
- "opc-request-id": kwargs.get("opc_request_id", missing),
2194
- "if-match": kwargs.get("if_match", missing),
2195
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
2196
- }
2197
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2198
-
2199
- retry_strategy = self.base_client.get_preferred_retry_strategy(
2200
- operation_retry_strategy=kwargs.get('retry_strategy'),
2201
- client_retry_strategy=self.retry_strategy
2202
- )
2203
-
2204
- if retry_strategy:
2205
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2206
- self.base_client.add_opc_retry_token_if_needed(header_params)
2207
- self.base_client.add_opc_client_retries_header(header_params)
2208
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2209
- return retry_strategy.make_retrying_call(
2210
- self.base_client.call_api,
2211
- resource_path=resource_path,
2212
- method=method,
2213
- path_params=path_params,
2214
- header_params=header_params,
2215
- allow_control_chars=kwargs.get('allow_control_chars'),
2216
- operation_name=operation_name,
2217
- api_reference_link=api_reference_link,
2218
- required_arguments=required_arguments)
2219
- else:
2220
- return self.base_client.call_api(
2221
- resource_path=resource_path,
2222
- method=method,
2223
- path_params=path_params,
2224
- header_params=header_params,
2225
- allow_control_chars=kwargs.get('allow_control_chars'),
2226
- operation_name=operation_name,
2227
- api_reference_link=api_reference_link,
2228
- required_arguments=required_arguments)
2229
-
2230
- def update_migration(self, migration_id, update_migration_details, **kwargs):
2231
- """
2232
- Updates the configuration details for the specified migration.
2233
-
2234
- When you create a migration, Application Migration sets the template for the <code>serviceConfig</code> and <code>applicationConfig</code>
2235
- attributes of the migration.
2236
- When you update the migration, you must provide values for these fields to specify configuration information for the application in the
2237
- target environment.
2238
-
2239
-
2240
-
2241
- Before updating the migration, complete the following tasks:
2242
- <ol>
2243
- <li>Identify the migration that you want to update and ensure that the migration is in the <code>MISSING_CONFIG_VALUES</code> state.</li>
2244
- <li>Get details of the migration using the <code>GetMigration</code> command. This returns the template for the <code>serviceConfig</code>
2245
- and <code>applicationConfig</code> attributes of the migration.</li>
2246
- <li>You must fill out the required details for the <code>serviceConfig</code> and <code>applicationConfig</code> attributes.
2247
- The <code>isRequired</code> attribute of a configuration property indicates whether it is mandatory to provide a value.</li>
2248
- <li>You can provide values for the optional configuration properties or you can delete the optional properties for which you do not
2249
- provide values. Note that you cannot add any property that is not present in the template.</li>
2250
- </ol>
2251
-
2252
- To update the migration, pass the configuration values in the request body. The information that you must provide depends on the type
2253
- of application that you are migrating. For reference information about configuration fields, see
2254
- `Provide Configuration Information`__.
2255
-
2256
- To track the progress of the operation, you can monitor the status of the Update Migration work request by using the
2257
- <code>:func:`get_work_request`</code> REST API operation on the work request or by viewing the status of the work request in the console.
2258
-
2259
- When the migration has been updated, the state of the migration changes to <code>READY</code>. After updating the migration,
2260
- you can start the migration whenever you are ready.
2261
-
2262
- __ https://docs.cloud.oracle.com/iaas/application-migration/manage_migrations.htm#provide_configuration_details
2263
-
2264
-
2265
- :param str migration_id: (required)
2266
- The `OCID`__ of the migration.
2267
-
2268
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2269
-
2270
- :param oci.application_migration.models.UpdateMigrationDetails update_migration_details: (required)
2271
- Updated configuration for the migration.
2272
-
2273
- :param str opc_request_id: (optional)
2274
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2275
- particular request, please provide the request ID.
2276
-
2277
- :param str opc_retry_token: (optional)
2278
- A token that uniquely identifies a request so it can be retried in case of a timeout or
2279
- server error without risk of retrying the same action. Retry tokens expire after
2280
- 24 hours, but can be invalidated before then due to conflicting operations. For example,
2281
- if a resource has been deleted and purged from the system, then a retry of the original
2282
- creation request may be rejected.
2283
-
2284
- :param str if_match: (optional)
2285
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
2286
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
2287
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
2288
-
2289
- :param obj retry_strategy: (optional)
2290
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2291
-
2292
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2293
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2294
-
2295
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2296
-
2297
- :param bool allow_control_chars: (optional)
2298
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2299
- By default, the response will not allow control characters in strings
2300
-
2301
- :return: A :class:`~oci.response.Response` object with data of type None
2302
- :rtype: :class:`~oci.response.Response`
2303
-
2304
- :example:
2305
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/update_migration.py.html>`__ to see an example of how to use update_migration API.
2306
- """
2307
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2308
- required_arguments = ['migrationId']
2309
- resource_path = "/migrations/{migrationId}"
2310
- method = "PUT"
2311
- operation_name = "update_migration"
2312
- api_reference_link = ""
2313
-
2314
- # Don't accept unknown kwargs
2315
- expected_kwargs = [
2316
- "allow_control_chars",
2317
- "retry_strategy",
2318
- "opc_request_id",
2319
- "opc_retry_token",
2320
- "if_match"
2321
- ]
2322
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2323
- if extra_kwargs:
2324
- raise ValueError(
2325
- f"update_migration got unknown kwargs: {extra_kwargs!r}")
2326
-
2327
- path_params = {
2328
- "migrationId": migration_id
2329
- }
2330
-
2331
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2332
-
2333
- for (k, v) in six.iteritems(path_params):
2334
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2335
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2336
-
2337
- header_params = {
2338
- "accept": "application/json",
2339
- "content-type": "application/json",
2340
- "opc-request-id": kwargs.get("opc_request_id", missing),
2341
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
2342
- "if-match": kwargs.get("if_match", missing)
2343
- }
2344
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2345
-
2346
- retry_strategy = self.base_client.get_preferred_retry_strategy(
2347
- operation_retry_strategy=kwargs.get('retry_strategy'),
2348
- client_retry_strategy=self.retry_strategy
2349
- )
2350
-
2351
- if retry_strategy:
2352
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2353
- self.base_client.add_opc_retry_token_if_needed(header_params)
2354
- self.base_client.add_opc_client_retries_header(header_params)
2355
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2356
- return retry_strategy.make_retrying_call(
2357
- self.base_client.call_api,
2358
- resource_path=resource_path,
2359
- method=method,
2360
- path_params=path_params,
2361
- header_params=header_params,
2362
- body=update_migration_details,
2363
- allow_control_chars=kwargs.get('allow_control_chars'),
2364
- operation_name=operation_name,
2365
- api_reference_link=api_reference_link,
2366
- required_arguments=required_arguments)
2367
- else:
2368
- return self.base_client.call_api(
2369
- resource_path=resource_path,
2370
- method=method,
2371
- path_params=path_params,
2372
- header_params=header_params,
2373
- body=update_migration_details,
2374
- allow_control_chars=kwargs.get('allow_control_chars'),
2375
- operation_name=operation_name,
2376
- api_reference_link=api_reference_link,
2377
- required_arguments=required_arguments)
2378
-
2379
- def update_source(self, source_id, update_source_details, **kwargs):
2380
- """
2381
- You can update the authorization details to access the source environment from which you want to migrate applications to Oracle Cloud
2382
- Infrastructure. You can also update the description and tags of a source.
2383
-
2384
- **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
2385
-
2386
-
2387
- :param str source_id: (required)
2388
- The `OCID`__ of the source.
2389
-
2390
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
2391
-
2392
- :param oci.application_migration.models.UpdateSourceDetails update_source_details: (required)
2393
- Updated configuration for the source.
2394
-
2395
- :param str opc_request_id: (optional)
2396
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2397
- particular request, please provide the request ID.
2398
-
2399
- :param str if_match: (optional)
2400
- For optimistic concurrency control. In the `PUT` or `DELETE` call for a resource, set the `if-match`
2401
- parameter to the value of the etag from a previous `GET` or `POST` response for that resource. The resource
2402
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
2403
-
2404
- :param obj retry_strategy: (optional)
2405
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2406
-
2407
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2408
- The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2409
-
2410
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2411
-
2412
- :param bool allow_control_chars: (optional)
2413
- allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2414
- By default, the response will not allow control characters in strings
2415
-
2416
- :return: A :class:`~oci.response.Response` object with data of type None
2417
- :rtype: :class:`~oci.response.Response`
2418
-
2419
- :example:
2420
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.125.2/applicationmigration/update_source.py.html>`__ to see an example of how to use update_source API.
2421
- """
2422
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2423
- required_arguments = ['sourceId']
2424
- resource_path = "/sources/{sourceId}"
2425
- method = "PUT"
2426
- operation_name = "update_source"
2427
- api_reference_link = ""
2428
-
2429
- # Don't accept unknown kwargs
2430
- expected_kwargs = [
2431
- "allow_control_chars",
2432
- "retry_strategy",
2433
- "opc_request_id",
2434
- "if_match"
2435
- ]
2436
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2437
- if extra_kwargs:
2438
- raise ValueError(
2439
- f"update_source got unknown kwargs: {extra_kwargs!r}")
2440
-
2441
- path_params = {
2442
- "sourceId": source_id
2443
- }
2444
-
2445
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2446
-
2447
- for (k, v) in six.iteritems(path_params):
2448
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2449
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2450
-
2451
- header_params = {
2452
- "accept": "application/json",
2453
- "content-type": "application/json",
2454
- "opc-request-id": kwargs.get("opc_request_id", missing),
2455
- "if-match": kwargs.get("if_match", missing)
2456
- }
2457
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2458
-
2459
- retry_strategy = self.base_client.get_preferred_retry_strategy(
2460
- operation_retry_strategy=kwargs.get('retry_strategy'),
2461
- client_retry_strategy=self.retry_strategy
2462
- )
2463
-
2464
- if retry_strategy:
2465
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2466
- self.base_client.add_opc_client_retries_header(header_params)
2467
- retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2468
- return retry_strategy.make_retrying_call(
2469
- self.base_client.call_api,
2470
- resource_path=resource_path,
2471
- method=method,
2472
- path_params=path_params,
2473
- header_params=header_params,
2474
- body=update_source_details,
2475
- allow_control_chars=kwargs.get('allow_control_chars'),
2476
- operation_name=operation_name,
2477
- api_reference_link=api_reference_link,
2478
- required_arguments=required_arguments)
2479
- else:
2480
- return self.base_client.call_api(
2481
- resource_path=resource_path,
2482
- method=method,
2483
- path_params=path_params,
2484
- header_params=header_params,
2485
- body=update_source_details,
2486
- allow_control_chars=kwargs.get('allow_control_chars'),
2487
- operation_name=operation_name,
2488
- api_reference_link=api_reference_link,
2489
- required_arguments=required_arguments)