oci 2.132.0__py3-none-any.whl → 2.133.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 (489) 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 +626 -28
  6. oci/ai_document/ai_service_document_client_composite_operations.py +180 -0
  7. oci/ai_document/models/__init__.py +10 -0
  8. oci/ai_document/models/add_model_lock_details.py +150 -0
  9. oci/ai_document/models/add_project_lock_details.py +150 -0
  10. oci/ai_document/models/analyze_document_details.py +5 -5
  11. oci/ai_document/models/detected_document_type.py +0 -35
  12. oci/ai_document/models/document_classification_feature.py +2 -33
  13. oci/ai_document/models/document_key_value_extraction_feature.py +2 -33
  14. oci/ai_document/models/general_processor_config.py +5 -5
  15. oci/ai_document/models/model.py +33 -2
  16. oci/ai_document/models/model_summary.py +33 -2
  17. oci/ai_document/models/output_location.py +1 -1
  18. oci/ai_document/models/project.py +33 -2
  19. oci/ai_document/models/remove_model_lock_details.py +88 -0
  20. oci/ai_document/models/remove_project_lock_details.py +88 -0
  21. oci/ai_document/models/resource_lock.py +216 -0
  22. oci/ai_language/ai_service_language_client.py +44 -44
  23. oci/ai_speech/ai_service_speech_client.py +17 -17
  24. oci/ai_vision/ai_service_vision_client.py +25 -25
  25. oci/analytics/analytics_client.py +24 -24
  26. oci/announcements_service/__init__.py +3 -1
  27. oci/announcements_service/announcement_client.py +103 -6
  28. oci/announcements_service/announcement_subscription_client.py +9 -9
  29. oci/announcements_service/announcements_preferences_client.py +4 -4
  30. oci/announcements_service/models/__init__.py +12 -0
  31. oci/announcements_service/models/announcement.py +1 -1
  32. oci/announcements_service/models/announcement_compartment.py +72 -0
  33. oci/announcements_service/models/announcement_summary.py +1 -1
  34. oci/announcements_service/models/base_announcement.py +7 -3
  35. oci/announcements_service/models/base_service.py +498 -0
  36. oci/announcements_service/models/notifications_summary.py +130 -0
  37. oci/announcements_service/models/service.py +130 -0
  38. oci/announcements_service/models/service_summary.py +133 -0
  39. oci/announcements_service/models/services_collection.py +72 -0
  40. oci/announcements_service/service_client.py +275 -0
  41. oci/announcements_service/service_client_composite_operations.py +26 -0
  42. oci/apigateway/api_gateway_client.py +21 -21
  43. oci/apigateway/deployment_client.py +6 -6
  44. oci/apigateway/gateway_client.py +6 -6
  45. oci/apigateway/subscribers_client.py +6 -6
  46. oci/apigateway/usage_plans_client.py +6 -6
  47. oci/apigateway/work_requests_client.py +5 -5
  48. oci/apm_config/config_client.py +9 -9
  49. oci/apm_control_plane/apm_domain_client.py +14 -14
  50. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  51. oci/apm_traces/attributes_client.py +8 -8
  52. oci/apm_traces/query_client.py +2 -2
  53. oci/apm_traces/trace_client.py +4 -4
  54. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  55. oci/artifacts/artifacts_client.py +32 -32
  56. oci/audit/audit_client.py +3 -3
  57. oci/autoscaling/auto_scaling_client.py +11 -11
  58. oci/bastion/bastion_client.py +15 -15
  59. oci/bds/bds_client.py +72 -72
  60. oci/blockchain/blockchain_platform_client.py +27 -27
  61. oci/budget/budget_client.py +10 -10
  62. oci/capacity_management/capacity_management_client.py +22 -22
  63. oci/certificates/certificates_client.py +5 -5
  64. oci/certificates_management/certificates_management_client.py +32 -32
  65. oci/cims/incident_client.py +8 -8
  66. oci/cims/user_client.py +1 -1
  67. oci/cloud_bridge/common_client.py +5 -5
  68. oci/cloud_bridge/discovery_client.py +14 -14
  69. oci/cloud_bridge/inventory_client.py +16 -16
  70. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  71. oci/cloud_guard/cloud_guard_client.py +155 -155
  72. oci/cloud_migrations/migration_client.py +43 -43
  73. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  74. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  75. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  76. oci/compute_instance_agent/plugin_client.py +2 -2
  77. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  78. oci/container_engine/container_engine_client.py +44 -44
  79. oci/container_instances/container_instance_client.py +18 -18
  80. oci/core/blockstorage_client.py +60 -60
  81. oci/core/compute_client.py +102 -102
  82. oci/core/compute_management_client.py +32 -32
  83. oci/core/virtual_network_client.py +247 -247
  84. oci/dashboard_service/dashboard_client.py +6 -6
  85. oci/dashboard_service/dashboard_group_client.py +6 -6
  86. oci/data_catalog/data_catalog_client.py +149 -149
  87. oci/data_flow/data_flow_client.py +42 -42
  88. oci/data_integration/data_integration_client.py +163 -163
  89. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  90. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  91. oci/data_safe/data_safe_client.py +287 -287
  92. oci/data_science/data_science_client.py +91 -91
  93. oci/database/database_client.py +13862 -9467
  94. oci/database/database_client_composite_operations.py +1868 -232
  95. oci/database/models/__init__.py +80 -0
  96. oci/database/models/action_member.py +134 -0
  97. oci/database/models/action_order_details.py +107 -0
  98. oci/database/models/action_param_values_collection.py +72 -0
  99. oci/database/models/action_param_values_summary.py +216 -0
  100. oci/database/models/autonomous_database.py +33 -6
  101. oci/database/models/autonomous_database_standby_summary.py +33 -2
  102. oci/database/models/autonomous_database_summary.py +33 -6
  103. oci/database/models/cancel_execution_window_details.py +134 -0
  104. oci/database/models/change_scheduling_plan_compartment_details.py +76 -0
  105. oci/database/models/change_scheduling_policy_compartment_details.py +76 -0
  106. oci/database/models/cloud_exadata_infrastructure.py +33 -2
  107. oci/database/models/cloud_exadata_infrastructure_summary.py +33 -2
  108. oci/database/models/create_autonomous_database_base.py +2 -6
  109. oci/database/models/create_data_guard_association_with_new_db_system_details.py +35 -0
  110. oci/database/models/create_exadb_vm_cluster_details.py +12 -2
  111. oci/database/models/create_execution_action_details.py +304 -0
  112. oci/database/models/create_execution_window_details.py +282 -0
  113. oci/database/models/create_pluggable_database_creation_type_details.py +0 -2
  114. oci/database/models/create_scheduled_action_details.py +339 -0
  115. oci/database/models/create_scheduling_plan_details.py +306 -0
  116. oci/database/models/create_scheduling_policy_details.py +267 -0
  117. oci/database/models/create_scheduling_window_details.py +181 -0
  118. oci/database/models/exadata_infrastructure.py +33 -2
  119. oci/database/models/exadata_infrastructure_summary.py +33 -2
  120. oci/database/models/exadb_vm_cluster.py +12 -2
  121. oci/database/models/exadb_vm_cluster_summary.py +12 -2
  122. oci/database/models/execution_action.py +715 -0
  123. oci/database/models/execution_action_member.py +216 -0
  124. oci/database/models/execution_action_summary.py +715 -0
  125. oci/database/models/execution_window.py +783 -0
  126. oci/database/models/execution_window_summary.py +783 -0
  127. oci/database/models/granular_maintenance_history_details.py +99 -0
  128. oci/database/models/maintenance_run.py +62 -0
  129. oci/database/models/maintenance_run_history.py +64 -2
  130. oci/database/models/maintenance_run_history_summary.py +64 -2
  131. oci/database/models/maintenance_run_summary.py +62 -0
  132. oci/database/models/move_execution_action_member_details.py +220 -0
  133. oci/database/models/recommended_scheduled_action_summary.py +280 -0
  134. oci/database/models/recommended_scheduled_actions_collection.py +72 -0
  135. oci/database/models/reorder_execution_action_details.py +152 -0
  136. oci/database/models/reorder_scheduled_actions_details.py +109 -0
  137. oci/database/models/scheduled_action.py +633 -0
  138. oci/database/models/scheduled_action_collection.py +72 -0
  139. oci/database/models/scheduled_action_summary.py +633 -0
  140. oci/database/models/scheduling_plan.py +643 -0
  141. oci/database/models/scheduling_plan_collection.py +72 -0
  142. oci/database/models/scheduling_plan_summary.py +643 -0
  143. oci/database/models/scheduling_policy.py +493 -0
  144. oci/database/models/scheduling_policy_summary.py +493 -0
  145. oci/database/models/scheduling_window.py +469 -0
  146. oci/database/models/scheduling_window_summary.py +469 -0
  147. oci/database/models/update_autonomous_database_details.py +2 -6
  148. oci/database/models/update_exadb_vm_cluster_details.py +12 -2
  149. oci/database/models/update_execution_action_details.py +218 -0
  150. oci/database/models/update_execution_window_details.py +212 -0
  151. oci/database/models/update_scheduled_action_details.py +140 -0
  152. oci/database/models/update_scheduling_policy_details.py +232 -0
  153. oci/database/models/update_scheduling_window_details.py +146 -0
  154. oci/database/models/window_preference_detail.py +231 -0
  155. oci/database_management/db_management_client.py +580 -208
  156. oci/database_management/db_management_client_composite_operations.py +132 -0
  157. oci/database_management/diagnosability_client.py +4 -4
  158. oci/database_management/managed_my_sql_databases_client.py +7 -7
  159. oci/database_management/models/__init__.py +14 -0
  160. oci/database_management/models/autonomous_database_diagnostics_and_management_feature_details.py +65 -0
  161. oci/database_management/models/autonomous_database_feature_details.py +167 -0
  162. oci/database_management/models/autonomous_database_sql_watch_feature_details.py +65 -0
  163. oci/database_management/models/connector_details.py +15 -3
  164. oci/database_management/models/create_db_management_private_endpoint_details.py +31 -0
  165. oci/database_management/models/db_management_private_endpoint.py +31 -0
  166. oci/database_management/models/direct_connector_details.py +51 -0
  167. oci/database_management/models/disable_autonomous_database_management_feature_details.py +92 -0
  168. oci/database_management/models/enable_autonomous_database_management_feature_details.py +68 -0
  169. oci/database_management/models/external_connector_details.py +1 -1
  170. oci/database_management/models/macs_connector_details.py +1 -1
  171. oci/database_management/models/modify_autonomous_database_management_feature_details.py +68 -0
  172. oci/database_management/models/optimizer_statistics_collection_operation.py +7 -3
  173. oci/database_management/models/optimizer_statistics_collection_operation_summary.py +7 -3
  174. oci/database_management/models/private_end_point_connector_details.py +1 -1
  175. oci/database_management/perfhub_client.py +1 -1
  176. oci/database_management/sql_tuning_client.py +17 -17
  177. oci/database_migration/database_migration_client.py +42 -42
  178. oci/database_tools/database_tools_client.py +23 -23
  179. oci/delegate_access_control/__init__.py +16 -0
  180. oci/delegate_access_control/delegate_access_control_client.py +3324 -0
  181. oci/delegate_access_control/delegate_access_control_client_composite_operations.py +492 -0
  182. oci/delegate_access_control/models/__init__.py +96 -0
  183. oci/delegate_access_control/models/approve_delegated_resource_access_request_details.py +138 -0
  184. oci/delegate_access_control/models/change_delegation_control_compartment_details.py +72 -0
  185. oci/delegate_access_control/models/change_delegation_subscription_compartment_details.py +72 -0
  186. oci/delegate_access_control/models/create_delegation_control_details.py +548 -0
  187. oci/delegate_access_control/models/create_delegation_subscription_details.py +263 -0
  188. oci/delegate_access_control/models/delegated_resource_access_request.py +1373 -0
  189. oci/delegate_access_control/models/delegated_resource_access_request_approval_details.py +263 -0
  190. oci/delegate_access_control/models/delegated_resource_access_request_audit_log_report.py +193 -0
  191. oci/delegate_access_control/models/delegated_resource_access_request_history_collection.py +72 -0
  192. oci/delegate_access_control/models/delegated_resource_access_request_history_summary.py +300 -0
  193. oci/delegate_access_control/models/delegated_resource_access_request_summary.py +981 -0
  194. oci/delegate_access_control/models/delegated_resource_access_request_summary_collection.py +72 -0
  195. oci/delegate_access_control/models/delegation_control.py +833 -0
  196. oci/delegate_access_control/models/delegation_control_resource_collection.py +72 -0
  197. oci/delegate_access_control/models/delegation_control_resource_summary.py +147 -0
  198. oci/delegate_access_control/models/delegation_control_summary.py +465 -0
  199. oci/delegate_access_control/models/delegation_control_summary_collection.py +72 -0
  200. oci/delegate_access_control/models/delegation_subscription.py +524 -0
  201. oci/delegate_access_control/models/delegation_subscription_summary.py +461 -0
  202. oci/delegate_access_control/models/delegation_subscription_summary_collection.py +72 -0
  203. oci/delegate_access_control/models/reject_delegated_resource_access_request_details.py +72 -0
  204. oci/delegate_access_control/models/revoke_delegated_resource_access_request_details.py +72 -0
  205. oci/delegate_access_control/models/service_provider.py +583 -0
  206. oci/delegate_access_control/models/service_provider_action.py +371 -0
  207. oci/delegate_access_control/models/service_provider_action_properties.py +103 -0
  208. oci/delegate_access_control/models/service_provider_action_summary.py +323 -0
  209. oci/delegate_access_control/models/service_provider_action_summary_collection.py +72 -0
  210. oci/delegate_access_control/models/service_provider_interaction_collection.py +72 -0
  211. oci/delegate_access_control/models/service_provider_interaction_request_details.py +72 -0
  212. oci/delegate_access_control/models/service_provider_interaction_summary.py +247 -0
  213. oci/delegate_access_control/models/service_provider_summary.py +508 -0
  214. oci/delegate_access_control/models/service_provider_summary_collection.py +72 -0
  215. oci/delegate_access_control/models/update_delegation_control_details.py +404 -0
  216. oci/delegate_access_control/models/update_delegation_subscription_details.py +154 -0
  217. oci/delegate_access_control/models/work_request.py +438 -0
  218. oci/delegate_access_control/models/work_request_error.py +136 -0
  219. oci/delegate_access_control/models/work_request_error_collection.py +72 -0
  220. oci/delegate_access_control/models/work_request_log_entry.py +103 -0
  221. oci/delegate_access_control/models/work_request_log_entry_collection.py +72 -0
  222. oci/delegate_access_control/models/work_request_resource.py +234 -0
  223. oci/delegate_access_control/models/work_request_summary.py +438 -0
  224. oci/delegate_access_control/models/work_request_summary_collection.py +72 -0
  225. oci/delegate_access_control/work_request_client.py +660 -0
  226. oci/delegate_access_control/work_request_client_composite_operations.py +26 -0
  227. oci/demand_signal/occ_demand_signal_client.py +7 -7
  228. oci/desktops/desktop_service_client.py +21 -21
  229. oci/devops/devops_client.py +141 -141
  230. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  231. oci/dns/dns_client.py +52 -52
  232. oci/dts/appliance_export_job_client.py +6 -6
  233. oci/dts/shipping_vendors_client.py +1 -1
  234. oci/dts/transfer_appliance_client.py +8 -8
  235. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  236. oci/dts/transfer_device_client.py +5 -5
  237. oci/dts/transfer_job_client.py +6 -6
  238. oci/dts/transfer_package_client.py +7 -7
  239. oci/em_warehouse/em_data_lake_client.py +13 -13
  240. oci/em_warehouse/em_warehouse_client.py +13 -13
  241. oci/email/email_client.py +31 -31
  242. oci/email_data_plane/email_dp_client.py +1 -1
  243. oci/events/events_client.py +6 -6
  244. oci/file_storage/file_storage_client.py +393 -59
  245. oci/file_storage/file_storage_client_composite_operations.py +138 -0
  246. oci/file_storage/models/__init__.py +4 -0
  247. oci/file_storage/models/create_mount_target_details.py +39 -26
  248. oci/file_storage/models/mount_target.py +153 -3
  249. oci/file_storage/models/mount_target_summary.py +155 -3
  250. oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
  251. oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
  252. oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
  253. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  254. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  255. oci/fleet_apps_management/fleet_apps_management_operations_client.py +13 -13
  256. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
  257. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  258. oci/functions/functions_invoke_client.py +1 -1
  259. oci/functions/functions_management_client.py +16 -16
  260. oci/fusion_apps/data_masking_activity_client.py +3 -3
  261. oci/fusion_apps/fusion_applications_client.py +41 -41
  262. oci/fusion_apps/fusion_environment_client.py +15 -15
  263. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  264. oci/fusion_apps/models/fusion_environment_family.py +33 -2
  265. oci/fusion_apps/refresh_activity_client.py +4 -4
  266. oci/fusion_apps/scheduled_activity_client.py +2 -2
  267. oci/fusion_apps/service_attachment_client.py +2 -2
  268. oci/generative_ai/generative_ai_client.py +22 -22
  269. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  270. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  271. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  272. oci/golden_gate/golden_gate_client.py +68 -68
  273. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  274. oci/governance_rules_control_plane/work_request_client.py +5 -5
  275. oci/healthchecks/health_checks_client.py +17 -17
  276. oci/identity/identity_client.py +145 -145
  277. oci/identity_data_plane/dataplane_client.py +2 -2
  278. oci/identity_domains/identity_domains_client.py +307 -307
  279. oci/integration/integration_instance_client.py +16 -16
  280. oci/jms/java_management_service_client.py +75 -75
  281. oci/jms_java_downloads/java_download_client.py +25 -25
  282. oci/key_management/ekm_client.py +5 -5
  283. oci/key_management/kms_crypto_client.py +6 -6
  284. oci/key_management/kms_hsm_cluster_client.py +25 -25
  285. oci/key_management/kms_hsm_cluster_client_composite_operations.py +3 -3
  286. oci/key_management/kms_management_client.py +21 -21
  287. oci/key_management/kms_vault_client.py +14 -14
  288. oci/key_management/models/auto_key_rotation_details.py +10 -10
  289. oci/key_management/models/change_hsm_cluster_compartment_details.py +3 -3
  290. oci/key_management/models/create_hsm_cluster_details.py +5 -5
  291. oci/key_management/models/hsm_cluster.py +4 -4
  292. oci/key_management/models/hsm_cluster_collection.py +2 -2
  293. oci/key_management/models/hsm_cluster_summary.py +3 -3
  294. oci/key_management/models/hsm_partition.py +29 -9
  295. oci/key_management/models/hsm_partition_collection.py +1 -1
  296. oci/key_management/models/hsm_partition_summary.py +11 -7
  297. oci/key_management/models/port_information.py +5 -5
  298. oci/key_management/models/pre_co_user_credentials.py +2 -2
  299. oci/key_management/models/upload_partition_certificates_details.py +5 -5
  300. oci/key_management/models/vault.py +31 -0
  301. oci/license_manager/license_manager_client.py +18 -18
  302. oci/limits/limits_client.py +4 -4
  303. oci/limits/quotas_client.py +7 -7
  304. oci/load_balancer/load_balancer_client.py +61 -61
  305. oci/load_balancer/models/backend.py +4 -0
  306. oci/load_balancer/models/backend_details.py +4 -0
  307. oci/load_balancer/models/backend_set.py +6 -2
  308. oci/load_balancer/models/backend_set_details.py +6 -2
  309. oci/load_balancer/models/create_backend_details.py +4 -0
  310. oci/load_balancer/models/create_backend_set_details.py +6 -2
  311. oci/load_balancer/models/create_load_balancer_details.py +116 -0
  312. oci/load_balancer/models/ip_max_connections.py +8 -2
  313. oci/load_balancer/models/load_balancer.py +100 -0
  314. oci/load_balancer/models/update_backend_details.py +4 -0
  315. oci/load_balancer/models/update_backend_set_details.py +6 -2
  316. oci/load_balancer/models/update_load_balancer_details.py +112 -0
  317. oci/lockbox/lockbox_client.py +24 -24
  318. oci/log_analytics/log_analytics_client.py +193 -193
  319. oci/logging/logging_management_client.py +30 -30
  320. oci/loggingingestion/logging_client.py +1 -1
  321. oci/loggingsearch/log_search_client.py +1 -1
  322. oci/management_agent/management_agent_client.py +28 -28
  323. oci/management_dashboard/dashx_apis_client.py +14 -14
  324. oci/marketplace/account_client.py +2 -2
  325. oci/marketplace/marketplace_client.py +30 -30
  326. oci/marketplace_private_offer/attachment_client.py +5 -5
  327. oci/marketplace_private_offer/offer_client.py +6 -6
  328. oci/marketplace_publisher/attachment_client.py +5 -5
  329. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  330. oci/marketplace_publisher/offer_client.py +6 -6
  331. oci/media_services/media_services_client.py +60 -60
  332. oci/media_services/media_stream_client.py +2 -2
  333. oci/monitoring/monitoring_client.py +18 -18
  334. oci/mysql/channels_client.py +7 -7
  335. oci/mysql/db_backups_client.py +7 -7
  336. oci/mysql/db_system_client.py +17 -17
  337. oci/mysql/models/__init__.py +2 -0
  338. oci/mysql/models/create_db_system_details.py +37 -2
  339. oci/mysql/models/customer_contact.py +72 -0
  340. oci/mysql/models/db_system.py +37 -2
  341. oci/mysql/models/update_db_system_details.py +37 -2
  342. oci/mysql/mysqlaas_client.py +7 -7
  343. oci/mysql/replicas_client.py +5 -5
  344. oci/mysql/work_requests_client.py +4 -4
  345. oci/network_firewall/network_firewall_client.py +86 -86
  346. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  347. oci/nosql/nosql_client.py +24 -24
  348. oci/object_storage/models/__init__.py +14 -0
  349. oci/object_storage/models/access_target_details.py +136 -0
  350. oci/object_storage/models/create_private_endpoint_details.py +389 -0
  351. oci/object_storage/models/fqdns.py +99 -0
  352. oci/object_storage/models/prefix_fqdns.py +134 -0
  353. oci/object_storage/models/private_endpoint.py +685 -0
  354. oci/object_storage/models/private_endpoint_summary.py +369 -0
  355. oci/object_storage/models/update_private_endpoint_details.py +216 -0
  356. oci/object_storage/models/work_request.py +15 -3
  357. oci/object_storage/models/work_request_summary.py +15 -3
  358. oci/object_storage/object_storage_client.py +686 -71
  359. oci/object_storage/object_storage_client_composite_operations.py +139 -0
  360. oci/oce/oce_instance_client.py +10 -10
  361. oci/oci_control_center/occ_metrics_client.py +3 -3
  362. oci/ocvp/cluster_client.py +8 -8
  363. oci/ocvp/cluster_client_composite_operations.py +2 -2
  364. oci/ocvp/esxi_host_client.py +9 -9
  365. oci/ocvp/models/cluster.py +35 -2
  366. oci/ocvp/models/cluster_summary.py +35 -2
  367. oci/ocvp/models/datastore_details.py +1 -1
  368. oci/ocvp/models/esxi_host.py +35 -2
  369. oci/ocvp/models/esxi_host_summary.py +35 -2
  370. oci/ocvp/models/sddc.py +35 -2
  371. oci/ocvp/models/sddc_summary.py +35 -2
  372. oci/ocvp/models/supported_host_shape_summary.py +55 -3
  373. oci/ocvp/models/work_request.py +55 -3
  374. oci/ocvp/sddc_client.py +21 -16
  375. oci/ocvp/work_request_client.py +4 -4
  376. oci/oda/management_client.py +59 -59
  377. oci/oda/oda_client.py +17 -17
  378. oci/oda/odapackage_client.py +7 -7
  379. oci/onesubscription/billing_schedule_client.py +1 -1
  380. oci/onesubscription/commitment_client.py +2 -2
  381. oci/onesubscription/computed_usage_client.py +3 -3
  382. oci/onesubscription/invoice_summary_client.py +2 -2
  383. oci/onesubscription/organization_subscription_client.py +1 -1
  384. oci/onesubscription/ratecard_client.py +1 -1
  385. oci/onesubscription/subscribed_service_client.py +2 -2
  386. oci/onesubscription/subscription_client.py +1 -1
  387. oci/ons/notification_control_plane_client.py +6 -6
  388. oci/ons/notification_data_plane_client.py +10 -10
  389. oci/opa/opa_instance_client.py +13 -13
  390. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  391. oci/opensearch/opensearch_cluster_client.py +14 -14
  392. oci/operator_access_control/access_requests_client.py +10 -10
  393. oci/operator_access_control/operator_actions_client.py +2 -2
  394. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  395. oci/operator_access_control/operator_control_client.py +6 -6
  396. oci/opsi/operations_insights_client.py +177 -177
  397. oci/optimizer/optimizer_client.py +26 -26
  398. oci/os_management/event_client.py +8 -8
  399. oci/os_management/os_management_client.py +69 -69
  400. oci/os_management_hub/event_client.py +8 -8
  401. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  402. oci/os_management_hub/managed_instance_client.py +31 -31
  403. oci/os_management_hub/managed_instance_group_client.py +25 -25
  404. oci/os_management_hub/management_station_client.py +10 -10
  405. oci/os_management_hub/onboarding_client.py +6 -6
  406. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  407. oci/os_management_hub/scheduled_job_client.py +7 -7
  408. oci/os_management_hub/software_source_client.py +27 -27
  409. oci/os_management_hub/work_request_client.py +4 -4
  410. oci/osp_gateway/address_rule_service_client.py +1 -1
  411. oci/osp_gateway/address_service_client.py +2 -2
  412. oci/osp_gateway/invoice_service_client.py +5 -5
  413. oci/osp_gateway/subscription_service_client.py +5 -5
  414. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  415. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  416. oci/osub_subscription/commitment_client.py +2 -2
  417. oci/osub_subscription/ratecard_client.py +1 -1
  418. oci/osub_subscription/subscription_client.py +1 -1
  419. oci/osub_usage/computed_usage_client.py +3 -3
  420. oci/psql/postgresql_client.py +33 -33
  421. oci/queue/queue_admin_client.py +11 -11
  422. oci/queue/queue_client.py +8 -8
  423. oci/recovery/database_recovery_client.py +135 -25
  424. oci/recovery/database_recovery_client_composite_operations.py +42 -0
  425. oci/recovery/models/__init__.py +2 -0
  426. oci/recovery/models/change_protected_database_subscription_details.py +103 -0
  427. oci/recovery/models/create_protected_database_details.py +33 -0
  428. oci/recovery/models/create_protection_policy_details.py +39 -0
  429. oci/recovery/models/protected_database.py +31 -0
  430. oci/recovery/models/protected_database_summary.py +31 -0
  431. oci/recovery/models/protection_policy.py +31 -0
  432. oci/recovery/models/protection_policy_summary.py +31 -0
  433. oci/redis/redis_cluster_client.py +12 -12
  434. oci/resource_manager/resource_manager_client.py +52 -52
  435. oci/resource_scheduler/schedule_client.py +13 -13
  436. oci/resource_search/resource_search_client.py +3 -3
  437. oci/rover/rover_bundle_client.py +8 -8
  438. oci/rover/rover_cluster_client.py +8 -8
  439. oci/rover/rover_entitlement_client.py +6 -6
  440. oci/rover/rover_node_client.py +15 -15
  441. oci/rover/shape_client.py +1 -1
  442. oci/rover/work_requests_client.py +5 -5
  443. oci/sch/connector_plugins_client.py +2 -2
  444. oci/sch/service_connector_client.py +12 -12
  445. oci/secrets/secrets_client.py +3 -3
  446. oci/service_catalog/service_catalog_client.py +26 -26
  447. oci/service_endpoints.py +1 -0
  448. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  449. oci/service_mesh/service_mesh_client.py +48 -48
  450. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  451. oci/streaming/stream_admin_client.py +18 -18
  452. oci/streaming/stream_client.py +8 -8
  453. oci/tenant_manager_control_plane/domain_client.py +5 -5
  454. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  455. oci/tenant_manager_control_plane/governance_client.py +2 -2
  456. oci/tenant_manager_control_plane/link_client.py +3 -3
  457. oci/tenant_manager_control_plane/orders_client.py +2 -2
  458. oci/tenant_manager_control_plane/organization_client.py +10 -10
  459. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  460. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  461. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  462. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  463. oci/threat_intelligence/threatintel_client.py +5 -5
  464. oci/usage/resources_client.py +2 -2
  465. oci/usage/rewards_client.py +6 -6
  466. oci/usage/usagelimits_client.py +1 -1
  467. oci/usage_api/usageapi_client.py +33 -33
  468. oci/vault/vaults_client.py +13 -13
  469. oci/vbs_inst/vbs_instance_client.py +10 -10
  470. oci/version.py +1 -1
  471. oci/visual_builder/vb_instance_client.py +13 -13
  472. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  473. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  474. oci/waa/waa_client.py +13 -13
  475. oci/waa/work_request_client.py +4 -4
  476. oci/waas/redirect_client.py +6 -6
  477. oci/waas/waas_client.py +66 -66
  478. oci/waf/models/__init__.py +2 -0
  479. oci/waf/models/dynamic_http_response_body.py +104 -0
  480. oci/waf/models/http_response_body.py +11 -3
  481. oci/waf/models/static_text_http_response_body.py +1 -1
  482. oci/waf/waf_client.py +24 -24
  483. oci/work_requests/work_request_client.py +4 -4
  484. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/METADATA +1 -1
  485. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/RECORD +489 -369
  486. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/LICENSE.txt +0 -0
  487. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  488. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/WHEEL +0 -0
  489. {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/top_level.txt +0 -0
@@ -583,6 +583,132 @@ class DatabaseClientCompositeOperations(object):
583
583
  except Exception as e:
584
584
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
585
585
 
586
+ def cancel_execution_window_and_wait_for_work_request(self, execution_window_id, cancel_execution_window_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
587
+ """
588
+ Calls :py:func:`~oci.database.DatabaseClient.cancel_execution_window` and waits for the oci.work_requests.models.WorkRequest
589
+ to enter the given state(s).
590
+
591
+ :param str execution_window_id: (required)
592
+ The execution window `OCID`__.
593
+
594
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
595
+
596
+ :param oci.database.models.CancelExecutionWindowDetails cancel_execution_window_details: (required)
597
+ Request to cancel the in progress maintenance activity under this execution window.
598
+
599
+ :param list[str] work_request_states: (optional)
600
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
601
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
602
+
603
+ :param dict operation_kwargs:
604
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.cancel_execution_window`
605
+
606
+ :param dict waiter_kwargs:
607
+ 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``
608
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
609
+ """
610
+ operation_result = self.client.cancel_execution_window(execution_window_id, cancel_execution_window_details, **operation_kwargs)
611
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
612
+ lowered_work_request_states = [w.lower() for w in work_request_states]
613
+ if 'opc-work-request-id' not in operation_result.headers:
614
+ return operation_result
615
+ work_request_id = operation_result.headers['opc-work-request-id']
616
+ try:
617
+ waiter_result = oci.wait_until(
618
+ self._work_request_client,
619
+ self._work_request_client.get_work_request(work_request_id),
620
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
621
+ **waiter_kwargs
622
+ )
623
+ return waiter_result
624
+ except Exception as e:
625
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
626
+
627
+ def cancel_execution_window_and_wait_for_state(self, execution_window_id, cancel_execution_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
628
+ """
629
+ Calls :py:func:`~oci.database.DatabaseClient.cancel_execution_window` and waits for the :py:class:`~oci.database.models.ExecutionWindow` acted upon
630
+ to enter the given state(s).
631
+
632
+ :param str execution_window_id: (required)
633
+ The execution window `OCID`__.
634
+
635
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
636
+
637
+ :param oci.database.models.CancelExecutionWindowDetails cancel_execution_window_details: (required)
638
+ Request to cancel the in progress maintenance activity under this execution window.
639
+
640
+ :param list[str] wait_for_states:
641
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionWindow.lifecycle_state`
642
+
643
+ :param dict operation_kwargs:
644
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.cancel_execution_window`
645
+
646
+ :param dict waiter_kwargs:
647
+ 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``
648
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
649
+ """
650
+ operation_result = self.client.cancel_execution_window(execution_window_id, cancel_execution_window_details, **operation_kwargs)
651
+ if not wait_for_states:
652
+ return operation_result
653
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
654
+ execution_window_id = operation_result.data.id
655
+
656
+ try:
657
+ waiter_result = oci.wait_until(
658
+ self.client,
659
+ self.client.get_execution_window(execution_window_id), # noqa: F821
660
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
661
+ **waiter_kwargs
662
+ )
663
+ result_to_return = waiter_result
664
+
665
+ return result_to_return
666
+ except (NameError, TypeError) as e:
667
+ if not e.args:
668
+ e.args = ('',)
669
+ 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"', )
670
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
671
+ except Exception as e:
672
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
673
+
674
+ def cascading_delete_scheduling_plan_and_wait_for_work_request(self, scheduling_plan_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
675
+ """
676
+ Calls :py:func:`~oci.database.DatabaseClient.cascading_delete_scheduling_plan` and waits for the oci.work_requests.models.WorkRequest
677
+ to enter the given state(s).
678
+
679
+ :param str scheduling_plan_id: (required)
680
+ The Schedule Plan `OCID`__.
681
+
682
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
683
+
684
+ :param list[str] work_request_states: (optional)
685
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
686
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
687
+
688
+ :param dict operation_kwargs:
689
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.cascading_delete_scheduling_plan`
690
+
691
+ :param dict waiter_kwargs:
692
+ 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``
693
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
694
+ """
695
+ operation_result = self.client.cascading_delete_scheduling_plan(scheduling_plan_id, **operation_kwargs)
696
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
697
+ lowered_work_request_states = [w.lower() for w in work_request_states]
698
+ if 'opc-work-request-id' not in operation_result.headers:
699
+ return operation_result
700
+ work_request_id = operation_result.headers['opc-work-request-id']
701
+ try:
702
+ waiter_result = oci.wait_until(
703
+ self._work_request_client,
704
+ self._work_request_client.get_work_request(work_request_id),
705
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
706
+ **waiter_kwargs
707
+ )
708
+ return waiter_result
709
+ except Exception as e:
710
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
711
+
586
712
  def change_autonomous_container_database_compartment_and_wait_for_work_request(self, change_compartment_details, autonomous_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
587
713
  """
588
714
  Calls :py:func:`~oci.database.DatabaseClient.change_autonomous_container_database_compartment` and waits for the oci.work_requests.models.WorkRequest
@@ -1711,6 +1837,88 @@ class DatabaseClientCompositeOperations(object):
1711
1837
  except Exception as e:
1712
1838
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1713
1839
 
1840
+ def change_scheduling_plan_compartment_and_wait_for_work_request(self, change_scheduling_plan_compartment_details, scheduling_plan_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1841
+ """
1842
+ Calls :py:func:`~oci.database.DatabaseClient.change_scheduling_plan_compartment` and waits for the oci.work_requests.models.WorkRequest
1843
+ to enter the given state(s).
1844
+
1845
+ :param oci.database.models.ChangeSchedulingPlanCompartmentDetails change_scheduling_plan_compartment_details: (required)
1846
+ Request to move scheduling plan to a different compartment
1847
+
1848
+ :param str scheduling_plan_id: (required)
1849
+ The Schedule Plan `OCID`__.
1850
+
1851
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
1852
+
1853
+ :param list[str] work_request_states: (optional)
1854
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1855
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1856
+
1857
+ :param dict operation_kwargs:
1858
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.change_scheduling_plan_compartment`
1859
+
1860
+ :param dict waiter_kwargs:
1861
+ 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``
1862
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1863
+ """
1864
+ operation_result = self.client.change_scheduling_plan_compartment(change_scheduling_plan_compartment_details, scheduling_plan_id, **operation_kwargs)
1865
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1866
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1867
+ if 'opc-work-request-id' not in operation_result.headers:
1868
+ return operation_result
1869
+ work_request_id = operation_result.headers['opc-work-request-id']
1870
+ try:
1871
+ waiter_result = oci.wait_until(
1872
+ self._work_request_client,
1873
+ self._work_request_client.get_work_request(work_request_id),
1874
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1875
+ **waiter_kwargs
1876
+ )
1877
+ return waiter_result
1878
+ except Exception as e:
1879
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1880
+
1881
+ def change_scheduling_policy_compartment_and_wait_for_work_request(self, change_scheduling_policy_compartment_details, scheduling_policy_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1882
+ """
1883
+ Calls :py:func:`~oci.database.DatabaseClient.change_scheduling_policy_compartment` and waits for the oci.work_requests.models.WorkRequest
1884
+ to enter the given state(s).
1885
+
1886
+ :param oci.database.models.ChangeSchedulingPolicyCompartmentDetails change_scheduling_policy_compartment_details: (required)
1887
+ Request to move scheduling policy to a different compartment
1888
+
1889
+ :param str scheduling_policy_id: (required)
1890
+ The Scheduling Policy `OCID`__.
1891
+
1892
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
1893
+
1894
+ :param list[str] work_request_states: (optional)
1895
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1896
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1897
+
1898
+ :param dict operation_kwargs:
1899
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.change_scheduling_policy_compartment`
1900
+
1901
+ :param dict waiter_kwargs:
1902
+ 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``
1903
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1904
+ """
1905
+ operation_result = self.client.change_scheduling_policy_compartment(change_scheduling_policy_compartment_details, scheduling_policy_id, **operation_kwargs)
1906
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1907
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1908
+ if 'opc-work-request-id' not in operation_result.headers:
1909
+ return operation_result
1910
+ work_request_id = operation_result.headers['opc-work-request-id']
1911
+ try:
1912
+ waiter_result = oci.wait_until(
1913
+ self._work_request_client,
1914
+ self._work_request_client.get_work_request(work_request_id),
1915
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1916
+ **waiter_kwargs
1917
+ )
1918
+ return waiter_result
1919
+ except Exception as e:
1920
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1921
+
1714
1922
  def change_vm_cluster_compartment_and_wait_for_work_request(self, change_vm_cluster_compartment_details, vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1715
1923
  """
1716
1924
  Calls :py:func:`~oci.database.DatabaseClient.change_vm_cluster_compartment` and waits for the oci.work_requests.models.WorkRequest
@@ -3831,62 +4039,26 @@ class DatabaseClientCompositeOperations(object):
3831
4039
  except Exception as e:
3832
4040
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
3833
4041
 
3834
- def create_external_backup_job_and_wait_for_work_request(self, create_external_backup_job_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
3835
- """
3836
- Calls :py:func:`~oci.database.DatabaseClient.create_external_backup_job` and waits for the oci.work_requests.models.WorkRequest
3837
- to enter the given state(s).
3838
-
3839
- :param oci.database.models.CreateExternalBackupJobDetails create_external_backup_job_details: (required)
3840
- Request to create a cloud backup resource for a database running outside the cloud.
3841
-
3842
- :param list[str] work_request_states: (optional)
3843
- An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
3844
- Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
3845
-
3846
- :param dict operation_kwargs:
3847
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_backup_job`
3848
-
3849
- :param dict waiter_kwargs:
3850
- 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``
3851
- as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
3852
- """
3853
- operation_result = self.client.create_external_backup_job(create_external_backup_job_details, **operation_kwargs)
3854
- work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
3855
- lowered_work_request_states = [w.lower() for w in work_request_states]
3856
- if 'opc-work-request-id' not in operation_result.headers:
3857
- return operation_result
3858
- work_request_id = operation_result.headers['opc-work-request-id']
3859
- try:
3860
- waiter_result = oci.wait_until(
3861
- self._work_request_client,
3862
- self._work_request_client.get_work_request(work_request_id),
3863
- evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
3864
- **waiter_kwargs
3865
- )
3866
- return waiter_result
3867
- except Exception as e:
3868
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
3869
-
3870
- def create_external_container_database_and_wait_for_work_request(self, create_external_container_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4042
+ def create_execution_action_and_wait_for_work_request(self, create_execution_action_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
3871
4043
  """
3872
- Calls :py:func:`~oci.database.DatabaseClient.create_external_container_database` and waits for the oci.work_requests.models.WorkRequest
4044
+ Calls :py:func:`~oci.database.DatabaseClient.create_execution_action` and waits for the oci.work_requests.models.WorkRequest
3873
4045
  to enter the given state(s).
3874
4046
 
3875
- :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
3876
- Request to create a new external container database resource.
4047
+ :param oci.database.models.CreateExecutionActionDetails create_execution_action_details: (required)
4048
+ Request to create execution action.
3877
4049
 
3878
4050
  :param list[str] work_request_states: (optional)
3879
4051
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
3880
4052
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
3881
4053
 
3882
4054
  :param dict operation_kwargs:
3883
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_container_database`
4055
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_execution_action`
3884
4056
 
3885
4057
  :param dict waiter_kwargs:
3886
4058
  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``
3887
4059
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
3888
4060
  """
3889
- operation_result = self.client.create_external_container_database(create_external_container_database_details, **operation_kwargs)
4061
+ operation_result = self.client.create_execution_action(create_execution_action_details, **operation_kwargs)
3890
4062
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
3891
4063
  lowered_work_request_states = [w.lower() for w in work_request_states]
3892
4064
  if 'opc-work-request-id' not in operation_result.headers:
@@ -3903,34 +4075,34 @@ class DatabaseClientCompositeOperations(object):
3903
4075
  except Exception as e:
3904
4076
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
3905
4077
 
3906
- def create_external_container_database_and_wait_for_state(self, create_external_container_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4078
+ def create_execution_action_and_wait_for_state(self, create_execution_action_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
3907
4079
  """
3908
- Calls :py:func:`~oci.database.DatabaseClient.create_external_container_database` and waits for the :py:class:`~oci.database.models.ExternalContainerDatabase` acted upon
4080
+ Calls :py:func:`~oci.database.DatabaseClient.create_execution_action` and waits for the :py:class:`~oci.database.models.ExecutionAction` acted upon
3909
4081
  to enter the given state(s).
3910
4082
 
3911
- :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
3912
- Request to create a new external container database resource.
4083
+ :param oci.database.models.CreateExecutionActionDetails create_execution_action_details: (required)
4084
+ Request to create execution action.
3913
4085
 
3914
4086
  :param list[str] wait_for_states:
3915
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalContainerDatabase.lifecycle_state`
4087
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionAction.lifecycle_state`
3916
4088
 
3917
4089
  :param dict operation_kwargs:
3918
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_container_database`
4090
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_execution_action`
3919
4091
 
3920
4092
  :param dict waiter_kwargs:
3921
4093
  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``
3922
4094
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
3923
4095
  """
3924
- operation_result = self.client.create_external_container_database(create_external_container_database_details, **operation_kwargs)
4096
+ operation_result = self.client.create_execution_action(create_execution_action_details, **operation_kwargs)
3925
4097
  if not wait_for_states:
3926
4098
  return operation_result
3927
4099
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
3928
- external_container_database_id = operation_result.data.id
4100
+ execution_action_id = operation_result.data.id
3929
4101
 
3930
4102
  try:
3931
4103
  waiter_result = oci.wait_until(
3932
4104
  self.client,
3933
- self.client.get_external_container_database(external_container_database_id), # noqa: F821
4105
+ self.client.get_execution_action(execution_action_id), # noqa: F821
3934
4106
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
3935
4107
  **waiter_kwargs
3936
4108
  )
@@ -3945,26 +4117,26 @@ class DatabaseClientCompositeOperations(object):
3945
4117
  except Exception as e:
3946
4118
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
3947
4119
 
3948
- def create_external_database_connector_and_wait_for_work_request(self, create_external_database_connector_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4120
+ def create_execution_window_and_wait_for_work_request(self, create_execution_window_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
3949
4121
  """
3950
- Calls :py:func:`~oci.database.DatabaseClient.create_external_database_connector` and waits for the oci.work_requests.models.WorkRequest
4122
+ Calls :py:func:`~oci.database.DatabaseClient.create_execution_window` and waits for the oci.work_requests.models.WorkRequest
3951
4123
  to enter the given state(s).
3952
4124
 
3953
- :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
3954
- Request to create a connector to an external database.
4125
+ :param oci.database.models.CreateExecutionWindowDetails create_execution_window_details: (required)
4126
+ Request to create execution window.
3955
4127
 
3956
4128
  :param list[str] work_request_states: (optional)
3957
4129
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
3958
4130
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
3959
4131
 
3960
4132
  :param dict operation_kwargs:
3961
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_database_connector`
4133
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_execution_window`
3962
4134
 
3963
4135
  :param dict waiter_kwargs:
3964
4136
  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``
3965
4137
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
3966
4138
  """
3967
- operation_result = self.client.create_external_database_connector(create_external_database_connector_details, **operation_kwargs)
4139
+ operation_result = self.client.create_execution_window(create_execution_window_details, **operation_kwargs)
3968
4140
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
3969
4141
  lowered_work_request_states = [w.lower() for w in work_request_states]
3970
4142
  if 'opc-work-request-id' not in operation_result.headers:
@@ -3981,34 +4153,34 @@ class DatabaseClientCompositeOperations(object):
3981
4153
  except Exception as e:
3982
4154
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
3983
4155
 
3984
- def create_external_database_connector_and_wait_for_state(self, create_external_database_connector_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4156
+ def create_execution_window_and_wait_for_state(self, create_execution_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
3985
4157
  """
3986
- Calls :py:func:`~oci.database.DatabaseClient.create_external_database_connector` and waits for the :py:class:`~oci.database.models.ExternalDatabaseConnector` acted upon
4158
+ Calls :py:func:`~oci.database.DatabaseClient.create_execution_window` and waits for the :py:class:`~oci.database.models.ExecutionWindow` acted upon
3987
4159
  to enter the given state(s).
3988
4160
 
3989
- :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
3990
- Request to create a connector to an external database.
4161
+ :param oci.database.models.CreateExecutionWindowDetails create_execution_window_details: (required)
4162
+ Request to create execution window.
3991
4163
 
3992
4164
  :param list[str] wait_for_states:
3993
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalDatabaseConnector.lifecycle_state`
4165
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionWindow.lifecycle_state`
3994
4166
 
3995
4167
  :param dict operation_kwargs:
3996
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_database_connector`
4168
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_execution_window`
3997
4169
 
3998
4170
  :param dict waiter_kwargs:
3999
4171
  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``
4000
4172
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4001
4173
  """
4002
- operation_result = self.client.create_external_database_connector(create_external_database_connector_details, **operation_kwargs)
4174
+ operation_result = self.client.create_execution_window(create_execution_window_details, **operation_kwargs)
4003
4175
  if not wait_for_states:
4004
4176
  return operation_result
4005
4177
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
4006
- external_database_connector_id = operation_result.data.id
4178
+ execution_window_id = operation_result.data.id
4007
4179
 
4008
4180
  try:
4009
4181
  waiter_result = oci.wait_until(
4010
4182
  self.client,
4011
- self.client.get_external_database_connector(external_database_connector_id), # noqa: F821
4183
+ self.client.get_execution_window(execution_window_id), # noqa: F821
4012
4184
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4013
4185
  **waiter_kwargs
4014
4186
  )
@@ -4023,26 +4195,26 @@ class DatabaseClientCompositeOperations(object):
4023
4195
  except Exception as e:
4024
4196
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4025
4197
 
4026
- def create_external_non_container_database_and_wait_for_work_request(self, create_external_non_container_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4198
+ def create_external_backup_job_and_wait_for_work_request(self, create_external_backup_job_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4027
4199
  """
4028
- Calls :py:func:`~oci.database.DatabaseClient.create_external_non_container_database` and waits for the oci.work_requests.models.WorkRequest
4200
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_backup_job` and waits for the oci.work_requests.models.WorkRequest
4029
4201
  to enter the given state(s).
4030
4202
 
4031
- :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
4032
- Request to create a new external non-container database.
4203
+ :param oci.database.models.CreateExternalBackupJobDetails create_external_backup_job_details: (required)
4204
+ Request to create a cloud backup resource for a database running outside the cloud.
4033
4205
 
4034
4206
  :param list[str] work_request_states: (optional)
4035
4207
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4036
4208
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4037
4209
 
4038
4210
  :param dict operation_kwargs:
4039
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_non_container_database`
4211
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_backup_job`
4040
4212
 
4041
4213
  :param dict waiter_kwargs:
4042
4214
  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``
4043
4215
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4044
4216
  """
4045
- operation_result = self.client.create_external_non_container_database(create_external_non_container_database_details, **operation_kwargs)
4217
+ operation_result = self.client.create_external_backup_job(create_external_backup_job_details, **operation_kwargs)
4046
4218
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4047
4219
  lowered_work_request_states = [w.lower() for w in work_request_states]
4048
4220
  if 'opc-work-request-id' not in operation_result.headers:
@@ -4059,16 +4231,208 @@ class DatabaseClientCompositeOperations(object):
4059
4231
  except Exception as e:
4060
4232
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4061
4233
 
4062
- def create_external_non_container_database_and_wait_for_state(self, create_external_non_container_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4234
+ def create_external_container_database_and_wait_for_work_request(self, create_external_container_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4063
4235
  """
4064
- Calls :py:func:`~oci.database.DatabaseClient.create_external_non_container_database` and waits for the :py:class:`~oci.database.models.ExternalNonContainerDatabase` acted upon
4236
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_container_database` and waits for the oci.work_requests.models.WorkRequest
4065
4237
  to enter the given state(s).
4066
4238
 
4067
- :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
4068
- Request to create a new external non-container database.
4069
-
4070
- :param list[str] wait_for_states:
4071
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalNonContainerDatabase.lifecycle_state`
4239
+ :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
4240
+ Request to create a new external container database resource.
4241
+
4242
+ :param list[str] work_request_states: (optional)
4243
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4244
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4245
+
4246
+ :param dict operation_kwargs:
4247
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_container_database`
4248
+
4249
+ :param dict waiter_kwargs:
4250
+ 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``
4251
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4252
+ """
4253
+ operation_result = self.client.create_external_container_database(create_external_container_database_details, **operation_kwargs)
4254
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4255
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4256
+ if 'opc-work-request-id' not in operation_result.headers:
4257
+ return operation_result
4258
+ work_request_id = operation_result.headers['opc-work-request-id']
4259
+ try:
4260
+ waiter_result = oci.wait_until(
4261
+ self._work_request_client,
4262
+ self._work_request_client.get_work_request(work_request_id),
4263
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4264
+ **waiter_kwargs
4265
+ )
4266
+ return waiter_result
4267
+ except Exception as e:
4268
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4269
+
4270
+ def create_external_container_database_and_wait_for_state(self, create_external_container_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4271
+ """
4272
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_container_database` and waits for the :py:class:`~oci.database.models.ExternalContainerDatabase` acted upon
4273
+ to enter the given state(s).
4274
+
4275
+ :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
4276
+ Request to create a new external container database resource.
4277
+
4278
+ :param list[str] wait_for_states:
4279
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalContainerDatabase.lifecycle_state`
4280
+
4281
+ :param dict operation_kwargs:
4282
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_container_database`
4283
+
4284
+ :param dict waiter_kwargs:
4285
+ 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``
4286
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4287
+ """
4288
+ operation_result = self.client.create_external_container_database(create_external_container_database_details, **operation_kwargs)
4289
+ if not wait_for_states:
4290
+ return operation_result
4291
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4292
+ external_container_database_id = operation_result.data.id
4293
+
4294
+ try:
4295
+ waiter_result = oci.wait_until(
4296
+ self.client,
4297
+ self.client.get_external_container_database(external_container_database_id), # noqa: F821
4298
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4299
+ **waiter_kwargs
4300
+ )
4301
+ result_to_return = waiter_result
4302
+
4303
+ return result_to_return
4304
+ except (NameError, TypeError) as e:
4305
+ if not e.args:
4306
+ e.args = ('',)
4307
+ 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"', )
4308
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4309
+ except Exception as e:
4310
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4311
+
4312
+ def create_external_database_connector_and_wait_for_work_request(self, create_external_database_connector_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4313
+ """
4314
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_database_connector` and waits for the oci.work_requests.models.WorkRequest
4315
+ to enter the given state(s).
4316
+
4317
+ :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
4318
+ Request to create a connector to an external database.
4319
+
4320
+ :param list[str] work_request_states: (optional)
4321
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4322
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4323
+
4324
+ :param dict operation_kwargs:
4325
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_database_connector`
4326
+
4327
+ :param dict waiter_kwargs:
4328
+ 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``
4329
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4330
+ """
4331
+ operation_result = self.client.create_external_database_connector(create_external_database_connector_details, **operation_kwargs)
4332
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4333
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4334
+ if 'opc-work-request-id' not in operation_result.headers:
4335
+ return operation_result
4336
+ work_request_id = operation_result.headers['opc-work-request-id']
4337
+ try:
4338
+ waiter_result = oci.wait_until(
4339
+ self._work_request_client,
4340
+ self._work_request_client.get_work_request(work_request_id),
4341
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4342
+ **waiter_kwargs
4343
+ )
4344
+ return waiter_result
4345
+ except Exception as e:
4346
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4347
+
4348
+ def create_external_database_connector_and_wait_for_state(self, create_external_database_connector_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4349
+ """
4350
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_database_connector` and waits for the :py:class:`~oci.database.models.ExternalDatabaseConnector` acted upon
4351
+ to enter the given state(s).
4352
+
4353
+ :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
4354
+ Request to create a connector to an external database.
4355
+
4356
+ :param list[str] wait_for_states:
4357
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalDatabaseConnector.lifecycle_state`
4358
+
4359
+ :param dict operation_kwargs:
4360
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_database_connector`
4361
+
4362
+ :param dict waiter_kwargs:
4363
+ 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``
4364
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4365
+ """
4366
+ operation_result = self.client.create_external_database_connector(create_external_database_connector_details, **operation_kwargs)
4367
+ if not wait_for_states:
4368
+ return operation_result
4369
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4370
+ external_database_connector_id = operation_result.data.id
4371
+
4372
+ try:
4373
+ waiter_result = oci.wait_until(
4374
+ self.client,
4375
+ self.client.get_external_database_connector(external_database_connector_id), # noqa: F821
4376
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4377
+ **waiter_kwargs
4378
+ )
4379
+ result_to_return = waiter_result
4380
+
4381
+ return result_to_return
4382
+ except (NameError, TypeError) as e:
4383
+ if not e.args:
4384
+ e.args = ('',)
4385
+ 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"', )
4386
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4387
+ except Exception as e:
4388
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4389
+
4390
+ def create_external_non_container_database_and_wait_for_work_request(self, create_external_non_container_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4391
+ """
4392
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_non_container_database` and waits for the oci.work_requests.models.WorkRequest
4393
+ to enter the given state(s).
4394
+
4395
+ :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
4396
+ Request to create a new external non-container database.
4397
+
4398
+ :param list[str] work_request_states: (optional)
4399
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4400
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4401
+
4402
+ :param dict operation_kwargs:
4403
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_non_container_database`
4404
+
4405
+ :param dict waiter_kwargs:
4406
+ 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``
4407
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4408
+ """
4409
+ operation_result = self.client.create_external_non_container_database(create_external_non_container_database_details, **operation_kwargs)
4410
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4411
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4412
+ if 'opc-work-request-id' not in operation_result.headers:
4413
+ return operation_result
4414
+ work_request_id = operation_result.headers['opc-work-request-id']
4415
+ try:
4416
+ waiter_result = oci.wait_until(
4417
+ self._work_request_client,
4418
+ self._work_request_client.get_work_request(work_request_id),
4419
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4420
+ **waiter_kwargs
4421
+ )
4422
+ return waiter_result
4423
+ except Exception as e:
4424
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4425
+
4426
+ def create_external_non_container_database_and_wait_for_state(self, create_external_non_container_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4427
+ """
4428
+ Calls :py:func:`~oci.database.DatabaseClient.create_external_non_container_database` and waits for the :py:class:`~oci.database.models.ExternalNonContainerDatabase` acted upon
4429
+ to enter the given state(s).
4430
+
4431
+ :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
4432
+ Request to create a new external non-container database.
4433
+
4434
+ :param list[str] wait_for_states:
4435
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExternalNonContainerDatabase.lifecycle_state`
4072
4436
 
4073
4437
  :param dict operation_kwargs:
4074
4438
  A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_external_non_container_database`
@@ -4200,55 +4564,367 @@ class DatabaseClientCompositeOperations(object):
4200
4564
  operation_result = self.client.create_key_store(create_key_store_details, **operation_kwargs)
4201
4565
  if not wait_for_states:
4202
4566
  return operation_result
4203
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
4204
- key_store_id = operation_result.data.id
4205
-
4567
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4568
+ key_store_id = operation_result.data.id
4569
+
4570
+ try:
4571
+ waiter_result = oci.wait_until(
4572
+ self.client,
4573
+ self.client.get_key_store(key_store_id), # noqa: F821
4574
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4575
+ **waiter_kwargs
4576
+ )
4577
+ result_to_return = waiter_result
4578
+
4579
+ return result_to_return
4580
+ except (NameError, TypeError) as e:
4581
+ if not e.args:
4582
+ e.args = ('',)
4583
+ 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"', )
4584
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4585
+ except Exception as e:
4586
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4587
+
4588
+ def create_maintenance_run_and_wait_for_state(self, create_maintenance_run_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4589
+ """
4590
+ Calls :py:func:`~oci.database.DatabaseClient.create_maintenance_run` and waits for the :py:class:`~oci.database.models.MaintenanceRun` acted upon
4591
+ to enter the given state(s).
4592
+
4593
+ :param oci.database.models.CreateMaintenanceRunDetails create_maintenance_run_details: (required)
4594
+ Request to create a Maintenance Run for the resource.
4595
+
4596
+ :param list[str] wait_for_states:
4597
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.MaintenanceRun.lifecycle_state`
4598
+
4599
+ :param dict operation_kwargs:
4600
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_maintenance_run`
4601
+
4602
+ :param dict waiter_kwargs:
4603
+ 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``
4604
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4605
+ """
4606
+ operation_result = self.client.create_maintenance_run(create_maintenance_run_details, **operation_kwargs)
4607
+ if not wait_for_states:
4608
+ return operation_result
4609
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4610
+ maintenance_run_id = operation_result.data.id
4611
+
4612
+ try:
4613
+ waiter_result = oci.wait_until(
4614
+ self.client,
4615
+ self.client.get_maintenance_run(maintenance_run_id), # noqa: F821
4616
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4617
+ **waiter_kwargs
4618
+ )
4619
+ result_to_return = waiter_result
4620
+
4621
+ return result_to_return
4622
+ except (NameError, TypeError) as e:
4623
+ if not e.args:
4624
+ e.args = ('',)
4625
+ 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"', )
4626
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4627
+ except Exception as e:
4628
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4629
+
4630
+ def create_oneoff_patch_and_wait_for_work_request(self, create_oneoff_patch_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4631
+ """
4632
+ Calls :py:func:`~oci.database.DatabaseClient.create_oneoff_patch` and waits for the oci.work_requests.models.WorkRequest
4633
+ to enter the given state(s).
4634
+
4635
+ :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
4636
+ Request to create a one-off patch to download.
4637
+
4638
+ :param list[str] work_request_states: (optional)
4639
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4640
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4641
+
4642
+ :param dict operation_kwargs:
4643
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_oneoff_patch`
4644
+
4645
+ :param dict waiter_kwargs:
4646
+ 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``
4647
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4648
+ """
4649
+ operation_result = self.client.create_oneoff_patch(create_oneoff_patch_details, **operation_kwargs)
4650
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4651
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4652
+ if 'opc-work-request-id' not in operation_result.headers:
4653
+ return operation_result
4654
+ work_request_id = operation_result.headers['opc-work-request-id']
4655
+ try:
4656
+ waiter_result = oci.wait_until(
4657
+ self._work_request_client,
4658
+ self._work_request_client.get_work_request(work_request_id),
4659
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4660
+ **waiter_kwargs
4661
+ )
4662
+ return waiter_result
4663
+ except Exception as e:
4664
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4665
+
4666
+ def create_oneoff_patch_and_wait_for_state(self, create_oneoff_patch_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4667
+ """
4668
+ Calls :py:func:`~oci.database.DatabaseClient.create_oneoff_patch` and waits for the :py:class:`~oci.database.models.OneoffPatch` acted upon
4669
+ to enter the given state(s).
4670
+
4671
+ :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
4672
+ Request to create a one-off patch to download.
4673
+
4674
+ :param list[str] wait_for_states:
4675
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.OneoffPatch.lifecycle_state`
4676
+
4677
+ :param dict operation_kwargs:
4678
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_oneoff_patch`
4679
+
4680
+ :param dict waiter_kwargs:
4681
+ 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``
4682
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4683
+ """
4684
+ operation_result = self.client.create_oneoff_patch(create_oneoff_patch_details, **operation_kwargs)
4685
+ if not wait_for_states:
4686
+ return operation_result
4687
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4688
+ oneoff_patch_id = operation_result.data.id
4689
+
4690
+ try:
4691
+ waiter_result = oci.wait_until(
4692
+ self.client,
4693
+ self.client.get_oneoff_patch(oneoff_patch_id), # noqa: F821
4694
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4695
+ **waiter_kwargs
4696
+ )
4697
+ result_to_return = waiter_result
4698
+
4699
+ return result_to_return
4700
+ except (NameError, TypeError) as e:
4701
+ if not e.args:
4702
+ e.args = ('',)
4703
+ 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"', )
4704
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4705
+ except Exception as e:
4706
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4707
+
4708
+ def create_pluggable_database_and_wait_for_work_request(self, create_pluggable_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4709
+ """
4710
+ Calls :py:func:`~oci.database.DatabaseClient.create_pluggable_database` and waits for the oci.work_requests.models.WorkRequest
4711
+ to enter the given state(s).
4712
+
4713
+ :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
4714
+ Request to create pluggable database.
4715
+
4716
+ :param list[str] work_request_states: (optional)
4717
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4718
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4719
+
4720
+ :param dict operation_kwargs:
4721
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_pluggable_database`
4722
+
4723
+ :param dict waiter_kwargs:
4724
+ 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``
4725
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4726
+ """
4727
+ operation_result = self.client.create_pluggable_database(create_pluggable_database_details, **operation_kwargs)
4728
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4729
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4730
+ if 'opc-work-request-id' not in operation_result.headers:
4731
+ return operation_result
4732
+ work_request_id = operation_result.headers['opc-work-request-id']
4733
+ try:
4734
+ waiter_result = oci.wait_until(
4735
+ self._work_request_client,
4736
+ self._work_request_client.get_work_request(work_request_id),
4737
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4738
+ **waiter_kwargs
4739
+ )
4740
+ return waiter_result
4741
+ except Exception as e:
4742
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4743
+
4744
+ def create_pluggable_database_and_wait_for_state(self, create_pluggable_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4745
+ """
4746
+ Calls :py:func:`~oci.database.DatabaseClient.create_pluggable_database` and waits for the :py:class:`~oci.database.models.PluggableDatabase` acted upon
4747
+ to enter the given state(s).
4748
+
4749
+ :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
4750
+ Request to create pluggable database.
4751
+
4752
+ :param list[str] wait_for_states:
4753
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.PluggableDatabase.lifecycle_state`
4754
+
4755
+ :param dict operation_kwargs:
4756
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_pluggable_database`
4757
+
4758
+ :param dict waiter_kwargs:
4759
+ 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``
4760
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4761
+ """
4762
+ operation_result = self.client.create_pluggable_database(create_pluggable_database_details, **operation_kwargs)
4763
+ if not wait_for_states:
4764
+ return operation_result
4765
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4766
+ pluggable_database_id = operation_result.data.id
4767
+
4768
+ try:
4769
+ waiter_result = oci.wait_until(
4770
+ self.client,
4771
+ self.client.get_pluggable_database(pluggable_database_id), # noqa: F821
4772
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4773
+ **waiter_kwargs
4774
+ )
4775
+ result_to_return = waiter_result
4776
+
4777
+ return result_to_return
4778
+ except (NameError, TypeError) as e:
4779
+ if not e.args:
4780
+ e.args = ('',)
4781
+ 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"', )
4782
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4783
+ except Exception as e:
4784
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4785
+
4786
+ def create_scheduled_action_and_wait_for_work_request(self, create_scheduled_action_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4787
+ """
4788
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduled_action` and waits for the oci.work_requests.models.WorkRequest
4789
+ to enter the given state(s).
4790
+
4791
+ :param oci.database.models.CreateScheduledActionDetails create_scheduled_action_details: (required)
4792
+ Request to create Scheduled Action.
4793
+
4794
+ :param list[str] work_request_states: (optional)
4795
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4796
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4797
+
4798
+ :param dict operation_kwargs:
4799
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduled_action`
4800
+
4801
+ :param dict waiter_kwargs:
4802
+ 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``
4803
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4804
+ """
4805
+ operation_result = self.client.create_scheduled_action(create_scheduled_action_details, **operation_kwargs)
4806
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4807
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4808
+ if 'opc-work-request-id' not in operation_result.headers:
4809
+ return operation_result
4810
+ work_request_id = operation_result.headers['opc-work-request-id']
4811
+ try:
4812
+ waiter_result = oci.wait_until(
4813
+ self._work_request_client,
4814
+ self._work_request_client.get_work_request(work_request_id),
4815
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4816
+ **waiter_kwargs
4817
+ )
4818
+ return waiter_result
4819
+ except Exception as e:
4820
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4821
+
4822
+ def create_scheduled_action_and_wait_for_state(self, create_scheduled_action_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4823
+ """
4824
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduled_action` and waits for the :py:class:`~oci.database.models.ScheduledAction` acted upon
4825
+ to enter the given state(s).
4826
+
4827
+ :param oci.database.models.CreateScheduledActionDetails create_scheduled_action_details: (required)
4828
+ Request to create Scheduled Action.
4829
+
4830
+ :param list[str] wait_for_states:
4831
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ScheduledAction.lifecycle_state`
4832
+
4833
+ :param dict operation_kwargs:
4834
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduled_action`
4835
+
4836
+ :param dict waiter_kwargs:
4837
+ 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``
4838
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4839
+ """
4840
+ operation_result = self.client.create_scheduled_action(create_scheduled_action_details, **operation_kwargs)
4841
+ if not wait_for_states:
4842
+ return operation_result
4843
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
4844
+ scheduled_action_id = operation_result.data.id
4845
+
4846
+ try:
4847
+ waiter_result = oci.wait_until(
4848
+ self.client,
4849
+ self.client.get_scheduled_action(scheduled_action_id), # noqa: F821
4850
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4851
+ **waiter_kwargs
4852
+ )
4853
+ result_to_return = waiter_result
4854
+
4855
+ return result_to_return
4856
+ except (NameError, TypeError) as e:
4857
+ if not e.args:
4858
+ e.args = ('',)
4859
+ 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"', )
4860
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4861
+ except Exception as e:
4862
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4863
+
4864
+ def create_scheduling_plan_and_wait_for_work_request(self, create_scheduling_plan_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4865
+ """
4866
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_plan` and waits for the oci.work_requests.models.WorkRequest
4867
+ to enter the given state(s).
4868
+
4869
+ :param oci.database.models.CreateSchedulingPlanDetails create_scheduling_plan_details: (required)
4870
+ Request to create Scheduling Plan.
4871
+
4872
+ :param list[str] work_request_states: (optional)
4873
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4874
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4875
+
4876
+ :param dict operation_kwargs:
4877
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_plan`
4878
+
4879
+ :param dict waiter_kwargs:
4880
+ 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``
4881
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4882
+ """
4883
+ operation_result = self.client.create_scheduling_plan(create_scheduling_plan_details, **operation_kwargs)
4884
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4885
+ lowered_work_request_states = [w.lower() for w in work_request_states]
4886
+ if 'opc-work-request-id' not in operation_result.headers:
4887
+ return operation_result
4888
+ work_request_id = operation_result.headers['opc-work-request-id']
4206
4889
  try:
4207
4890
  waiter_result = oci.wait_until(
4208
- self.client,
4209
- self.client.get_key_store(key_store_id), # noqa: F821
4210
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4891
+ self._work_request_client,
4892
+ self._work_request_client.get_work_request(work_request_id),
4893
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
4211
4894
  **waiter_kwargs
4212
4895
  )
4213
- result_to_return = waiter_result
4214
-
4215
- return result_to_return
4216
- except (NameError, TypeError) as e:
4217
- if not e.args:
4218
- e.args = ('',)
4219
- 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"', )
4220
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4896
+ return waiter_result
4221
4897
  except Exception as e:
4222
4898
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4223
4899
 
4224
- def create_maintenance_run_and_wait_for_state(self, create_maintenance_run_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4900
+ def create_scheduling_plan_and_wait_for_state(self, create_scheduling_plan_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4225
4901
  """
4226
- Calls :py:func:`~oci.database.DatabaseClient.create_maintenance_run` and waits for the :py:class:`~oci.database.models.MaintenanceRun` acted upon
4902
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_plan` and waits for the :py:class:`~oci.database.models.SchedulingPlan` acted upon
4227
4903
  to enter the given state(s).
4228
4904
 
4229
- :param oci.database.models.CreateMaintenanceRunDetails create_maintenance_run_details: (required)
4230
- Request to create a Maintenance Run for the resource.
4905
+ :param oci.database.models.CreateSchedulingPlanDetails create_scheduling_plan_details: (required)
4906
+ Request to create Scheduling Plan.
4231
4907
 
4232
4908
  :param list[str] wait_for_states:
4233
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.MaintenanceRun.lifecycle_state`
4909
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingPlan.lifecycle_state`
4234
4910
 
4235
4911
  :param dict operation_kwargs:
4236
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_maintenance_run`
4912
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_plan`
4237
4913
 
4238
4914
  :param dict waiter_kwargs:
4239
4915
  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``
4240
4916
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4241
4917
  """
4242
- operation_result = self.client.create_maintenance_run(create_maintenance_run_details, **operation_kwargs)
4918
+ operation_result = self.client.create_scheduling_plan(create_scheduling_plan_details, **operation_kwargs)
4243
4919
  if not wait_for_states:
4244
4920
  return operation_result
4245
4921
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
4246
- maintenance_run_id = operation_result.data.id
4922
+ scheduling_plan_id = operation_result.data.id
4247
4923
 
4248
4924
  try:
4249
4925
  waiter_result = oci.wait_until(
4250
4926
  self.client,
4251
- self.client.get_maintenance_run(maintenance_run_id), # noqa: F821
4927
+ self.client.get_scheduling_plan(scheduling_plan_id), # noqa: F821
4252
4928
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4253
4929
  **waiter_kwargs
4254
4930
  )
@@ -4263,26 +4939,26 @@ class DatabaseClientCompositeOperations(object):
4263
4939
  except Exception as e:
4264
4940
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4265
4941
 
4266
- def create_oneoff_patch_and_wait_for_work_request(self, create_oneoff_patch_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4942
+ def create_scheduling_policy_and_wait_for_work_request(self, create_scheduling_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4267
4943
  """
4268
- Calls :py:func:`~oci.database.DatabaseClient.create_oneoff_patch` and waits for the oci.work_requests.models.WorkRequest
4944
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_policy` and waits for the oci.work_requests.models.WorkRequest
4269
4945
  to enter the given state(s).
4270
4946
 
4271
- :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
4272
- Request to create a one-off patch to download.
4947
+ :param oci.database.models.CreateSchedulingPolicyDetails create_scheduling_policy_details: (required)
4948
+ Request to create Scheduling Policy.
4273
4949
 
4274
4950
  :param list[str] work_request_states: (optional)
4275
4951
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4276
4952
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4277
4953
 
4278
4954
  :param dict operation_kwargs:
4279
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_oneoff_patch`
4955
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_policy`
4280
4956
 
4281
4957
  :param dict waiter_kwargs:
4282
4958
  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``
4283
4959
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4284
4960
  """
4285
- operation_result = self.client.create_oneoff_patch(create_oneoff_patch_details, **operation_kwargs)
4961
+ operation_result = self.client.create_scheduling_policy(create_scheduling_policy_details, **operation_kwargs)
4286
4962
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4287
4963
  lowered_work_request_states = [w.lower() for w in work_request_states]
4288
4964
  if 'opc-work-request-id' not in operation_result.headers:
@@ -4299,34 +4975,34 @@ class DatabaseClientCompositeOperations(object):
4299
4975
  except Exception as e:
4300
4976
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4301
4977
 
4302
- def create_oneoff_patch_and_wait_for_state(self, create_oneoff_patch_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4978
+ def create_scheduling_policy_and_wait_for_state(self, create_scheduling_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4303
4979
  """
4304
- Calls :py:func:`~oci.database.DatabaseClient.create_oneoff_patch` and waits for the :py:class:`~oci.database.models.OneoffPatch` acted upon
4980
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_policy` and waits for the :py:class:`~oci.database.models.SchedulingPolicy` acted upon
4305
4981
  to enter the given state(s).
4306
4982
 
4307
- :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
4308
- Request to create a one-off patch to download.
4983
+ :param oci.database.models.CreateSchedulingPolicyDetails create_scheduling_policy_details: (required)
4984
+ Request to create Scheduling Policy.
4309
4985
 
4310
4986
  :param list[str] wait_for_states:
4311
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.OneoffPatch.lifecycle_state`
4987
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingPolicy.lifecycle_state`
4312
4988
 
4313
4989
  :param dict operation_kwargs:
4314
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_oneoff_patch`
4990
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_policy`
4315
4991
 
4316
4992
  :param dict waiter_kwargs:
4317
4993
  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``
4318
4994
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4319
4995
  """
4320
- operation_result = self.client.create_oneoff_patch(create_oneoff_patch_details, **operation_kwargs)
4996
+ operation_result = self.client.create_scheduling_policy(create_scheduling_policy_details, **operation_kwargs)
4321
4997
  if not wait_for_states:
4322
4998
  return operation_result
4323
4999
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
4324
- oneoff_patch_id = operation_result.data.id
5000
+ scheduling_policy_id = operation_result.data.id
4325
5001
 
4326
5002
  try:
4327
5003
  waiter_result = oci.wait_until(
4328
5004
  self.client,
4329
- self.client.get_oneoff_patch(oneoff_patch_id), # noqa: F821
5005
+ self.client.get_scheduling_policy(scheduling_policy_id), # noqa: F821
4330
5006
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4331
5007
  **waiter_kwargs
4332
5008
  )
@@ -4341,26 +5017,31 @@ class DatabaseClientCompositeOperations(object):
4341
5017
  except Exception as e:
4342
5018
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4343
5019
 
4344
- def create_pluggable_database_and_wait_for_work_request(self, create_pluggable_database_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
5020
+ def create_scheduling_window_and_wait_for_work_request(self, scheduling_policy_id, create_scheduling_window_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
4345
5021
  """
4346
- Calls :py:func:`~oci.database.DatabaseClient.create_pluggable_database` and waits for the oci.work_requests.models.WorkRequest
5022
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_window` and waits for the oci.work_requests.models.WorkRequest
4347
5023
  to enter the given state(s).
4348
5024
 
4349
- :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
4350
- Request to create pluggable database.
5025
+ :param str scheduling_policy_id: (required)
5026
+ The Scheduling Policy `OCID`__.
5027
+
5028
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
5029
+
5030
+ :param oci.database.models.CreateSchedulingWindowDetails create_scheduling_window_details: (required)
5031
+ Request to create Scheduling Window.
4351
5032
 
4352
5033
  :param list[str] work_request_states: (optional)
4353
5034
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
4354
5035
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
4355
5036
 
4356
5037
  :param dict operation_kwargs:
4357
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_pluggable_database`
5038
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_window`
4358
5039
 
4359
5040
  :param dict waiter_kwargs:
4360
5041
  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``
4361
5042
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4362
5043
  """
4363
- operation_result = self.client.create_pluggable_database(create_pluggable_database_details, **operation_kwargs)
5044
+ operation_result = self.client.create_scheduling_window(scheduling_policy_id, create_scheduling_window_details, **operation_kwargs)
4364
5045
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
4365
5046
  lowered_work_request_states = [w.lower() for w in work_request_states]
4366
5047
  if 'opc-work-request-id' not in operation_result.headers:
@@ -4377,34 +5058,39 @@ class DatabaseClientCompositeOperations(object):
4377
5058
  except Exception as e:
4378
5059
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
4379
5060
 
4380
- def create_pluggable_database_and_wait_for_state(self, create_pluggable_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
5061
+ def create_scheduling_window_and_wait_for_state(self, scheduling_policy_id, create_scheduling_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
4381
5062
  """
4382
- Calls :py:func:`~oci.database.DatabaseClient.create_pluggable_database` and waits for the :py:class:`~oci.database.models.PluggableDatabase` acted upon
5063
+ Calls :py:func:`~oci.database.DatabaseClient.create_scheduling_window` and waits for the :py:class:`~oci.database.models.SchedulingWindow` acted upon
4383
5064
  to enter the given state(s).
4384
5065
 
4385
- :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
4386
- Request to create pluggable database.
5066
+ :param str scheduling_policy_id: (required)
5067
+ The Scheduling Policy `OCID`__.
5068
+
5069
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
5070
+
5071
+ :param oci.database.models.CreateSchedulingWindowDetails create_scheduling_window_details: (required)
5072
+ Request to create Scheduling Window.
4387
5073
 
4388
5074
  :param list[str] wait_for_states:
4389
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.PluggableDatabase.lifecycle_state`
5075
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingWindow.lifecycle_state`
4390
5076
 
4391
5077
  :param dict operation_kwargs:
4392
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_pluggable_database`
5078
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_scheduling_window`
4393
5079
 
4394
5080
  :param dict waiter_kwargs:
4395
5081
  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``
4396
5082
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
4397
5083
  """
4398
- operation_result = self.client.create_pluggable_database(create_pluggable_database_details, **operation_kwargs)
5084
+ operation_result = self.client.create_scheduling_window(scheduling_policy_id, create_scheduling_window_details, **operation_kwargs)
4399
5085
  if not wait_for_states:
4400
5086
  return operation_result
4401
5087
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
4402
- pluggable_database_id = operation_result.data.id
5088
+ scheduling_window_id = operation_result.data.id
4403
5089
 
4404
5090
  try:
4405
5091
  waiter_result = oci.wait_until(
4406
5092
  self.client,
4407
- self.client.get_pluggable_database(pluggable_database_id), # noqa: F821
5093
+ self.client.get_scheduling_window(scheduling_policy_id, scheduling_window_id), # noqa: F821
4408
5094
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
4409
5095
  **waiter_kwargs
4410
5096
  )
@@ -5392,6 +6078,105 @@ class DatabaseClientCompositeOperations(object):
5392
6078
  except Exception as e:
5393
6079
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
5394
6080
 
6081
+ def delete_execution_action_and_wait_for_work_request(self, execution_action_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
6082
+ """
6083
+ Calls :py:func:`~oci.database.DatabaseClient.delete_execution_action` and waits for the oci.work_requests.models.WorkRequest
6084
+ to enter the given state(s).
6085
+
6086
+ :param str execution_action_id: (required)
6087
+ The execution action `OCID`__.
6088
+
6089
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
6090
+
6091
+ :param list[str] work_request_states: (optional)
6092
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
6093
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
6094
+
6095
+ :param dict operation_kwargs:
6096
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_execution_action`
6097
+
6098
+ :param dict waiter_kwargs:
6099
+ 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``
6100
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
6101
+ """
6102
+ operation_result = self.client.delete_execution_action(execution_action_id, **operation_kwargs)
6103
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
6104
+ lowered_work_request_states = [w.lower() for w in work_request_states]
6105
+ if 'opc-work-request-id' not in operation_result.headers:
6106
+ return operation_result
6107
+ work_request_id = operation_result.headers['opc-work-request-id']
6108
+ try:
6109
+ waiter_result = oci.wait_until(
6110
+ self._work_request_client,
6111
+ self._work_request_client.get_work_request(work_request_id),
6112
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
6113
+ **waiter_kwargs
6114
+ )
6115
+ return waiter_result
6116
+ except Exception as e:
6117
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6118
+
6119
+ def delete_execution_window_and_wait_for_state(self, execution_window_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
6120
+ """
6121
+ Calls :py:func:`~oci.database.DatabaseClient.delete_execution_window` and waits for the :py:class:`~oci.database.models.ExecutionWindow` acted upon
6122
+ to enter the given state(s).
6123
+
6124
+ :param str execution_window_id: (required)
6125
+ The execution window `OCID`__.
6126
+
6127
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
6128
+
6129
+ :param list[str] wait_for_states:
6130
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionWindow.lifecycle_state`
6131
+
6132
+ :param dict operation_kwargs:
6133
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_execution_window`
6134
+
6135
+ :param dict waiter_kwargs:
6136
+ 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``
6137
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
6138
+ """
6139
+ initial_get_result = self.client.get_execution_window(execution_window_id)
6140
+ operation_result = None
6141
+ try:
6142
+ operation_result = self.client.delete_execution_window(execution_window_id, **operation_kwargs)
6143
+ except oci.exceptions.ServiceError as e:
6144
+ if e.status == 404:
6145
+ return WAIT_RESOURCE_NOT_FOUND
6146
+ else:
6147
+ raise e
6148
+
6149
+ if not wait_for_states:
6150
+ return operation_result
6151
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
6152
+
6153
+ try:
6154
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
6155
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_execution_window, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
6156
+ else:
6157
+ """
6158
+ If the user does not send in this value, we set it to True by default.
6159
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
6160
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
6161
+ """
6162
+ waiter_kwargs["succeed_on_not_found"] = True
6163
+ waiter_result = oci.wait_until(
6164
+ self.client,
6165
+ initial_get_result, # noqa: F821
6166
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
6167
+ **waiter_kwargs
6168
+ )
6169
+ result_to_return = waiter_result
6170
+
6171
+ return result_to_return
6172
+ except (NameError, TypeError) as e:
6173
+ if not e.args:
6174
+ e.args = ('',)
6175
+ 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"', )
6176
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6177
+ except Exception as e:
6178
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6179
+
5395
6180
  def delete_external_container_database_and_wait_for_work_request(self, external_container_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
5396
6181
  """
5397
6182
  Calls :py:func:`~oci.database.DatabaseClient.delete_external_container_database` and waits for the oci.work_requests.models.WorkRequest
@@ -5678,7 +6463,144 @@ class DatabaseClientCompositeOperations(object):
5678
6463
  evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
5679
6464
  **waiter_kwargs
5680
6465
  )
5681
- return waiter_result
6466
+ return waiter_result
6467
+ except Exception as e:
6468
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6469
+
6470
+ def delete_scheduled_action_and_wait_for_work_request(self, scheduled_action_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
6471
+ """
6472
+ Calls :py:func:`~oci.database.DatabaseClient.delete_scheduled_action` and waits for the oci.work_requests.models.WorkRequest
6473
+ to enter the given state(s).
6474
+
6475
+ :param str scheduled_action_id: (required)
6476
+ The Scheduled Action `OCID`__.
6477
+
6478
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
6479
+
6480
+ :param list[str] work_request_states: (optional)
6481
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
6482
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
6483
+
6484
+ :param dict operation_kwargs:
6485
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_scheduled_action`
6486
+
6487
+ :param dict waiter_kwargs:
6488
+ 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``
6489
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
6490
+ """
6491
+ operation_result = self.client.delete_scheduled_action(scheduled_action_id, **operation_kwargs)
6492
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
6493
+ lowered_work_request_states = [w.lower() for w in work_request_states]
6494
+ if 'opc-work-request-id' not in operation_result.headers:
6495
+ return operation_result
6496
+ work_request_id = operation_result.headers['opc-work-request-id']
6497
+ try:
6498
+ waiter_result = oci.wait_until(
6499
+ self._work_request_client,
6500
+ self._work_request_client.get_work_request(work_request_id),
6501
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
6502
+ **waiter_kwargs
6503
+ )
6504
+ return waiter_result
6505
+ except Exception as e:
6506
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6507
+
6508
+ def delete_scheduling_plan_and_wait_for_work_request(self, scheduling_plan_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
6509
+ """
6510
+ Calls :py:func:`~oci.database.DatabaseClient.delete_scheduling_plan` and waits for the oci.work_requests.models.WorkRequest
6511
+ to enter the given state(s).
6512
+
6513
+ :param str scheduling_plan_id: (required)
6514
+ The Schedule Plan `OCID`__.
6515
+
6516
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
6517
+
6518
+ :param list[str] work_request_states: (optional)
6519
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
6520
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
6521
+
6522
+ :param dict operation_kwargs:
6523
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_scheduling_plan`
6524
+
6525
+ :param dict waiter_kwargs:
6526
+ 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``
6527
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
6528
+ """
6529
+ operation_result = self.client.delete_scheduling_plan(scheduling_plan_id, **operation_kwargs)
6530
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
6531
+ lowered_work_request_states = [w.lower() for w in work_request_states]
6532
+ if 'opc-work-request-id' not in operation_result.headers:
6533
+ return operation_result
6534
+ work_request_id = operation_result.headers['opc-work-request-id']
6535
+ try:
6536
+ waiter_result = oci.wait_until(
6537
+ self._work_request_client,
6538
+ self._work_request_client.get_work_request(work_request_id),
6539
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
6540
+ **waiter_kwargs
6541
+ )
6542
+ return waiter_result
6543
+ except Exception as e:
6544
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
6545
+
6546
+ def delete_scheduling_policy_and_wait_for_state(self, scheduling_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
6547
+ """
6548
+ Calls :py:func:`~oci.database.DatabaseClient.delete_scheduling_policy` and waits for the :py:class:`~oci.database.models.SchedulingPolicy` acted upon
6549
+ to enter the given state(s).
6550
+
6551
+ :param str scheduling_policy_id: (required)
6552
+ The Scheduling Policy `OCID`__.
6553
+
6554
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
6555
+
6556
+ :param list[str] wait_for_states:
6557
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingPolicy.lifecycle_state`
6558
+
6559
+ :param dict operation_kwargs:
6560
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_scheduling_policy`
6561
+
6562
+ :param dict waiter_kwargs:
6563
+ 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``
6564
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
6565
+ """
6566
+ initial_get_result = self.client.get_scheduling_policy(scheduling_policy_id)
6567
+ operation_result = None
6568
+ try:
6569
+ operation_result = self.client.delete_scheduling_policy(scheduling_policy_id, **operation_kwargs)
6570
+ except oci.exceptions.ServiceError as e:
6571
+ if e.status == 404:
6572
+ return WAIT_RESOURCE_NOT_FOUND
6573
+ else:
6574
+ raise e
6575
+
6576
+ if not wait_for_states:
6577
+ return operation_result
6578
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
6579
+
6580
+ try:
6581
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
6582
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_scheduling_policy, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
6583
+ else:
6584
+ """
6585
+ If the user does not send in this value, we set it to True by default.
6586
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
6587
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
6588
+ """
6589
+ waiter_kwargs["succeed_on_not_found"] = True
6590
+ waiter_result = oci.wait_until(
6591
+ self.client,
6592
+ initial_get_result, # noqa: F821
6593
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
6594
+ **waiter_kwargs
6595
+ )
6596
+ result_to_return = waiter_result
6597
+
6598
+ return result_to_return
6599
+ except (NameError, TypeError) as e:
6600
+ if not e.args:
6601
+ e.args = ('',)
6602
+ 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"', )
6603
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
5682
6604
  except Exception as e:
5683
6605
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
5684
6606
 
@@ -7757,6 +8679,94 @@ class DatabaseClientCompositeOperations(object):
7757
8679
  except Exception as e:
7758
8680
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
7759
8681
 
8682
+ def move_execution_action_member_and_wait_for_work_request(self, execution_action_id, move_execution_action_member_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
8683
+ """
8684
+ Calls :py:func:`~oci.database.DatabaseClient.move_execution_action_member` and waits for the oci.work_requests.models.WorkRequest
8685
+ to enter the given state(s).
8686
+
8687
+ :param str execution_action_id: (required)
8688
+ The execution action `OCID`__.
8689
+
8690
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8691
+
8692
+ :param oci.database.models.MoveExecutionActionMemberDetails move_execution_action_member_details: (required)
8693
+ Request to move an execution action member to this execution action resource from another.
8694
+
8695
+ :param list[str] work_request_states: (optional)
8696
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
8697
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
8698
+
8699
+ :param dict operation_kwargs:
8700
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.move_execution_action_member`
8701
+
8702
+ :param dict waiter_kwargs:
8703
+ 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``
8704
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8705
+ """
8706
+ operation_result = self.client.move_execution_action_member(execution_action_id, move_execution_action_member_details, **operation_kwargs)
8707
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
8708
+ lowered_work_request_states = [w.lower() for w in work_request_states]
8709
+ if 'opc-work-request-id' not in operation_result.headers:
8710
+ return operation_result
8711
+ work_request_id = operation_result.headers['opc-work-request-id']
8712
+ try:
8713
+ waiter_result = oci.wait_until(
8714
+ self._work_request_client,
8715
+ self._work_request_client.get_work_request(work_request_id),
8716
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
8717
+ **waiter_kwargs
8718
+ )
8719
+ return waiter_result
8720
+ except Exception as e:
8721
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8722
+
8723
+ def move_execution_action_member_and_wait_for_state(self, execution_action_id, move_execution_action_member_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
8724
+ """
8725
+ Calls :py:func:`~oci.database.DatabaseClient.move_execution_action_member` and waits for the :py:class:`~oci.database.models.ExecutionAction` acted upon
8726
+ to enter the given state(s).
8727
+
8728
+ :param str execution_action_id: (required)
8729
+ The execution action `OCID`__.
8730
+
8731
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8732
+
8733
+ :param oci.database.models.MoveExecutionActionMemberDetails move_execution_action_member_details: (required)
8734
+ Request to move an execution action member to this execution action resource from another.
8735
+
8736
+ :param list[str] wait_for_states:
8737
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionAction.lifecycle_state`
8738
+
8739
+ :param dict operation_kwargs:
8740
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.move_execution_action_member`
8741
+
8742
+ :param dict waiter_kwargs:
8743
+ 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``
8744
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8745
+ """
8746
+ operation_result = self.client.move_execution_action_member(execution_action_id, move_execution_action_member_details, **operation_kwargs)
8747
+ if not wait_for_states:
8748
+ return operation_result
8749
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
8750
+ execution_action_id = operation_result.data.id
8751
+
8752
+ try:
8753
+ waiter_result = oci.wait_until(
8754
+ self.client,
8755
+ self.client.get_execution_action(execution_action_id), # noqa: F821
8756
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
8757
+ **waiter_kwargs
8758
+ )
8759
+ result_to_return = waiter_result
8760
+
8761
+ return result_to_return
8762
+ except (NameError, TypeError) as e:
8763
+ if not e.args:
8764
+ e.args = ('',)
8765
+ 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"', )
8766
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8767
+ except Exception as e:
8768
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8769
+
7760
8770
  def refresh_pluggable_database_and_wait_for_work_request(self, pluggable_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
7761
8771
  """
7762
8772
  Calls :py:func:`~oci.database.DatabaseClient.refresh_pluggable_database` and waits for the oci.work_requests.models.WorkRequest
@@ -8155,16 +9165,192 @@ class DatabaseClientCompositeOperations(object):
8155
9165
  except Exception as e:
8156
9166
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8157
9167
 
8158
- def remove_virtual_machine_from_cloud_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
9168
+ def remove_virtual_machine_from_cloud_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
9169
+ """
9170
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
9171
+ to enter the given state(s).
9172
+
9173
+ :param oci.database.models.RemoveVirtualMachineFromCloudVmClusterDetails remove_virtual_machine_from_cloud_vm_cluster_details: (required)
9174
+ Request to remove Virtual Machines from the Cloud VM cluster.
9175
+
9176
+ :param str cloud_vm_cluster_id: (required)
9177
+ The cloud VM cluster `OCID`__.
9178
+
9179
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9180
+
9181
+ :param list[str] work_request_states: (optional)
9182
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
9183
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
9184
+
9185
+ :param dict operation_kwargs:
9186
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster`
9187
+
9188
+ :param dict waiter_kwargs:
9189
+ 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``
9190
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
9191
+ """
9192
+ operation_result = self.client.remove_virtual_machine_from_cloud_vm_cluster(remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, **operation_kwargs)
9193
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
9194
+ lowered_work_request_states = [w.lower() for w in work_request_states]
9195
+ if 'opc-work-request-id' not in operation_result.headers:
9196
+ return operation_result
9197
+ work_request_id = operation_result.headers['opc-work-request-id']
9198
+ try:
9199
+ waiter_result = oci.wait_until(
9200
+ self._work_request_client,
9201
+ self._work_request_client.get_work_request(work_request_id),
9202
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
9203
+ **waiter_kwargs
9204
+ )
9205
+ return waiter_result
9206
+ except Exception as e:
9207
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9208
+
9209
+ def remove_virtual_machine_from_cloud_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
9210
+ """
9211
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster` and waits for the :py:class:`~oci.database.models.CloudVmCluster` acted upon
9212
+ to enter the given state(s).
9213
+
9214
+ :param oci.database.models.RemoveVirtualMachineFromCloudVmClusterDetails remove_virtual_machine_from_cloud_vm_cluster_details: (required)
9215
+ Request to remove Virtual Machines from the Cloud VM cluster.
9216
+
9217
+ :param str cloud_vm_cluster_id: (required)
9218
+ The cloud VM cluster `OCID`__.
9219
+
9220
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9221
+
9222
+ :param list[str] wait_for_states:
9223
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.CloudVmCluster.lifecycle_state`
9224
+
9225
+ :param dict operation_kwargs:
9226
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster`
9227
+
9228
+ :param dict waiter_kwargs:
9229
+ 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``
9230
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
9231
+ """
9232
+ operation_result = self.client.remove_virtual_machine_from_cloud_vm_cluster(remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, **operation_kwargs)
9233
+ if not wait_for_states:
9234
+ return operation_result
9235
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
9236
+ cloud_vm_cluster_id = operation_result.data.id
9237
+
9238
+ try:
9239
+ waiter_result = oci.wait_until(
9240
+ self.client,
9241
+ self.client.get_cloud_vm_cluster(cloud_vm_cluster_id), # noqa: F821
9242
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
9243
+ **waiter_kwargs
9244
+ )
9245
+ result_to_return = waiter_result
9246
+
9247
+ return result_to_return
9248
+ except (NameError, TypeError) as e:
9249
+ if not e.args:
9250
+ e.args = ('',)
9251
+ 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"', )
9252
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9253
+ except Exception as e:
9254
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9255
+
9256
+ def remove_virtual_machine_from_exadb_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
9257
+ """
9258
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
9259
+ to enter the given state(s).
9260
+
9261
+ :param oci.database.models.RemoveVirtualMachineFromExadbVmClusterDetails remove_virtual_machine_from_exadb_vm_cluster_details: (required)
9262
+ Request to remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure.
9263
+
9264
+ :param str exadb_vm_cluster_id: (required)
9265
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
9266
+
9267
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9268
+
9269
+ :param list[str] work_request_states: (optional)
9270
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
9271
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
9272
+
9273
+ :param dict operation_kwargs:
9274
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster`
9275
+
9276
+ :param dict waiter_kwargs:
9277
+ 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``
9278
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
9279
+ """
9280
+ operation_result = self.client.remove_virtual_machine_from_exadb_vm_cluster(remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, **operation_kwargs)
9281
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
9282
+ lowered_work_request_states = [w.lower() for w in work_request_states]
9283
+ if 'opc-work-request-id' not in operation_result.headers:
9284
+ return operation_result
9285
+ work_request_id = operation_result.headers['opc-work-request-id']
9286
+ try:
9287
+ waiter_result = oci.wait_until(
9288
+ self._work_request_client,
9289
+ self._work_request_client.get_work_request(work_request_id),
9290
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
9291
+ **waiter_kwargs
9292
+ )
9293
+ return waiter_result
9294
+ except Exception as e:
9295
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9296
+
9297
+ def remove_virtual_machine_from_exadb_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
9298
+ """
9299
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster` and waits for the :py:class:`~oci.database.models.ExadbVmCluster` acted upon
9300
+ to enter the given state(s).
9301
+
9302
+ :param oci.database.models.RemoveVirtualMachineFromExadbVmClusterDetails remove_virtual_machine_from_exadb_vm_cluster_details: (required)
9303
+ Request to remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure.
9304
+
9305
+ :param str exadb_vm_cluster_id: (required)
9306
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
9307
+
9308
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9309
+
9310
+ :param list[str] wait_for_states:
9311
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExadbVmCluster.lifecycle_state`
9312
+
9313
+ :param dict operation_kwargs:
9314
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster`
9315
+
9316
+ :param dict waiter_kwargs:
9317
+ 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``
9318
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
9319
+ """
9320
+ operation_result = self.client.remove_virtual_machine_from_exadb_vm_cluster(remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, **operation_kwargs)
9321
+ if not wait_for_states:
9322
+ return operation_result
9323
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
9324
+ exadb_vm_cluster_id = operation_result.data.id
9325
+
9326
+ try:
9327
+ waiter_result = oci.wait_until(
9328
+ self.client,
9329
+ self.client.get_exadb_vm_cluster(exadb_vm_cluster_id), # noqa: F821
9330
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
9331
+ **waiter_kwargs
9332
+ )
9333
+ result_to_return = waiter_result
9334
+
9335
+ return result_to_return
9336
+ except (NameError, TypeError) as e:
9337
+ if not e.args:
9338
+ e.args = ('',)
9339
+ 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"', )
9340
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9341
+ except Exception as e:
9342
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
9343
+
9344
+ def remove_virtual_machine_from_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
8159
9345
  """
8160
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
9346
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
8161
9347
  to enter the given state(s).
8162
9348
 
8163
- :param oci.database.models.RemoveVirtualMachineFromCloudVmClusterDetails remove_virtual_machine_from_cloud_vm_cluster_details: (required)
8164
- Request to remove Virtual Machines from the Cloud VM cluster.
9349
+ :param oci.database.models.RemoveVirtualMachineFromVmClusterDetails remove_virtual_machine_from_vm_cluster_details: (required)
9350
+ Request to remove Virtual Machines from the VM cluster.
8165
9351
 
8166
- :param str cloud_vm_cluster_id: (required)
8167
- The cloud VM cluster `OCID`__.
9352
+ :param str vm_cluster_id: (required)
9353
+ The VM cluster `OCID`__.
8168
9354
 
8169
9355
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8170
9356
 
@@ -8173,13 +9359,13 @@ class DatabaseClientCompositeOperations(object):
8173
9359
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
8174
9360
 
8175
9361
  :param dict operation_kwargs:
8176
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster`
9362
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster`
8177
9363
 
8178
9364
  :param dict waiter_kwargs:
8179
9365
  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``
8180
9366
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8181
9367
  """
8182
- operation_result = self.client.remove_virtual_machine_from_cloud_vm_cluster(remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, **operation_kwargs)
9368
+ operation_result = self.client.remove_virtual_machine_from_vm_cluster(remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, **operation_kwargs)
8183
9369
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
8184
9370
  lowered_work_request_states = [w.lower() for w in work_request_states]
8185
9371
  if 'opc-work-request-id' not in operation_result.headers:
@@ -8196,39 +9382,39 @@ class DatabaseClientCompositeOperations(object):
8196
9382
  except Exception as e:
8197
9383
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8198
9384
 
8199
- def remove_virtual_machine_from_cloud_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
9385
+ def remove_virtual_machine_from_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
8200
9386
  """
8201
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster` and waits for the :py:class:`~oci.database.models.CloudVmCluster` acted upon
9387
+ Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster` and waits for the :py:class:`~oci.database.models.VmCluster` acted upon
8202
9388
  to enter the given state(s).
8203
9389
 
8204
- :param oci.database.models.RemoveVirtualMachineFromCloudVmClusterDetails remove_virtual_machine_from_cloud_vm_cluster_details: (required)
8205
- Request to remove Virtual Machines from the Cloud VM cluster.
9390
+ :param oci.database.models.RemoveVirtualMachineFromVmClusterDetails remove_virtual_machine_from_vm_cluster_details: (required)
9391
+ Request to remove Virtual Machines from the VM cluster.
8206
9392
 
8207
- :param str cloud_vm_cluster_id: (required)
8208
- The cloud VM cluster `OCID`__.
9393
+ :param str vm_cluster_id: (required)
9394
+ The VM cluster `OCID`__.
8209
9395
 
8210
9396
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8211
9397
 
8212
9398
  :param list[str] wait_for_states:
8213
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.CloudVmCluster.lifecycle_state`
9399
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.VmCluster.lifecycle_state`
8214
9400
 
8215
9401
  :param dict operation_kwargs:
8216
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_cloud_vm_cluster`
9402
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster`
8217
9403
 
8218
9404
  :param dict waiter_kwargs:
8219
9405
  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``
8220
9406
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8221
9407
  """
8222
- operation_result = self.client.remove_virtual_machine_from_cloud_vm_cluster(remove_virtual_machine_from_cloud_vm_cluster_details, cloud_vm_cluster_id, **operation_kwargs)
9408
+ operation_result = self.client.remove_virtual_machine_from_vm_cluster(remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, **operation_kwargs)
8223
9409
  if not wait_for_states:
8224
9410
  return operation_result
8225
9411
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
8226
- cloud_vm_cluster_id = operation_result.data.id
9412
+ vm_cluster_id = operation_result.data.id
8227
9413
 
8228
9414
  try:
8229
9415
  waiter_result = oci.wait_until(
8230
9416
  self.client,
8231
- self.client.get_cloud_vm_cluster(cloud_vm_cluster_id), # noqa: F821
9417
+ self.client.get_vm_cluster(vm_cluster_id), # noqa: F821
8232
9418
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
8233
9419
  **waiter_kwargs
8234
9420
  )
@@ -8243,31 +9429,31 @@ class DatabaseClientCompositeOperations(object):
8243
9429
  except Exception as e:
8244
9430
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8245
9431
 
8246
- def remove_virtual_machine_from_exadb_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
9432
+ def reorder_execution_actions_and_wait_for_work_request(self, execution_window_id, reorder_execution_action_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
8247
9433
  """
8248
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
9434
+ Calls :py:func:`~oci.database.DatabaseClient.reorder_execution_actions` and waits for the oci.work_requests.models.WorkRequest
8249
9435
  to enter the given state(s).
8250
9436
 
8251
- :param oci.database.models.RemoveVirtualMachineFromExadbVmClusterDetails remove_virtual_machine_from_exadb_vm_cluster_details: (required)
8252
- Request to remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure.
8253
-
8254
- :param str exadb_vm_cluster_id: (required)
8255
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
9437
+ :param str execution_window_id: (required)
9438
+ The execution window `OCID`__.
8256
9439
 
8257
9440
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8258
9441
 
9442
+ :param oci.database.models.ReorderExecutionActionDetails reorder_execution_action_details: (required)
9443
+ Request to reorder the execution actions under this execution window resource.
9444
+
8259
9445
  :param list[str] work_request_states: (optional)
8260
9446
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
8261
9447
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
8262
9448
 
8263
9449
  :param dict operation_kwargs:
8264
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster`
9450
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reorder_execution_actions`
8265
9451
 
8266
9452
  :param dict waiter_kwargs:
8267
9453
  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``
8268
9454
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8269
9455
  """
8270
- operation_result = self.client.remove_virtual_machine_from_exadb_vm_cluster(remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, **operation_kwargs)
9456
+ operation_result = self.client.reorder_execution_actions(execution_window_id, reorder_execution_action_details, **operation_kwargs)
8271
9457
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
8272
9458
  lowered_work_request_states = [w.lower() for w in work_request_states]
8273
9459
  if 'opc-work-request-id' not in operation_result.headers:
@@ -8284,39 +9470,39 @@ class DatabaseClientCompositeOperations(object):
8284
9470
  except Exception as e:
8285
9471
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8286
9472
 
8287
- def remove_virtual_machine_from_exadb_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
9473
+ def reorder_execution_actions_and_wait_for_state(self, execution_window_id, reorder_execution_action_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
8288
9474
  """
8289
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster` and waits for the :py:class:`~oci.database.models.ExadbVmCluster` acted upon
9475
+ Calls :py:func:`~oci.database.DatabaseClient.reorder_execution_actions` and waits for the :py:class:`~oci.database.models.ExecutionWindow` acted upon
8290
9476
  to enter the given state(s).
8291
9477
 
8292
- :param oci.database.models.RemoveVirtualMachineFromExadbVmClusterDetails remove_virtual_machine_from_exadb_vm_cluster_details: (required)
8293
- Request to remove Virtual Machines from the Exadata VM cluster on Exascale Infrastructure.
8294
-
8295
- :param str exadb_vm_cluster_id: (required)
8296
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
9478
+ :param str execution_window_id: (required)
9479
+ The execution window `OCID`__.
8297
9480
 
8298
9481
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8299
9482
 
9483
+ :param oci.database.models.ReorderExecutionActionDetails reorder_execution_action_details: (required)
9484
+ Request to reorder the execution actions under this execution window resource.
9485
+
8300
9486
  :param list[str] wait_for_states:
8301
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExadbVmCluster.lifecycle_state`
9487
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionWindow.lifecycle_state`
8302
9488
 
8303
9489
  :param dict operation_kwargs:
8304
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_exadb_vm_cluster`
9490
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reorder_execution_actions`
8305
9491
 
8306
9492
  :param dict waiter_kwargs:
8307
9493
  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``
8308
9494
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8309
9495
  """
8310
- operation_result = self.client.remove_virtual_machine_from_exadb_vm_cluster(remove_virtual_machine_from_exadb_vm_cluster_details, exadb_vm_cluster_id, **operation_kwargs)
9496
+ operation_result = self.client.reorder_execution_actions(execution_window_id, reorder_execution_action_details, **operation_kwargs)
8311
9497
  if not wait_for_states:
8312
9498
  return operation_result
8313
9499
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
8314
- exadb_vm_cluster_id = operation_result.data.id
9500
+ execution_window_id = operation_result.data.id
8315
9501
 
8316
9502
  try:
8317
9503
  waiter_result = oci.wait_until(
8318
9504
  self.client,
8319
- self.client.get_exadb_vm_cluster(exadb_vm_cluster_id), # noqa: F821
9505
+ self.client.get_execution_window(execution_window_id), # noqa: F821
8320
9506
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
8321
9507
  **waiter_kwargs
8322
9508
  )
@@ -8331,16 +9517,16 @@ class DatabaseClientCompositeOperations(object):
8331
9517
  except Exception as e:
8332
9518
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8333
9519
 
8334
- def remove_virtual_machine_from_vm_cluster_and_wait_for_work_request(self, remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
9520
+ def reorder_scheduled_actions_and_wait_for_work_request(self, reorder_scheduled_actions_details, scheduling_plan_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
8335
9521
  """
8336
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
9522
+ Calls :py:func:`~oci.database.DatabaseClient.reorder_scheduled_actions` and waits for the oci.work_requests.models.WorkRequest
8337
9523
  to enter the given state(s).
8338
9524
 
8339
- :param oci.database.models.RemoveVirtualMachineFromVmClusterDetails remove_virtual_machine_from_vm_cluster_details: (required)
8340
- Request to remove Virtual Machines from the VM cluster.
9525
+ :param oci.database.models.ReorderScheduledActionsDetails reorder_scheduled_actions_details: (required)
9526
+ Request to re-order Scheduled Action resources.
8341
9527
 
8342
- :param str vm_cluster_id: (required)
8343
- The VM cluster `OCID`__.
9528
+ :param str scheduling_plan_id: (required)
9529
+ The Schedule Plan `OCID`__.
8344
9530
 
8345
9531
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8346
9532
 
@@ -8349,13 +9535,13 @@ class DatabaseClientCompositeOperations(object):
8349
9535
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
8350
9536
 
8351
9537
  :param dict operation_kwargs:
8352
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster`
9538
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reorder_scheduled_actions`
8353
9539
 
8354
9540
  :param dict waiter_kwargs:
8355
9541
  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``
8356
9542
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8357
9543
  """
8358
- operation_result = self.client.remove_virtual_machine_from_vm_cluster(remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, **operation_kwargs)
9544
+ operation_result = self.client.reorder_scheduled_actions(reorder_scheduled_actions_details, scheduling_plan_id, **operation_kwargs)
8359
9545
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
8360
9546
  lowered_work_request_states = [w.lower() for w in work_request_states]
8361
9547
  if 'opc-work-request-id' not in operation_result.headers:
@@ -8372,39 +9558,39 @@ class DatabaseClientCompositeOperations(object):
8372
9558
  except Exception as e:
8373
9559
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
8374
9560
 
8375
- def remove_virtual_machine_from_vm_cluster_and_wait_for_state(self, remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
9561
+ def reorder_scheduled_actions_and_wait_for_state(self, reorder_scheduled_actions_details, scheduling_plan_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
8376
9562
  """
8377
- Calls :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster` and waits for the :py:class:`~oci.database.models.VmCluster` acted upon
9563
+ Calls :py:func:`~oci.database.DatabaseClient.reorder_scheduled_actions` and waits for the :py:class:`~oci.database.models.SchedulingPlan` acted upon
8378
9564
  to enter the given state(s).
8379
9565
 
8380
- :param oci.database.models.RemoveVirtualMachineFromVmClusterDetails remove_virtual_machine_from_vm_cluster_details: (required)
8381
- Request to remove Virtual Machines from the VM cluster.
9566
+ :param oci.database.models.ReorderScheduledActionsDetails reorder_scheduled_actions_details: (required)
9567
+ Request to re-order Scheduled Action resources.
8382
9568
 
8383
- :param str vm_cluster_id: (required)
8384
- The VM cluster `OCID`__.
9569
+ :param str scheduling_plan_id: (required)
9570
+ The Schedule Plan `OCID`__.
8385
9571
 
8386
9572
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
8387
9573
 
8388
9574
  :param list[str] wait_for_states:
8389
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.VmCluster.lifecycle_state`
9575
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingPlan.lifecycle_state`
8390
9576
 
8391
9577
  :param dict operation_kwargs:
8392
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.remove_virtual_machine_from_vm_cluster`
9578
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.reorder_scheduled_actions`
8393
9579
 
8394
9580
  :param dict waiter_kwargs:
8395
9581
  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``
8396
9582
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
8397
9583
  """
8398
- operation_result = self.client.remove_virtual_machine_from_vm_cluster(remove_virtual_machine_from_vm_cluster_details, vm_cluster_id, **operation_kwargs)
9584
+ operation_result = self.client.reorder_scheduled_actions(reorder_scheduled_actions_details, scheduling_plan_id, **operation_kwargs)
8399
9585
  if not wait_for_states:
8400
9586
  return operation_result
8401
9587
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
8402
- vm_cluster_id = operation_result.data.id
9588
+ scheduling_plan_id = operation_result.data.id
8403
9589
 
8404
9590
  try:
8405
9591
  waiter_result = oci.wait_until(
8406
9592
  self.client,
8407
- self.client.get_vm_cluster(vm_cluster_id), # noqa: F821
9593
+ self.client.get_scheduling_plan(scheduling_plan_id), # noqa: F821
8408
9594
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
8409
9595
  **waiter_kwargs
8410
9596
  )
@@ -12071,12 +13257,188 @@ class DatabaseClientCompositeOperations(object):
12071
13257
  if not wait_for_states:
12072
13258
  return operation_result
12073
13259
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
12074
- db_system_id = operation_result.data.id
13260
+ db_system_id = operation_result.data.id
13261
+
13262
+ try:
13263
+ waiter_result = oci.wait_until(
13264
+ self.client,
13265
+ self.client.get_exadata_iorm_config(db_system_id), # noqa: F821
13266
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
13267
+ **waiter_kwargs
13268
+ )
13269
+ result_to_return = waiter_result
13270
+
13271
+ return result_to_return
13272
+ except (NameError, TypeError) as e:
13273
+ if not e.args:
13274
+ e.args = ('',)
13275
+ 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"', )
13276
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13277
+ except Exception as e:
13278
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13279
+
13280
+ def update_exadb_vm_cluster_and_wait_for_work_request(self, exadb_vm_cluster_id, update_exadb_vm_cluster_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
13281
+ """
13282
+ Calls :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
13283
+ to enter the given state(s).
13284
+
13285
+ :param str exadb_vm_cluster_id: (required)
13286
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
13287
+
13288
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
13289
+
13290
+ :param oci.database.models.UpdateExadbVmClusterDetails update_exadb_vm_cluster_details: (required)
13291
+ Request to update the attributes of a Exadata VM cluster on Exascale Infrastructure.
13292
+
13293
+ :param list[str] work_request_states: (optional)
13294
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
13295
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
13296
+
13297
+ :param dict operation_kwargs:
13298
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster`
13299
+
13300
+ :param dict waiter_kwargs:
13301
+ 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``
13302
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
13303
+ """
13304
+ operation_result = self.client.update_exadb_vm_cluster(exadb_vm_cluster_id, update_exadb_vm_cluster_details, **operation_kwargs)
13305
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
13306
+ lowered_work_request_states = [w.lower() for w in work_request_states]
13307
+ if 'opc-work-request-id' not in operation_result.headers:
13308
+ return operation_result
13309
+ work_request_id = operation_result.headers['opc-work-request-id']
13310
+ try:
13311
+ waiter_result = oci.wait_until(
13312
+ self._work_request_client,
13313
+ self._work_request_client.get_work_request(work_request_id),
13314
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
13315
+ **waiter_kwargs
13316
+ )
13317
+ return waiter_result
13318
+ except Exception as e:
13319
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13320
+
13321
+ def update_exadb_vm_cluster_and_wait_for_state(self, exadb_vm_cluster_id, update_exadb_vm_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
13322
+ """
13323
+ Calls :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster` and waits for the :py:class:`~oci.database.models.ExadbVmCluster` acted upon
13324
+ to enter the given state(s).
13325
+
13326
+ :param str exadb_vm_cluster_id: (required)
13327
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
13328
+
13329
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
13330
+
13331
+ :param oci.database.models.UpdateExadbVmClusterDetails update_exadb_vm_cluster_details: (required)
13332
+ Request to update the attributes of a Exadata VM cluster on Exascale Infrastructure.
13333
+
13334
+ :param list[str] wait_for_states:
13335
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExadbVmCluster.lifecycle_state`
13336
+
13337
+ :param dict operation_kwargs:
13338
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster`
13339
+
13340
+ :param dict waiter_kwargs:
13341
+ 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``
13342
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
13343
+ """
13344
+ operation_result = self.client.update_exadb_vm_cluster(exadb_vm_cluster_id, update_exadb_vm_cluster_details, **operation_kwargs)
13345
+ if not wait_for_states:
13346
+ return operation_result
13347
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
13348
+ exadb_vm_cluster_id = operation_result.data.id
13349
+
13350
+ try:
13351
+ waiter_result = oci.wait_until(
13352
+ self.client,
13353
+ self.client.get_exadb_vm_cluster(exadb_vm_cluster_id), # noqa: F821
13354
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
13355
+ **waiter_kwargs
13356
+ )
13357
+ result_to_return = waiter_result
13358
+
13359
+ return result_to_return
13360
+ except (NameError, TypeError) as e:
13361
+ if not e.args:
13362
+ e.args = ('',)
13363
+ 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"', )
13364
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13365
+ except Exception as e:
13366
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13367
+
13368
+ def update_exascale_db_storage_vault_and_wait_for_work_request(self, exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
13369
+ """
13370
+ Calls :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault` and waits for the oci.work_requests.models.WorkRequest
13371
+ to enter the given state(s).
13372
+
13373
+ :param str exascale_db_storage_vault_id: (required)
13374
+ The Exadata Database Storage Vault `OCID`__.
13375
+
13376
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
13377
+
13378
+ :param oci.database.models.UpdateExascaleDbStorageVaultDetails update_exascale_db_storage_vault_details: (required)
13379
+ Request to update the attributes of a Exadata Database Storage Vault.
13380
+
13381
+ :param list[str] work_request_states: (optional)
13382
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
13383
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
13384
+
13385
+ :param dict operation_kwargs:
13386
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault`
13387
+
13388
+ :param dict waiter_kwargs:
13389
+ 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``
13390
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
13391
+ """
13392
+ operation_result = self.client.update_exascale_db_storage_vault(exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, **operation_kwargs)
13393
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
13394
+ lowered_work_request_states = [w.lower() for w in work_request_states]
13395
+ if 'opc-work-request-id' not in operation_result.headers:
13396
+ return operation_result
13397
+ work_request_id = operation_result.headers['opc-work-request-id']
13398
+ try:
13399
+ waiter_result = oci.wait_until(
13400
+ self._work_request_client,
13401
+ self._work_request_client.get_work_request(work_request_id),
13402
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
13403
+ **waiter_kwargs
13404
+ )
13405
+ return waiter_result
13406
+ except Exception as e:
13407
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
13408
+
13409
+ def update_exascale_db_storage_vault_and_wait_for_state(self, exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
13410
+ """
13411
+ Calls :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault` and waits for the :py:class:`~oci.database.models.ExascaleDbStorageVault` acted upon
13412
+ to enter the given state(s).
13413
+
13414
+ :param str exascale_db_storage_vault_id: (required)
13415
+ The Exadata Database Storage Vault `OCID`__.
13416
+
13417
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
13418
+
13419
+ :param oci.database.models.UpdateExascaleDbStorageVaultDetails update_exascale_db_storage_vault_details: (required)
13420
+ Request to update the attributes of a Exadata Database Storage Vault.
13421
+
13422
+ :param list[str] wait_for_states:
13423
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExascaleDbStorageVault.lifecycle_state`
13424
+
13425
+ :param dict operation_kwargs:
13426
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault`
13427
+
13428
+ :param dict waiter_kwargs:
13429
+ 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``
13430
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
13431
+ """
13432
+ operation_result = self.client.update_exascale_db_storage_vault(exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, **operation_kwargs)
13433
+ if not wait_for_states:
13434
+ return operation_result
13435
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
13436
+ exascale_db_storage_vault_id = operation_result.data.id
12075
13437
 
12076
13438
  try:
12077
13439
  waiter_result = oci.wait_until(
12078
13440
  self.client,
12079
- self.client.get_exadata_iorm_config(db_system_id), # noqa: F821
13441
+ self.client.get_exascale_db_storage_vault(exascale_db_storage_vault_id), # noqa: F821
12080
13442
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
12081
13443
  **waiter_kwargs
12082
13444
  )
@@ -12091,31 +13453,31 @@ class DatabaseClientCompositeOperations(object):
12091
13453
  except Exception as e:
12092
13454
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
12093
13455
 
12094
- def update_exadb_vm_cluster_and_wait_for_work_request(self, exadb_vm_cluster_id, update_exadb_vm_cluster_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
13456
+ def update_execution_action_and_wait_for_work_request(self, execution_action_id, update_execution_action_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
12095
13457
  """
12096
- Calls :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster` and waits for the oci.work_requests.models.WorkRequest
13458
+ Calls :py:func:`~oci.database.DatabaseClient.update_execution_action` and waits for the oci.work_requests.models.WorkRequest
12097
13459
  to enter the given state(s).
12098
13460
 
12099
- :param str exadb_vm_cluster_id: (required)
12100
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
13461
+ :param str execution_action_id: (required)
13462
+ The execution action `OCID`__.
12101
13463
 
12102
13464
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
12103
13465
 
12104
- :param oci.database.models.UpdateExadbVmClusterDetails update_exadb_vm_cluster_details: (required)
12105
- Request to update the attributes of a Exadata VM cluster on Exascale Infrastructure.
13466
+ :param oci.database.models.UpdateExecutionActionDetails update_execution_action_details: (required)
13467
+ Request to update the properties of a execution action.
12106
13468
 
12107
13469
  :param list[str] work_request_states: (optional)
12108
13470
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
12109
13471
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
12110
13472
 
12111
13473
  :param dict operation_kwargs:
12112
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster`
13474
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_execution_action`
12113
13475
 
12114
13476
  :param dict waiter_kwargs:
12115
13477
  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``
12116
13478
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
12117
13479
  """
12118
- operation_result = self.client.update_exadb_vm_cluster(exadb_vm_cluster_id, update_exadb_vm_cluster_details, **operation_kwargs)
13480
+ operation_result = self.client.update_execution_action(execution_action_id, update_execution_action_details, **operation_kwargs)
12119
13481
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
12120
13482
  lowered_work_request_states = [w.lower() for w in work_request_states]
12121
13483
  if 'opc-work-request-id' not in operation_result.headers:
@@ -12132,39 +13494,39 @@ class DatabaseClientCompositeOperations(object):
12132
13494
  except Exception as e:
12133
13495
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
12134
13496
 
12135
- def update_exadb_vm_cluster_and_wait_for_state(self, exadb_vm_cluster_id, update_exadb_vm_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
13497
+ def update_execution_action_and_wait_for_state(self, execution_action_id, update_execution_action_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
12136
13498
  """
12137
- Calls :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster` and waits for the :py:class:`~oci.database.models.ExadbVmCluster` acted upon
13499
+ Calls :py:func:`~oci.database.DatabaseClient.update_execution_action` and waits for the :py:class:`~oci.database.models.ExecutionAction` acted upon
12138
13500
  to enter the given state(s).
12139
13501
 
12140
- :param str exadb_vm_cluster_id: (required)
12141
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
13502
+ :param str execution_action_id: (required)
13503
+ The execution action `OCID`__.
12142
13504
 
12143
13505
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
12144
13506
 
12145
- :param oci.database.models.UpdateExadbVmClusterDetails update_exadb_vm_cluster_details: (required)
12146
- Request to update the attributes of a Exadata VM cluster on Exascale Infrastructure.
13507
+ :param oci.database.models.UpdateExecutionActionDetails update_execution_action_details: (required)
13508
+ Request to update the properties of a execution action.
12147
13509
 
12148
13510
  :param list[str] wait_for_states:
12149
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExadbVmCluster.lifecycle_state`
13511
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionAction.lifecycle_state`
12150
13512
 
12151
13513
  :param dict operation_kwargs:
12152
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exadb_vm_cluster`
13514
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_execution_action`
12153
13515
 
12154
13516
  :param dict waiter_kwargs:
12155
13517
  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``
12156
13518
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
12157
13519
  """
12158
- operation_result = self.client.update_exadb_vm_cluster(exadb_vm_cluster_id, update_exadb_vm_cluster_details, **operation_kwargs)
13520
+ operation_result = self.client.update_execution_action(execution_action_id, update_execution_action_details, **operation_kwargs)
12159
13521
  if not wait_for_states:
12160
13522
  return operation_result
12161
13523
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
12162
- exadb_vm_cluster_id = operation_result.data.id
13524
+ execution_action_id = operation_result.data.id
12163
13525
 
12164
13526
  try:
12165
13527
  waiter_result = oci.wait_until(
12166
13528
  self.client,
12167
- self.client.get_exadb_vm_cluster(exadb_vm_cluster_id), # noqa: F821
13529
+ self.client.get_execution_action(execution_action_id), # noqa: F821
12168
13530
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
12169
13531
  **waiter_kwargs
12170
13532
  )
@@ -12179,31 +13541,31 @@ class DatabaseClientCompositeOperations(object):
12179
13541
  except Exception as e:
12180
13542
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
12181
13543
 
12182
- def update_exascale_db_storage_vault_and_wait_for_work_request(self, exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
13544
+ def update_execution_window_and_wait_for_work_request(self, execution_window_id, update_execution_window_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
12183
13545
  """
12184
- Calls :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault` and waits for the oci.work_requests.models.WorkRequest
13546
+ Calls :py:func:`~oci.database.DatabaseClient.update_execution_window` and waits for the oci.work_requests.models.WorkRequest
12185
13547
  to enter the given state(s).
12186
13548
 
12187
- :param str exascale_db_storage_vault_id: (required)
12188
- The Exadata Database Storage Vault `OCID`__.
13549
+ :param str execution_window_id: (required)
13550
+ The execution window `OCID`__.
12189
13551
 
12190
13552
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
12191
13553
 
12192
- :param oci.database.models.UpdateExascaleDbStorageVaultDetails update_exascale_db_storage_vault_details: (required)
12193
- Request to update the attributes of a Exadata Database Storage Vault.
13554
+ :param oci.database.models.UpdateExecutionWindowDetails update_execution_window_details: (required)
13555
+ Request to update the properties of a execution window.
12194
13556
 
12195
13557
  :param list[str] work_request_states: (optional)
12196
13558
  An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
12197
13559
  Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
12198
13560
 
12199
13561
  :param dict operation_kwargs:
12200
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault`
13562
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_execution_window`
12201
13563
 
12202
13564
  :param dict waiter_kwargs:
12203
13565
  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``
12204
13566
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
12205
13567
  """
12206
- operation_result = self.client.update_exascale_db_storage_vault(exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, **operation_kwargs)
13568
+ operation_result = self.client.update_execution_window(execution_window_id, update_execution_window_details, **operation_kwargs)
12207
13569
  work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
12208
13570
  lowered_work_request_states = [w.lower() for w in work_request_states]
12209
13571
  if 'opc-work-request-id' not in operation_result.headers:
@@ -12220,39 +13582,39 @@ class DatabaseClientCompositeOperations(object):
12220
13582
  except Exception as e:
12221
13583
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
12222
13584
 
12223
- def update_exascale_db_storage_vault_and_wait_for_state(self, exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
13585
+ def update_execution_window_and_wait_for_state(self, execution_window_id, update_execution_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
12224
13586
  """
12225
- Calls :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault` and waits for the :py:class:`~oci.database.models.ExascaleDbStorageVault` acted upon
13587
+ Calls :py:func:`~oci.database.DatabaseClient.update_execution_window` and waits for the :py:class:`~oci.database.models.ExecutionWindow` acted upon
12226
13588
  to enter the given state(s).
12227
13589
 
12228
- :param str exascale_db_storage_vault_id: (required)
12229
- The Exadata Database Storage Vault `OCID`__.
13590
+ :param str execution_window_id: (required)
13591
+ The execution window `OCID`__.
12230
13592
 
12231
13593
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
12232
13594
 
12233
- :param oci.database.models.UpdateExascaleDbStorageVaultDetails update_exascale_db_storage_vault_details: (required)
12234
- Request to update the attributes of a Exadata Database Storage Vault.
13595
+ :param oci.database.models.UpdateExecutionWindowDetails update_execution_window_details: (required)
13596
+ Request to update the properties of a execution window.
12235
13597
 
12236
13598
  :param list[str] wait_for_states:
12237
- An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExascaleDbStorageVault.lifecycle_state`
13599
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ExecutionWindow.lifecycle_state`
12238
13600
 
12239
13601
  :param dict operation_kwargs:
12240
- A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_exascale_db_storage_vault`
13602
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_execution_window`
12241
13603
 
12242
13604
  :param dict waiter_kwargs:
12243
13605
  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``
12244
13606
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
12245
13607
  """
12246
- operation_result = self.client.update_exascale_db_storage_vault(exascale_db_storage_vault_id, update_exascale_db_storage_vault_details, **operation_kwargs)
13608
+ operation_result = self.client.update_execution_window(execution_window_id, update_execution_window_details, **operation_kwargs)
12247
13609
  if not wait_for_states:
12248
13610
  return operation_result
12249
13611
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
12250
- exascale_db_storage_vault_id = operation_result.data.id
13612
+ execution_window_id = operation_result.data.id
12251
13613
 
12252
13614
  try:
12253
13615
  waiter_result = oci.wait_until(
12254
13616
  self.client,
12255
- self.client.get_exascale_db_storage_vault(exascale_db_storage_vault_id), # noqa: F821
13617
+ self.client.get_execution_window(execution_window_id), # noqa: F821
12256
13618
  evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
12257
13619
  **waiter_kwargs
12258
13620
  )
@@ -12850,6 +14212,280 @@ class DatabaseClientCompositeOperations(object):
12850
14212
  except Exception as e:
12851
14213
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
12852
14214
 
14215
+ def update_scheduled_action_and_wait_for_work_request(self, scheduled_action_id, update_scheduled_action_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
14216
+ """
14217
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduled_action` and waits for the oci.work_requests.models.WorkRequest
14218
+ to enter the given state(s).
14219
+
14220
+ :param str scheduled_action_id: (required)
14221
+ The Scheduled Action `OCID`__.
14222
+
14223
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14224
+
14225
+ :param oci.database.models.UpdateScheduledActionDetails update_scheduled_action_details: (required)
14226
+ Request to update the properties of a Scheduled Action.
14227
+
14228
+ :param list[str] work_request_states: (optional)
14229
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
14230
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
14231
+
14232
+ :param dict operation_kwargs:
14233
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduled_action`
14234
+
14235
+ :param dict waiter_kwargs:
14236
+ 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``
14237
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14238
+ """
14239
+ operation_result = self.client.update_scheduled_action(scheduled_action_id, update_scheduled_action_details, **operation_kwargs)
14240
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
14241
+ lowered_work_request_states = [w.lower() for w in work_request_states]
14242
+ if 'opc-work-request-id' not in operation_result.headers:
14243
+ return operation_result
14244
+ work_request_id = operation_result.headers['opc-work-request-id']
14245
+ try:
14246
+ waiter_result = oci.wait_until(
14247
+ self._work_request_client,
14248
+ self._work_request_client.get_work_request(work_request_id),
14249
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
14250
+ **waiter_kwargs
14251
+ )
14252
+ return waiter_result
14253
+ except Exception as e:
14254
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14255
+
14256
+ def update_scheduled_action_and_wait_for_state(self, scheduled_action_id, update_scheduled_action_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
14257
+ """
14258
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduled_action` and waits for the :py:class:`~oci.database.models.ScheduledAction` acted upon
14259
+ to enter the given state(s).
14260
+
14261
+ :param str scheduled_action_id: (required)
14262
+ The Scheduled Action `OCID`__.
14263
+
14264
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14265
+
14266
+ :param oci.database.models.UpdateScheduledActionDetails update_scheduled_action_details: (required)
14267
+ Request to update the properties of a Scheduled Action.
14268
+
14269
+ :param list[str] wait_for_states:
14270
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.ScheduledAction.lifecycle_state`
14271
+
14272
+ :param dict operation_kwargs:
14273
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduled_action`
14274
+
14275
+ :param dict waiter_kwargs:
14276
+ 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``
14277
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14278
+ """
14279
+ operation_result = self.client.update_scheduled_action(scheduled_action_id, update_scheduled_action_details, **operation_kwargs)
14280
+ if not wait_for_states:
14281
+ return operation_result
14282
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
14283
+ scheduled_action_id = operation_result.data.id
14284
+
14285
+ try:
14286
+ waiter_result = oci.wait_until(
14287
+ self.client,
14288
+ self.client.get_scheduled_action(scheduled_action_id), # noqa: F821
14289
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
14290
+ **waiter_kwargs
14291
+ )
14292
+ result_to_return = waiter_result
14293
+
14294
+ return result_to_return
14295
+ except (NameError, TypeError) as e:
14296
+ if not e.args:
14297
+ e.args = ('',)
14298
+ 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"', )
14299
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14300
+ except Exception as e:
14301
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14302
+
14303
+ def update_scheduling_policy_and_wait_for_work_request(self, scheduling_policy_id, update_scheduling_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
14304
+ """
14305
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduling_policy` and waits for the oci.work_requests.models.WorkRequest
14306
+ to enter the given state(s).
14307
+
14308
+ :param str scheduling_policy_id: (required)
14309
+ The Scheduling Policy `OCID`__.
14310
+
14311
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14312
+
14313
+ :param oci.database.models.UpdateSchedulingPolicyDetails update_scheduling_policy_details: (required)
14314
+ Request to update the properties of a Scheduling Policy.
14315
+
14316
+ :param list[str] work_request_states: (optional)
14317
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
14318
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
14319
+
14320
+ :param dict operation_kwargs:
14321
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduling_policy`
14322
+
14323
+ :param dict waiter_kwargs:
14324
+ 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``
14325
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14326
+ """
14327
+ operation_result = self.client.update_scheduling_policy(scheduling_policy_id, update_scheduling_policy_details, **operation_kwargs)
14328
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
14329
+ lowered_work_request_states = [w.lower() for w in work_request_states]
14330
+ if 'opc-work-request-id' not in operation_result.headers:
14331
+ return operation_result
14332
+ work_request_id = operation_result.headers['opc-work-request-id']
14333
+ try:
14334
+ waiter_result = oci.wait_until(
14335
+ self._work_request_client,
14336
+ self._work_request_client.get_work_request(work_request_id),
14337
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
14338
+ **waiter_kwargs
14339
+ )
14340
+ return waiter_result
14341
+ except Exception as e:
14342
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14343
+
14344
+ def update_scheduling_policy_and_wait_for_state(self, scheduling_policy_id, update_scheduling_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
14345
+ """
14346
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduling_policy` and waits for the :py:class:`~oci.database.models.SchedulingPolicy` acted upon
14347
+ to enter the given state(s).
14348
+
14349
+ :param str scheduling_policy_id: (required)
14350
+ The Scheduling Policy `OCID`__.
14351
+
14352
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14353
+
14354
+ :param oci.database.models.UpdateSchedulingPolicyDetails update_scheduling_policy_details: (required)
14355
+ Request to update the properties of a Scheduling Policy.
14356
+
14357
+ :param list[str] wait_for_states:
14358
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingPolicy.lifecycle_state`
14359
+
14360
+ :param dict operation_kwargs:
14361
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduling_policy`
14362
+
14363
+ :param dict waiter_kwargs:
14364
+ 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``
14365
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14366
+ """
14367
+ operation_result = self.client.update_scheduling_policy(scheduling_policy_id, update_scheduling_policy_details, **operation_kwargs)
14368
+ if not wait_for_states:
14369
+ return operation_result
14370
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
14371
+ scheduling_policy_id = operation_result.data.id
14372
+
14373
+ try:
14374
+ waiter_result = oci.wait_until(
14375
+ self.client,
14376
+ self.client.get_scheduling_policy(scheduling_policy_id), # noqa: F821
14377
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
14378
+ **waiter_kwargs
14379
+ )
14380
+ result_to_return = waiter_result
14381
+
14382
+ return result_to_return
14383
+ except (NameError, TypeError) as e:
14384
+ if not e.args:
14385
+ e.args = ('',)
14386
+ 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"', )
14387
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14388
+ except Exception as e:
14389
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14390
+
14391
+ def update_scheduling_window_and_wait_for_work_request(self, scheduling_policy_id, scheduling_window_id, update_scheduling_window_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
14392
+ """
14393
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduling_window` and waits for the oci.work_requests.models.WorkRequest
14394
+ to enter the given state(s).
14395
+
14396
+ :param str scheduling_policy_id: (required)
14397
+ The Scheduling Policy `OCID`__.
14398
+
14399
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14400
+
14401
+ :param str scheduling_window_id: (required)
14402
+ The Scheduling Window `OCID`__.
14403
+
14404
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14405
+
14406
+ :param oci.database.models.UpdateSchedulingWindowDetails update_scheduling_window_details: (required)
14407
+ Request to update the properties of a Scheduling Window.
14408
+
14409
+ :param list[str] work_request_states: (optional)
14410
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
14411
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
14412
+
14413
+ :param dict operation_kwargs:
14414
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduling_window`
14415
+
14416
+ :param dict waiter_kwargs:
14417
+ 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``
14418
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14419
+ """
14420
+ operation_result = self.client.update_scheduling_window(scheduling_policy_id, scheduling_window_id, update_scheduling_window_details, **operation_kwargs)
14421
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
14422
+ lowered_work_request_states = [w.lower() for w in work_request_states]
14423
+ if 'opc-work-request-id' not in operation_result.headers:
14424
+ return operation_result
14425
+ work_request_id = operation_result.headers['opc-work-request-id']
14426
+ try:
14427
+ waiter_result = oci.wait_until(
14428
+ self._work_request_client,
14429
+ self._work_request_client.get_work_request(work_request_id),
14430
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
14431
+ **waiter_kwargs
14432
+ )
14433
+ return waiter_result
14434
+ except Exception as e:
14435
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14436
+
14437
+ def update_scheduling_window_and_wait_for_state(self, scheduling_policy_id, scheduling_window_id, update_scheduling_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
14438
+ """
14439
+ Calls :py:func:`~oci.database.DatabaseClient.update_scheduling_window` and waits for the :py:class:`~oci.database.models.SchedulingWindow` acted upon
14440
+ to enter the given state(s).
14441
+
14442
+ :param str scheduling_policy_id: (required)
14443
+ The Scheduling Policy `OCID`__.
14444
+
14445
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14446
+
14447
+ :param str scheduling_window_id: (required)
14448
+ The Scheduling Window `OCID`__.
14449
+
14450
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
14451
+
14452
+ :param oci.database.models.UpdateSchedulingWindowDetails update_scheduling_window_details: (required)
14453
+ Request to update the properties of a Scheduling Window.
14454
+
14455
+ :param list[str] wait_for_states:
14456
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.SchedulingWindow.lifecycle_state`
14457
+
14458
+ :param dict operation_kwargs:
14459
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_scheduling_window`
14460
+
14461
+ :param dict waiter_kwargs:
14462
+ 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``
14463
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
14464
+ """
14465
+ operation_result = self.client.update_scheduling_window(scheduling_policy_id, scheduling_window_id, update_scheduling_window_details, **operation_kwargs)
14466
+ if not wait_for_states:
14467
+ return operation_result
14468
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
14469
+ scheduling_window_id = operation_result.data.id
14470
+
14471
+ try:
14472
+ waiter_result = oci.wait_until(
14473
+ self.client,
14474
+ self.client.get_scheduling_window(scheduling_policy_id, scheduling_window_id), # noqa: F821
14475
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
14476
+ **waiter_kwargs
14477
+ )
14478
+ result_to_return = waiter_result
14479
+
14480
+ return result_to_return
14481
+ except (NameError, TypeError) as e:
14482
+ if not e.args:
14483
+ e.args = ('',)
14484
+ 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"', )
14485
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14486
+ except Exception as e:
14487
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
14488
+
12853
14489
  def update_vm_cluster_and_wait_for_work_request(self, vm_cluster_id, update_vm_cluster_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
12854
14490
  """
12855
14491
  Calls :py:func:`~oci.database.DatabaseClient.update_vm_cluster` and waits for the oci.work_requests.models.WorkRequest