oci 2.131.0__py3-none-any.whl → 2.132.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 (539) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +22 -22
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +17 -17
  8. oci/ai_vision/ai_service_vision_client.py +25 -25
  9. oci/analytics/analytics_client.py +142 -23
  10. oci/analytics/analytics_client_composite_operations.py +42 -0
  11. oci/analytics/models/__init__.py +2 -0
  12. oci/analytics/models/analytics_instance.py +123 -8
  13. oci/analytics/models/analytics_instance_summary.py +115 -0
  14. oci/analytics/models/capacity.py +8 -4
  15. oci/analytics/models/create_analytics_instance_details.py +121 -8
  16. oci/analytics/models/set_feature_bundle_details.py +96 -0
  17. oci/announcements_service/announcement_client.py +4 -4
  18. oci/announcements_service/announcement_subscription_client.py +9 -9
  19. oci/announcements_service/announcements_preferences_client.py +4 -4
  20. oci/apigateway/api_gateway_client.py +21 -21
  21. oci/apigateway/deployment_client.py +6 -6
  22. oci/apigateway/gateway_client.py +6 -6
  23. oci/apigateway/subscribers_client.py +6 -6
  24. oci/apigateway/usage_plans_client.py +6 -6
  25. oci/apigateway/work_requests_client.py +5 -5
  26. oci/apm_config/config_client.py +9 -9
  27. oci/apm_control_plane/apm_domain_client.py +14 -14
  28. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  29. oci/apm_traces/attributes_client.py +8 -8
  30. oci/apm_traces/query_client.py +2 -2
  31. oci/apm_traces/trace_client.py +4 -4
  32. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  33. oci/artifacts/artifacts_client.py +32 -32
  34. oci/audit/audit_client.py +3 -3
  35. oci/autoscaling/auto_scaling_client.py +11 -11
  36. oci/bastion/bastion_client.py +15 -15
  37. oci/bds/bds_client.py +72 -72
  38. oci/blockchain/blockchain_platform_client.py +27 -27
  39. oci/budget/budget_client.py +10 -10
  40. oci/capacity_management/capacity_management_client.py +22 -22
  41. oci/certificates/certificates_client.py +5 -5
  42. oci/certificates_management/certificates_management_client.py +32 -32
  43. oci/cims/incident_client.py +8 -8
  44. oci/cims/user_client.py +1 -1
  45. oci/cloud_bridge/common_client.py +5 -5
  46. oci/cloud_bridge/discovery_client.py +14 -14
  47. oci/cloud_bridge/inventory_client.py +16 -16
  48. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  49. oci/cloud_guard/cloud_guard_client.py +155 -155
  50. oci/cloud_migrations/migration_client.py +43 -43
  51. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  52. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  53. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  54. oci/compute_instance_agent/plugin_client.py +2 -2
  55. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  56. oci/container_engine/container_engine_client.py +44 -44
  57. oci/container_instances/container_instance_client.py +18 -18
  58. oci/core/blockstorage_client.py +60 -60
  59. oci/core/compute_client.py +102 -102
  60. oci/core/compute_management_client.py +32 -32
  61. oci/core/virtual_network_client.py +247 -247
  62. oci/dashboard_service/dashboard_client.py +6 -6
  63. oci/dashboard_service/dashboard_group_client.py +6 -6
  64. oci/data_catalog/data_catalog_client.py +149 -149
  65. oci/data_flow/data_flow_client.py +42 -42
  66. oci/data_integration/data_integration_client.py +163 -163
  67. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  68. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  69. oci/data_safe/data_safe_client.py +287 -287
  70. oci/data_science/data_science_client.py +91 -91
  71. oci/database/database_client.py +360 -360
  72. oci/database/models/autonomous_database_software_image.py +33 -2
  73. oci/database/models/autonomous_database_software_image_summary.py +33 -2
  74. oci/database/models/create_maintenance_run_details.py +46 -7
  75. oci/database/models/maintenance_run.py +44 -5
  76. oci/database/models/maintenance_run_summary.py +44 -5
  77. oci/database_management/db_management_client.py +208 -208
  78. oci/database_management/diagnosability_client.py +4 -4
  79. oci/database_management/managed_my_sql_databases_client.py +7 -7
  80. oci/database_management/models/__init__.py +18 -0
  81. oci/database_management/models/basic_database_connection_string_details.py +7 -6
  82. oci/database_management/models/connector_details.py +5 -5
  83. oci/database_management/models/database_connection_credentails_by_name.py +1 -1
  84. oci/database_management/models/database_connection_credentials.py +11 -3
  85. oci/database_management/models/database_connection_credentials_by_details.py +1 -1
  86. oci/database_management/models/database_connection_string_details.py +5 -5
  87. oci/database_management/models/database_diagnostics_and_management_feature_configuration.py +9 -7
  88. oci/database_management/models/database_diagnostics_and_management_feature_details.py +1 -1
  89. oci/database_management/models/database_feature_configuration.py +27 -11
  90. oci/database_management/models/database_feature_details.py +19 -3
  91. oci/database_management/models/database_lifecycle_feature_configuration.py +122 -0
  92. oci/database_management/models/database_lifecycle_management_feature_details.py +65 -0
  93. oci/database_management/models/database_named_credential_connection_details.py +88 -0
  94. oci/database_management/models/database_sql_watch_feature_configuration.py +73 -0
  95. oci/database_management/models/database_sql_watch_feature_details.py +65 -0
  96. oci/database_management/models/database_ssl_connection_credentials.py +1 -1
  97. oci/database_management/models/disable_database_management_feature_details.py +11 -3
  98. oci/database_management/models/disable_external_container_database_management_feature_details.py +11 -3
  99. oci/database_management/models/disable_external_non_container_database_management_feature_details.py +11 -3
  100. oci/database_management/models/disable_external_pluggable_database_management_feature_details.py +11 -3
  101. oci/database_management/models/disable_pluggable_database_management_feature_details.py +11 -3
  102. oci/database_management/models/external_database_diagnostics_and_management_feature_details.py +1 -1
  103. oci/database_management/models/external_database_feature_details.py +19 -3
  104. oci/database_management/models/external_database_lifecycle_management_feature_details.py +105 -0
  105. oci/database_management/models/external_database_sql_watch_feature_details.py +58 -0
  106. oci/database_management/models/external_database_summary.py +95 -2
  107. oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py +1 -1
  108. oci/database_management/models/external_pluggable_database_feature_details.py +19 -3
  109. oci/database_management/models/external_pluggable_database_lifecycle_management_feature_details.py +58 -0
  110. oci/database_management/models/external_pluggable_database_sql_watch_feature_details.py +58 -0
  111. oci/database_management/models/managed_database.py +64 -2
  112. oci/database_management/models/managed_database_summary.py +64 -2
  113. oci/database_management/perfhub_client.py +1 -1
  114. oci/database_management/sql_tuning_client.py +17 -17
  115. oci/database_migration/database_migration_client.py +42 -42
  116. oci/database_tools/database_tools_client.py +23 -23
  117. oci/demand_signal/occ_demand_signal_client.py +7 -7
  118. oci/desktops/desktop_service_client.py +21 -21
  119. oci/devops/devops_client.py +141 -141
  120. oci/disaster_recovery/disaster_recovery_client.py +29 -43
  121. oci/disaster_recovery/models/__init__.py +12 -0
  122. oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_container_database_details.py +107 -0
  123. oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +95 -3
  124. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +1 -1
  125. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +1 -1
  126. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
  127. oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
  128. oci/disaster_recovery/models/create_dr_protection_group_member_details.py +19 -3
  129. oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +1 -1
  130. oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +1 -1
  131. oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +1 -1
  132. oci/disaster_recovery/models/create_dr_protection_group_member_object_storage_bucket_details.py +128 -0
  133. oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +1 -1
  134. oci/disaster_recovery/models/dr_plan_step.py +99 -3
  135. oci/disaster_recovery/models/dr_plan_step_execution.py +99 -3
  136. oci/disaster_recovery/models/dr_protection_group_member.py +19 -3
  137. oci/disaster_recovery/models/dr_protection_group_member_autonomous_container_database.py +108 -0
  138. oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +96 -3
  139. oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +1 -1
  140. oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +1 -1
  141. oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +1 -1
  142. oci/disaster_recovery/models/dr_protection_group_member_database.py +1 -1
  143. oci/disaster_recovery/models/dr_protection_group_member_file_system.py +1 -1
  144. oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +1 -1
  145. oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +1 -1
  146. oci/disaster_recovery/models/dr_protection_group_member_object_storage_bucket.py +128 -0
  147. oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +1 -1
  148. oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_container_database_details.py +107 -0
  149. oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +95 -3
  150. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +1 -1
  151. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +1 -1
  152. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
  153. oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
  154. oci/disaster_recovery/models/update_dr_protection_group_member_details.py +19 -3
  155. oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +1 -1
  156. oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +1 -1
  157. oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +1 -1
  158. oci/disaster_recovery/models/update_dr_protection_group_member_object_storage_bucket_details.py +128 -0
  159. oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +1 -1
  160. oci/dns/dns_client.py +52 -52
  161. oci/dts/appliance_export_job_client.py +6 -6
  162. oci/dts/shipping_vendors_client.py +1 -1
  163. oci/dts/transfer_appliance_client.py +8 -8
  164. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  165. oci/dts/transfer_device_client.py +5 -5
  166. oci/dts/transfer_job_client.py +6 -6
  167. oci/dts/transfer_package_client.py +7 -7
  168. oci/em_warehouse/em_data_lake_client.py +13 -13
  169. oci/em_warehouse/em_warehouse_client.py +13 -13
  170. oci/email/email_client.py +31 -31
  171. oci/email_data_plane/email_dp_client.py +1 -1
  172. oci/events/events_client.py +6 -6
  173. oci/file_storage/file_storage_client.py +51 -51
  174. oci/fleet_apps_management/__init__.py +22 -0
  175. oci/fleet_apps_management/fleet_apps_management_admin_client.py +1077 -0
  176. oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +124 -0
  177. oci/fleet_apps_management/fleet_apps_management_client.py +4532 -0
  178. oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +692 -0
  179. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +685 -0
  180. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +157 -0
  181. oci/fleet_apps_management/fleet_apps_management_operations_client.py +1730 -0
  182. oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +270 -0
  183. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +683 -0
  184. oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +26 -0
  185. oci/fleet_apps_management/models/__init__.py +286 -0
  186. oci/fleet_apps_management/models/action_group.py +309 -0
  187. oci/fleet_apps_management/models/action_group_details.py +456 -0
  188. oci/fleet_apps_management/models/activity_resource_target.py +155 -0
  189. oci/fleet_apps_management/models/announcement_collection.py +72 -0
  190. oci/fleet_apps_management/models/announcement_summary.py +606 -0
  191. oci/fleet_apps_management/models/api_based_execution_details.py +82 -0
  192. oci/fleet_apps_management/models/associated_fleet_credential_details.py +190 -0
  193. oci/fleet_apps_management/models/associated_fleet_property_details.py +218 -0
  194. oci/fleet_apps_management/models/associated_fleet_resource_details.py +165 -0
  195. oci/fleet_apps_management/models/associated_local_task_details.py +281 -0
  196. oci/fleet_apps_management/models/associated_scheduler_definition.py +171 -0
  197. oci/fleet_apps_management/models/associated_shared_task_details.py +82 -0
  198. oci/fleet_apps_management/models/associated_task_details.py +109 -0
  199. oci/fleet_apps_management/models/associations.py +161 -0
  200. oci/fleet_apps_management/models/check_resource_tagging_details.py +134 -0
  201. oci/fleet_apps_management/models/compliance_report.py +189 -0
  202. oci/fleet_apps_management/models/compliance_report_patch_detail.py +196 -0
  203. oci/fleet_apps_management/models/compliance_report_product.py +103 -0
  204. oci/fleet_apps_management/models/compliance_report_resource.py +344 -0
  205. oci/fleet_apps_management/models/compliance_report_target.py +251 -0
  206. oci/fleet_apps_management/models/component_properties.py +154 -0
  207. oci/fleet_apps_management/models/condition.py +134 -0
  208. oci/fleet_apps_management/models/confirm_targets_details.py +72 -0
  209. oci/fleet_apps_management/models/content_details.py +101 -0
  210. oci/fleet_apps_management/models/create_fleet_credential_details.py +190 -0
  211. oci/fleet_apps_management/models/create_fleet_details.py +510 -0
  212. oci/fleet_apps_management/models/create_fleet_property_details.py +134 -0
  213. oci/fleet_apps_management/models/create_fleet_resource_details.py +196 -0
  214. oci/fleet_apps_management/models/create_maintenance_window_details.py +437 -0
  215. oci/fleet_apps_management/models/create_onboarding_details.py +134 -0
  216. oci/fleet_apps_management/models/create_property_details.py +238 -0
  217. oci/fleet_apps_management/models/create_scheduler_definition_details.py +328 -0
  218. oci/fleet_apps_management/models/credential_details.py +117 -0
  219. oci/fleet_apps_management/models/credential_entity_specific_details.py +101 -0
  220. oci/fleet_apps_management/models/details.py +224 -0
  221. oci/fleet_apps_management/models/discovered_target.py +196 -0
  222. oci/fleet_apps_management/models/entity_execution_details.py +341 -0
  223. oci/fleet_apps_management/models/execution.py +463 -0
  224. oci/fleet_apps_management/models/execution_collection.py +72 -0
  225. oci/fleet_apps_management/models/execution_details.py +109 -0
  226. oci/fleet_apps_management/models/execution_summary.py +405 -0
  227. oci/fleet_apps_management/models/execution_workflow_details.py +72 -0
  228. oci/fleet_apps_management/models/fleet.py +887 -0
  229. oci/fleet_apps_management/models/fleet_collection.py +72 -0
  230. oci/fleet_apps_management/models/fleet_credential.py +398 -0
  231. oci/fleet_apps_management/models/fleet_credential_collection.py +72 -0
  232. oci/fleet_apps_management/models/fleet_credential_summary.py +378 -0
  233. oci/fleet_apps_management/models/fleet_product_collection.py +72 -0
  234. oci/fleet_apps_management/models/fleet_product_summary.py +200 -0
  235. oci/fleet_apps_management/models/fleet_property.py +477 -0
  236. oci/fleet_apps_management/models/fleet_property_collection.py +72 -0
  237. oci/fleet_apps_management/models/fleet_property_summary.py +375 -0
  238. oci/fleet_apps_management/models/fleet_resource.py +717 -0
  239. oci/fleet_apps_management/models/fleet_resource_collection.py +72 -0
  240. oci/fleet_apps_management/models/fleet_resource_summary.py +693 -0
  241. oci/fleet_apps_management/models/fleet_summary.py +456 -0
  242. oci/fleet_apps_management/models/fleet_target.py +399 -0
  243. oci/fleet_apps_management/models/fleet_target_collection.py +72 -0
  244. oci/fleet_apps_management/models/fleet_target_summary.py +348 -0
  245. oci/fleet_apps_management/models/generate_compliance_report_details.py +72 -0
  246. oci/fleet_apps_management/models/group.py +150 -0
  247. oci/fleet_apps_management/models/input_argument.py +171 -0
  248. oci/fleet_apps_management/models/input_parameter.py +103 -0
  249. oci/fleet_apps_management/models/inventory_resource_collection.py +72 -0
  250. oci/fleet_apps_management/models/inventory_resource_summary.py +425 -0
  251. oci/fleet_apps_management/models/job_activity.py +310 -0
  252. oci/fleet_apps_management/models/key_encryption_credential_details.py +175 -0
  253. oci/fleet_apps_management/models/maintenance_window.py +688 -0
  254. oci/fleet_apps_management/models/maintenance_window_collection.py +72 -0
  255. oci/fleet_apps_management/models/maintenance_window_summary.py +656 -0
  256. oci/fleet_apps_management/models/model_property.py +641 -0
  257. oci/fleet_apps_management/models/notification_preferences.py +130 -0
  258. oci/fleet_apps_management/models/object_storage_bucket_content_details.py +176 -0
  259. oci/fleet_apps_management/models/onboarding.py +393 -0
  260. oci/fleet_apps_management/models/onboarding_collection.py +72 -0
  261. oci/fleet_apps_management/models/onboarding_policy_collection.py +72 -0
  262. oci/fleet_apps_management/models/onboarding_policy_summary.py +198 -0
  263. oci/fleet_apps_management/models/onboarding_summary.py +353 -0
  264. oci/fleet_apps_management/models/operation_runbook.py +103 -0
  265. oci/fleet_apps_management/models/outcome.py +134 -0
  266. oci/fleet_apps_management/models/output_variable_details.py +103 -0
  267. oci/fleet_apps_management/models/output_variable_input_argument.py +65 -0
  268. oci/fleet_apps_management/models/output_variable_mapping.py +99 -0
  269. oci/fleet_apps_management/models/plain_text_credential_details.py +82 -0
  270. oci/fleet_apps_management/models/preferences.py +134 -0
  271. oci/fleet_apps_management/models/properties.py +103 -0
  272. oci/fleet_apps_management/models/property_collection.py +72 -0
  273. oci/fleet_apps_management/models/property_summary.py +601 -0
  274. oci/fleet_apps_management/models/request_resource_validation_details.py +103 -0
  275. oci/fleet_apps_management/models/request_target_discovery_details.py +103 -0
  276. oci/fleet_apps_management/models/resource_tag_check_details.py +72 -0
  277. oci/fleet_apps_management/models/resource_tag_enablement_info.py +103 -0
  278. oci/fleet_apps_management/models/rule.py +165 -0
  279. oci/fleet_apps_management/models/runbook.py +747 -0
  280. oci/fleet_apps_management/models/runbook_collection.py +72 -0
  281. oci/fleet_apps_management/models/runbook_summary.py +664 -0
  282. oci/fleet_apps_management/models/schedule.py +212 -0
  283. oci/fleet_apps_management/models/scheduled_fleet_collection.py +72 -0
  284. oci/fleet_apps_management/models/scheduled_fleet_summary.py +313 -0
  285. oci/fleet_apps_management/models/scheduler_definition.py +847 -0
  286. oci/fleet_apps_management/models/scheduler_definition_collection.py +72 -0
  287. oci/fleet_apps_management/models/scheduler_definition_summary.py +718 -0
  288. oci/fleet_apps_management/models/scheduler_job.py +767 -0
  289. oci/fleet_apps_management/models/scheduler_job_collection.py +72 -0
  290. oci/fleet_apps_management/models/scheduler_job_summary.py +685 -0
  291. oci/fleet_apps_management/models/script_based_execution_details.py +136 -0
  292. oci/fleet_apps_management/models/selection_criteria.py +119 -0
  293. oci/fleet_apps_management/models/string_input_argument.py +65 -0
  294. oci/fleet_apps_management/models/target_credential_entity_specific_details.py +113 -0
  295. oci/fleet_apps_management/models/target_resource.py +109 -0
  296. oci/fleet_apps_management/models/task.py +200 -0
  297. oci/fleet_apps_management/models/task_argument.py +103 -0
  298. oci/fleet_apps_management/models/task_record.py +568 -0
  299. oci/fleet_apps_management/models/task_record_collection.py +72 -0
  300. oci/fleet_apps_management/models/task_record_summary.py +516 -0
  301. oci/fleet_apps_management/models/task_variable.py +103 -0
  302. oci/fleet_apps_management/models/update_fleet_credential_details.py +159 -0
  303. oci/fleet_apps_management/models/update_fleet_details.py +262 -0
  304. oci/fleet_apps_management/models/update_fleet_property_details.py +72 -0
  305. oci/fleet_apps_management/models/update_fleet_resource_details.py +103 -0
  306. oci/fleet_apps_management/models/update_maintenance_window_details.py +406 -0
  307. oci/fleet_apps_management/models/update_property_details.py +207 -0
  308. oci/fleet_apps_management/models/update_scheduler_definition_details.py +297 -0
  309. oci/fleet_apps_management/models/update_scheduler_job_details.py +138 -0
  310. oci/fleet_apps_management/models/vault_secret_credential_details.py +117 -0
  311. oci/fleet_apps_management/models/work_request.py +497 -0
  312. oci/fleet_apps_management/models/work_request_error.py +136 -0
  313. oci/fleet_apps_management/models/work_request_error_collection.py +72 -0
  314. oci/fleet_apps_management/models/work_request_log_entry.py +103 -0
  315. oci/fleet_apps_management/models/work_request_log_entry_collection.py +72 -0
  316. oci/fleet_apps_management/models/work_request_resource.py +234 -0
  317. oci/fleet_apps_management/models/work_request_summary.py +497 -0
  318. oci/fleet_apps_management/models/work_request_summary_collection.py +72 -0
  319. oci/fleet_apps_management/models/workflow_component.py +109 -0
  320. oci/fleet_apps_management/models/workflow_group.py +150 -0
  321. oci/fleet_apps_management/models/workflow_group_component.py +115 -0
  322. oci/fleet_apps_management/models/workflow_task_component.py +82 -0
  323. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  324. oci/functions/functions_invoke_client.py +1 -1
  325. oci/functions/functions_management_client.py +16 -16
  326. oci/fusion_apps/data_masking_activity_client.py +3 -3
  327. oci/fusion_apps/fusion_applications_client.py +41 -41
  328. oci/fusion_apps/fusion_environment_client.py +15 -15
  329. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  330. oci/fusion_apps/refresh_activity_client.py +4 -4
  331. oci/fusion_apps/scheduled_activity_client.py +2 -2
  332. oci/fusion_apps/service_attachment_client.py +2 -2
  333. oci/generative_ai/generative_ai_client.py +22 -22
  334. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  335. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  336. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  337. oci/golden_gate/golden_gate_client.py +68 -68
  338. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  339. oci/governance_rules_control_plane/work_request_client.py +5 -5
  340. oci/healthchecks/health_checks_client.py +17 -17
  341. oci/identity/identity_client.py +145 -145
  342. oci/identity_data_plane/dataplane_client.py +2 -2
  343. oci/identity_domains/identity_domains_client.py +307 -307
  344. oci/integration/integration_instance_client.py +138 -17
  345. oci/integration/integration_instance_client_composite_operations.py +42 -0
  346. oci/integration/models/__init__.py +2 -0
  347. oci/integration/models/create_integration_instance_details.py +7 -3
  348. oci/integration/models/extend_data_retention_details.py +92 -0
  349. oci/integration/models/integration_instance.py +100 -8
  350. oci/integration/models/integration_instance_summary.py +100 -8
  351. oci/integration/models/update_integration_instance_details.py +7 -3
  352. oci/integration/models/work_request.py +7 -3
  353. oci/integration/models/work_request_summary.py +7 -3
  354. oci/jms/java_management_service_client.py +150 -150
  355. oci/jms_java_downloads/java_download_client.py +50 -50
  356. oci/key_management/ekm_client.py +5 -5
  357. oci/key_management/kms_crypto_client.py +6 -6
  358. oci/key_management/kms_hsm_cluster_client.py +12 -12
  359. oci/key_management/kms_management_client.py +21 -21
  360. oci/key_management/kms_vault_client.py +14 -14
  361. oci/license_manager/license_manager_client.py +18 -18
  362. oci/limits/limits_client.py +33 -12
  363. oci/limits/models/limit_definition_summary.py +64 -2
  364. oci/limits/models/service_summary.py +33 -2
  365. oci/limits/quotas_client.py +7 -7
  366. oci/load_balancer/load_balancer_client.py +61 -61
  367. oci/lockbox/lockbox_client.py +24 -24
  368. oci/log_analytics/log_analytics_client.py +193 -193
  369. oci/logging/logging_management_client.py +30 -30
  370. oci/loggingingestion/logging_client.py +1 -1
  371. oci/loggingsearch/log_search_client.py +1 -1
  372. oci/management_agent/management_agent_client.py +28 -28
  373. oci/management_dashboard/dashx_apis_client.py +14 -14
  374. oci/marketplace/account_client.py +2 -2
  375. oci/marketplace/marketplace_client.py +30 -30
  376. oci/marketplace_private_offer/attachment_client.py +5 -5
  377. oci/marketplace_private_offer/offer_client.py +6 -6
  378. oci/marketplace_publisher/attachment_client.py +5 -5
  379. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  380. oci/marketplace_publisher/offer_client.py +6 -6
  381. oci/media_services/media_services_client.py +60 -60
  382. oci/media_services/media_stream_client.py +2 -2
  383. oci/monitoring/monitoring_client.py +18 -18
  384. oci/mysql/channels_client.py +7 -7
  385. oci/mysql/db_backups_client.py +7 -7
  386. oci/mysql/db_system_client.py +17 -17
  387. oci/mysql/models/__init__.py +4 -0
  388. oci/mysql/models/create_db_system_details.py +27 -0
  389. oci/mysql/models/data_storage.py +232 -0
  390. oci/mysql/models/data_storage_details.py +123 -0
  391. oci/mysql/models/db_system.py +31 -2
  392. oci/mysql/models/db_system_snapshot.py +31 -2
  393. oci/mysql/models/update_db_system_details.py +27 -0
  394. oci/mysql/mysqlaas_client.py +7 -7
  395. oci/mysql/replicas_client.py +5 -5
  396. oci/mysql/work_requests_client.py +4 -4
  397. oci/network_firewall/network_firewall_client.py +86 -86
  398. oci/network_load_balancer/models/backend.py +3 -3
  399. oci/network_load_balancer/models/backend_details.py +2 -2
  400. oci/network_load_balancer/models/backend_set.py +7 -3
  401. oci/network_load_balancer/models/backend_set_details.py +5 -1
  402. oci/network_load_balancer/models/backend_set_summary.py +5 -7
  403. oci/network_load_balancer/models/backend_summary.py +3 -3
  404. oci/network_load_balancer/models/create_backend_details.py +3 -3
  405. oci/network_load_balancer/models/create_backend_set_details.py +1 -1
  406. oci/network_load_balancer/models/create_listener_details.py +71 -5
  407. oci/network_load_balancer/models/create_network_load_balancer_details.py +3 -3
  408. oci/network_load_balancer/models/health_checker.py +1 -1
  409. oci/network_load_balancer/models/health_checker_details.py +1 -1
  410. oci/network_load_balancer/models/listener.py +70 -4
  411. oci/network_load_balancer/models/listener_details.py +70 -4
  412. oci/network_load_balancer/models/listener_summary.py +70 -4
  413. oci/network_load_balancer/models/network_load_balancer.py +5 -5
  414. oci/network_load_balancer/models/network_load_balancer_summary.py +4 -4
  415. oci/network_load_balancer/models/update_backend_details.py +4 -4
  416. oci/network_load_balancer/models/update_backend_set_details.py +1 -1
  417. oci/network_load_balancer/models/update_listener_details.py +69 -3
  418. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  419. oci/nosql/nosql_client.py +24 -24
  420. oci/object_storage/object_storage_client.py +50 -50
  421. oci/oce/oce_instance_client.py +10 -10
  422. oci/oci_control_center/occ_metrics_client.py +3 -3
  423. oci/ocvp/cluster_client.py +5 -5
  424. oci/ocvp/esxi_host_client.py +8 -8
  425. oci/ocvp/sddc_client.py +14 -14
  426. oci/ocvp/work_request_client.py +4 -4
  427. oci/oda/management_client.py +59 -59
  428. oci/oda/oda_client.py +17 -17
  429. oci/oda/odapackage_client.py +7 -7
  430. oci/onesubscription/billing_schedule_client.py +1 -1
  431. oci/onesubscription/commitment_client.py +2 -2
  432. oci/onesubscription/computed_usage_client.py +3 -3
  433. oci/onesubscription/invoice_summary_client.py +2 -2
  434. oci/onesubscription/organization_subscription_client.py +1 -1
  435. oci/onesubscription/ratecard_client.py +1 -1
  436. oci/onesubscription/subscribed_service_client.py +2 -2
  437. oci/onesubscription/subscription_client.py +1 -1
  438. oci/ons/notification_control_plane_client.py +6 -6
  439. oci/ons/notification_data_plane_client.py +10 -10
  440. oci/opa/opa_instance_client.py +13 -13
  441. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  442. oci/opensearch/opensearch_cluster_client.py +14 -14
  443. oci/operator_access_control/access_requests_client.py +10 -10
  444. oci/operator_access_control/operator_actions_client.py +2 -2
  445. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  446. oci/operator_access_control/operator_control_client.py +6 -6
  447. oci/opsi/operations_insights_client.py +177 -177
  448. oci/optimizer/optimizer_client.py +26 -26
  449. oci/os_management/event_client.py +8 -8
  450. oci/os_management/os_management_client.py +69 -69
  451. oci/os_management_hub/event_client.py +8 -8
  452. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  453. oci/os_management_hub/managed_instance_client.py +31 -31
  454. oci/os_management_hub/managed_instance_group_client.py +25 -25
  455. oci/os_management_hub/management_station_client.py +10 -10
  456. oci/os_management_hub/onboarding_client.py +6 -6
  457. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  458. oci/os_management_hub/scheduled_job_client.py +7 -7
  459. oci/os_management_hub/software_source_client.py +27 -27
  460. oci/os_management_hub/work_request_client.py +4 -4
  461. oci/osp_gateway/address_rule_service_client.py +1 -1
  462. oci/osp_gateway/address_service_client.py +2 -2
  463. oci/osp_gateway/invoice_service_client.py +5 -5
  464. oci/osp_gateway/subscription_service_client.py +5 -5
  465. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  466. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  467. oci/osub_subscription/commitment_client.py +2 -2
  468. oci/osub_subscription/ratecard_client.py +1 -1
  469. oci/osub_subscription/subscription_client.py +1 -1
  470. oci/osub_usage/computed_usage_client.py +3 -3
  471. oci/psql/postgresql_client.py +33 -33
  472. oci/queue/queue_admin_client.py +11 -11
  473. oci/queue/queue_client.py +8 -8
  474. oci/recovery/database_recovery_client.py +25 -25
  475. oci/redis/models/__init__.py +4 -0
  476. oci/redis/models/change_redis_cluster_compartment_details.py +2 -2
  477. oci/redis/models/create_redis_cluster_details.py +78 -16
  478. oci/redis/models/node.py +3 -3
  479. oci/redis/models/node_collection.py +1 -1
  480. oci/redis/models/node_summary.py +196 -0
  481. oci/redis/models/redis_cluster.py +110 -32
  482. oci/redis/models/redis_cluster_collection.py +4 -4
  483. oci/redis/models/redis_cluster_summary.py +94 -32
  484. oci/redis/models/redis_node_collection.py +72 -0
  485. oci/redis/models/update_redis_cluster_details.py +40 -9
  486. oci/redis/redis_cluster_client.py +190 -41
  487. oci/redis/redis_cluster_client_composite_operations.py +4 -4
  488. oci/regions_definitions.py +6 -3
  489. oci/resource_manager/resource_manager_client.py +52 -52
  490. oci/resource_scheduler/schedule_client.py +13 -13
  491. oci/resource_search/resource_search_client.py +3 -3
  492. oci/rover/rover_bundle_client.py +8 -8
  493. oci/rover/rover_cluster_client.py +8 -8
  494. oci/rover/rover_entitlement_client.py +6 -6
  495. oci/rover/rover_node_client.py +15 -15
  496. oci/rover/shape_client.py +1 -1
  497. oci/rover/work_requests_client.py +5 -5
  498. oci/sch/connector_plugins_client.py +2 -2
  499. oci/sch/service_connector_client.py +12 -12
  500. oci/secrets/secrets_client.py +3 -3
  501. oci/service_catalog/service_catalog_client.py +26 -26
  502. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  503. oci/service_mesh/service_mesh_client.py +48 -48
  504. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  505. oci/streaming/stream_admin_client.py +18 -18
  506. oci/streaming/stream_client.py +8 -8
  507. oci/tenant_manager_control_plane/domain_client.py +5 -5
  508. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  509. oci/tenant_manager_control_plane/governance_client.py +2 -2
  510. oci/tenant_manager_control_plane/link_client.py +3 -3
  511. oci/tenant_manager_control_plane/orders_client.py +2 -2
  512. oci/tenant_manager_control_plane/organization_client.py +10 -10
  513. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  514. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  515. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  516. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  517. oci/threat_intelligence/threatintel_client.py +5 -5
  518. oci/usage/resources_client.py +2 -2
  519. oci/usage/rewards_client.py +6 -6
  520. oci/usage/usagelimits_client.py +1 -1
  521. oci/usage_api/usageapi_client.py +33 -33
  522. oci/vault/vaults_client.py +13 -13
  523. oci/vbs_inst/vbs_instance_client.py +10 -10
  524. oci/version.py +1 -1
  525. oci/visual_builder/vb_instance_client.py +13 -13
  526. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  527. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  528. oci/waa/waa_client.py +13 -13
  529. oci/waa/work_request_client.py +4 -4
  530. oci/waas/redirect_client.py +6 -6
  531. oci/waas/waas_client.py +66 -66
  532. oci/waf/waf_client.py +24 -24
  533. oci/work_requests/work_request_client.py +4 -4
  534. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/METADATA +3 -2
  535. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/RECORD +539 -369
  536. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/LICENSE.txt +0 -0
  537. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  538. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/WHEEL +0 -0
  539. {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,692 @@
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: 20230831
6
+
7
+ import oci # noqa: F401
8
+ from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
9
+
10
+
11
+ class FleetAppsManagementClientCompositeOperations(object):
12
+ """
13
+ This class provides a wrapper around :py:class:`~oci.fleet_apps_management.FleetAppsManagementClient` and offers convenience methods
14
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
15
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
16
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
17
+ """
18
+
19
+ def __init__(self, client, **kwargs):
20
+ """
21
+ Creates a new FleetAppsManagementClientCompositeOperations object
22
+
23
+ :param FleetAppsManagementClient client:
24
+ The service client which will be wrapped by this object
25
+ """
26
+ self.client = client
27
+
28
+ def confirm_targets_and_wait_for_state(self, confirm_targets_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
29
+ """
30
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.confirm_targets` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
31
+ to enter the given state(s).
32
+
33
+ :param oci.fleet_apps_management.models.ConfirmTargetsDetails confirm_targets_details: (required)
34
+ Details for confirming Targets.
35
+
36
+ :param str fleet_id: (required)
37
+ unique Fleet identifier
38
+
39
+ :param list[str] wait_for_states:
40
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
41
+
42
+ :param dict operation_kwargs:
43
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.confirm_targets`
44
+
45
+ :param dict waiter_kwargs:
46
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
47
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
48
+ """
49
+ operation_result = self.client.confirm_targets(confirm_targets_details, fleet_id, **operation_kwargs)
50
+ if not wait_for_states:
51
+ return operation_result
52
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
53
+ if 'opc-work-request-id' not in operation_result.headers:
54
+ return operation_result
55
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
56
+
57
+ try:
58
+ waiter_result = oci.wait_until(
59
+ self.client,
60
+ self.client.get_work_request(wait_for_resource_id),
61
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
62
+ **waiter_kwargs
63
+ )
64
+ result_to_return = waiter_result
65
+
66
+ return result_to_return
67
+ except Exception as e:
68
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
69
+
70
+ def create_fleet_and_wait_for_state(self, create_fleet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
71
+ """
72
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
73
+ to enter the given state(s).
74
+
75
+ :param oci.fleet_apps_management.models.CreateFleetDetails create_fleet_details: (required)
76
+ Details for the new Fleet.
77
+
78
+ :param list[str] wait_for_states:
79
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
80
+
81
+ :param dict operation_kwargs:
82
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet`
83
+
84
+ :param dict waiter_kwargs:
85
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
86
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
87
+ """
88
+ operation_result = self.client.create_fleet(create_fleet_details, **operation_kwargs)
89
+ if not wait_for_states:
90
+ return operation_result
91
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
92
+ if 'opc-work-request-id' not in operation_result.headers:
93
+ return operation_result
94
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
95
+
96
+ try:
97
+ waiter_result = oci.wait_until(
98
+ self.client,
99
+ self.client.get_work_request(wait_for_resource_id),
100
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
101
+ **waiter_kwargs
102
+ )
103
+ result_to_return = waiter_result
104
+
105
+ return result_to_return
106
+ except Exception as e:
107
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
108
+
109
+ def create_fleet_credential_and_wait_for_state(self, create_fleet_credential_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
110
+ """
111
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
112
+ to enter the given state(s).
113
+
114
+ :param oci.fleet_apps_management.models.CreateFleetCredentialDetails create_fleet_credential_details: (required)
115
+ Details for the new FleetCredential.
116
+
117
+ :param str fleet_id: (required)
118
+ unique Fleet identifier
119
+
120
+ :param list[str] wait_for_states:
121
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
122
+
123
+ :param dict operation_kwargs:
124
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_credential`
125
+
126
+ :param dict waiter_kwargs:
127
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
128
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
129
+ """
130
+ operation_result = self.client.create_fleet_credential(create_fleet_credential_details, fleet_id, **operation_kwargs)
131
+ if not wait_for_states:
132
+ return operation_result
133
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
134
+ if 'opc-work-request-id' not in operation_result.headers:
135
+ return operation_result
136
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
137
+
138
+ try:
139
+ waiter_result = oci.wait_until(
140
+ self.client,
141
+ self.client.get_work_request(wait_for_resource_id),
142
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
143
+ **waiter_kwargs
144
+ )
145
+ result_to_return = waiter_result
146
+
147
+ return result_to_return
148
+ except Exception as e:
149
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
150
+
151
+ def create_fleet_property_and_wait_for_state(self, create_fleet_property_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
152
+ """
153
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_property` and waits for the :py:class:`~oci.fleet_apps_management.models.FleetProperty` acted upon
154
+ to enter the given state(s).
155
+
156
+ :param oci.fleet_apps_management.models.CreateFleetPropertyDetails create_fleet_property_details: (required)
157
+ Details for the new FleetProperty.
158
+
159
+ :param str fleet_id: (required)
160
+ unique Fleet identifier
161
+
162
+ :param list[str] wait_for_states:
163
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.FleetProperty.lifecycle_state`
164
+
165
+ :param dict operation_kwargs:
166
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_property`
167
+
168
+ :param dict waiter_kwargs:
169
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
170
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
171
+ """
172
+ operation_result = self.client.create_fleet_property(create_fleet_property_details, fleet_id, **operation_kwargs)
173
+ if not wait_for_states:
174
+ return operation_result
175
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
176
+ fleet_property_id = operation_result.data.id
177
+
178
+ try:
179
+ waiter_result = oci.wait_until(
180
+ self.client,
181
+ self.client.get_fleet_property(fleet_property_id, fleet_id), # noqa: F821
182
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
183
+ **waiter_kwargs
184
+ )
185
+ result_to_return = waiter_result
186
+
187
+ return result_to_return
188
+ except (NameError, TypeError) as e:
189
+ if not e.args:
190
+ e.args = ('',)
191
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
192
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
193
+ except Exception as e:
194
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
195
+
196
+ def create_fleet_resource_and_wait_for_state(self, create_fleet_resource_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
197
+ """
198
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
199
+ to enter the given state(s).
200
+
201
+ :param oci.fleet_apps_management.models.CreateFleetResourceDetails create_fleet_resource_details: (required)
202
+ Details for the new FleetResource.
203
+
204
+ :param str fleet_id: (required)
205
+ unique Fleet identifier
206
+
207
+ :param list[str] wait_for_states:
208
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
209
+
210
+ :param dict operation_kwargs:
211
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_resource`
212
+
213
+ :param dict waiter_kwargs:
214
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
215
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
216
+ """
217
+ operation_result = self.client.create_fleet_resource(create_fleet_resource_details, fleet_id, **operation_kwargs)
218
+ if not wait_for_states:
219
+ return operation_result
220
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
221
+ if 'opc-work-request-id' not in operation_result.headers:
222
+ return operation_result
223
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
224
+
225
+ try:
226
+ waiter_result = oci.wait_until(
227
+ self.client,
228
+ self.client.get_work_request(wait_for_resource_id),
229
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
230
+ **waiter_kwargs
231
+ )
232
+ result_to_return = waiter_result
233
+
234
+ return result_to_return
235
+ except Exception as e:
236
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
237
+
238
+ def delete_fleet_and_wait_for_state(self, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
239
+ """
240
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
241
+ to enter the given state(s).
242
+
243
+ :param str fleet_id: (required)
244
+ unique Fleet identifier
245
+
246
+ :param list[str] wait_for_states:
247
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
248
+
249
+ :param dict operation_kwargs:
250
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet`
251
+
252
+ :param dict waiter_kwargs:
253
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
254
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
255
+ """
256
+ operation_result = None
257
+ try:
258
+ operation_result = self.client.delete_fleet(fleet_id, **operation_kwargs)
259
+ except oci.exceptions.ServiceError as e:
260
+ if e.status == 404:
261
+ return WAIT_RESOURCE_NOT_FOUND
262
+ else:
263
+ raise e
264
+
265
+ if not wait_for_states:
266
+ return operation_result
267
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
268
+ if 'opc-work-request-id' not in operation_result.headers:
269
+ return operation_result
270
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
271
+
272
+ try:
273
+ waiter_result = oci.wait_until(
274
+ self.client,
275
+ self.client.get_work_request(wait_for_resource_id),
276
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
277
+ **waiter_kwargs
278
+ )
279
+ result_to_return = waiter_result
280
+
281
+ return result_to_return
282
+ except Exception as e:
283
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
284
+
285
+ def delete_fleet_credential_and_wait_for_state(self, fleet_credential_id, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
286
+ """
287
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
288
+ to enter the given state(s).
289
+
290
+ :param str fleet_credential_id: (required)
291
+ unique FleetCredential identifier
292
+
293
+ :param str fleet_id: (required)
294
+ unique Fleet identifier
295
+
296
+ :param list[str] wait_for_states:
297
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
298
+
299
+ :param dict operation_kwargs:
300
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_credential`
301
+
302
+ :param dict waiter_kwargs:
303
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
304
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
305
+ """
306
+ operation_result = None
307
+ try:
308
+ operation_result = self.client.delete_fleet_credential(fleet_credential_id, fleet_id, **operation_kwargs)
309
+ except oci.exceptions.ServiceError as e:
310
+ if e.status == 404:
311
+ return WAIT_RESOURCE_NOT_FOUND
312
+ else:
313
+ raise e
314
+
315
+ if not wait_for_states:
316
+ return operation_result
317
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
318
+ if 'opc-work-request-id' not in operation_result.headers:
319
+ return operation_result
320
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
321
+
322
+ try:
323
+ waiter_result = oci.wait_until(
324
+ self.client,
325
+ self.client.get_work_request(wait_for_resource_id),
326
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
327
+ **waiter_kwargs
328
+ )
329
+ result_to_return = waiter_result
330
+
331
+ return result_to_return
332
+ except Exception as e:
333
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
334
+
335
+ def delete_fleet_resource_and_wait_for_state(self, fleet_resource_id, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
336
+ """
337
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
338
+ to enter the given state(s).
339
+
340
+ :param str fleet_resource_id: (required)
341
+ unique FleetResource identifier
342
+
343
+ :param str fleet_id: (required)
344
+ unique Fleet identifier
345
+
346
+ :param list[str] wait_for_states:
347
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
348
+
349
+ :param dict operation_kwargs:
350
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_resource`
351
+
352
+ :param dict waiter_kwargs:
353
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
354
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
355
+ """
356
+ operation_result = None
357
+ try:
358
+ operation_result = self.client.delete_fleet_resource(fleet_resource_id, fleet_id, **operation_kwargs)
359
+ except oci.exceptions.ServiceError as e:
360
+ if e.status == 404:
361
+ return WAIT_RESOURCE_NOT_FOUND
362
+ else:
363
+ raise e
364
+
365
+ if not wait_for_states:
366
+ return operation_result
367
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
368
+ if 'opc-work-request-id' not in operation_result.headers:
369
+ return operation_result
370
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
371
+
372
+ try:
373
+ waiter_result = oci.wait_until(
374
+ self.client,
375
+ self.client.get_work_request(wait_for_resource_id),
376
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
377
+ **waiter_kwargs
378
+ )
379
+ result_to_return = waiter_result
380
+
381
+ return result_to_return
382
+ except Exception as e:
383
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
384
+
385
+ def generate_compliance_report_and_wait_for_state(self, generate_compliance_report_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
386
+ """
387
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.generate_compliance_report` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
388
+ to enter the given state(s).
389
+
390
+ :param oci.fleet_apps_management.models.GenerateComplianceReportDetails generate_compliance_report_details: (required)
391
+ Details for generating Compliance Report fort the Fleet.
392
+
393
+ :param str fleet_id: (required)
394
+ unique Fleet identifier
395
+
396
+ :param list[str] wait_for_states:
397
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
398
+
399
+ :param dict operation_kwargs:
400
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.generate_compliance_report`
401
+
402
+ :param dict waiter_kwargs:
403
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
404
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
405
+ """
406
+ operation_result = self.client.generate_compliance_report(generate_compliance_report_details, fleet_id, **operation_kwargs)
407
+ if not wait_for_states:
408
+ return operation_result
409
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
410
+ if 'opc-work-request-id' not in operation_result.headers:
411
+ return operation_result
412
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
413
+
414
+ try:
415
+ waiter_result = oci.wait_until(
416
+ self.client,
417
+ self.client.get_work_request(wait_for_resource_id),
418
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
419
+ **waiter_kwargs
420
+ )
421
+ result_to_return = waiter_result
422
+
423
+ return result_to_return
424
+ except Exception as e:
425
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
426
+
427
+ def request_resource_validation_and_wait_for_state(self, request_resource_validation_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
428
+ """
429
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_resource_validation` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
430
+ to enter the given state(s).
431
+
432
+ :param oci.fleet_apps_management.models.RequestResourceValidationDetails request_resource_validation_details: (required)
433
+ Details for requesting resource validation
434
+
435
+ :param str fleet_id: (required)
436
+ unique Fleet identifier
437
+
438
+ :param list[str] wait_for_states:
439
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
440
+
441
+ :param dict operation_kwargs:
442
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_resource_validation`
443
+
444
+ :param dict waiter_kwargs:
445
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
446
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
447
+ """
448
+ operation_result = self.client.request_resource_validation(request_resource_validation_details, fleet_id, **operation_kwargs)
449
+ if not wait_for_states:
450
+ return operation_result
451
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
452
+ if 'opc-work-request-id' not in operation_result.headers:
453
+ return operation_result
454
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
455
+
456
+ try:
457
+ waiter_result = oci.wait_until(
458
+ self.client,
459
+ self.client.get_work_request(wait_for_resource_id),
460
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
461
+ **waiter_kwargs
462
+ )
463
+ result_to_return = waiter_result
464
+
465
+ return result_to_return
466
+ except Exception as e:
467
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
468
+
469
+ def request_target_discovery_and_wait_for_state(self, request_target_discovery_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
470
+ """
471
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_target_discovery` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
472
+ to enter the given state(s).
473
+
474
+ :param oci.fleet_apps_management.models.RequestTargetDiscoveryDetails request_target_discovery_details: (required)
475
+ Details for requesting target discovery
476
+
477
+ :param str fleet_id: (required)
478
+ unique Fleet identifier
479
+
480
+ :param list[str] wait_for_states:
481
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
482
+
483
+ :param dict operation_kwargs:
484
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_target_discovery`
485
+
486
+ :param dict waiter_kwargs:
487
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
488
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
489
+ """
490
+ operation_result = self.client.request_target_discovery(request_target_discovery_details, fleet_id, **operation_kwargs)
491
+ if not wait_for_states:
492
+ return operation_result
493
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
494
+ if 'opc-work-request-id' not in operation_result.headers:
495
+ return operation_result
496
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
497
+
498
+ try:
499
+ waiter_result = oci.wait_until(
500
+ self.client,
501
+ self.client.get_work_request(wait_for_resource_id),
502
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
503
+ **waiter_kwargs
504
+ )
505
+ result_to_return = waiter_result
506
+
507
+ return result_to_return
508
+ except Exception as e:
509
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
510
+
511
+ def update_fleet_and_wait_for_state(self, fleet_id, update_fleet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
512
+ """
513
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.Fleet` acted upon
514
+ to enter the given state(s).
515
+
516
+ :param str fleet_id: (required)
517
+ unique Fleet identifier
518
+
519
+ :param oci.fleet_apps_management.models.UpdateFleetDetails update_fleet_details: (required)
520
+ The information to be updated.
521
+
522
+ :param list[str] wait_for_states:
523
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.Fleet.lifecycle_state`
524
+
525
+ :param dict operation_kwargs:
526
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet`
527
+
528
+ :param dict waiter_kwargs:
529
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
530
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
531
+ """
532
+ operation_result = self.client.update_fleet(fleet_id, update_fleet_details, **operation_kwargs)
533
+ if not wait_for_states:
534
+ return operation_result
535
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
536
+ fleet_id = operation_result.data.id
537
+
538
+ try:
539
+ waiter_result = oci.wait_until(
540
+ self.client,
541
+ self.client.get_fleet(fleet_id), # noqa: F821
542
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
543
+ **waiter_kwargs
544
+ )
545
+ result_to_return = waiter_result
546
+
547
+ return result_to_return
548
+ except (NameError, TypeError) as e:
549
+ if not e.args:
550
+ e.args = ('',)
551
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
552
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
553
+ except Exception as e:
554
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
555
+
556
+ def update_fleet_credential_and_wait_for_state(self, fleet_credential_id, fleet_id, update_fleet_credential_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
557
+ """
558
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
559
+ to enter the given state(s).
560
+
561
+ :param str fleet_credential_id: (required)
562
+ unique FleetCredential identifier
563
+
564
+ :param str fleet_id: (required)
565
+ unique Fleet identifier
566
+
567
+ :param oci.fleet_apps_management.models.UpdateFleetCredentialDetails update_fleet_credential_details: (required)
568
+ The information to be updated.
569
+
570
+ :param list[str] wait_for_states:
571
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
572
+
573
+ :param dict operation_kwargs:
574
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_credential`
575
+
576
+ :param dict waiter_kwargs:
577
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
578
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
579
+ """
580
+ operation_result = self.client.update_fleet_credential(fleet_credential_id, fleet_id, update_fleet_credential_details, **operation_kwargs)
581
+ if not wait_for_states:
582
+ return operation_result
583
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
584
+ if 'opc-work-request-id' not in operation_result.headers:
585
+ return operation_result
586
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
587
+
588
+ try:
589
+ waiter_result = oci.wait_until(
590
+ self.client,
591
+ self.client.get_work_request(wait_for_resource_id),
592
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
593
+ **waiter_kwargs
594
+ )
595
+ result_to_return = waiter_result
596
+
597
+ return result_to_return
598
+ except Exception as e:
599
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
600
+
601
+ def update_fleet_property_and_wait_for_state(self, fleet_property_id, fleet_id, update_fleet_property_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
602
+ """
603
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_property` and waits for the :py:class:`~oci.fleet_apps_management.models.FleetProperty` acted upon
604
+ to enter the given state(s).
605
+
606
+ :param str fleet_property_id: (required)
607
+ unique FleetProperty identifier
608
+
609
+ :param str fleet_id: (required)
610
+ unique Fleet identifier
611
+
612
+ :param oci.fleet_apps_management.models.UpdateFleetPropertyDetails update_fleet_property_details: (required)
613
+ The information to be updated.
614
+
615
+ :param list[str] wait_for_states:
616
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.FleetProperty.lifecycle_state`
617
+
618
+ :param dict operation_kwargs:
619
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_property`
620
+
621
+ :param dict waiter_kwargs:
622
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
623
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
624
+ """
625
+ operation_result = self.client.update_fleet_property(fleet_property_id, fleet_id, update_fleet_property_details, **operation_kwargs)
626
+ if not wait_for_states:
627
+ return operation_result
628
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
629
+ fleet_property_id = operation_result.data.id
630
+
631
+ try:
632
+ waiter_result = oci.wait_until(
633
+ self.client,
634
+ self.client.get_fleet_property(fleet_property_id, fleet_id), # noqa: F821
635
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
636
+ **waiter_kwargs
637
+ )
638
+ result_to_return = waiter_result
639
+
640
+ return result_to_return
641
+ except (NameError, TypeError) as e:
642
+ if not e.args:
643
+ e.args = ('',)
644
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
645
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
646
+ except Exception as e:
647
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
648
+
649
+ def update_fleet_resource_and_wait_for_state(self, fleet_resource_id, fleet_id, update_fleet_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
650
+ """
651
+ Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
652
+ to enter the given state(s).
653
+
654
+ :param str fleet_resource_id: (required)
655
+ unique FleetResource identifier
656
+
657
+ :param str fleet_id: (required)
658
+ unique Fleet identifier
659
+
660
+ :param oci.fleet_apps_management.models.UpdateFleetResourceDetails update_fleet_resource_details: (required)
661
+ The information to be updated.
662
+
663
+ :param list[str] wait_for_states:
664
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
665
+
666
+ :param dict operation_kwargs:
667
+ A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_resource`
668
+
669
+ :param dict waiter_kwargs:
670
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
671
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
672
+ """
673
+ operation_result = self.client.update_fleet_resource(fleet_resource_id, fleet_id, update_fleet_resource_details, **operation_kwargs)
674
+ if not wait_for_states:
675
+ return operation_result
676
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
677
+ if 'opc-work-request-id' not in operation_result.headers:
678
+ return operation_result
679
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
680
+
681
+ try:
682
+ waiter_result = oci.wait_until(
683
+ self.client,
684
+ self.client.get_work_request(wait_for_resource_id),
685
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
686
+ **waiter_kwargs
687
+ )
688
+ result_to_return = waiter_result
689
+
690
+ return result_to_return
691
+ except Exception as e:
692
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)