oci 2.114.0__py3-none-any.whl → 2.115.1__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 (659) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +22 -22
  6. oci/ai_language/ai_service_language_client.py +36 -36
  7. oci/ai_speech/ai_service_speech_client.py +9 -9
  8. oci/ai_vision/ai_service_vision_client.py +25 -25
  9. oci/analytics/analytics_client.py +23 -23
  10. oci/announcements_service/announcement_client.py +4 -4
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +8 -8
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +18 -18
  22. oci/apm_traces/query_client.py +2 -2
  23. oci/apm_traces/trace_client.py +4 -4
  24. oci/application_migration/application_migration_client.py +19 -19
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/auth/signers/ephemeral_resource_principals_v21_signer.py +3 -17
  29. oci/autoscaling/auto_scaling_client.py +11 -11
  30. oci/bastion/bastion_client.py +15 -15
  31. oci/bds/bds_client.py +47 -47
  32. oci/blockchain/blockchain_platform_client.py +27 -27
  33. oci/budget/budget_client.py +10 -10
  34. oci/certificates/certificates_client.py +5 -5
  35. oci/certificates_management/certificates_management_client.py +32 -32
  36. oci/cims/incident_client.py +8 -8
  37. oci/cims/user_client.py +1 -1
  38. oci/cloud_bridge/common_client.py +5 -5
  39. oci/cloud_bridge/discovery_client.py +14 -14
  40. oci/cloud_bridge/inventory_client.py +16 -16
  41. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  42. oci/cloud_guard/cloud_guard_client.py +133 -133
  43. oci/cloud_migrations/migration_client.py +43 -43
  44. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  45. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  46. oci/compute_instance_agent/plugin_client.py +2 -2
  47. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  48. oci/container_engine/container_engine_client.py +44 -44
  49. oci/container_instances/container_instance_client.py +18 -18
  50. oci/core/blockstorage_client.py +60 -60
  51. oci/core/compute_client.py +90 -90
  52. oci/core/compute_management_client.py +32 -32
  53. oci/core/virtual_network_client.py +242 -242
  54. oci/dashboard_service/dashboard_client.py +6 -6
  55. oci/dashboard_service/dashboard_group_client.py +6 -6
  56. oci/data_catalog/data_catalog_client.py +141 -141
  57. oci/data_flow/data_flow_client.py +42 -42
  58. oci/data_integration/data_integration_client.py +163 -163
  59. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  60. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  61. oci/data_safe/data_safe_client.py +12749 -7471
  62. oci/data_safe/data_safe_client_composite_operations.py +797 -29
  63. oci/data_safe/models/__init__.py +104 -0
  64. oci/data_safe/models/apply_sdm_masking_policy_difference_details.py +1 -1
  65. oci/data_safe/models/audit_policy_dimensions.py +7 -3
  66. oci/data_safe/models/audit_specification.py +7 -3
  67. oci/data_safe/models/autonomous_database_details.py +3 -3
  68. oci/data_safe/models/change_database_security_config_compartment_details.py +72 -0
  69. oci/data_safe/models/change_security_policy_compartment_details.py +72 -0
  70. oci/data_safe/models/change_security_policy_deployment_compartment_details.py +72 -0
  71. oci/data_safe/models/change_sql_collection_compartment_details.py +72 -0
  72. oci/data_safe/models/change_sql_firewall_policy_compartment_details.py +72 -0
  73. oci/data_safe/models/change_target_database_compartment_details.py +2 -2
  74. oci/data_safe/models/column_summary.py +1 -1
  75. oci/data_safe/models/create_data_safe_private_endpoint_details.py +1 -1
  76. oci/data_safe/models/create_discovery_job_details.py +4 -4
  77. oci/data_safe/models/create_masking_column_details.py +2 -2
  78. oci/data_safe/models/create_masking_policy_details.py +2 -4
  79. oci/data_safe/models/create_sensitive_data_model_details.py +2 -2
  80. oci/data_safe/models/create_sql_collection_details.py +372 -0
  81. oci/data_safe/models/create_target_alert_policy_association_details.py +2 -2
  82. oci/data_safe/models/database_cloud_service_details.py +3 -3
  83. oci/data_safe/models/database_security_config.py +527 -0
  84. oci/data_safe/models/database_security_config_collection.py +72 -0
  85. oci/data_safe/models/database_security_config_summary.py +494 -0
  86. oci/data_safe/models/discovery_job.py +2 -2
  87. oci/data_safe/models/discovery_job_result.py +2 -2
  88. oci/data_safe/models/discovery_job_result_summary.py +2 -2
  89. oci/data_safe/models/download_masking_log_details.py +1 -1
  90. oci/data_safe/models/entry_details.py +103 -0
  91. oci/data_safe/models/firewall_policy_entry_details.py +113 -0
  92. oci/data_safe/models/mask_data_details.py +2 -4
  93. oci/data_safe/models/masking_column.py +2 -2
  94. oci/data_safe/models/masking_column_summary.py +2 -2
  95. oci/data_safe/models/masking_policy.py +2 -4
  96. oci/data_safe/models/profile.py +2 -2
  97. oci/data_safe/models/profile_aggregation.py +1 -65
  98. oci/data_safe/models/profile_summary.py +2 -2
  99. oci/data_safe/models/report_definition.py +22 -6
  100. oci/data_safe/models/report_definition_summary.py +22 -6
  101. oci/data_safe/models/role_summary.py +3 -3
  102. oci/data_safe/models/schema_summary.py +1 -1
  103. oci/data_safe/models/security_assessment.py +6 -6
  104. oci/data_safe/models/security_assessment_base_line_details.py +3 -3
  105. oci/data_safe/models/security_assessment_summary.py +6 -6
  106. oci/data_safe/models/security_policy.py +432 -0
  107. oci/data_safe/models/security_policy_collection.py +72 -0
  108. oci/data_safe/models/security_policy_deployment.py +498 -0
  109. oci/data_safe/models/security_policy_deployment_collection.py +72 -0
  110. oci/data_safe/models/security_policy_deployment_summary.py +498 -0
  111. oci/data_safe/models/security_policy_entry_state.py +220 -0
  112. oci/data_safe/models/security_policy_entry_state_collection.py +72 -0
  113. oci/data_safe/models/security_policy_entry_state_summary.py +193 -0
  114. oci/data_safe/models/security_policy_summary.py +432 -0
  115. oci/data_safe/models/sensitive_data_model.py +2 -2
  116. oci/data_safe/models/sql_collection.py +667 -0
  117. oci/data_safe/models/sql_collection_aggregation.py +99 -0
  118. oci/data_safe/models/sql_collection_analytics_collection.py +72 -0
  119. oci/data_safe/models/sql_collection_collection.py +72 -0
  120. oci/data_safe/models/sql_collection_dimensions.py +147 -0
  121. oci/data_safe/models/sql_collection_log_aggregation.py +192 -0
  122. oci/data_safe/models/sql_collection_log_dimensions.py +134 -0
  123. oci/data_safe/models/sql_collection_log_insights_collection.py +72 -0
  124. oci/data_safe/models/sql_collection_summary.py +634 -0
  125. oci/data_safe/models/sql_firewall_allowed_sql_aggregation.py +99 -0
  126. oci/data_safe/models/sql_firewall_allowed_sql_analytics_collection.py +72 -0
  127. oci/data_safe/models/sql_firewall_allowed_sql_collection.py +72 -0
  128. oci/data_safe/models/sql_firewall_allowed_sql_dimensions.py +201 -0
  129. oci/data_safe/models/sql_firewall_allowed_sql_summary.py +622 -0
  130. oci/data_safe/models/sql_firewall_config.py +215 -0
  131. oci/data_safe/models/sql_firewall_policy.py +838 -0
  132. oci/data_safe/models/sql_firewall_policy_aggregation.py +99 -0
  133. oci/data_safe/models/sql_firewall_policy_analytics_collection.py +72 -0
  134. oci/data_safe/models/sql_firewall_policy_collection.py +72 -0
  135. oci/data_safe/models/sql_firewall_policy_dimensions.py +241 -0
  136. oci/data_safe/models/sql_firewall_policy_summary.py +712 -0
  137. oci/data_safe/models/sql_firewall_violation_aggregation.py +223 -0
  138. oci/data_safe/models/sql_firewall_violation_aggregation_dimensions.py +402 -0
  139. oci/data_safe/models/sql_firewall_violation_analytics_collection.py +72 -0
  140. oci/data_safe/models/sql_firewall_violation_summary.py +604 -0
  141. oci/data_safe/models/sql_firewall_violations_collection.py +72 -0
  142. oci/data_safe/models/table_summary.py +1 -1
  143. oci/data_safe/models/target_alert_policy_association.py +2 -2
  144. oci/data_safe/models/target_alert_policy_association_summary.py +2 -2
  145. oci/data_safe/models/target_database.py +4 -4
  146. oci/data_safe/models/target_database_summary.py +2 -2
  147. oci/data_safe/models/update_data_safe_private_endpoint_details.py +1 -1
  148. oci/data_safe/models/update_database_security_config_details.py +208 -0
  149. oci/data_safe/models/update_masking_column_details.py +2 -2
  150. oci/data_safe/models/update_masking_policy_details.py +2 -4
  151. oci/data_safe/models/update_security_policy_deployment_details.py +181 -0
  152. oci/data_safe/models/update_security_policy_details.py +181 -0
  153. oci/data_safe/models/update_sql_collection_details.py +181 -0
  154. oci/data_safe/models/update_sql_firewall_config_details.py +184 -0
  155. oci/data_safe/models/update_sql_firewall_policy_details.py +466 -0
  156. oci/data_safe/models/update_target_alert_policy_association_details.py +2 -2
  157. oci/data_safe/models/user_assessment.py +14 -14
  158. oci/data_safe/models/user_assessment_base_line_details.py +3 -3
  159. oci/data_safe/models/user_assessment_summary.py +18 -18
  160. oci/data_safe/models/user_summary.py +8 -8
  161. oci/data_safe/models/work_request.py +83 -3
  162. oci/data_safe/models/work_request_summary.py +83 -3
  163. oci/data_science/data_science_client.py +91 -91
  164. oci/database/database_client.py +645 -319
  165. oci/database/database_client_composite_operations.py +176 -0
  166. oci/database/models/__init__.py +8 -0
  167. oci/database/models/autonomous_container_database.py +7 -3
  168. oci/database/models/autonomous_container_database_summary.py +7 -3
  169. oci/database/models/configure_saas_admin_user_details.py +284 -0
  170. oci/database/models/create_autonomous_container_database_dataguard_association_details.py +321 -0
  171. oci/database/models/database_connection_string_profile.py +33 -2
  172. oci/database/models/generate_autonomous_database_wallet_details.py +33 -2
  173. oci/database/models/saas_admin_user_configuration.py +284 -0
  174. oci/database/models/saas_admin_user_status.py +154 -0
  175. oci/database_management/__init__.py +3 -1
  176. oci/database_management/db_management_client.py +182 -182
  177. oci/database_management/diagnosability_client.py +4 -4
  178. oci/database_management/managed_my_sql_databases_client.py +945 -0
  179. oci/database_management/managed_my_sql_databases_client_composite_operations.py +26 -0
  180. oci/database_management/models/__init__.py +26 -0
  181. oci/database_management/models/managed_my_sql_database.py +227 -0
  182. oci/database_management/models/managed_my_sql_database_collection.py +72 -0
  183. oci/database_management/models/managed_my_sql_database_summary.py +227 -0
  184. oci/database_management/models/my_sql_configuration_data_collection.py +72 -0
  185. oci/database_management/models/my_sql_configuration_data_summary.py +616 -0
  186. oci/database_management/models/my_sql_data_collection.py +72 -0
  187. oci/database_management/models/my_sql_data_summary.py +1033 -0
  188. oci/database_management/models/my_sql_database_usage_metrics.py +342 -0
  189. oci/database_management/models/my_sql_fleet_by_category.py +134 -0
  190. oci/database_management/models/my_sql_fleet_metric_definition.py +196 -0
  191. oci/database_management/models/my_sql_fleet_metric_summary_definition.py +165 -0
  192. oci/database_management/models/my_sql_fleet_metrics.py +165 -0
  193. oci/database_management/models/my_sql_fleet_summary.py +103 -0
  194. oci/database_management/perfhub_client.py +1 -1
  195. oci/database_management/sql_tuning_client.py +17 -17
  196. oci/database_migration/database_migration_client.py +41 -41
  197. oci/database_tools/database_tools_client.py +23 -23
  198. oci/devops/devops_client.py +89 -89
  199. oci/disaster_recovery/disaster_recovery_client.py +168 -152
  200. oci/disaster_recovery/disaster_recovery_client_composite_operations.py +45 -45
  201. oci/disaster_recovery/models/__init__.py +88 -0
  202. oci/disaster_recovery/models/associate_dr_protection_group_details.py +13 -9
  203. oci/disaster_recovery/models/block_volume_attachment_details.py +78 -0
  204. oci/disaster_recovery/models/block_volume_mount_details.py +76 -0
  205. oci/disaster_recovery/models/cancel_dr_plan_execution_details.py +1 -1
  206. oci/disaster_recovery/models/change_dr_protection_group_compartment_details.py +5 -5
  207. oci/disaster_recovery/models/compute_instance_movable_file_system_operation.py +165 -0
  208. oci/disaster_recovery/models/compute_instance_movable_vnic_mapping.py +27 -23
  209. oci/disaster_recovery/models/compute_instance_movable_vnic_mapping_details.py +27 -23
  210. oci/disaster_recovery/models/compute_instance_non_movable_block_volume_operation.py +130 -0
  211. oci/disaster_recovery/models/compute_instance_non_movable_file_system_operation.py +146 -0
  212. oci/disaster_recovery/models/compute_instance_vnic_mapping.py +13 -11
  213. oci/disaster_recovery/models/compute_instance_vnic_mapping_details.py +25 -21
  214. oci/disaster_recovery/models/create_block_volume_attachment_details.py +78 -0
  215. oci/disaster_recovery/models/create_block_volume_mount_details.py +76 -0
  216. oci/disaster_recovery/models/create_compute_instance_movable_file_system_operation_details.py +165 -0
  217. oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_operation_details.py +130 -0
  218. oci/disaster_recovery/models/create_compute_instance_non_movable_file_system_operation_details.py +146 -0
  219. oci/disaster_recovery/models/create_dr_plan_details.py +24 -12
  220. oci/disaster_recovery/models/create_dr_plan_execution_details.py +11 -7
  221. oci/disaster_recovery/models/create_dr_protection_group_details.py +15 -11
  222. oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +2 -2
  223. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +18 -16
  224. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +61 -26
  225. oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +99 -4
  226. oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +5 -5
  227. oci/disaster_recovery/models/create_dr_protection_group_member_details.py +30 -6
  228. oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +124 -0
  229. oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +124 -0
  230. oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +124 -0
  231. oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +2 -2
  232. oci/disaster_recovery/models/create_file_system_mount_details.py +76 -0
  233. oci/disaster_recovery/models/create_file_system_unmount_details.py +76 -0
  234. oci/disaster_recovery/models/create_object_storage_log_location_details.py +5 -5
  235. oci/disaster_recovery/models/disassociate_dr_protection_group_default_details.py +1 -1
  236. oci/disaster_recovery/models/disassociate_dr_protection_group_details.py +3 -3
  237. oci/disaster_recovery/models/dr_plan.py +56 -42
  238. oci/disaster_recovery/models/dr_plan_collection.py +3 -3
  239. oci/disaster_recovery/models/dr_plan_execution.py +72 -52
  240. oci/disaster_recovery/models/dr_plan_execution_collection.py +3 -4
  241. oci/disaster_recovery/models/dr_plan_execution_option_details.py +35 -3
  242. oci/disaster_recovery/models/dr_plan_execution_options.py +35 -3
  243. oci/disaster_recovery/models/dr_plan_execution_summary.py +68 -48
  244. oci/disaster_recovery/models/dr_plan_group.py +15 -11
  245. oci/disaster_recovery/models/dr_plan_group_execution.py +21 -17
  246. oci/disaster_recovery/models/dr_plan_step.py +170 -14
  247. oci/disaster_recovery/models/dr_plan_step_execution.py +178 -22
  248. oci/disaster_recovery/models/dr_plan_summary.py +62 -38
  249. oci/disaster_recovery/models/dr_plan_user_defined_step.py +19 -23
  250. oci/disaster_recovery/models/dr_protection_group.py +87 -34
  251. oci/disaster_recovery/models/dr_protection_group_collection.py +3 -3
  252. oci/disaster_recovery/models/dr_protection_group_member.py +30 -6
  253. oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +2 -2
  254. oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +16 -12
  255. oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +59 -22
  256. oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +97 -4
  257. oci/disaster_recovery/models/dr_protection_group_member_database.py +8 -6
  258. oci/disaster_recovery/models/dr_protection_group_member_file_system.py +124 -0
  259. oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +126 -0
  260. oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +126 -0
  261. oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +2 -2
  262. oci/disaster_recovery/models/dr_protection_group_summary.py +85 -32
  263. oci/disaster_recovery/models/failover_execution_option_details.py +1 -1
  264. oci/disaster_recovery/models/failover_execution_options.py +1 -1
  265. oci/disaster_recovery/models/failover_precheck_execution_option_details.py +1 -1
  266. oci/disaster_recovery/models/failover_precheck_execution_options.py +1 -1
  267. oci/disaster_recovery/models/file_system_export_mapping.py +111 -0
  268. oci/disaster_recovery/models/file_system_export_mapping_details.py +111 -0
  269. oci/disaster_recovery/models/file_system_mount_details.py +76 -0
  270. oci/disaster_recovery/models/file_system_unmount_details.py +76 -0
  271. oci/disaster_recovery/models/ignore_dr_plan_execution_details.py +4 -4
  272. oci/disaster_recovery/models/invoke_function_step.py +2 -2
  273. oci/disaster_recovery/models/load_balancer_backend_set_mapping.py +150 -0
  274. oci/disaster_recovery/models/load_balancer_backend_set_mapping_details.py +154 -0
  275. oci/disaster_recovery/models/network_load_balancer_backend_set_mapping.py +150 -0
  276. oci/disaster_recovery/models/network_load_balancer_backend_set_mapping_details.py +154 -0
  277. oci/disaster_recovery/models/object_storage_log_location.py +7 -7
  278. oci/disaster_recovery/models/object_storage_script_location.py +7 -7
  279. oci/disaster_recovery/models/pause_dr_plan_execution_details.py +1 -1
  280. oci/disaster_recovery/models/resume_dr_plan_execution_details.py +1 -1
  281. oci/disaster_recovery/models/retry_dr_plan_execution_details.py +4 -4
  282. oci/disaster_recovery/models/run_local_script_user_defined_step.py +16 -6
  283. oci/disaster_recovery/models/run_object_store_script_user_defined_step.py +16 -6
  284. oci/disaster_recovery/models/start_drill_execution_option_details.py +121 -0
  285. oci/disaster_recovery/models/start_drill_execution_options.py +121 -0
  286. oci/disaster_recovery/models/start_drill_precheck_execution_option_details.py +86 -0
  287. oci/disaster_recovery/models/start_drill_precheck_execution_options.py +86 -0
  288. oci/disaster_recovery/models/stop_drill_execution_option_details.py +121 -0
  289. oci/disaster_recovery/models/stop_drill_execution_options.py +121 -0
  290. oci/disaster_recovery/models/stop_drill_precheck_execution_option_details.py +86 -0
  291. oci/disaster_recovery/models/stop_drill_precheck_execution_options.py +86 -0
  292. oci/disaster_recovery/models/switchover_execution_option_details.py +1 -1
  293. oci/disaster_recovery/models/switchover_execution_options.py +1 -1
  294. oci/disaster_recovery/models/switchover_precheck_execution_option_details.py +1 -1
  295. oci/disaster_recovery/models/switchover_precheck_execution_options.py +1 -1
  296. oci/disaster_recovery/models/update_block_volume_attachment_details.py +78 -0
  297. oci/disaster_recovery/models/update_block_volume_mount_details.py +76 -0
  298. oci/disaster_recovery/models/update_compute_instance_movable_file_system_operation_details.py +165 -0
  299. oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_operation_details.py +130 -0
  300. oci/disaster_recovery/models/update_compute_instance_non_movable_file_system_operation_details.py +146 -0
  301. oci/disaster_recovery/models/update_dr_plan_details.py +9 -5
  302. oci/disaster_recovery/models/update_dr_plan_execution_details.py +9 -5
  303. oci/disaster_recovery/models/update_dr_plan_group_details.py +11 -7
  304. oci/disaster_recovery/models/update_dr_plan_step_details.py +7 -7
  305. oci/disaster_recovery/models/update_dr_plan_user_defined_step_details.py +27 -9
  306. oci/disaster_recovery/models/update_dr_protection_group_details.py +13 -7
  307. oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +2 -2
  308. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +18 -16
  309. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +61 -26
  310. oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +99 -4
  311. oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +5 -5
  312. oci/disaster_recovery/models/update_dr_protection_group_member_details.py +30 -6
  313. oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +124 -0
  314. oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +124 -0
  315. oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +124 -0
  316. oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +2 -2
  317. oci/disaster_recovery/models/update_dr_protection_group_role_details.py +3 -3
  318. oci/disaster_recovery/models/update_file_system_mount_details.py +76 -0
  319. oci/disaster_recovery/models/update_file_system_unmount_details.py +76 -0
  320. oci/disaster_recovery/models/update_invoke_function_user_defined_step_details.py +2 -2
  321. oci/disaster_recovery/models/update_object_storage_log_location_details.py +5 -5
  322. oci/disaster_recovery/models/update_object_storage_script_location_details.py +7 -7
  323. oci/disaster_recovery/models/update_run_local_script_user_defined_step_details.py +14 -4
  324. oci/disaster_recovery/models/update_run_object_store_script_user_defined_step_details.py +16 -2
  325. oci/disaster_recovery/models/work_request.py +6 -6
  326. oci/disaster_recovery/models/work_request_error_collection.py +2 -2
  327. oci/disaster_recovery/models/work_request_log_entry.py +2 -2
  328. oci/disaster_recovery/models/work_request_resource.py +2 -2
  329. oci/disaster_recovery/models/work_request_summary.py +7 -7
  330. oci/disaster_recovery/models/work_request_summary_collection.py +2 -2
  331. oci/dns/dns_client.py +52 -52
  332. oci/dts/appliance_export_job_client.py +6 -6
  333. oci/dts/shipping_vendors_client.py +1 -1
  334. oci/dts/transfer_appliance_client.py +8 -8
  335. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  336. oci/dts/transfer_device_client.py +5 -5
  337. oci/dts/transfer_job_client.py +6 -6
  338. oci/dts/transfer_package_client.py +7 -7
  339. oci/em_warehouse/em_data_lake_client.py +13 -13
  340. oci/em_warehouse/em_warehouse_client.py +13 -13
  341. oci/email/email_client.py +25 -25
  342. oci/events/events_client.py +6 -6
  343. oci/file_storage/file_storage_client.py +50 -50
  344. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  345. oci/functions/functions_invoke_client.py +1 -1
  346. oci/functions/functions_management_client.py +16 -16
  347. oci/fusion_apps/data_masking_activity_client.py +3 -3
  348. oci/fusion_apps/fusion_applications_client.py +39 -39
  349. oci/fusion_apps/fusion_environment_client.py +15 -15
  350. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  351. oci/fusion_apps/refresh_activity_client.py +4 -4
  352. oci/fusion_apps/scheduled_activity_client.py +2 -2
  353. oci/fusion_apps/service_attachment_client.py +2 -2
  354. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  355. oci/golden_gate/golden_gate_client.py +57 -57
  356. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  357. oci/governance_rules_control_plane/work_request_client.py +5 -5
  358. oci/healthchecks/health_checks_client.py +17 -17
  359. oci/identity/identity_client.py +145 -145
  360. oci/identity_data_plane/dataplane_client.py +2 -2
  361. oci/identity_domains/identity_domains_client.py +190 -190
  362. oci/integration/integration_instance_client.py +15 -15
  363. oci/jms/java_management_service_client.py +1352 -164
  364. oci/jms/java_management_service_client_composite_operations.py +226 -0
  365. oci/jms/models/__init__.py +32 -0
  366. oci/jms/models/agent.py +240 -0
  367. oci/jms/models/announcement_summary.py +1 -1
  368. oci/jms/models/application_work_item_details.py +2 -2
  369. oci/jms/models/basic_work_item_details.py +2 -2
  370. oci/jms/models/blocklist.py +31 -3
  371. oci/jms/models/blocklist_entry.py +31 -3
  372. oci/jms/models/create_blocklist_details.py +31 -3
  373. oci/jms/models/create_drs_file_details.py +134 -0
  374. oci/jms/models/disable_drs_details.py +69 -0
  375. oci/jms/models/drs_file.py +272 -0
  376. oci/jms/models/drs_file_collection.py +72 -0
  377. oci/jms/models/drs_file_summary.py +272 -0
  378. oci/jms/models/drs_target.py +72 -0
  379. oci/jms/models/enable_drs_details.py +69 -0
  380. oci/jms/models/export_setting.py +485 -0
  381. oci/jms/models/export_status.py +201 -0
  382. oci/jms/models/fleet.py +31 -0
  383. oci/jms/models/fleet_agent_configuration.py +27 -0
  384. oci/jms/models/fleet_summary.py +31 -0
  385. oci/jms/models/java_artifact.py +262 -2
  386. oci/jms/models/java_family.py +103 -2
  387. oci/jms/models/java_family_summary.py +70 -2
  388. oci/jms/models/java_migration_analysis_result.py +31 -0
  389. oci/jms/models/java_migration_analysis_result_summary.py +31 -0
  390. oci/jms/models/java_release.py +66 -2
  391. oci/jms/models/java_release_summary.py +66 -2
  392. oci/jms/models/lcm_work_item_details.py +86 -0
  393. oci/jms/models/manage_drs_details.py +73 -0
  394. oci/jms/models/managed_instance_usage.py +82 -0
  395. oci/jms/models/patch_detail.py +103 -0
  396. oci/jms/models/performance_tuning_analysis.py +2 -2
  397. oci/jms/models/plugin.py +103 -0
  398. oci/jms/models/request_crypto_analyses_details.py +2 -2
  399. oci/jms/models/update_drs_file_details.py +134 -0
  400. oci/jms/models/update_export_setting_details.py +349 -0
  401. oci/jms/models/update_fleet_agent_configuration_details.py +29 -2
  402. oci/jms/models/work_item_details.py +34 -6
  403. oci/jms/models/work_request.py +31 -3
  404. oci/jms_java_downloads/__init__.py +14 -0
  405. oci/jms_java_downloads/java_download_client.py +3088 -0
  406. oci/jms_java_downloads/java_download_client_composite_operations.py +384 -0
  407. oci/jms_java_downloads/models/__init__.py +80 -0
  408. oci/jms_java_downloads/models/create_java_download_report_details.py +289 -0
  409. oci/jms_java_downloads/models/create_java_download_token_details.py +336 -0
  410. oci/jms_java_downloads/models/create_java_license_acceptance_record_details.py +174 -0
  411. oci/jms_java_downloads/models/download_url.py +119 -0
  412. oci/jms_java_downloads/models/generate_artifact_download_url_details.py +72 -0
  413. oci/jms_java_downloads/models/java_download_count_aggregation.py +289 -0
  414. oci/jms_java_downloads/models/java_download_count_aggregation_collection.py +123 -0
  415. oci/jms_java_downloads/models/java_download_record.py +351 -0
  416. oci/jms_java_downloads/models/java_download_record_collection.py +72 -0
  417. oci/jms_java_downloads/models/java_download_record_summary.py +351 -0
  418. oci/jms_java_downloads/models/java_download_report.py +533 -0
  419. oci/jms_java_downloads/models/java_download_report_collection.py +72 -0
  420. oci/jms_java_downloads/models/java_download_report_summary.py +532 -0
  421. oci/jms_java_downloads/models/java_download_token.py +710 -0
  422. oci/jms_java_downloads/models/java_download_token_collection.py +72 -0
  423. oci/jms_java_downloads/models/java_download_token_summary.py +710 -0
  424. oci/jms_java_downloads/models/java_license.py +154 -0
  425. oci/jms_java_downloads/models/java_license_acceptance_record.py +513 -0
  426. oci/jms_java_downloads/models/java_license_acceptance_record_collection.py +72 -0
  427. oci/jms_java_downloads/models/java_license_acceptance_record_summary.py +513 -0
  428. oci/jms_java_downloads/models/java_license_collection.py +72 -0
  429. oci/jms_java_downloads/models/java_license_summary.py +154 -0
  430. oci/jms_java_downloads/models/principal.py +138 -0
  431. oci/jms_java_downloads/models/request_summarized_java_download_counts_details.py +415 -0
  432. oci/jms_java_downloads/models/update_java_download_token_details.py +270 -0
  433. oci/jms_java_downloads/models/update_java_license_acceptance_record_details.py +88 -0
  434. oci/jms_java_downloads/models/work_request.py +412 -0
  435. oci/jms_java_downloads/models/work_request_error.py +136 -0
  436. oci/jms_java_downloads/models/work_request_error_collection.py +72 -0
  437. oci/jms_java_downloads/models/work_request_log_entry.py +103 -0
  438. oci/jms_java_downloads/models/work_request_log_entry_collection.py +72 -0
  439. oci/jms_java_downloads/models/work_request_resource.py +203 -0
  440. oci/jms_java_downloads/models/work_request_summary.py +412 -0
  441. oci/jms_java_downloads/models/work_request_summary_collection.py +72 -0
  442. oci/key_management/ekm_client.py +5 -5
  443. oci/key_management/kms_crypto_client.py +6 -6
  444. oci/key_management/kms_management_client.py +21 -21
  445. oci/key_management/kms_vault_client.py +14 -14
  446. oci/license_manager/license_manager_client.py +18 -18
  447. oci/limits/limits_client.py +4 -4
  448. oci/limits/quotas_client.py +7 -7
  449. oci/load_balancer/load_balancer_client.py +61 -61
  450. oci/lockbox/lockbox_client.py +23 -23
  451. oci/log_analytics/log_analytics_client.py +192 -192
  452. oci/logging/logging_management_client.py +30 -30
  453. oci/loggingingestion/logging_client.py +1 -1
  454. oci/loggingsearch/log_search_client.py +1 -1
  455. oci/management_agent/management_agent_client.py +23 -23
  456. oci/management_dashboard/dashx_apis_client.py +14 -14
  457. oci/marketplace/account_client.py +2 -2
  458. oci/marketplace/marketplace_client.py +30 -30
  459. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  460. oci/media_services/media_services_client.py +48 -48
  461. oci/media_services/media_stream_client.py +2 -2
  462. oci/monitoring/monitoring_client.py +13 -13
  463. oci/mysql/channels_client.py +7 -7
  464. oci/mysql/db_backups_client.py +6 -6
  465. oci/mysql/db_system_client.py +32 -17
  466. oci/mysql/models/create_db_system_details.py +49 -2
  467. oci/mysql/models/db_system.py +49 -2
  468. oci/mysql/models/db_system_snapshot.py +49 -2
  469. oci/mysql/models/db_system_summary.py +49 -2
  470. oci/mysql/models/update_db_system_details.py +49 -2
  471. oci/mysql/mysqlaas_client.py +7 -7
  472. oci/mysql/replicas_client.py +5 -5
  473. oci/mysql/work_requests_client.py +4 -4
  474. oci/network_firewall/network_firewall_client.py +80 -80
  475. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  476. oci/nosql/nosql_client.py +24 -24
  477. oci/object_storage/object_storage_client.py +50 -50
  478. oci/oce/oce_instance_client.py +10 -10
  479. oci/oci_control_center/occ_metrics_client.py +3 -3
  480. oci/ocvp/esxi_host_client.py +6 -6
  481. oci/ocvp/sddc_client.py +13 -13
  482. oci/ocvp/work_request_client.py +4 -4
  483. oci/oda/management_client.py +56 -56
  484. oci/oda/oda_client.py +17 -17
  485. oci/oda/odapackage_client.py +7 -7
  486. oci/onesubscription/billing_schedule_client.py +1 -1
  487. oci/onesubscription/commitment_client.py +2 -2
  488. oci/onesubscription/computed_usage_client.py +3 -3
  489. oci/onesubscription/invoice_summary_client.py +2 -2
  490. oci/onesubscription/organization_subscription_client.py +1 -1
  491. oci/onesubscription/ratecard_client.py +1 -1
  492. oci/onesubscription/subscribed_service_client.py +2 -2
  493. oci/onesubscription/subscription_client.py +1 -1
  494. oci/ons/notification_control_plane_client.py +6 -6
  495. oci/ons/notification_data_plane_client.py +10 -10
  496. oci/opa/opa_instance_client.py +11 -11
  497. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  498. oci/opensearch/opensearch_cluster_client.py +14 -14
  499. oci/operator_access_control/access_requests_client.py +9 -9
  500. oci/operator_access_control/operator_actions_client.py +2 -2
  501. oci/operator_access_control/operator_control_assignment_client.py +6 -6
  502. oci/operator_access_control/operator_control_client.py +6 -6
  503. oci/opsi/operations_insights_client.py +159 -159
  504. oci/optimizer/optimizer_client.py +26 -26
  505. oci/os_management/event_client.py +8 -8
  506. oci/os_management/os_management_client.py +69 -69
  507. oci/os_management_hub/lifecycle_environment_client.py +11 -11
  508. oci/os_management_hub/managed_instance_client.py +22 -22
  509. oci/os_management_hub/managed_instance_group_client.py +22 -22
  510. oci/os_management_hub/management_station_client.py +8 -8
  511. oci/os_management_hub/onboarding_client.py +5 -5
  512. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  513. oci/os_management_hub/scheduled_job_client.py +6 -6
  514. oci/os_management_hub/software_source_client.py +22 -22
  515. oci/os_management_hub/work_request_client.py +4 -4
  516. oci/osp_gateway/address_rule_service_client.py +1 -1
  517. oci/osp_gateway/address_service_client.py +2 -2
  518. oci/osp_gateway/invoice_service_client.py +5 -5
  519. oci/osp_gateway/subscription_service_client.py +5 -5
  520. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  521. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  522. oci/osub_subscription/commitment_client.py +2 -2
  523. oci/osub_subscription/ratecard_client.py +1 -1
  524. oci/osub_subscription/subscription_client.py +1 -1
  525. oci/osub_usage/computed_usage_client.py +3 -3
  526. oci/queue/queue_admin_client.py +11 -11
  527. oci/queue/queue_client.py +8 -8
  528. oci/recovery/database_recovery_client.py +23 -23
  529. oci/redis/redis_cluster_client.py +11 -11
  530. oci/regions_definitions.py +3 -0
  531. oci/resource_manager/resource_manager_client.py +52 -52
  532. oci/resource_search/resource_search_client.py +3 -3
  533. oci/rover/rover_bundle_client.py +8 -8
  534. oci/rover/rover_cluster_client.py +8 -8
  535. oci/rover/rover_entitlement_client.py +6 -6
  536. oci/rover/rover_node_client.py +15 -15
  537. oci/rover/shape_client.py +1 -1
  538. oci/rover/work_requests_client.py +5 -5
  539. oci/sch/service_connector_client.py +12 -12
  540. oci/secrets/secrets_client.py +3 -3
  541. oci/service_catalog/service_catalog_client.py +26 -26
  542. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  543. oci/service_mesh/service_mesh_client.py +48 -48
  544. oci/stack_monitoring/models/__init__.py +124 -0
  545. oci/stack_monitoring/models/anomaly_data_point.py +196 -0
  546. oci/stack_monitoring/models/anomaly_metric_data.py +103 -0
  547. oci/stack_monitoring/models/associated_monitored_resource.py +47 -0
  548. oci/stack_monitoring/models/associated_resources_summary.py +47 -0
  549. oci/stack_monitoring/models/auto_promote_config_details.py +1 -1
  550. oci/stack_monitoring/models/baselineable_metric.py +559 -0
  551. oci/stack_monitoring/models/baselineable_metric_summary.py +435 -0
  552. oci/stack_monitoring/models/baselineable_metric_summary_collection.py +72 -0
  553. oci/stack_monitoring/models/change_metric_extension_compartment_details.py +78 -0
  554. oci/stack_monitoring/models/change_monitored_resource_task_compartment_details.py +78 -0
  555. oci/stack_monitoring/models/config.py +19 -3
  556. oci/stack_monitoring/models/config_summary.py +8 -0
  557. oci/stack_monitoring/models/create_baselineable_metric_details.py +196 -0
  558. oci/stack_monitoring/models/create_config_details.py +8 -0
  559. oci/stack_monitoring/models/create_license_auto_assign_config_details.py +125 -0
  560. oci/stack_monitoring/models/create_license_enterprise_extensibility_config_details.py +109 -0
  561. oci/stack_monitoring/models/create_metric_extension_details.py +289 -0
  562. oci/stack_monitoring/models/create_monitored_resource_details.py +49 -0
  563. oci/stack_monitoring/models/create_monitored_resource_task_details.py +202 -0
  564. oci/stack_monitoring/models/create_monitored_resource_type_details.py +297 -0
  565. oci/stack_monitoring/models/data_point.py +103 -0
  566. oci/stack_monitoring/models/disable_metric_extension_details.py +72 -0
  567. oci/stack_monitoring/models/discovery_details.py +47 -0
  568. oci/stack_monitoring/models/discovery_job_summary.py +47 -0
  569. oci/stack_monitoring/models/enable_metric_extension_details.py +72 -0
  570. oci/stack_monitoring/models/enabled_resource_details.py +72 -0
  571. oci/stack_monitoring/models/evaluate_baselineable_metric_details.py +103 -0
  572. oci/stack_monitoring/models/evaluate_baselineable_metric_result.py +103 -0
  573. oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +241 -0
  574. oci/stack_monitoring/models/jmx_query_properties.py +206 -0
  575. oci/stack_monitoring/models/jmx_update_query_properties.py +206 -0
  576. oci/stack_monitoring/models/license_auto_assign_config_details.py +165 -0
  577. oci/stack_monitoring/models/license_auto_assign_config_summary.py +160 -0
  578. oci/stack_monitoring/models/license_enterprise_extensibility_config_details.py +147 -0
  579. oci/stack_monitoring/models/license_enterprise_extensibility_config_summary.py +144 -0
  580. oci/stack_monitoring/models/manage_license_details.py +88 -0
  581. oci/stack_monitoring/models/metric.py +329 -0
  582. oci/stack_monitoring/models/metric_data.py +134 -0
  583. oci/stack_monitoring/models/metric_extension.py +701 -0
  584. oci/stack_monitoring/models/metric_extension_collection.py +72 -0
  585. oci/stack_monitoring/models/metric_extension_query_properties.py +117 -0
  586. oci/stack_monitoring/models/metric_extension_summary.py +504 -0
  587. oci/stack_monitoring/models/metric_extension_update_query_properties.py +117 -0
  588. oci/stack_monitoring/models/monitored_resource.py +47 -0
  589. oci/stack_monitoring/models/monitored_resource_member_summary.py +47 -0
  590. oci/stack_monitoring/models/monitored_resource_summary.py +82 -0
  591. oci/stack_monitoring/models/monitored_resource_task.py +483 -0
  592. oci/stack_monitoring/models/monitored_resource_task_details.py +101 -0
  593. oci/stack_monitoring/models/monitored_resource_task_summary.py +413 -0
  594. oci/stack_monitoring/models/monitored_resource_tasks_collection.py +72 -0
  595. oci/stack_monitoring/models/monitored_resource_type.py +504 -0
  596. oci/stack_monitoring/models/monitored_resource_type_summary.py +504 -0
  597. oci/stack_monitoring/models/monitored_resource_types_collection.py +72 -0
  598. oci/stack_monitoring/models/monitored_resources_count_aggregation.py +111 -0
  599. oci/stack_monitoring/models/monitored_resources_count_aggregation_collection.py +72 -0
  600. oci/stack_monitoring/models/os_command_query_properties.py +202 -0
  601. oci/stack_monitoring/models/os_command_update_query_properties.py +202 -0
  602. oci/stack_monitoring/models/resource_type_metadata_details.py +105 -0
  603. oci/stack_monitoring/models/script_file_details.py +103 -0
  604. oci/stack_monitoring/models/search_monitored_resources_details.py +47 -0
  605. oci/stack_monitoring/models/sql_details.py +103 -0
  606. oci/stack_monitoring/models/sql_in_param_details.py +103 -0
  607. oci/stack_monitoring/models/sql_out_param_details.py +119 -0
  608. oci/stack_monitoring/models/sql_query_properties.py +184 -0
  609. oci/stack_monitoring/models/sql_update_query_properties.py +183 -0
  610. oci/stack_monitoring/models/system_format_resource_type_metadata_details.py +263 -0
  611. oci/stack_monitoring/models/test_metric_extension_data.py +165 -0
  612. oci/stack_monitoring/models/test_metric_extension_details.py +72 -0
  613. oci/stack_monitoring/models/unique_property_set.py +72 -0
  614. oci/stack_monitoring/models/update_baselineable_metric_details.py +435 -0
  615. oci/stack_monitoring/models/update_config_details.py +8 -0
  616. oci/stack_monitoring/models/update_license_auto_assign_config_details.py +118 -0
  617. oci/stack_monitoring/models/update_license_enterprise_extensibility_config_details.py +102 -0
  618. oci/stack_monitoring/models/update_metric_extension_details.py +192 -0
  619. oci/stack_monitoring/models/update_monitored_resource_task_details.py +107 -0
  620. oci/stack_monitoring/models/update_monitored_resource_type_details.py +227 -0
  621. oci/stack_monitoring/models/work_request.py +19 -3
  622. oci/stack_monitoring/models/work_request_summary.py +19 -3
  623. oci/stack_monitoring/stack_monitoring_client.py +4906 -1196
  624. oci/stack_monitoring/stack_monitoring_client_composite_operations.py +743 -28
  625. oci/streaming/stream_admin_client.py +18 -18
  626. oci/streaming/stream_client.py +8 -8
  627. oci/tenant_manager_control_plane/domain_client.py +5 -5
  628. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  629. oci/tenant_manager_control_plane/governance_client.py +2 -2
  630. oci/tenant_manager_control_plane/link_client.py +3 -3
  631. oci/tenant_manager_control_plane/orders_client.py +2 -2
  632. oci/tenant_manager_control_plane/organization_client.py +10 -10
  633. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  634. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  635. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  636. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  637. oci/threat_intelligence/threatintel_client.py +5 -5
  638. oci/usage/resources_client.py +2 -2
  639. oci/usage/rewards_client.py +6 -6
  640. oci/usage/usagelimits_client.py +1 -1
  641. oci/usage_api/usageapi_client.py +19 -19
  642. oci/vault/vaults_client.py +11 -11
  643. oci/vbs_inst/vbs_instance_client.py +10 -10
  644. oci/version.py +1 -1
  645. oci/visual_builder/vb_instance_client.py +13 -13
  646. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  647. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  648. oci/waa/waa_client.py +13 -13
  649. oci/waa/work_request_client.py +4 -4
  650. oci/waas/redirect_client.py +6 -6
  651. oci/waas/waas_client.py +66 -66
  652. oci/waf/waf_client.py +24 -24
  653. oci/work_requests/work_request_client.py +4 -4
  654. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/METADATA +1 -1
  655. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/RECORD +659 -428
  656. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/LICENSE.txt +0 -0
  657. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  658. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/WHEEL +0 -0
  659. {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/top_level.txt +0 -0
@@ -68,6 +68,49 @@ class StackMonitoringClientCompositeOperations(object):
68
68
  except Exception as e:
69
69
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
70
70
 
71
+ def create_baselineable_metric_and_wait_for_state(self, create_baselineable_metric_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
72
+ """
73
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
74
+ to enter the given state(s).
75
+
76
+ :param oci.stack_monitoring.models.CreateBaselineableMetricDetails create_baselineable_metric_details: (required)
77
+ Baseline metric
78
+
79
+ :param list[str] wait_for_states:
80
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
81
+
82
+ :param dict operation_kwargs:
83
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_baselineable_metric`
84
+
85
+ :param dict waiter_kwargs:
86
+ 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``
87
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
88
+ """
89
+ operation_result = self.client.create_baselineable_metric(create_baselineable_metric_details, **operation_kwargs)
90
+ if not wait_for_states:
91
+ return operation_result
92
+
93
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
94
+ baselineable_metric_id = operation_result.data.id
95
+
96
+ try:
97
+ waiter_result = oci.wait_until(
98
+ self.client,
99
+ self.client.get_baselineable_metric(baselineable_metric_id), # noqa: F821
100
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
101
+ **waiter_kwargs
102
+ )
103
+ result_to_return = waiter_result
104
+
105
+ return result_to_return
106
+ except (NameError, TypeError) as e:
107
+ if not e.args:
108
+ e.args = ('',)
109
+ 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"', )
110
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
111
+ except Exception as e:
112
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
113
+
71
114
  def create_config_and_wait_for_state(self, create_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
72
115
  """
73
116
  Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
@@ -154,6 +197,49 @@ class StackMonitoringClientCompositeOperations(object):
154
197
  except Exception as e:
155
198
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
156
199
 
200
+ def create_metric_extension_and_wait_for_state(self, create_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
201
+ """
202
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
203
+ to enter the given state(s).
204
+
205
+ :param oci.stack_monitoring.models.CreateMetricExtensionDetails create_metric_extension_details: (required)
206
+ Details required for creating new Metric Extension
207
+
208
+ :param list[str] wait_for_states:
209
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
210
+
211
+ :param dict operation_kwargs:
212
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_metric_extension`
213
+
214
+ :param dict waiter_kwargs:
215
+ 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``
216
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
217
+ """
218
+ operation_result = self.client.create_metric_extension(create_metric_extension_details, **operation_kwargs)
219
+ if not wait_for_states:
220
+ return operation_result
221
+
222
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
223
+ metric_extension_id = operation_result.data.id
224
+
225
+ try:
226
+ waiter_result = oci.wait_until(
227
+ self.client,
228
+ self.client.get_metric_extension(metric_extension_id), # noqa: F821
229
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
230
+ **waiter_kwargs
231
+ )
232
+ result_to_return = waiter_result
233
+
234
+ return result_to_return
235
+ except (NameError, TypeError) as e:
236
+ if not e.args:
237
+ e.args = ('',)
238
+ 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"', )
239
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
240
+ except Exception as e:
241
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
242
+
157
243
  def create_monitored_resource_and_wait_for_state(self, create_monitored_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
158
244
  """
159
245
  Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
@@ -192,6 +278,147 @@ class StackMonitoringClientCompositeOperations(object):
192
278
  except Exception as e:
193
279
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
194
280
 
281
+ def create_monitored_resource_task_and_wait_for_state(self, create_monitored_resource_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
282
+ """
283
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_task` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
284
+ to enter the given state(s).
285
+
286
+ :param oci.stack_monitoring.models.CreateMonitoredResourceTaskDetails create_monitored_resource_task_details: (required)
287
+ Details to create the new stack monitoring resource task.
288
+
289
+ :param list[str] wait_for_states:
290
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
291
+
292
+ :param dict operation_kwargs:
293
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_task`
294
+
295
+ :param dict waiter_kwargs:
296
+ 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``
297
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
298
+ """
299
+ operation_result = self.client.create_monitored_resource_task(create_monitored_resource_task_details, **operation_kwargs)
300
+ if not wait_for_states:
301
+ return operation_result
302
+
303
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
304
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
305
+
306
+ try:
307
+ waiter_result = oci.wait_until(
308
+ self.client,
309
+ self.client.get_work_request(wait_for_resource_id),
310
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
311
+ **waiter_kwargs
312
+ )
313
+ result_to_return = waiter_result
314
+
315
+ return result_to_return
316
+ except Exception as e:
317
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
318
+
319
+ def create_monitored_resource_type_and_wait_for_state(self, create_monitored_resource_type_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
320
+ """
321
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
322
+ to enter the given state(s).
323
+
324
+ :param oci.stack_monitoring.models.CreateMonitoredResourceTypeDetails create_monitored_resource_type_details: (required)
325
+ Details for the new monitored resource type.
326
+
327
+ :param list[str] wait_for_states:
328
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
329
+
330
+ :param dict operation_kwargs:
331
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_type`
332
+
333
+ :param dict waiter_kwargs:
334
+ 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``
335
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
336
+ """
337
+ operation_result = self.client.create_monitored_resource_type(create_monitored_resource_type_details, **operation_kwargs)
338
+ if not wait_for_states:
339
+ return operation_result
340
+
341
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
342
+ monitored_resource_type_id = operation_result.data.id
343
+
344
+ try:
345
+ waiter_result = oci.wait_until(
346
+ self.client,
347
+ self.client.get_monitored_resource_type(monitored_resource_type_id), # noqa: F821
348
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
349
+ **waiter_kwargs
350
+ )
351
+ result_to_return = waiter_result
352
+
353
+ return result_to_return
354
+ except (NameError, TypeError) as e:
355
+ if not e.args:
356
+ e.args = ('',)
357
+ 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"', )
358
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
359
+ except Exception as e:
360
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
361
+
362
+ def delete_baselineable_metric_and_wait_for_state(self, baselineable_metric_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
363
+ """
364
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
365
+ to enter the given state(s).
366
+
367
+ :param str baselineable_metric_id: (required)
368
+ Identifier for the metric
369
+
370
+ :param list[str] wait_for_states:
371
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
372
+
373
+ :param dict operation_kwargs:
374
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_baselineable_metric`
375
+
376
+ :param dict waiter_kwargs:
377
+ 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``
378
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
379
+ """
380
+ initial_get_result = self.client.get_baselineable_metric(baselineable_metric_id)
381
+ operation_result = None
382
+ try:
383
+ operation_result = self.client.delete_baselineable_metric(baselineable_metric_id, **operation_kwargs)
384
+ except oci.exceptions.ServiceError as e:
385
+ if e.status == 404:
386
+ return WAIT_RESOURCE_NOT_FOUND
387
+ else:
388
+ raise e
389
+
390
+ if not wait_for_states:
391
+ return operation_result
392
+
393
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
394
+
395
+ try:
396
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
397
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_baselineable_metric, 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")
398
+ else:
399
+ """
400
+ If the user does not send in this value, we set it to True by default.
401
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
402
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
403
+ """
404
+ waiter_kwargs["succeed_on_not_found"] = True
405
+ waiter_result = oci.wait_until(
406
+ self.client,
407
+ initial_get_result, # noqa: F821
408
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
409
+ **waiter_kwargs
410
+ )
411
+ result_to_return = waiter_result
412
+
413
+ return result_to_return
414
+ except (NameError, TypeError) as e:
415
+ if not e.args:
416
+ e.args = ('',)
417
+ 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"', )
418
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
419
+ except Exception as e:
420
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
421
+
195
422
  def delete_config_and_wait_for_state(self, config_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
196
423
  """
197
424
  Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
@@ -312,29 +539,30 @@ class StackMonitoringClientCompositeOperations(object):
312
539
  except Exception as e:
313
540
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
314
541
 
315
- def delete_monitored_resource_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
542
+ def delete_metric_extension_and_wait_for_state(self, metric_extension_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
316
543
  """
317
- Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
544
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
318
545
  to enter the given state(s).
319
546
 
320
- :param str monitored_resource_id: (required)
321
- The `OCID`__ of monitored resource.
547
+ :param str metric_extension_id: (required)
548
+ The `OCID`__ of the metric extension resource.
322
549
 
323
550
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
324
551
 
325
552
  :param list[str] wait_for_states:
326
- An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
553
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
327
554
 
328
555
  :param dict operation_kwargs:
329
- A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource`
556
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_metric_extension`
330
557
 
331
558
  :param dict waiter_kwargs:
332
559
  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``
333
560
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
334
561
  """
562
+ initial_get_result = self.client.get_metric_extension(metric_extension_id)
335
563
  operation_result = None
336
564
  try:
337
- operation_result = self.client.delete_monitored_resource(monitored_resource_id, **operation_kwargs)
565
+ operation_result = self.client.delete_metric_extension(metric_extension_id, **operation_kwargs)
338
566
  except oci.exceptions.ServiceError as e:
339
567
  if e.status == 404:
340
568
  return WAIT_RESOURCE_NOT_FOUND
@@ -345,24 +573,37 @@ class StackMonitoringClientCompositeOperations(object):
345
573
  return operation_result
346
574
 
347
575
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
348
- wait_for_resource_id = operation_result.headers['opc-work-request-id']
349
576
 
350
577
  try:
578
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
579
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_metric_extension, 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")
580
+ else:
581
+ """
582
+ If the user does not send in this value, we set it to True by default.
583
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
584
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
585
+ """
586
+ waiter_kwargs["succeed_on_not_found"] = True
351
587
  waiter_result = oci.wait_until(
352
588
  self.client,
353
- self.client.get_work_request(wait_for_resource_id),
354
- evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
589
+ initial_get_result, # noqa: F821
590
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
355
591
  **waiter_kwargs
356
592
  )
357
593
  result_to_return = waiter_result
358
594
 
359
595
  return result_to_return
596
+ except (NameError, TypeError) as e:
597
+ if not e.args:
598
+ e.args = ('',)
599
+ 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"', )
600
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
360
601
  except Exception as e:
361
602
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
362
603
 
363
- def disable_external_database_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
604
+ def delete_monitored_resource_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
364
605
  """
365
- Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
606
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
366
607
  to enter the given state(s).
367
608
 
368
609
  :param str monitored_resource_id: (required)
@@ -374,13 +615,21 @@ class StackMonitoringClientCompositeOperations(object):
374
615
  An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
375
616
 
376
617
  :param dict operation_kwargs:
377
- A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database`
618
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource`
378
619
 
379
620
  :param dict waiter_kwargs:
380
621
  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``
381
622
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
382
623
  """
383
- operation_result = self.client.disable_external_database(monitored_resource_id, **operation_kwargs)
624
+ operation_result = None
625
+ try:
626
+ operation_result = self.client.delete_monitored_resource(monitored_resource_id, **operation_kwargs)
627
+ except oci.exceptions.ServiceError as e:
628
+ if e.status == 404:
629
+ return WAIT_RESOURCE_NOT_FOUND
630
+ else:
631
+ raise e
632
+
384
633
  if not wait_for_states:
385
634
  return operation_result
386
635
 
@@ -400,42 +649,318 @@ class StackMonitoringClientCompositeOperations(object):
400
649
  except Exception as e:
401
650
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
402
651
 
403
- def update_and_propagate_tags_and_wait_for_state(self, monitored_resource_id, update_and_propagate_tags_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
652
+ def delete_monitored_resource_type_and_wait_for_state(self, monitored_resource_type_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
404
653
  """
405
- Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
654
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
406
655
  to enter the given state(s).
407
656
 
408
- :param str monitored_resource_id: (required)
409
- The `OCID`__ of monitored resource.
657
+ :param str monitored_resource_type_id: (required)
658
+ The `OCID`__ of monitored resource type.
410
659
 
411
660
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
412
661
 
413
- :param oci.stack_monitoring.models.UpdateAndPropagateTagsDetails update_and_propagate_tags_details: (required)
414
- The tags to be updated.
415
-
416
662
  :param list[str] wait_for_states:
417
- An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
663
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
418
664
 
419
665
  :param dict operation_kwargs:
420
- A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags`
666
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource_type`
421
667
 
422
668
  :param dict waiter_kwargs:
423
669
  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``
424
670
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
425
671
  """
426
- operation_result = self.client.update_and_propagate_tags(monitored_resource_id, update_and_propagate_tags_details, **operation_kwargs)
672
+ initial_get_result = self.client.get_monitored_resource_type(monitored_resource_type_id)
673
+ operation_result = None
674
+ try:
675
+ operation_result = self.client.delete_monitored_resource_type(monitored_resource_type_id, **operation_kwargs)
676
+ except oci.exceptions.ServiceError as e:
677
+ if e.status == 404:
678
+ return WAIT_RESOURCE_NOT_FOUND
679
+ else:
680
+ raise e
681
+
427
682
  if not wait_for_states:
428
683
  return operation_result
429
684
 
430
685
  lowered_wait_for_states = [w.lower() for w in wait_for_states]
431
- wait_for_resource_id = operation_result.headers['opc-work-request-id']
432
686
 
433
687
  try:
688
+ if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
689
+ self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_monitored_resource_type, 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")
690
+ else:
691
+ """
692
+ If the user does not send in this value, we set it to True by default.
693
+ We are doing this because during a delete resource scenario and waiting on its state, the service can
694
+ return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
695
+ """
696
+ waiter_kwargs["succeed_on_not_found"] = True
434
697
  waiter_result = oci.wait_until(
435
698
  self.client,
436
- self.client.get_work_request(wait_for_resource_id),
437
- evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
438
- **waiter_kwargs
699
+ initial_get_result, # noqa: F821
700
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
701
+ **waiter_kwargs
702
+ )
703
+ result_to_return = waiter_result
704
+
705
+ return result_to_return
706
+ except (NameError, TypeError) as e:
707
+ if not e.args:
708
+ e.args = ('',)
709
+ 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"', )
710
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
711
+ except Exception as e:
712
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
713
+
714
+ def disable_external_database_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
715
+ """
716
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
717
+ to enter the given state(s).
718
+
719
+ :param str monitored_resource_id: (required)
720
+ The `OCID`__ of monitored resource.
721
+
722
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
723
+
724
+ :param list[str] wait_for_states:
725
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
726
+
727
+ :param dict operation_kwargs:
728
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database`
729
+
730
+ :param dict waiter_kwargs:
731
+ 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``
732
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
733
+ """
734
+ operation_result = self.client.disable_external_database(monitored_resource_id, **operation_kwargs)
735
+ if not wait_for_states:
736
+ return operation_result
737
+
738
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
739
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
740
+
741
+ try:
742
+ waiter_result = oci.wait_until(
743
+ self.client,
744
+ self.client.get_work_request(wait_for_resource_id),
745
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
746
+ **waiter_kwargs
747
+ )
748
+ result_to_return = waiter_result
749
+
750
+ return result_to_return
751
+ except Exception as e:
752
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
753
+
754
+ def disable_metric_extension_and_wait_for_state(self, metric_extension_id, disable_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
755
+ """
756
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
757
+ to enter the given state(s).
758
+
759
+ :param str metric_extension_id: (required)
760
+ The `OCID`__ of the metric extension resource.
761
+
762
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
763
+
764
+ :param oci.stack_monitoring.models.DisableMetricExtensionDetails disable_metric_extension_details: (required)
765
+ The list of Resource IDs for which given metric extension needs to be disabled
766
+
767
+ :param list[str] wait_for_states:
768
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
769
+
770
+ :param dict operation_kwargs:
771
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_metric_extension`
772
+
773
+ :param dict waiter_kwargs:
774
+ 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``
775
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
776
+ """
777
+ operation_result = self.client.disable_metric_extension(metric_extension_id, disable_metric_extension_details, **operation_kwargs)
778
+ if not wait_for_states:
779
+ return operation_result
780
+
781
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
782
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
783
+
784
+ try:
785
+ waiter_result = oci.wait_until(
786
+ self.client,
787
+ self.client.get_work_request(wait_for_resource_id),
788
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
789
+ **waiter_kwargs
790
+ )
791
+ result_to_return = waiter_result
792
+
793
+ return result_to_return
794
+ except Exception as e:
795
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
796
+
797
+ def enable_metric_extension_and_wait_for_state(self, metric_extension_id, enable_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
798
+ """
799
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.enable_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
800
+ to enter the given state(s).
801
+
802
+ :param str metric_extension_id: (required)
803
+ The `OCID`__ of the metric extension resource.
804
+
805
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
806
+
807
+ :param oci.stack_monitoring.models.EnableMetricExtensionDetails enable_metric_extension_details: (required)
808
+ The list of Resource IDs for which given metric extension needs to be enabled
809
+
810
+ :param list[str] wait_for_states:
811
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
812
+
813
+ :param dict operation_kwargs:
814
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.enable_metric_extension`
815
+
816
+ :param dict waiter_kwargs:
817
+ 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``
818
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
819
+ """
820
+ operation_result = self.client.enable_metric_extension(metric_extension_id, enable_metric_extension_details, **operation_kwargs)
821
+ if not wait_for_states:
822
+ return operation_result
823
+
824
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
825
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
826
+
827
+ try:
828
+ waiter_result = oci.wait_until(
829
+ self.client,
830
+ self.client.get_work_request(wait_for_resource_id),
831
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
832
+ **waiter_kwargs
833
+ )
834
+ result_to_return = waiter_result
835
+
836
+ return result_to_return
837
+ except Exception as e:
838
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
839
+
840
+ def publish_metric_extension_and_wait_for_state(self, metric_extension_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
841
+ """
842
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.publish_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
843
+ to enter the given state(s).
844
+
845
+ :param str metric_extension_id: (required)
846
+ The `OCID`__ of the metric extension resource.
847
+
848
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
849
+
850
+ :param list[str] wait_for_states:
851
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
852
+
853
+ :param dict operation_kwargs:
854
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.publish_metric_extension`
855
+
856
+ :param dict waiter_kwargs:
857
+ 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``
858
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
859
+ """
860
+ operation_result = self.client.publish_metric_extension(metric_extension_id, **operation_kwargs)
861
+ if not wait_for_states:
862
+ return operation_result
863
+
864
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
865
+ metric_extension_id = operation_result.data.id
866
+
867
+ try:
868
+ waiter_result = oci.wait_until(
869
+ self.client,
870
+ self.client.get_metric_extension(metric_extension_id), # noqa: F821
871
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
872
+ **waiter_kwargs
873
+ )
874
+ result_to_return = waiter_result
875
+
876
+ return result_to_return
877
+ except (NameError, TypeError) as e:
878
+ if not e.args:
879
+ e.args = ('',)
880
+ 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"', )
881
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
882
+ except Exception as e:
883
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
884
+
885
+ def test_metric_extension_and_wait_for_state(self, metric_extension_id, test_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
886
+ """
887
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.test_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
888
+ to enter the given state(s).
889
+
890
+ :param str metric_extension_id: (required)
891
+ The `OCID`__ of the metric extension resource.
892
+
893
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
894
+
895
+ :param oci.stack_monitoring.models.TestMetricExtensionDetails test_metric_extension_details: (required)
896
+ It contains OCID of resource.
897
+
898
+ :param list[str] wait_for_states:
899
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
900
+
901
+ :param dict operation_kwargs:
902
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.test_metric_extension`
903
+
904
+ :param dict waiter_kwargs:
905
+ 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``
906
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
907
+ """
908
+ operation_result = self.client.test_metric_extension(metric_extension_id, test_metric_extension_details, **operation_kwargs)
909
+ if not wait_for_states:
910
+ return operation_result
911
+
912
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
913
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
914
+
915
+ try:
916
+ waiter_result = oci.wait_until(
917
+ self.client,
918
+ self.client.get_work_request(wait_for_resource_id),
919
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
920
+ **waiter_kwargs
921
+ )
922
+ result_to_return = waiter_result
923
+
924
+ return result_to_return
925
+ except Exception as e:
926
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
927
+
928
+ def update_and_propagate_tags_and_wait_for_state(self, monitored_resource_id, update_and_propagate_tags_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
929
+ """
930
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
931
+ to enter the given state(s).
932
+
933
+ :param str monitored_resource_id: (required)
934
+ The `OCID`__ of monitored resource.
935
+
936
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
937
+
938
+ :param oci.stack_monitoring.models.UpdateAndPropagateTagsDetails update_and_propagate_tags_details: (required)
939
+ The tags to be updated.
940
+
941
+ :param list[str] wait_for_states:
942
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
943
+
944
+ :param dict operation_kwargs:
945
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags`
946
+
947
+ :param dict waiter_kwargs:
948
+ 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``
949
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
950
+ """
951
+ operation_result = self.client.update_and_propagate_tags(monitored_resource_id, update_and_propagate_tags_details, **operation_kwargs)
952
+ if not wait_for_states:
953
+ return operation_result
954
+
955
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
956
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
957
+
958
+ try:
959
+ waiter_result = oci.wait_until(
960
+ self.client,
961
+ self.client.get_work_request(wait_for_resource_id),
962
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
963
+ **waiter_kwargs
439
964
  )
440
965
  result_to_return = waiter_result
441
966
 
@@ -443,6 +968,52 @@ class StackMonitoringClientCompositeOperations(object):
443
968
  except Exception as e:
444
969
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
445
970
 
971
+ def update_baselineable_metric_and_wait_for_state(self, update_baselineable_metric_details, baselineable_metric_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
972
+ """
973
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
974
+ to enter the given state(s).
975
+
976
+ :param oci.stack_monitoring.models.UpdateBaselineableMetricDetails update_baselineable_metric_details: (required)
977
+ Baseline metric
978
+
979
+ :param str baselineable_metric_id: (required)
980
+ Identifier for the metric
981
+
982
+ :param list[str] wait_for_states:
983
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
984
+
985
+ :param dict operation_kwargs:
986
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_baselineable_metric`
987
+
988
+ :param dict waiter_kwargs:
989
+ 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``
990
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
991
+ """
992
+ operation_result = self.client.update_baselineable_metric(update_baselineable_metric_details, baselineable_metric_id, **operation_kwargs)
993
+ if not wait_for_states:
994
+ return operation_result
995
+
996
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
997
+ baselineable_metric_id = operation_result.data.id
998
+
999
+ try:
1000
+ waiter_result = oci.wait_until(
1001
+ self.client,
1002
+ self.client.get_baselineable_metric(baselineable_metric_id), # noqa: F821
1003
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
1004
+ **waiter_kwargs
1005
+ )
1006
+ result_to_return = waiter_result
1007
+
1008
+ return result_to_return
1009
+ except (NameError, TypeError) as e:
1010
+ if not e.args:
1011
+ e.args = ('',)
1012
+ 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"', )
1013
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1014
+ except Exception as e:
1015
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1016
+
446
1017
  def update_config_and_wait_for_state(self, config_id, update_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
447
1018
  """
448
1019
  Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
@@ -489,6 +1060,54 @@ class StackMonitoringClientCompositeOperations(object):
489
1060
  except Exception as e:
490
1061
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
491
1062
 
1063
+ def update_metric_extension_and_wait_for_state(self, metric_extension_id, update_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
1064
+ """
1065
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
1066
+ to enter the given state(s).
1067
+
1068
+ :param str metric_extension_id: (required)
1069
+ The `OCID`__ of the metric extension resource.
1070
+
1071
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
1072
+
1073
+ :param oci.stack_monitoring.models.UpdateMetricExtensionDetails update_metric_extension_details: (required)
1074
+ The information to be updated.
1075
+
1076
+ :param list[str] wait_for_states:
1077
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
1078
+
1079
+ :param dict operation_kwargs:
1080
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_metric_extension`
1081
+
1082
+ :param dict waiter_kwargs:
1083
+ 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``
1084
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1085
+ """
1086
+ operation_result = self.client.update_metric_extension(metric_extension_id, update_metric_extension_details, **operation_kwargs)
1087
+ if not wait_for_states:
1088
+ return operation_result
1089
+
1090
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
1091
+ metric_extension_id = operation_result.data.id
1092
+
1093
+ try:
1094
+ waiter_result = oci.wait_until(
1095
+ self.client,
1096
+ self.client.get_metric_extension(metric_extension_id), # noqa: F821
1097
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
1098
+ **waiter_kwargs
1099
+ )
1100
+ result_to_return = waiter_result
1101
+
1102
+ return result_to_return
1103
+ except (NameError, TypeError) as e:
1104
+ if not e.args:
1105
+ e.args = ('',)
1106
+ 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"', )
1107
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1108
+ except Exception as e:
1109
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1110
+
492
1111
  def update_monitored_resource_and_wait_for_state(self, monitored_resource_id, update_monitored_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
493
1112
  """
494
1113
  Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
@@ -531,3 +1150,99 @@ class StackMonitoringClientCompositeOperations(object):
531
1150
  return result_to_return
532
1151
  except Exception as e:
533
1152
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1153
+
1154
+ def update_monitored_resource_task_and_wait_for_state(self, monitored_resource_task_id, update_monitored_resource_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
1155
+ """
1156
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_task` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceTask` acted upon
1157
+ to enter the given state(s).
1158
+
1159
+ :param str monitored_resource_task_id: (required)
1160
+ The `OCID`__ of stack monitoring resource task.
1161
+
1162
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
1163
+
1164
+ :param oci.stack_monitoring.models.UpdateMonitoredResourceTaskDetails update_monitored_resource_task_details: (required)
1165
+ The information to be updated.
1166
+
1167
+ :param list[str] wait_for_states:
1168
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceTask.lifecycle_state`
1169
+
1170
+ :param dict operation_kwargs:
1171
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_task`
1172
+
1173
+ :param dict waiter_kwargs:
1174
+ 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``
1175
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1176
+ """
1177
+ operation_result = self.client.update_monitored_resource_task(monitored_resource_task_id, update_monitored_resource_task_details, **operation_kwargs)
1178
+ if not wait_for_states:
1179
+ return operation_result
1180
+
1181
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
1182
+ monitored_resource_task_id = operation_result.data.id
1183
+
1184
+ try:
1185
+ waiter_result = oci.wait_until(
1186
+ self.client,
1187
+ self.client.get_monitored_resource_task(monitored_resource_task_id), # noqa: F821
1188
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
1189
+ **waiter_kwargs
1190
+ )
1191
+ result_to_return = waiter_result
1192
+
1193
+ return result_to_return
1194
+ except (NameError, TypeError) as e:
1195
+ if not e.args:
1196
+ e.args = ('',)
1197
+ 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"', )
1198
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1199
+ except Exception as e:
1200
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1201
+
1202
+ def update_monitored_resource_type_and_wait_for_state(self, monitored_resource_type_id, update_monitored_resource_type_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
1203
+ """
1204
+ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
1205
+ to enter the given state(s).
1206
+
1207
+ :param str monitored_resource_type_id: (required)
1208
+ The `OCID`__ of monitored resource type.
1209
+
1210
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
1211
+
1212
+ :param oci.stack_monitoring.models.UpdateMonitoredResourceTypeDetails update_monitored_resource_type_details: (required)
1213
+ The information to be updated for the given resource type id.
1214
+
1215
+ :param list[str] wait_for_states:
1216
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
1217
+
1218
+ :param dict operation_kwargs:
1219
+ A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_type`
1220
+
1221
+ :param dict waiter_kwargs:
1222
+ 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``
1223
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1224
+ """
1225
+ operation_result = self.client.update_monitored_resource_type(monitored_resource_type_id, update_monitored_resource_type_details, **operation_kwargs)
1226
+ if not wait_for_states:
1227
+ return operation_result
1228
+
1229
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
1230
+ monitored_resource_type_id = operation_result.data.id
1231
+
1232
+ try:
1233
+ waiter_result = oci.wait_until(
1234
+ self.client,
1235
+ self.client.get_monitored_resource_type(monitored_resource_type_id), # noqa: F821
1236
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
1237
+ **waiter_kwargs
1238
+ )
1239
+ result_to_return = waiter_result
1240
+
1241
+ return result_to_return
1242
+ except (NameError, TypeError) as e:
1243
+ if not e.args:
1244
+ e.args = ('',)
1245
+ 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"', )
1246
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1247
+ except Exception as e:
1248
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)