oci 2.144.0__py3-none-any.whl → 2.145.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  2. oci/adm/application_dependency_management_client.py +36 -36
  3. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  4. oci/ai_document/ai_service_document_client.py +26 -26
  5. oci/ai_language/ai_service_language_client.py +44 -44
  6. oci/ai_speech/ai_service_speech_client.py +19 -19
  7. oci/ai_speech/models/realtime_parameters.py +61 -4
  8. oci/ai_vision/ai_service_vision_client.py +28 -28
  9. oci/analytics/analytics_client.py +24 -24
  10. oci/announcements_service/announcement_client.py +5 -5
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/announcements_service/service_client.py +1 -1
  14. oci/apigateway/api_gateway_client.py +21 -21
  15. oci/apigateway/deployment_client.py +6 -6
  16. oci/apigateway/gateway_client.py +6 -6
  17. oci/apigateway/subscribers_client.py +6 -6
  18. oci/apigateway/usage_plans_client.py +6 -6
  19. oci/apigateway/work_requests_client.py +5 -5
  20. oci/apm_config/config_client.py +9 -9
  21. oci/apm_control_plane/apm_domain_client.py +14 -14
  22. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  23. oci/apm_traces/attributes_client.py +8 -8
  24. oci/apm_traces/query_client.py +2 -2
  25. oci/apm_traces/trace_client.py +4 -4
  26. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  27. oci/artifacts/artifacts_client.py +32 -32
  28. oci/audit/audit_client.py +3 -3
  29. oci/auth/signers/ephemeral_resource_principals_v21_signer.py +3 -3
  30. oci/auth/signers/key_pair_signer.py +6 -5
  31. oci/autoscaling/auto_scaling_client.py +11 -11
  32. oci/base_client.py +2 -2
  33. oci/bastion/bastion_client.py +15 -15
  34. oci/bds/bds_client.py +84 -84
  35. oci/blockchain/blockchain_platform_client.py +27 -27
  36. oci/budget/budget_client.py +10 -10
  37. oci/capacity_management/capacity_management_client.py +32 -32
  38. oci/certificates/certificates_client.py +5 -5
  39. oci/certificates_management/certificates_management_client.py +32 -32
  40. oci/cims/incident_client.py +6 -6
  41. oci/cloud_bridge/common_client.py +5 -5
  42. oci/cloud_bridge/discovery_client.py +15 -15
  43. oci/cloud_bridge/inventory_client.py +16 -16
  44. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  45. oci/cloud_guard/cloud_guard_client.py +155 -155
  46. oci/cloud_migrations/migration_client.py +43 -43
  47. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  48. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  49. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  50. oci/compute_instance_agent/plugin_client.py +2 -2
  51. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  52. oci/container_engine/container_engine_client.py +44 -44
  53. oci/container_engine/models/cluster_create_options.py +47 -0
  54. oci/container_engine/models/cluster_endpoints.py +33 -2
  55. oci/container_instances/container_instance_client.py +18 -18
  56. oci/core/blockstorage_client.py +60 -60
  57. oci/core/compute_client.py +102 -102
  58. oci/core/compute_management_client.py +32 -32
  59. oci/core/virtual_network_client.py +256 -256
  60. oci/dashboard_service/dashboard_client.py +6 -6
  61. oci/dashboard_service/dashboard_group_client.py +6 -6
  62. oci/data_catalog/data_catalog_client.py +149 -149
  63. oci/data_flow/data_flow_client.py +45 -45
  64. oci/data_integration/data_integration_client.py +163 -163
  65. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  66. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  67. oci/data_safe/data_safe_client.py +306 -306
  68. oci/data_science/data_science_client.py +101 -101
  69. oci/database/database_client.py +409 -404
  70. oci/database/models/__init__.py +8 -0
  71. oci/database/models/autonomous_container_database.py +89 -0
  72. oci/database/models/autonomous_container_database_summary.py +89 -0
  73. oci/database/models/autonomous_database.py +64 -2
  74. oci/database/models/autonomous_database_backup.py +15 -3
  75. oci/database/models/autonomous_database_backup_summary.py +15 -3
  76. oci/database/models/autonomous_database_standby_summary.py +93 -0
  77. oci/database/models/autonomous_database_summary.py +64 -2
  78. oci/database/models/autonomous_dw_database.py +64 -2
  79. oci/database/models/backup_destination.py +95 -2
  80. oci/database/models/backup_destination_configuration_summary.py +387 -0
  81. oci/database/models/backup_destination_details_summary.py +356 -0
  82. oci/database/models/backup_destination_properties.py +134 -0
  83. oci/database/models/backup_destination_summary.py +95 -2
  84. oci/database/models/create_autonomous_database_clone_details.py +7 -3
  85. oci/database/models/create_autonomous_database_from_backup_details.py +40 -5
  86. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +40 -5
  87. oci/database/models/create_data_guard_association_with_new_db_system_details.py +33 -0
  88. oci/database/models/db_system.py +96 -10
  89. oci/database/models/db_system_summary.py +96 -10
  90. oci/database/models/launch_db_system_base.py +33 -0
  91. oci/database/models/launch_db_system_details.py +7 -0
  92. oci/database/models/launch_db_system_from_backup_details.py +7 -0
  93. oci/database/models/launch_db_system_from_database_details.py +7 -0
  94. oci/database/models/launch_db_system_from_db_system_details.py +7 -0
  95. oci/database/models/recovery_appliance_details.py +134 -0
  96. oci/database/models/restore_autonomous_database_details.py +1 -1
  97. oci/database_management/db_management_client.py +228 -228
  98. oci/database_management/diagnosability_client.py +4 -4
  99. oci/database_management/managed_my_sql_databases_client.py +9 -9
  100. oci/database_management/perfhub_client.py +1 -1
  101. oci/database_management/sql_tuning_client.py +17 -17
  102. oci/database_migration/database_migration_client.py +42 -42
  103. oci/database_tools/database_tools_client.py +23 -23
  104. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  105. oci/delegate_access_control/work_request_client.py +4 -4
  106. oci/demand_signal/occ_demand_signal_client.py +7 -7
  107. oci/desktops/desktop_service_client.py +21 -21
  108. oci/devops/devops_client.py +141 -141
  109. oci/disaster_recovery/disaster_recovery_client.py +31 -31
  110. oci/dns/dns_client.py +54 -54
  111. oci/dts/appliance_export_job_client.py +6 -6
  112. oci/dts/shipping_vendors_client.py +1 -1
  113. oci/dts/transfer_appliance_client.py +8 -8
  114. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  115. oci/dts/transfer_device_client.py +5 -5
  116. oci/dts/transfer_job_client.py +6 -6
  117. oci/dts/transfer_package_client.py +7 -7
  118. oci/em_warehouse/em_warehouse_client.py +13 -13
  119. oci/email/email_client.py +31 -31
  120. oci/email_data_plane/email_dp_client.py +1 -1
  121. oci/events/events_client.py +6 -6
  122. oci/file_storage/file_storage_client.py +68 -68
  123. oci/file_storage/models/file_system.py +33 -0
  124. oci/file_storage/models/file_system_summary.py +33 -0
  125. oci/file_storage/models/filesystem_snapshot_policy.py +35 -2
  126. oci/file_storage/models/filesystem_snapshot_policy_summary.py +35 -2
  127. oci/file_storage/models/ldap_bind_account.py +7 -0
  128. oci/file_storage/models/ldap_bind_account_summary.py +7 -0
  129. oci/file_storage/models/mount_target.py +35 -2
  130. oci/file_storage/models/mount_target_summary.py +35 -2
  131. oci/file_storage/models/outbound_connector.py +35 -2
  132. oci/file_storage/models/outbound_connector_summary.py +35 -2
  133. oci/file_storage/models/replication.py +35 -2
  134. oci/file_storage/models/replication_summary.py +33 -0
  135. oci/file_storage/models/replication_target.py +33 -0
  136. oci/file_storage/models/replication_target_summary.py +33 -0
  137. oci/file_storage/models/snapshot.py +33 -0
  138. oci/file_storage/models/snapshot_summary.py +35 -2
  139. oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
  140. oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
  141. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
  142. oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
  143. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
  144. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  145. oci/functions/functions_invoke_client.py +1 -1
  146. oci/functions/functions_management_client.py +16 -16
  147. oci/fusion_apps/fusion_applications_client.py +41 -41
  148. oci/generative_ai/generative_ai_client.py +22 -22
  149. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  150. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  151. oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
  152. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  153. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  154. oci/golden_gate/golden_gate_client.py +90 -90
  155. oci/golden_gate/models/__init__.py +24 -0
  156. oci/golden_gate/models/amazon_kinesis_connection.py +1 -1
  157. oci/golden_gate/models/amazon_kinesis_connection_summary.py +1 -1
  158. oci/golden_gate/models/amazon_redshift_connection.py +1 -1
  159. oci/golden_gate/models/amazon_redshift_connection_summary.py +1 -1
  160. oci/golden_gate/models/amazon_s3_connection.py +1 -1
  161. oci/golden_gate/models/amazon_s3_connection_summary.py +1 -1
  162. oci/golden_gate/models/azure_data_lake_storage_connection.py +1 -1
  163. oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +1 -1
  164. oci/golden_gate/models/azure_synapse_connection.py +1 -1
  165. oci/golden_gate/models/azure_synapse_connection_summary.py +1 -1
  166. oci/golden_gate/models/connection.py +59 -35
  167. oci/golden_gate/models/connection_summary.py +62 -38
  168. oci/golden_gate/models/create_amazon_kinesis_connection_details.py +3 -1
  169. oci/golden_gate/models/create_amazon_redshift_connection_details.py +3 -1
  170. oci/golden_gate/models/create_amazon_s3_connection_details.py +3 -1
  171. oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +7 -1
  172. oci/golden_gate/models/create_azure_synapse_connection_details.py +3 -1
  173. oci/golden_gate/models/create_connection_details.py +58 -34
  174. oci/golden_gate/models/create_database_registration_details.py +4 -0
  175. oci/golden_gate/models/create_databricks_connection_details.py +437 -0
  176. oci/golden_gate/models/create_db2_connection_details.py +7 -1
  177. oci/golden_gate/models/create_elasticsearch_connection_details.py +3 -1
  178. oci/golden_gate/models/create_generic_connection_details.py +1 -1
  179. oci/golden_gate/models/create_golden_gate_connection_details.py +3 -1
  180. oci/golden_gate/models/create_google_big_query_connection_details.py +3 -1
  181. oci/golden_gate/models/create_google_cloud_storage_connection_details.py +3 -1
  182. oci/golden_gate/models/create_google_pub_sub_connection_details.py +241 -0
  183. oci/golden_gate/models/create_hdfs_connection_details.py +1 -1
  184. oci/golden_gate/models/create_java_message_service_connection_details.py +15 -1
  185. oci/golden_gate/models/create_kafka_connection_details.py +13 -1
  186. oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +13 -1
  187. oci/golden_gate/models/create_microsoft_fabric_connection_details.py +336 -0
  188. oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +3 -1
  189. oci/golden_gate/models/create_mongo_db_connection_details.py +209 -3
  190. oci/golden_gate/models/create_mysql_connection_details.py +5 -1
  191. oci/golden_gate/models/create_oci_object_storage_connection_details.py +43 -4
  192. oci/golden_gate/models/create_oracle_connection_details.py +5 -1
  193. oci/golden_gate/models/create_oracle_nosql_connection_details.py +43 -4
  194. oci/golden_gate/models/create_postgresql_connection_details.py +5 -1
  195. oci/golden_gate/models/create_redis_connection_details.py +11 -1
  196. oci/golden_gate/models/create_snowflake_connection_details.py +7 -1
  197. oci/golden_gate/models/databricks_connection.py +456 -0
  198. oci/golden_gate/models/databricks_connection_summary.py +418 -0
  199. oci/golden_gate/models/db2_connection.py +1 -1
  200. oci/golden_gate/models/db2_connection_summary.py +1 -1
  201. oci/golden_gate/models/deployment_type_summary.py +15 -3
  202. oci/golden_gate/models/elasticsearch_connection.py +1 -1
  203. oci/golden_gate/models/elasticsearch_connection_summary.py +1 -1
  204. oci/golden_gate/models/generic_connection.py +1 -1
  205. oci/golden_gate/models/generic_connection_summary.py +1 -1
  206. oci/golden_gate/models/golden_gate_connection.py +1 -1
  207. oci/golden_gate/models/golden_gate_connection_summary.py +1 -1
  208. oci/golden_gate/models/google_big_query_connection.py +1 -1
  209. oci/golden_gate/models/google_big_query_connection_summary.py +1 -1
  210. oci/golden_gate/models/google_cloud_storage_connection.py +1 -1
  211. oci/golden_gate/models/google_cloud_storage_connection_summary.py +1 -1
  212. oci/golden_gate/models/google_pub_sub_connection.py +271 -0
  213. oci/golden_gate/models/google_pub_sub_connection_summary.py +255 -0
  214. oci/golden_gate/models/hdfs_connection.py +1 -1
  215. oci/golden_gate/models/hdfs_connection_summary.py +1 -1
  216. oci/golden_gate/models/java_message_service_connection.py +1 -1
  217. oci/golden_gate/models/java_message_service_connection_summary.py +1 -1
  218. oci/golden_gate/models/kafka_connection.py +1 -1
  219. oci/golden_gate/models/kafka_connection_summary.py +1 -1
  220. oci/golden_gate/models/kafka_schema_registry_connection.py +1 -1
  221. oci/golden_gate/models/kafka_schema_registry_connection_summary.py +1 -1
  222. oci/golden_gate/models/microsoft_fabric_connection.py +372 -0
  223. oci/golden_gate/models/microsoft_fabric_connection_summary.py +352 -0
  224. oci/golden_gate/models/microsoft_sqlserver_connection.py +1 -1
  225. oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +1 -1
  226. oci/golden_gate/models/mongo_db_connection.py +141 -6
  227. oci/golden_gate/models/mongo_db_connection_summary.py +110 -3
  228. oci/golden_gate/models/mysql_connection.py +1 -1
  229. oci/golden_gate/models/mysql_connection_summary.py +1 -1
  230. oci/golden_gate/models/oci_object_storage_connection.py +38 -3
  231. oci/golden_gate/models/oci_object_storage_connection_summary.py +38 -3
  232. oci/golden_gate/models/oracle_connection.py +24 -4
  233. oci/golden_gate/models/oracle_connection_summary.py +1 -1
  234. oci/golden_gate/models/oracle_nosql_connection.py +38 -3
  235. oci/golden_gate/models/oracle_nosql_connection_summary.py +38 -3
  236. oci/golden_gate/models/postgresql_connection.py +8 -4
  237. oci/golden_gate/models/postgresql_connection_summary.py +1 -1
  238. oci/golden_gate/models/redis_connection.py +1 -1
  239. oci/golden_gate/models/redis_connection_summary.py +1 -1
  240. oci/golden_gate/models/snowflake_connection.py +1 -1
  241. oci/golden_gate/models/snowflake_connection_summary.py +1 -1
  242. oci/golden_gate/models/update_amazon_kinesis_connection_details.py +3 -1
  243. oci/golden_gate/models/update_amazon_redshift_connection_details.py +3 -1
  244. oci/golden_gate/models/update_amazon_s3_connection_details.py +3 -1
  245. oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +7 -1
  246. oci/golden_gate/models/update_azure_synapse_connection_details.py +3 -1
  247. oci/golden_gate/models/update_connection_details.py +46 -22
  248. oci/golden_gate/models/update_database_registration_details.py +4 -0
  249. oci/golden_gate/models/update_databricks_connection_details.py +392 -0
  250. oci/golden_gate/models/update_db2_connection_details.py +7 -1
  251. oci/golden_gate/models/update_elasticsearch_connection_details.py +3 -1
  252. oci/golden_gate/models/update_generic_connection_details.py +1 -1
  253. oci/golden_gate/models/update_golden_gate_connection_details.py +3 -1
  254. oci/golden_gate/models/update_google_big_query_connection_details.py +3 -1
  255. oci/golden_gate/models/update_google_cloud_storage_connection_details.py +3 -1
  256. oci/golden_gate/models/update_google_pub_sub_connection_details.py +196 -0
  257. oci/golden_gate/models/update_hdfs_connection_details.py +1 -1
  258. oci/golden_gate/models/update_java_message_service_connection_details.py +15 -1
  259. oci/golden_gate/models/update_kafka_connection_details.py +13 -1
  260. oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +13 -1
  261. oci/golden_gate/models/update_microsoft_fabric_connection_details.py +291 -0
  262. oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +3 -1
  263. oci/golden_gate/models/update_mongo_db_connection_details.py +209 -3
  264. oci/golden_gate/models/update_mysql_connection_details.py +5 -1
  265. oci/golden_gate/models/update_oci_object_storage_connection_details.py +42 -3
  266. oci/golden_gate/models/update_oracle_connection_details.py +5 -1
  267. oci/golden_gate/models/update_oracle_nosql_connection_details.py +42 -3
  268. oci/golden_gate/models/update_postgresql_connection_details.py +5 -1
  269. oci/golden_gate/models/update_redis_connection_details.py +11 -1
  270. oci/golden_gate/models/update_snowflake_connection_details.py +7 -1
  271. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  272. oci/governance_rules_control_plane/work_request_client.py +5 -5
  273. oci/healthchecks/health_checks_client.py +17 -17
  274. oci/identity/identity_client.py +145 -145
  275. oci/identity_data_plane/dataplane_client.py +2 -2
  276. oci/identity_domains/identity_domains_client.py +311 -311
  277. oci/integration/integration_instance_client.py +19 -19
  278. oci/jms/java_management_service_client.py +653 -75
  279. oci/jms/models/__init__.py +24 -0
  280. oci/jms/models/fleet_error_aggregation.py +119 -0
  281. oci/jms/models/fleet_error_aggregation_collection.py +72 -0
  282. oci/jms/models/fleet_error_aggregation_summary.py +103 -0
  283. oci/jms/models/fleet_error_collection.py +72 -0
  284. oci/jms/models/fleet_error_details.py +156 -0
  285. oci/jms/models/fleet_error_summary.py +235 -0
  286. oci/jms/models/generate_agent_installer_configuration_details.py +2 -2
  287. oci/jms/models/operating_system.py +31 -0
  288. oci/jms/models/plugin_error_aggregation.py +123 -0
  289. oci/jms/models/plugin_error_aggregation_collection.py +72 -0
  290. oci/jms/models/plugin_error_aggregation_summary.py +103 -0
  291. oci/jms/models/plugin_error_collection.py +72 -0
  292. oci/jms/models/plugin_error_details.py +160 -0
  293. oci/jms/models/plugin_error_summary.py +282 -0
  294. oci/jms_java_downloads/java_download_client.py +25 -25
  295. oci/key_management/ekm_client.py +5 -5
  296. oci/key_management/kms_crypto_client.py +6 -6
  297. oci/key_management/kms_hsm_cluster_client.py +12 -12
  298. oci/key_management/kms_management_client.py +21 -21
  299. oci/key_management/kms_vault_client.py +14 -14
  300. oci/license_manager/license_manager_client.py +18 -18
  301. oci/limits/limits_client.py +4 -4
  302. oci/limits/quotas_client.py +7 -7
  303. oci/load_balancer/load_balancer_client.py +61 -61
  304. oci/lockbox/lockbox_client.py +24 -24
  305. oci/log_analytics/log_analytics_client.py +193 -193
  306. oci/logging/logging_management_client.py +30 -30
  307. oci/loggingingestion/logging_client.py +1 -1
  308. oci/loggingsearch/log_search_client.py +1 -1
  309. oci/management_agent/management_agent_client.py +28 -28
  310. oci/management_dashboard/dashx_apis_client.py +14 -14
  311. oci/marketplace/account_client.py +2 -2
  312. oci/marketplace/marketplace_client.py +30 -30
  313. oci/marketplace_private_offer/attachment_client.py +5 -5
  314. oci/marketplace_private_offer/offer_client.py +6 -6
  315. oci/marketplace_publisher/attachment_client.py +5 -5
  316. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  317. oci/marketplace_publisher/offer_client.py +6 -6
  318. oci/media_services/media_services_client.py +60 -60
  319. oci/media_services/media_stream_client.py +2 -2
  320. oci/monitoring/monitoring_client.py +18 -18
  321. oci/mysql/channels_client.py +7 -7
  322. oci/mysql/db_backups_client.py +7 -7
  323. oci/mysql/db_system_client.py +17 -17
  324. oci/mysql/mysqlaas_client.py +7 -7
  325. oci/mysql/replicas_client.py +5 -5
  326. oci/mysql/work_requests_client.py +4 -4
  327. oci/network_firewall/network_firewall_client.py +86 -86
  328. oci/network_load_balancer/network_load_balancer_client.py +35 -35
  329. oci/nosql/nosql_client.py +24 -24
  330. oci/object_storage/object_storage_client.py +55 -55
  331. oci/oce/oce_instance_client.py +10 -10
  332. oci/oci_control_center/occ_metrics_client.py +3 -3
  333. oci/ocvp/cluster_client.py +5 -5
  334. oci/ocvp/esxi_host_client.py +8 -8
  335. oci/ocvp/sddc_client.py +14 -14
  336. oci/ocvp/work_request_client.py +4 -4
  337. oci/oda/management_client.py +59 -59
  338. oci/oda/oda_client.py +17 -17
  339. oci/oda/odapackage_client.py +7 -7
  340. oci/onesubscription/billing_schedule_client.py +1 -1
  341. oci/onesubscription/commitment_client.py +2 -2
  342. oci/onesubscription/computed_usage_client.py +3 -3
  343. oci/onesubscription/invoice_summary_client.py +2 -2
  344. oci/onesubscription/organization_subscription_client.py +1 -1
  345. oci/onesubscription/ratecard_client.py +1 -1
  346. oci/onesubscription/subscribed_service_client.py +2 -2
  347. oci/onesubscription/subscription_client.py +1 -1
  348. oci/ons/notification_control_plane_client.py +6 -6
  349. oci/ons/notification_data_plane_client.py +10 -10
  350. oci/opa/opa_instance_client.py +13 -13
  351. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  352. oci/opensearch/opensearch_cluster_client.py +16 -16
  353. oci/operator_access_control/access_requests_client.py +10 -10
  354. oci/operator_access_control/operator_actions_client.py +2 -2
  355. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  356. oci/operator_access_control/operator_control_client.py +6 -6
  357. oci/opsi/operations_insights_client.py +181 -181
  358. oci/optimizer/optimizer_client.py +26 -26
  359. oci/os_management/event_client.py +8 -8
  360. oci/os_management/os_management_client.py +69 -69
  361. oci/os_management_hub/event_client.py +8 -8
  362. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  363. oci/os_management_hub/managed_instance_client.py +31 -31
  364. oci/os_management_hub/managed_instance_group_client.py +25 -25
  365. oci/os_management_hub/management_station_client.py +10 -10
  366. oci/os_management_hub/onboarding_client.py +6 -6
  367. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  368. oci/os_management_hub/scheduled_job_client.py +7 -7
  369. oci/os_management_hub/software_source_client.py +27 -27
  370. oci/os_management_hub/work_request_client.py +4 -4
  371. oci/osp_gateway/address_rule_service_client.py +1 -1
  372. oci/osp_gateway/address_service_client.py +2 -2
  373. oci/osp_gateway/invoice_service_client.py +5 -5
  374. oci/osp_gateway/subscription_service_client.py +5 -5
  375. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  376. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  377. oci/osub_subscription/commitment_client.py +2 -2
  378. oci/osub_subscription/ratecard_client.py +1 -1
  379. oci/osub_subscription/subscription_client.py +1 -1
  380. oci/osub_usage/computed_usage_client.py +3 -3
  381. oci/psql/postgresql_client.py +33 -33
  382. oci/queue/queue_admin_client.py +11 -11
  383. oci/queue/queue_client.py +8 -8
  384. oci/recovery/database_recovery_client.py +26 -26
  385. oci/redis/redis_cluster_client.py +12 -12
  386. oci/resource_manager/resource_manager_client.py +52 -52
  387. oci/resource_scheduler/schedule_client.py +13 -13
  388. oci/resource_search/resource_search_client.py +3 -3
  389. oci/rover/rover_bundle_client.py +8 -8
  390. oci/rover/rover_cluster_client.py +8 -8
  391. oci/rover/rover_entitlement_client.py +6 -6
  392. oci/rover/rover_node_client.py +15 -15
  393. oci/rover/shape_client.py +1 -1
  394. oci/rover/work_requests_client.py +5 -5
  395. oci/sch/connector_plugins_client.py +2 -2
  396. oci/sch/service_connector_client.py +12 -12
  397. oci/secrets/secrets_client.py +3 -3
  398. oci/security_attribute/security_attribute_client.py +18 -18
  399. oci/service_catalog/service_catalog_client.py +26 -26
  400. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  401. oci/service_mesh/service_mesh_client.py +48 -48
  402. oci/stack_monitoring/models/__init__.py +42 -0
  403. oci/stack_monitoring/models/alarm_condition.py +588 -0
  404. oci/stack_monitoring/models/alarm_condition_collection.py +72 -0
  405. oci/stack_monitoring/models/alarm_condition_summary.py +588 -0
  406. oci/stack_monitoring/models/associated_monitored_resource.py +7 -3
  407. oci/stack_monitoring/models/associated_resources_summary.py +7 -3
  408. oci/stack_monitoring/models/condition.py +243 -0
  409. oci/stack_monitoring/models/create_alarm_condition_details.py +309 -0
  410. oci/stack_monitoring/models/create_license_auto_assign_config_details.py +7 -3
  411. oci/stack_monitoring/models/create_monitored_resource_details.py +7 -3
  412. oci/stack_monitoring/models/create_monitoring_template_details.py +406 -0
  413. oci/stack_monitoring/models/defined_alarm_condition.py +150 -0
  414. oci/stack_monitoring/models/defined_monitoring_template_collection.py +72 -0
  415. oci/stack_monitoring/models/defined_monitoring_template_summary.py +326 -0
  416. oci/stack_monitoring/models/discovery_details.py +7 -3
  417. oci/stack_monitoring/models/discovery_job_summary.py +7 -3
  418. oci/stack_monitoring/models/license_auto_assign_config_details.py +7 -3
  419. oci/stack_monitoring/models/license_auto_assign_config_summary.py +7 -3
  420. oci/stack_monitoring/models/manage_license_details.py +7 -3
  421. oci/stack_monitoring/models/member_reference.py +154 -0
  422. oci/stack_monitoring/models/metric_extension.py +2 -2
  423. oci/stack_monitoring/models/metric_extension_metric_aggregation_collection.py +72 -0
  424. oci/stack_monitoring/models/metric_extension_resource_aggregation.py +105 -0
  425. oci/stack_monitoring/models/metric_extension_resource_aggregation_collection.py +72 -0
  426. oci/stack_monitoring/models/metric_extensions_metric_aggregation.py +105 -0
  427. oci/stack_monitoring/models/monitored_resource.py +7 -3
  428. oci/stack_monitoring/models/monitored_resource_member_summary.py +7 -3
  429. oci/stack_monitoring/models/monitored_resource_summary.py +7 -3
  430. oci/stack_monitoring/models/monitored_resource_type.py +31 -0
  431. oci/stack_monitoring/models/monitored_resource_type_summary.py +31 -0
  432. oci/stack_monitoring/models/monitoring_template.py +743 -0
  433. oci/stack_monitoring/models/monitoring_template_collection.py +72 -0
  434. oci/stack_monitoring/models/monitoring_template_summary.py +599 -0
  435. oci/stack_monitoring/models/request_summarized_metric_extensions_metrics_details.py +263 -0
  436. oci/stack_monitoring/models/request_summarized_metric_extensions_resources_details.py +357 -0
  437. oci/stack_monitoring/models/search_monitored_resources_details.py +7 -3
  438. oci/stack_monitoring/models/system_format_resource_type_metadata_details.py +37 -2
  439. oci/stack_monitoring/models/update_alarm_condition_details.py +309 -0
  440. oci/stack_monitoring/models/update_license_auto_assign_config_details.py +7 -3
  441. oci/stack_monitoring/models/update_monitoring_template_details.py +375 -0
  442. oci/stack_monitoring/models/work_request.py +18 -6
  443. oci/stack_monitoring/models/work_request_summary.py +18 -6
  444. oci/stack_monitoring/stack_monitoring_client.py +2446 -446
  445. oci/stack_monitoring/stack_monitoring_client_composite_operations.py +331 -0
  446. oci/streaming/stream_admin_client.py +18 -18
  447. oci/streaming/stream_client.py +8 -8
  448. oci/tenant_manager_control_plane/domain_client.py +5 -5
  449. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  450. oci/tenant_manager_control_plane/governance_client.py +2 -2
  451. oci/tenant_manager_control_plane/link_client.py +3 -3
  452. oci/tenant_manager_control_plane/orders_client.py +2 -2
  453. oci/tenant_manager_control_plane/organization_client.py +10 -10
  454. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  455. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  456. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  457. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  458. oci/threat_intelligence/threatintel_client.py +5 -5
  459. oci/usage/resources_client.py +2 -2
  460. oci/usage/rewards_client.py +6 -6
  461. oci/usage/usagelimits_client.py +1 -1
  462. oci/usage_api/usageapi_client.py +33 -33
  463. oci/vault/vaults_client.py +13 -13
  464. oci/vbs_inst/vbs_instance_client.py +10 -10
  465. oci/version.py +1 -1
  466. oci/visual_builder/vb_instance_client.py +14 -14
  467. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  468. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  469. oci/waa/waa_client.py +13 -13
  470. oci/waa/work_request_client.py +4 -4
  471. oci/waas/redirect_client.py +6 -6
  472. oci/waas/waas_client.py +66 -66
  473. oci/waf/waf_client.py +24 -24
  474. oci/work_requests/work_request_client.py +4 -4
  475. oci/zpr/zpr_client.py +15 -15
  476. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/METADATA +1 -1
  477. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/RECORD +481 -432
  478. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/LICENSE.txt +0 -0
  479. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  480. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/WHEEL +0 -0
  481. {oci-2.144.0.dist-info → oci-2.145.0.dist-info}/top_level.txt +0 -0
@@ -116,6 +116,124 @@ class StackMonitoringClient(object):
116
116
  self.retry_strategy = kwargs.get('retry_strategy')
117
117
  self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
118
 
119
+ def apply_monitoring_template(self, monitoring_template_id, **kwargs):
120
+ """
121
+ Apply the Monitoring Template identified by the id
122
+
123
+
124
+ :param str monitoring_template_id: (required)
125
+ The `OCID`__ of the monitoring template.
126
+
127
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
128
+
129
+ :param str opc_request_id: (optional)
130
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
131
+ particular request, please provide the request ID.
132
+
133
+ :param str opc_retry_token: (optional)
134
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
135
+ server error without risk of executing that same action again. Retry tokens expire after 24
136
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
137
+ has been deleted and purged from the system, then a retry of the original creation request
138
+ might be rejected.
139
+
140
+ :param str if_match: (optional)
141
+ For optimistic concurrency control. In the PUT or DELETE call
142
+ for a resource, set the `if-match` parameter to the value of the
143
+ etag from a previous GET or POST response for that resource.
144
+ The resource will be updated or deleted only if the etag you
145
+ provide matches the resource's current etag value.
146
+
147
+ :param obj retry_strategy: (optional)
148
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
149
+
150
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
151
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
152
+
153
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
154
+
155
+ :param bool allow_control_chars: (optional)
156
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
157
+ By default, the response will not allow control characters in strings
158
+
159
+ :return: A :class:`~oci.response.Response` object with data of type None
160
+ :rtype: :class:`~oci.response.Response`
161
+
162
+ :example:
163
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/apply_monitoring_template.py.html>`__ to see an example of how to use apply_monitoring_template API.
164
+ """
165
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
166
+ required_arguments = ['monitoringTemplateId']
167
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/actions/apply"
168
+ method = "POST"
169
+ operation_name = "apply_monitoring_template"
170
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ApplyMonitoringTemplate"
171
+
172
+ # Don't accept unknown kwargs
173
+ expected_kwargs = [
174
+ "allow_control_chars",
175
+ "retry_strategy",
176
+ "opc_request_id",
177
+ "opc_retry_token",
178
+ "if_match"
179
+ ]
180
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
181
+ if extra_kwargs:
182
+ raise ValueError(
183
+ f"apply_monitoring_template got unknown kwargs: {extra_kwargs!r}")
184
+
185
+ path_params = {
186
+ "monitoringTemplateId": monitoring_template_id
187
+ }
188
+
189
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
190
+
191
+ for (k, v) in six.iteritems(path_params):
192
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
193
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
194
+
195
+ header_params = {
196
+ "accept": "application/json",
197
+ "content-type": "application/json",
198
+ "opc-request-id": kwargs.get("opc_request_id", missing),
199
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
200
+ "if-match": kwargs.get("if_match", missing)
201
+ }
202
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
203
+
204
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
205
+ operation_retry_strategy=kwargs.get('retry_strategy'),
206
+ client_retry_strategy=self.retry_strategy
207
+ )
208
+ if retry_strategy is None:
209
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
210
+
211
+ if retry_strategy:
212
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
213
+ self.base_client.add_opc_retry_token_if_needed(header_params)
214
+ self.base_client.add_opc_client_retries_header(header_params)
215
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
216
+ return retry_strategy.make_retrying_call(
217
+ self.base_client.call_api,
218
+ resource_path=resource_path,
219
+ method=method,
220
+ path_params=path_params,
221
+ header_params=header_params,
222
+ allow_control_chars=kwargs.get('allow_control_chars'),
223
+ operation_name=operation_name,
224
+ api_reference_link=api_reference_link,
225
+ required_arguments=required_arguments)
226
+ else:
227
+ return self.base_client.call_api(
228
+ resource_path=resource_path,
229
+ method=method,
230
+ path_params=path_params,
231
+ header_params=header_params,
232
+ allow_control_chars=kwargs.get('allow_control_chars'),
233
+ operation_name=operation_name,
234
+ api_reference_link=api_reference_link,
235
+ required_arguments=required_arguments)
236
+
119
237
  def associate_monitored_resources(self, associate_monitored_resources_details, **kwargs):
120
238
  """
121
239
  Create an association between two monitored resources. Associations can be created
@@ -160,7 +278,7 @@ class StackMonitoringClient(object):
160
278
  :rtype: :class:`~oci.response.Response`
161
279
 
162
280
  :example:
163
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/associate_monitored_resources.py.html>`__ to see an example of how to use associate_monitored_resources API.
281
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/associate_monitored_resources.py.html>`__ to see an example of how to use associate_monitored_resources API.
164
282
  """
165
283
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
166
284
  required_arguments = []
@@ -279,7 +397,7 @@ class StackMonitoringClient(object):
279
397
  :rtype: :class:`~oci.response.Response`
280
398
 
281
399
  :example:
282
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/change_config_compartment.py.html>`__ to see an example of how to use change_config_compartment API.
400
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/change_config_compartment.py.html>`__ to see an example of how to use change_config_compartment API.
283
401
  """
284
402
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
285
403
  required_arguments = ['configId']
@@ -403,7 +521,7 @@ class StackMonitoringClient(object):
403
521
  :rtype: :class:`~oci.response.Response`
404
522
 
405
523
  :example:
406
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/change_metric_extension_compartment.py.html>`__ to see an example of how to use change_metric_extension_compartment API.
524
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/change_metric_extension_compartment.py.html>`__ to see an example of how to use change_metric_extension_compartment API.
407
525
  """
408
526
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
409
527
  required_arguments = ['metricExtensionId']
@@ -525,7 +643,7 @@ class StackMonitoringClient(object):
525
643
  :rtype: :class:`~oci.response.Response`
526
644
 
527
645
  :example:
528
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/change_monitored_resource_compartment.py.html>`__ to see an example of how to use change_monitored_resource_compartment API.
646
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/change_monitored_resource_compartment.py.html>`__ to see an example of how to use change_monitored_resource_compartment API.
529
647
  """
530
648
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
531
649
  required_arguments = ['monitoredResourceId']
@@ -646,7 +764,7 @@ class StackMonitoringClient(object):
646
764
  :rtype: :class:`~oci.response.Response`
647
765
 
648
766
  :example:
649
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/change_monitored_resource_task_compartment.py.html>`__ to see an example of how to use change_monitored_resource_task_compartment API.
767
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/change_monitored_resource_task_compartment.py.html>`__ to see an example of how to use change_monitored_resource_task_compartment API.
650
768
  """
651
769
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
652
770
  required_arguments = ['monitoredResourceTaskId']
@@ -767,7 +885,7 @@ class StackMonitoringClient(object):
767
885
  :rtype: :class:`~oci.response.Response`
768
886
 
769
887
  :example:
770
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/change_process_set_compartment.py.html>`__ to see an example of how to use change_process_set_compartment API.
888
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/change_process_set_compartment.py.html>`__ to see an example of how to use change_process_set_compartment API.
771
889
  """
772
890
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
773
891
  required_arguments = ['processSetId']
@@ -843,6 +961,122 @@ class StackMonitoringClient(object):
843
961
  api_reference_link=api_reference_link,
844
962
  required_arguments=required_arguments)
845
963
 
964
+ def create_alarm_condition(self, create_alarm_condition_details, monitoring_template_id, **kwargs):
965
+ """
966
+ Create a new alarm condition in same monitoringTemplate compartment.
967
+
968
+
969
+ :param oci.stack_monitoring.models.CreateAlarmConditionDetails create_alarm_condition_details: (required)
970
+ Details required for creating a new alarm condition
971
+
972
+ :param str monitoring_template_id: (required)
973
+ The `OCID`__ of the monitoring template.
974
+
975
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
976
+
977
+ :param str opc_retry_token: (optional)
978
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
979
+ server error without risk of executing that same action again. Retry tokens expire after 24
980
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
981
+ has been deleted and purged from the system, then a retry of the original creation request
982
+ might be rejected.
983
+
984
+ :param str opc_request_id: (optional)
985
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
986
+ particular request, please provide the request ID.
987
+
988
+ :param obj retry_strategy: (optional)
989
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
990
+
991
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
992
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
993
+
994
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
995
+
996
+ :param bool allow_control_chars: (optional)
997
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
998
+ By default, the response will not allow control characters in strings
999
+
1000
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.AlarmCondition`
1001
+ :rtype: :class:`~oci.response.Response`
1002
+
1003
+ :example:
1004
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_alarm_condition.py.html>`__ to see an example of how to use create_alarm_condition API.
1005
+ """
1006
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1007
+ required_arguments = ['monitoringTemplateId']
1008
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/alarmConditions"
1009
+ method = "POST"
1010
+ operation_name = "create_alarm_condition"
1011
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/CreateAlarmCondition"
1012
+
1013
+ # Don't accept unknown kwargs
1014
+ expected_kwargs = [
1015
+ "allow_control_chars",
1016
+ "retry_strategy",
1017
+ "opc_retry_token",
1018
+ "opc_request_id"
1019
+ ]
1020
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1021
+ if extra_kwargs:
1022
+ raise ValueError(
1023
+ f"create_alarm_condition got unknown kwargs: {extra_kwargs!r}")
1024
+
1025
+ path_params = {
1026
+ "monitoringTemplateId": monitoring_template_id
1027
+ }
1028
+
1029
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1030
+
1031
+ for (k, v) in six.iteritems(path_params):
1032
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1033
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1034
+
1035
+ header_params = {
1036
+ "accept": "application/json",
1037
+ "content-type": "application/json",
1038
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
1039
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1040
+ }
1041
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1042
+
1043
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1044
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1045
+ client_retry_strategy=self.retry_strategy
1046
+ )
1047
+ if retry_strategy is None:
1048
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1049
+
1050
+ if retry_strategy:
1051
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1052
+ self.base_client.add_opc_retry_token_if_needed(header_params)
1053
+ self.base_client.add_opc_client_retries_header(header_params)
1054
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1055
+ return retry_strategy.make_retrying_call(
1056
+ self.base_client.call_api,
1057
+ resource_path=resource_path,
1058
+ method=method,
1059
+ path_params=path_params,
1060
+ header_params=header_params,
1061
+ body=create_alarm_condition_details,
1062
+ response_type="AlarmCondition",
1063
+ allow_control_chars=kwargs.get('allow_control_chars'),
1064
+ operation_name=operation_name,
1065
+ api_reference_link=api_reference_link,
1066
+ required_arguments=required_arguments)
1067
+ else:
1068
+ return self.base_client.call_api(
1069
+ resource_path=resource_path,
1070
+ method=method,
1071
+ path_params=path_params,
1072
+ header_params=header_params,
1073
+ body=create_alarm_condition_details,
1074
+ response_type="AlarmCondition",
1075
+ allow_control_chars=kwargs.get('allow_control_chars'),
1076
+ operation_name=operation_name,
1077
+ api_reference_link=api_reference_link,
1078
+ required_arguments=required_arguments)
1079
+
846
1080
  def create_baselineable_metric(self, create_baselineable_metric_details, **kwargs):
847
1081
  """
848
1082
  Creates the specified Baseline-able metric
@@ -878,7 +1112,7 @@ class StackMonitoringClient(object):
878
1112
  :rtype: :class:`~oci.response.Response`
879
1113
 
880
1114
  :example:
881
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_baselineable_metric.py.html>`__ to see an example of how to use create_baselineable_metric API.
1115
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_baselineable_metric.py.html>`__ to see an example of how to use create_baselineable_metric API.
882
1116
  """
883
1117
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
884
1118
  required_arguments = []
@@ -983,7 +1217,7 @@ class StackMonitoringClient(object):
983
1217
  :rtype: :class:`~oci.response.Response`
984
1218
 
985
1219
  :example:
986
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_config.py.html>`__ to see an example of how to use create_config API.
1220
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_config.py.html>`__ to see an example of how to use create_config API.
987
1221
  """
988
1222
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
989
1223
  required_arguments = []
@@ -1082,7 +1316,7 @@ class StackMonitoringClient(object):
1082
1316
  :rtype: :class:`~oci.response.Response`
1083
1317
 
1084
1318
  :example:
1085
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_discovery_job.py.html>`__ to see an example of how to use create_discovery_job API.
1319
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_discovery_job.py.html>`__ to see an example of how to use create_discovery_job API.
1086
1320
  """
1087
1321
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1088
1322
  required_arguments = []
@@ -1180,7 +1414,7 @@ class StackMonitoringClient(object):
1180
1414
  :rtype: :class:`~oci.response.Response`
1181
1415
 
1182
1416
  :example:
1183
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_maintenance_window.py.html>`__ to see an example of how to use create_maintenance_window API.
1417
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_maintenance_window.py.html>`__ to see an example of how to use create_maintenance_window API.
1184
1418
  """
1185
1419
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1186
1420
  required_arguments = []
@@ -1279,7 +1513,7 @@ class StackMonitoringClient(object):
1279
1513
  :rtype: :class:`~oci.response.Response`
1280
1514
 
1281
1515
  :example:
1282
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_metric_extension.py.html>`__ to see an example of how to use create_metric_extension API.
1516
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_metric_extension.py.html>`__ to see an example of how to use create_metric_extension API.
1283
1517
  """
1284
1518
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1285
1519
  required_arguments = []
@@ -1384,7 +1618,7 @@ class StackMonitoringClient(object):
1384
1618
  :rtype: :class:`~oci.response.Response`
1385
1619
 
1386
1620
  :example:
1387
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_monitored_resource.py.html>`__ to see an example of how to use create_monitored_resource API.
1621
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_monitored_resource.py.html>`__ to see an example of how to use create_monitored_resource API.
1388
1622
  """
1389
1623
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1390
1624
  required_arguments = []
@@ -1483,7 +1717,7 @@ class StackMonitoringClient(object):
1483
1717
  :rtype: :class:`~oci.response.Response`
1484
1718
 
1485
1719
  :example:
1486
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_monitored_resource_task.py.html>`__ to see an example of how to use create_monitored_resource_task API.
1720
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_monitored_resource_task.py.html>`__ to see an example of how to use create_monitored_resource_task API.
1487
1721
  """
1488
1722
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1489
1723
  required_arguments = []
@@ -1582,7 +1816,7 @@ class StackMonitoringClient(object):
1582
1816
  :rtype: :class:`~oci.response.Response`
1583
1817
 
1584
1818
  :example:
1585
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_monitored_resource_type.py.html>`__ to see an example of how to use create_monitored_resource_type API.
1819
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_monitored_resource_type.py.html>`__ to see an example of how to use create_monitored_resource_type API.
1586
1820
  """
1587
1821
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1588
1822
  required_arguments = []
@@ -1646,17 +1880,13 @@ class StackMonitoringClient(object):
1646
1880
  api_reference_link=api_reference_link,
1647
1881
  required_arguments=required_arguments)
1648
1882
 
1649
- def create_process_set(self, create_process_set_details, **kwargs):
1883
+ def create_monitoring_template(self, create_monitoring_template_details, **kwargs):
1650
1884
  """
1651
- API to create Process Set.
1652
-
1885
+ Creates a new monitoring template for a given compartment.
1653
1886
 
1654
- :param oci.stack_monitoring.models.CreateProcessSetDetails create_process_set_details: (required)
1655
- Summary of process set details.
1656
1887
 
1657
- :param str opc_request_id: (optional)
1658
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1659
- particular request, please provide the request ID.
1888
+ :param oci.stack_monitoring.models.CreateMonitoringTemplateDetails create_monitoring_template_details: (required)
1889
+ Details required for creating a new monitoring template.
1660
1890
 
1661
1891
  :param str opc_retry_token: (optional)
1662
1892
  A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -1665,6 +1895,10 @@ class StackMonitoringClient(object):
1665
1895
  has been deleted and purged from the system, then a retry of the original creation request
1666
1896
  might be rejected.
1667
1897
 
1898
+ :param str opc_request_id: (optional)
1899
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1900
+ particular request, please provide the request ID.
1901
+
1668
1902
  :param obj retry_strategy: (optional)
1669
1903
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1670
1904
 
@@ -1677,36 +1911,36 @@ class StackMonitoringClient(object):
1677
1911
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1678
1912
  By default, the response will not allow control characters in strings
1679
1913
 
1680
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ProcessSet`
1914
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoringTemplate`
1681
1915
  :rtype: :class:`~oci.response.Response`
1682
1916
 
1683
1917
  :example:
1684
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/create_process_set.py.html>`__ to see an example of how to use create_process_set API.
1918
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_monitoring_template.py.html>`__ to see an example of how to use create_monitoring_template API.
1685
1919
  """
1686
1920
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1687
1921
  required_arguments = []
1688
- resource_path = "/processSets"
1922
+ resource_path = "/monitoringTemplates"
1689
1923
  method = "POST"
1690
- operation_name = "create_process_set"
1691
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/CreateProcessSet"
1924
+ operation_name = "create_monitoring_template"
1925
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/CreateMonitoringTemplate"
1692
1926
 
1693
1927
  # Don't accept unknown kwargs
1694
1928
  expected_kwargs = [
1695
1929
  "allow_control_chars",
1696
1930
  "retry_strategy",
1697
- "opc_request_id",
1698
- "opc_retry_token"
1931
+ "opc_retry_token",
1932
+ "opc_request_id"
1699
1933
  ]
1700
1934
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1701
1935
  if extra_kwargs:
1702
1936
  raise ValueError(
1703
- f"create_process_set got unknown kwargs: {extra_kwargs!r}")
1937
+ f"create_monitoring_template got unknown kwargs: {extra_kwargs!r}")
1704
1938
 
1705
1939
  header_params = {
1706
1940
  "accept": "application/json",
1707
1941
  "content-type": "application/json",
1708
- "opc-request-id": kwargs.get("opc_request_id", missing),
1709
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
1942
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
1943
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1710
1944
  }
1711
1945
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1712
1946
 
@@ -1727,8 +1961,8 @@ class StackMonitoringClient(object):
1727
1961
  resource_path=resource_path,
1728
1962
  method=method,
1729
1963
  header_params=header_params,
1730
- body=create_process_set_details,
1731
- response_type="ProcessSet",
1964
+ body=create_monitoring_template_details,
1965
+ response_type="MonitoringTemplate",
1732
1966
  allow_control_chars=kwargs.get('allow_control_chars'),
1733
1967
  operation_name=operation_name,
1734
1968
  api_reference_link=api_reference_link,
@@ -1738,31 +1972,31 @@ class StackMonitoringClient(object):
1738
1972
  resource_path=resource_path,
1739
1973
  method=method,
1740
1974
  header_params=header_params,
1741
- body=create_process_set_details,
1742
- response_type="ProcessSet",
1975
+ body=create_monitoring_template_details,
1976
+ response_type="MonitoringTemplate",
1743
1977
  allow_control_chars=kwargs.get('allow_control_chars'),
1744
1978
  operation_name=operation_name,
1745
1979
  api_reference_link=api_reference_link,
1746
1980
  required_arguments=required_arguments)
1747
1981
 
1748
- def delete_baselineable_metric(self, baselineable_metric_id, **kwargs):
1982
+ def create_process_set(self, create_process_set_details, **kwargs):
1749
1983
  """
1750
- Deletes the Baseline-able metric for the given id
1984
+ API to create Process Set.
1751
1985
 
1752
1986
 
1753
- :param str baselineable_metric_id: (required)
1754
- Identifier for the metric
1987
+ :param oci.stack_monitoring.models.CreateProcessSetDetails create_process_set_details: (required)
1988
+ Summary of process set details.
1755
1989
 
1756
1990
  :param str opc_request_id: (optional)
1757
1991
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
1758
1992
  particular request, please provide the request ID.
1759
1993
 
1760
- :param str if_match: (optional)
1761
- For optimistic concurrency control. In the PUT or DELETE call
1762
- for a resource, set the `if-match` parameter to the value of the
1763
- etag from a previous GET or POST response for that resource.
1764
- The resource will be updated or deleted only if the etag you
1765
- provide matches the resource's current etag value.
1994
+ :param str opc_retry_token: (optional)
1995
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
1996
+ server error without risk of executing that same action again. Retry tokens expire after 24
1997
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1998
+ has been deleted and purged from the system, then a retry of the original creation request
1999
+ might be rejected.
1766
2000
 
1767
2001
  :param obj retry_strategy: (optional)
1768
2002
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -1776,11 +2010,222 @@ class StackMonitoringClient(object):
1776
2010
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1777
2011
  By default, the response will not allow control characters in strings
1778
2012
 
1779
- :return: A :class:`~oci.response.Response` object with data of type None
2013
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ProcessSet`
1780
2014
  :rtype: :class:`~oci.response.Response`
1781
2015
 
1782
2016
  :example:
1783
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_baselineable_metric.py.html>`__ to see an example of how to use delete_baselineable_metric API.
2017
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/create_process_set.py.html>`__ to see an example of how to use create_process_set API.
2018
+ """
2019
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2020
+ required_arguments = []
2021
+ resource_path = "/processSets"
2022
+ method = "POST"
2023
+ operation_name = "create_process_set"
2024
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/CreateProcessSet"
2025
+
2026
+ # Don't accept unknown kwargs
2027
+ expected_kwargs = [
2028
+ "allow_control_chars",
2029
+ "retry_strategy",
2030
+ "opc_request_id",
2031
+ "opc_retry_token"
2032
+ ]
2033
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2034
+ if extra_kwargs:
2035
+ raise ValueError(
2036
+ f"create_process_set got unknown kwargs: {extra_kwargs!r}")
2037
+
2038
+ header_params = {
2039
+ "accept": "application/json",
2040
+ "content-type": "application/json",
2041
+ "opc-request-id": kwargs.get("opc_request_id", missing),
2042
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
2043
+ }
2044
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2045
+
2046
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2047
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2048
+ client_retry_strategy=self.retry_strategy
2049
+ )
2050
+ if retry_strategy is None:
2051
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2052
+
2053
+ if retry_strategy:
2054
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2055
+ self.base_client.add_opc_retry_token_if_needed(header_params)
2056
+ self.base_client.add_opc_client_retries_header(header_params)
2057
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2058
+ return retry_strategy.make_retrying_call(
2059
+ self.base_client.call_api,
2060
+ resource_path=resource_path,
2061
+ method=method,
2062
+ header_params=header_params,
2063
+ body=create_process_set_details,
2064
+ response_type="ProcessSet",
2065
+ allow_control_chars=kwargs.get('allow_control_chars'),
2066
+ operation_name=operation_name,
2067
+ api_reference_link=api_reference_link,
2068
+ required_arguments=required_arguments)
2069
+ else:
2070
+ return self.base_client.call_api(
2071
+ resource_path=resource_path,
2072
+ method=method,
2073
+ header_params=header_params,
2074
+ body=create_process_set_details,
2075
+ response_type="ProcessSet",
2076
+ allow_control_chars=kwargs.get('allow_control_chars'),
2077
+ operation_name=operation_name,
2078
+ api_reference_link=api_reference_link,
2079
+ required_arguments=required_arguments)
2080
+
2081
+ def delete_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwargs):
2082
+ """
2083
+ Deletes the alarm conditions by identifier
2084
+
2085
+
2086
+ :param str alarm_condition_id: (required)
2087
+ The `OCID`__ of the alarm condition.
2088
+
2089
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
2090
+
2091
+ :param str monitoring_template_id: (required)
2092
+ The `OCID`__ of the monitoring template.
2093
+
2094
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
2095
+
2096
+ :param str if_match: (optional)
2097
+ For optimistic concurrency control. In the PUT or DELETE call
2098
+ for a resource, set the `if-match` parameter to the value of the
2099
+ etag from a previous GET or POST response for that resource.
2100
+ The resource will be updated or deleted only if the etag you
2101
+ provide matches the resource's current etag value.
2102
+
2103
+ :param str opc_request_id: (optional)
2104
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2105
+ particular request, please provide the request ID.
2106
+
2107
+ :param obj retry_strategy: (optional)
2108
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2109
+
2110
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2111
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2112
+
2113
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2114
+
2115
+ :param bool allow_control_chars: (optional)
2116
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2117
+ By default, the response will not allow control characters in strings
2118
+
2119
+ :return: A :class:`~oci.response.Response` object with data of type None
2120
+ :rtype: :class:`~oci.response.Response`
2121
+
2122
+ :example:
2123
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_alarm_condition.py.html>`__ to see an example of how to use delete_alarm_condition API.
2124
+ """
2125
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2126
+ required_arguments = ['alarmConditionId', 'monitoringTemplateId']
2127
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}"
2128
+ method = "DELETE"
2129
+ operation_name = "delete_alarm_condition"
2130
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/DeleteAlarmCondition"
2131
+
2132
+ # Don't accept unknown kwargs
2133
+ expected_kwargs = [
2134
+ "allow_control_chars",
2135
+ "retry_strategy",
2136
+ "if_match",
2137
+ "opc_request_id"
2138
+ ]
2139
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2140
+ if extra_kwargs:
2141
+ raise ValueError(
2142
+ f"delete_alarm_condition got unknown kwargs: {extra_kwargs!r}")
2143
+
2144
+ path_params = {
2145
+ "alarmConditionId": alarm_condition_id,
2146
+ "monitoringTemplateId": monitoring_template_id
2147
+ }
2148
+
2149
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2150
+
2151
+ for (k, v) in six.iteritems(path_params):
2152
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2153
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2154
+
2155
+ header_params = {
2156
+ "accept": "application/json",
2157
+ "content-type": "application/json",
2158
+ "if-match": kwargs.get("if_match", missing),
2159
+ "opc-request-id": kwargs.get("opc_request_id", missing)
2160
+ }
2161
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2162
+
2163
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2164
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2165
+ client_retry_strategy=self.retry_strategy
2166
+ )
2167
+
2168
+ if retry_strategy:
2169
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2170
+ self.base_client.add_opc_client_retries_header(header_params)
2171
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2172
+ return retry_strategy.make_retrying_call(
2173
+ self.base_client.call_api,
2174
+ resource_path=resource_path,
2175
+ method=method,
2176
+ path_params=path_params,
2177
+ header_params=header_params,
2178
+ allow_control_chars=kwargs.get('allow_control_chars'),
2179
+ operation_name=operation_name,
2180
+ api_reference_link=api_reference_link,
2181
+ required_arguments=required_arguments)
2182
+ else:
2183
+ return self.base_client.call_api(
2184
+ resource_path=resource_path,
2185
+ method=method,
2186
+ path_params=path_params,
2187
+ header_params=header_params,
2188
+ allow_control_chars=kwargs.get('allow_control_chars'),
2189
+ operation_name=operation_name,
2190
+ api_reference_link=api_reference_link,
2191
+ required_arguments=required_arguments)
2192
+
2193
+ def delete_baselineable_metric(self, baselineable_metric_id, **kwargs):
2194
+ """
2195
+ Deletes the Baseline-able metric for the given id
2196
+
2197
+
2198
+ :param str baselineable_metric_id: (required)
2199
+ Identifier for the metric
2200
+
2201
+ :param str opc_request_id: (optional)
2202
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2203
+ particular request, please provide the request ID.
2204
+
2205
+ :param str if_match: (optional)
2206
+ For optimistic concurrency control. In the PUT or DELETE call
2207
+ for a resource, set the `if-match` parameter to the value of the
2208
+ etag from a previous GET or POST response for that resource.
2209
+ The resource will be updated or deleted only if the etag you
2210
+ provide matches the resource's current etag value.
2211
+
2212
+ :param obj retry_strategy: (optional)
2213
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2214
+
2215
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
2216
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2217
+
2218
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2219
+
2220
+ :param bool allow_control_chars: (optional)
2221
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2222
+ By default, the response will not allow control characters in strings
2223
+
2224
+ :return: A :class:`~oci.response.Response` object with data of type None
2225
+ :rtype: :class:`~oci.response.Response`
2226
+
2227
+ :example:
2228
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_baselineable_metric.py.html>`__ to see an example of how to use delete_baselineable_metric API.
1784
2229
  """
1785
2230
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1786
2231
  required_arguments = ['baselineableMetricId']
@@ -1886,7 +2331,7 @@ class StackMonitoringClient(object):
1886
2331
  :rtype: :class:`~oci.response.Response`
1887
2332
 
1888
2333
  :example:
1889
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_config.py.html>`__ to see an example of how to use delete_config API.
2334
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_config.py.html>`__ to see an example of how to use delete_config API.
1890
2335
  """
1891
2336
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1892
2337
  required_arguments = ['configId']
@@ -1992,7 +2437,7 @@ class StackMonitoringClient(object):
1992
2437
  :rtype: :class:`~oci.response.Response`
1993
2438
 
1994
2439
  :example:
1995
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_discovery_job.py.html>`__ to see an example of how to use delete_discovery_job API.
2440
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_discovery_job.py.html>`__ to see an example of how to use delete_discovery_job API.
1996
2441
  """
1997
2442
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1998
2443
  required_arguments = ['discoveryJobId']
@@ -2100,7 +2545,7 @@ class StackMonitoringClient(object):
2100
2545
  :rtype: :class:`~oci.response.Response`
2101
2546
 
2102
2547
  :example:
2103
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_maintenance_window.py.html>`__ to see an example of how to use delete_maintenance_window API.
2548
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_maintenance_window.py.html>`__ to see an example of how to use delete_maintenance_window API.
2104
2549
  """
2105
2550
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2106
2551
  required_arguments = ['maintenanceWindowId']
@@ -2206,7 +2651,7 @@ class StackMonitoringClient(object):
2206
2651
  :rtype: :class:`~oci.response.Response`
2207
2652
 
2208
2653
  :example:
2209
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_metric_extension.py.html>`__ to see an example of how to use delete_metric_extension API.
2654
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_metric_extension.py.html>`__ to see an example of how to use delete_metric_extension API.
2210
2655
  """
2211
2656
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2212
2657
  required_arguments = ['metricExtensionId']
@@ -2321,7 +2766,7 @@ class StackMonitoringClient(object):
2321
2766
  :rtype: :class:`~oci.response.Response`
2322
2767
 
2323
2768
  :example:
2324
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_monitored_resource.py.html>`__ to see an example of how to use delete_monitored_resource API.
2769
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_monitored_resource.py.html>`__ to see an example of how to use delete_monitored_resource API.
2325
2770
  """
2326
2771
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2327
2772
  required_arguments = ['monitoredResourceId']
@@ -2437,7 +2882,7 @@ class StackMonitoringClient(object):
2437
2882
  :rtype: :class:`~oci.response.Response`
2438
2883
 
2439
2884
  :example:
2440
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_monitored_resource_type.py.html>`__ to see an example of how to use delete_monitored_resource_type API.
2885
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_monitored_resource_type.py.html>`__ to see an example of how to use delete_monitored_resource_type API.
2441
2886
  """
2442
2887
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2443
2888
  required_arguments = ['monitoredResourceTypeId']
@@ -2506,13 +2951,15 @@ class StackMonitoringClient(object):
2506
2951
  api_reference_link=api_reference_link,
2507
2952
  required_arguments=required_arguments)
2508
2953
 
2509
- def delete_process_set(self, process_set_id, **kwargs):
2954
+ def delete_monitoring_template(self, monitoring_template_id, **kwargs):
2510
2955
  """
2511
- Deletes a Process Set
2956
+ Deletes the monitoring template by identifier
2512
2957
 
2513
2958
 
2514
- :param str process_set_id: (required)
2515
- The Process Set ID
2959
+ :param str monitoring_template_id: (required)
2960
+ The `OCID`__ of the monitoring template.
2961
+
2962
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
2516
2963
 
2517
2964
  :param str if_match: (optional)
2518
2965
  For optimistic concurrency control. In the PUT or DELETE call
@@ -2528,7 +2975,7 @@ class StackMonitoringClient(object):
2528
2975
  :param obj retry_strategy: (optional)
2529
2976
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2530
2977
 
2531
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
2978
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
2532
2979
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2533
2980
 
2534
2981
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -2541,14 +2988,14 @@ class StackMonitoringClient(object):
2541
2988
  :rtype: :class:`~oci.response.Response`
2542
2989
 
2543
2990
  :example:
2544
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/delete_process_set.py.html>`__ to see an example of how to use delete_process_set API.
2991
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_monitoring_template.py.html>`__ to see an example of how to use delete_monitoring_template API.
2545
2992
  """
2546
2993
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2547
- required_arguments = ['processSetId']
2548
- resource_path = "/processSets/{processSetId}"
2994
+ required_arguments = ['monitoringTemplateId']
2995
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}"
2549
2996
  method = "DELETE"
2550
- operation_name = "delete_process_set"
2551
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/DeleteProcessSet"
2997
+ operation_name = "delete_monitoring_template"
2998
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/DeleteMonitoringTemplate"
2552
2999
 
2553
3000
  # Don't accept unknown kwargs
2554
3001
  expected_kwargs = [
@@ -2560,10 +3007,10 @@ class StackMonitoringClient(object):
2560
3007
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2561
3008
  if extra_kwargs:
2562
3009
  raise ValueError(
2563
- f"delete_process_set got unknown kwargs: {extra_kwargs!r}")
3010
+ f"delete_monitoring_template got unknown kwargs: {extra_kwargs!r}")
2564
3011
 
2565
3012
  path_params = {
2566
- "processSetId": process_set_id
3013
+ "monitoringTemplateId": monitoring_template_id
2567
3014
  }
2568
3015
 
2569
3016
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2584,8 +3031,6 @@ class StackMonitoringClient(object):
2584
3031
  operation_retry_strategy=kwargs.get('retry_strategy'),
2585
3032
  client_retry_strategy=self.retry_strategy
2586
3033
  )
2587
- if retry_strategy is None:
2588
- retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2589
3034
 
2590
3035
  if retry_strategy:
2591
3036
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
@@ -2612,27 +3057,13 @@ class StackMonitoringClient(object):
2612
3057
  api_reference_link=api_reference_link,
2613
3058
  required_arguments=required_arguments)
2614
3059
 
2615
- def disable_external_database(self, monitored_resource_id, **kwargs):
3060
+ def delete_process_set(self, process_set_id, **kwargs):
2616
3061
  """
2617
- Disable external database resource monitoring. All the references in DBaaS,
2618
- DBM and resource service will be deleted as part of this operation.
2619
-
2620
-
2621
- :param str monitored_resource_id: (required)
2622
- The `OCID`__ of monitored resource.
2623
-
2624
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
3062
+ Deletes a Process Set
2625
3063
 
2626
- :param str opc_retry_token: (optional)
2627
- A token that uniquely identifies a request so it can be retried in case of a timeout or
2628
- server error without risk of executing that same action again. Retry tokens expire after 24
2629
- hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2630
- has been deleted and purged from the system, then a retry of the original creation request
2631
- might be rejected.
2632
3064
 
2633
- :param str opc_request_id: (optional)
2634
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
2635
- particular request, please provide the request ID.
3065
+ :param str process_set_id: (required)
3066
+ The Process Set ID
2636
3067
 
2637
3068
  :param str if_match: (optional)
2638
3069
  For optimistic concurrency control. In the PUT or DELETE call
@@ -2641,10 +3072,14 @@ class StackMonitoringClient(object):
2641
3072
  The resource will be updated or deleted only if the etag you
2642
3073
  provide matches the resource's current etag value.
2643
3074
 
3075
+ :param str opc_request_id: (optional)
3076
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
3077
+ particular request, please provide the request ID.
3078
+
2644
3079
  :param obj retry_strategy: (optional)
2645
3080
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2646
3081
 
2647
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
3082
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
2648
3083
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2649
3084
 
2650
3085
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -2657,27 +3092,143 @@ class StackMonitoringClient(object):
2657
3092
  :rtype: :class:`~oci.response.Response`
2658
3093
 
2659
3094
  :example:
2660
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/disable_external_database.py.html>`__ to see an example of how to use disable_external_database API.
3095
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/delete_process_set.py.html>`__ to see an example of how to use delete_process_set API.
2661
3096
  """
2662
3097
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2663
- required_arguments = ['monitoredResourceId']
2664
- resource_path = "/monitoredResources/{monitoredResourceId}/actions/disableExternalDatabase"
2665
- method = "POST"
2666
- operation_name = "disable_external_database"
2667
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/DisableExternalDatabase"
3098
+ required_arguments = ['processSetId']
3099
+ resource_path = "/processSets/{processSetId}"
3100
+ method = "DELETE"
3101
+ operation_name = "delete_process_set"
3102
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/DeleteProcessSet"
2668
3103
 
2669
3104
  # Don't accept unknown kwargs
2670
3105
  expected_kwargs = [
2671
3106
  "allow_control_chars",
2672
3107
  "retry_strategy",
2673
- "opc_retry_token",
2674
- "opc_request_id",
2675
- "if_match"
3108
+ "if_match",
3109
+ "opc_request_id"
2676
3110
  ]
2677
3111
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2678
3112
  if extra_kwargs:
2679
3113
  raise ValueError(
2680
- f"disable_external_database got unknown kwargs: {extra_kwargs!r}")
3114
+ f"delete_process_set got unknown kwargs: {extra_kwargs!r}")
3115
+
3116
+ path_params = {
3117
+ "processSetId": process_set_id
3118
+ }
3119
+
3120
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
3121
+
3122
+ for (k, v) in six.iteritems(path_params):
3123
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
3124
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
3125
+
3126
+ header_params = {
3127
+ "accept": "application/json",
3128
+ "content-type": "application/json",
3129
+ "if-match": kwargs.get("if_match", missing),
3130
+ "opc-request-id": kwargs.get("opc_request_id", missing)
3131
+ }
3132
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3133
+
3134
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
3135
+ operation_retry_strategy=kwargs.get('retry_strategy'),
3136
+ client_retry_strategy=self.retry_strategy
3137
+ )
3138
+ if retry_strategy is None:
3139
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
3140
+
3141
+ if retry_strategy:
3142
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
3143
+ self.base_client.add_opc_client_retries_header(header_params)
3144
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
3145
+ return retry_strategy.make_retrying_call(
3146
+ self.base_client.call_api,
3147
+ resource_path=resource_path,
3148
+ method=method,
3149
+ path_params=path_params,
3150
+ header_params=header_params,
3151
+ allow_control_chars=kwargs.get('allow_control_chars'),
3152
+ operation_name=operation_name,
3153
+ api_reference_link=api_reference_link,
3154
+ required_arguments=required_arguments)
3155
+ else:
3156
+ return self.base_client.call_api(
3157
+ resource_path=resource_path,
3158
+ method=method,
3159
+ path_params=path_params,
3160
+ header_params=header_params,
3161
+ allow_control_chars=kwargs.get('allow_control_chars'),
3162
+ operation_name=operation_name,
3163
+ api_reference_link=api_reference_link,
3164
+ required_arguments=required_arguments)
3165
+
3166
+ def disable_external_database(self, monitored_resource_id, **kwargs):
3167
+ """
3168
+ Disable external database resource monitoring. All the references in DBaaS,
3169
+ DBM and resource service will be deleted as part of this operation.
3170
+
3171
+
3172
+ :param str monitored_resource_id: (required)
3173
+ The `OCID`__ of monitored resource.
3174
+
3175
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
3176
+
3177
+ :param str opc_retry_token: (optional)
3178
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
3179
+ server error without risk of executing that same action again. Retry tokens expire after 24
3180
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
3181
+ has been deleted and purged from the system, then a retry of the original creation request
3182
+ might be rejected.
3183
+
3184
+ :param str opc_request_id: (optional)
3185
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
3186
+ particular request, please provide the request ID.
3187
+
3188
+ :param str if_match: (optional)
3189
+ For optimistic concurrency control. In the PUT or DELETE call
3190
+ for a resource, set the `if-match` parameter to the value of the
3191
+ etag from a previous GET or POST response for that resource.
3192
+ The resource will be updated or deleted only if the etag you
3193
+ provide matches the resource's current etag value.
3194
+
3195
+ :param obj retry_strategy: (optional)
3196
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
3197
+
3198
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
3199
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
3200
+
3201
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
3202
+
3203
+ :param bool allow_control_chars: (optional)
3204
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3205
+ By default, the response will not allow control characters in strings
3206
+
3207
+ :return: A :class:`~oci.response.Response` object with data of type None
3208
+ :rtype: :class:`~oci.response.Response`
3209
+
3210
+ :example:
3211
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/disable_external_database.py.html>`__ to see an example of how to use disable_external_database API.
3212
+ """
3213
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3214
+ required_arguments = ['monitoredResourceId']
3215
+ resource_path = "/monitoredResources/{monitoredResourceId}/actions/disableExternalDatabase"
3216
+ method = "POST"
3217
+ operation_name = "disable_external_database"
3218
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/DisableExternalDatabase"
3219
+
3220
+ # Don't accept unknown kwargs
3221
+ expected_kwargs = [
3222
+ "allow_control_chars",
3223
+ "retry_strategy",
3224
+ "opc_retry_token",
3225
+ "opc_request_id",
3226
+ "if_match"
3227
+ ]
3228
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3229
+ if extra_kwargs:
3230
+ raise ValueError(
3231
+ f"disable_external_database got unknown kwargs: {extra_kwargs!r}")
2681
3232
 
2682
3233
  path_params = {
2683
3234
  "monitoredResourceId": monitored_resource_id
@@ -2776,7 +3327,7 @@ class StackMonitoringClient(object):
2776
3327
  :rtype: :class:`~oci.response.Response`
2777
3328
 
2778
3329
  :example:
2779
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/disable_metric_extension.py.html>`__ to see an example of how to use disable_metric_extension API.
3330
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/disable_metric_extension.py.html>`__ to see an example of how to use disable_metric_extension API.
2780
3331
  """
2781
3332
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2782
3333
  required_arguments = ['metricExtensionId']
@@ -2892,7 +3443,7 @@ class StackMonitoringClient(object):
2892
3443
  :rtype: :class:`~oci.response.Response`
2893
3444
 
2894
3445
  :example:
2895
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/disassociate_monitored_resources.py.html>`__ to see an example of how to use disassociate_monitored_resources API.
3446
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/disassociate_monitored_resources.py.html>`__ to see an example of how to use disassociate_monitored_resources API.
2896
3447
  """
2897
3448
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2898
3449
  required_arguments = []
@@ -3001,7 +3552,7 @@ class StackMonitoringClient(object):
3001
3552
  :rtype: :class:`~oci.response.Response`
3002
3553
 
3003
3554
  :example:
3004
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/enable_metric_extension.py.html>`__ to see an example of how to use enable_metric_extension API.
3555
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/enable_metric_extension.py.html>`__ to see an example of how to use enable_metric_extension API.
3005
3556
  """
3006
3557
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3007
3558
  required_arguments = ['metricExtensionId']
@@ -3120,7 +3671,7 @@ class StackMonitoringClient(object):
3120
3671
  :rtype: :class:`~oci.response.Response`
3121
3672
 
3122
3673
  :example:
3123
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/evaluate_baselineable_metric.py.html>`__ to see an example of how to use evaluate_baselineable_metric API.
3674
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/evaluate_baselineable_metric.py.html>`__ to see an example of how to use evaluate_baselineable_metric API.
3124
3675
  """
3125
3676
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3126
3677
  required_arguments = ['baselineableMetricId']
@@ -3243,7 +3794,7 @@ class StackMonitoringClient(object):
3243
3794
  :rtype: :class:`~oci.response.Response`
3244
3795
 
3245
3796
  :example:
3246
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/export_metric_extension.py.html>`__ to see an example of how to use export_metric_extension API.
3797
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/export_metric_extension.py.html>`__ to see an example of how to use export_metric_extension API.
3247
3798
  """
3248
3799
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3249
3800
  required_arguments = ['metricExtensionId']
@@ -3319,18 +3870,34 @@ class StackMonitoringClient(object):
3319
3870
  api_reference_link=api_reference_link,
3320
3871
  required_arguments=required_arguments)
3321
3872
 
3322
- def get_baselineable_metric(self, baselineable_metric_id, **kwargs):
3873
+ def export_monitoring_template(self, monitoring_template_id, **kwargs):
3323
3874
  """
3324
- Get the Baseline-able metric for the given id
3875
+ Export the specified monitoring template
3325
3876
 
3326
3877
 
3327
- :param str baselineable_metric_id: (required)
3328
- Identifier for the metric
3878
+ :param str monitoring_template_id: (required)
3879
+ The `OCID`__ of the monitoring template.
3880
+
3881
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
3329
3882
 
3330
3883
  :param str opc_request_id: (optional)
3331
3884
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
3332
3885
  particular request, please provide the request ID.
3333
3886
 
3887
+ :param str opc_retry_token: (optional)
3888
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
3889
+ server error without risk of executing that same action again. Retry tokens expire after 24
3890
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
3891
+ has been deleted and purged from the system, then a retry of the original creation request
3892
+ might be rejected.
3893
+
3894
+ :param str if_match: (optional)
3895
+ For optimistic concurrency control. In the PUT or DELETE call
3896
+ for a resource, set the `if-match` parameter to the value of the
3897
+ etag from a previous GET or POST response for that resource.
3898
+ The resource will be updated or deleted only if the etag you
3899
+ provide matches the resource's current etag value.
3900
+
3334
3901
  :param obj retry_strategy: (optional)
3335
3902
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
3336
3903
 
@@ -3343,32 +3910,34 @@ class StackMonitoringClient(object):
3343
3910
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3344
3911
  By default, the response will not allow control characters in strings
3345
3912
 
3346
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.BaselineableMetric`
3913
+ :return: A :class:`~oci.response.Response` object with data of type stream
3347
3914
  :rtype: :class:`~oci.response.Response`
3348
3915
 
3349
3916
  :example:
3350
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_baselineable_metric.py.html>`__ to see an example of how to use get_baselineable_metric API.
3917
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/export_monitoring_template.py.html>`__ to see an example of how to use export_monitoring_template API.
3351
3918
  """
3352
3919
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3353
- required_arguments = ['baselineableMetricId']
3354
- resource_path = "/baselineableMetrics/{baselineableMetricId}"
3355
- method = "GET"
3356
- operation_name = "get_baselineable_metric"
3357
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/BaselineableMetric/GetBaselineableMetric"
3920
+ required_arguments = ['monitoringTemplateId']
3921
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/actions/export"
3922
+ method = "POST"
3923
+ operation_name = "export_monitoring_template"
3924
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ExportMonitoringTemplate"
3358
3925
 
3359
3926
  # Don't accept unknown kwargs
3360
3927
  expected_kwargs = [
3361
3928
  "allow_control_chars",
3362
3929
  "retry_strategy",
3363
- "opc_request_id"
3930
+ "opc_request_id",
3931
+ "opc_retry_token",
3932
+ "if_match"
3364
3933
  ]
3365
3934
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3366
3935
  if extra_kwargs:
3367
3936
  raise ValueError(
3368
- f"get_baselineable_metric got unknown kwargs: {extra_kwargs!r}")
3937
+ f"export_monitoring_template got unknown kwargs: {extra_kwargs!r}")
3369
3938
 
3370
3939
  path_params = {
3371
- "baselineableMetricId": baselineable_metric_id
3940
+ "monitoringTemplateId": monitoring_template_id
3372
3941
  }
3373
3942
 
3374
3943
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3380,7 +3949,9 @@ class StackMonitoringClient(object):
3380
3949
  header_params = {
3381
3950
  "accept": "application/json",
3382
3951
  "content-type": "application/json",
3383
- "opc-request-id": kwargs.get("opc_request_id", missing)
3952
+ "opc-request-id": kwargs.get("opc_request_id", missing),
3953
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
3954
+ "if-match": kwargs.get("if_match", missing)
3384
3955
  }
3385
3956
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
3386
3957
 
@@ -3393,6 +3964,7 @@ class StackMonitoringClient(object):
3393
3964
 
3394
3965
  if retry_strategy:
3395
3966
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
3967
+ self.base_client.add_opc_retry_token_if_needed(header_params)
3396
3968
  self.base_client.add_opc_client_retries_header(header_params)
3397
3969
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
3398
3970
  return retry_strategy.make_retrying_call(
@@ -3401,7 +3973,7 @@ class StackMonitoringClient(object):
3401
3973
  method=method,
3402
3974
  path_params=path_params,
3403
3975
  header_params=header_params,
3404
- response_type="BaselineableMetric",
3976
+ response_type="stream",
3405
3977
  allow_control_chars=kwargs.get('allow_control_chars'),
3406
3978
  operation_name=operation_name,
3407
3979
  api_reference_link=api_reference_link,
@@ -3412,19 +3984,26 @@ class StackMonitoringClient(object):
3412
3984
  method=method,
3413
3985
  path_params=path_params,
3414
3986
  header_params=header_params,
3415
- response_type="BaselineableMetric",
3987
+ response_type="stream",
3416
3988
  allow_control_chars=kwargs.get('allow_control_chars'),
3417
3989
  operation_name=operation_name,
3418
3990
  api_reference_link=api_reference_link,
3419
3991
  required_arguments=required_arguments)
3420
3992
 
3421
- def get_config(self, config_id, **kwargs):
3993
+ def get_alarm_condition(self, alarm_condition_id, monitoring_template_id, **kwargs):
3422
3994
  """
3423
- Gets the details of a configuration.
3995
+ Gets a Alarm Condition by identifier.
3424
3996
 
3425
3997
 
3426
- :param str config_id: (required)
3427
- Unique Config identifier.
3998
+ :param str alarm_condition_id: (required)
3999
+ The `OCID`__ of the alarm condition.
4000
+
4001
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4002
+
4003
+ :param str monitoring_template_id: (required)
4004
+ The `OCID`__ of the monitoring template.
4005
+
4006
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
3428
4007
 
3429
4008
  :param str opc_request_id: (optional)
3430
4009
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -3442,18 +4021,18 @@ class StackMonitoringClient(object):
3442
4021
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3443
4022
  By default, the response will not allow control characters in strings
3444
4023
 
3445
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.Config`
4024
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.AlarmCondition`
3446
4025
  :rtype: :class:`~oci.response.Response`
3447
4026
 
3448
4027
  :example:
3449
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_config.py.html>`__ to see an example of how to use get_config API.
4028
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_alarm_condition.py.html>`__ to see an example of how to use get_alarm_condition API.
3450
4029
  """
3451
4030
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3452
- required_arguments = ['configId']
3453
- resource_path = "/configs/{configId}"
4031
+ required_arguments = ['alarmConditionId', 'monitoringTemplateId']
4032
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}"
3454
4033
  method = "GET"
3455
- operation_name = "get_config"
3456
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/GetConfig"
4034
+ operation_name = "get_alarm_condition"
4035
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/GetAlarmCondition"
3457
4036
 
3458
4037
  # Don't accept unknown kwargs
3459
4038
  expected_kwargs = [
@@ -3464,10 +4043,11 @@ class StackMonitoringClient(object):
3464
4043
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3465
4044
  if extra_kwargs:
3466
4045
  raise ValueError(
3467
- f"get_config got unknown kwargs: {extra_kwargs!r}")
4046
+ f"get_alarm_condition got unknown kwargs: {extra_kwargs!r}")
3468
4047
 
3469
4048
  path_params = {
3470
- "configId": config_id
4049
+ "alarmConditionId": alarm_condition_id,
4050
+ "monitoringTemplateId": monitoring_template_id
3471
4051
  }
3472
4052
 
3473
4053
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3500,7 +4080,7 @@ class StackMonitoringClient(object):
3500
4080
  method=method,
3501
4081
  path_params=path_params,
3502
4082
  header_params=header_params,
3503
- response_type="Config",
4083
+ response_type="AlarmCondition",
3504
4084
  allow_control_chars=kwargs.get('allow_control_chars'),
3505
4085
  operation_name=operation_name,
3506
4086
  api_reference_link=api_reference_link,
@@ -3511,19 +4091,19 @@ class StackMonitoringClient(object):
3511
4091
  method=method,
3512
4092
  path_params=path_params,
3513
4093
  header_params=header_params,
3514
- response_type="Config",
4094
+ response_type="AlarmCondition",
3515
4095
  allow_control_chars=kwargs.get('allow_control_chars'),
3516
4096
  operation_name=operation_name,
3517
4097
  api_reference_link=api_reference_link,
3518
4098
  required_arguments=required_arguments)
3519
4099
 
3520
- def get_discovery_job(self, discovery_job_id, **kwargs):
4100
+ def get_baselineable_metric(self, baselineable_metric_id, **kwargs):
3521
4101
  """
3522
- API to get the details of discovery Job by identifier.
4102
+ Get the Baseline-able metric for the given id
3523
4103
 
3524
4104
 
3525
- :param str discovery_job_id: (required)
3526
- The Discovery Job ID
4105
+ :param str baselineable_metric_id: (required)
4106
+ Identifier for the metric
3527
4107
 
3528
4108
  :param str opc_request_id: (optional)
3529
4109
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -3541,18 +4121,18 @@ class StackMonitoringClient(object):
3541
4121
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3542
4122
  By default, the response will not allow control characters in strings
3543
4123
 
3544
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.DiscoveryJob`
4124
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.BaselineableMetric`
3545
4125
  :rtype: :class:`~oci.response.Response`
3546
4126
 
3547
4127
  :example:
3548
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_discovery_job.py.html>`__ to see an example of how to use get_discovery_job API.
4128
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_baselineable_metric.py.html>`__ to see an example of how to use get_baselineable_metric API.
3549
4129
  """
3550
4130
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3551
- required_arguments = ['discoveryJobId']
3552
- resource_path = "/discoveryJobs/{discoveryJobId}"
4131
+ required_arguments = ['baselineableMetricId']
4132
+ resource_path = "/baselineableMetrics/{baselineableMetricId}"
3553
4133
  method = "GET"
3554
- operation_name = "get_discovery_job"
3555
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJob/GetDiscoveryJob"
4134
+ operation_name = "get_baselineable_metric"
4135
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/BaselineableMetric/GetBaselineableMetric"
3556
4136
 
3557
4137
  # Don't accept unknown kwargs
3558
4138
  expected_kwargs = [
@@ -3563,10 +4143,10 @@ class StackMonitoringClient(object):
3563
4143
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3564
4144
  if extra_kwargs:
3565
4145
  raise ValueError(
3566
- f"get_discovery_job got unknown kwargs: {extra_kwargs!r}")
4146
+ f"get_baselineable_metric got unknown kwargs: {extra_kwargs!r}")
3567
4147
 
3568
4148
  path_params = {
3569
- "discoveryJobId": discovery_job_id
4149
+ "baselineableMetricId": baselineable_metric_id
3570
4150
  }
3571
4151
 
3572
4152
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3599,7 +4179,7 @@ class StackMonitoringClient(object):
3599
4179
  method=method,
3600
4180
  path_params=path_params,
3601
4181
  header_params=header_params,
3602
- response_type="DiscoveryJob",
4182
+ response_type="BaselineableMetric",
3603
4183
  allow_control_chars=kwargs.get('allow_control_chars'),
3604
4184
  operation_name=operation_name,
3605
4185
  api_reference_link=api_reference_link,
@@ -3610,23 +4190,19 @@ class StackMonitoringClient(object):
3610
4190
  method=method,
3611
4191
  path_params=path_params,
3612
4192
  header_params=header_params,
3613
- response_type="DiscoveryJob",
4193
+ response_type="BaselineableMetric",
3614
4194
  allow_control_chars=kwargs.get('allow_control_chars'),
3615
4195
  operation_name=operation_name,
3616
4196
  api_reference_link=api_reference_link,
3617
4197
  required_arguments=required_arguments)
3618
4198
 
3619
- def get_maintenance_window(self, maintenance_window_id, **kwargs):
4199
+ def get_config(self, config_id, **kwargs):
3620
4200
  """
3621
- Get maintenance window for the given identifier `OCID`__.
3622
-
3623
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
3624
-
4201
+ Gets the details of a configuration.
3625
4202
 
3626
- :param str maintenance_window_id: (required)
3627
- The `OCID`__ of maintenance window.
3628
4203
 
3629
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4204
+ :param str config_id: (required)
4205
+ Unique Config identifier.
3630
4206
 
3631
4207
  :param str opc_request_id: (optional)
3632
4208
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -3644,18 +4220,18 @@ class StackMonitoringClient(object):
3644
4220
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3645
4221
  By default, the response will not allow control characters in strings
3646
4222
 
3647
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MaintenanceWindow`
4223
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.Config`
3648
4224
  :rtype: :class:`~oci.response.Response`
3649
4225
 
3650
4226
  :example:
3651
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_maintenance_window.py.html>`__ to see an example of how to use get_maintenance_window API.
4227
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_config.py.html>`__ to see an example of how to use get_config API.
3652
4228
  """
3653
4229
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3654
- required_arguments = ['maintenanceWindowId']
3655
- resource_path = "/maintenanceWindows/{maintenanceWindowId}"
4230
+ required_arguments = ['configId']
4231
+ resource_path = "/configs/{configId}"
3656
4232
  method = "GET"
3657
- operation_name = "get_maintenance_window"
3658
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/GetMaintenanceWindow"
4233
+ operation_name = "get_config"
4234
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/GetConfig"
3659
4235
 
3660
4236
  # Don't accept unknown kwargs
3661
4237
  expected_kwargs = [
@@ -3666,10 +4242,10 @@ class StackMonitoringClient(object):
3666
4242
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3667
4243
  if extra_kwargs:
3668
4244
  raise ValueError(
3669
- f"get_maintenance_window got unknown kwargs: {extra_kwargs!r}")
4245
+ f"get_config got unknown kwargs: {extra_kwargs!r}")
3670
4246
 
3671
4247
  path_params = {
3672
- "maintenanceWindowId": maintenance_window_id
4248
+ "configId": config_id
3673
4249
  }
3674
4250
 
3675
4251
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3702,7 +4278,7 @@ class StackMonitoringClient(object):
3702
4278
  method=method,
3703
4279
  path_params=path_params,
3704
4280
  header_params=header_params,
3705
- response_type="MaintenanceWindow",
4281
+ response_type="Config",
3706
4282
  allow_control_chars=kwargs.get('allow_control_chars'),
3707
4283
  operation_name=operation_name,
3708
4284
  api_reference_link=api_reference_link,
@@ -3713,21 +4289,19 @@ class StackMonitoringClient(object):
3713
4289
  method=method,
3714
4290
  path_params=path_params,
3715
4291
  header_params=header_params,
3716
- response_type="MaintenanceWindow",
4292
+ response_type="Config",
3717
4293
  allow_control_chars=kwargs.get('allow_control_chars'),
3718
4294
  operation_name=operation_name,
3719
4295
  api_reference_link=api_reference_link,
3720
4296
  required_arguments=required_arguments)
3721
4297
 
3722
- def get_metric_extension(self, metric_extension_id, **kwargs):
4298
+ def get_discovery_job(self, discovery_job_id, **kwargs):
3723
4299
  """
3724
- Gets a Metric Extension by identifier
3725
-
4300
+ API to get the details of discovery Job by identifier.
3726
4301
 
3727
- :param str metric_extension_id: (required)
3728
- The `OCID`__ of the metric extension resource.
3729
4302
 
3730
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4303
+ :param str discovery_job_id: (required)
4304
+ The Discovery Job ID
3731
4305
 
3732
4306
  :param str opc_request_id: (optional)
3733
4307
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -3745,18 +4319,18 @@ class StackMonitoringClient(object):
3745
4319
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
3746
4320
  By default, the response will not allow control characters in strings
3747
4321
 
3748
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtension`
4322
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.DiscoveryJob`
3749
4323
  :rtype: :class:`~oci.response.Response`
3750
4324
 
3751
4325
  :example:
3752
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_metric_extension.py.html>`__ to see an example of how to use get_metric_extension API.
4326
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_discovery_job.py.html>`__ to see an example of how to use get_discovery_job API.
3753
4327
  """
3754
4328
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3755
- required_arguments = ['metricExtensionId']
3756
- resource_path = "/metricExtensions/{metricExtensionId}"
4329
+ required_arguments = ['discoveryJobId']
4330
+ resource_path = "/discoveryJobs/{discoveryJobId}"
3757
4331
  method = "GET"
3758
- operation_name = "get_metric_extension"
3759
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/GetMetricExtension"
4332
+ operation_name = "get_discovery_job"
4333
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DiscoveryJob/GetDiscoveryJob"
3760
4334
 
3761
4335
  # Don't accept unknown kwargs
3762
4336
  expected_kwargs = [
@@ -3767,7 +4341,211 @@ class StackMonitoringClient(object):
3767
4341
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
3768
4342
  if extra_kwargs:
3769
4343
  raise ValueError(
3770
- f"get_metric_extension got unknown kwargs: {extra_kwargs!r}")
4344
+ f"get_discovery_job got unknown kwargs: {extra_kwargs!r}")
4345
+
4346
+ path_params = {
4347
+ "discoveryJobId": discovery_job_id
4348
+ }
4349
+
4350
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
4351
+
4352
+ for (k, v) in six.iteritems(path_params):
4353
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
4354
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
4355
+
4356
+ header_params = {
4357
+ "accept": "application/json",
4358
+ "content-type": "application/json",
4359
+ "opc-request-id": kwargs.get("opc_request_id", missing)
4360
+ }
4361
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
4362
+
4363
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
4364
+ operation_retry_strategy=kwargs.get('retry_strategy'),
4365
+ client_retry_strategy=self.retry_strategy
4366
+ )
4367
+ if retry_strategy is None:
4368
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
4369
+
4370
+ if retry_strategy:
4371
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
4372
+ self.base_client.add_opc_client_retries_header(header_params)
4373
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
4374
+ return retry_strategy.make_retrying_call(
4375
+ self.base_client.call_api,
4376
+ resource_path=resource_path,
4377
+ method=method,
4378
+ path_params=path_params,
4379
+ header_params=header_params,
4380
+ response_type="DiscoveryJob",
4381
+ allow_control_chars=kwargs.get('allow_control_chars'),
4382
+ operation_name=operation_name,
4383
+ api_reference_link=api_reference_link,
4384
+ required_arguments=required_arguments)
4385
+ else:
4386
+ return self.base_client.call_api(
4387
+ resource_path=resource_path,
4388
+ method=method,
4389
+ path_params=path_params,
4390
+ header_params=header_params,
4391
+ response_type="DiscoveryJob",
4392
+ allow_control_chars=kwargs.get('allow_control_chars'),
4393
+ operation_name=operation_name,
4394
+ api_reference_link=api_reference_link,
4395
+ required_arguments=required_arguments)
4396
+
4397
+ def get_maintenance_window(self, maintenance_window_id, **kwargs):
4398
+ """
4399
+ Get maintenance window for the given identifier `OCID`__.
4400
+
4401
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4402
+
4403
+
4404
+ :param str maintenance_window_id: (required)
4405
+ The `OCID`__ of maintenance window.
4406
+
4407
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4408
+
4409
+ :param str opc_request_id: (optional)
4410
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
4411
+ particular request, please provide the request ID.
4412
+
4413
+ :param obj retry_strategy: (optional)
4414
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
4415
+
4416
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
4417
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
4418
+
4419
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
4420
+
4421
+ :param bool allow_control_chars: (optional)
4422
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
4423
+ By default, the response will not allow control characters in strings
4424
+
4425
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MaintenanceWindow`
4426
+ :rtype: :class:`~oci.response.Response`
4427
+
4428
+ :example:
4429
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_maintenance_window.py.html>`__ to see an example of how to use get_maintenance_window API.
4430
+ """
4431
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4432
+ required_arguments = ['maintenanceWindowId']
4433
+ resource_path = "/maintenanceWindows/{maintenanceWindowId}"
4434
+ method = "GET"
4435
+ operation_name = "get_maintenance_window"
4436
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/GetMaintenanceWindow"
4437
+
4438
+ # Don't accept unknown kwargs
4439
+ expected_kwargs = [
4440
+ "allow_control_chars",
4441
+ "retry_strategy",
4442
+ "opc_request_id"
4443
+ ]
4444
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4445
+ if extra_kwargs:
4446
+ raise ValueError(
4447
+ f"get_maintenance_window got unknown kwargs: {extra_kwargs!r}")
4448
+
4449
+ path_params = {
4450
+ "maintenanceWindowId": maintenance_window_id
4451
+ }
4452
+
4453
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
4454
+
4455
+ for (k, v) in six.iteritems(path_params):
4456
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
4457
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
4458
+
4459
+ header_params = {
4460
+ "accept": "application/json",
4461
+ "content-type": "application/json",
4462
+ "opc-request-id": kwargs.get("opc_request_id", missing)
4463
+ }
4464
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
4465
+
4466
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
4467
+ operation_retry_strategy=kwargs.get('retry_strategy'),
4468
+ client_retry_strategy=self.retry_strategy
4469
+ )
4470
+ if retry_strategy is None:
4471
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
4472
+
4473
+ if retry_strategy:
4474
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
4475
+ self.base_client.add_opc_client_retries_header(header_params)
4476
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
4477
+ return retry_strategy.make_retrying_call(
4478
+ self.base_client.call_api,
4479
+ resource_path=resource_path,
4480
+ method=method,
4481
+ path_params=path_params,
4482
+ header_params=header_params,
4483
+ response_type="MaintenanceWindow",
4484
+ allow_control_chars=kwargs.get('allow_control_chars'),
4485
+ operation_name=operation_name,
4486
+ api_reference_link=api_reference_link,
4487
+ required_arguments=required_arguments)
4488
+ else:
4489
+ return self.base_client.call_api(
4490
+ resource_path=resource_path,
4491
+ method=method,
4492
+ path_params=path_params,
4493
+ header_params=header_params,
4494
+ response_type="MaintenanceWindow",
4495
+ allow_control_chars=kwargs.get('allow_control_chars'),
4496
+ operation_name=operation_name,
4497
+ api_reference_link=api_reference_link,
4498
+ required_arguments=required_arguments)
4499
+
4500
+ def get_metric_extension(self, metric_extension_id, **kwargs):
4501
+ """
4502
+ Gets a Metric Extension by identifier
4503
+
4504
+
4505
+ :param str metric_extension_id: (required)
4506
+ The `OCID`__ of the metric extension resource.
4507
+
4508
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4509
+
4510
+ :param str opc_request_id: (optional)
4511
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
4512
+ particular request, please provide the request ID.
4513
+
4514
+ :param obj retry_strategy: (optional)
4515
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
4516
+
4517
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
4518
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
4519
+
4520
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
4521
+
4522
+ :param bool allow_control_chars: (optional)
4523
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
4524
+ By default, the response will not allow control characters in strings
4525
+
4526
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtension`
4527
+ :rtype: :class:`~oci.response.Response`
4528
+
4529
+ :example:
4530
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_metric_extension.py.html>`__ to see an example of how to use get_metric_extension API.
4531
+ """
4532
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4533
+ required_arguments = ['metricExtensionId']
4534
+ resource_path = "/metricExtensions/{metricExtensionId}"
4535
+ method = "GET"
4536
+ operation_name = "get_metric_extension"
4537
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/GetMetricExtension"
4538
+
4539
+ # Don't accept unknown kwargs
4540
+ expected_kwargs = [
4541
+ "allow_control_chars",
4542
+ "retry_strategy",
4543
+ "opc_request_id"
4544
+ ]
4545
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4546
+ if extra_kwargs:
4547
+ raise ValueError(
4548
+ f"get_metric_extension got unknown kwargs: {extra_kwargs!r}")
3771
4549
 
3772
4550
  path_params = {
3773
4551
  "metricExtensionId": metric_extension_id
@@ -3852,7 +4630,7 @@ class StackMonitoringClient(object):
3852
4630
  :rtype: :class:`~oci.response.Response`
3853
4631
 
3854
4632
  :example:
3855
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_monitored_resource.py.html>`__ to see an example of how to use get_monitored_resource API.
4633
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_monitored_resource.py.html>`__ to see an example of how to use get_monitored_resource API.
3856
4634
  """
3857
4635
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3858
4636
  required_arguments = ['monitoredResourceId']
@@ -3955,7 +4733,7 @@ class StackMonitoringClient(object):
3955
4733
  :rtype: :class:`~oci.response.Response`
3956
4734
 
3957
4735
  :example:
3958
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_monitored_resource_task.py.html>`__ to see an example of how to use get_monitored_resource_task API.
4736
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_monitored_resource_task.py.html>`__ to see an example of how to use get_monitored_resource_task API.
3959
4737
  """
3960
4738
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
3961
4739
  required_arguments = ['monitoredResourceTaskId']
@@ -4058,7 +4836,7 @@ class StackMonitoringClient(object):
4058
4836
  :rtype: :class:`~oci.response.Response`
4059
4837
 
4060
4838
  :example:
4061
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_monitored_resource_type.py.html>`__ to see an example of how to use get_monitored_resource_type API.
4839
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_monitored_resource_type.py.html>`__ to see an example of how to use get_monitored_resource_type API.
4062
4840
  """
4063
4841
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4064
4842
  required_arguments = ['monitoredResourceTypeId']
@@ -4129,13 +4907,15 @@ class StackMonitoringClient(object):
4129
4907
  api_reference_link=api_reference_link,
4130
4908
  required_arguments=required_arguments)
4131
4909
 
4132
- def get_process_set(self, process_set_id, **kwargs):
4910
+ def get_monitoring_template(self, monitoring_template_id, **kwargs):
4133
4911
  """
4134
- API to get the details of a Process Set by identifier.
4912
+ Gets a Monitoring Template by identifier
4135
4913
 
4136
4914
 
4137
- :param str process_set_id: (required)
4138
- The Process Set ID
4915
+ :param str monitoring_template_id: (required)
4916
+ The `OCID`__ of the monitoring template.
4917
+
4918
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4139
4919
 
4140
4920
  :param str opc_request_id: (optional)
4141
4921
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -4153,18 +4933,18 @@ class StackMonitoringClient(object):
4153
4933
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
4154
4934
  By default, the response will not allow control characters in strings
4155
4935
 
4156
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ProcessSet`
4936
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoringTemplate`
4157
4937
  :rtype: :class:`~oci.response.Response`
4158
4938
 
4159
4939
  :example:
4160
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_process_set.py.html>`__ to see an example of how to use get_process_set API.
4940
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_monitoring_template.py.html>`__ to see an example of how to use get_monitoring_template API.
4161
4941
  """
4162
4942
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4163
- required_arguments = ['processSetId']
4164
- resource_path = "/processSets/{processSetId}"
4943
+ required_arguments = ['monitoringTemplateId']
4944
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}"
4165
4945
  method = "GET"
4166
- operation_name = "get_process_set"
4167
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/GetProcessSet"
4946
+ operation_name = "get_monitoring_template"
4947
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/GetMonitoringTemplate"
4168
4948
 
4169
4949
  # Don't accept unknown kwargs
4170
4950
  expected_kwargs = [
@@ -4175,10 +4955,10 @@ class StackMonitoringClient(object):
4175
4955
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4176
4956
  if extra_kwargs:
4177
4957
  raise ValueError(
4178
- f"get_process_set got unknown kwargs: {extra_kwargs!r}")
4958
+ f"get_monitoring_template got unknown kwargs: {extra_kwargs!r}")
4179
4959
 
4180
4960
  path_params = {
4181
- "processSetId": process_set_id
4961
+ "monitoringTemplateId": monitoring_template_id
4182
4962
  }
4183
4963
 
4184
4964
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4211,7 +4991,7 @@ class StackMonitoringClient(object):
4211
4991
  method=method,
4212
4992
  path_params=path_params,
4213
4993
  header_params=header_params,
4214
- response_type="ProcessSet",
4994
+ response_type="MonitoringTemplate",
4215
4995
  allow_control_chars=kwargs.get('allow_control_chars'),
4216
4996
  operation_name=operation_name,
4217
4997
  api_reference_link=api_reference_link,
@@ -4222,21 +5002,19 @@ class StackMonitoringClient(object):
4222
5002
  method=method,
4223
5003
  path_params=path_params,
4224
5004
  header_params=header_params,
4225
- response_type="ProcessSet",
5005
+ response_type="MonitoringTemplate",
4226
5006
  allow_control_chars=kwargs.get('allow_control_chars'),
4227
5007
  operation_name=operation_name,
4228
5008
  api_reference_link=api_reference_link,
4229
5009
  required_arguments=required_arguments)
4230
5010
 
4231
- def get_work_request(self, work_request_id, **kwargs):
5011
+ def get_process_set(self, process_set_id, **kwargs):
4232
5012
  """
4233
- Gets the status of the work request with the given ID.
4234
-
5013
+ API to get the details of a Process Set by identifier.
4235
5014
 
4236
- :param str work_request_id: (required)
4237
- The `OCID`__ of the work request.
4238
5015
 
4239
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
5016
+ :param str process_set_id: (required)
5017
+ The Process Set ID
4240
5018
 
4241
5019
  :param str opc_request_id: (optional)
4242
5020
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -4254,18 +5032,18 @@ class StackMonitoringClient(object):
4254
5032
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
4255
5033
  By default, the response will not allow control characters in strings
4256
5034
 
4257
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.WorkRequest`
5035
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ProcessSet`
4258
5036
  :rtype: :class:`~oci.response.Response`
4259
5037
 
4260
5038
  :example:
4261
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
5039
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_process_set.py.html>`__ to see an example of how to use get_process_set API.
4262
5040
  """
4263
5041
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4264
- required_arguments = ['workRequestId']
4265
- resource_path = "/workRequests/{workRequestId}"
5042
+ required_arguments = ['processSetId']
5043
+ resource_path = "/processSets/{processSetId}"
4266
5044
  method = "GET"
4267
- operation_name = "get_work_request"
4268
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequest/GetWorkRequest"
5045
+ operation_name = "get_process_set"
5046
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ProcessSet/GetProcessSet"
4269
5047
 
4270
5048
  # Don't accept unknown kwargs
4271
5049
  expected_kwargs = [
@@ -4276,10 +5054,10 @@ class StackMonitoringClient(object):
4276
5054
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4277
5055
  if extra_kwargs:
4278
5056
  raise ValueError(
4279
- f"get_work_request got unknown kwargs: {extra_kwargs!r}")
5057
+ f"get_process_set got unknown kwargs: {extra_kwargs!r}")
4280
5058
 
4281
5059
  path_params = {
4282
- "workRequestId": work_request_id
5060
+ "processSetId": process_set_id
4283
5061
  }
4284
5062
 
4285
5063
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4312,7 +5090,7 @@ class StackMonitoringClient(object):
4312
5090
  method=method,
4313
5091
  path_params=path_params,
4314
5092
  header_params=header_params,
4315
- response_type="WorkRequest",
5093
+ response_type="ProcessSet",
4316
5094
  allow_control_chars=kwargs.get('allow_control_chars'),
4317
5095
  operation_name=operation_name,
4318
5096
  api_reference_link=api_reference_link,
@@ -4323,23 +5101,316 @@ class StackMonitoringClient(object):
4323
5101
  method=method,
4324
5102
  path_params=path_params,
4325
5103
  header_params=header_params,
4326
- response_type="WorkRequest",
5104
+ response_type="ProcessSet",
4327
5105
  allow_control_chars=kwargs.get('allow_control_chars'),
4328
5106
  operation_name=operation_name,
4329
5107
  api_reference_link=api_reference_link,
4330
5108
  required_arguments=required_arguments)
4331
5109
 
4332
- def list_baselineable_metrics(self, **kwargs):
5110
+ def get_work_request(self, work_request_id, **kwargs):
4333
5111
  """
4334
- List of summary of baseline-able metrics for a given resource group if specified.
5112
+ Gets the status of the work request with the given ID.
5113
+
5114
+
5115
+ :param str work_request_id: (required)
5116
+ The `OCID`__ of the work request.
4335
5117
 
5118
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
4336
5119
 
4337
5120
  :param str opc_request_id: (optional)
4338
5121
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
4339
5122
  particular request, please provide the request ID.
4340
5123
 
4341
- :param str resource_group: (optional)
4342
- Resource Group
5124
+ :param obj retry_strategy: (optional)
5125
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
5126
+
5127
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
5128
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
5129
+
5130
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
5131
+
5132
+ :param bool allow_control_chars: (optional)
5133
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
5134
+ By default, the response will not allow control characters in strings
5135
+
5136
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.WorkRequest`
5137
+ :rtype: :class:`~oci.response.Response`
5138
+
5139
+ :example:
5140
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
5141
+ """
5142
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5143
+ required_arguments = ['workRequestId']
5144
+ resource_path = "/workRequests/{workRequestId}"
5145
+ method = "GET"
5146
+ operation_name = "get_work_request"
5147
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/WorkRequest/GetWorkRequest"
5148
+
5149
+ # Don't accept unknown kwargs
5150
+ expected_kwargs = [
5151
+ "allow_control_chars",
5152
+ "retry_strategy",
5153
+ "opc_request_id"
5154
+ ]
5155
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5156
+ if extra_kwargs:
5157
+ raise ValueError(
5158
+ f"get_work_request got unknown kwargs: {extra_kwargs!r}")
5159
+
5160
+ path_params = {
5161
+ "workRequestId": work_request_id
5162
+ }
5163
+
5164
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
5165
+
5166
+ for (k, v) in six.iteritems(path_params):
5167
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
5168
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
5169
+
5170
+ header_params = {
5171
+ "accept": "application/json",
5172
+ "content-type": "application/json",
5173
+ "opc-request-id": kwargs.get("opc_request_id", missing)
5174
+ }
5175
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
5176
+
5177
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
5178
+ operation_retry_strategy=kwargs.get('retry_strategy'),
5179
+ client_retry_strategy=self.retry_strategy
5180
+ )
5181
+ if retry_strategy is None:
5182
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
5183
+
5184
+ if retry_strategy:
5185
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
5186
+ self.base_client.add_opc_client_retries_header(header_params)
5187
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
5188
+ return retry_strategy.make_retrying_call(
5189
+ self.base_client.call_api,
5190
+ resource_path=resource_path,
5191
+ method=method,
5192
+ path_params=path_params,
5193
+ header_params=header_params,
5194
+ response_type="WorkRequest",
5195
+ allow_control_chars=kwargs.get('allow_control_chars'),
5196
+ operation_name=operation_name,
5197
+ api_reference_link=api_reference_link,
5198
+ required_arguments=required_arguments)
5199
+ else:
5200
+ return self.base_client.call_api(
5201
+ resource_path=resource_path,
5202
+ method=method,
5203
+ path_params=path_params,
5204
+ header_params=header_params,
5205
+ response_type="WorkRequest",
5206
+ allow_control_chars=kwargs.get('allow_control_chars'),
5207
+ operation_name=operation_name,
5208
+ api_reference_link=api_reference_link,
5209
+ required_arguments=required_arguments)
5210
+
5211
+ def list_alarm_conditions(self, monitoring_template_id, **kwargs):
5212
+ """
5213
+ Returns a list of Alarm Conditions.
5214
+
5215
+
5216
+ :param str monitoring_template_id: (required)
5217
+ The `OCID`__ of the monitoring template.
5218
+
5219
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
5220
+
5221
+ :param int limit: (optional)
5222
+ For list pagination. The maximum number of results per page, or items to return in a
5223
+ paginated \"List\" call. For important details about how pagination works, see
5224
+ `List Pagination`__.
5225
+
5226
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
5227
+
5228
+ :param str page: (optional)
5229
+ For list pagination. The value of the `opc-next-page` response header from the
5230
+ previous \"List\" call. For important details about how pagination works, see
5231
+ `List Pagination`__.
5232
+
5233
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
5234
+
5235
+ :param str sort_by: (optional)
5236
+ The field to sort by. Only one sort order may be provided.
5237
+ Default order for timeUpdated is descending.
5238
+
5239
+ Allowed values are: "metricName", "lifeCycleState", "resourceType", "status", "timeUpdated", "timeCreated"
5240
+
5241
+ :param str sort_order: (optional)
5242
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
5243
+
5244
+ Allowed values are: "ASC", "DESC"
5245
+
5246
+ :param str status: (optional)
5247
+ A filter to return alarm condition based on input status.
5248
+
5249
+ Allowed values are: "NOT_APPLIED", "APPLIED", "PARTIAL_APPLIED", "ERROR"
5250
+
5251
+ :param str lifecycle_state: (optional)
5252
+ A filter to return alarm condition based on Lifecycle State.
5253
+
5254
+ Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETED"
5255
+
5256
+ :param list[str] resource_types: (optional)
5257
+ Multiple resource types filter.
5258
+
5259
+ :param list[str] metric_name: (optional)
5260
+ metricName filter.
5261
+
5262
+ :param str opc_request_id: (optional)
5263
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
5264
+ particular request, please provide the request ID.
5265
+
5266
+ :param obj retry_strategy: (optional)
5267
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
5268
+
5269
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
5270
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
5271
+
5272
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
5273
+
5274
+ :param bool allow_control_chars: (optional)
5275
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
5276
+ By default, the response will not allow control characters in strings
5277
+
5278
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.AlarmConditionCollection`
5279
+ :rtype: :class:`~oci.response.Response`
5280
+
5281
+ :example:
5282
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_alarm_conditions.py.html>`__ to see an example of how to use list_alarm_conditions API.
5283
+ """
5284
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5285
+ required_arguments = ['monitoringTemplateId']
5286
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/alarmConditions"
5287
+ method = "GET"
5288
+ operation_name = "list_alarm_conditions"
5289
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/ListAlarmConditions"
5290
+
5291
+ # Don't accept unknown kwargs
5292
+ expected_kwargs = [
5293
+ "allow_control_chars",
5294
+ "retry_strategy",
5295
+ "limit",
5296
+ "page",
5297
+ "sort_by",
5298
+ "sort_order",
5299
+ "status",
5300
+ "lifecycle_state",
5301
+ "resource_types",
5302
+ "metric_name",
5303
+ "opc_request_id"
5304
+ ]
5305
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5306
+ if extra_kwargs:
5307
+ raise ValueError(
5308
+ f"list_alarm_conditions got unknown kwargs: {extra_kwargs!r}")
5309
+
5310
+ path_params = {
5311
+ "monitoringTemplateId": monitoring_template_id
5312
+ }
5313
+
5314
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
5315
+
5316
+ for (k, v) in six.iteritems(path_params):
5317
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
5318
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
5319
+
5320
+ if 'sort_by' in kwargs:
5321
+ sort_by_allowed_values = ["metricName", "lifeCycleState", "resourceType", "status", "timeUpdated", "timeCreated"]
5322
+ if kwargs['sort_by'] not in sort_by_allowed_values:
5323
+ raise ValueError(
5324
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
5325
+ )
5326
+
5327
+ if 'sort_order' in kwargs:
5328
+ sort_order_allowed_values = ["ASC", "DESC"]
5329
+ if kwargs['sort_order'] not in sort_order_allowed_values:
5330
+ raise ValueError(
5331
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
5332
+ )
5333
+
5334
+ if 'status' in kwargs:
5335
+ status_allowed_values = ["NOT_APPLIED", "APPLIED", "PARTIAL_APPLIED", "ERROR"]
5336
+ if kwargs['status'] not in status_allowed_values:
5337
+ raise ValueError(
5338
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
5339
+ )
5340
+
5341
+ if 'lifecycle_state' in kwargs:
5342
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETED"]
5343
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
5344
+ raise ValueError(
5345
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
5346
+ )
5347
+
5348
+ query_params = {
5349
+ "limit": kwargs.get("limit", missing),
5350
+ "page": kwargs.get("page", missing),
5351
+ "sortBy": kwargs.get("sort_by", missing),
5352
+ "sortOrder": kwargs.get("sort_order", missing),
5353
+ "status": kwargs.get("status", missing),
5354
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
5355
+ "resourceTypes": self.base_client.generate_collection_format_param(kwargs.get("resource_types", missing), 'multi'),
5356
+ "metricName": self.base_client.generate_collection_format_param(kwargs.get("metric_name", missing), 'multi')
5357
+ }
5358
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
5359
+
5360
+ header_params = {
5361
+ "accept": "application/json",
5362
+ "content-type": "application/json",
5363
+ "opc-request-id": kwargs.get("opc_request_id", missing)
5364
+ }
5365
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
5366
+
5367
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
5368
+ operation_retry_strategy=kwargs.get('retry_strategy'),
5369
+ client_retry_strategy=self.retry_strategy
5370
+ )
5371
+ if retry_strategy is None:
5372
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
5373
+
5374
+ if retry_strategy:
5375
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
5376
+ self.base_client.add_opc_client_retries_header(header_params)
5377
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
5378
+ return retry_strategy.make_retrying_call(
5379
+ self.base_client.call_api,
5380
+ resource_path=resource_path,
5381
+ method=method,
5382
+ path_params=path_params,
5383
+ query_params=query_params,
5384
+ header_params=header_params,
5385
+ response_type="AlarmConditionCollection",
5386
+ allow_control_chars=kwargs.get('allow_control_chars'),
5387
+ operation_name=operation_name,
5388
+ api_reference_link=api_reference_link,
5389
+ required_arguments=required_arguments)
5390
+ else:
5391
+ return self.base_client.call_api(
5392
+ resource_path=resource_path,
5393
+ method=method,
5394
+ path_params=path_params,
5395
+ query_params=query_params,
5396
+ header_params=header_params,
5397
+ response_type="AlarmConditionCollection",
5398
+ allow_control_chars=kwargs.get('allow_control_chars'),
5399
+ operation_name=operation_name,
5400
+ api_reference_link=api_reference_link,
5401
+ required_arguments=required_arguments)
5402
+
5403
+ def list_baselineable_metrics(self, **kwargs):
5404
+ """
5405
+ List of summary of baseline-able metrics for a given resource group if specified.
5406
+
5407
+
5408
+ :param str opc_request_id: (optional)
5409
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
5410
+ particular request, please provide the request ID.
5411
+
5412
+ :param str resource_group: (optional)
5413
+ Resource Group
4343
5414
 
4344
5415
  :param str resource_type: (optional)
4345
5416
  Resource Type
@@ -4399,7 +5470,7 @@ class StackMonitoringClient(object):
4399
5470
  :rtype: :class:`~oci.response.Response`
4400
5471
 
4401
5472
  :example:
4402
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_baselineable_metrics.py.html>`__ to see an example of how to use list_baselineable_metrics API.
5473
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_baselineable_metrics.py.html>`__ to see an example of how to use list_baselineable_metrics API.
4403
5474
  """
4404
5475
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4405
5476
  required_arguments = []
@@ -4428,7 +5499,185 @@ class StackMonitoringClient(object):
4428
5499
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4429
5500
  if extra_kwargs:
4430
5501
  raise ValueError(
4431
- f"list_baselineable_metrics got unknown kwargs: {extra_kwargs!r}")
5502
+ f"list_baselineable_metrics got unknown kwargs: {extra_kwargs!r}")
5503
+
5504
+ if 'sort_order' in kwargs:
5505
+ sort_order_allowed_values = ["ASC", "DESC"]
5506
+ if kwargs['sort_order'] not in sort_order_allowed_values:
5507
+ raise ValueError(
5508
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
5509
+ )
5510
+
5511
+ if 'sort_by' in kwargs:
5512
+ sort_by_allowed_values = ["name", "namespace", "resourceGroup"]
5513
+ if kwargs['sort_by'] not in sort_by_allowed_values:
5514
+ raise ValueError(
5515
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
5516
+ )
5517
+
5518
+ query_params = {
5519
+ "resourceGroup": kwargs.get("resource_group", missing),
5520
+ "resourceType": kwargs.get("resource_type", missing),
5521
+ "isOutOfBox": kwargs.get("is_out_of_box", missing),
5522
+ "name": kwargs.get("name", missing),
5523
+ "metricNamespace": kwargs.get("metric_namespace", missing),
5524
+ "limit": kwargs.get("limit", missing),
5525
+ "page": kwargs.get("page", missing),
5526
+ "compartmentId": kwargs.get("compartment_id", missing),
5527
+ "baselineableMetricId": kwargs.get("baselineable_metric_id", missing),
5528
+ "sortOrder": kwargs.get("sort_order", missing),
5529
+ "sortBy": kwargs.get("sort_by", missing)
5530
+ }
5531
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
5532
+
5533
+ header_params = {
5534
+ "accept": "application/json",
5535
+ "content-type": "application/json",
5536
+ "opc-request-id": kwargs.get("opc_request_id", missing)
5537
+ }
5538
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
5539
+
5540
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
5541
+ operation_retry_strategy=kwargs.get('retry_strategy'),
5542
+ client_retry_strategy=self.retry_strategy
5543
+ )
5544
+ if retry_strategy is None:
5545
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
5546
+
5547
+ if retry_strategy:
5548
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
5549
+ self.base_client.add_opc_client_retries_header(header_params)
5550
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
5551
+ return retry_strategy.make_retrying_call(
5552
+ self.base_client.call_api,
5553
+ resource_path=resource_path,
5554
+ method=method,
5555
+ query_params=query_params,
5556
+ header_params=header_params,
5557
+ response_type="BaselineableMetricSummaryCollection",
5558
+ allow_control_chars=kwargs.get('allow_control_chars'),
5559
+ operation_name=operation_name,
5560
+ api_reference_link=api_reference_link,
5561
+ required_arguments=required_arguments)
5562
+ else:
5563
+ return self.base_client.call_api(
5564
+ resource_path=resource_path,
5565
+ method=method,
5566
+ query_params=query_params,
5567
+ header_params=header_params,
5568
+ response_type="BaselineableMetricSummaryCollection",
5569
+ allow_control_chars=kwargs.get('allow_control_chars'),
5570
+ operation_name=operation_name,
5571
+ api_reference_link=api_reference_link,
5572
+ required_arguments=required_arguments)
5573
+
5574
+ def list_configs(self, compartment_id, **kwargs):
5575
+ """
5576
+ Get a list of configurations in a compartment.
5577
+
5578
+
5579
+ :param str compartment_id: (required)
5580
+ The ID of the compartment in which data is listed.
5581
+
5582
+ :param str display_name: (optional)
5583
+ A filter to return only resources that match the entire display name given.
5584
+
5585
+ :param str type: (optional)
5586
+ A filter to return only configuration items for a given config type.
5587
+
5588
+ Allowed values are: "AUTO_PROMOTE", "LICENSE_AUTO_ASSIGN", "LICENSE_ENTERPRISE_EXTENSIBILITY"
5589
+
5590
+ :param int limit: (optional)
5591
+ For list pagination. The maximum number of results per page, or items to return in a
5592
+ paginated \"List\" call. For important details about how pagination works, see
5593
+ `List Pagination`__.
5594
+
5595
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
5596
+
5597
+ :param str page: (optional)
5598
+ For list pagination. The value of the `opc-next-page` response header from the
5599
+ previous \"List\" call. For important details about how pagination works, see
5600
+ `List Pagination`__.
5601
+
5602
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
5603
+
5604
+ :param str lifecycle_state: (optional)
5605
+ The current state of the Config.
5606
+
5607
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
5608
+
5609
+ :param str sort_order: (optional)
5610
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
5611
+
5612
+ Allowed values are: "ASC", "DESC"
5613
+
5614
+ :param str sort_by: (optional)
5615
+ The field to sort by. Only one sort order may be provided.
5616
+ Default order for 'timeCreated' is descending.
5617
+ Default order for 'displayName' and 'configType' is ascending.
5618
+
5619
+ Allowed values are: "timeCreated", "configType", "displayName"
5620
+
5621
+ :param str opc_request_id: (optional)
5622
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
5623
+ particular request, please provide the request ID.
5624
+
5625
+ :param obj retry_strategy: (optional)
5626
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
5627
+
5628
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
5629
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
5630
+
5631
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
5632
+
5633
+ :param bool allow_control_chars: (optional)
5634
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
5635
+ By default, the response will not allow control characters in strings
5636
+
5637
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ConfigCollection`
5638
+ :rtype: :class:`~oci.response.Response`
5639
+
5640
+ :example:
5641
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_configs.py.html>`__ to see an example of how to use list_configs API.
5642
+ """
5643
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5644
+ required_arguments = ['compartmentId']
5645
+ resource_path = "/configs"
5646
+ method = "GET"
5647
+ operation_name = "list_configs"
5648
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ConfigCollection/ListConfigs"
5649
+
5650
+ # Don't accept unknown kwargs
5651
+ expected_kwargs = [
5652
+ "allow_control_chars",
5653
+ "retry_strategy",
5654
+ "display_name",
5655
+ "type",
5656
+ "limit",
5657
+ "page",
5658
+ "lifecycle_state",
5659
+ "sort_order",
5660
+ "sort_by",
5661
+ "opc_request_id"
5662
+ ]
5663
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5664
+ if extra_kwargs:
5665
+ raise ValueError(
5666
+ f"list_configs got unknown kwargs: {extra_kwargs!r}")
5667
+
5668
+ if 'type' in kwargs:
5669
+ type_allowed_values = ["AUTO_PROMOTE", "LICENSE_AUTO_ASSIGN", "LICENSE_ENTERPRISE_EXTENSIBILITY"]
5670
+ if kwargs['type'] not in type_allowed_values:
5671
+ raise ValueError(
5672
+ f"Invalid value for `type`, must be one of { type_allowed_values }"
5673
+ )
5674
+
5675
+ if 'lifecycle_state' in kwargs:
5676
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
5677
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
5678
+ raise ValueError(
5679
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
5680
+ )
4432
5681
 
4433
5682
  if 'sort_order' in kwargs:
4434
5683
  sort_order_allowed_values = ["ASC", "DESC"]
@@ -4438,22 +5687,19 @@ class StackMonitoringClient(object):
4438
5687
  )
4439
5688
 
4440
5689
  if 'sort_by' in kwargs:
4441
- sort_by_allowed_values = ["name", "namespace", "resourceGroup"]
5690
+ sort_by_allowed_values = ["timeCreated", "configType", "displayName"]
4442
5691
  if kwargs['sort_by'] not in sort_by_allowed_values:
4443
5692
  raise ValueError(
4444
5693
  f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
4445
5694
  )
4446
5695
 
4447
5696
  query_params = {
4448
- "resourceGroup": kwargs.get("resource_group", missing),
4449
- "resourceType": kwargs.get("resource_type", missing),
4450
- "isOutOfBox": kwargs.get("is_out_of_box", missing),
4451
- "name": kwargs.get("name", missing),
4452
- "metricNamespace": kwargs.get("metric_namespace", missing),
5697
+ "compartmentId": compartment_id,
5698
+ "displayName": kwargs.get("display_name", missing),
5699
+ "type": kwargs.get("type", missing),
4453
5700
  "limit": kwargs.get("limit", missing),
4454
5701
  "page": kwargs.get("page", missing),
4455
- "compartmentId": kwargs.get("compartment_id", missing),
4456
- "baselineableMetricId": kwargs.get("baselineable_metric_id", missing),
5702
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
4457
5703
  "sortOrder": kwargs.get("sort_order", missing),
4458
5704
  "sortBy": kwargs.get("sort_by", missing)
4459
5705
  }
@@ -4483,7 +5729,7 @@ class StackMonitoringClient(object):
4483
5729
  method=method,
4484
5730
  query_params=query_params,
4485
5731
  header_params=header_params,
4486
- response_type="BaselineableMetricSummaryCollection",
5732
+ response_type="ConfigCollection",
4487
5733
  allow_control_chars=kwargs.get('allow_control_chars'),
4488
5734
  operation_name=operation_name,
4489
5735
  api_reference_link=api_reference_link,
@@ -4494,27 +5740,22 @@ class StackMonitoringClient(object):
4494
5740
  method=method,
4495
5741
  query_params=query_params,
4496
5742
  header_params=header_params,
4497
- response_type="BaselineableMetricSummaryCollection",
5743
+ response_type="ConfigCollection",
4498
5744
  allow_control_chars=kwargs.get('allow_control_chars'),
4499
5745
  operation_name=operation_name,
4500
5746
  api_reference_link=api_reference_link,
4501
5747
  required_arguments=required_arguments)
4502
5748
 
4503
- def list_configs(self, compartment_id, **kwargs):
5749
+ def list_defined_monitoring_templates(self, compartment_id, **kwargs):
4504
5750
  """
4505
- Get a list of configurations in a compartment.
5751
+ List Defined Monitoring Templates.
4506
5752
 
4507
5753
 
4508
5754
  :param str compartment_id: (required)
4509
- The ID of the compartment in which data is listed.
4510
-
4511
- :param str display_name: (optional)
4512
- A filter to return only resources that match the entire display name given.
4513
-
4514
- :param str type: (optional)
4515
- A filter to return only configuration items for a given config type.
5755
+ The `OCID`__ of the tenancy(root) for which
5756
+ defined monitored templates should be listed.
4516
5757
 
4517
- Allowed values are: "AUTO_PROMOTE", "LICENSE_AUTO_ASSIGN", "LICENSE_ENTERPRISE_EXTENSIBILITY"
5758
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
4518
5759
 
4519
5760
  :param int limit: (optional)
4520
5761
  For list pagination. The maximum number of results per page, or items to return in a
@@ -4530,22 +5771,22 @@ class StackMonitoringClient(object):
4530
5771
 
4531
5772
  __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
4532
5773
 
4533
- :param str lifecycle_state: (optional)
4534
- The current state of the Config.
5774
+ :param str sort_by: (optional)
5775
+ The field to sort by. Only one sort order may be provided.
5776
+ Default order for 'namespace' is ascending.
4535
5777
 
4536
- Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
5778
+ Allowed values are: "namespace"
5779
+
5780
+ :param str display_name: (optional)
5781
+ A filter to return monitoring template based on name.
4537
5782
 
4538
5783
  :param str sort_order: (optional)
4539
5784
  The sort order to use, either ascending (`ASC`) or descending (`DESC`).
4540
5785
 
4541
5786
  Allowed values are: "ASC", "DESC"
4542
5787
 
4543
- :param str sort_by: (optional)
4544
- The field to sort by. Only one sort order may be provided.
4545
- Default order for 'timeCreated' is descending.
4546
- Default order for 'displayName' and 'configType' is ascending.
4547
-
4548
- Allowed values are: "timeCreated", "configType", "displayName"
5788
+ :param list[str] resource_types: (optional)
5789
+ Multiple resource types filter.
4549
5790
 
4550
5791
  :param str opc_request_id: (optional)
4551
5792
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -4563,49 +5804,41 @@ class StackMonitoringClient(object):
4563
5804
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
4564
5805
  By default, the response will not allow control characters in strings
4565
5806
 
4566
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.ConfigCollection`
5807
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.DefinedMonitoringTemplateCollection`
4567
5808
  :rtype: :class:`~oci.response.Response`
4568
5809
 
4569
5810
  :example:
4570
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_configs.py.html>`__ to see an example of how to use list_configs API.
5811
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_defined_monitoring_templates.py.html>`__ to see an example of how to use list_defined_monitoring_templates API.
4571
5812
  """
4572
5813
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4573
5814
  required_arguments = ['compartmentId']
4574
- resource_path = "/configs"
5815
+ resource_path = "/definedMonitoringTemplates"
4575
5816
  method = "GET"
4576
- operation_name = "list_configs"
4577
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ConfigCollection/ListConfigs"
5817
+ operation_name = "list_defined_monitoring_templates"
5818
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/DefinedMonitoringTemplateSummary/ListDefinedMonitoringTemplates"
4578
5819
 
4579
5820
  # Don't accept unknown kwargs
4580
5821
  expected_kwargs = [
4581
5822
  "allow_control_chars",
4582
5823
  "retry_strategy",
4583
- "display_name",
4584
- "type",
4585
5824
  "limit",
4586
5825
  "page",
4587
- "lifecycle_state",
4588
- "sort_order",
4589
5826
  "sort_by",
5827
+ "display_name",
5828
+ "sort_order",
5829
+ "resource_types",
4590
5830
  "opc_request_id"
4591
5831
  ]
4592
5832
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
4593
5833
  if extra_kwargs:
4594
5834
  raise ValueError(
4595
- f"list_configs got unknown kwargs: {extra_kwargs!r}")
4596
-
4597
- if 'type' in kwargs:
4598
- type_allowed_values = ["AUTO_PROMOTE", "LICENSE_AUTO_ASSIGN", "LICENSE_ENTERPRISE_EXTENSIBILITY"]
4599
- if kwargs['type'] not in type_allowed_values:
4600
- raise ValueError(
4601
- f"Invalid value for `type`, must be one of { type_allowed_values }"
4602
- )
5835
+ f"list_defined_monitoring_templates got unknown kwargs: {extra_kwargs!r}")
4603
5836
 
4604
- if 'lifecycle_state' in kwargs:
4605
- lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
4606
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
5837
+ if 'sort_by' in kwargs:
5838
+ sort_by_allowed_values = ["namespace"]
5839
+ if kwargs['sort_by'] not in sort_by_allowed_values:
4607
5840
  raise ValueError(
4608
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
5841
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
4609
5842
  )
4610
5843
 
4611
5844
  if 'sort_order' in kwargs:
@@ -4615,22 +5848,14 @@ class StackMonitoringClient(object):
4615
5848
  f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
4616
5849
  )
4617
5850
 
4618
- if 'sort_by' in kwargs:
4619
- sort_by_allowed_values = ["timeCreated", "configType", "displayName"]
4620
- if kwargs['sort_by'] not in sort_by_allowed_values:
4621
- raise ValueError(
4622
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
4623
- )
4624
-
4625
5851
  query_params = {
4626
- "compartmentId": compartment_id,
4627
- "displayName": kwargs.get("display_name", missing),
4628
- "type": kwargs.get("type", missing),
4629
5852
  "limit": kwargs.get("limit", missing),
4630
5853
  "page": kwargs.get("page", missing),
4631
- "lifecycleState": kwargs.get("lifecycle_state", missing),
5854
+ "sortBy": kwargs.get("sort_by", missing),
5855
+ "displayName": kwargs.get("display_name", missing),
4632
5856
  "sortOrder": kwargs.get("sort_order", missing),
4633
- "sortBy": kwargs.get("sort_by", missing)
5857
+ "resourceTypes": self.base_client.generate_collection_format_param(kwargs.get("resource_types", missing), 'multi'),
5858
+ "compartmentId": compartment_id
4634
5859
  }
4635
5860
  query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
4636
5861
 
@@ -4658,7 +5883,7 @@ class StackMonitoringClient(object):
4658
5883
  method=method,
4659
5884
  query_params=query_params,
4660
5885
  header_params=header_params,
4661
- response_type="ConfigCollection",
5886
+ response_type="DefinedMonitoringTemplateCollection",
4662
5887
  allow_control_chars=kwargs.get('allow_control_chars'),
4663
5888
  operation_name=operation_name,
4664
5889
  api_reference_link=api_reference_link,
@@ -4669,7 +5894,7 @@ class StackMonitoringClient(object):
4669
5894
  method=method,
4670
5895
  query_params=query_params,
4671
5896
  header_params=header_params,
4672
- response_type="ConfigCollection",
5897
+ response_type="DefinedMonitoringTemplateCollection",
4673
5898
  allow_control_chars=kwargs.get('allow_control_chars'),
4674
5899
  operation_name=operation_name,
4675
5900
  api_reference_link=api_reference_link,
@@ -4732,7 +5957,7 @@ class StackMonitoringClient(object):
4732
5957
  :rtype: :class:`~oci.response.Response`
4733
5958
 
4734
5959
  :example:
4735
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_discovery_job_logs.py.html>`__ to see an example of how to use list_discovery_job_logs API.
5960
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_discovery_job_logs.py.html>`__ to see an example of how to use list_discovery_job_logs API.
4736
5961
  """
4737
5962
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4738
5963
  required_arguments = ['discoveryJobId']
@@ -4895,7 +6120,7 @@ class StackMonitoringClient(object):
4895
6120
  :rtype: :class:`~oci.response.Response`
4896
6121
 
4897
6122
  :example:
4898
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_discovery_jobs.py.html>`__ to see an example of how to use list_discovery_jobs API.
6123
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_discovery_jobs.py.html>`__ to see an example of how to use list_discovery_jobs API.
4899
6124
  """
4900
6125
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
4901
6126
  required_arguments = ['compartmentId']
@@ -5051,7 +6276,7 @@ class StackMonitoringClient(object):
5051
6276
  :rtype: :class:`~oci.response.Response`
5052
6277
 
5053
6278
  :example:
5054
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_maintenance_windows.py.html>`__ to see an example of how to use list_maintenance_windows API.
6279
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_maintenance_windows.py.html>`__ to see an example of how to use list_maintenance_windows API.
5055
6280
  """
5056
6281
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5057
6282
  required_arguments = ['compartmentId']
@@ -5234,7 +6459,7 @@ class StackMonitoringClient(object):
5234
6459
  :rtype: :class:`~oci.response.Response`
5235
6460
 
5236
6461
  :example:
5237
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_metric_extensions.py.html>`__ to see an example of how to use list_metric_extensions API.
6462
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_metric_extensions.py.html>`__ to see an example of how to use list_metric_extensions API.
5238
6463
  """
5239
6464
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5240
6465
  required_arguments = []
@@ -5410,7 +6635,7 @@ class StackMonitoringClient(object):
5410
6635
  :rtype: :class:`~oci.response.Response`
5411
6636
 
5412
6637
  :example:
5413
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_monitored_resource_tasks.py.html>`__ to see an example of how to use list_monitored_resource_tasks API.
6638
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_monitored_resource_tasks.py.html>`__ to see an example of how to use list_monitored_resource_tasks API.
5414
6639
  """
5415
6640
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5416
6641
  required_arguments = ['compartmentId']
@@ -5608,7 +6833,7 @@ class StackMonitoringClient(object):
5608
6833
  :rtype: :class:`~oci.response.Response`
5609
6834
 
5610
6835
  :example:
5611
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_monitored_resource_types.py.html>`__ to see an example of how to use list_monitored_resource_types API.
6836
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_monitored_resource_types.py.html>`__ to see an example of how to use list_monitored_resource_types API.
5612
6837
  """
5613
6838
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5614
6839
  required_arguments = ['compartmentId']
@@ -5779,7 +7004,7 @@ class StackMonitoringClient(object):
5779
7004
  :rtype: :class:`~oci.response.Response`
5780
7005
 
5781
7006
  :example:
5782
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_monitored_resources.py.html>`__ to see an example of how to use list_monitored_resources API.
7007
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_monitored_resources.py.html>`__ to see an example of how to use list_monitored_resources API.
5783
7008
  """
5784
7009
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5785
7010
  required_arguments = ['compartmentId']
@@ -5792,50 +7017,245 @@ class StackMonitoringClient(object):
5792
7017
  expected_kwargs = [
5793
7018
  "allow_control_chars",
5794
7019
  "retry_strategy",
5795
- "name",
5796
- "work_request_id",
5797
- "status",
5798
- "sort_by",
5799
- "sort_order",
7020
+ "name",
7021
+ "work_request_id",
7022
+ "status",
7023
+ "sort_by",
7024
+ "sort_order",
7025
+ "limit",
7026
+ "page",
7027
+ "opc_request_id"
7028
+ ]
7029
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7030
+ if extra_kwargs:
7031
+ raise ValueError(
7032
+ f"list_monitored_resources got unknown kwargs: {extra_kwargs!r}")
7033
+
7034
+ if 'status' in kwargs:
7035
+ status_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
7036
+ if kwargs['status'] not in status_allowed_values:
7037
+ raise ValueError(
7038
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
7039
+ )
7040
+
7041
+ if 'sort_by' in kwargs:
7042
+ sort_by_allowed_values = ["NAME", "TIME_CREATED"]
7043
+ if kwargs['sort_by'] not in sort_by_allowed_values:
7044
+ raise ValueError(
7045
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
7046
+ )
7047
+
7048
+ if 'sort_order' in kwargs:
7049
+ sort_order_allowed_values = ["ASC", "DESC"]
7050
+ if kwargs['sort_order'] not in sort_order_allowed_values:
7051
+ raise ValueError(
7052
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
7053
+ )
7054
+
7055
+ query_params = {
7056
+ "compartmentId": compartment_id,
7057
+ "name": kwargs.get("name", missing),
7058
+ "workRequestId": kwargs.get("work_request_id", missing),
7059
+ "status": kwargs.get("status", missing),
7060
+ "sortBy": kwargs.get("sort_by", missing),
7061
+ "sortOrder": kwargs.get("sort_order", missing),
7062
+ "limit": kwargs.get("limit", missing),
7063
+ "page": kwargs.get("page", missing)
7064
+ }
7065
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
7066
+
7067
+ header_params = {
7068
+ "accept": "application/json",
7069
+ "content-type": "application/json",
7070
+ "opc-request-id": kwargs.get("opc_request_id", missing)
7071
+ }
7072
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
7073
+
7074
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
7075
+ operation_retry_strategy=kwargs.get('retry_strategy'),
7076
+ client_retry_strategy=self.retry_strategy
7077
+ )
7078
+ if retry_strategy is None:
7079
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
7080
+
7081
+ if retry_strategy:
7082
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
7083
+ self.base_client.add_opc_client_retries_header(header_params)
7084
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
7085
+ return retry_strategy.make_retrying_call(
7086
+ self.base_client.call_api,
7087
+ resource_path=resource_path,
7088
+ method=method,
7089
+ query_params=query_params,
7090
+ header_params=header_params,
7091
+ response_type="MonitoredResourceCollection",
7092
+ allow_control_chars=kwargs.get('allow_control_chars'),
7093
+ operation_name=operation_name,
7094
+ api_reference_link=api_reference_link,
7095
+ required_arguments=required_arguments)
7096
+ else:
7097
+ return self.base_client.call_api(
7098
+ resource_path=resource_path,
7099
+ method=method,
7100
+ query_params=query_params,
7101
+ header_params=header_params,
7102
+ response_type="MonitoredResourceCollection",
7103
+ allow_control_chars=kwargs.get('allow_control_chars'),
7104
+ operation_name=operation_name,
7105
+ api_reference_link=api_reference_link,
7106
+ required_arguments=required_arguments)
7107
+
7108
+ def list_monitoring_templates(self, **kwargs):
7109
+ """
7110
+ Returns a list of Monitoring Templates.
7111
+
7112
+
7113
+ :param str opc_request_id: (optional)
7114
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
7115
+ particular request, please provide the request ID.
7116
+
7117
+ :param str compartment_id: (optional)
7118
+ The ID of the compartment in which data is listed.
7119
+
7120
+ :param str monitoring_template_id: (optional)
7121
+ A filter to return monitoring template based on input monitoringTemplateId
7122
+
7123
+ :param int limit: (optional)
7124
+ For list pagination. The maximum number of results per page, or items to return in a
7125
+ paginated \"List\" call. For important details about how pagination works, see
7126
+ `List Pagination`__.
7127
+
7128
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
7129
+
7130
+ :param str page: (optional)
7131
+ For list pagination. The value of the `opc-next-page` response header from the
7132
+ previous \"List\" call. For important details about how pagination works, see
7133
+ `List Pagination`__.
7134
+
7135
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
7136
+
7137
+ :param str sort_order: (optional)
7138
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
7139
+
7140
+ Allowed values are: "ASC", "DESC"
7141
+
7142
+ :param str sort_by: (optional)
7143
+ The field to sort by. Only one sort order may be provided.
7144
+ Default order for timeUpdated is descending.
7145
+
7146
+ Allowed values are: "displayName", "lifeCycleState", "status", "timeUpdated", "timeCreated"
7147
+
7148
+ :param str display_name: (optional)
7149
+ A filter to return monitoring template based on name.
7150
+
7151
+ :param str status: (optional)
7152
+ A filter to return monitoring template based on input status
7153
+
7154
+ Allowed values are: "NOT_APPLIED", "APPLIED", "PARTIAL_APPLIED"
7155
+
7156
+ :param str lifecycle_state: (optional)
7157
+ A filter to return monitoring template based on Lifecycle State
7158
+
7159
+ Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETED"
7160
+
7161
+ :param list[str] resource_types: (optional)
7162
+ Multiple resource types filter.
7163
+
7164
+ :param list[str] metric_name: (optional)
7165
+ metricName filter.
7166
+
7167
+ :param list[str] namespace: (optional)
7168
+ namespace filter.
7169
+
7170
+ :param obj retry_strategy: (optional)
7171
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
7172
+
7173
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
7174
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
7175
+
7176
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
7177
+
7178
+ :param bool allow_control_chars: (optional)
7179
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
7180
+ By default, the response will not allow control characters in strings
7181
+
7182
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoringTemplateCollection`
7183
+ :rtype: :class:`~oci.response.Response`
7184
+
7185
+ :example:
7186
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_monitoring_templates.py.html>`__ to see an example of how to use list_monitoring_templates API.
7187
+ """
7188
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7189
+ required_arguments = []
7190
+ resource_path = "/monitoringTemplates"
7191
+ method = "GET"
7192
+ operation_name = "list_monitoring_templates"
7193
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/ListMonitoringTemplates"
7194
+
7195
+ # Don't accept unknown kwargs
7196
+ expected_kwargs = [
7197
+ "allow_control_chars",
7198
+ "retry_strategy",
7199
+ "opc_request_id",
7200
+ "compartment_id",
7201
+ "monitoring_template_id",
5800
7202
  "limit",
5801
7203
  "page",
5802
- "opc_request_id"
7204
+ "sort_order",
7205
+ "sort_by",
7206
+ "display_name",
7207
+ "status",
7208
+ "lifecycle_state",
7209
+ "resource_types",
7210
+ "metric_name",
7211
+ "namespace"
5803
7212
  ]
5804
7213
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
5805
7214
  if extra_kwargs:
5806
7215
  raise ValueError(
5807
- f"list_monitored_resources got unknown kwargs: {extra_kwargs!r}")
7216
+ f"list_monitoring_templates got unknown kwargs: {extra_kwargs!r}")
5808
7217
 
5809
- if 'status' in kwargs:
5810
- status_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
5811
- if kwargs['status'] not in status_allowed_values:
7218
+ if 'sort_order' in kwargs:
7219
+ sort_order_allowed_values = ["ASC", "DESC"]
7220
+ if kwargs['sort_order'] not in sort_order_allowed_values:
5812
7221
  raise ValueError(
5813
- f"Invalid value for `status`, must be one of { status_allowed_values }"
7222
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
5814
7223
  )
5815
7224
 
5816
7225
  if 'sort_by' in kwargs:
5817
- sort_by_allowed_values = ["NAME", "TIME_CREATED"]
7226
+ sort_by_allowed_values = ["displayName", "lifeCycleState", "status", "timeUpdated", "timeCreated"]
5818
7227
  if kwargs['sort_by'] not in sort_by_allowed_values:
5819
7228
  raise ValueError(
5820
7229
  f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
5821
7230
  )
5822
7231
 
5823
- if 'sort_order' in kwargs:
5824
- sort_order_allowed_values = ["ASC", "DESC"]
5825
- if kwargs['sort_order'] not in sort_order_allowed_values:
7232
+ if 'status' in kwargs:
7233
+ status_allowed_values = ["NOT_APPLIED", "APPLIED", "PARTIAL_APPLIED"]
7234
+ if kwargs['status'] not in status_allowed_values:
5826
7235
  raise ValueError(
5827
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
7236
+ f"Invalid value for `status`, must be one of { status_allowed_values }"
7237
+ )
7238
+
7239
+ if 'lifecycle_state' in kwargs:
7240
+ lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETED"]
7241
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
7242
+ raise ValueError(
7243
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
5828
7244
  )
5829
7245
 
5830
7246
  query_params = {
5831
- "compartmentId": compartment_id,
5832
- "name": kwargs.get("name", missing),
5833
- "workRequestId": kwargs.get("work_request_id", missing),
5834
- "status": kwargs.get("status", missing),
5835
- "sortBy": kwargs.get("sort_by", missing),
5836
- "sortOrder": kwargs.get("sort_order", missing),
7247
+ "compartmentId": kwargs.get("compartment_id", missing),
7248
+ "monitoringTemplateId": kwargs.get("monitoring_template_id", missing),
5837
7249
  "limit": kwargs.get("limit", missing),
5838
- "page": kwargs.get("page", missing)
7250
+ "page": kwargs.get("page", missing),
7251
+ "sortOrder": kwargs.get("sort_order", missing),
7252
+ "sortBy": kwargs.get("sort_by", missing),
7253
+ "displayName": kwargs.get("display_name", missing),
7254
+ "status": kwargs.get("status", missing),
7255
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
7256
+ "resourceTypes": self.base_client.generate_collection_format_param(kwargs.get("resource_types", missing), 'multi'),
7257
+ "metricName": self.base_client.generate_collection_format_param(kwargs.get("metric_name", missing), 'multi'),
7258
+ "namespace": self.base_client.generate_collection_format_param(kwargs.get("namespace", missing), 'multi')
5839
7259
  }
5840
7260
  query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
5841
7261
 
@@ -5863,7 +7283,7 @@ class StackMonitoringClient(object):
5863
7283
  method=method,
5864
7284
  query_params=query_params,
5865
7285
  header_params=header_params,
5866
- response_type="MonitoredResourceCollection",
7286
+ response_type="MonitoringTemplateCollection",
5867
7287
  allow_control_chars=kwargs.get('allow_control_chars'),
5868
7288
  operation_name=operation_name,
5869
7289
  api_reference_link=api_reference_link,
@@ -5874,7 +7294,7 @@ class StackMonitoringClient(object):
5874
7294
  method=method,
5875
7295
  query_params=query_params,
5876
7296
  header_params=header_params,
5877
- response_type="MonitoredResourceCollection",
7297
+ response_type="MonitoringTemplateCollection",
5878
7298
  allow_control_chars=kwargs.get('allow_control_chars'),
5879
7299
  operation_name=operation_name,
5880
7300
  api_reference_link=api_reference_link,
@@ -5935,7 +7355,7 @@ class StackMonitoringClient(object):
5935
7355
  :rtype: :class:`~oci.response.Response`
5936
7356
 
5937
7357
  :example:
5938
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_process_sets.py.html>`__ to see an example of how to use list_process_sets API.
7358
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_process_sets.py.html>`__ to see an example of how to use list_process_sets API.
5939
7359
  """
5940
7360
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
5941
7361
  required_arguments = ['compartmentId']
@@ -6079,7 +7499,7 @@ class StackMonitoringClient(object):
6079
7499
  :rtype: :class:`~oci.response.Response`
6080
7500
 
6081
7501
  :example:
6082
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
7502
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
6083
7503
  """
6084
7504
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6085
7505
  required_arguments = ['workRequestId']
@@ -6232,7 +7652,7 @@ class StackMonitoringClient(object):
6232
7652
  :rtype: :class:`~oci.response.Response`
6233
7653
 
6234
7654
  :example:
6235
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
7655
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
6236
7656
  """
6237
7657
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6238
7658
  required_arguments = ['workRequestId']
@@ -6345,7 +7765,7 @@ class StackMonitoringClient(object):
6345
7765
  :param str status: (optional)
6346
7766
  A filter to return only resources their lifecycleState matches the given OperationStatus.
6347
7767
 
6348
- Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
7768
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"
6349
7769
 
6350
7770
  :param str resource_id: (optional)
6351
7771
  The ID of the resource affected by the work request.
@@ -6394,7 +7814,7 @@ class StackMonitoringClient(object):
6394
7814
  :rtype: :class:`~oci.response.Response`
6395
7815
 
6396
7816
  :example:
6397
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
7817
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
6398
7818
  """
6399
7819
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6400
7820
  required_arguments = ['compartmentId']
@@ -6422,7 +7842,7 @@ class StackMonitoringClient(object):
6422
7842
  f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
6423
7843
 
6424
7844
  if 'status' in kwargs:
6425
- status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
7845
+ status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]
6426
7846
  if kwargs['status'] not in status_allowed_values:
6427
7847
  raise ValueError(
6428
7848
  f"Invalid value for `status`, must be one of { status_allowed_values }"
@@ -6546,7 +7966,7 @@ class StackMonitoringClient(object):
6546
7966
  :rtype: :class:`~oci.response.Response`
6547
7967
 
6548
7968
  :example:
6549
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/manage_license.py.html>`__ to see an example of how to use manage_license API.
7969
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/manage_license.py.html>`__ to see an example of how to use manage_license API.
6550
7970
  """
6551
7971
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6552
7972
  required_arguments = ['monitoredResourceId']
@@ -6666,7 +8086,7 @@ class StackMonitoringClient(object):
6666
8086
  :rtype: :class:`~oci.response.Response`
6667
8087
 
6668
8088
  :example:
6669
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/publish_metric_extension.py.html>`__ to see an example of how to use publish_metric_extension API.
8089
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/publish_metric_extension.py.html>`__ to see an example of how to use publish_metric_extension API.
6670
8090
  """
6671
8091
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6672
8092
  required_arguments = ['metricExtensionId']
@@ -6756,7 +8176,7 @@ class StackMonitoringClient(object):
6756
8176
  :param str license: (optional)
6757
8177
  Filter to return resource counts that match with the given licence edition.
6758
8178
 
6759
- Allowed values are: "STANDARD_EDITION", "ENTERPRISE_EDITION"
8179
+ Allowed values are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_FOR_GPU_INFRASTRUCTURE"
6760
8180
 
6761
8181
  :param str resource_type: (optional)
6762
8182
  A filter to return resource counts that match exact resource type.
@@ -6805,7 +8225,7 @@ class StackMonitoringClient(object):
6805
8225
  :rtype: :class:`~oci.response.Response`
6806
8226
 
6807
8227
  :example:
6808
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/request_monitored_resources_summarized_count.py.html>`__ to see an example of how to use request_monitored_resources_summarized_count API.
8228
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/request_monitored_resources_summarized_count.py.html>`__ to see an example of how to use request_monitored_resources_summarized_count API.
6809
8229
  """
6810
8230
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6811
8231
  required_arguments = ['compartmentId']
@@ -6840,7 +8260,7 @@ class StackMonitoringClient(object):
6840
8260
  )
6841
8261
 
6842
8262
  if 'license' in kwargs:
6843
- license_allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION"]
8263
+ license_allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_FOR_GPU_INFRASTRUCTURE"]
6844
8264
  if kwargs['license'] not in license_allowed_values:
6845
8265
  raise ValueError(
6846
8266
  f"Invalid value for `license`, must be one of { license_allowed_values }"
@@ -6861,12 +8281,238 @@ class StackMonitoringClient(object):
6861
8281
  )
6862
8282
 
6863
8283
  query_params = {
6864
- "compartmentId": compartment_id,
6865
- "groupBy": kwargs.get("group_by", missing),
6866
- "license": kwargs.get("license", missing),
6867
- "resourceType": kwargs.get("resource_type", missing),
6868
- "sortBy": kwargs.get("sort_by", missing),
6869
- "sortOrder": kwargs.get("sort_order", missing),
8284
+ "compartmentId": compartment_id,
8285
+ "groupBy": kwargs.get("group_by", missing),
8286
+ "license": kwargs.get("license", missing),
8287
+ "resourceType": kwargs.get("resource_type", missing),
8288
+ "sortBy": kwargs.get("sort_by", missing),
8289
+ "sortOrder": kwargs.get("sort_order", missing),
8290
+ "limit": kwargs.get("limit", missing),
8291
+ "page": kwargs.get("page", missing)
8292
+ }
8293
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
8294
+
8295
+ header_params = {
8296
+ "accept": "application/json",
8297
+ "content-type": "application/json",
8298
+ "opc-request-id": kwargs.get("opc_request_id", missing)
8299
+ }
8300
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
8301
+
8302
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
8303
+ operation_retry_strategy=kwargs.get('retry_strategy'),
8304
+ client_retry_strategy=self.retry_strategy
8305
+ )
8306
+ if retry_strategy is None:
8307
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
8308
+
8309
+ if retry_strategy:
8310
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
8311
+ self.base_client.add_opc_client_retries_header(header_params)
8312
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
8313
+ return retry_strategy.make_retrying_call(
8314
+ self.base_client.call_api,
8315
+ resource_path=resource_path,
8316
+ method=method,
8317
+ query_params=query_params,
8318
+ header_params=header_params,
8319
+ response_type="MonitoredResourcesCountAggregationCollection",
8320
+ allow_control_chars=kwargs.get('allow_control_chars'),
8321
+ operation_name=operation_name,
8322
+ api_reference_link=api_reference_link,
8323
+ required_arguments=required_arguments)
8324
+ else:
8325
+ return self.base_client.call_api(
8326
+ resource_path=resource_path,
8327
+ method=method,
8328
+ query_params=query_params,
8329
+ header_params=header_params,
8330
+ response_type="MonitoredResourcesCountAggregationCollection",
8331
+ allow_control_chars=kwargs.get('allow_control_chars'),
8332
+ operation_name=operation_name,
8333
+ api_reference_link=api_reference_link,
8334
+ required_arguments=required_arguments)
8335
+
8336
+ def request_summarized_metric_extensions_metrics(self, request_summarized_metric_extensions_metrics_details, **kwargs):
8337
+ """
8338
+ Gets metric extension metrics count based on the aggregation criteria specified using request body.
8339
+ Either metricExtensionId or compartmentId must be passed even when no other filter property is passed.
8340
+
8341
+
8342
+ :param oci.stack_monitoring.models.RequestSummarizedMetricExtensionsMetricsDetails request_summarized_metric_extensions_metrics_details: (required)
8343
+ Summarized Metric details to filter the data that match the criteria specified in the request.
8344
+
8345
+ :param int limit: (optional)
8346
+ For list pagination. The maximum number of results per page, or items to return in a
8347
+ paginated \"List\" call. For important details about how pagination works, see
8348
+ `List Pagination`__.
8349
+
8350
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
8351
+
8352
+ :param str page: (optional)
8353
+ For list pagination. The value of the `opc-next-page` response header from the
8354
+ previous \"List\" call. For important details about how pagination works, see
8355
+ `List Pagination`__.
8356
+
8357
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
8358
+
8359
+ :param str opc_request_id: (optional)
8360
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
8361
+ particular request, please provide the request ID.
8362
+
8363
+ :param obj retry_strategy: (optional)
8364
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
8365
+
8366
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
8367
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
8368
+
8369
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
8370
+
8371
+ :param bool allow_control_chars: (optional)
8372
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
8373
+ By default, the response will not allow control characters in strings
8374
+
8375
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtensionMetricAggregationCollection`
8376
+ :rtype: :class:`~oci.response.Response`
8377
+
8378
+ :example:
8379
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/request_summarized_metric_extensions_metrics.py.html>`__ to see an example of how to use request_summarized_metric_extensions_metrics API.
8380
+ """
8381
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8382
+ required_arguments = []
8383
+ resource_path = "/metricExtensions/actions/summarizeMetrics"
8384
+ method = "POST"
8385
+ operation_name = "request_summarized_metric_extensions_metrics"
8386
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/RequestSummarizedMetricExtensionsMetrics"
8387
+
8388
+ # Don't accept unknown kwargs
8389
+ expected_kwargs = [
8390
+ "allow_control_chars",
8391
+ "retry_strategy",
8392
+ "limit",
8393
+ "page",
8394
+ "opc_request_id"
8395
+ ]
8396
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
8397
+ if extra_kwargs:
8398
+ raise ValueError(
8399
+ f"request_summarized_metric_extensions_metrics got unknown kwargs: {extra_kwargs!r}")
8400
+
8401
+ query_params = {
8402
+ "limit": kwargs.get("limit", missing),
8403
+ "page": kwargs.get("page", missing)
8404
+ }
8405
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
8406
+
8407
+ header_params = {
8408
+ "accept": "application/json",
8409
+ "content-type": "application/json",
8410
+ "opc-request-id": kwargs.get("opc_request_id", missing)
8411
+ }
8412
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
8413
+
8414
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
8415
+ operation_retry_strategy=kwargs.get('retry_strategy'),
8416
+ client_retry_strategy=self.retry_strategy
8417
+ )
8418
+ if retry_strategy is None:
8419
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
8420
+
8421
+ if retry_strategy:
8422
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
8423
+ self.base_client.add_opc_client_retries_header(header_params)
8424
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
8425
+ return retry_strategy.make_retrying_call(
8426
+ self.base_client.call_api,
8427
+ resource_path=resource_path,
8428
+ method=method,
8429
+ query_params=query_params,
8430
+ header_params=header_params,
8431
+ body=request_summarized_metric_extensions_metrics_details,
8432
+ response_type="MetricExtensionMetricAggregationCollection",
8433
+ allow_control_chars=kwargs.get('allow_control_chars'),
8434
+ operation_name=operation_name,
8435
+ api_reference_link=api_reference_link,
8436
+ required_arguments=required_arguments)
8437
+ else:
8438
+ return self.base_client.call_api(
8439
+ resource_path=resource_path,
8440
+ method=method,
8441
+ query_params=query_params,
8442
+ header_params=header_params,
8443
+ body=request_summarized_metric_extensions_metrics_details,
8444
+ response_type="MetricExtensionMetricAggregationCollection",
8445
+ allow_control_chars=kwargs.get('allow_control_chars'),
8446
+ operation_name=operation_name,
8447
+ api_reference_link=api_reference_link,
8448
+ required_arguments=required_arguments)
8449
+
8450
+ def request_summarized_metric_extensions_resources(self, request_summarized_metric_extensions_resources_details, **kwargs):
8451
+ """
8452
+ Gets metric extension resources count based on the aggregation criteria specified using request body.
8453
+ Either metricExtensionId or compartmentId should be passed, if no other property is passed.
8454
+
8455
+
8456
+ :param oci.stack_monitoring.models.RequestSummarizedMetricExtensionsResourcesDetails request_summarized_metric_extensions_resources_details: (required)
8457
+ Summarize Resource details to filter the data that match the criteria specified in the request.
8458
+
8459
+ :param int limit: (optional)
8460
+ For list pagination. The maximum number of results per page, or items to return in a
8461
+ paginated \"List\" call. For important details about how pagination works, see
8462
+ `List Pagination`__.
8463
+
8464
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
8465
+
8466
+ :param str page: (optional)
8467
+ For list pagination. The value of the `opc-next-page` response header from the
8468
+ previous \"List\" call. For important details about how pagination works, see
8469
+ `List Pagination`__.
8470
+
8471
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
8472
+
8473
+ :param str opc_request_id: (optional)
8474
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
8475
+ particular request, please provide the request ID.
8476
+
8477
+ :param obj retry_strategy: (optional)
8478
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
8479
+
8480
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
8481
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
8482
+
8483
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
8484
+
8485
+ :param bool allow_control_chars: (optional)
8486
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
8487
+ By default, the response will not allow control characters in strings
8488
+
8489
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtensionResourceAggregationCollection`
8490
+ :rtype: :class:`~oci.response.Response`
8491
+
8492
+ :example:
8493
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/request_summarized_metric_extensions_resources.py.html>`__ to see an example of how to use request_summarized_metric_extensions_resources API.
8494
+ """
8495
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8496
+ required_arguments = []
8497
+ resource_path = "/metricExtensions/actions/summarizeResources"
8498
+ method = "POST"
8499
+ operation_name = "request_summarized_metric_extensions_resources"
8500
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/RequestSummarizedMetricExtensionsResources"
8501
+
8502
+ # Don't accept unknown kwargs
8503
+ expected_kwargs = [
8504
+ "allow_control_chars",
8505
+ "retry_strategy",
8506
+ "limit",
8507
+ "page",
8508
+ "opc_request_id"
8509
+ ]
8510
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
8511
+ if extra_kwargs:
8512
+ raise ValueError(
8513
+ f"request_summarized_metric_extensions_resources got unknown kwargs: {extra_kwargs!r}")
8514
+
8515
+ query_params = {
6870
8516
  "limit": kwargs.get("limit", missing),
6871
8517
  "page": kwargs.get("page", missing)
6872
8518
  }
@@ -6896,7 +8542,8 @@ class StackMonitoringClient(object):
6896
8542
  method=method,
6897
8543
  query_params=query_params,
6898
8544
  header_params=header_params,
6899
- response_type="MonitoredResourcesCountAggregationCollection",
8545
+ body=request_summarized_metric_extensions_resources_details,
8546
+ response_type="MetricExtensionResourceAggregationCollection",
6900
8547
  allow_control_chars=kwargs.get('allow_control_chars'),
6901
8548
  operation_name=operation_name,
6902
8549
  api_reference_link=api_reference_link,
@@ -6907,7 +8554,8 @@ class StackMonitoringClient(object):
6907
8554
  method=method,
6908
8555
  query_params=query_params,
6909
8556
  header_params=header_params,
6910
- response_type="MonitoredResourcesCountAggregationCollection",
8557
+ body=request_summarized_metric_extensions_resources_details,
8558
+ response_type="MetricExtensionResourceAggregationCollection",
6911
8559
  allow_control_chars=kwargs.get('allow_control_chars'),
6912
8560
  operation_name=operation_name,
6913
8561
  api_reference_link=api_reference_link,
@@ -6950,7 +8598,7 @@ class StackMonitoringClient(object):
6950
8598
  :rtype: :class:`~oci.response.Response`
6951
8599
 
6952
8600
  :example:
6953
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/retry_failed_maintenance_window_operation.py.html>`__ to see an example of how to use retry_failed_maintenance_window_operation API.
8601
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/retry_failed_maintenance_window_operation.py.html>`__ to see an example of how to use retry_failed_maintenance_window_operation API.
6954
8602
  """
6955
8603
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
6956
8604
  required_arguments = ['maintenanceWindowId']
@@ -7100,7 +8748,7 @@ class StackMonitoringClient(object):
7100
8748
  :rtype: :class:`~oci.response.Response`
7101
8749
 
7102
8750
  :example:
7103
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/search_associated_resources.py.html>`__ to see an example of how to use search_associated_resources API.
8751
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/search_associated_resources.py.html>`__ to see an example of how to use search_associated_resources API.
7104
8752
  """
7105
8753
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7106
8754
  required_arguments = []
@@ -7236,7 +8884,7 @@ class StackMonitoringClient(object):
7236
8884
  :rtype: :class:`~oci.response.Response`
7237
8885
 
7238
8886
  :example:
7239
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/search_monitored_resource_associations.py.html>`__ to see an example of how to use search_monitored_resource_associations API.
8887
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/search_monitored_resource_associations.py.html>`__ to see an example of how to use search_monitored_resource_associations API.
7240
8888
  """
7241
8889
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7242
8890
  required_arguments = []
@@ -7385,7 +9033,7 @@ class StackMonitoringClient(object):
7385
9033
  :rtype: :class:`~oci.response.Response`
7386
9034
 
7387
9035
  :example:
7388
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/search_monitored_resource_members.py.html>`__ to see an example of how to use search_monitored_resource_members API.
9036
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/search_monitored_resource_members.py.html>`__ to see an example of how to use search_monitored_resource_members API.
7389
9037
  """
7390
9038
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7391
9039
  required_arguments = ['monitoredResourceId']
@@ -7524,18 +9172,258 @@ class StackMonitoringClient(object):
7524
9172
  return and should be a query string parameter called \"fields\" of
7525
9173
  an array type, provide the values as enums, and use collectionFormat.
7526
9174
 
7527
- :param list[str] exclude_fields: (optional)
7528
- Partial response refers to an optimization technique offered
7529
- by the RESTful web APIs, to return all the information except
7530
- the fields requested to be excluded (excludeFields) by the client.
7531
- In this mechanism, the client
7532
- sends the exclude field names as the query parameters for
7533
- an API to the server, and the server trims down the default
7534
- response content by removing the fields that are not required
7535
- by the client. The parameter controls which fields to
7536
- exlude and to return and should be a query string parameter
7537
- called \"excludeFields\" of an array type, provide the values
7538
- as enums, and use collectionFormat.
9175
+ :param list[str] exclude_fields: (optional)
9176
+ Partial response refers to an optimization technique offered
9177
+ by the RESTful web APIs, to return all the information except
9178
+ the fields requested to be excluded (excludeFields) by the client.
9179
+ In this mechanism, the client
9180
+ sends the exclude field names as the query parameters for
9181
+ an API to the server, and the server trims down the default
9182
+ response content by removing the fields that are not required
9183
+ by the client. The parameter controls which fields to
9184
+ exlude and to return and should be a query string parameter
9185
+ called \"excludeFields\" of an array type, provide the values
9186
+ as enums, and use collectionFormat.
9187
+
9188
+ :param str opc_request_id: (optional)
9189
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
9190
+ particular request, please provide the request ID.
9191
+
9192
+ :param str opc_retry_token: (optional)
9193
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
9194
+ server error without risk of executing that same action again. Retry tokens expire after 24
9195
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
9196
+ has been deleted and purged from the system, then a retry of the original creation request
9197
+ might be rejected.
9198
+
9199
+ :param str if_match: (optional)
9200
+ For optimistic concurrency control. In the PUT or DELETE call
9201
+ for a resource, set the `if-match` parameter to the value of the
9202
+ etag from a previous GET or POST response for that resource.
9203
+ The resource will be updated or deleted only if the etag you
9204
+ provide matches the resource's current etag value.
9205
+
9206
+ :param obj retry_strategy: (optional)
9207
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
9208
+
9209
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
9210
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
9211
+
9212
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
9213
+
9214
+ :param bool allow_control_chars: (optional)
9215
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
9216
+ By default, the response will not allow control characters in strings
9217
+
9218
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoredResourceCollection`
9219
+ :rtype: :class:`~oci.response.Response`
9220
+
9221
+ :example:
9222
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/search_monitored_resources.py.html>`__ to see an example of how to use search_monitored_resources API.
9223
+ """
9224
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9225
+ required_arguments = []
9226
+ resource_path = "/monitoredResources/actions/search"
9227
+ method = "POST"
9228
+ operation_name = "search_monitored_resources"
9229
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/SearchMonitoredResources"
9230
+
9231
+ # Don't accept unknown kwargs
9232
+ expected_kwargs = [
9233
+ "allow_control_chars",
9234
+ "retry_strategy",
9235
+ "limit",
9236
+ "page",
9237
+ "fields",
9238
+ "exclude_fields",
9239
+ "opc_request_id",
9240
+ "opc_retry_token",
9241
+ "if_match"
9242
+ ]
9243
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
9244
+ if extra_kwargs:
9245
+ raise ValueError(
9246
+ f"search_monitored_resources got unknown kwargs: {extra_kwargs!r}")
9247
+
9248
+ query_params = {
9249
+ "limit": kwargs.get("limit", missing),
9250
+ "page": kwargs.get("page", missing),
9251
+ "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
9252
+ "excludeFields": self.base_client.generate_collection_format_param(kwargs.get("exclude_fields", missing), 'multi')
9253
+ }
9254
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
9255
+
9256
+ header_params = {
9257
+ "accept": "application/json",
9258
+ "content-type": "application/json",
9259
+ "opc-request-id": kwargs.get("opc_request_id", missing),
9260
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
9261
+ "if-match": kwargs.get("if_match", missing)
9262
+ }
9263
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
9264
+
9265
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
9266
+ operation_retry_strategy=kwargs.get('retry_strategy'),
9267
+ client_retry_strategy=self.retry_strategy
9268
+ )
9269
+ if retry_strategy is None:
9270
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
9271
+
9272
+ if retry_strategy:
9273
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
9274
+ self.base_client.add_opc_retry_token_if_needed(header_params)
9275
+ self.base_client.add_opc_client_retries_header(header_params)
9276
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
9277
+ return retry_strategy.make_retrying_call(
9278
+ self.base_client.call_api,
9279
+ resource_path=resource_path,
9280
+ method=method,
9281
+ query_params=query_params,
9282
+ header_params=header_params,
9283
+ body=search_monitored_resources_details,
9284
+ response_type="MonitoredResourceCollection",
9285
+ allow_control_chars=kwargs.get('allow_control_chars'),
9286
+ operation_name=operation_name,
9287
+ api_reference_link=api_reference_link,
9288
+ required_arguments=required_arguments)
9289
+ else:
9290
+ return self.base_client.call_api(
9291
+ resource_path=resource_path,
9292
+ method=method,
9293
+ query_params=query_params,
9294
+ header_params=header_params,
9295
+ body=search_monitored_resources_details,
9296
+ response_type="MonitoredResourceCollection",
9297
+ allow_control_chars=kwargs.get('allow_control_chars'),
9298
+ operation_name=operation_name,
9299
+ api_reference_link=api_reference_link,
9300
+ required_arguments=required_arguments)
9301
+
9302
+ def stop_maintenance_window(self, maintenance_window_id, **kwargs):
9303
+ """
9304
+ Stop a maintenance window before the end time is reached.
9305
+
9306
+
9307
+ :param str maintenance_window_id: (required)
9308
+ The `OCID`__ of maintenance window.
9309
+
9310
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9311
+
9312
+ :param str if_match: (optional)
9313
+ For optimistic concurrency control. In the PUT or DELETE call
9314
+ for a resource, set the `if-match` parameter to the value of the
9315
+ etag from a previous GET or POST response for that resource.
9316
+ The resource will be updated or deleted only if the etag you
9317
+ provide matches the resource's current etag value.
9318
+
9319
+ :param str opc_request_id: (optional)
9320
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
9321
+ particular request, please provide the request ID.
9322
+
9323
+ :param obj retry_strategy: (optional)
9324
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
9325
+
9326
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
9327
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
9328
+
9329
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
9330
+
9331
+ :param bool allow_control_chars: (optional)
9332
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
9333
+ By default, the response will not allow control characters in strings
9334
+
9335
+ :return: A :class:`~oci.response.Response` object with data of type None
9336
+ :rtype: :class:`~oci.response.Response`
9337
+
9338
+ :example:
9339
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/stop_maintenance_window.py.html>`__ to see an example of how to use stop_maintenance_window API.
9340
+ """
9341
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
9342
+ required_arguments = ['maintenanceWindowId']
9343
+ resource_path = "/maintenanceWindows/{maintenanceWindowId}/actions/stop"
9344
+ method = "POST"
9345
+ operation_name = "stop_maintenance_window"
9346
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/StopMaintenanceWindow"
9347
+
9348
+ # Don't accept unknown kwargs
9349
+ expected_kwargs = [
9350
+ "allow_control_chars",
9351
+ "retry_strategy",
9352
+ "if_match",
9353
+ "opc_request_id"
9354
+ ]
9355
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
9356
+ if extra_kwargs:
9357
+ raise ValueError(
9358
+ f"stop_maintenance_window got unknown kwargs: {extra_kwargs!r}")
9359
+
9360
+ path_params = {
9361
+ "maintenanceWindowId": maintenance_window_id
9362
+ }
9363
+
9364
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
9365
+
9366
+ for (k, v) in six.iteritems(path_params):
9367
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
9368
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
9369
+
9370
+ header_params = {
9371
+ "accept": "application/json",
9372
+ "content-type": "application/json",
9373
+ "if-match": kwargs.get("if_match", missing),
9374
+ "opc-request-id": kwargs.get("opc_request_id", missing)
9375
+ }
9376
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
9377
+
9378
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
9379
+ operation_retry_strategy=kwargs.get('retry_strategy'),
9380
+ client_retry_strategy=self.retry_strategy
9381
+ )
9382
+
9383
+ if retry_strategy:
9384
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
9385
+ self.base_client.add_opc_client_retries_header(header_params)
9386
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
9387
+ return retry_strategy.make_retrying_call(
9388
+ self.base_client.call_api,
9389
+ resource_path=resource_path,
9390
+ method=method,
9391
+ path_params=path_params,
9392
+ header_params=header_params,
9393
+ allow_control_chars=kwargs.get('allow_control_chars'),
9394
+ operation_name=operation_name,
9395
+ api_reference_link=api_reference_link,
9396
+ required_arguments=required_arguments)
9397
+ else:
9398
+ return self.base_client.call_api(
9399
+ resource_path=resource_path,
9400
+ method=method,
9401
+ path_params=path_params,
9402
+ header_params=header_params,
9403
+ allow_control_chars=kwargs.get('allow_control_chars'),
9404
+ operation_name=operation_name,
9405
+ api_reference_link=api_reference_link,
9406
+ required_arguments=required_arguments)
9407
+
9408
+ def test_metric_extension(self, metric_extension_id, test_metric_extension_details, **kwargs):
9409
+ """
9410
+ Performs test of Metric Extension on a specific resource Id
9411
+
9412
+
9413
+ :param str metric_extension_id: (required)
9414
+ The `OCID`__ of the metric extension resource.
9415
+
9416
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
9417
+
9418
+ :param oci.stack_monitoring.models.TestMetricExtensionDetails test_metric_extension_details: (required)
9419
+ It contains OCID of resource.
9420
+
9421
+ :param str if_match: (optional)
9422
+ For optimistic concurrency control. In the PUT or DELETE call
9423
+ for a resource, set the `if-match` parameter to the value of the
9424
+ etag from a previous GET or POST response for that resource.
9425
+ The resource will be updated or deleted only if the etag you
9426
+ provide matches the resource's current etag value.
7539
9427
 
7540
9428
  :param str opc_request_id: (optional)
7541
9429
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
@@ -7548,17 +9436,10 @@ class StackMonitoringClient(object):
7548
9436
  has been deleted and purged from the system, then a retry of the original creation request
7549
9437
  might be rejected.
7550
9438
 
7551
- :param str if_match: (optional)
7552
- For optimistic concurrency control. In the PUT or DELETE call
7553
- for a resource, set the `if-match` parameter to the value of the
7554
- etag from a previous GET or POST response for that resource.
7555
- The resource will be updated or deleted only if the etag you
7556
- provide matches the resource's current etag value.
7557
-
7558
9439
  :param obj retry_strategy: (optional)
7559
9440
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
7560
9441
 
7561
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
9442
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
7562
9443
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
7563
9444
 
7564
9445
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -7567,50 +9448,48 @@ class StackMonitoringClient(object):
7567
9448
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
7568
9449
  By default, the response will not allow control characters in strings
7569
9450
 
7570
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoredResourceCollection`
9451
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.TestMetricExtensionData`
7571
9452
  :rtype: :class:`~oci.response.Response`
7572
9453
 
7573
9454
  :example:
7574
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/search_monitored_resources.py.html>`__ to see an example of how to use search_monitored_resources API.
9455
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/test_metric_extension.py.html>`__ to see an example of how to use test_metric_extension API.
7575
9456
  """
7576
9457
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7577
- required_arguments = []
7578
- resource_path = "/monitoredResources/actions/search"
9458
+ required_arguments = ['metricExtensionId']
9459
+ resource_path = "/metricExtensions/{metricExtensionId}/actions/test"
7579
9460
  method = "POST"
7580
- operation_name = "search_monitored_resources"
7581
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/SearchMonitoredResources"
9461
+ operation_name = "test_metric_extension"
9462
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/TestMetricExtension"
7582
9463
 
7583
9464
  # Don't accept unknown kwargs
7584
9465
  expected_kwargs = [
7585
9466
  "allow_control_chars",
7586
9467
  "retry_strategy",
7587
- "limit",
7588
- "page",
7589
- "fields",
7590
- "exclude_fields",
9468
+ "if_match",
7591
9469
  "opc_request_id",
7592
- "opc_retry_token",
7593
- "if_match"
9470
+ "opc_retry_token"
7594
9471
  ]
7595
9472
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7596
9473
  if extra_kwargs:
7597
9474
  raise ValueError(
7598
- f"search_monitored_resources got unknown kwargs: {extra_kwargs!r}")
9475
+ f"test_metric_extension got unknown kwargs: {extra_kwargs!r}")
7599
9476
 
7600
- query_params = {
7601
- "limit": kwargs.get("limit", missing),
7602
- "page": kwargs.get("page", missing),
7603
- "fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'multi'),
7604
- "excludeFields": self.base_client.generate_collection_format_param(kwargs.get("exclude_fields", missing), 'multi')
9477
+ path_params = {
9478
+ "metricExtensionId": metric_extension_id
7605
9479
  }
7606
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
9480
+
9481
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
9482
+
9483
+ for (k, v) in six.iteritems(path_params):
9484
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
9485
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
7607
9486
 
7608
9487
  header_params = {
7609
9488
  "accept": "application/json",
7610
9489
  "content-type": "application/json",
9490
+ "if-match": kwargs.get("if_match", missing),
7611
9491
  "opc-request-id": kwargs.get("opc_request_id", missing),
7612
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
7613
- "if-match": kwargs.get("if_match", missing)
9492
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
7614
9493
  }
7615
9494
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
7616
9495
 
@@ -7618,8 +9497,6 @@ class StackMonitoringClient(object):
7618
9497
  operation_retry_strategy=kwargs.get('retry_strategy'),
7619
9498
  client_retry_strategy=self.retry_strategy
7620
9499
  )
7621
- if retry_strategy is None:
7622
- retry_strategy = retry.DEFAULT_RETRY_STRATEGY
7623
9500
 
7624
9501
  if retry_strategy:
7625
9502
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
@@ -7630,10 +9507,10 @@ class StackMonitoringClient(object):
7630
9507
  self.base_client.call_api,
7631
9508
  resource_path=resource_path,
7632
9509
  method=method,
7633
- query_params=query_params,
9510
+ path_params=path_params,
7634
9511
  header_params=header_params,
7635
- body=search_monitored_resources_details,
7636
- response_type="MonitoredResourceCollection",
9512
+ body=test_metric_extension_details,
9513
+ response_type="TestMetricExtensionData",
7637
9514
  allow_control_chars=kwargs.get('allow_control_chars'),
7638
9515
  operation_name=operation_name,
7639
9516
  api_reference_link=api_reference_link,
@@ -7642,25 +9519,36 @@ class StackMonitoringClient(object):
7642
9519
  return self.base_client.call_api(
7643
9520
  resource_path=resource_path,
7644
9521
  method=method,
7645
- query_params=query_params,
9522
+ path_params=path_params,
7646
9523
  header_params=header_params,
7647
- body=search_monitored_resources_details,
7648
- response_type="MonitoredResourceCollection",
9524
+ body=test_metric_extension_details,
9525
+ response_type="TestMetricExtensionData",
7649
9526
  allow_control_chars=kwargs.get('allow_control_chars'),
7650
9527
  operation_name=operation_name,
7651
9528
  api_reference_link=api_reference_link,
7652
9529
  required_arguments=required_arguments)
7653
9530
 
7654
- def stop_maintenance_window(self, maintenance_window_id, **kwargs):
9531
+ def unapply_monitoring_template(self, monitoring_template_id, **kwargs):
7655
9532
  """
7656
- Stop a maintenance window before the end time is reached.
9533
+ Unapply the Monitoring Template identified by the id
7657
9534
 
7658
9535
 
7659
- :param str maintenance_window_id: (required)
7660
- The `OCID`__ of maintenance window.
9536
+ :param str monitoring_template_id: (required)
9537
+ The `OCID`__ of the monitoring template.
7661
9538
 
7662
9539
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
7663
9540
 
9541
+ :param str opc_request_id: (optional)
9542
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
9543
+ particular request, please provide the request ID.
9544
+
9545
+ :param str opc_retry_token: (optional)
9546
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
9547
+ server error without risk of executing that same action again. Retry tokens expire after 24
9548
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
9549
+ has been deleted and purged from the system, then a retry of the original creation request
9550
+ might be rejected.
9551
+
7664
9552
  :param str if_match: (optional)
7665
9553
  For optimistic concurrency control. In the PUT or DELETE call
7666
9554
  for a resource, set the `if-match` parameter to the value of the
@@ -7668,14 +9556,10 @@ class StackMonitoringClient(object):
7668
9556
  The resource will be updated or deleted only if the etag you
7669
9557
  provide matches the resource's current etag value.
7670
9558
 
7671
- :param str opc_request_id: (optional)
7672
- Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
7673
- particular request, please provide the request ID.
7674
-
7675
9559
  :param obj retry_strategy: (optional)
7676
9560
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
7677
9561
 
7678
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
9562
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
7679
9563
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
7680
9564
 
7681
9565
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -7688,29 +9572,30 @@ class StackMonitoringClient(object):
7688
9572
  :rtype: :class:`~oci.response.Response`
7689
9573
 
7690
9574
  :example:
7691
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/stop_maintenance_window.py.html>`__ to see an example of how to use stop_maintenance_window API.
9575
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/unapply_monitoring_template.py.html>`__ to see an example of how to use unapply_monitoring_template API.
7692
9576
  """
7693
9577
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7694
- required_arguments = ['maintenanceWindowId']
7695
- resource_path = "/maintenanceWindows/{maintenanceWindowId}/actions/stop"
9578
+ required_arguments = ['monitoringTemplateId']
9579
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/actions/unapply"
7696
9580
  method = "POST"
7697
- operation_name = "stop_maintenance_window"
7698
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/StopMaintenanceWindow"
9581
+ operation_name = "unapply_monitoring_template"
9582
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/UnapplyMonitoringTemplate"
7699
9583
 
7700
9584
  # Don't accept unknown kwargs
7701
9585
  expected_kwargs = [
7702
9586
  "allow_control_chars",
7703
9587
  "retry_strategy",
7704
- "if_match",
7705
- "opc_request_id"
9588
+ "opc_request_id",
9589
+ "opc_retry_token",
9590
+ "if_match"
7706
9591
  ]
7707
9592
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7708
9593
  if extra_kwargs:
7709
9594
  raise ValueError(
7710
- f"stop_maintenance_window got unknown kwargs: {extra_kwargs!r}")
9595
+ f"unapply_monitoring_template got unknown kwargs: {extra_kwargs!r}")
7711
9596
 
7712
9597
  path_params = {
7713
- "maintenanceWindowId": maintenance_window_id
9598
+ "monitoringTemplateId": monitoring_template_id
7714
9599
  }
7715
9600
 
7716
9601
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -7722,8 +9607,9 @@ class StackMonitoringClient(object):
7722
9607
  header_params = {
7723
9608
  "accept": "application/json",
7724
9609
  "content-type": "application/json",
7725
- "if-match": kwargs.get("if_match", missing),
7726
- "opc-request-id": kwargs.get("opc_request_id", missing)
9610
+ "opc-request-id": kwargs.get("opc_request_id", missing),
9611
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
9612
+ "if-match": kwargs.get("if_match", missing)
7727
9613
  }
7728
9614
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
7729
9615
 
@@ -7731,9 +9617,12 @@ class StackMonitoringClient(object):
7731
9617
  operation_retry_strategy=kwargs.get('retry_strategy'),
7732
9618
  client_retry_strategy=self.retry_strategy
7733
9619
  )
9620
+ if retry_strategy is None:
9621
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
7734
9622
 
7735
9623
  if retry_strategy:
7736
9624
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
9625
+ self.base_client.add_opc_retry_token_if_needed(header_params)
7737
9626
  self.base_client.add_opc_client_retries_header(header_params)
7738
9627
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
7739
9628
  return retry_strategy.make_retrying_call(
@@ -7757,18 +9646,23 @@ class StackMonitoringClient(object):
7757
9646
  api_reference_link=api_reference_link,
7758
9647
  required_arguments=required_arguments)
7759
9648
 
7760
- def test_metric_extension(self, metric_extension_id, test_metric_extension_details, **kwargs):
9649
+ def update_alarm_condition(self, update_alarm_condition_details, alarm_condition_id, monitoring_template_id, **kwargs):
7761
9650
  """
7762
- Performs test of Metric Extension on a specific resource Id
9651
+ Update a Alarm Condition by identifier
7763
9652
 
7764
9653
 
7765
- :param str metric_extension_id: (required)
7766
- The `OCID`__ of the metric extension resource.
9654
+ :param oci.stack_monitoring.models.UpdateAlarmConditionDetails update_alarm_condition_details: (required)
9655
+ Details required for updating a new alarm condition
9656
+
9657
+ :param str alarm_condition_id: (required)
9658
+ The `OCID`__ of the alarm condition.
7767
9659
 
7768
9660
  __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
7769
9661
 
7770
- :param oci.stack_monitoring.models.TestMetricExtensionDetails test_metric_extension_details: (required)
7771
- It contains OCID of resource.
9662
+ :param str monitoring_template_id: (required)
9663
+ The `OCID`__ of the monitoring template.
9664
+
9665
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
7772
9666
 
7773
9667
  :param str if_match: (optional)
7774
9668
  For optimistic concurrency control. In the PUT or DELETE call
@@ -7781,17 +9675,10 @@ class StackMonitoringClient(object):
7781
9675
  Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
7782
9676
  particular request, please provide the request ID.
7783
9677
 
7784
- :param str opc_retry_token: (optional)
7785
- A token that uniquely identifies a request so it can be retried in case of a timeout or
7786
- server error without risk of executing that same action again. Retry tokens expire after 24
7787
- hours, but can be invalidated before then due to conflicting operations. For example, if a resource
7788
- has been deleted and purged from the system, then a retry of the original creation request
7789
- might be rejected.
7790
-
7791
9678
  :param obj retry_strategy: (optional)
7792
9679
  A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
7793
9680
 
7794
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
9681
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
7795
9682
  The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
7796
9683
 
7797
9684
  To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -7800,34 +9687,34 @@ class StackMonitoringClient(object):
7800
9687
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
7801
9688
  By default, the response will not allow control characters in strings
7802
9689
 
7803
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.TestMetricExtensionData`
9690
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.AlarmCondition`
7804
9691
  :rtype: :class:`~oci.response.Response`
7805
9692
 
7806
9693
  :example:
7807
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/test_metric_extension.py.html>`__ to see an example of how to use test_metric_extension API.
9694
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_alarm_condition.py.html>`__ to see an example of how to use update_alarm_condition API.
7808
9695
  """
7809
9696
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7810
- required_arguments = ['metricExtensionId']
7811
- resource_path = "/metricExtensions/{metricExtensionId}/actions/test"
7812
- method = "POST"
7813
- operation_name = "test_metric_extension"
7814
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/TestMetricExtension"
9697
+ required_arguments = ['alarmConditionId', 'monitoringTemplateId']
9698
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}/alarmConditions/{alarmConditionId}"
9699
+ method = "PUT"
9700
+ operation_name = "update_alarm_condition"
9701
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/AlarmCondition/UpdateAlarmCondition"
7815
9702
 
7816
9703
  # Don't accept unknown kwargs
7817
9704
  expected_kwargs = [
7818
9705
  "allow_control_chars",
7819
9706
  "retry_strategy",
7820
9707
  "if_match",
7821
- "opc_request_id",
7822
- "opc_retry_token"
9708
+ "opc_request_id"
7823
9709
  ]
7824
9710
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
7825
9711
  if extra_kwargs:
7826
9712
  raise ValueError(
7827
- f"test_metric_extension got unknown kwargs: {extra_kwargs!r}")
9713
+ f"update_alarm_condition got unknown kwargs: {extra_kwargs!r}")
7828
9714
 
7829
9715
  path_params = {
7830
- "metricExtensionId": metric_extension_id
9716
+ "alarmConditionId": alarm_condition_id,
9717
+ "monitoringTemplateId": monitoring_template_id
7831
9718
  }
7832
9719
 
7833
9720
  path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -7840,8 +9727,7 @@ class StackMonitoringClient(object):
7840
9727
  "accept": "application/json",
7841
9728
  "content-type": "application/json",
7842
9729
  "if-match": kwargs.get("if_match", missing),
7843
- "opc-request-id": kwargs.get("opc_request_id", missing),
7844
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
9730
+ "opc-request-id": kwargs.get("opc_request_id", missing)
7845
9731
  }
7846
9732
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
7847
9733
 
@@ -7849,10 +9735,11 @@ class StackMonitoringClient(object):
7849
9735
  operation_retry_strategy=kwargs.get('retry_strategy'),
7850
9736
  client_retry_strategy=self.retry_strategy
7851
9737
  )
9738
+ if retry_strategy is None:
9739
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
7852
9740
 
7853
9741
  if retry_strategy:
7854
9742
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
7855
- self.base_client.add_opc_retry_token_if_needed(header_params)
7856
9743
  self.base_client.add_opc_client_retries_header(header_params)
7857
9744
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
7858
9745
  return retry_strategy.make_retrying_call(
@@ -7861,8 +9748,8 @@ class StackMonitoringClient(object):
7861
9748
  method=method,
7862
9749
  path_params=path_params,
7863
9750
  header_params=header_params,
7864
- body=test_metric_extension_details,
7865
- response_type="TestMetricExtensionData",
9751
+ body=update_alarm_condition_details,
9752
+ response_type="AlarmCondition",
7866
9753
  allow_control_chars=kwargs.get('allow_control_chars'),
7867
9754
  operation_name=operation_name,
7868
9755
  api_reference_link=api_reference_link,
@@ -7873,8 +9760,8 @@ class StackMonitoringClient(object):
7873
9760
  method=method,
7874
9761
  path_params=path_params,
7875
9762
  header_params=header_params,
7876
- body=test_metric_extension_details,
7877
- response_type="TestMetricExtensionData",
9763
+ body=update_alarm_condition_details,
9764
+ response_type="AlarmCondition",
7878
9765
  allow_control_chars=kwargs.get('allow_control_chars'),
7879
9766
  operation_name=operation_name,
7880
9767
  api_reference_link=api_reference_link,
@@ -7932,7 +9819,7 @@ class StackMonitoringClient(object):
7932
9819
  :rtype: :class:`~oci.response.Response`
7933
9820
 
7934
9821
  :example:
7935
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_and_propagate_tags.py.html>`__ to see an example of how to use update_and_propagate_tags API.
9822
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_and_propagate_tags.py.html>`__ to see an example of how to use update_and_propagate_tags API.
7936
9823
  """
7937
9824
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
7938
9825
  required_arguments = ['monitoredResourceId']
@@ -8046,7 +9933,7 @@ class StackMonitoringClient(object):
8046
9933
  :rtype: :class:`~oci.response.Response`
8047
9934
 
8048
9935
  :example:
8049
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_baselineable_metric.py.html>`__ to see an example of how to use update_baselineable_metric API.
9936
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_baselineable_metric.py.html>`__ to see an example of how to use update_baselineable_metric API.
8050
9937
  """
8051
9938
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8052
9939
  required_arguments = ['baselineableMetricId']
@@ -8159,7 +10046,7 @@ class StackMonitoringClient(object):
8159
10046
  :rtype: :class:`~oci.response.Response`
8160
10047
 
8161
10048
  :example:
8162
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_config.py.html>`__ to see an example of how to use update_config API.
10049
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_config.py.html>`__ to see an example of how to use update_config API.
8163
10050
  """
8164
10051
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8165
10052
  required_arguments = ['configId']
@@ -8276,7 +10163,7 @@ class StackMonitoringClient(object):
8276
10163
  :rtype: :class:`~oci.response.Response`
8277
10164
 
8278
10165
  :example:
8279
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_maintenance_window.py.html>`__ to see an example of how to use update_maintenance_window API.
10166
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_maintenance_window.py.html>`__ to see an example of how to use update_maintenance_window API.
8280
10167
  """
8281
10168
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8282
10169
  required_arguments = ['maintenanceWindowId']
@@ -8387,7 +10274,7 @@ class StackMonitoringClient(object):
8387
10274
  :rtype: :class:`~oci.response.Response`
8388
10275
 
8389
10276
  :example:
8390
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_metric_extension.py.html>`__ to see an example of how to use update_metric_extension API.
10277
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_metric_extension.py.html>`__ to see an example of how to use update_metric_extension API.
8391
10278
  """
8392
10279
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8393
10280
  required_arguments = ['metricExtensionId']
@@ -8504,7 +10391,7 @@ class StackMonitoringClient(object):
8504
10391
  :rtype: :class:`~oci.response.Response`
8505
10392
 
8506
10393
  :example:
8507
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_monitored_resource.py.html>`__ to see an example of how to use update_monitored_resource API.
10394
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_monitored_resource.py.html>`__ to see an example of how to use update_monitored_resource API.
8508
10395
  """
8509
10396
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8510
10397
  required_arguments = ['monitoredResourceId']
@@ -8617,7 +10504,7 @@ class StackMonitoringClient(object):
8617
10504
  :rtype: :class:`~oci.response.Response`
8618
10505
 
8619
10506
  :example:
8620
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_monitored_resource_task.py.html>`__ to see an example of how to use update_monitored_resource_task API.
10507
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_monitored_resource_task.py.html>`__ to see an example of how to use update_monitored_resource_task API.
8621
10508
  """
8622
10509
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8623
10510
  required_arguments = ['monitoredResourceTaskId']
@@ -8732,7 +10619,7 @@ class StackMonitoringClient(object):
8732
10619
  :rtype: :class:`~oci.response.Response`
8733
10620
 
8734
10621
  :example:
8735
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_monitored_resource_type.py.html>`__ to see an example of how to use update_monitored_resource_type API.
10622
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_monitored_resource_type.py.html>`__ to see an example of how to use update_monitored_resource_type API.
8736
10623
  """
8737
10624
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8738
10625
  required_arguments = ['monitoredResourceTypeId']
@@ -8805,6 +10692,119 @@ class StackMonitoringClient(object):
8805
10692
  api_reference_link=api_reference_link,
8806
10693
  required_arguments=required_arguments)
8807
10694
 
10695
+ def update_monitoring_template(self, monitoring_template_id, update_monitoring_template_details, **kwargs):
10696
+ """
10697
+ Updates the Monitoring Template
10698
+
10699
+
10700
+ :param str monitoring_template_id: (required)
10701
+ The `OCID`__ of the monitoring template.
10702
+
10703
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
10704
+
10705
+ :param oci.stack_monitoring.models.UpdateMonitoringTemplateDetails update_monitoring_template_details: (required)
10706
+ The information to be updated.
10707
+
10708
+ :param str if_match: (optional)
10709
+ For optimistic concurrency control. In the PUT or DELETE call
10710
+ for a resource, set the `if-match` parameter to the value of the
10711
+ etag from a previous GET or POST response for that resource.
10712
+ The resource will be updated or deleted only if the etag you
10713
+ provide matches the resource's current etag value.
10714
+
10715
+ :param str opc_request_id: (optional)
10716
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
10717
+ particular request, please provide the request ID.
10718
+
10719
+ :param obj retry_strategy: (optional)
10720
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
10721
+
10722
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
10723
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
10724
+
10725
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
10726
+
10727
+ :param bool allow_control_chars: (optional)
10728
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
10729
+ By default, the response will not allow control characters in strings
10730
+
10731
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoringTemplate`
10732
+ :rtype: :class:`~oci.response.Response`
10733
+
10734
+ :example:
10735
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_monitoring_template.py.html>`__ to see an example of how to use update_monitoring_template API.
10736
+ """
10737
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
10738
+ required_arguments = ['monitoringTemplateId']
10739
+ resource_path = "/monitoringTemplates/{monitoringTemplateId}"
10740
+ method = "PUT"
10741
+ operation_name = "update_monitoring_template"
10742
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoringTemplate/UpdateMonitoringTemplate"
10743
+
10744
+ # Don't accept unknown kwargs
10745
+ expected_kwargs = [
10746
+ "allow_control_chars",
10747
+ "retry_strategy",
10748
+ "if_match",
10749
+ "opc_request_id"
10750
+ ]
10751
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
10752
+ if extra_kwargs:
10753
+ raise ValueError(
10754
+ f"update_monitoring_template got unknown kwargs: {extra_kwargs!r}")
10755
+
10756
+ path_params = {
10757
+ "monitoringTemplateId": monitoring_template_id
10758
+ }
10759
+
10760
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
10761
+
10762
+ for (k, v) in six.iteritems(path_params):
10763
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
10764
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
10765
+
10766
+ header_params = {
10767
+ "accept": "application/json",
10768
+ "content-type": "application/json",
10769
+ "if-match": kwargs.get("if_match", missing),
10770
+ "opc-request-id": kwargs.get("opc_request_id", missing)
10771
+ }
10772
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
10773
+
10774
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
10775
+ operation_retry_strategy=kwargs.get('retry_strategy'),
10776
+ client_retry_strategy=self.retry_strategy
10777
+ )
10778
+
10779
+ if retry_strategy:
10780
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
10781
+ self.base_client.add_opc_client_retries_header(header_params)
10782
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
10783
+ return retry_strategy.make_retrying_call(
10784
+ self.base_client.call_api,
10785
+ resource_path=resource_path,
10786
+ method=method,
10787
+ path_params=path_params,
10788
+ header_params=header_params,
10789
+ body=update_monitoring_template_details,
10790
+ response_type="MonitoringTemplate",
10791
+ allow_control_chars=kwargs.get('allow_control_chars'),
10792
+ operation_name=operation_name,
10793
+ api_reference_link=api_reference_link,
10794
+ required_arguments=required_arguments)
10795
+ else:
10796
+ return self.base_client.call_api(
10797
+ resource_path=resource_path,
10798
+ method=method,
10799
+ path_params=path_params,
10800
+ header_params=header_params,
10801
+ body=update_monitoring_template_details,
10802
+ response_type="MonitoringTemplate",
10803
+ allow_control_chars=kwargs.get('allow_control_chars'),
10804
+ operation_name=operation_name,
10805
+ api_reference_link=api_reference_link,
10806
+ required_arguments=required_arguments)
10807
+
8808
10808
  def update_process_set(self, process_set_id, update_process_set_details, **kwargs):
8809
10809
  """
8810
10810
  API to update a Process Set identified by a given ocid.
@@ -8843,7 +10843,7 @@ class StackMonitoringClient(object):
8843
10843
  :rtype: :class:`~oci.response.Response`
8844
10844
 
8845
10845
  :example:
8846
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.144.0/stackmonitoring/update_process_set.py.html>`__ to see an example of how to use update_process_set API.
10846
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.145.0/stackmonitoring/update_process_set.py.html>`__ to see an example of how to use update_process_set API.
8847
10847
  """
8848
10848
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
8849
10849
  required_arguments = ['processSetId']