oci 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (894) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -2
  3. data/lib/oci.rb +5 -0
  4. data/lib/oci/ai_anomaly_detection/ai_anomaly_detection.rb +76 -0
  5. data/lib/oci/ai_anomaly_detection/anomaly_detection_client.rb +2054 -0
  6. data/lib/oci/ai_anomaly_detection/anomaly_detection_client_composite_operations.rb +658 -0
  7. data/lib/oci/ai_anomaly_detection/models/action_type.rb +14 -0
  8. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint.rb +350 -0
  9. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_collection.rb +150 -0
  10. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_summary.rb +312 -0
  11. data/lib/oci/ai_anomaly_detection/models/anomaly.rb +210 -0
  12. data/lib/oci/ai_anomaly_detection/models/anomaly_detect_result.rb +154 -0
  13. data/lib/oci/ai_anomaly_detection/models/change_ai_private_endpoint_compartment_details.rb +154 -0
  14. data/lib/oci/ai_anomaly_detection/models/change_data_asset_compartment_details.rb +154 -0
  15. data/lib/oci/ai_anomaly_detection/models/change_model_compartment_details.rb +156 -0
  16. data/lib/oci/ai_anomaly_detection/models/change_project_compartment_details.rb +156 -0
  17. data/lib/oci/ai_anomaly_detection/models/create_ai_private_endpoint_details.rb +231 -0
  18. data/lib/oci/ai_anomaly_detection/models/create_data_asset_details.rb +253 -0
  19. data/lib/oci/ai_anomaly_detection/models/create_model_details.rb +238 -0
  20. data/lib/oci/ai_anomaly_detection/models/create_project_details.rb +211 -0
  21. data/lib/oci/ai_anomaly_detection/models/data_asset.rb +340 -0
  22. data/lib/oci/ai_anomaly_detection/models/data_asset_collection.rb +150 -0
  23. data/lib/oci/ai_anomaly_detection/models/data_asset_summary.rb +341 -0
  24. data/lib/oci/ai_anomaly_detection/models/data_item.rb +160 -0
  25. data/lib/oci/ai_anomaly_detection/models/data_source_details.rb +193 -0
  26. data/lib/oci/ai_anomaly_detection/models/data_source_details_atp.rb +302 -0
  27. data/lib/oci/ai_anomaly_detection/models/data_source_details_influx.rb +214 -0
  28. data/lib/oci/ai_anomaly_detection/models/data_source_details_object_storage.rb +186 -0
  29. data/lib/oci/ai_anomaly_detection/models/data_source_type.rb +12 -0
  30. data/lib/oci/ai_anomaly_detection/models/detect_anomalies_details.rb +202 -0
  31. data/lib/oci/ai_anomaly_detection/models/detection_result_item.rb +184 -0
  32. data/lib/oci/ai_anomaly_detection/models/embedded_detect_anomalies_request.rb +192 -0
  33. data/lib/oci/ai_anomaly_detection/models/influx_details.rb +191 -0
  34. data/lib/oci/ai_anomaly_detection/models/influx_details_v1v8.rb +176 -0
  35. data/lib/oci/ai_anomaly_detection/models/influx_details_v2v0.rb +176 -0
  36. data/lib/oci/ai_anomaly_detection/models/influx_version.rb +11 -0
  37. data/lib/oci/ai_anomaly_detection/models/inline_detect_anomalies_request.rb +179 -0
  38. data/lib/oci/ai_anomaly_detection/models/model.rb +358 -0
  39. data/lib/oci/ai_anomaly_detection/models/model_collection.rb +150 -0
  40. data/lib/oci/ai_anomaly_detection/models/model_summary.rb +305 -0
  41. data/lib/oci/ai_anomaly_detection/models/model_training_details.rb +186 -0
  42. data/lib/oci/ai_anomaly_detection/models/model_training_results.rb +215 -0
  43. data/lib/oci/ai_anomaly_detection/models/operation_status.rb +16 -0
  44. data/lib/oci/ai_anomaly_detection/models/operation_type.rb +16 -0
  45. data/lib/oci/ai_anomaly_detection/models/per_signal_details.rb +267 -0
  46. data/lib/oci/ai_anomaly_detection/models/project.rb +302 -0
  47. data/lib/oci/ai_anomaly_detection/models/project_collection.rb +150 -0
  48. data/lib/oci/ai_anomaly_detection/models/project_summary.rb +279 -0
  49. data/lib/oci/ai_anomaly_detection/models/row_reduction_details.rb +205 -0
  50. data/lib/oci/ai_anomaly_detection/models/sort_order.rb +11 -0
  51. data/lib/oci/ai_anomaly_detection/models/update_ai_private_endpoint_details.rb +202 -0
  52. data/lib/oci/ai_anomaly_detection/models/update_data_asset_details.rb +196 -0
  53. data/lib/oci/ai_anomaly_detection/models/update_model_details.rb +196 -0
  54. data/lib/oci/ai_anomaly_detection/models/update_project_details.rb +196 -0
  55. data/lib/oci/ai_anomaly_detection/models/work_request.rb +312 -0
  56. data/lib/oci/ai_anomaly_detection/models/work_request_error.rb +173 -0
  57. data/lib/oci/ai_anomaly_detection/models/work_request_error_collection.rb +150 -0
  58. data/lib/oci/ai_anomaly_detection/models/work_request_log_entry.rb +160 -0
  59. data/lib/oci/ai_anomaly_detection/models/work_request_log_entry_collection.rb +150 -0
  60. data/lib/oci/ai_anomaly_detection/models/work_request_resource.rb +219 -0
  61. data/lib/oci/ai_anomaly_detection/models/work_request_summary.rb +312 -0
  62. data/lib/oci/ai_anomaly_detection/models/work_request_summary_collection.rb +150 -0
  63. data/lib/oci/ai_anomaly_detection/util.rb +3 -0
  64. data/lib/oci/api_client.rb +4 -4
  65. data/lib/oci/application_migration/application_migration.rb +2 -0
  66. data/lib/oci/application_migration/models/authorization_details.rb +2 -1
  67. data/lib/oci/application_migration/models/import_manifest.rb +208 -0
  68. data/lib/oci/application_migration/models/import_source_details.rb +192 -0
  69. data/lib/oci/application_migration/models/source_details.rb +2 -0
  70. data/lib/oci/application_migration/models/source_summary.rb +1 -0
  71. data/lib/oci/application_migration/models/source_types.rb +2 -1
  72. data/lib/oci/artifacts/artifacts.rb +15 -0
  73. data/lib/oci/artifacts/artifacts_client.rb +1104 -147
  74. data/lib/oci/artifacts/artifacts_client_composite_operations.rb +211 -0
  75. data/lib/oci/artifacts/models/change_repository_compartment_details.rb +155 -0
  76. data/lib/oci/artifacts/models/container_repository.rb +18 -4
  77. data/lib/oci/artifacts/models/container_repository_summary.rb +18 -4
  78. data/lib/oci/artifacts/models/create_generic_repository_details.rb +169 -0
  79. data/lib/oci/artifacts/models/create_repository_details.rb +259 -0
  80. data/lib/oci/artifacts/models/generic_artifact.rb +337 -0
  81. data/lib/oci/artifacts/models/generic_artifact_collection.rb +150 -0
  82. data/lib/oci/artifacts/models/generic_artifact_summary.rb +316 -0
  83. data/lib/oci/artifacts/models/generic_repository.rb +181 -0
  84. data/lib/oci/artifacts/models/generic_repository_summary.rb +181 -0
  85. data/lib/oci/artifacts/models/repository.rb +338 -0
  86. data/lib/oci/{usage_api/models/schedule_report_collection.rb → artifacts/models/repository_collection.rb} +6 -6
  87. data/lib/oci/artifacts/models/repository_summary.rb +299 -0
  88. data/lib/oci/artifacts/models/update_generic_artifact_by_path_details.rb +176 -0
  89. data/lib/oci/artifacts/models/update_generic_artifact_details.rb +176 -0
  90. data/lib/oci/artifacts/models/update_generic_repository_details.rb +161 -0
  91. data/lib/oci/artifacts/models/update_repository_details.rb +230 -0
  92. data/lib/oci/bastion/bastion.rb +48 -0
  93. data/lib/oci/bastion/bastion_client.rb +1041 -0
  94. data/lib/oci/bastion/bastion_client_composite_operations.rb +311 -0
  95. data/lib/oci/bastion/models/action_type.rb +14 -0
  96. data/lib/oci/bastion/models/bastion.rb +434 -0
  97. data/lib/oci/bastion/models/bastion_lifecycle_state.rb +15 -0
  98. data/lib/oci/bastion/models/bastion_summary.rb +348 -0
  99. data/lib/oci/bastion/models/change_bastion_compartment_details.rb +154 -0
  100. data/lib/oci/bastion/models/create_bastion_details.rb +283 -0
  101. data/lib/oci/bastion/models/create_managed_ssh_session_target_resource_details.rb +194 -0
  102. data/lib/oci/bastion/models/create_port_forwarding_session_target_resource_details.rb +180 -0
  103. data/lib/oci/bastion/models/create_session_details.rb +238 -0
  104. data/lib/oci/bastion/models/create_session_target_resource_details.rb +198 -0
  105. data/lib/oci/bastion/models/managed_ssh_session_target_resource_details.rb +208 -0
  106. data/lib/oci/bastion/models/operation_status.rb +15 -0
  107. data/lib/oci/bastion/models/operation_type.rb +14 -0
  108. data/lib/oci/bastion/models/port_forwarding_session_target_resource_details.rb +194 -0
  109. data/lib/oci/bastion/models/public_key_details.rb +154 -0
  110. data/lib/oci/bastion/models/session.rb +393 -0
  111. data/lib/oci/bastion/models/session_lifecycle_state.rb +14 -0
  112. data/lib/oci/bastion/models/session_summary.rb +303 -0
  113. data/lib/oci/bastion/models/session_type.rb +11 -0
  114. data/lib/oci/bastion/models/sort_order.rb +11 -0
  115. data/lib/oci/bastion/models/target_resource_details.rb +205 -0
  116. data/lib/oci/bastion/models/update_bastion_details.rb +215 -0
  117. data/lib/oci/bastion/models/update_session_details.rb +154 -0
  118. data/lib/oci/bastion/models/work_request.rb +309 -0
  119. data/lib/oci/bastion/models/work_request_error.rb +173 -0
  120. data/lib/oci/bastion/models/work_request_log_entry.rb +160 -0
  121. data/lib/oci/bastion/models/work_request_resource.rb +219 -0
  122. data/lib/oci/bastion/models/work_request_summary.rb +309 -0
  123. data/lib/oci/bastion/util.rb +3 -0
  124. data/lib/oci/bds/bds_client.rb +70 -77
  125. data/lib/oci/bds/bds_client_composite_operations.rb +21 -21
  126. data/lib/oci/bds/models/add_auto_scaling_configuration_details.rb +5 -5
  127. data/lib/oci/bds/models/add_block_storage_details.rb +4 -4
  128. data/lib/oci/bds/models/add_cloud_sql_details.rb +4 -5
  129. data/lib/oci/bds/models/add_worker_nodes_details.rb +3 -3
  130. data/lib/oci/bds/models/auto_scale_policy.rb +3 -3
  131. data/lib/oci/bds/models/auto_scale_policy_metric_rule.rb +2 -2
  132. data/lib/oci/bds/models/auto_scale_policy_rule.rb +2 -2
  133. data/lib/oci/bds/models/auto_scaling_configuration.rb +7 -8
  134. data/lib/oci/bds/models/auto_scaling_configuration_summary.rb +7 -8
  135. data/lib/oci/bds/models/bds_instance.rb +17 -16
  136. data/lib/oci/bds/models/bds_instance_summary.rb +14 -14
  137. data/lib/oci/bds/models/change_bds_instance_compartment_details.rb +2 -2
  138. data/lib/oci/bds/models/change_shape_details.rb +1 -1
  139. data/lib/oci/bds/models/change_shape_nodes.rb +2 -2
  140. data/lib/oci/bds/models/cloud_sql_details.rb +3 -3
  141. data/lib/oci/bds/models/cluster_details.rb +26 -13
  142. data/lib/oci/bds/models/create_bds_instance_details.rb +11 -11
  143. data/lib/oci/bds/models/create_node_details.rb +6 -6
  144. data/lib/oci/bds/models/kerberos_details.rb +2 -2
  145. data/lib/oci/bds/models/metric_threshold_rule.rb +4 -4
  146. data/lib/oci/bds/models/network_config.rb +1 -1
  147. data/lib/oci/bds/models/node.rb +15 -15
  148. data/lib/oci/bds/models/remove_auto_scaling_configuration_details.rb +2 -2
  149. data/lib/oci/bds/models/remove_cloud_sql_details.rb +2 -2
  150. data/lib/oci/bds/models/restart_node_details.rb +2 -2
  151. data/lib/oci/bds/models/update_auto_scaling_configuration_details.rb +4 -4
  152. data/lib/oci/bds/models/update_bds_instance_details.rb +5 -5
  153. data/lib/oci/bds/models/work_request.rb +9 -14
  154. data/lib/oci/bds/models/work_request_error.rb +2 -3
  155. data/lib/oci/bds/models/work_request_log_entry.rb +1 -1
  156. data/lib/oci/bds/models/work_request_resource.rb +2 -5
  157. data/lib/oci/container_engine/container_engine.rb +2 -0
  158. data/lib/oci/container_engine/container_engine_client.rb +118 -0
  159. data/lib/oci/container_engine/container_engine_client_composite_operations.rb +50 -0
  160. data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_details.rb +169 -0
  161. data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_status.rb +187 -0
  162. data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +16 -1
  163. data/lib/oci/container_engine/models/node_pool_node_config_details.rb +16 -1
  164. data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +16 -1
  165. data/lib/oci/container_engine/models/work_request.rb +1 -0
  166. data/lib/oci/container_engine/models/work_request_operation_type.rb +1 -0
  167. data/lib/oci/container_engine/models/work_request_summary.rb +1 -0
  168. data/lib/oci/core/blockstorage_client.rb +70 -1
  169. data/lib/oci/core/blockstorage_client_composite_operations.rb +41 -0
  170. data/lib/oci/core/compute_client.rb +63 -0
  171. data/lib/oci/core/compute_client_composite_operations.rb +40 -0
  172. data/lib/oci/core/core.rb +4 -0
  173. data/lib/oci/core/models/attach_boot_volume_details.rb +35 -4
  174. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +35 -4
  175. data/lib/oci/core/models/block_volume_replica.rb +1 -1
  176. data/lib/oci/core/models/boot_volume_attachment.rb +41 -4
  177. data/lib/oci/core/models/boot_volume_replica.rb +1 -1
  178. data/lib/oci/core/models/copy_volume_group_backup_details.rb +196 -0
  179. data/lib/oci/core/models/create_boot_volume_details.rb +1 -1
  180. data/lib/oci/core/models/create_dhcp_details.rb +32 -4
  181. data/lib/oci/core/models/create_vlan_details.rb +11 -3
  182. data/lib/oci/core/models/create_volume_details.rb +1 -1
  183. data/lib/oci/core/models/dhcp_options.rb +38 -4
  184. data/lib/oci/core/models/emulated_volume_attachment.rb +12 -4
  185. data/lib/oci/core/models/encryption_in_transit_type.rb +11 -0
  186. data/lib/oci/core/models/i_scsi_volume_attachment.rb +64 -4
  187. data/lib/oci/core/models/image.rb +18 -1
  188. data/lib/oci/core/models/instance_agent_features.rb +2 -2
  189. data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +1 -1
  190. data/lib/oci/core/models/instance_source_via_image_details.rb +1 -1
  191. data/lib/oci/core/models/launch_instance_availability_config_details.rb +2 -2
  192. data/lib/oci/core/models/multipath_device.rb +180 -0
  193. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +12 -4
  194. data/lib/oci/core/models/update_dhcp_details.rb +32 -4
  195. data/lib/oci/core/models/update_instance_availability_config_details.rb +1 -1
  196. data/lib/oci/core/models/update_volume_attachment_details.rb +174 -0
  197. data/lib/oci/core/models/vlan.rb +2 -1
  198. data/lib/oci/core/models/volume_attachment.rb +58 -4
  199. data/lib/oci/core/virtual_network_client.rb +7 -5
  200. data/lib/oci/data_catalog/data_catalog.rb +11 -0
  201. data/lib/oci/data_catalog/data_catalog_client.rb +599 -7
  202. data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +188 -0
  203. data/lib/oci/data_catalog/models/attribute.rb +43 -1
  204. data/lib/oci/data_catalog/models/attribute_summary.rb +33 -4
  205. data/lib/oci/data_catalog/models/change_metastore_compartment_details.rb +154 -0
  206. data/lib/oci/data_catalog/models/create_custom_property_details.rb +17 -1
  207. data/lib/oci/data_catalog/models/create_job_definition_details.rb +2 -1
  208. data/lib/oci/data_catalog/models/create_job_execution_details.rb +2 -1
  209. data/lib/oci/data_catalog/models/create_metastore_details.rb +232 -0
  210. data/lib/oci/data_catalog/models/custom_property.rb +17 -1
  211. data/lib/oci/data_catalog/models/custom_property_get_usage.rb +17 -1
  212. data/lib/oci/data_catalog/models/custom_property_summary.rb +63 -4
  213. data/lib/oci/data_catalog/models/custom_property_type_usage.rb +20 -4
  214. data/lib/oci/data_catalog/models/data_asset.rb +16 -1
  215. data/lib/oci/data_catalog/models/data_asset_export_scope.rb +172 -0
  216. data/lib/oci/data_catalog/models/data_asset_import_export_type_filter.rb +11 -0
  217. data/lib/oci/data_catalog/models/entity.rb +30 -1
  218. data/lib/oci/data_catalog/models/export_data_asset_details.rb +154 -0
  219. data/lib/oci/data_catalog/models/folder.rb +44 -1
  220. data/lib/oci/data_catalog/models/folder_summary.rb +15 -1
  221. data/lib/oci/data_catalog/models/import_data_asset_details.rb +154 -0
  222. data/lib/oci/data_catalog/models/import_data_asset_job_result.rb +235 -0
  223. data/lib/oci/data_catalog/models/job.rb +1 -0
  224. data/lib/oci/data_catalog/models/job_definition.rb +1 -0
  225. data/lib/oci/data_catalog/models/job_definition_summary.rb +1 -0
  226. data/lib/oci/data_catalog/models/job_execution.rb +1 -0
  227. data/lib/oci/data_catalog/models/job_execution_summary.rb +1 -0
  228. data/lib/oci/data_catalog/models/job_summary.rb +1 -0
  229. data/lib/oci/data_catalog/models/job_type.rb +2 -1
  230. data/lib/oci/data_catalog/models/metastore.rb +325 -0
  231. data/lib/oci/data_catalog/models/metastore_summary.rb +292 -0
  232. data/lib/oci/data_catalog/models/object_relationship.rb +233 -0
  233. data/lib/oci/data_catalog/models/search_result.rb +15 -1
  234. data/lib/oci/data_catalog/models/type_custom_property_details.rb +20 -4
  235. data/lib/oci/data_catalog/models/update_custom_property_details.rb +17 -1
  236. data/lib/oci/data_catalog/models/update_metastore_details.rb +186 -0
  237. data/lib/oci/data_flow/data_flow_client.rb +3 -0
  238. data/lib/oci/data_flow/models/application.rb +16 -1
  239. data/lib/oci/data_flow/models/application_summary.rb +16 -1
  240. data/lib/oci/data_flow/models/create_application_details.rb +16 -1
  241. data/lib/oci/data_flow/models/create_run_details.rb +17 -1
  242. data/lib/oci/data_flow/models/run.rb +16 -1
  243. data/lib/oci/data_flow/models/update_application_details.rb +16 -1
  244. data/lib/oci/data_integration/data_integration.rb +52 -0
  245. data/lib/oci/data_integration/data_integration_client.rb +766 -24
  246. data/lib/oci/data_integration/models/abstract_format_attribute.rb +19 -4
  247. data/lib/oci/data_integration/models/abstract_read_attribute.rb +3 -0
  248. data/lib/oci/data_integration/models/abstract_write_attribute.rb +7 -0
  249. data/lib/oci/data_integration/models/auth_details.rb +213 -0
  250. data/lib/oci/data_integration/models/avro_format_attribute.rb +5 -1
  251. data/lib/oci/data_integration/models/bicc_read_attributes.rb +237 -0
  252. data/lib/oci/data_integration/models/config_parameter_value.rb +18 -4
  253. data/lib/oci/data_integration/models/connection.rb +4 -0
  254. data/lib/oci/data_integration/models/connection_details.rb +5 -1
  255. data/lib/oci/data_integration/models/connection_from_amazon_s3.rb +226 -0
  256. data/lib/oci/data_integration/models/connection_from_amazon_s3_details.rb +222 -0
  257. data/lib/oci/data_integration/models/connection_from_bicc.rb +236 -0
  258. data/lib/oci/data_integration/models/connection_from_bicc_details.rb +232 -0
  259. data/lib/oci/data_integration/models/connection_summary.rb +4 -0
  260. data/lib/oci/data_integration/models/connection_summary_from_amazon_s3.rb +227 -0
  261. data/lib/oci/data_integration/models/connection_summary_from_bicc.rb +223 -0
  262. data/lib/oci/data_integration/models/connector_attribute.rb +182 -0
  263. data/lib/oci/data_integration/models/create_connection_details.rb +5 -1
  264. data/lib/oci/data_integration/models/create_connection_from_amazon_s3.rb +210 -0
  265. data/lib/oci/data_integration/models/create_connection_from_bicc.rb +220 -0
  266. data/lib/oci/data_integration/models/create_data_asset_details.rb +5 -1
  267. data/lib/oci/data_integration/models/create_data_asset_from_adwc.rb +57 -1
  268. data/lib/oci/data_integration/models/create_data_asset_from_amazon_s3.rb +207 -0
  269. data/lib/oci/data_integration/models/create_data_asset_from_atp.rb +57 -1
  270. data/lib/oci/data_integration/models/create_data_asset_from_fusion_app.rb +211 -0
  271. data/lib/oci/data_integration/models/create_schedule_details.rb +272 -0
  272. data/lib/oci/data_integration/models/create_task_details.rb +7 -1
  273. data/lib/oci/data_integration/models/create_task_from_oci_dataflow_task.rb +213 -0
  274. data/lib/oci/data_integration/models/create_task_from_rest_task.rb +348 -0
  275. data/lib/oci/data_integration/models/create_task_from_sql_task.rb +246 -0
  276. data/lib/oci/data_integration/models/create_task_run_details.rb +15 -1
  277. data/lib/oci/data_integration/models/create_task_schedule_details.rb +476 -0
  278. data/lib/oci/data_integration/models/csv_format_attribute.rb +5 -15
  279. data/lib/oci/data_integration/models/data_asset.rb +4 -0
  280. data/lib/oci/data_integration/models/data_asset_from_amazon_s3.rb +223 -0
  281. data/lib/oci/data_integration/models/data_asset_from_fusion_app.rb +227 -0
  282. data/lib/oci/data_integration/models/data_asset_summary.rb +4 -0
  283. data/lib/oci/data_integration/models/data_asset_summary_from_amazon_s3.rb +219 -0
  284. data/lib/oci/data_integration/models/data_asset_summary_from_fusion_app.rb +223 -0
  285. data/lib/oci/data_integration/models/data_entity.rb +2 -0
  286. data/lib/oci/data_integration/models/data_entity_details.rb +3 -1
  287. data/lib/oci/data_integration/models/data_entity_from_data_store.rb +454 -0
  288. data/lib/oci/data_integration/models/data_entity_from_data_store_entity_details.rb +443 -0
  289. data/lib/oci/data_integration/models/data_entity_summary.rb +2 -0
  290. data/lib/oci/data_integration/models/data_entity_summary_from_data_store.rb +454 -0
  291. data/lib/oci/{usage_api/models/create_schedule_report_details.rb → data_integration/models/dataflow_application.rb} +20 -33
  292. data/lib/oci/data_integration/models/dependent_object_summary.rb +17 -4
  293. data/lib/oci/data_integration/models/enriched_entity.rb +31 -4
  294. data/lib/oci/data_integration/models/expression_operator.rb +250 -0
  295. data/lib/oci/data_integration/models/external_storage.rb +221 -0
  296. data/lib/oci/data_integration/models/json_format_attribute.rb +5 -1
  297. data/lib/oci/data_integration/models/lookup.rb +274 -0
  298. data/lib/oci/data_integration/models/native_shape_field.rb +3 -3
  299. data/lib/oci/data_integration/models/object_metadata.rb +17 -4
  300. data/lib/oci/data_integration/models/object_storage_write_attribute.rb +162 -0
  301. data/lib/oci/data_integration/models/object_storage_write_attributes.rb +164 -0
  302. data/lib/oci/data_integration/models/operator.rb +4 -1
  303. data/lib/oci/data_integration/models/oracle_adwc_write_attributes.rb +22 -12
  304. data/lib/oci/data_integration/models/oracle_atp_write_attributes.rb +22 -12
  305. data/lib/oci/data_integration/models/oracle_read_attributes.rb +13 -2
  306. data/lib/oci/data_integration/models/oracle_write_attributes.rb +13 -2
  307. data/lib/oci/data_integration/models/parameter.rb +4 -3
  308. data/lib/oci/data_integration/models/parent_reference.rb +18 -4
  309. data/lib/oci/data_integration/models/parquet_format_attribute.rb +162 -0
  310. data/lib/oci/data_integration/models/patch_change_summary.rb +3 -0
  311. data/lib/oci/data_integration/models/patch_object_metadata.rb +3 -0
  312. data/lib/oci/data_integration/models/published_object.rb +3 -0
  313. data/lib/oci/data_integration/models/published_object_summary.rb +3 -0
  314. data/lib/oci/data_integration/models/schedule_summary.rb +295 -0
  315. data/lib/oci/data_integration/models/schedule_summary_collection.rb +150 -0
  316. data/lib/oci/data_integration/models/script.rb +202 -0
  317. data/lib/oci/data_integration/models/shape_field.rb +3 -3
  318. data/lib/oci/data_integration/models/task.rb +23 -4
  319. data/lib/oci/data_integration/models/task_from_data_loader_task_details.rb +5 -1
  320. data/lib/oci/data_integration/models/task_from_integration_task_details.rb +5 -1
  321. data/lib/oci/data_integration/models/task_from_oci_dataflow_task_details.rb +225 -0
  322. data/lib/oci/data_integration/models/task_from_pipeline_task_details.rb +5 -1
  323. data/lib/oci/data_integration/models/task_from_rest_task_details.rb +379 -0
  324. data/lib/oci/data_integration/models/task_from_sql_task_details.rb +265 -0
  325. data/lib/oci/data_integration/models/task_operator.rb +3 -0
  326. data/lib/oci/data_integration/models/task_run.rb +62 -1
  327. data/lib/oci/data_integration/models/task_run_details.rb +3 -0
  328. data/lib/oci/data_integration/models/task_run_summary.rb +3 -0
  329. data/lib/oci/data_integration/models/task_schedule_summary.rb +532 -0
  330. data/lib/oci/data_integration/models/task_schedule_summary_collection.rb +150 -0
  331. data/lib/oci/data_integration/models/task_summary.rb +6 -0
  332. data/lib/oci/data_integration/models/task_summary_from_oci_dataflow_task.rb +221 -0
  333. data/lib/oci/data_integration/models/task_summary_from_rest_task.rb +356 -0
  334. data/lib/oci/data_integration/models/task_summary_from_sql_task.rb +254 -0
  335. data/lib/oci/data_integration/models/update_connection_details.rb +5 -1
  336. data/lib/oci/data_integration/models/update_connection_from_amazon_s3.rb +214 -0
  337. data/lib/oci/data_integration/models/update_connection_from_bicc.rb +224 -0
  338. data/lib/oci/data_integration/models/update_data_asset_details.rb +5 -1
  339. data/lib/oci/data_integration/models/update_data_asset_from_adwc.rb +57 -1
  340. data/lib/oci/data_integration/models/update_data_asset_from_amazon_s3.rb +198 -0
  341. data/lib/oci/data_integration/models/update_data_asset_from_atp.rb +57 -1
  342. data/lib/oci/data_integration/models/update_data_asset_from_fusion_app.rb +202 -0
  343. data/lib/oci/data_integration/models/update_schedule_details.rb +299 -0
  344. data/lib/oci/data_integration/models/update_task_details.rb +7 -1
  345. data/lib/oci/data_integration/models/update_task_from_oci_dataflow_task.rb +217 -0
  346. data/lib/oci/data_integration/models/update_task_from_rest_task.rb +366 -0
  347. data/lib/oci/data_integration/models/update_task_from_sql_task.rb +250 -0
  348. data/lib/oci/data_integration/models/update_task_run_details.rb +15 -1
  349. data/lib/oci/data_integration/models/update_task_schedule_details.rb +490 -0
  350. data/lib/oci/data_safe/data_safe.rb +18 -0
  351. data/lib/oci/data_safe/data_safe_client.rb +731 -17
  352. data/lib/oci/data_safe/data_safe_client_composite_operations.rb +247 -0
  353. data/lib/oci/{usage_api/models/update_schedule_report_details.rb → data_safe/models/activate_target_database_details.rb} +10 -14
  354. data/lib/oci/data_safe/models/autonomous_database_details.rb +166 -0
  355. data/lib/oci/data_safe/models/change_target_database_compartment_details.rb +154 -0
  356. data/lib/oci/data_safe/models/connection_option.rb +194 -0
  357. data/lib/oci/data_safe/models/create_target_database_details.rb +261 -0
  358. data/lib/oci/data_safe/models/credentials.rb +164 -0
  359. data/lib/oci/data_safe/models/data_safe_private_endpoint.rb +20 -4
  360. data/lib/oci/data_safe/models/data_safe_private_endpoint_summary.rb +54 -4
  361. data/lib/oci/data_safe/models/database_cloud_service_details.rb +194 -0
  362. data/lib/oci/data_safe/models/database_details.rb +231 -0
  363. data/lib/oci/data_safe/models/database_type.rb +12 -0
  364. data/lib/oci/data_safe/models/infrastructure_type.rb +13 -0
  365. data/lib/oci/data_safe/models/installed_database_details.rb +209 -0
  366. data/lib/oci/data_safe/models/on_prem_connector.rb +17 -1
  367. data/lib/oci/data_safe/models/on_prem_connector_summary.rb +17 -1
  368. data/lib/oci/data_safe/models/on_premise_connector.rb +162 -0
  369. data/lib/oci/data_safe/models/private_endpoint.rb +163 -0
  370. data/lib/oci/data_safe/models/service_list.rb +4 -0
  371. data/lib/oci/data_safe/models/target_database.rb +369 -0
  372. data/lib/oci/data_safe/models/target_database_lifecycle_state.rb +17 -0
  373. data/lib/oci/data_safe/models/target_database_summary.rb +359 -0
  374. data/lib/oci/data_safe/models/tls_config.rb +244 -0
  375. data/lib/oci/data_safe/models/update_target_database_details.rb +246 -0
  376. data/lib/oci/data_safe/models/work_request.rb +6 -0
  377. data/lib/oci/data_safe/models/work_request_summary.rb +6 -0
  378. data/lib/oci/data_science/data_science.rb +3 -0
  379. data/lib/oci/data_science/data_science_client.rb +16 -9
  380. data/lib/oci/data_science/data_science_client_composite_operations.rb +4 -4
  381. data/lib/oci/data_science/models/create_model_details.rb +60 -4
  382. data/lib/oci/data_science/models/create_model_provenance_details.rb +18 -4
  383. data/lib/oci/data_science/models/metadata.rb +197 -0
  384. data/lib/oci/data_science/models/model.rb +60 -4
  385. data/lib/oci/data_science/models/model_deployment.rb +1 -1
  386. data/lib/oci/data_science/models/model_provenance.rb +18 -4
  387. data/lib/oci/data_science/models/notebook_session_configuration_details.rb +17 -4
  388. data/lib/oci/data_science/models/notebook_session_shape_config_details.rb +169 -0
  389. data/lib/oci/data_science/models/notebook_session_shape_series.rb +13 -0
  390. data/lib/oci/data_science/models/notebook_session_shape_summary.rb +41 -4
  391. data/lib/oci/data_science/models/update_model_details.rb +32 -4
  392. data/lib/oci/data_science/models/update_model_provenance_details.rb +18 -4
  393. data/lib/oci/database/database.rb +17 -0
  394. data/lib/oci/database/database_client.rb +1228 -46
  395. data/lib/oci/database/database_client_composite_operations.rb +416 -0
  396. data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +2 -2
  397. data/lib/oci/database/models/autonomous_database.rb +213 -6
  398. data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
  399. data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
  400. data/lib/oci/database/models/autonomous_database_dataguard_association.rb +2 -2
  401. data/lib/oci/{usage_api/models/schedule_report.rb → database/models/autonomous_database_key_history_entry.rb} +24 -36
  402. data/lib/oci/database/models/autonomous_database_standby_summary.rb +19 -4
  403. data/lib/oci/database/models/autonomous_database_summary.rb +213 -6
  404. data/lib/oci/database/models/cloud_exadata_infrastructure.rb +21 -4
  405. data/lib/oci/database/models/cloud_exadata_infrastructure_summary.rb +21 -4
  406. data/lib/oci/database/models/configure_autonomous_database_vault_key_details.rb +182 -0
  407. data/lib/oci/database/models/create_autonomous_database_base.rb +118 -7
  408. data/lib/oci/database/models/create_autonomous_database_clone_details.rb +21 -1
  409. data/lib/oci/database/models/create_autonomous_database_details.rb +24 -4
  410. data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +21 -1
  411. data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +21 -1
  412. data/lib/oci/database/models/create_cloud_exadata_infrastructure_details.rb +18 -4
  413. data/lib/oci/database/models/create_cross_region_autonomous_database_data_guard_details.rb +283 -0
  414. data/lib/oci/database/models/create_database_software_image_details.rb +18 -4
  415. data/lib/oci/database/models/create_db_home_base.rb +18 -4
  416. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +5 -1
  417. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +5 -1
  418. data/lib/oci/database/models/create_db_home_with_db_system_id_from_database_details.rb +5 -1
  419. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +5 -1
  420. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +5 -1
  421. data/lib/oci/database/models/create_exadata_infrastructure_details.rb +29 -1
  422. data/lib/oci/database/models/create_pluggable_database_details.rb +233 -0
  423. data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +21 -1
  424. data/lib/oci/database/models/customer_contact.rb +2 -2
  425. data/lib/oci/database/models/db_home_from_agent_resource_id.rb +380 -0
  426. data/lib/oci/database/models/db_node.rb +69 -1
  427. data/lib/oci/database/models/db_node_summary.rb +69 -1
  428. data/lib/oci/database/models/db_system_shape_summary.rb +72 -2
  429. data/lib/oci/database/models/exadata_infrastructure.rb +57 -1
  430. data/lib/oci/database/models/exadata_infrastructure_summary.rb +57 -1
  431. data/lib/oci/database/models/local_clone_pluggable_database_details.rb +185 -0
  432. data/lib/oci/database/models/maintenance_run.rb +4 -1
  433. data/lib/oci/database/models/maintenance_run_summary.rb +4 -1
  434. data/lib/oci/database/models/pluggable_database.rb +358 -0
  435. data/lib/oci/database/models/pluggable_database_connection_strings.rb +183 -0
  436. data/lib/oci/database/models/pluggable_database_summary.rb +361 -0
  437. data/lib/oci/database/models/remote_clone_pluggable_database_details.rb +213 -0
  438. data/lib/oci/database/models/scan_details.rb +1 -1
  439. data/lib/oci/database/models/update_autonomous_database_details.rb +64 -5
  440. data/lib/oci/database/models/update_cloud_exadata_infrastructure_details.rb +18 -4
  441. data/lib/oci/database/models/update_data_guard_association_details.rb +237 -0
  442. data/lib/oci/database/models/update_exadata_infrastructure_details.rb +15 -1
  443. data/lib/oci/database/models/update_external_macs_connector_details.rb +2 -1
  444. data/lib/oci/database/models/update_maintenance_run_details.rb +4 -1
  445. data/lib/oci/database/models/update_pluggable_database_details.rb +177 -0
  446. data/lib/oci/database/models/update_vm_cluster_details.rb +14 -1
  447. data/lib/oci/database/models/vm_cluster.rb +15 -2
  448. data/lib/oci/database/models/vm_cluster_summary.rb +15 -2
  449. data/lib/oci/database/models/vm_cluster_update.rb +346 -0
  450. data/lib/oci/database/models/vm_cluster_update_details.rb +183 -0
  451. data/lib/oci/database/models/vm_cluster_update_history_entry.rb +308 -0
  452. data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +311 -0
  453. data/lib/oci/database/models/vm_cluster_update_summary.rb +349 -0
  454. data/lib/oci/database_management/database_management.rb +25 -0
  455. data/lib/oci/database_management/db_management_client.rb +1467 -97
  456. data/lib/oci/database_management/models/awr_db_collection.rb +175 -0
  457. data/lib/oci/database_management/models/awr_db_cpu_usage_collection.rb +217 -0
  458. data/lib/oci/database_management/models/awr_db_cpu_usage_summary.rb +164 -0
  459. data/lib/oci/database_management/models/awr_db_metric_collection.rb +175 -0
  460. data/lib/oci/database_management/models/awr_db_metric_summary.rb +202 -0
  461. data/lib/oci/database_management/models/awr_db_parameter_change_collection.rb +175 -0
  462. data/lib/oci/database_management/models/awr_db_parameter_change_summary.rb +255 -0
  463. data/lib/oci/database_management/models/awr_db_parameter_collection.rb +175 -0
  464. data/lib/oci/database_management/models/awr_db_parameter_summary.rb +238 -0
  465. data/lib/oci/database_management/models/awr_db_report.rb +205 -0
  466. data/lib/oci/database_management/models/awr_db_snapshot_collection.rb +175 -0
  467. data/lib/oci/database_management/models/awr_db_snapshot_range_collection.rb +175 -0
  468. data/lib/oci/database_management/models/awr_db_snapshot_range_summary.rb +331 -0
  469. data/lib/oci/database_management/models/awr_db_snapshot_summary.rb +244 -0
  470. data/lib/oci/database_management/models/awr_db_sql_report.rb +204 -0
  471. data/lib/oci/database_management/models/awr_db_summary.rb +334 -0
  472. data/lib/oci/database_management/models/awr_db_sysstat_collection.rb +175 -0
  473. data/lib/oci/database_management/models/awr_db_sysstat_summary.rb +216 -0
  474. data/lib/oci/database_management/models/awr_db_top_wait_event_collection.rb +175 -0
  475. data/lib/oci/database_management/models/awr_db_top_wait_event_summary.rb +178 -0
  476. data/lib/oci/database_management/models/awr_db_wait_event_bucket_collection.rb +189 -0
  477. data/lib/oci/database_management/models/awr_db_wait_event_bucket_summary.rb +160 -0
  478. data/lib/oci/database_management/models/awr_db_wait_event_collection.rb +175 -0
  479. data/lib/oci/database_management/models/awr_db_wait_event_summary.rb +223 -0
  480. data/lib/oci/database_management/models/awr_query_result.rb +254 -0
  481. data/lib/oci/devops/devops.rb +177 -0
  482. data/lib/oci/devops/devops_client.rb +2344 -0
  483. data/lib/oci/devops/devops_client_composite_operations.rb +974 -0
  484. data/lib/oci/devops/models/absolute_wait_criteria.rb +162 -0
  485. data/lib/oci/devops/models/absolute_wait_criteria_summary.rb +162 -0
  486. data/lib/oci/devops/models/action_type.rb +15 -0
  487. data/lib/oci/devops/models/approval_action.rb +184 -0
  488. data/lib/oci/devops/models/approval_policy.rb +189 -0
  489. data/lib/oci/devops/models/approve_deployment_details.rb +187 -0
  490. data/lib/oci/devops/models/automated_deploy_stage_rollback_policy.rb +145 -0
  491. data/lib/oci/devops/models/backend_set_ip_collection.rb +150 -0
  492. data/lib/oci/devops/models/cancel_deployment_details.rb +150 -0
  493. data/lib/oci/devops/models/change_project_compartment_details.rb +154 -0
  494. data/lib/oci/devops/models/compute_instance_group_blue_green_deploy_stage_execution_progress.rb +173 -0
  495. data/lib/oci/devops/models/compute_instance_group_blue_green_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  496. data/lib/oci/devops/models/compute_instance_group_by_ids_selector.rb +162 -0
  497. data/lib/oci/devops/models/compute_instance_group_by_query_selector.rb +168 -0
  498. data/lib/oci/devops/models/compute_instance_group_canary_approval_deploy_stage_execution_progress.rb +189 -0
  499. data/lib/oci/devops/models/compute_instance_group_canary_deploy_stage_execution_progress.rb +173 -0
  500. data/lib/oci/devops/models/compute_instance_group_canary_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  501. data/lib/oci/devops/models/compute_instance_group_deploy_environment.rb +210 -0
  502. data/lib/oci/devops/models/compute_instance_group_deploy_environment_summary.rb +210 -0
  503. data/lib/oci/devops/models/compute_instance_group_deploy_stage.rb +299 -0
  504. data/lib/oci/devops/models/compute_instance_group_deploy_stage_execution_progress.rb +173 -0
  505. data/lib/oci/devops/models/compute_instance_group_deploy_stage_summary.rb +299 -0
  506. data/lib/oci/devops/models/compute_instance_group_failure_policy.rb +191 -0
  507. data/lib/oci/devops/models/compute_instance_group_failure_policy_by_count.rb +162 -0
  508. data/lib/oci/devops/models/compute_instance_group_failure_policy_by_percentage.rb +162 -0
  509. data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_count.rb +166 -0
  510. data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_percentage.rb +166 -0
  511. data/lib/oci/devops/models/compute_instance_group_rollout_policy.rb +207 -0
  512. data/lib/oci/devops/models/compute_instance_group_selector.rb +191 -0
  513. data/lib/oci/devops/models/compute_instance_group_selector_collection.rb +150 -0
  514. data/lib/oci/devops/models/count_based_approval_policy.rb +164 -0
  515. data/lib/oci/devops/models/create_compute_instance_group_deploy_environment_details.rb +182 -0
  516. data/lib/oci/devops/models/create_compute_instance_group_deploy_stage_details.rb +267 -0
  517. data/lib/oci/devops/models/create_deploy_artifact_details.rb +248 -0
  518. data/lib/oci/devops/models/create_deploy_environment_details.rb +238 -0
  519. data/lib/oci/devops/models/create_deploy_pipeline_deployment_details.rb +190 -0
  520. data/lib/oci/devops/models/create_deploy_pipeline_details.rb +219 -0
  521. data/lib/oci/devops/models/create_deploy_pipeline_redeployment_details.rb +178 -0
  522. data/lib/oci/devops/models/create_deploy_stage_details.rb +256 -0
  523. data/lib/oci/devops/models/create_deployment_details.rb +228 -0
  524. data/lib/oci/devops/models/create_function_deploy_environment_details.rb +182 -0
  525. data/lib/oci/devops/models/create_function_deploy_stage_details.rb +238 -0
  526. data/lib/oci/devops/models/create_invoke_function_deploy_stage_details.rb +228 -0
  527. data/lib/oci/devops/models/create_load_balancer_traffic_shift_deploy_stage_details.rb +255 -0
  528. data/lib/oci/devops/models/create_manual_approval_deploy_stage_details.rb +186 -0
  529. data/lib/oci/devops/models/create_oke_cluster_deploy_environment_details.rb +182 -0
  530. data/lib/oci/devops/models/create_oke_deploy_stage_details.rb +224 -0
  531. data/lib/oci/devops/models/create_project_details.rb +216 -0
  532. data/lib/oci/devops/models/create_single_deploy_stage_deployment_details.rb +204 -0
  533. data/lib/oci/devops/models/create_wait_deploy_stage_details.rb +186 -0
  534. data/lib/oci/devops/models/deploy_artifact.rb +407 -0
  535. data/lib/oci/devops/models/deploy_artifact_collection.rb +150 -0
  536. data/lib/oci/devops/models/deploy_artifact_override_argument.rb +174 -0
  537. data/lib/oci/devops/models/deploy_artifact_override_argument_collection.rb +150 -0
  538. data/lib/oci/devops/models/deploy_artifact_source.rb +193 -0
  539. data/lib/oci/devops/models/deploy_artifact_summary.rb +342 -0
  540. data/lib/oci/devops/models/deploy_environment.rb +376 -0
  541. data/lib/oci/devops/models/deploy_environment_collection.rb +150 -0
  542. data/lib/oci/devops/models/deploy_environment_summary.rb +332 -0
  543. data/lib/oci/devops/models/deploy_pipeline.rb +365 -0
  544. data/lib/oci/{usage_api/models/saved_schedule_report.rb → devops/models/deploy_pipeline_artifact.rb} +27 -39
  545. data/lib/oci/devops/models/deploy_pipeline_artifact_collection.rb +150 -0
  546. data/lib/oci/devops/models/deploy_pipeline_collection.rb +150 -0
  547. data/lib/oci/devops/models/deploy_pipeline_deployment.rb +213 -0
  548. data/lib/oci/devops/models/deploy_pipeline_deployment_summary.rb +201 -0
  549. data/lib/oci/devops/models/deploy_pipeline_environment.rb +182 -0
  550. data/lib/oci/devops/models/deploy_pipeline_environment_collection.rb +150 -0
  551. data/lib/oci/devops/models/deploy_pipeline_parameter.rb +174 -0
  552. data/lib/oci/devops/models/deploy_pipeline_parameter_collection.rb +150 -0
  553. data/lib/oci/devops/models/deploy_pipeline_redeployment.rb +230 -0
  554. data/lib/oci/devops/models/deploy_pipeline_redeployment_summary.rb +218 -0
  555. data/lib/oci/devops/models/deploy_pipeline_stage.rb +168 -0
  556. data/lib/oci/devops/models/deploy_pipeline_stage_collection.rb +150 -0
  557. data/lib/oci/devops/models/deploy_pipeline_summary.rb +299 -0
  558. data/lib/oci/devops/models/deploy_stage.rb +411 -0
  559. data/lib/oci/devops/models/deploy_stage_collection.rb +150 -0
  560. data/lib/oci/devops/models/deploy_stage_execution_progress.rb +303 -0
  561. data/lib/oci/devops/models/deploy_stage_execution_progress_details.rb +192 -0
  562. data/lib/oci/devops/models/deploy_stage_execution_step.rb +211 -0
  563. data/lib/oci/{usage_api/models/schedule_report_summary.rb → devops/models/deploy_stage_predecessor.rb} +7 -20
  564. data/lib/oci/devops/models/deploy_stage_predecessor_collection.rb +150 -0
  565. data/lib/oci/devops/models/deploy_stage_rollback_policy.rb +191 -0
  566. data/lib/oci/devops/models/deploy_stage_summary.rb +363 -0
  567. data/lib/oci/devops/models/deployment.rb +445 -0
  568. data/lib/oci/devops/models/deployment_argument.rb +160 -0
  569. data/lib/oci/devops/models/deployment_argument_collection.rb +150 -0
  570. data/lib/oci/devops/models/deployment_collection.rb +150 -0
  571. data/lib/oci/devops/models/deployment_execution_progress.rb +182 -0
  572. data/lib/oci/devops/models/deployment_summary.rb +363 -0
  573. data/lib/oci/devops/models/function_deploy_environment.rb +210 -0
  574. data/lib/oci/devops/models/function_deploy_environment_summary.rb +210 -0
  575. data/lib/oci/devops/models/function_deploy_stage.rb +270 -0
  576. data/lib/oci/devops/models/function_deploy_stage_execution_progress.rb +173 -0
  577. data/lib/oci/devops/models/function_deploy_stage_summary.rb +270 -0
  578. data/lib/oci/devops/models/generic_deploy_artifact_source.rb +190 -0
  579. data/lib/oci/devops/models/inline_deploy_artifact_source.rb +162 -0
  580. data/lib/oci/devops/models/invoke_function_deploy_stage.rb +260 -0
  581. data/lib/oci/devops/models/invoke_function_deploy_stage_execution_progress.rb +173 -0
  582. data/lib/oci/devops/models/invoke_function_deploy_stage_summary.rb +260 -0
  583. data/lib/oci/devops/models/load_balancer_config.rb +184 -0
  584. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage.rb +308 -0
  585. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  586. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.rb +287 -0
  587. data/lib/oci/devops/models/load_balancer_traffic_shift_rollout_policy.rb +184 -0
  588. data/lib/oci/devops/models/manual_approval_deploy_stage.rb +218 -0
  589. data/lib/oci/devops/models/manual_approval_deploy_stage_execution_progress.rb +189 -0
  590. data/lib/oci/devops/models/manual_approval_deploy_stage_summary.rb +218 -0
  591. data/lib/oci/devops/models/no_deploy_stage_rollback_policy.rb +145 -0
  592. data/lib/oci/devops/models/notification_config.rb +154 -0
  593. data/lib/oci/devops/models/ocir_deploy_artifact_source.rb +176 -0
  594. data/lib/oci/devops/models/oke_cluster_deploy_environment.rb +210 -0
  595. data/lib/oci/devops/models/oke_cluster_deploy_environment_summary.rb +210 -0
  596. data/lib/oci/devops/models/oke_deploy_stage.rb +256 -0
  597. data/lib/oci/devops/models/oke_deploy_stage_execution_progress.rb +173 -0
  598. data/lib/oci/devops/models/oke_deploy_stage_summary.rb +256 -0
  599. data/lib/oci/devops/models/operation_status.rb +15 -0
  600. data/lib/oci/devops/models/operation_type.rb +28 -0
  601. data/lib/oci/devops/models/project.rb +330 -0
  602. data/lib/oci/devops/models/project_collection.rb +150 -0
  603. data/lib/oci/devops/models/project_summary.rb +292 -0
  604. data/lib/oci/devops/models/run_pipeline_deploy_stage_execution_progress.rb +173 -0
  605. data/lib/oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.rb +173 -0
  606. data/lib/oci/devops/models/single_deploy_stage_deployment.rb +230 -0
  607. data/lib/oci/devops/models/single_deploy_stage_deployment_summary.rb +218 -0
  608. data/lib/oci/devops/models/sort_order.rb +11 -0
  609. data/lib/oci/devops/models/update_compute_instance_group_deploy_environment_details.rb +177 -0
  610. data/lib/oci/devops/models/update_compute_instance_group_deploy_stage_details.rb +262 -0
  611. data/lib/oci/devops/models/update_deploy_artifact_details.rb +233 -0
  612. data/lib/oci/devops/models/update_deploy_environment_details.rb +224 -0
  613. data/lib/oci/devops/models/update_deploy_pipeline_deployment_details.rb +157 -0
  614. data/lib/oci/devops/models/update_deploy_pipeline_details.rb +205 -0
  615. data/lib/oci/devops/models/update_deploy_pipeline_redeployment_details.rb +157 -0
  616. data/lib/oci/devops/models/update_deploy_stage_details.rb +241 -0
  617. data/lib/oci/devops/models/update_deployment_details.rb +214 -0
  618. data/lib/oci/devops/models/update_function_deploy_environment_details.rb +178 -0
  619. data/lib/oci/devops/models/update_function_deploy_stage_details.rb +234 -0
  620. data/lib/oci/devops/models/update_invoke_function_deploy_stage_details.rb +224 -0
  621. data/lib/oci/devops/models/update_load_balancer_traffic_shift_deploy_stage_details.rb +247 -0
  622. data/lib/oci/devops/models/update_manual_approval_deploy_stage_details.rb +181 -0
  623. data/lib/oci/devops/models/update_oke_cluster_deploy_environment_details.rb +178 -0
  624. data/lib/oci/devops/models/update_oke_deploy_stage_details.rb +220 -0
  625. data/lib/oci/devops/models/update_project_details.rb +191 -0
  626. data/lib/oci/devops/models/update_single_deploy_stage_deployment_details.rb +157 -0
  627. data/lib/oci/devops/models/update_wait_deploy_stage_details.rb +181 -0
  628. data/lib/oci/devops/models/wait_criteria.rb +189 -0
  629. data/lib/oci/devops/models/wait_criteria_summary.rb +189 -0
  630. data/lib/oci/devops/models/wait_deploy_stage.rb +218 -0
  631. data/lib/oci/devops/models/wait_deploy_stage_execution_progress.rb +173 -0
  632. data/lib/oci/devops/models/wait_deploy_stage_summary.rb +218 -0
  633. data/lib/oci/devops/models/work_request.rb +314 -0
  634. data/lib/oci/devops/models/work_request_collection.rb +150 -0
  635. data/lib/oci/devops/models/work_request_error.rb +171 -0
  636. data/lib/oci/devops/models/work_request_error_collection.rb +150 -0
  637. data/lib/oci/devops/models/work_request_log_entry.rb +160 -0
  638. data/lib/oci/devops/models/work_request_log_entry_collection.rb +150 -0
  639. data/lib/oci/devops/models/work_request_resource.rb +216 -0
  640. data/lib/oci/devops/models/work_request_summary.rb +314 -0
  641. data/lib/oci/devops/util.rb +3 -0
  642. data/lib/oci/dns/dns.rb +1 -1
  643. data/lib/oci/dns/dns_client.rb +306 -75
  644. data/lib/oci/dns/models/create_resolver_endpoint_details.rb +2 -2
  645. data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +5 -5
  646. data/lib/oci/dns/models/external_master.rb +1 -12
  647. data/lib/oci/dns/models/resolver.rb +4 -4
  648. data/lib/oci/dns/models/resolver_endpoint.rb +2 -2
  649. data/lib/oci/dns/models/resolver_endpoint_summary.rb +2 -2
  650. data/lib/oci/dns/models/resolver_forward_rule.rb +2 -2
  651. data/lib/oci/dns/models/resolver_forward_rule_details.rb +2 -2
  652. data/lib/oci/dns/models/resolver_rule.rb +2 -2
  653. data/lib/oci/dns/models/resolver_rule_details.rb +2 -2
  654. data/lib/oci/dns/models/resolver_summary.rb +4 -4
  655. data/lib/oci/dns/models/resolver_vnic_endpoint.rb +2 -1
  656. data/lib/oci/dns/models/tsig_key.rb +4 -0
  657. data/lib/oci/dns/models/tsig_key_summary.rb +4 -0
  658. data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +2 -1
  659. data/lib/oci/dns/models/zone.rb +20 -4
  660. data/lib/oci/dns/models/zone_summary.rb +1 -0
  661. data/lib/oci/dns/models/zone_transfer_server.rb +192 -0
  662. data/lib/oci/email/email.rb +23 -0
  663. data/lib/oci/email/email_client.rb +1139 -139
  664. data/lib/oci/email/email_client_composite_operations.rb +346 -0
  665. data/lib/oci/email/models/action_type.rb +14 -0
  666. data/lib/oci/email/models/change_email_domain_compartment_details.rb +156 -0
  667. data/lib/oci/email/models/create_dkim_details.rb +225 -0
  668. data/lib/oci/email/models/create_email_domain_details.rb +220 -0
  669. data/lib/oci/email/models/create_sender_details.rb +2 -0
  670. data/lib/oci/email/models/dkim.rb +399 -0
  671. data/lib/oci/email/models/dkim_collection.rb +150 -0
  672. data/lib/oci/email/models/dkim_summary.rb +307 -0
  673. data/lib/oci/email/models/email_domain.rb +333 -0
  674. data/lib/oci/email/models/email_domain_collection.rb +150 -0
  675. data/lib/oci/email/models/email_domain_summary.rb +291 -0
  676. data/lib/oci/email/models/operation_status.rb +15 -0
  677. data/lib/oci/email/models/operation_type.rb +17 -0
  678. data/lib/oci/email/models/sender.rb +21 -4
  679. data/lib/oci/email/models/sender_summary.rb +5 -3
  680. data/lib/oci/email/models/sort_order.rb +11 -0
  681. data/lib/oci/email/models/suppression.rb +77 -7
  682. data/lib/oci/email/models/suppression_summary.rb +3 -3
  683. data/lib/oci/email/models/update_dkim_details.rb +189 -0
  684. data/lib/oci/email/models/update_email_domain_details.rb +189 -0
  685. data/lib/oci/email/models/update_sender_details.rb +2 -0
  686. data/lib/oci/email/models/work_request.rb +312 -0
  687. data/lib/oci/email/models/work_request_error.rb +172 -0
  688. data/lib/oci/email/models/work_request_error_collection.rb +150 -0
  689. data/lib/oci/email/models/work_request_log_entry.rb +160 -0
  690. data/lib/oci/email/models/work_request_log_entry_collection.rb +150 -0
  691. data/lib/oci/email/models/work_request_resource.rb +219 -0
  692. data/lib/oci/email/models/work_request_summary.rb +312 -0
  693. data/lib/oci/email/models/work_request_summary_collection.rb +150 -0
  694. data/lib/oci/generic_artifacts_content/generic_artifacts_content.rb +20 -0
  695. data/lib/oci/generic_artifacts_content/generic_artifacts_content_client.rb +410 -0
  696. data/lib/oci/generic_artifacts_content/generic_artifacts_content_client_composite_operations.rb +25 -0
  697. data/lib/oci/generic_artifacts_content/models/generic_artifact.rb +337 -0
  698. data/lib/oci/generic_artifacts_content/util.rb +3 -0
  699. data/lib/oci/jms/java_management_service_client.rb +1520 -0
  700. data/lib/oci/jms/java_management_service_client_composite_operations.rb +273 -0
  701. data/lib/oci/jms/jms.rb +63 -0
  702. data/lib/oci/jms/models/action_type.rb +14 -0
  703. data/lib/oci/jms/models/application_sort_by.rb +15 -0
  704. data/lib/oci/jms/models/application_usage.rb +292 -0
  705. data/lib/oci/jms/models/application_usage_collection.rb +150 -0
  706. data/lib/oci/jms/models/change_fleet_compartment_details.rb +154 -0
  707. data/lib/oci/jms/models/create_fleet_details.rb +210 -0
  708. data/lib/oci/jms/models/fleet.rb +358 -0
  709. data/lib/oci/jms/models/fleet_agent_configuration.rb +214 -0
  710. data/lib/oci/jms/models/fleet_agent_os_configuration.rb +171 -0
  711. data/lib/oci/jms/models/fleet_collection.rb +150 -0
  712. data/lib/oci/jms/models/fleet_summary.rb +359 -0
  713. data/lib/oci/jms/models/installation_sort_by.rb +17 -0
  714. data/lib/oci/jms/models/installation_usage.rb +306 -0
  715. data/lib/oci/jms/models/installation_usage_collection.rb +150 -0
  716. data/lib/oci/jms/models/jre_sort_by.rb +17 -0
  717. data/lib/oci/jms/models/jre_usage.rb +276 -0
  718. data/lib/oci/jms/models/jre_usage_collection.rb +150 -0
  719. data/lib/oci/jms/models/lifecycle_state.rb +15 -0
  720. data/lib/oci/jms/models/managed_instance_sort_by.rb +14 -0
  721. data/lib/oci/jms/models/managed_instance_type.rb +10 -0
  722. data/lib/oci/jms/models/managed_instance_usage.rb +308 -0
  723. data/lib/oci/jms/models/managed_instance_usage_collection.rb +150 -0
  724. data/lib/oci/jms/models/operation_status.rb +15 -0
  725. data/lib/oci/jms/models/operation_type.rb +13 -0
  726. data/lib/oci/jms/models/request_summarized_application_usage_details.rb +362 -0
  727. data/lib/oci/jms/models/request_summarized_installation_usage_details.rb +335 -0
  728. data/lib/oci/jms/models/request_summarized_jre_usage_details.rb +321 -0
  729. data/lib/oci/jms/models/request_summarized_managed_instance_usage_details.rb +358 -0
  730. data/lib/oci/jms/models/sort_by.rb +11 -0
  731. data/lib/oci/jms/models/sort_order.rb +11 -0
  732. data/lib/oci/jms/models/summarize_application_usage_fields.rb +12 -0
  733. data/lib/oci/jms/models/summarize_installation_usage_fields.rb +11 -0
  734. data/lib/oci/jms/models/summarize_jre_usage_fields.rb +12 -0
  735. data/lib/oci/jms/models/summarize_managed_instance_usage_fields.rb +12 -0
  736. data/lib/oci/jms/models/update_fleet_agent_configuration_details.rb +196 -0
  737. data/lib/oci/jms/models/update_fleet_details.rb +196 -0
  738. data/lib/oci/jms/models/work_request.rb +306 -0
  739. data/lib/oci/jms/models/work_request_collection.rb +150 -0
  740. data/lib/oci/jms/models/work_request_error.rb +173 -0
  741. data/lib/oci/jms/models/work_request_error_collection.rb +150 -0
  742. data/lib/oci/jms/models/work_request_log_entry.rb +160 -0
  743. data/lib/oci/jms/models/work_request_log_entry_collection.rb +150 -0
  744. data/lib/oci/jms/models/work_request_resource.rb +219 -0
  745. data/lib/oci/jms/util.rb +3 -0
  746. data/lib/oci/limits/limits_client.rb +12 -12
  747. data/lib/oci/limits/models/limit_definition_summary.rb +22 -7
  748. data/lib/oci/limits/models/quota.rb +6 -6
  749. data/lib/oci/limits/models/quota_summary.rb +3 -3
  750. data/lib/oci/limits/models/resource_availability.rb +7 -7
  751. data/lib/oci/limits/models/service_summary.rb +1 -1
  752. data/lib/oci/limits/quotas_client.rb +9 -9
  753. data/lib/oci/log_analytics/log_analytics.rb +1 -0
  754. data/lib/oci/log_analytics/log_analytics_client.rb +60 -0
  755. data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +2 -0
  756. data/lib/oci/log_analytics/models/compare_command_descriptor.rb +166 -0
  757. data/lib/oci/log_analytics/models/cron_schedule.rb +5 -1
  758. data/lib/oci/log_analytics/models/fixed_frequency_schedule.rb +5 -1
  759. data/lib/oci/log_analytics/models/namespace.rb +20 -4
  760. data/lib/oci/log_analytics/models/namespace_summary.rb +20 -4
  761. data/lib/oci/log_analytics/models/schedule.rb +20 -4
  762. data/lib/oci/log_analytics/models/scheduled_task.rb +54 -1
  763. data/lib/oci/log_analytics/models/scheduled_task_summary.rb +15 -1
  764. data/lib/oci/log_analytics/models/standard_task.rb +9 -1
  765. data/lib/oci/log_analytics/models/stream_action.rb +40 -4
  766. data/lib/oci/loggingingestion/logging_client.rb +1 -1
  767. data/lib/oci/loggingingestion/models/log_entry.rb +1 -1
  768. data/lib/oci/loggingingestion/models/log_entry_batch.rb +2 -2
  769. data/lib/oci/management_dashboard/dashx_apis_client.rb +16 -6
  770. data/lib/oci/management_dashboard/dashx_apis_client_composite_operations.rb +238 -0
  771. data/lib/oci/management_dashboard/management_dashboard.rb +1 -0
  772. data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +15 -1
  773. data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -1
  774. data/lib/oci/management_dashboard/models/management_dashboard.rb +59 -2
  775. data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +4 -36
  776. data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +15 -1
  777. data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +12 -2
  778. data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +18 -4
  779. data/lib/oci/management_dashboard/models/management_saved_search.rb +47 -1
  780. data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +18 -4
  781. data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +15 -1
  782. data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +15 -1
  783. data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -1
  784. data/lib/oci/marketplace/account_client.rb +220 -0
  785. data/lib/oci/marketplace/account_client_composite_operations.rb +25 -0
  786. data/lib/oci/marketplace/marketplace.rb +8 -0
  787. data/lib/oci/marketplace/marketplace_client.rb +86 -24
  788. data/lib/oci/marketplace/marketplace_client_composite_operations.rb +4 -4
  789. data/lib/oci/marketplace/models/change_publication_compartment_details.rb +2 -2
  790. data/lib/oci/marketplace/models/create_image_publication_package.rb +2 -2
  791. data/lib/oci/marketplace/models/create_publication_details.rb +10 -8
  792. data/lib/oci/marketplace/models/create_publication_package.rb +4 -4
  793. data/lib/oci/marketplace/models/eula.rb +2 -2
  794. data/lib/oci/marketplace/models/free_text_search_details.rb +162 -0
  795. data/lib/oci/marketplace/models/image_publication_package.rb +3 -3
  796. data/lib/oci/marketplace/models/launch_eligibility.rb +178 -0
  797. data/lib/oci/marketplace/models/listing.rb +2 -2
  798. data/lib/oci/marketplace/models/listing_package_summary.rb +10 -1
  799. data/lib/oci/marketplace/models/listing_summary.rb +2 -2
  800. data/lib/oci/marketplace/models/matching_context_type_enum.rb +11 -0
  801. data/lib/oci/marketplace/models/operating_system.rb +2 -2
  802. data/lib/oci/marketplace/models/orchestration_publication_package.rb +3 -3
  803. data/lib/oci/marketplace/models/publication.rb +11 -11
  804. data/lib/oci/marketplace/models/publication_package.rb +3 -3
  805. data/lib/oci/marketplace/models/publication_package_summary.rb +1 -1
  806. data/lib/oci/marketplace/models/publication_summary.rb +9 -9
  807. data/lib/oci/marketplace/models/publisher_summary.rb +1 -1
  808. data/lib/oci/marketplace/models/search_details_type_enum.rb +11 -0
  809. data/lib/oci/marketplace/models/search_listings_details.rb +207 -0
  810. data/lib/oci/marketplace/models/structured_search_details.rb +162 -0
  811. data/lib/oci/marketplace/models/text_based_eula.rb +2 -2
  812. data/lib/oci/marketplace/models/third_party_paid_listing_eligibility.rb +210 -0
  813. data/lib/oci/marketplace/models/update_publication_details.rb +5 -5
  814. data/lib/oci/mysql/db_backups_client.rb +76 -0
  815. data/lib/oci/mysql/db_backups_client_composite_operations.rb +50 -0
  816. data/lib/oci/mysql/models/change_backup_compartment_details.rb +154 -0
  817. data/lib/oci/mysql/mysql.rb +1 -0
  818. data/lib/oci/oce/models/create_oce_instance_details.rb +3 -1
  819. data/lib/oci/oce/models/license_type.rb +3 -1
  820. data/lib/oci/oce/models/oce_instance.rb +19 -1
  821. data/lib/oci/oce/models/oce_instance_summary.rb +22 -4
  822. data/lib/oci/oce/models/update_oce_instance_details.rb +3 -1
  823. data/lib/oci/oce/oce_instance_client.rb +2 -0
  824. data/lib/oci/ocvp/models/create_esxi_host_details.rb +3 -1
  825. data/lib/oci/ocvp/models/create_sddc_details.rb +21 -2
  826. data/lib/oci/ocvp/models/downgrade_hcx_details.rb +154 -0
  827. data/lib/oci/ocvp/models/esxi_host.rb +2 -0
  828. data/lib/oci/ocvp/models/esxi_host_summary.rb +2 -0
  829. data/lib/oci/ocvp/models/hcx_license_status.rb +13 -0
  830. data/lib/oci/ocvp/models/hcx_license_summary.rb +201 -0
  831. data/lib/oci/ocvp/models/operation_types.rb +5 -1
  832. data/lib/oci/ocvp/models/sddc.rb +86 -2
  833. data/lib/oci/ocvp/models/supported_sku_summary.rb +2 -1
  834. data/lib/oci/ocvp/models/supported_sku_summary_collection.rb +3 -1
  835. data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
  836. data/lib/oci/ocvp/models/work_request.rb +4 -0
  837. data/lib/oci/ocvp/ocvp.rb +3 -0
  838. data/lib/oci/ocvp/sddc_client.rb +291 -2
  839. data/lib/oci/ocvp/sddc_client_composite_operations.rb +201 -0
  840. data/lib/oci/opsi/models/autonomous_database_configuration_summary.rb +198 -0
  841. data/lib/oci/opsi/models/create_enterprise_manager_bridge_details.rb +2 -2
  842. data/lib/oci/opsi/models/create_host_insight_details.rb +1 -1
  843. data/lib/oci/opsi/models/create_macs_managed_external_host_insight_details.rb +1 -1
  844. data/lib/oci/opsi/models/database_configuration_collection.rb +150 -0
  845. data/lib/oci/opsi/models/database_configuration_summary.rb +323 -0
  846. data/lib/oci/opsi/models/database_details.rb +1 -0
  847. data/lib/oci/opsi/models/database_insight.rb +1 -0
  848. data/lib/oci/opsi/models/database_insight_summary.rb +1 -0
  849. data/lib/oci/opsi/models/em_managed_external_database_configuration_summary.rb +222 -0
  850. data/lib/oci/opsi/models/enable_host_insight_details.rb +1 -1
  851. data/lib/oci/opsi/models/enable_macs_managed_external_host_insight_details.rb +1 -1
  852. data/lib/oci/opsi/models/enterprise_manager_bridge.rb +16 -1
  853. data/lib/oci/opsi/models/enterprise_manager_bridge_summary.rb +16 -1
  854. data/lib/oci/opsi/models/host_insight.rb +1 -0
  855. data/lib/oci/opsi/models/host_insight_summary.rb +1 -0
  856. data/lib/oci/opsi/models/lifecycle_state.rb +2 -1
  857. data/lib/oci/opsi/models/macs_managed_external_database_configuration_summary.rb +236 -0
  858. data/lib/oci/opsi/models/macs_managed_external_host_insight.rb +1 -1
  859. data/lib/oci/opsi/models/macs_managed_external_host_insight_summary.rb +1 -1
  860. data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +15 -1
  861. data/lib/oci/opsi/models/tablespace_usage_trend_aggregation.rb +1 -1
  862. data/lib/oci/opsi/operations_insights_client.rb +631 -25
  863. data/lib/oci/opsi/opsi.rb +5 -0
  864. data/lib/oci/regions.rb +3 -0
  865. data/lib/oci/secrets/secrets_client.rb +71 -1
  866. data/lib/oci/tenant_manager_control_plane/models/activate_order_details.rb +154 -0
  867. data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +5 -1
  868. data/lib/oci/tenant_manager_control_plane/models/order.rb +206 -0
  869. data/lib/oci/{dns/models/tsig.rb → tenant_manager_control_plane/models/sku.rb} +22 -25
  870. data/lib/oci/tenant_manager_control_plane/models/subscription_info.rb +202 -0
  871. data/lib/oci/tenant_manager_control_plane/models/work_request.rb +4 -0
  872. data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +4 -0
  873. data/lib/oci/tenant_manager_control_plane/orders_client.rb +225 -0
  874. data/lib/oci/tenant_manager_control_plane/orders_client_composite_operations.rb +76 -0
  875. data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +6 -0
  876. data/lib/oci/usage_api/models/cost_analysis_ui.rb +2 -2
  877. data/lib/oci/usage_api/models/create_custom_table_details.rb +10 -10
  878. data/lib/oci/usage_api/models/create_query_details.rb +1 -1
  879. data/lib/oci/usage_api/models/custom_table.rb +13 -13
  880. data/lib/oci/usage_api/models/custom_table_summary.rb +1 -1
  881. data/lib/oci/usage_api/models/dimension.rb +1 -1
  882. data/lib/oci/usage_api/models/forecast.rb +3 -3
  883. data/lib/oci/usage_api/models/query_definition.rb +1 -1
  884. data/lib/oci/usage_api/models/query_summary.rb +1 -1
  885. data/lib/oci/usage_api/models/report_query.rb +11 -5
  886. data/lib/oci/usage_api/models/request_summarized_usages_details.rb +11 -5
  887. data/lib/oci/usage_api/models/saved_custom_table.rb +6 -6
  888. data/lib/oci/usage_api/models/update_custom_table_details.rb +1 -1
  889. data/lib/oci/usage_api/models/update_query_details.rb +1 -1
  890. data/lib/oci/usage_api/models/usage_summary.rb +1 -1
  891. data/lib/oci/usage_api/usage_api.rb +0 -6
  892. data/lib/oci/usage_api/usageapi_client.rb +332 -1
  893. data/lib/oci/version.rb +1 -1
  894. metadata +512 -16
@@ -14,6 +14,31 @@ end
14
14
  require 'oci/database_management/models/activity_time_series_metrics'
15
15
  require 'oci/database_management/models/add_managed_database_to_managed_database_group_details'
16
16
  require 'oci/database_management/models/allowed_parameter_value'
17
+ require 'oci/database_management/models/awr_db_collection'
18
+ require 'oci/database_management/models/awr_db_cpu_usage_collection'
19
+ require 'oci/database_management/models/awr_db_cpu_usage_summary'
20
+ require 'oci/database_management/models/awr_db_metric_collection'
21
+ require 'oci/database_management/models/awr_db_metric_summary'
22
+ require 'oci/database_management/models/awr_db_parameter_change_collection'
23
+ require 'oci/database_management/models/awr_db_parameter_change_summary'
24
+ require 'oci/database_management/models/awr_db_parameter_collection'
25
+ require 'oci/database_management/models/awr_db_parameter_summary'
26
+ require 'oci/database_management/models/awr_db_report'
27
+ require 'oci/database_management/models/awr_db_snapshot_collection'
28
+ require 'oci/database_management/models/awr_db_snapshot_range_collection'
29
+ require 'oci/database_management/models/awr_db_snapshot_range_summary'
30
+ require 'oci/database_management/models/awr_db_snapshot_summary'
31
+ require 'oci/database_management/models/awr_db_sql_report'
32
+ require 'oci/database_management/models/awr_db_summary'
33
+ require 'oci/database_management/models/awr_db_sysstat_collection'
34
+ require 'oci/database_management/models/awr_db_sysstat_summary'
35
+ require 'oci/database_management/models/awr_db_top_wait_event_collection'
36
+ require 'oci/database_management/models/awr_db_top_wait_event_summary'
37
+ require 'oci/database_management/models/awr_db_wait_event_bucket_collection'
38
+ require 'oci/database_management/models/awr_db_wait_event_bucket_summary'
39
+ require 'oci/database_management/models/awr_db_wait_event_collection'
40
+ require 'oci/database_management/models/awr_db_wait_event_summary'
41
+ require 'oci/database_management/models/awr_query_result'
17
42
  require 'oci/database_management/models/change_database_parameter_details'
18
43
  require 'oci/database_management/models/change_database_parameters_details'
19
44
  require 'oci/database_management/models/change_job_compartment_details'
@@ -636,6 +636,199 @@ module OCI
636
636
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
637
637
 
638
638
 
639
+ # Gets the AWR report for the specified Managed Database.
640
+ #
641
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
642
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
643
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
644
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
645
+ #
646
+ # @param [Hash] opts the optional parameters
647
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
648
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
649
+ # @option opts [Array<Integer>] :inst_nums The optional multiple value query parameter to filter the database instance numbers.
650
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
651
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
652
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
653
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
654
+ # @option opts [String] :report_type The query parameter to filter the AWR report types. (default to AWR)
655
+ # Allowed values are: AWR, ASH
656
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
657
+ # Note that the database container ID can be retrieved from the following endpoint:
658
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
659
+ #
660
+ # @option opts [String] :report_format The format of the AWR report. (default to HTML)
661
+ # Allowed values are: HTML, TEXT
662
+ # @option opts [String] :opc_request_id The client request ID for tracing.
663
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
664
+ # server error without risk of executing that same action again. Retry tokens expire after 24
665
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
666
+ # has been deleted and purged from the system, then a retry of the original creation request
667
+ # might be rejected.
668
+ #
669
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbReport AwrDbReport}
670
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/get_awr_db_report.rb.html) to see an example of how to use get_awr_db_report API.
671
+ def get_awr_db_report(managed_database_id, awr_db_id, opts = {})
672
+ logger.debug 'Calling operation DbManagementClient#get_awr_db_report.' if logger
673
+
674
+ raise "Missing the required parameter 'managed_database_id' when calling get_awr_db_report." if managed_database_id.nil?
675
+ raise "Missing the required parameter 'awr_db_id' when calling get_awr_db_report." if awr_db_id.nil?
676
+
677
+ if opts[:report_type] && !%w[AWR ASH].include?(opts[:report_type])
678
+ raise 'Invalid value for "report_type", must be one of AWR, ASH.'
679
+ end
680
+
681
+ if opts[:report_format] && !%w[HTML TEXT].include?(opts[:report_format])
682
+ raise 'Invalid value for "report_format", must be one of HTML, TEXT.'
683
+ end
684
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
685
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
686
+
687
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbReport'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
688
+ operation_signing_strategy = :standard
689
+
690
+ # rubocop:disable Style/NegatedIf
691
+ # Query Params
692
+ query_params = {}
693
+ query_params[:instNums] = OCI::ApiClient.build_collection_params(opts[:inst_nums], :csv) if opts[:inst_nums] && !opts[:inst_nums].empty?
694
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
695
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
696
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
697
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
698
+ query_params[:reportType] = opts[:report_type] if opts[:report_type]
699
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
700
+ query_params[:reportFormat] = opts[:report_format] if opts[:report_format]
701
+
702
+ # Header Params
703
+ header_params = {}
704
+ header_params[:accept] = 'application/json'
705
+ header_params[:'content-type'] = 'application/json'
706
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
707
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
708
+ # rubocop:enable Style/NegatedIf
709
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
710
+
711
+ post_body = nil
712
+
713
+ # rubocop:disable Metrics/BlockLength
714
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#get_awr_db_report') do
715
+ @api_client.call_api(
716
+ :GET,
717
+ path,
718
+ endpoint,
719
+ header_params: header_params,
720
+ query_params: query_params,
721
+ operation_signing_strategy: operation_signing_strategy,
722
+ body: post_body,
723
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbReport'
724
+ )
725
+ end
726
+ # rubocop:enable Metrics/BlockLength
727
+ end
728
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
729
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
730
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
731
+
732
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
733
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
734
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
735
+
736
+
737
+ # Get a AWR SQL report for one SQL.
738
+ #
739
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
740
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
741
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
742
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
743
+ #
744
+ # @param [String] sql_id The parameter to filter SQL by ID. Note that the SQL ID is generated internally by Oracle for each SQL statement and can be retrieved from AWR Report API (/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbReport) or Performance Hub API (/internal/managedDatabases/{managedDatabaseId}/actions/retrievePerformanceData)
745
+ #
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
748
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
749
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
750
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
751
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
752
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
753
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
754
+ # @option opts [String] :report_format The format of the AWR report. (default to HTML)
755
+ # Allowed values are: HTML, TEXT
756
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
757
+ # Note that the database container ID can be retrieved from the following endpoint:
758
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
759
+ #
760
+ # @option opts [String] :opc_request_id The client request ID for tracing.
761
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
762
+ # server error without risk of executing that same action again. Retry tokens expire after 24
763
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
764
+ # has been deleted and purged from the system, then a retry of the original creation request
765
+ # might be rejected.
766
+ #
767
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbSqlReport AwrDbSqlReport}
768
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/get_awr_db_sql_report.rb.html) to see an example of how to use get_awr_db_sql_report API.
769
+ def get_awr_db_sql_report(managed_database_id, awr_db_id, sql_id, opts = {})
770
+ logger.debug 'Calling operation DbManagementClient#get_awr_db_sql_report.' if logger
771
+
772
+ raise "Missing the required parameter 'managed_database_id' when calling get_awr_db_sql_report." if managed_database_id.nil?
773
+ raise "Missing the required parameter 'awr_db_id' when calling get_awr_db_sql_report." if awr_db_id.nil?
774
+ raise "Missing the required parameter 'sql_id' when calling get_awr_db_sql_report." if sql_id.nil?
775
+
776
+ if opts[:report_format] && !%w[HTML TEXT].include?(opts[:report_format])
777
+ raise 'Invalid value for "report_format", must be one of HTML, TEXT.'
778
+ end
779
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
780
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
781
+
782
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSqlReport'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
783
+ operation_signing_strategy = :standard
784
+
785
+ # rubocop:disable Style/NegatedIf
786
+ # Query Params
787
+ query_params = {}
788
+ query_params[:sqlId] = sql_id
789
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
790
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
791
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
792
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
793
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
794
+ query_params[:reportFormat] = opts[:report_format] if opts[:report_format]
795
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
796
+
797
+ # Header Params
798
+ header_params = {}
799
+ header_params[:accept] = 'application/json'
800
+ header_params[:'content-type'] = 'application/json'
801
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
802
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
803
+ # rubocop:enable Style/NegatedIf
804
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
805
+
806
+ post_body = nil
807
+
808
+ # rubocop:disable Metrics/BlockLength
809
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#get_awr_db_sql_report') do
810
+ @api_client.call_api(
811
+ :GET,
812
+ path,
813
+ endpoint,
814
+ header_params: header_params,
815
+ query_params: query_params,
816
+ operation_signing_strategy: operation_signing_strategy,
817
+ body: post_body,
818
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbSqlReport'
819
+ )
820
+ end
821
+ # rubocop:enable Metrics/BlockLength
822
+ end
823
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
824
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
825
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
826
+
827
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
828
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
829
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
830
+
831
+
639
832
  # Gets the metrics related to cluster cache for the Oracle
640
833
  # Real Application Clusters (Oracle RAC) database specified
641
834
  # by managedDatabaseId.
@@ -1117,57 +1310,71 @@ module OCI
1117
1310
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1118
1311
 
1119
1312
 
1120
- # Gets the list of database parameters for the specified Managed Database. The parameters are listed in alphabetical order, along with their current values.
1313
+ # Lists AWR snapshots for the specified database in the AWR.
1121
1314
  #
1122
1315
  # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1316
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
1317
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
1318
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
1319
+ #
1123
1320
  # @param [Hash] opts the optional parameters
1124
1321
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1125
1322
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1323
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
1324
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
1325
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
1326
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
1327
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
1328
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
1329
+ # Note that the database container ID can be retrieved from the following endpoint:
1330
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
1331
+ #
1332
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1333
+ # are retrieved. This is usually retrieved from a previous list call.
1334
+ #
1335
+ # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1336
+ # @option opts [String] :sort_by The option to sort the AWR snapshot summary data. (default to TIME_BEGIN)
1337
+ # Allowed values are: TIME_BEGIN, SNAPSHOT_ID
1338
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
1126
1339
  # @option opts [String] :opc_request_id The client request ID for tracing.
1127
- # @option opts [String] :source The source used to list database parameters. `CURRENT` is used to get the
1128
- # database parameters that are currently in effect for the database
1129
- # instance. `SPFILE` is used to list parameters from the server parameter
1130
- # file. Default is `CURRENT`.
1131
- # (default to CURRENT)
1132
- # Allowed values are: CURRENT, SPFILE
1133
- # @option opts [String] :name A filter to return all parameters that have the text given in their names.
1340
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1341
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1342
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1343
+ # has been deleted and purged from the system, then a retry of the original creation request
1344
+ # might be rejected.
1134
1345
  #
1135
- # @option opts [BOOLEAN] :is_allowed_values_included When true, results include a list of valid values for parameters (if applicable).
1136
- # (default to false)
1137
- # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The
1138
- # default sort order for `NAME` is ascending and it is case-sensitive.
1139
- # (default to NAME)
1140
- # Allowed values are: NAME
1141
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1142
- # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::DatabaseParametersCollection DatabaseParametersCollection}
1143
- # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_database_parameters.rb.html) to see an example of how to use list_database_parameters API.
1144
- def list_database_parameters(managed_database_id, opts = {})
1145
- logger.debug 'Calling operation DbManagementClient#list_database_parameters.' if logger
1346
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbSnapshotCollection AwrDbSnapshotCollection}
1347
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_awr_db_snapshots.rb.html) to see an example of how to use list_awr_db_snapshots API.
1348
+ def list_awr_db_snapshots(managed_database_id, awr_db_id, opts = {})
1349
+ logger.debug 'Calling operation DbManagementClient#list_awr_db_snapshots.' if logger
1146
1350
 
1147
- raise "Missing the required parameter 'managed_database_id' when calling list_database_parameters." if managed_database_id.nil?
1148
-
1149
- if opts[:source] && !%w[CURRENT SPFILE].include?(opts[:source])
1150
- raise 'Invalid value for "source", must be one of CURRENT, SPFILE.'
1151
- end
1351
+ raise "Missing the required parameter 'managed_database_id' when calling list_awr_db_snapshots." if managed_database_id.nil?
1352
+ raise "Missing the required parameter 'awr_db_id' when calling list_awr_db_snapshots." if awr_db_id.nil?
1152
1353
 
1153
- if opts[:sort_by] && !%w[NAME].include?(opts[:sort_by])
1154
- raise 'Invalid value for "sort_by", must be one of NAME.'
1354
+ if opts[:sort_by] && !%w[TIME_BEGIN SNAPSHOT_ID].include?(opts[:sort_by])
1355
+ raise 'Invalid value for "sort_by", must be one of TIME_BEGIN, SNAPSHOT_ID.'
1155
1356
  end
1156
1357
 
1157
1358
  if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
1158
1359
  raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
1159
1360
  end
1160
1361
  raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
1362
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
1161
1363
 
1162
- path = '/managedDatabases/{managedDatabaseId}/databaseParameters'.sub('{managedDatabaseId}', managed_database_id.to_s)
1364
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSnapshots'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
1163
1365
  operation_signing_strategy = :standard
1164
1366
 
1165
1367
  # rubocop:disable Style/NegatedIf
1166
1368
  # Query Params
1167
1369
  query_params = {}
1168
- query_params[:source] = opts[:source] if opts[:source]
1169
- query_params[:name] = opts[:name] if opts[:name]
1170
- query_params[:isAllowedValuesIncluded] = opts[:is_allowed_values_included] if !opts[:is_allowed_values_included].nil?
1370
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
1371
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
1372
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
1373
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
1374
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
1375
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
1376
+ query_params[:page] = opts[:page] if opts[:page]
1377
+ query_params[:limit] = opts[:limit] if opts[:limit]
1171
1378
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1172
1379
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1173
1380
 
@@ -1176,12 +1383,14 @@ module OCI
1176
1383
  header_params[:accept] = 'application/json'
1177
1384
  header_params[:'content-type'] = 'application/json'
1178
1385
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1386
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1179
1387
  # rubocop:enable Style/NegatedIf
1388
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1180
1389
 
1181
1390
  post_body = nil
1182
1391
 
1183
1392
  # rubocop:disable Metrics/BlockLength
1184
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_database_parameters') do
1393
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_awr_db_snapshots') do
1185
1394
  @api_client.call_api(
1186
1395
  :GET,
1187
1396
  path,
@@ -1190,7 +1399,7 @@ module OCI
1190
1399
  query_params: query_params,
1191
1400
  operation_signing_strategy: operation_signing_strategy,
1192
1401
  body: post_body,
1193
- return_type: 'OCI::DatabaseManagement::Models::DatabaseParametersCollection'
1402
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbSnapshotCollection'
1194
1403
  )
1195
1404
  end
1196
1405
  # rubocop:enable Metrics/BlockLength
@@ -1204,62 +1413,56 @@ module OCI
1204
1413
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1205
1414
 
1206
1415
 
1207
- # Gets the job execution for a specific ID or the list of job executions for a job, Managed Database or Managed Database Group
1208
- # in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId or managedDatabaseGroupId should be provided.
1209
- # If none of these parameters is provided, all the job executions in the compartment are listed. Job executions can also be filtered
1210
- # based on the name and status parameters.
1416
+ # Gets the list of databases and their snapshot summary details available in the AWR of the specified Managed Database.
1211
1417
  #
1212
- # @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
1418
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1213
1419
  # @param [Hash] opts the optional parameters
1214
1420
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1215
1421
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1216
- # @option opts [String] :opc_request_id The client request ID for tracing.
1217
- # @option opts [String] :id The identifier of the resource.
1218
- # @option opts [String] :job_id The identifier of the job.
1219
- # @option opts [String] :managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1220
- # @option opts [String] :managed_database_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group.
1221
- # @option opts [String] :status The status of the job execution.
1222
- # @option opts [String] :name A filter to return only resources that match the entire name.
1223
- # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1422
+ # @option opts [String] :name The optional single value query parameter to filter the entity name.
1423
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
1424
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
1224
1425
  # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1225
1426
  # are retrieved. This is usually retrieved from a previous list call.
1226
1427
  #
1227
- # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The default sort order
1228
- # for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
1229
- # The \u2018NAME\u2019 sort order is case-sensitive.
1230
- # (default to TIMECREATED)
1231
- # Allowed values are: TIMECREATED, NAME
1232
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1233
- # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::JobExecutionCollection JobExecutionCollection}
1234
- # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_job_executions.rb.html) to see an example of how to use list_job_executions API.
1235
- def list_job_executions(compartment_id, opts = {})
1236
- logger.debug 'Calling operation DbManagementClient#list_job_executions.' if logger
1428
+ # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1429
+ # @option opts [String] :sort_by The option to sort the AWR summary data. (default to END_INTERVAL_TIME)
1430
+ # Allowed values are: END_INTERVAL_TIME, NAME
1431
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
1432
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1433
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1434
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1435
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1436
+ # has been deleted and purged from the system, then a retry of the original creation request
1437
+ # might be rejected.
1438
+ #
1439
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbCollection AwrDbCollection}
1440
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_awr_dbs.rb.html) to see an example of how to use list_awr_dbs API.
1441
+ def list_awr_dbs(managed_database_id, opts = {})
1442
+ logger.debug 'Calling operation DbManagementClient#list_awr_dbs.' if logger
1237
1443
 
1238
- raise "Missing the required parameter 'compartment_id' when calling list_job_executions." if compartment_id.nil?
1444
+ raise "Missing the required parameter 'managed_database_id' when calling list_awr_dbs." if managed_database_id.nil?
1239
1445
 
1240
- if opts[:sort_by] && !%w[TIMECREATED NAME].include?(opts[:sort_by])
1241
- raise 'Invalid value for "sort_by", must be one of TIMECREATED, NAME.'
1446
+ if opts[:sort_by] && !%w[END_INTERVAL_TIME NAME].include?(opts[:sort_by])
1447
+ raise 'Invalid value for "sort_by", must be one of END_INTERVAL_TIME, NAME.'
1242
1448
  end
1243
1449
 
1244
1450
  if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
1245
1451
  raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
1246
1452
  end
1453
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
1247
1454
 
1248
- path = '/jobExecutions'
1455
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs'.sub('{managedDatabaseId}', managed_database_id.to_s)
1249
1456
  operation_signing_strategy = :standard
1250
1457
 
1251
1458
  # rubocop:disable Style/NegatedIf
1252
1459
  # Query Params
1253
1460
  query_params = {}
1254
- query_params[:compartmentId] = compartment_id
1255
- query_params[:id] = opts[:id] if opts[:id]
1256
- query_params[:jobId] = opts[:job_id] if opts[:job_id]
1257
- query_params[:managedDatabaseId] = opts[:managed_database_id] if opts[:managed_database_id]
1258
- query_params[:managedDatabaseGroupId] = opts[:managed_database_group_id] if opts[:managed_database_group_id]
1259
- query_params[:status] = opts[:status] if opts[:status]
1260
1461
  query_params[:name] = opts[:name] if opts[:name]
1261
- query_params[:limit] = opts[:limit] if opts[:limit]
1462
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
1463
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
1262
1464
  query_params[:page] = opts[:page] if opts[:page]
1465
+ query_params[:limit] = opts[:limit] if opts[:limit]
1263
1466
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1264
1467
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1265
1468
 
@@ -1268,12 +1471,14 @@ module OCI
1268
1471
  header_params[:accept] = 'application/json'
1269
1472
  header_params[:'content-type'] = 'application/json'
1270
1473
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1474
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1271
1475
  # rubocop:enable Style/NegatedIf
1476
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1272
1477
 
1273
1478
  post_body = nil
1274
1479
 
1275
1480
  # rubocop:disable Metrics/BlockLength
1276
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_job_executions') do
1481
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_awr_dbs') do
1277
1482
  @api_client.call_api(
1278
1483
  :GET,
1279
1484
  path,
@@ -1282,7 +1487,7 @@ module OCI
1282
1487
  query_params: query_params,
1283
1488
  operation_signing_strategy: operation_signing_strategy,
1284
1489
  body: post_body,
1285
- return_type: 'OCI::DatabaseManagement::Models::JobExecutionCollection'
1490
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbCollection'
1286
1491
  )
1287
1492
  end
1288
1493
  # rubocop:enable Metrics/BlockLength
@@ -1296,38 +1501,217 @@ module OCI
1296
1501
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1297
1502
 
1298
1503
 
1299
- # Gets the job run for a specific ID or the list of job runs for a job, Managed Database or Managed Database Group
1300
- # in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId, or managedDatabaseGroupId
1301
- # should be provided. If none of these parameters is provided, all the job runs in the compartment are listed.
1302
- # Job runs can also be filtered based on name and runStatus parameters.
1504
+ # Gets the list of database parameters for the specified Managed Database. The parameters are listed in alphabetical order, along with their current values.
1303
1505
  #
1304
- # @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
1506
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1305
1507
  # @param [Hash] opts the optional parameters
1306
1508
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1307
1509
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1308
1510
  # @option opts [String] :opc_request_id The client request ID for tracing.
1309
- # @option opts [String] :id The identifier of the resource.
1310
- # @option opts [String] :job_id The identifier of the job.
1311
- # @option opts [String] :managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1312
- # @option opts [String] :managed_database_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group.
1313
- # @option opts [String] :run_status The status of the job run.
1314
- # @option opts [String] :name A filter to return only resources that match the entire name.
1315
- # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1316
- # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1317
- # are retrieved. This is usually retrieved from a previous list call.
1511
+ # @option opts [String] :source The source used to list database parameters. `CURRENT` is used to get the
1512
+ # database parameters that are currently in effect for the database
1513
+ # instance. `SPFILE` is used to list parameters from the server parameter
1514
+ # file. Default is `CURRENT`.
1515
+ # (default to CURRENT)
1516
+ # Allowed values are: CURRENT, SPFILE
1517
+ # @option opts [String] :name A filter to return all parameters that have the text given in their names.
1318
1518
  #
1319
- # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The default sort order
1320
- # for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
1321
- # The \u2018NAME\u2019 sort order is case-sensitive.
1322
- # (default to TIMECREATED)
1323
- # Allowed values are: TIMECREATED, NAME
1324
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1325
- # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::JobRunCollection JobRunCollection}
1326
- # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_job_runs.rb.html) to see an example of how to use list_job_runs API.
1327
- def list_job_runs(compartment_id, opts = {})
1328
- logger.debug 'Calling operation DbManagementClient#list_job_runs.' if logger
1519
+ # @option opts [BOOLEAN] :is_allowed_values_included When true, results include a list of valid values for parameters (if applicable).
1520
+ # (default to false)
1521
+ # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The
1522
+ # default sort order for `NAME` is ascending and it is case-sensitive.
1523
+ # (default to NAME)
1524
+ # Allowed values are: NAME
1525
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1526
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::DatabaseParametersCollection DatabaseParametersCollection}
1527
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_database_parameters.rb.html) to see an example of how to use list_database_parameters API.
1528
+ def list_database_parameters(managed_database_id, opts = {})
1529
+ logger.debug 'Calling operation DbManagementClient#list_database_parameters.' if logger
1329
1530
 
1330
- raise "Missing the required parameter 'compartment_id' when calling list_job_runs." if compartment_id.nil?
1531
+ raise "Missing the required parameter 'managed_database_id' when calling list_database_parameters." if managed_database_id.nil?
1532
+
1533
+ if opts[:source] && !%w[CURRENT SPFILE].include?(opts[:source])
1534
+ raise 'Invalid value for "source", must be one of CURRENT, SPFILE.'
1535
+ end
1536
+
1537
+ if opts[:sort_by] && !%w[NAME].include?(opts[:sort_by])
1538
+ raise 'Invalid value for "sort_by", must be one of NAME.'
1539
+ end
1540
+
1541
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
1542
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
1543
+ end
1544
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
1545
+
1546
+ path = '/managedDatabases/{managedDatabaseId}/databaseParameters'.sub('{managedDatabaseId}', managed_database_id.to_s)
1547
+ operation_signing_strategy = :standard
1548
+
1549
+ # rubocop:disable Style/NegatedIf
1550
+ # Query Params
1551
+ query_params = {}
1552
+ query_params[:source] = opts[:source] if opts[:source]
1553
+ query_params[:name] = opts[:name] if opts[:name]
1554
+ query_params[:isAllowedValuesIncluded] = opts[:is_allowed_values_included] if !opts[:is_allowed_values_included].nil?
1555
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1556
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1557
+
1558
+ # Header Params
1559
+ header_params = {}
1560
+ header_params[:accept] = 'application/json'
1561
+ header_params[:'content-type'] = 'application/json'
1562
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1563
+ # rubocop:enable Style/NegatedIf
1564
+
1565
+ post_body = nil
1566
+
1567
+ # rubocop:disable Metrics/BlockLength
1568
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_database_parameters') do
1569
+ @api_client.call_api(
1570
+ :GET,
1571
+ path,
1572
+ endpoint,
1573
+ header_params: header_params,
1574
+ query_params: query_params,
1575
+ operation_signing_strategy: operation_signing_strategy,
1576
+ body: post_body,
1577
+ return_type: 'OCI::DatabaseManagement::Models::DatabaseParametersCollection'
1578
+ )
1579
+ end
1580
+ # rubocop:enable Metrics/BlockLength
1581
+ end
1582
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1583
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1584
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1585
+
1586
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1587
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1588
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1589
+
1590
+
1591
+ # Gets the job execution for a specific ID or the list of job executions for a job, Managed Database or Managed Database Group
1592
+ # in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId or managedDatabaseGroupId should be provided.
1593
+ # If none of these parameters is provided, all the job executions in the compartment are listed. Job executions can also be filtered
1594
+ # based on the name and status parameters.
1595
+ #
1596
+ # @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
1597
+ # @param [Hash] opts the optional parameters
1598
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1599
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1600
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1601
+ # @option opts [String] :id The identifier of the resource.
1602
+ # @option opts [String] :job_id The identifier of the job.
1603
+ # @option opts [String] :managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1604
+ # @option opts [String] :managed_database_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group.
1605
+ # @option opts [String] :status The status of the job execution.
1606
+ # @option opts [String] :name A filter to return only resources that match the entire name.
1607
+ # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1608
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1609
+ # are retrieved. This is usually retrieved from a previous list call.
1610
+ #
1611
+ # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The default sort order
1612
+ # for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
1613
+ # The \u2018NAME\u2019 sort order is case-sensitive.
1614
+ # (default to TIMECREATED)
1615
+ # Allowed values are: TIMECREATED, NAME
1616
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1617
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::JobExecutionCollection JobExecutionCollection}
1618
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_job_executions.rb.html) to see an example of how to use list_job_executions API.
1619
+ def list_job_executions(compartment_id, opts = {})
1620
+ logger.debug 'Calling operation DbManagementClient#list_job_executions.' if logger
1621
+
1622
+ raise "Missing the required parameter 'compartment_id' when calling list_job_executions." if compartment_id.nil?
1623
+
1624
+ if opts[:sort_by] && !%w[TIMECREATED NAME].include?(opts[:sort_by])
1625
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, NAME.'
1626
+ end
1627
+
1628
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
1629
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
1630
+ end
1631
+
1632
+ path = '/jobExecutions'
1633
+ operation_signing_strategy = :standard
1634
+
1635
+ # rubocop:disable Style/NegatedIf
1636
+ # Query Params
1637
+ query_params = {}
1638
+ query_params[:compartmentId] = compartment_id
1639
+ query_params[:id] = opts[:id] if opts[:id]
1640
+ query_params[:jobId] = opts[:job_id] if opts[:job_id]
1641
+ query_params[:managedDatabaseId] = opts[:managed_database_id] if opts[:managed_database_id]
1642
+ query_params[:managedDatabaseGroupId] = opts[:managed_database_group_id] if opts[:managed_database_group_id]
1643
+ query_params[:status] = opts[:status] if opts[:status]
1644
+ query_params[:name] = opts[:name] if opts[:name]
1645
+ query_params[:limit] = opts[:limit] if opts[:limit]
1646
+ query_params[:page] = opts[:page] if opts[:page]
1647
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1648
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1649
+
1650
+ # Header Params
1651
+ header_params = {}
1652
+ header_params[:accept] = 'application/json'
1653
+ header_params[:'content-type'] = 'application/json'
1654
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1655
+ # rubocop:enable Style/NegatedIf
1656
+
1657
+ post_body = nil
1658
+
1659
+ # rubocop:disable Metrics/BlockLength
1660
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#list_job_executions') do
1661
+ @api_client.call_api(
1662
+ :GET,
1663
+ path,
1664
+ endpoint,
1665
+ header_params: header_params,
1666
+ query_params: query_params,
1667
+ operation_signing_strategy: operation_signing_strategy,
1668
+ body: post_body,
1669
+ return_type: 'OCI::DatabaseManagement::Models::JobExecutionCollection'
1670
+ )
1671
+ end
1672
+ # rubocop:enable Metrics/BlockLength
1673
+ end
1674
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1675
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1676
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1677
+
1678
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1679
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1680
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1681
+
1682
+
1683
+ # Gets the job run for a specific ID or the list of job runs for a job, Managed Database or Managed Database Group
1684
+ # in a specific compartment. Only one of the parameters, ID, jobId, managedDatabaseId, or managedDatabaseGroupId
1685
+ # should be provided. If none of these parameters is provided, all the job runs in the compartment are listed.
1686
+ # Job runs can also be filtered based on name and runStatus parameters.
1687
+ #
1688
+ # @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment.
1689
+ # @param [Hash] opts the optional parameters
1690
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1691
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1692
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1693
+ # @option opts [String] :id The identifier of the resource.
1694
+ # @option opts [String] :job_id The identifier of the job.
1695
+ # @option opts [String] :managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
1696
+ # @option opts [String] :managed_database_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group.
1697
+ # @option opts [String] :run_status The status of the job run.
1698
+ # @option opts [String] :name A filter to return only resources that match the entire name.
1699
+ # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
1700
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1701
+ # are retrieved. This is usually retrieved from a previous list call.
1702
+ #
1703
+ # @option opts [String] :sort_by The field to sort information by. Only one sortOrder can be used. The default sort order
1704
+ # for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
1705
+ # The \u2018NAME\u2019 sort order is case-sensitive.
1706
+ # (default to TIMECREATED)
1707
+ # Allowed values are: TIMECREATED, NAME
1708
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1709
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::JobRunCollection JobRunCollection}
1710
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_job_runs.rb.html) to see an example of how to use list_job_runs API.
1711
+ def list_job_runs(compartment_id, opts = {})
1712
+ logger.debug 'Calling operation DbManagementClient#list_job_runs.' if logger
1713
+
1714
+ raise "Missing the required parameter 'compartment_id' when calling list_job_runs." if compartment_id.nil?
1331
1715
 
1332
1716
  if opts[:sort_by] && !%w[TIMECREATED NAME].include?(opts[:sort_by])
1333
1717
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, NAME.'
@@ -1412,7 +1796,7 @@ module OCI
1412
1796
  # The \u2018NAME\u2019 sort order is case-sensitive.
1413
1797
  # (default to TIMECREATED)
1414
1798
  # Allowed values are: TIMECREATED, NAME
1415
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1799
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1416
1800
  # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::JobCollection JobCollection}
1417
1801
  # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_jobs.rb.html) to see an example of how to use list_jobs API.
1418
1802
  def list_jobs(compartment_id, opts = {})
@@ -1504,7 +1888,7 @@ module OCI
1504
1888
  # The \u2018NAME\u2019 sort order is case-sensitive.
1505
1889
  # (default to TIMECREATED)
1506
1890
  # Allowed values are: TIMECREATED, NAME
1507
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1891
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1508
1892
  # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::ManagedDatabaseGroupCollection ManagedDatabaseGroupCollection}
1509
1893
  # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_managed_database_groups.rb.html) to see an example of how to use list_managed_database_groups API.
1510
1894
  def list_managed_database_groups(compartment_id, opts = {})
@@ -1592,7 +1976,7 @@ module OCI
1592
1976
  # The \u2018NAME\u2019 sort order is case-sensitive.
1593
1977
  # (default to TIMECREATED)
1594
1978
  # Allowed values are: TIMECREATED, NAME
1595
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
1979
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1596
1980
  # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::ManagedDatabaseCollection ManagedDatabaseCollection}
1597
1981
  # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/list_managed_databases.rb.html) to see an example of how to use list_managed_databases API.
1598
1982
  def list_managed_databases(compartment_id, opts = {})
@@ -1667,7 +2051,7 @@ module OCI
1667
2051
  # The \u2018NAME\u2019 sort order is case-sensitive.
1668
2052
  # (default to TIMECREATED)
1669
2053
  # Allowed values are: TIMECREATED, NAME
1670
- # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. (default to ASC)
2054
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
1671
2055
  # @option opts [String] :page The page token representing the page, from where the next set of paginated results
1672
2056
  # are retrieved. This is usually retrieved from a previous list call.
1673
2057
  #
@@ -1865,6 +2249,992 @@ module OCI
1865
2249
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1866
2250
 
1867
2251
 
2252
+ # Summarizes the AWR CPU resource limits and metrics for the specified database in AWR.
2253
+ #
2254
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2255
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2256
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2257
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2258
+ #
2259
+ # @param [Hash] opts the optional parameters
2260
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2261
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2262
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2263
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2264
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2265
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2266
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2267
+ # @option opts [String] :session_type The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. (default to FOREGROUND)
2268
+ # Allowed values are: FOREGROUND, BACKGROUND, ALL
2269
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2270
+ # Note that the database container ID can be retrieved from the following endpoint:
2271
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2272
+ #
2273
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2274
+ # are retrieved. This is usually retrieved from a previous list call.
2275
+ #
2276
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
2277
+ # @option opts [String] :sort_by The option to sort the AWR CPU usage summary data. (default to TIME_SAMPLED)
2278
+ # Allowed values are: TIME_SAMPLED, AVG_VALUE
2279
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2280
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2281
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2282
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2283
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2284
+ # has been deleted and purged from the system, then a retry of the original creation request
2285
+ # might be rejected.
2286
+ #
2287
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbCpuUsageCollection AwrDbCpuUsageCollection}
2288
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_cpu_usages.rb.html) to see an example of how to use summarize_awr_db_cpu_usages API.
2289
+ def summarize_awr_db_cpu_usages(managed_database_id, awr_db_id, opts = {})
2290
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_cpu_usages.' if logger
2291
+
2292
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_cpu_usages." if managed_database_id.nil?
2293
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_cpu_usages." if awr_db_id.nil?
2294
+
2295
+ if opts[:session_type] && !%w[FOREGROUND BACKGROUND ALL].include?(opts[:session_type])
2296
+ raise 'Invalid value for "session_type", must be one of FOREGROUND, BACKGROUND, ALL.'
2297
+ end
2298
+
2299
+ if opts[:sort_by] && !%w[TIME_SAMPLED AVG_VALUE].include?(opts[:sort_by])
2300
+ raise 'Invalid value for "sort_by", must be one of TIME_SAMPLED, AVG_VALUE.'
2301
+ end
2302
+
2303
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2304
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2305
+ end
2306
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2307
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2308
+
2309
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbCpuUsages'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2310
+ operation_signing_strategy = :standard
2311
+
2312
+ # rubocop:disable Style/NegatedIf
2313
+ # Query Params
2314
+ query_params = {}
2315
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2316
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2317
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2318
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2319
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2320
+ query_params[:sessionType] = opts[:session_type] if opts[:session_type]
2321
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2322
+ query_params[:page] = opts[:page] if opts[:page]
2323
+ query_params[:limit] = opts[:limit] if opts[:limit]
2324
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2325
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2326
+
2327
+ # Header Params
2328
+ header_params = {}
2329
+ header_params[:accept] = 'application/json'
2330
+ header_params[:'content-type'] = 'application/json'
2331
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2332
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2333
+ # rubocop:enable Style/NegatedIf
2334
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2335
+
2336
+ post_body = nil
2337
+
2338
+ # rubocop:disable Metrics/BlockLength
2339
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_cpu_usages') do
2340
+ @api_client.call_api(
2341
+ :GET,
2342
+ path,
2343
+ endpoint,
2344
+ header_params: header_params,
2345
+ query_params: query_params,
2346
+ operation_signing_strategy: operation_signing_strategy,
2347
+ body: post_body,
2348
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbCpuUsageCollection'
2349
+ )
2350
+ end
2351
+ # rubocop:enable Metrics/BlockLength
2352
+ end
2353
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2354
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2355
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2356
+
2357
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2358
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2359
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2360
+
2361
+
2362
+ # Summarizes the metric samples for the specified database in the AWR. The metric samples are summarized based on the Time dimension for each metric.
2363
+ #
2364
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2365
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2366
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2367
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2368
+ #
2369
+ # @param [Array<String>] name The required multiple value query parameter to filter the entity name.
2370
+ # @param [Hash] opts the optional parameters
2371
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2372
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2373
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2374
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2375
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2376
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2377
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2378
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2379
+ # Note that the database container ID can be retrieved from the following endpoint:
2380
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2381
+ #
2382
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2383
+ # are retrieved. This is usually retrieved from a previous list call.
2384
+ #
2385
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
2386
+ # @option opts [String] :sort_by The option to sort the AWR time series summary data. (default to TIMESTAMP)
2387
+ # Allowed values are: TIMESTAMP, NAME
2388
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2389
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2390
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2391
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2392
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2393
+ # has been deleted and purged from the system, then a retry of the original creation request
2394
+ # might be rejected.
2395
+ #
2396
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbMetricCollection AwrDbMetricCollection}
2397
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_metrics.rb.html) to see an example of how to use summarize_awr_db_metrics API.
2398
+ def summarize_awr_db_metrics(managed_database_id, awr_db_id, name, opts = {})
2399
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_metrics.' if logger
2400
+
2401
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_metrics." if managed_database_id.nil?
2402
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_metrics." if awr_db_id.nil?
2403
+ raise "Missing the required parameter 'name' when calling summarize_awr_db_metrics." if name.nil?
2404
+
2405
+ if opts[:sort_by] && !%w[TIMESTAMP NAME].include?(opts[:sort_by])
2406
+ raise 'Invalid value for "sort_by", must be one of TIMESTAMP, NAME.'
2407
+ end
2408
+
2409
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2410
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2411
+ end
2412
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2413
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2414
+
2415
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbMetrics'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2416
+ operation_signing_strategy = :standard
2417
+
2418
+ # rubocop:disable Style/NegatedIf
2419
+ # Query Params
2420
+ query_params = {}
2421
+ query_params[:name] = OCI::ApiClient.build_collection_params(name, :multi)
2422
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2423
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2424
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2425
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2426
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2427
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2428
+ query_params[:page] = opts[:page] if opts[:page]
2429
+ query_params[:limit] = opts[:limit] if opts[:limit]
2430
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2431
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2432
+
2433
+ # Header Params
2434
+ header_params = {}
2435
+ header_params[:accept] = 'application/json'
2436
+ header_params[:'content-type'] = 'application/json'
2437
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2438
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2439
+ # rubocop:enable Style/NegatedIf
2440
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2441
+
2442
+ post_body = nil
2443
+
2444
+ # rubocop:disable Metrics/BlockLength
2445
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_metrics') do
2446
+ @api_client.call_api(
2447
+ :GET,
2448
+ path,
2449
+ endpoint,
2450
+ header_params: header_params,
2451
+ query_params: query_params,
2452
+ operation_signing_strategy: operation_signing_strategy,
2453
+ body: post_body,
2454
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbMetricCollection'
2455
+ )
2456
+ end
2457
+ # rubocop:enable Metrics/BlockLength
2458
+ end
2459
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2460
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2461
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2462
+
2463
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2464
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2465
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2466
+
2467
+
2468
+ # Summarizes the AWR database parameter change history for one database parameter of the specified Managed Database. One change history record contains
2469
+ # the previous value, the changed value, and the corresponding time range. If the database parameter value was changed multiple times within the time range, then multiple change history records are created for the same parameter.
2470
+ # Note that this API only returns information on change history details for one database parameter.
2471
+ # To get a list of all the database parameters whose values were changed during a specified time range, use the following API endpoint:
2472
+ # /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameters
2473
+ #
2474
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2475
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2476
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2477
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2478
+ #
2479
+ # @param [String] name The required single value query parameter to filter the entity name.
2480
+ # @param [Hash] opts the optional parameters
2481
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2482
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2483
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2484
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2485
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2486
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2487
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2488
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2489
+ # Note that the database container ID can be retrieved from the following endpoint:
2490
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2491
+ #
2492
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2493
+ # are retrieved. This is usually retrieved from a previous list call.
2494
+ #
2495
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
2496
+ # @option opts [String] :sort_by The option to sort the AWR database parameter change history data. (default to IS_CHANGED)
2497
+ # Allowed values are: IS_CHANGED, NAME
2498
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2499
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2500
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2501
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2502
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2503
+ # has been deleted and purged from the system, then a retry of the original creation request
2504
+ # might be rejected.
2505
+ #
2506
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbParameterChangeCollection AwrDbParameterChangeCollection}
2507
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_parameter_changes.rb.html) to see an example of how to use summarize_awr_db_parameter_changes API.
2508
+ def summarize_awr_db_parameter_changes(managed_database_id, awr_db_id, name, opts = {})
2509
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_parameter_changes.' if logger
2510
+
2511
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_parameter_changes." if managed_database_id.nil?
2512
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_parameter_changes." if awr_db_id.nil?
2513
+ raise "Missing the required parameter 'name' when calling summarize_awr_db_parameter_changes." if name.nil?
2514
+
2515
+ if opts[:sort_by] && !%w[IS_CHANGED NAME].include?(opts[:sort_by])
2516
+ raise 'Invalid value for "sort_by", must be one of IS_CHANGED, NAME.'
2517
+ end
2518
+
2519
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2520
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2521
+ end
2522
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2523
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2524
+
2525
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameterChanges'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2526
+ operation_signing_strategy = :standard
2527
+
2528
+ # rubocop:disable Style/NegatedIf
2529
+ # Query Params
2530
+ query_params = {}
2531
+ query_params[:name] = name
2532
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2533
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2534
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2535
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2536
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2537
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2538
+ query_params[:page] = opts[:page] if opts[:page]
2539
+ query_params[:limit] = opts[:limit] if opts[:limit]
2540
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2541
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2542
+
2543
+ # Header Params
2544
+ header_params = {}
2545
+ header_params[:accept] = 'application/json'
2546
+ header_params[:'content-type'] = 'application/json'
2547
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2548
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2549
+ # rubocop:enable Style/NegatedIf
2550
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2551
+
2552
+ post_body = nil
2553
+
2554
+ # rubocop:disable Metrics/BlockLength
2555
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_parameter_changes') do
2556
+ @api_client.call_api(
2557
+ :GET,
2558
+ path,
2559
+ endpoint,
2560
+ header_params: header_params,
2561
+ query_params: query_params,
2562
+ operation_signing_strategy: operation_signing_strategy,
2563
+ body: post_body,
2564
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbParameterChangeCollection'
2565
+ )
2566
+ end
2567
+ # rubocop:enable Metrics/BlockLength
2568
+ end
2569
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2570
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2571
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2572
+
2573
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2574
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2575
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2576
+
2577
+
2578
+ # Summarizes the AWR database parameter history for the specified Managed Database. This includes the list of database
2579
+ # parameters, with information on whether the parameter values were modified within the query time range. Note that
2580
+ # each database parameter is only listed once. The returned summary gets all the database parameters, which include:
2581
+ # -Each parameter whose value was changed during the time range: AwrDbParameterValueOptionalQueryParam (valueChanged =\"Y\")
2582
+ # -Each parameter whose value was unchanged during the time range: AwrDbParameterValueOptionalQueryParam (valueChanged =\"N\")
2583
+ # -Each parameter whose value was changed at the system level during the time range: (valueChanged =\"Y\" and valueModified = \"SYSTEM_MOD\").
2584
+ # -Each parameter whose value was unchanged during the time range, however, the value is not the default value: (valueChanged =\"N\" and valueDefault = \"FALSE\")
2585
+ # Note that this API does not return information on the number of times each database parameter has been changed within the time range. To get the database parameter value change history for a specific parameter, use the following API endpoint:
2586
+ # /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameterChanges
2587
+ #
2588
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2589
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2590
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2591
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2592
+ #
2593
+ # @param [Hash] opts the optional parameters
2594
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2595
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2596
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2597
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2598
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2599
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2600
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2601
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2602
+ # Note that the database container ID can be retrieved from the following endpoint:
2603
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2604
+ #
2605
+ # @option opts [Array<String>] :name The optional multiple value query parameter to filter the entity name.
2606
+ # @option opts [String] :name_contains The optional contains query parameter to filter the entity name by any part of the name.
2607
+ # @option opts [String] :value_changed The optional query parameter to filter database parameters whose values were changed. (default to Y)
2608
+ # Allowed values are: Y, N
2609
+ # @option opts [String] :value_default The optional query parameter to filter the database parameters that had the default value in the last snapshot.
2610
+ # Allowed values are: TRUE, FALSE
2611
+ # @option opts [String] :value_modified The optional query parameter to filter the database parameters that had a modified value in the last snapshot.
2612
+ # Allowed values are: MODIFIED, SYSTEM_MOD, FALSE
2613
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2614
+ # are retrieved. This is usually retrieved from a previous list call.
2615
+ #
2616
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
2617
+ # @option opts [String] :sort_by The option to sort the AWR database parameter change history data. (default to IS_CHANGED)
2618
+ # Allowed values are: IS_CHANGED, NAME
2619
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2620
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2621
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2622
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2623
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2624
+ # has been deleted and purged from the system, then a retry of the original creation request
2625
+ # might be rejected.
2626
+ #
2627
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbParameterCollection AwrDbParameterCollection}
2628
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_parameters.rb.html) to see an example of how to use summarize_awr_db_parameters API.
2629
+ def summarize_awr_db_parameters(managed_database_id, awr_db_id, opts = {})
2630
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_parameters.' if logger
2631
+
2632
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_parameters." if managed_database_id.nil?
2633
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_parameters." if awr_db_id.nil?
2634
+
2635
+ if opts[:value_changed] && !%w[Y N].include?(opts[:value_changed])
2636
+ raise 'Invalid value for "value_changed", must be one of Y, N.'
2637
+ end
2638
+
2639
+ if opts[:value_default] && !%w[TRUE FALSE].include?(opts[:value_default])
2640
+ raise 'Invalid value for "value_default", must be one of TRUE, FALSE.'
2641
+ end
2642
+
2643
+ if opts[:value_modified] && !%w[MODIFIED SYSTEM_MOD FALSE].include?(opts[:value_modified])
2644
+ raise 'Invalid value for "value_modified", must be one of MODIFIED, SYSTEM_MOD, FALSE.'
2645
+ end
2646
+
2647
+ if opts[:sort_by] && !%w[IS_CHANGED NAME].include?(opts[:sort_by])
2648
+ raise 'Invalid value for "sort_by", must be one of IS_CHANGED, NAME.'
2649
+ end
2650
+
2651
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2652
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2653
+ end
2654
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2655
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2656
+
2657
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbParameters'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2658
+ operation_signing_strategy = :standard
2659
+
2660
+ # rubocop:disable Style/NegatedIf
2661
+ # Query Params
2662
+ query_params = {}
2663
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2664
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2665
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2666
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2667
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2668
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2669
+ query_params[:name] = OCI::ApiClient.build_collection_params(opts[:name], :multi) if opts[:name] && !opts[:name].empty?
2670
+ query_params[:nameContains] = opts[:name_contains] if opts[:name_contains]
2671
+ query_params[:valueChanged] = opts[:value_changed] if opts[:value_changed]
2672
+ query_params[:valueDefault] = opts[:value_default] if opts[:value_default]
2673
+ query_params[:valueModified] = opts[:value_modified] if opts[:value_modified]
2674
+ query_params[:page] = opts[:page] if opts[:page]
2675
+ query_params[:limit] = opts[:limit] if opts[:limit]
2676
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2677
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2678
+
2679
+ # Header Params
2680
+ header_params = {}
2681
+ header_params[:accept] = 'application/json'
2682
+ header_params[:'content-type'] = 'application/json'
2683
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2684
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2685
+ # rubocop:enable Style/NegatedIf
2686
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2687
+
2688
+ post_body = nil
2689
+
2690
+ # rubocop:disable Metrics/BlockLength
2691
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_parameters') do
2692
+ @api_client.call_api(
2693
+ :GET,
2694
+ path,
2695
+ endpoint,
2696
+ header_params: header_params,
2697
+ query_params: query_params,
2698
+ operation_signing_strategy: operation_signing_strategy,
2699
+ body: post_body,
2700
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbParameterCollection'
2701
+ )
2702
+ end
2703
+ # rubocop:enable Metrics/BlockLength
2704
+ end
2705
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2706
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2707
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2708
+
2709
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2710
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2711
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2712
+
2713
+
2714
+ # Summarizes the AWR snapshot ranges that contain continuous snapshots, for the specified Managed Database.
2715
+ #
2716
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2717
+ # @param [Hash] opts the optional parameters
2718
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2719
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2720
+ # @option opts [String] :name The optional single value query parameter to filter the entity name.
2721
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2722
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2723
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2724
+ # are retrieved. This is usually retrieved from a previous list call.
2725
+ #
2726
+ # @option opts [Integer] :limit The maximum number of records returned in paginated response. (default to 10)
2727
+ # @option opts [String] :sort_by The option to sort the AWR summary data. (default to END_INTERVAL_TIME)
2728
+ # Allowed values are: END_INTERVAL_TIME, NAME
2729
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2730
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2731
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2732
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2733
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2734
+ # has been deleted and purged from the system, then a retry of the original creation request
2735
+ # might be rejected.
2736
+ #
2737
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbSnapshotRangeCollection AwrDbSnapshotRangeCollection}
2738
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_snapshot_ranges.rb.html) to see an example of how to use summarize_awr_db_snapshot_ranges API.
2739
+ def summarize_awr_db_snapshot_ranges(managed_database_id, opts = {})
2740
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_snapshot_ranges.' if logger
2741
+
2742
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_snapshot_ranges." if managed_database_id.nil?
2743
+
2744
+ if opts[:sort_by] && !%w[END_INTERVAL_TIME NAME].include?(opts[:sort_by])
2745
+ raise 'Invalid value for "sort_by", must be one of END_INTERVAL_TIME, NAME.'
2746
+ end
2747
+
2748
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2749
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2750
+ end
2751
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2752
+
2753
+ path = '/managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges'.sub('{managedDatabaseId}', managed_database_id.to_s)
2754
+ operation_signing_strategy = :standard
2755
+
2756
+ # rubocop:disable Style/NegatedIf
2757
+ # Query Params
2758
+ query_params = {}
2759
+ query_params[:name] = opts[:name] if opts[:name]
2760
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2761
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2762
+ query_params[:page] = opts[:page] if opts[:page]
2763
+ query_params[:limit] = opts[:limit] if opts[:limit]
2764
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2765
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2766
+
2767
+ # Header Params
2768
+ header_params = {}
2769
+ header_params[:accept] = 'application/json'
2770
+ header_params[:'content-type'] = 'application/json'
2771
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2772
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2773
+ # rubocop:enable Style/NegatedIf
2774
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2775
+
2776
+ post_body = nil
2777
+
2778
+ # rubocop:disable Metrics/BlockLength
2779
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_snapshot_ranges') do
2780
+ @api_client.call_api(
2781
+ :GET,
2782
+ path,
2783
+ endpoint,
2784
+ header_params: header_params,
2785
+ query_params: query_params,
2786
+ operation_signing_strategy: operation_signing_strategy,
2787
+ body: post_body,
2788
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbSnapshotRangeCollection'
2789
+ )
2790
+ end
2791
+ # rubocop:enable Metrics/BlockLength
2792
+ end
2793
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2794
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2795
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2796
+
2797
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2798
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2799
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2800
+
2801
+
2802
+ # Summarizes the AWR SYSSTAT sample data for the specified database in AWR. The statistical data is summarized based on the Time dimension for each statistic.
2803
+ #
2804
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2805
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2806
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2807
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2808
+ #
2809
+ # @param [Array<String>] name The required multiple value query parameter to filter the entity name.
2810
+ # @param [Hash] opts the optional parameters
2811
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2812
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2813
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2814
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2815
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2816
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2817
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2818
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2819
+ # Note that the database container ID can be retrieved from the following endpoint:
2820
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2821
+ #
2822
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
2823
+ # are retrieved. This is usually retrieved from a previous list call.
2824
+ #
2825
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
2826
+ # @option opts [String] :sort_by The option to sort the data within a time period. (default to TIME_BEGIN)
2827
+ # Allowed values are: TIME_BEGIN, NAME
2828
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2829
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2830
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2831
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2832
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2833
+ # has been deleted and purged from the system, then a retry of the original creation request
2834
+ # might be rejected.
2835
+ #
2836
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbSysstatCollection AwrDbSysstatCollection}
2837
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_sysstats.rb.html) to see an example of how to use summarize_awr_db_sysstats API.
2838
+ def summarize_awr_db_sysstats(managed_database_id, awr_db_id, name, opts = {})
2839
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_sysstats.' if logger
2840
+
2841
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_sysstats." if managed_database_id.nil?
2842
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_sysstats." if awr_db_id.nil?
2843
+ raise "Missing the required parameter 'name' when calling summarize_awr_db_sysstats." if name.nil?
2844
+
2845
+ if opts[:sort_by] && !%w[TIME_BEGIN NAME].include?(opts[:sort_by])
2846
+ raise 'Invalid value for "sort_by", must be one of TIME_BEGIN, NAME.'
2847
+ end
2848
+
2849
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2850
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2851
+ end
2852
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2853
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2854
+
2855
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSysstats'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2856
+ operation_signing_strategy = :standard
2857
+
2858
+ # rubocop:disable Style/NegatedIf
2859
+ # Query Params
2860
+ query_params = {}
2861
+ query_params[:name] = OCI::ApiClient.build_collection_params(name, :multi)
2862
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2863
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2864
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2865
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2866
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2867
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2868
+ query_params[:page] = opts[:page] if opts[:page]
2869
+ query_params[:limit] = opts[:limit] if opts[:limit]
2870
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2871
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2872
+
2873
+ # Header Params
2874
+ header_params = {}
2875
+ header_params[:accept] = 'application/json'
2876
+ header_params[:'content-type'] = 'application/json'
2877
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2878
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2879
+ # rubocop:enable Style/NegatedIf
2880
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2881
+
2882
+ post_body = nil
2883
+
2884
+ # rubocop:disable Metrics/BlockLength
2885
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_sysstats') do
2886
+ @api_client.call_api(
2887
+ :GET,
2888
+ path,
2889
+ endpoint,
2890
+ header_params: header_params,
2891
+ query_params: query_params,
2892
+ operation_signing_strategy: operation_signing_strategy,
2893
+ body: post_body,
2894
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbSysstatCollection'
2895
+ )
2896
+ end
2897
+ # rubocop:enable Metrics/BlockLength
2898
+ end
2899
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2900
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2901
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2902
+
2903
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2904
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2905
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2906
+
2907
+
2908
+ # Summarizes the AWR top wait events.
2909
+ #
2910
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
2911
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
2912
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
2913
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
2914
+ #
2915
+ # @param [Hash] opts the optional parameters
2916
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2917
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2918
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
2919
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
2920
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
2921
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
2922
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
2923
+ # @option opts [String] :session_type The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. (default to FOREGROUND)
2924
+ # Allowed values are: FOREGROUND, BACKGROUND, ALL
2925
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
2926
+ # Note that the database container ID can be retrieved from the following endpoint:
2927
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
2928
+ #
2929
+ # @option opts [Integer] :top_n The optional query parameter to filter the number of top categories to be returned. (default to 10)
2930
+ # @option opts [String] :sort_by The option to sort the AWR top event summary data. (default to WAITS_PERSEC)
2931
+ # Allowed values are: WAITS_PERSEC, AVG_WAIT_TIME_PERSEC
2932
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
2933
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2934
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2935
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2936
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2937
+ # has been deleted and purged from the system, then a retry of the original creation request
2938
+ # might be rejected.
2939
+ #
2940
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbTopWaitEventCollection AwrDbTopWaitEventCollection}
2941
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_top_wait_events.rb.html) to see an example of how to use summarize_awr_db_top_wait_events API.
2942
+ def summarize_awr_db_top_wait_events(managed_database_id, awr_db_id, opts = {})
2943
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_top_wait_events.' if logger
2944
+
2945
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_top_wait_events." if managed_database_id.nil?
2946
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_top_wait_events." if awr_db_id.nil?
2947
+
2948
+ if opts[:session_type] && !%w[FOREGROUND BACKGROUND ALL].include?(opts[:session_type])
2949
+ raise 'Invalid value for "session_type", must be one of FOREGROUND, BACKGROUND, ALL.'
2950
+ end
2951
+
2952
+ if opts[:sort_by] && !%w[WAITS_PERSEC AVG_WAIT_TIME_PERSEC].include?(opts[:sort_by])
2953
+ raise 'Invalid value for "sort_by", must be one of WAITS_PERSEC, AVG_WAIT_TIME_PERSEC.'
2954
+ end
2955
+
2956
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
2957
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
2958
+ end
2959
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
2960
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
2961
+
2962
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbTopWaitEvents'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
2963
+ operation_signing_strategy = :standard
2964
+
2965
+ # rubocop:disable Style/NegatedIf
2966
+ # Query Params
2967
+ query_params = {}
2968
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
2969
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
2970
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
2971
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
2972
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
2973
+ query_params[:sessionType] = opts[:session_type] if opts[:session_type]
2974
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
2975
+ query_params[:topN] = opts[:top_n] if opts[:top_n]
2976
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2977
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2978
+
2979
+ # Header Params
2980
+ header_params = {}
2981
+ header_params[:accept] = 'application/json'
2982
+ header_params[:'content-type'] = 'application/json'
2983
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2984
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2985
+ # rubocop:enable Style/NegatedIf
2986
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2987
+
2988
+ post_body = nil
2989
+
2990
+ # rubocop:disable Metrics/BlockLength
2991
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_top_wait_events') do
2992
+ @api_client.call_api(
2993
+ :GET,
2994
+ path,
2995
+ endpoint,
2996
+ header_params: header_params,
2997
+ query_params: query_params,
2998
+ operation_signing_strategy: operation_signing_strategy,
2999
+ body: post_body,
3000
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbTopWaitEventCollection'
3001
+ )
3002
+ end
3003
+ # rubocop:enable Metrics/BlockLength
3004
+ end
3005
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3006
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3007
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3008
+
3009
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3010
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3011
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3012
+
3013
+
3014
+ # Summarizes AWR wait event data into value buckets and frequency, for the specified database in the AWR.
3015
+ #
3016
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
3017
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
3018
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
3019
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
3020
+ #
3021
+ # @param [String] name The required single value query parameter to filter the entity name.
3022
+ # @param [Hash] opts the optional parameters
3023
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3024
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3025
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
3026
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
3027
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
3028
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
3029
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
3030
+ # @option opts [Integer] :num_bucket The number of buckets within the histogram. (default to 10)
3031
+ # @option opts [Float] :min_value The minimum value of the histogram. (default to 0)
3032
+ # @option opts [Float] :max_value The maximum value of the histogram.
3033
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
3034
+ # Note that the database container ID can be retrieved from the following endpoint:
3035
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
3036
+ #
3037
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
3038
+ # are retrieved. This is usually retrieved from a previous list call.
3039
+ #
3040
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
3041
+ # @option opts [String] :sort_by The option to sort distribution data. (default to CATEGORY)
3042
+ # Allowed values are: CATEGORY, PERCENTAGE
3043
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the the default order. (default to ASC)
3044
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3045
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
3046
+ # server error without risk of executing that same action again. Retry tokens expire after 24
3047
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
3048
+ # has been deleted and purged from the system, then a retry of the original creation request
3049
+ # might be rejected.
3050
+ #
3051
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbWaitEventBucketCollection AwrDbWaitEventBucketCollection}
3052
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_wait_event_buckets.rb.html) to see an example of how to use summarize_awr_db_wait_event_buckets API.
3053
+ def summarize_awr_db_wait_event_buckets(managed_database_id, awr_db_id, name, opts = {})
3054
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_wait_event_buckets.' if logger
3055
+
3056
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_wait_event_buckets." if managed_database_id.nil?
3057
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_wait_event_buckets." if awr_db_id.nil?
3058
+ raise "Missing the required parameter 'name' when calling summarize_awr_db_wait_event_buckets." if name.nil?
3059
+
3060
+ if opts[:sort_by] && !%w[CATEGORY PERCENTAGE].include?(opts[:sort_by])
3061
+ raise 'Invalid value for "sort_by", must be one of CATEGORY, PERCENTAGE.'
3062
+ end
3063
+
3064
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
3065
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
3066
+ end
3067
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
3068
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
3069
+
3070
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbWaitEventBuckets'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
3071
+ operation_signing_strategy = :standard
3072
+
3073
+ # rubocop:disable Style/NegatedIf
3074
+ # Query Params
3075
+ query_params = {}
3076
+ query_params[:name] = name
3077
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
3078
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
3079
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
3080
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
3081
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
3082
+ query_params[:numBucket] = opts[:num_bucket] if opts[:num_bucket]
3083
+ query_params[:minValue] = opts[:min_value] if opts[:min_value]
3084
+ query_params[:maxValue] = opts[:max_value] if opts[:max_value]
3085
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
3086
+ query_params[:page] = opts[:page] if opts[:page]
3087
+ query_params[:limit] = opts[:limit] if opts[:limit]
3088
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
3089
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3090
+
3091
+ # Header Params
3092
+ header_params = {}
3093
+ header_params[:accept] = 'application/json'
3094
+ header_params[:'content-type'] = 'application/json'
3095
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3096
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
3097
+ # rubocop:enable Style/NegatedIf
3098
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
3099
+
3100
+ post_body = nil
3101
+
3102
+ # rubocop:disable Metrics/BlockLength
3103
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_wait_event_buckets') do
3104
+ @api_client.call_api(
3105
+ :GET,
3106
+ path,
3107
+ endpoint,
3108
+ header_params: header_params,
3109
+ query_params: query_params,
3110
+ operation_signing_strategy: operation_signing_strategy,
3111
+ body: post_body,
3112
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbWaitEventBucketCollection'
3113
+ )
3114
+ end
3115
+ # rubocop:enable Metrics/BlockLength
3116
+ end
3117
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3118
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3119
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3120
+
3121
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3122
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3123
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3124
+
3125
+
3126
+ # Summarizes the AWR wait event sample data for the specified database in the AWR. The event data is summarized based on the Time dimension for each event.
3127
+ #
3128
+ # @param [String] managed_database_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database.
3129
+ # @param [String] awr_db_id The parameter to filter the database by internal ID.
3130
+ # Note that the internal ID of the database can be retrieved from the following endpoint:
3131
+ # /managedDatabases/{managedDatabaseId}/awrDbs:
3132
+ #
3133
+ # @param [Hash] opts the optional parameters
3134
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3135
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3136
+ # @option opts [String] :inst_num The optional single value query parameter to filter the database instance number.
3137
+ # @option opts [Integer] :begin_sn_id_greater_than_or_equal_to The optional greater than or equal to filter on the snapshot ID.
3138
+ # @option opts [Integer] :end_sn_id_less_than_or_equal_to The optional less than or equal to query parameter to filter the snapshot ID.
3139
+ # @option opts [DateTime] :time_greater_than_or_equal_to The optional greater than or equal to query parameter to filter the timestamp.
3140
+ # @option opts [DateTime] :time_less_than_or_equal_to The optional less than or equal to query parameter to filter the timestamp.
3141
+ # @option opts [Array<String>] :name The optional multiple value query parameter to filter the entity name.
3142
+ # @option opts [String] :session_type The optional query parameter to filter ASH activities by FOREGROUND or BACKGROUND. (default to FOREGROUND)
3143
+ # Allowed values are: FOREGROUND, BACKGROUND, ALL
3144
+ # @option opts [Integer] :container_id The optional query parameter to filter the database container by an exact ID value.
3145
+ # Note that the database container ID can be retrieved from the following endpoint:
3146
+ # /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
3147
+ #
3148
+ # @option opts [String] :page The page token representing the page, from where the next set of paginated results
3149
+ # are retrieved. This is usually retrieved from a previous list call.
3150
+ #
3151
+ # @option opts [Integer] :limit The maximum number of records returned in large paginated response. (default to 1000)
3152
+ # @option opts [String] :sort_by The option to sort the data within a time period. (default to TIME_BEGIN)
3153
+ # Allowed values are: TIME_BEGIN, NAME
3154
+ # @option opts [String] :sort_order The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the the default order. (default to DESC)
3155
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3156
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
3157
+ # server error without risk of executing that same action again. Retry tokens expire after 24
3158
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
3159
+ # has been deleted and purged from the system, then a retry of the original creation request
3160
+ # might be rejected.
3161
+ #
3162
+ # @return [Response] A Response object with data of type {OCI::DatabaseManagement::Models::AwrDbWaitEventCollection AwrDbWaitEventCollection}
3163
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/databasemanagement/summarize_awr_db_wait_events.rb.html) to see an example of how to use summarize_awr_db_wait_events API.
3164
+ def summarize_awr_db_wait_events(managed_database_id, awr_db_id, opts = {})
3165
+ logger.debug 'Calling operation DbManagementClient#summarize_awr_db_wait_events.' if logger
3166
+
3167
+ raise "Missing the required parameter 'managed_database_id' when calling summarize_awr_db_wait_events." if managed_database_id.nil?
3168
+ raise "Missing the required parameter 'awr_db_id' when calling summarize_awr_db_wait_events." if awr_db_id.nil?
3169
+
3170
+ if opts[:session_type] && !%w[FOREGROUND BACKGROUND ALL].include?(opts[:session_type])
3171
+ raise 'Invalid value for "session_type", must be one of FOREGROUND, BACKGROUND, ALL.'
3172
+ end
3173
+
3174
+ if opts[:sort_by] && !%w[TIME_BEGIN NAME].include?(opts[:sort_by])
3175
+ raise 'Invalid value for "sort_by", must be one of TIME_BEGIN, NAME.'
3176
+ end
3177
+
3178
+ if opts[:sort_order] && !OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.include?(opts[:sort_order])
3179
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::DatabaseManagement::Models::SORT_ORDERS_ENUM.'
3180
+ end
3181
+ raise "Parameter value for 'managed_database_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_database_id)
3182
+ raise "Parameter value for 'awr_db_id' must not be blank" if OCI::Internal::Util.blank_string?(awr_db_id)
3183
+
3184
+ path = '/managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbWaitEvents'.sub('{managedDatabaseId}', managed_database_id.to_s).sub('{awrDbId}', awr_db_id.to_s)
3185
+ operation_signing_strategy = :standard
3186
+
3187
+ # rubocop:disable Style/NegatedIf
3188
+ # Query Params
3189
+ query_params = {}
3190
+ query_params[:instNum] = opts[:inst_num] if opts[:inst_num]
3191
+ query_params[:beginSnIdGreaterThanOrEqualTo] = opts[:begin_sn_id_greater_than_or_equal_to] if opts[:begin_sn_id_greater_than_or_equal_to]
3192
+ query_params[:endSnIdLessThanOrEqualTo] = opts[:end_sn_id_less_than_or_equal_to] if opts[:end_sn_id_less_than_or_equal_to]
3193
+ query_params[:timeGreaterThanOrEqualTo] = opts[:time_greater_than_or_equal_to] if opts[:time_greater_than_or_equal_to]
3194
+ query_params[:timeLessThanOrEqualTo] = opts[:time_less_than_or_equal_to] if opts[:time_less_than_or_equal_to]
3195
+ query_params[:name] = OCI::ApiClient.build_collection_params(opts[:name], :multi) if opts[:name] && !opts[:name].empty?
3196
+ query_params[:sessionType] = opts[:session_type] if opts[:session_type]
3197
+ query_params[:containerId] = opts[:container_id] if opts[:container_id]
3198
+ query_params[:page] = opts[:page] if opts[:page]
3199
+ query_params[:limit] = opts[:limit] if opts[:limit]
3200
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
3201
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3202
+
3203
+ # Header Params
3204
+ header_params = {}
3205
+ header_params[:accept] = 'application/json'
3206
+ header_params[:'content-type'] = 'application/json'
3207
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3208
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
3209
+ # rubocop:enable Style/NegatedIf
3210
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
3211
+
3212
+ post_body = nil
3213
+
3214
+ # rubocop:disable Metrics/BlockLength
3215
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DbManagementClient#summarize_awr_db_wait_events') do
3216
+ @api_client.call_api(
3217
+ :GET,
3218
+ path,
3219
+ endpoint,
3220
+ header_params: header_params,
3221
+ query_params: query_params,
3222
+ operation_signing_strategy: operation_signing_strategy,
3223
+ body: post_body,
3224
+ return_type: 'OCI::DatabaseManagement::Models::AwrDbWaitEventCollection'
3225
+ )
3226
+ end
3227
+ # rubocop:enable Metrics/BlockLength
3228
+ end
3229
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3230
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3231
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3232
+
3233
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3234
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3235
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3236
+
3237
+
1868
3238
  # Updates the Managed Database Group specified by managedDatabaseGroupId.
1869
3239
  #
1870
3240
  # @param [String] managed_database_group_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database Group.