oci 2.154.1__py3-none-any.whl → 2.154.2__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 (417) 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 +26 -26
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +19 -19
  8. oci/ai_vision/ai_service_vision_client.py +28 -28
  9. oci/analytics/analytics_client.py +24 -24
  10. oci/announcements_service/announcement_client.py +5 -5
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/announcements_service/service_client.py +1 -1
  14. oci/apiaccesscontrol/__init__.py +20 -0
  15. oci/apiaccesscontrol/api_metadata_client.py +567 -0
  16. oci/apiaccesscontrol/api_metadata_client_composite_operations.py +26 -0
  17. oci/apiaccesscontrol/models/__init__.py +72 -0
  18. oci/apiaccesscontrol/models/api_metadata.py +596 -0
  19. oci/apiaccesscontrol/models/api_metadata_by_entity_type_collection.py +70 -0
  20. oci/apiaccesscontrol/models/api_metadata_by_entity_type_summary.py +218 -0
  21. oci/apiaccesscontrol/models/api_metadata_collection.py +70 -0
  22. oci/apiaccesscontrol/models/api_metadata_summary.py +486 -0
  23. oci/apiaccesscontrol/models/approve_privileged_api_request_details.py +105 -0
  24. oci/apiaccesscontrol/models/approver_detail.py +202 -0
  25. oci/apiaccesscontrol/models/change_privileged_api_control_compartment_details.py +74 -0
  26. oci/apiaccesscontrol/models/close_privileged_api_request_details.py +70 -0
  27. oci/apiaccesscontrol/models/create_privileged_api_control_details.py +404 -0
  28. oci/apiaccesscontrol/models/create_privileged_api_request_details.py +502 -0
  29. oci/apiaccesscontrol/models/privileged_api_control.py +761 -0
  30. oci/apiaccesscontrol/models/privileged_api_control_collection.py +70 -0
  31. oci/apiaccesscontrol/models/privileged_api_control_summary.py +494 -0
  32. oci/apiaccesscontrol/models/privileged_api_details.py +132 -0
  33. oci/apiaccesscontrol/models/privileged_api_request.py +1209 -0
  34. oci/apiaccesscontrol/models/privileged_api_request_collection.py +70 -0
  35. oci/apiaccesscontrol/models/privileged_api_request_operation_details.py +101 -0
  36. oci/apiaccesscontrol/models/privileged_api_request_summary.py +750 -0
  37. oci/apiaccesscontrol/models/reject_privileged_api_request_details.py +70 -0
  38. oci/apiaccesscontrol/models/revoke_privileged_api_request_details.py +70 -0
  39. oci/apiaccesscontrol/models/update_privileged_api_control_details.py +369 -0
  40. oci/apiaccesscontrol/models/work_request.py +525 -0
  41. oci/apiaccesscontrol/models/work_request_error.py +144 -0
  42. oci/apiaccesscontrol/models/work_request_error_collection.py +70 -0
  43. oci/apiaccesscontrol/models/work_request_log_entry.py +107 -0
  44. oci/apiaccesscontrol/models/work_request_log_entry_collection.py +70 -0
  45. oci/apiaccesscontrol/models/work_request_resource.py +236 -0
  46. oci/apiaccesscontrol/models/work_request_summary.py +523 -0
  47. oci/apiaccesscontrol/models/work_request_summary_collection.py +70 -0
  48. oci/apiaccesscontrol/privileged_api_control_client.py +865 -0
  49. oci/apiaccesscontrol/privileged_api_control_client_composite_operations.py +202 -0
  50. oci/apiaccesscontrol/privileged_api_requests_client.py +1012 -0
  51. oci/apiaccesscontrol/privileged_api_requests_client_composite_operations.py +233 -0
  52. oci/apiaccesscontrol/privileged_api_work_request_client.py +817 -0
  53. oci/apiaccesscontrol/privileged_api_work_request_client_composite_operations.py +26 -0
  54. oci/apigateway/api_gateway_client.py +21 -21
  55. oci/apigateway/deployment_client.py +6 -6
  56. oci/apigateway/gateway_client.py +6 -6
  57. oci/apigateway/subscribers_client.py +6 -6
  58. oci/apigateway/usage_plans_client.py +6 -6
  59. oci/apigateway/work_requests_client.py +5 -5
  60. oci/apm_config/config_client.py +12 -12
  61. oci/apm_control_plane/apm_domain_client.py +14 -14
  62. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  63. oci/apm_traces/attributes_client.py +8 -8
  64. oci/apm_traces/query_client.py +2 -2
  65. oci/apm_traces/trace_client.py +4 -4
  66. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  67. oci/artifacts/artifacts_client.py +32 -32
  68. oci/audit/audit_client.py +3 -3
  69. oci/autoscaling/auto_scaling_client.py +11 -11
  70. oci/bastion/bastion_client.py +15 -15
  71. oci/bds/bds_client.py +88 -88
  72. oci/blockchain/blockchain_platform_client.py +27 -27
  73. oci/budget/budget_client.py +10 -10
  74. oci/capacity_management/capacity_management_client.py +32 -32
  75. oci/capacity_management/demand_signal_client.py +13 -13
  76. oci/capacity_management/internal_demand_signal_client.py +12 -12
  77. oci/certificates/certificates_client.py +5 -5
  78. oci/certificates_management/certificates_management_client.py +32 -32
  79. oci/cims/incident_client.py +6 -6
  80. oci/cloud_bridge/common_client.py +5 -5
  81. oci/cloud_bridge/discovery_client.py +15 -15
  82. oci/cloud_bridge/inventory_client.py +16 -16
  83. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  84. oci/cloud_guard/cloud_guard_client.py +155 -155
  85. oci/cloud_migrations/migration_client.py +43 -43
  86. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  87. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  88. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  89. oci/compute_instance_agent/models/available_plugin_summary.py +9 -9
  90. oci/compute_instance_agent/models/instance_agent_command_content.py +37 -2
  91. oci/compute_instance_agent/models/instance_agent_plugin.py +33 -9
  92. oci/compute_instance_agent/models/instance_agent_plugin_summary.py +31 -7
  93. oci/compute_instance_agent/models/plugin.py +11 -11
  94. oci/compute_instance_agent/plugin_client.py +13 -8
  95. oci/compute_instance_agent/pluginconfig_client.py +14 -10
  96. oci/container_engine/container_engine_client.py +46 -46
  97. oci/container_instances/container_instance_client.py +18 -18
  98. oci/core/blockstorage_client.py +60 -60
  99. oci/core/compute_client.py +125 -125
  100. oci/core/compute_management_client.py +32 -32
  101. oci/core/models/__init__.py +2 -0
  102. oci/core/models/capacity_bin.py +225 -0
  103. oci/core/models/compute_bare_metal_host_placement_constraint_details.py +4 -3
  104. oci/core/models/dedicated_vm_host.py +64 -2
  105. oci/core/models/host_group_placement_constraint_details.py +3 -3
  106. oci/core/models/placement_constraint_details.py +7 -3
  107. oci/core/virtual_network_client.py +258 -258
  108. oci/dashboard_service/dashboard_client.py +6 -6
  109. oci/dashboard_service/dashboard_group_client.py +6 -6
  110. oci/data_catalog/data_catalog_client.py +149 -149
  111. oci/data_flow/data_flow_client.py +45 -45
  112. oci/data_integration/data_integration_client.py +163 -163
  113. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  114. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  115. oci/data_safe/data_safe_client.py +317 -317
  116. oci/data_science/data_science_client.py +145 -145
  117. oci/database/database_client.py +417 -417
  118. oci/database_management/db_management_client.py +229 -229
  119. oci/database_management/diagnosability_client.py +4 -4
  120. oci/database_management/managed_my_sql_databases_client.py +15 -15
  121. oci/database_management/perfhub_client.py +1 -1
  122. oci/database_management/sql_tuning_client.py +17 -17
  123. oci/database_migration/database_migration_client.py +42 -42
  124. oci/database_tools/database_tools_client.py +23 -23
  125. oci/dblm/db_life_cycle_management_client.py +14 -14
  126. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  127. oci/delegate_access_control/work_request_client.py +4 -4
  128. oci/demand_signal/occ_demand_signal_client.py +7 -7
  129. oci/desktops/desktop_service_client.py +21 -21
  130. oci/devops/devops_client.py +141 -141
  131. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  132. oci/distributed_database/distributed_autonomous_db_service_client.py +18 -18
  133. oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
  134. oci/distributed_database/distributed_db_service_client.py +19 -19
  135. oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
  136. oci/dns/dns_client.py +54 -54
  137. oci/dts/appliance_export_job_client.py +6 -6
  138. oci/dts/shipping_vendors_client.py +1 -1
  139. oci/dts/transfer_appliance_client.py +8 -8
  140. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  141. oci/dts/transfer_device_client.py +5 -5
  142. oci/dts/transfer_job_client.py +6 -6
  143. oci/dts/transfer_package_client.py +7 -7
  144. oci/em_warehouse/em_warehouse_client.py +13 -13
  145. oci/email/email_client.py +31 -31
  146. oci/email_data_plane/email_dp_client.py +1 -1
  147. oci/events/events_client.py +6 -6
  148. oci/file_storage/file_storage_client.py +74 -74
  149. oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
  150. oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
  151. oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
  152. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  153. oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
  154. oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
  155. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
  156. oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
  157. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  158. oci/functions/functions_invoke_client.py +1 -1
  159. oci/functions/functions_management_client.py +16 -16
  160. oci/fusion_apps/fusion_applications_client.py +41 -41
  161. oci/generative_ai/generative_ai_client.py +22 -22
  162. oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
  163. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
  164. oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
  165. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  166. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  167. oci/golden_gate/golden_gate_client.py +89 -89
  168. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  169. oci/governance_rules_control_plane/work_request_client.py +5 -5
  170. oci/healthchecks/health_checks_client.py +17 -17
  171. oci/identity/identity_client.py +145 -145
  172. oci/identity_data_plane/dataplane_client.py +2 -2
  173. oci/identity_domains/identity_domains_client.py +311 -311
  174. oci/integration/integration_instance_client.py +19 -19
  175. oci/jms/java_management_service_client.py +79 -79
  176. oci/jms_java_downloads/java_download_client.py +25 -25
  177. oci/key_management/ekm_client.py +5 -5
  178. oci/key_management/kms_crypto_client.py +6 -6
  179. oci/key_management/kms_hsm_cluster_client.py +12 -12
  180. oci/key_management/kms_management_client.py +21 -21
  181. oci/key_management/kms_vault_client.py +14 -14
  182. oci/license_manager/license_manager_client.py +18 -18
  183. oci/limits/limits_client.py +4 -4
  184. oci/limits/quotas_client.py +7 -7
  185. oci/load_balancer/load_balancer_client.py +61 -61
  186. oci/lockbox/lockbox_client.py +24 -24
  187. oci/log_analytics/log_analytics_client.py +200 -200
  188. oci/logging/logging_management_client.py +30 -30
  189. oci/loggingingestion/logging_client.py +1 -1
  190. oci/loggingsearch/log_search_client.py +1 -1
  191. oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
  192. oci/management_agent/management_agent_client.py +28 -28
  193. oci/management_dashboard/dashx_apis_client.py +18 -18
  194. oci/marketplace/account_client.py +2 -2
  195. oci/marketplace/marketplace_client.py +30 -30
  196. oci/marketplace_private_offer/attachment_client.py +5 -5
  197. oci/marketplace_private_offer/offer_client.py +6 -6
  198. oci/marketplace_publisher/attachment_client.py +5 -5
  199. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  200. oci/marketplace_publisher/offer_client.py +6 -6
  201. oci/media_services/media_services_client.py +60 -60
  202. oci/media_services/media_stream_client.py +2 -2
  203. oci/mngdmac/mac_device_client.py +3 -3
  204. oci/mngdmac/mac_order_client.py +11 -11
  205. oci/model_deployment/model_deployment_client.py +2 -2
  206. oci/monitoring/monitoring_client.py +18 -18
  207. oci/mysql/channels_client.py +7 -7
  208. oci/mysql/db_backups_client.py +8 -8
  209. oci/mysql/db_system_client.py +17 -17
  210. oci/mysql/mysqlaas_client.py +7 -7
  211. oci/mysql/replicas_client.py +5 -5
  212. oci/mysql/work_requests_client.py +4 -4
  213. oci/network_firewall/network_firewall_client.py +92 -92
  214. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  215. oci/nosql/nosql_client.py +24 -24
  216. oci/object_storage/object_storage_client.py +55 -55
  217. oci/oce/oce_instance_client.py +10 -10
  218. oci/oci_control_center/occ_metrics_client.py +3 -3
  219. oci/ocvp/cluster_client.py +5 -5
  220. oci/ocvp/esxi_host_client.py +8 -8
  221. oci/ocvp/sddc_client.py +14 -14
  222. oci/ocvp/work_request_client.py +4 -4
  223. oci/oda/management_client.py +59 -59
  224. oci/oda/oda_client.py +17 -17
  225. oci/oda/odapackage_client.py +7 -7
  226. oci/onesubscription/billing_schedule_client.py +1 -1
  227. oci/onesubscription/commitment_client.py +2 -2
  228. oci/onesubscription/computed_usage_client.py +3 -3
  229. oci/onesubscription/invoice_summary_client.py +2 -2
  230. oci/onesubscription/organization_subscription_client.py +1 -1
  231. oci/onesubscription/ratecard_client.py +1 -1
  232. oci/onesubscription/subscribed_service_client.py +2 -2
  233. oci/onesubscription/subscription_client.py +1 -1
  234. oci/ons/notification_control_plane_client.py +6 -6
  235. oci/ons/notification_data_plane_client.py +10 -10
  236. oci/opa/opa_instance_client.py +13 -13
  237. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  238. oci/opensearch/opensearch_cluster_client.py +17 -17
  239. oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
  240. oci/operator_access_control/access_requests_client.py +10 -10
  241. oci/operator_access_control/operator_actions_client.py +2 -2
  242. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  243. oci/operator_access_control/operator_control_client.py +6 -6
  244. oci/opsi/operations_insights_client.py +181 -181
  245. oci/optimizer/optimizer_client.py +26 -26
  246. oci/os_management/event_client.py +8 -8
  247. oci/os_management/os_management_client.py +69 -69
  248. oci/os_management_hub/event_client.py +8 -8
  249. oci/os_management_hub/lifecycle_environment_client.py +13 -13
  250. oci/os_management_hub/managed_instance_client.py +33 -33
  251. oci/os_management_hub/managed_instance_group_client.py +26 -26
  252. oci/os_management_hub/management_station_client.py +10 -10
  253. oci/os_management_hub/onboarding_client.py +13 -13
  254. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  255. oci/os_management_hub/scheduled_job_client.py +7 -7
  256. oci/os_management_hub/software_source_client.py +33 -33
  257. oci/os_management_hub/work_request_client.py +5 -5
  258. oci/osp_gateway/address_rule_service_client.py +1 -1
  259. oci/osp_gateway/address_service_client.py +2 -2
  260. oci/osp_gateway/invoice_service_client.py +5 -5
  261. oci/osp_gateway/subscription_service_client.py +5 -5
  262. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  263. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  264. oci/osub_subscription/commitment_client.py +2 -2
  265. oci/osub_subscription/ratecard_client.py +1 -1
  266. oci/osub_subscription/subscription_client.py +1 -1
  267. oci/osub_usage/computed_usage_client.py +3 -3
  268. oci/psql/postgresql_client.py +34 -34
  269. oci/queue/queue_admin_client.py +11 -11
  270. oci/queue/queue_client.py +8 -8
  271. oci/recovery/database_recovery_client.py +26 -26
  272. oci/redis/__init__.py +5 -1
  273. oci/redis/models/__init__.py +30 -0
  274. oci/redis/models/attach_oci_cache_users_details.py +70 -0
  275. oci/redis/models/attached_oci_cache_cluster.py +70 -0
  276. oci/redis/models/attached_oci_cache_user.py +70 -0
  277. oci/redis/models/authentication_mode.py +107 -0
  278. oci/redis/models/change_oci_cache_user_compartment_details.py +70 -0
  279. oci/redis/models/create_identity_token_details.py +167 -0
  280. oci/redis/models/create_oci_cache_user_details.py +287 -0
  281. oci/redis/models/detach_oci_cache_users_details.py +70 -0
  282. oci/redis/models/iam_authentication_mode.py +49 -0
  283. oci/redis/models/identity_token_details_response.py +101 -0
  284. oci/redis/models/oci_cache_user.py +492 -0
  285. oci/redis/models/oci_cache_user_collection.py +70 -0
  286. oci/redis/models/oci_cache_user_summary.py +386 -0
  287. oci/redis/models/password_authentication_mode.py +80 -0
  288. oci/redis/models/update_oci_cache_user_details.py +225 -0
  289. oci/redis/models/work_request.py +27 -3
  290. oci/redis/models/work_request_summary.py +27 -3
  291. oci/redis/oci_cache_user_client.py +951 -0
  292. oci/redis/oci_cache_user_client_composite_operations.py +196 -0
  293. oci/redis/redis_cluster_client.py +410 -12
  294. oci/redis/redis_cluster_client_composite_operations.py +88 -0
  295. oci/redis/redis_identity_client.py +241 -0
  296. oci/redis/redis_identity_client_composite_operations.py +26 -0
  297. oci/resource_manager/resource_manager_client.py +52 -52
  298. oci/resource_scheduler/schedule_client.py +14 -14
  299. oci/resource_search/resource_search_client.py +3 -3
  300. oci/rover/rover_bundle_client.py +8 -8
  301. oci/rover/rover_cluster_client.py +8 -8
  302. oci/rover/rover_entitlement_client.py +6 -6
  303. oci/rover/rover_node_client.py +15 -15
  304. oci/rover/shape_client.py +1 -1
  305. oci/rover/work_requests_client.py +5 -5
  306. oci/sch/connector_plugins_client.py +2 -2
  307. oci/sch/service_connector_client.py +12 -12
  308. oci/secrets/secrets_client.py +3 -3
  309. oci/security_attribute/security_attribute_client.py +18 -18
  310. oci/service_catalog/service_catalog_client.py +26 -26
  311. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  312. oci/service_mesh/service_mesh_client.py +48 -48
  313. oci/stack_monitoring/stack_monitoring_client.py +87 -87
  314. oci/streaming/stream_admin_client.py +18 -18
  315. oci/streaming/stream_client.py +8 -8
  316. oci/tenant_manager_control_plane/domain_client.py +5 -5
  317. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  318. oci/tenant_manager_control_plane/governance_client.py +2 -2
  319. oci/tenant_manager_control_plane/link_client.py +3 -3
  320. oci/tenant_manager_control_plane/orders_client.py +2 -2
  321. oci/tenant_manager_control_plane/organization_client.py +10 -10
  322. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  323. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  324. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  325. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  326. oci/threat_intelligence/threatintel_client.py +5 -5
  327. oci/usage/resources_client.py +2 -2
  328. oci/usage/rewards_client.py +6 -6
  329. oci/usage/usagelimits_client.py +1 -1
  330. oci/usage_api/usageapi_client.py +33 -33
  331. oci/vault/vaults_client.py +13 -13
  332. oci/vbs_inst/vbs_instance_client.py +10 -10
  333. oci/version.py +1 -1
  334. oci/visual_builder/vb_instance_client.py +14 -14
  335. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  336. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  337. oci/waa/waa_client.py +13 -13
  338. oci/waa/work_request_client.py +4 -4
  339. oci/waas/redirect_client.py +6 -6
  340. oci/waas/waas_client.py +66 -66
  341. oci/waf/waf_client.py +24 -24
  342. oci/wlms/__init__.py +16 -0
  343. oci/wlms/models/__init__.py +136 -0
  344. oci/wlms/models/agreement.py +132 -0
  345. oci/wlms/models/agreement_record.py +132 -0
  346. oci/wlms/models/agreement_record_collection.py +70 -0
  347. oci/wlms/models/agreement_record_summary.py +132 -0
  348. oci/wlms/models/applicable_patch_collection.py +70 -0
  349. oci/wlms/models/applicable_patch_summary.py +245 -0
  350. oci/wlms/models/backup.py +265 -0
  351. oci/wlms/models/backup_collection.py +70 -0
  352. oci/wlms/models/backup_content.py +99 -0
  353. oci/wlms/models/backup_summary.py +265 -0
  354. oci/wlms/models/backup_to_restore.py +121 -0
  355. oci/wlms/models/binary_backup_content.py +76 -0
  356. oci/wlms/models/change_wls_domain_compartment_details.py +74 -0
  357. oci/wlms/models/configuration.py +101 -0
  358. oci/wlms/models/create_agreement_record_details.py +101 -0
  359. oci/wlms/models/default_error.py +101 -0
  360. oci/wlms/models/install_latest_patches_on_wls_domain_details.py +101 -0
  361. oci/wlms/models/installed_patch_collection.py +70 -0
  362. oci/wlms/models/installed_patch_summary.py +140 -0
  363. oci/wlms/models/managed_instance.py +406 -0
  364. oci/wlms/models/managed_instance_collection.py +70 -0
  365. oci/wlms/models/managed_instance_configuration.py +101 -0
  366. oci/wlms/models/managed_instance_summary.py +311 -0
  367. oci/wlms/models/middleware_backup_patch.py +140 -0
  368. oci/wlms/models/middleware_binary_backup_content.py +101 -0
  369. oci/wlms/models/patch.py +245 -0
  370. oci/wlms/models/required_policy_collection.py +70 -0
  371. oci/wlms/models/required_policy_summary.py +132 -0
  372. oci/wlms/models/resource_inventory.py +262 -0
  373. oci/wlms/models/restart_wls_domain_details.py +70 -0
  374. oci/wlms/models/restore_wls_domain_details.py +132 -0
  375. oci/wlms/models/scan_result_collection.py +70 -0
  376. oci/wlms/models/scan_result_summary.py +288 -0
  377. oci/wlms/models/server.py +696 -0
  378. oci/wlms/models/server_collection.py +70 -0
  379. oci/wlms/models/server_summary.py +696 -0
  380. oci/wlms/models/server_to_restore.py +117 -0
  381. oci/wlms/models/set_restart_order_details.py +66 -0
  382. oci/wlms/models/set_restart_order_server_collection.py +70 -0
  383. oci/wlms/models/set_restart_order_server_summary.py +101 -0
  384. oci/wlms/models/stop_wls_domain_details.py +70 -0
  385. oci/wlms/models/update_configuration_details.py +101 -0
  386. oci/wlms/models/update_managed_instance_configuration_details.py +101 -0
  387. oci/wlms/models/update_managed_instance_details.py +66 -0
  388. oci/wlms/models/update_wls_domain_configuration_details.py +350 -0
  389. oci/wlms/models/update_wls_domain_credential_details.py +132 -0
  390. oci/wlms/models/update_wls_domain_details.py +148 -0
  391. oci/wlms/models/wls_domain.py +616 -0
  392. oci/wlms/models/wls_domain_collection.py +70 -0
  393. oci/wlms/models/wls_domain_configuration.py +350 -0
  394. oci/wlms/models/wls_domain_credential.py +183 -0
  395. oci/wlms/models/wls_domain_credential_collection.py +70 -0
  396. oci/wlms/models/wls_domain_credential_summary.py +101 -0
  397. oci/wlms/models/wls_domain_summary.py +516 -0
  398. oci/wlms/models/work_request.py +453 -0
  399. oci/wlms/models/work_request_error.py +142 -0
  400. oci/wlms/models/work_request_error_collection.py +70 -0
  401. oci/wlms/models/work_request_log_entry.py +105 -0
  402. oci/wlms/models/work_request_log_entry_collection.py +70 -0
  403. oci/wlms/models/work_request_resource.py +236 -0
  404. oci/wlms/models/work_request_summary.py +451 -0
  405. oci/wlms/models/work_request_summary_collection.py +70 -0
  406. oci/wlms/weblogic_management_service_client.py +5410 -0
  407. oci/wlms/weblogic_management_service_client_composite_operations.py +433 -0
  408. oci/wlms/weblogic_management_service_configuration_client.py +331 -0
  409. oci/wlms/weblogic_management_service_configuration_client_composite_operations.py +26 -0
  410. oci/work_requests/work_request_client.py +4 -4
  411. oci/zpr/zpr_client.py +15 -15
  412. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/METADATA +1 -1
  413. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/RECORD +417 -289
  414. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/LICENSE.txt +0 -0
  415. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  416. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/WHEEL +0 -0
  417. {oci-2.154.1.dist-info → oci-2.154.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,433 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20241101
6
+
7
+ import oci # noqa: F401
8
+ from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
9
+
10
+
11
+ class WeblogicManagementServiceClientCompositeOperations(object):
12
+ """
13
+ This class provides a wrapper around :py:class:`~oci.wlms.WeblogicManagementServiceClient` and offers convenience methods
14
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
15
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
16
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
17
+ """
18
+
19
+ def __init__(self, client, **kwargs):
20
+ """
21
+ Creates a new WeblogicManagementServiceClientCompositeOperations object
22
+
23
+ :param WeblogicManagementServiceClient client:
24
+ The service client which will be wrapped by this object
25
+ """
26
+ self.client = client
27
+
28
+ def delete_wls_domain_and_wait_for_state(self, wls_domain_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
29
+ """
30
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.delete_wls_domain` and waits for the :py:class:`~oci.wlms.models.WlsDomain` acted upon
31
+ to enter the given state(s).
32
+
33
+ :param str wls_domain_id: (required)
34
+ The `OCID`__ of the WebLogic domain.
35
+
36
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
37
+
38
+ :param list[str] wait_for_states:
39
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WlsDomain.lifecycle_state`
40
+
41
+ :param dict operation_kwargs:
42
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.delete_wls_domain`
43
+
44
+ :param dict waiter_kwargs:
45
+ 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``
46
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
47
+ """
48
+ initial_get_result = self.client.get_wls_domain(wls_domain_id)
49
+ operation_result = None
50
+ try:
51
+ operation_result = self.client.delete_wls_domain(wls_domain_id, **operation_kwargs)
52
+ except oci.exceptions.ServiceError as e:
53
+ if e.status == 404:
54
+ return WAIT_RESOURCE_NOT_FOUND
55
+ else:
56
+ raise e
57
+
58
+ if not wait_for_states:
59
+ return operation_result
60
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
61
+
62
+ try:
63
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
64
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_wls_domain, 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")
65
+ else:
66
+ """
67
+ If the user does not send in this value, we set it to True by default.
68
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
69
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
70
+ """
71
+ waiter_kwargs["succeed_on_not_found"] = True
72
+ waiter_result = oci.wait_until(
73
+ self.client,
74
+ initial_get_result, # noqa: F821
75
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
76
+ **waiter_kwargs
77
+ )
78
+ result_to_return = waiter_result
79
+
80
+ return result_to_return
81
+ except (NameError, TypeError) as e:
82
+ if not e.args:
83
+ e.args = ('',)
84
+ 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"', )
85
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
86
+ except Exception as e:
87
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
88
+
89
+ def install_latest_patches_on_wls_domain_and_wait_for_state(self, wls_domain_id, install_latest_patches_on_wls_domain_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
90
+ """
91
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.install_latest_patches_on_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
92
+ to enter the given state(s).
93
+
94
+ :param str wls_domain_id: (required)
95
+ The `OCID`__ of the WebLogic domain.
96
+
97
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
98
+
99
+ :param oci.wlms.models.InstallLatestPatchesOnWlsDomainDetails install_latest_patches_on_wls_domain_details: (required)
100
+ Information for the operation to install latest patches to a WebLogic domain.
101
+
102
+ :param list[str] wait_for_states:
103
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
104
+
105
+ :param dict operation_kwargs:
106
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.install_latest_patches_on_wls_domain`
107
+
108
+ :param dict waiter_kwargs:
109
+ 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``
110
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
111
+ """
112
+ operation_result = self.client.install_latest_patches_on_wls_domain(wls_domain_id, install_latest_patches_on_wls_domain_details, **operation_kwargs)
113
+ if not wait_for_states:
114
+ return operation_result
115
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
116
+ if 'opc-work-request-id' not in operation_result.headers:
117
+ return operation_result
118
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
119
+
120
+ try:
121
+ waiter_result = oci.wait_until(
122
+ self.client,
123
+ self.client.get_work_request(wait_for_resource_id),
124
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
125
+ **waiter_kwargs
126
+ )
127
+ result_to_return = waiter_result
128
+
129
+ return result_to_return
130
+ except Exception as e:
131
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
132
+
133
+ def restart_wls_domain_and_wait_for_state(self, wls_domain_id, restart_wls_domain_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
134
+ """
135
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.restart_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
136
+ to enter the given state(s).
137
+
138
+ :param str wls_domain_id: (required)
139
+ The `OCID`__ of the WebLogic domain.
140
+
141
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
142
+
143
+ :param oci.wlms.models.RestartWlsDomainDetails restart_wls_domain_details: (required)
144
+ Information for the operation to restart the WebLogic domain.
145
+
146
+ :param list[str] wait_for_states:
147
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
148
+
149
+ :param dict operation_kwargs:
150
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.restart_wls_domain`
151
+
152
+ :param dict waiter_kwargs:
153
+ 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``
154
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
155
+ """
156
+ operation_result = self.client.restart_wls_domain(wls_domain_id, restart_wls_domain_details, **operation_kwargs)
157
+ if not wait_for_states:
158
+ return operation_result
159
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
160
+ if 'opc-work-request-id' not in operation_result.headers:
161
+ return operation_result
162
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
163
+
164
+ try:
165
+ waiter_result = oci.wait_until(
166
+ self.client,
167
+ self.client.get_work_request(wait_for_resource_id),
168
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
169
+ **waiter_kwargs
170
+ )
171
+ result_to_return = waiter_result
172
+
173
+ return result_to_return
174
+ except Exception as e:
175
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
176
+
177
+ def restore_wls_domain_and_wait_for_state(self, wls_domain_id, restore_wls_domain_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
178
+ """
179
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.restore_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
180
+ to enter the given state(s).
181
+
182
+ :param str wls_domain_id: (required)
183
+ The `OCID`__ of the WebLogic domain.
184
+
185
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
186
+
187
+ :param oci.wlms.models.RestoreWlsDomainDetails restore_wls_domain_details: (required)
188
+ Information for the operation to restore WebLogic domain from the backup.
189
+
190
+ :param list[str] wait_for_states:
191
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
192
+
193
+ :param dict operation_kwargs:
194
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.restore_wls_domain`
195
+
196
+ :param dict waiter_kwargs:
197
+ 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``
198
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
199
+ """
200
+ operation_result = self.client.restore_wls_domain(wls_domain_id, restore_wls_domain_details, **operation_kwargs)
201
+ if not wait_for_states:
202
+ return operation_result
203
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
204
+ if 'opc-work-request-id' not in operation_result.headers:
205
+ return operation_result
206
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
207
+
208
+ try:
209
+ waiter_result = oci.wait_until(
210
+ self.client,
211
+ self.client.get_work_request(wait_for_resource_id),
212
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
213
+ **waiter_kwargs
214
+ )
215
+ result_to_return = waiter_result
216
+
217
+ return result_to_return
218
+ except Exception as e:
219
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
220
+
221
+ def scan_managed_instance_and_wait_for_state(self, managed_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
222
+ """
223
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.scan_managed_instance` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
224
+ to enter the given state(s).
225
+
226
+ :param str managed_instance_id: (required)
227
+ The `OCID`__ of the instance.
228
+
229
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
230
+
231
+ :param list[str] wait_for_states:
232
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
233
+
234
+ :param dict operation_kwargs:
235
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.scan_managed_instance`
236
+
237
+ :param dict waiter_kwargs:
238
+ 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``
239
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
240
+ """
241
+ operation_result = self.client.scan_managed_instance(managed_instance_id, **operation_kwargs)
242
+ if not wait_for_states:
243
+ return operation_result
244
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
245
+ if 'opc-work-request-id' not in operation_result.headers:
246
+ return operation_result
247
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
248
+
249
+ try:
250
+ waiter_result = oci.wait_until(
251
+ self.client,
252
+ self.client.get_work_request(wait_for_resource_id),
253
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
254
+ **waiter_kwargs
255
+ )
256
+ result_to_return = waiter_result
257
+
258
+ return result_to_return
259
+ except Exception as e:
260
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
261
+
262
+ def scan_wls_domain_and_wait_for_state(self, wls_domain_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
263
+ """
264
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.scan_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
265
+ to enter the given state(s).
266
+
267
+ :param str wls_domain_id: (required)
268
+ The `OCID`__ of the WebLogic domain.
269
+
270
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
271
+
272
+ :param list[str] wait_for_states:
273
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
274
+
275
+ :param dict operation_kwargs:
276
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.scan_wls_domain`
277
+
278
+ :param dict waiter_kwargs:
279
+ 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``
280
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
281
+ """
282
+ operation_result = self.client.scan_wls_domain(wls_domain_id, **operation_kwargs)
283
+ if not wait_for_states:
284
+ return operation_result
285
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
286
+ if 'opc-work-request-id' not in operation_result.headers:
287
+ return operation_result
288
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
289
+
290
+ try:
291
+ waiter_result = oci.wait_until(
292
+ self.client,
293
+ self.client.get_work_request(wait_for_resource_id),
294
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
295
+ **waiter_kwargs
296
+ )
297
+ result_to_return = waiter_result
298
+
299
+ return result_to_return
300
+ except Exception as e:
301
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
302
+
303
+ def start_wls_domain_and_wait_for_state(self, wls_domain_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
304
+ """
305
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.start_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
306
+ to enter the given state(s).
307
+
308
+ :param str wls_domain_id: (required)
309
+ The `OCID`__ of the WebLogic domain.
310
+
311
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
312
+
313
+ :param list[str] wait_for_states:
314
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
315
+
316
+ :param dict operation_kwargs:
317
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.start_wls_domain`
318
+
319
+ :param dict waiter_kwargs:
320
+ 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``
321
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
322
+ """
323
+ operation_result = self.client.start_wls_domain(wls_domain_id, **operation_kwargs)
324
+ if not wait_for_states:
325
+ return operation_result
326
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
327
+ if 'opc-work-request-id' not in operation_result.headers:
328
+ return operation_result
329
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
330
+
331
+ try:
332
+ waiter_result = oci.wait_until(
333
+ self.client,
334
+ self.client.get_work_request(wait_for_resource_id),
335
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
336
+ **waiter_kwargs
337
+ )
338
+ result_to_return = waiter_result
339
+
340
+ return result_to_return
341
+ except Exception as e:
342
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
343
+
344
+ def stop_wls_domain_and_wait_for_state(self, wls_domain_id, stop_wls_domain_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
345
+ """
346
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.stop_wls_domain` and waits for the :py:class:`~oci.wlms.models.WorkRequest`
347
+ to enter the given state(s).
348
+
349
+ :param str wls_domain_id: (required)
350
+ The `OCID`__ of the WebLogic domain.
351
+
352
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
353
+
354
+ :param oci.wlms.models.StopWlsDomainDetails stop_wls_domain_details: (required)
355
+ Information for the stop WebLogic domain operation
356
+
357
+ :param list[str] wait_for_states:
358
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WorkRequest.status`
359
+
360
+ :param dict operation_kwargs:
361
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.stop_wls_domain`
362
+
363
+ :param dict waiter_kwargs:
364
+ 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``
365
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
366
+ """
367
+ operation_result = self.client.stop_wls_domain(wls_domain_id, stop_wls_domain_details, **operation_kwargs)
368
+ if not wait_for_states:
369
+ return operation_result
370
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
371
+ if 'opc-work-request-id' not in operation_result.headers:
372
+ return operation_result
373
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
374
+
375
+ try:
376
+ waiter_result = oci.wait_until(
377
+ self.client,
378
+ self.client.get_work_request(wait_for_resource_id),
379
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
380
+ **waiter_kwargs
381
+ )
382
+ result_to_return = waiter_result
383
+
384
+ return result_to_return
385
+ except Exception as e:
386
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
387
+
388
+ def update_wls_domain_and_wait_for_state(self, wls_domain_id, update_wls_domain_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
389
+ """
390
+ Calls :py:func:`~oci.wlms.WeblogicManagementServiceClient.update_wls_domain` and waits for the :py:class:`~oci.wlms.models.WlsDomain` acted upon
391
+ to enter the given state(s).
392
+
393
+ :param str wls_domain_id: (required)
394
+ The `OCID`__ of the WebLogic domain.
395
+
396
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
397
+
398
+ :param oci.wlms.models.UpdateWlsDomainDetails update_wls_domain_details: (required)
399
+ The new details required to update the WebLogic domain.
400
+
401
+ :param list[str] wait_for_states:
402
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.wlms.models.WlsDomain.lifecycle_state`
403
+
404
+ :param dict operation_kwargs:
405
+ A dictionary of keyword arguments to pass to :py:func:`~oci.wlms.WeblogicManagementServiceClient.update_wls_domain`
406
+
407
+ :param dict waiter_kwargs:
408
+ 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``
409
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
410
+ """
411
+ operation_result = self.client.update_wls_domain(wls_domain_id, update_wls_domain_details, **operation_kwargs)
412
+ if not wait_for_states:
413
+ return operation_result
414
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
415
+ wls_domain_id = operation_result.data.id
416
+
417
+ try:
418
+ waiter_result = oci.wait_until(
419
+ self.client,
420
+ self.client.get_wls_domain(wls_domain_id), # noqa: F821
421
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
422
+ **waiter_kwargs
423
+ )
424
+ result_to_return = waiter_result
425
+
426
+ return result_to_return
427
+ except (NameError, TypeError) as e:
428
+ if not e.args:
429
+ e.args = ('',)
430
+ 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"', )
431
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
432
+ except Exception as e:
433
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)