oci 2.10.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +4 -0
  4. data/lib/oci/api_client.rb +1 -3
  5. data/lib/oci/apigateway/api_gateway_client.rb +619 -0
  6. data/lib/oci/apigateway/api_gateway_client_composite_operations.rb +198 -0
  7. data/lib/oci/apigateway/apigateway.rb +10 -0
  8. data/lib/oci/apigateway/models/api.rb +340 -0
  9. data/lib/oci/apigateway/models/api_collection.rb +150 -0
  10. data/lib/oci/apigateway/models/api_summary.rb +342 -0
  11. data/lib/oci/apigateway/models/api_validation_detail.rb +191 -0
  12. data/lib/oci/apigateway/models/api_validation_details.rb +192 -0
  13. data/lib/oci/apigateway/models/api_validation_result.rb +182 -0
  14. data/lib/oci/apigateway/models/api_validations.rb +150 -0
  15. data/lib/oci/{log_analytics/models/create_namespace_details.rb → apigateway/models/change_api_compartment_details.rb} +5 -3
  16. data/lib/oci/apigateway/models/create_api_details.rb +222 -0
  17. data/lib/oci/apigateway/models/update_api_details.rb +206 -0
  18. data/lib/oci/apigateway/models/work_request.rb +4 -0
  19. data/lib/oci/application_migration/application_migration.rb +2 -0
  20. data/lib/oci/application_migration/application_migration_client.rb +169 -52
  21. data/lib/oci/application_migration/application_migration_client_composite_operations.rb +447 -0
  22. data/lib/oci/application_migration/models/authorization_details.rb +4 -2
  23. data/lib/oci/application_migration/models/change_compartment_details.rb +2 -2
  24. data/lib/oci/application_migration/models/configuration_field.rb +9 -7
  25. data/lib/oci/application_migration/models/create_migration_details.rb +54 -12
  26. data/lib/oci/application_migration/models/create_source_details.rb +13 -8
  27. data/lib/oci/application_migration/models/discovery_details.rb +2 -2
  28. data/lib/oci/application_migration/models/ics_discovery_details.rb +4 -3
  29. data/lib/oci/application_migration/models/internal_authorization_details.rb +1 -1
  30. data/lib/oci/application_migration/models/internal_source_details.rb +2 -2
  31. data/lib/oci/application_migration/models/jcs_discovery_details.rb +5 -3
  32. data/lib/oci/application_migration/models/migration.rb +111 -18
  33. data/lib/oci/application_migration/models/migration_summary.rb +63 -15
  34. data/lib/oci/application_migration/models/oac_discovery_details.rb +3 -3
  35. data/lib/oci/application_migration/models/ocic_authorization_details.rb +1 -1
  36. data/lib/oci/application_migration/models/ocic_source_details.rb +8 -3
  37. data/lib/oci/application_migration/models/oic_discovery_details.rb +4 -3
  38. data/lib/oci/application_migration/models/pcs_discovery_details.rb +4 -3
  39. data/lib/oci/application_migration/models/soacs_discovery_details.rb +5 -3
  40. data/lib/oci/application_migration/models/source.rb +41 -13
  41. data/lib/oci/application_migration/models/source_application.rb +6 -6
  42. data/lib/oci/application_migration/models/source_application_summary.rb +7 -6
  43. data/lib/oci/application_migration/models/source_details.rb +10 -2
  44. data/lib/oci/application_migration/models/source_summary.rb +36 -14
  45. data/lib/oci/application_migration/models/target_database_types.rb +11 -0
  46. data/lib/oci/application_migration/models/update_migration_details.rb +15 -7
  47. data/lib/oci/application_migration/models/update_source_details.rb +7 -7
  48. data/lib/oci/application_migration/models/work_request.rb +54 -3
  49. data/lib/oci/application_migration/models/work_request_error.rb +1 -1
  50. data/lib/oci/application_migration/models/work_request_log_entry.rb +2 -2
  51. data/lib/oci/application_migration/models/work_request_resource.rb +1 -1
  52. data/lib/oci/application_migration/models/work_request_summary.rb +54 -3
  53. data/lib/oci/auth/signers/instance_principals_delegation_token_signer.rb +1 -1
  54. data/lib/oci/compute_instance_agent/compute_instance_agent.rb +39 -0
  55. data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +522 -0
  56. data/lib/oci/compute_instance_agent/compute_instance_agent_client_composite_operations.rb +25 -0
  57. data/lib/oci/compute_instance_agent/models/create_instance_agent_command_details.rb +205 -0
  58. data/lib/oci/compute_instance_agent/models/instance_agent_command.rb +256 -0
  59. data/lib/oci/compute_instance_agent/models/instance_agent_command_content.rb +159 -0
  60. data/lib/oci/compute_instance_agent/models/instance_agent_command_content_info.rb +236 -0
  61. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution.rb +321 -0
  62. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_content.rb +218 -0
  63. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_tuple_details.rb +198 -0
  64. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_uri_details.rb +170 -0
  65. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_text_details.rb +180 -0
  66. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_summary.rb +321 -0
  67. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_details.rb +197 -0
  68. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_tuple_details.rb +190 -0
  69. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_uri_details.rb +162 -0
  70. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_text_details.rb +145 -0
  71. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_details.rb +197 -0
  72. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_tuple_details.rb +190 -0
  73. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_uri_details.rb +162 -0
  74. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_text_details.rb +172 -0
  75. data/lib/oci/compute_instance_agent/models/instance_agent_command_summary.rb +224 -0
  76. data/lib/oci/compute_instance_agent/models/instance_agent_command_target.rb +154 -0
  77. data/lib/oci/compute_instance_agent/util.rb +3 -0
  78. data/lib/oci/container_engine/container_engine_client.rb +0 -11
  79. data/lib/oci/container_engine/models/create_node_shape_config_details.rb +19 -4
  80. data/lib/oci/container_engine/models/node_shape_config.rb +19 -4
  81. data/lib/oci/container_engine/models/update_node_shape_config_details.rb +19 -4
  82. data/lib/oci/core/core.rb +4 -0
  83. data/lib/oci/core/models/add_vcn_cidr_details.rb +155 -0
  84. data/lib/oci/core/models/create_vcn_details.rb +24 -2
  85. data/lib/oci/core/models/create_vlan_details.rb +1 -0
  86. data/lib/oci/core/models/image_memory_constraints.rb +17 -17
  87. data/lib/oci/core/models/modify_vcn_cidr_details.rb +172 -0
  88. data/lib/oci/core/models/remove_vcn_cidr_details.rb +155 -0
  89. data/lib/oci/core/models/subnet.rb +1 -0
  90. data/lib/oci/core/models/update_subnet_details.rb +27 -4
  91. data/lib/oci/core/models/update_vlan_details.rb +25 -4
  92. data/lib/oci/core/models/vcn.rb +18 -2
  93. data/lib/oci/core/models/vcn_dns_resolver_association.rb +206 -0
  94. data/lib/oci/core/virtual_network_client.rb +289 -4
  95. data/lib/oci/data_catalog/data_catalog.rb +30 -0
  96. data/lib/oci/data_catalog/data_catalog_client.rb +1763 -112
  97. data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +413 -0
  98. data/lib/oci/data_catalog/models/attribute.rb +15 -1
  99. data/lib/oci/data_catalog/models/connection.rb +15 -1
  100. data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
  101. data/lib/oci/data_catalog/models/create_connection_details.rb +15 -1
  102. data/lib/oci/data_catalog/models/create_custom_property_details.rb +324 -0
  103. data/lib/oci/data_catalog/models/create_data_asset_details.rb +15 -1
  104. data/lib/oci/data_catalog/models/create_entity_details.rb +43 -1
  105. data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
  106. data/lib/oci/data_catalog/models/create_glossary_details.rb +18 -4
  107. data/lib/oci/data_catalog/models/create_namespace_details.rb +182 -0
  108. data/lib/oci/data_catalog/models/create_pattern_details.rb +243 -0
  109. data/lib/oci/data_catalog/models/create_term_details.rb +18 -4
  110. data/lib/oci/data_catalog/models/custom_property.rb +506 -0
  111. data/lib/oci/data_catalog/models/custom_property_collection.rb +161 -0
  112. data/lib/oci/data_catalog/models/custom_property_data_type.rb +14 -0
  113. data/lib/oci/data_catalog/models/custom_property_get_usage.rb +327 -0
  114. data/lib/oci/data_catalog/models/custom_property_set_usage.rb +188 -0
  115. data/lib/oci/data_catalog/models/custom_property_summary.rb +432 -0
  116. data/lib/oci/data_catalog/models/custom_property_type_usage.rb +178 -0
  117. data/lib/oci/data_catalog/models/data_asset.rb +29 -1
  118. data/lib/oci/{log_analytics/models/string_list_details.rb → data_catalog/models/data_selector_pattern_details.rb} +11 -10
  119. data/lib/oci/data_catalog/models/derived_logical_entities.rb +178 -0
  120. data/lib/oci/data_catalog/models/entity.rb +43 -1
  121. data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
  122. data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +160 -0
  123. data/lib/oci/data_catalog/models/faceted_search_custom_property.rb +174 -0
  124. data/lib/oci/data_catalog/models/faceted_search_date_filter_request.rb +186 -0
  125. data/lib/oci/data_catalog/models/faceted_search_filter_request.rb +168 -0
  126. data/lib/oci/data_catalog/models/faceted_search_sort_request.rb +181 -0
  127. data/lib/oci/data_catalog/models/faceted_search_string_filter_request.rb +160 -0
  128. data/lib/oci/data_catalog/models/folder.rb +15 -1
  129. data/lib/oci/data_catalog/models/glossary.rb +73 -1
  130. data/lib/oci/data_catalog/models/glossary_summary.rb +62 -4
  131. data/lib/oci/data_catalog/models/namespace.rb +290 -0
  132. data/lib/oci/data_catalog/models/namespace_collection.rb +161 -0
  133. data/lib/oci/data_catalog/models/namespace_summary.rb +247 -0
  134. data/lib/oci/data_catalog/models/pattern.rb +368 -0
  135. data/lib/oci/data_catalog/models/pattern_collection.rb +162 -0
  136. data/lib/oci/data_catalog/models/pattern_summary.rb +258 -0
  137. data/lib/oci/data_catalog/models/search_criteria.rb +47 -4
  138. data/lib/oci/data_catalog/models/search_result.rb +28 -4
  139. data/lib/oci/data_catalog/models/search_result_collection.rb +28 -4
  140. data/lib/oci/data_catalog/models/term.rb +18 -4
  141. data/lib/oci/data_catalog/models/type.rb +18 -4
  142. data/lib/oci/{log_analytics/models/register_entity_types_details.rb → data_catalog/models/type_custom_property_details.rb} +13 -13
  143. data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
  144. data/lib/oci/data_catalog/models/update_connection_details.rb +15 -1
  145. data/lib/oci/data_catalog/models/update_custom_property_details.rb +291 -0
  146. data/lib/oci/data_catalog/models/update_data_asset_details.rb +15 -1
  147. data/lib/oci/data_catalog/models/update_entity_details.rb +43 -1
  148. data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
  149. data/lib/oci/data_catalog/models/update_glossary_details.rb +18 -4
  150. data/lib/oci/data_catalog/models/update_namespace_details.rb +182 -0
  151. data/lib/oci/data_catalog/models/update_pattern_details.rb +243 -0
  152. data/lib/oci/data_catalog/models/update_term_details.rb +18 -4
  153. data/lib/oci/data_catalog/models/validate_pattern_details.rb +187 -0
  154. data/lib/oci/data_catalog/models/validate_pattern_result.rb +184 -0
  155. data/lib/oci/data_integration/models/source.rb +1 -0
  156. data/lib/oci/database/database.rb +19 -0
  157. data/lib/oci/database/database_client.rb +1112 -8
  158. data/lib/oci/database/database_client_composite_operations.rb +281 -0
  159. data/lib/oci/database/models/autonomous_container_database.rb +80 -4
  160. data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +480 -0
  161. data/lib/oci/database/models/autonomous_container_database_summary.rb +80 -4
  162. data/lib/oci/database/models/autonomous_database.rb +141 -8
  163. data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
  164. data/lib/oci/database/models/autonomous_database_backup_config.rb +189 -0
  165. data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
  166. data/lib/oci/database/models/autonomous_database_dataguard_association.rb +468 -0
  167. data/lib/oci/database/models/autonomous_database_summary.rb +141 -8
  168. data/lib/oci/database/models/autonomous_db_version_summary.rb +46 -4
  169. data/lib/oci/{log_analytics/models/query.rb → database/models/change_key_store_compartment_details.rb} +5 -3
  170. data/lib/oci/database/models/create_autonomous_container_database_details.rb +138 -5
  171. data/lib/oci/database/models/create_autonomous_database_base.rb +30 -5
  172. data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
  173. data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
  174. data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
  175. data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
  176. data/lib/oci/database/models/create_data_guard_association_details.rb +15 -1
  177. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +24 -4
  178. data/lib/oci/database/models/create_data_guard_association_to_existing_vm_cluster_details.rb +24 -4
  179. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +5 -1
  180. data/lib/oci/database/models/create_database_details.rb +15 -1
  181. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +1 -1
  182. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +1 -1
  183. data/lib/oci/database/models/create_key_store_details.rb +217 -0
  184. data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
  185. data/lib/oci/database/models/database.rb +1 -0
  186. data/lib/oci/database/models/database_software_image.rb +18 -4
  187. data/lib/oci/database/models/database_software_image_summary.rb +18 -4
  188. data/lib/oci/database/models/database_summary.rb +1 -0
  189. data/lib/oci/database/models/database_upgrade_history_entry.rb +352 -0
  190. data/lib/oci/database/models/database_upgrade_history_entry_summary.rb +355 -0
  191. data/lib/oci/database/models/database_upgrade_source_base.rb +188 -0
  192. data/lib/oci/database/models/database_upgrade_with_database_software_image_details.rb +164 -0
  193. data/lib/oci/database/models/database_upgrade_with_db_home_details.rb +164 -0
  194. data/lib/oci/database/models/database_upgrade_with_db_version_details.rb +164 -0
  195. data/lib/oci/database/models/db_system.rb +1 -0
  196. data/lib/oci/database/models/db_system_summary.rb +1 -0
  197. data/lib/oci/database/models/db_version_summary.rb +18 -4
  198. data/lib/oci/database/models/key_store.rb +300 -0
  199. data/lib/oci/database/models/key_store_associated_database_details.rb +164 -0
  200. data/lib/oci/database/models/key_store_summary.rb +303 -0
  201. data/lib/oci/database/models/key_store_type_details.rb +185 -0
  202. data/lib/oci/database/models/key_store_type_from_oracle_key_vault_details.rb +204 -0
  203. data/lib/oci/database/models/maintenance_run.rb +18 -4
  204. data/lib/oci/database/models/maintenance_run_summary.rb +18 -4
  205. data/lib/oci/database/models/peer_autonomous_container_database_backup_config.rb +172 -0
  206. data/lib/oci/database/models/update.rb +1 -0
  207. data/lib/oci/database/models/update_autonomous_container_database_details.rb +17 -1
  208. data/lib/oci/database/models/update_autonomous_database_details.rb +30 -5
  209. data/lib/oci/database/models/update_database_details.rb +43 -1
  210. data/lib/oci/database/models/update_history_entry.rb +1 -0
  211. data/lib/oci/database/models/update_history_entry_summary.rb +1 -0
  212. data/lib/oci/database/models/update_key_store_details.rb +187 -0
  213. data/lib/oci/database/models/update_summary.rb +1 -0
  214. data/lib/oci/database/models/upgrade_database_details.rb +179 -0
  215. data/lib/oci/dns/dns.rb +24 -0
  216. data/lib/oci/dns/dns_client.rb +1695 -175
  217. data/lib/oci/dns/dns_client_composite_operations.rb +240 -0
  218. data/lib/oci/{log_analytics/models/service_tenancy.rb → dns/models/attached_view.rb} +13 -12
  219. data/lib/oci/dns/models/attached_view_details.rb +155 -0
  220. data/lib/oci/dns/models/change_resolver_compartment_details.rb +156 -0
  221. data/lib/oci/{log_analytics/models/query_work_request_resource.rb → dns/models/change_view_compartment_details.rb} +5 -3
  222. data/lib/oci/dns/models/create_resolver_endpoint_details.rb +261 -0
  223. data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +203 -0
  224. data/lib/oci/dns/models/create_view_details.rb +210 -0
  225. data/lib/oci/dns/models/create_zone_details.rb +41 -2
  226. data/lib/oci/dns/models/migration_replacement.rb +1 -1
  227. data/lib/oci/dns/models/record.rb +1 -2
  228. data/lib/oci/dns/models/record_collection.rb +1 -0
  229. data/lib/oci/dns/models/record_details.rb +1 -2
  230. data/lib/oci/dns/models/record_operation.rb +1 -2
  231. data/lib/oci/dns/models/resolver.rb +393 -0
  232. data/lib/oci/dns/models/resolver_endpoint.rb +371 -0
  233. data/lib/oci/dns/models/resolver_endpoint_summary.rb +371 -0
  234. data/lib/oci/{log_analytics/models/generate_agent_object_name_details.rb → dns/models/resolver_forward_rule.rb} +42 -51
  235. data/lib/oci/dns/models/resolver_forward_rule_details.rb +187 -0
  236. data/lib/oci/dns/models/resolver_rule.rb +222 -0
  237. data/lib/oci/dns/models/resolver_rule_details.rb +215 -0
  238. data/lib/oci/dns/models/resolver_summary.rb +357 -0
  239. data/lib/oci/dns/models/resolver_vnic_endpoint.rb +220 -0
  240. data/lib/oci/dns/models/resolver_vnic_endpoint_summary.rb +205 -0
  241. data/lib/oci/dns/models/rr_set.rb +1 -0
  242. data/lib/oci/{log_analytics/models/sort_orders.rb → dns/models/scope.rb} +4 -4
  243. data/lib/oci/dns/models/steering_policy.rb +12 -12
  244. data/lib/oci/dns/models/steering_policy_answer.rb +1 -1
  245. data/lib/oci/dns/models/steering_policy_attachment.rb +10 -10
  246. data/lib/oci/dns/models/steering_policy_attachment_summary.rb +10 -10
  247. data/lib/oci/dns/models/steering_policy_summary.rb +10 -10
  248. data/lib/oci/dns/models/tsig_key.rb +10 -10
  249. data/lib/oci/dns/models/tsig_key_summary.rb +9 -9
  250. data/lib/oci/dns/models/update_resolver_details.rb +221 -0
  251. data/lib/oci/dns/models/update_resolver_endpoint_details.rb +188 -0
  252. data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +166 -0
  253. data/lib/oci/dns/models/update_view_details.rb +196 -0
  254. data/lib/oci/{log_analytics/models/log_analytics.rb → dns/models/view.rb} +105 -77
  255. data/lib/oci/dns/models/view_summary.rb +321 -0
  256. data/lib/oci/dns/models/zone.rb +75 -14
  257. data/lib/oci/dns/models/zone_summary.rb +76 -15
  258. data/lib/oci/functions/functions_management_client.rb +1 -1
  259. data/lib/oci/functions/models/application.rb +21 -2
  260. data/lib/oci/functions/models/application_summary.rb +1 -1
  261. data/lib/oci/functions/models/create_application_details.rb +20 -1
  262. data/lib/oci/functions/models/function.rb +1 -1
  263. data/lib/oci/functions/models/function_summary.rb +1 -1
  264. data/lib/oci/functions/models/update_application_details.rb +20 -1
  265. data/lib/oci/identity/identity.rb +5 -0
  266. data/lib/oci/identity/identity_client.rb +152 -23
  267. data/lib/oci/identity/identity_client_composite_operations.rb +48 -0
  268. data/lib/oci/identity/models/bulk_edit_operation_details.rb +193 -0
  269. data/lib/oci/identity/models/bulk_edit_resource.rb +175 -0
  270. data/lib/oci/identity/models/bulk_edit_tags_details.rb +181 -0
  271. data/lib/oci/identity/models/bulk_edit_tags_resource_type.rb +175 -0
  272. data/lib/oci/identity/models/bulk_edit_tags_resource_type_collection.rb +151 -0
  273. data/lib/oci/identity/models/customer_secret_key.rb +3 -3
  274. data/lib/oci/identity/models/tagging_work_request.rb +4 -0
  275. data/lib/oci/identity/models/tagging_work_request_summary.rb +4 -0
  276. data/lib/oci/identity/models/user.rb +54 -4
  277. data/lib/oci/identity/models/work_request_resource.rb +1 -0
  278. data/lib/oci/load_balancer/load_balancer.rb +1 -0
  279. data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +2 -1
  280. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
  281. data/lib/oci/load_balancer/models/ip_address.rb +17 -4
  282. data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +0 -2
  283. data/lib/oci/{log_analytics/models/log_analytics_collection_warning.rb → load_balancer/models/reserved_ip.rb} +2 -4
  284. data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +7 -6
  285. data/lib/oci/log_analytics/log_analytics.rb +0 -15
  286. data/lib/oci/log_analytics/log_analytics_client.rb +193 -180
  287. data/lib/oci/log_analytics/log_analytics_client_composite_operations.rb +68 -17
  288. data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +1 -1
  289. data/lib/oci/log_analytics/models/archiving_configuration.rb +3 -3
  290. data/lib/oci/log_analytics/models/bucket_range.rb +1 -1
  291. data/lib/oci/log_analytics/models/change_log_analytics_object_collection_rule_compartment_details.rb +1 -1
  292. data/lib/oci/log_analytics/models/char_encoding_collection.rb +2 -2
  293. data/lib/oci/log_analytics/models/create_log_analytics_object_collection_rule_details.rb +4 -6
  294. data/lib/oci/log_analytics/models/estimate_purge_data_size_details.rb +6 -6
  295. data/lib/oci/log_analytics/models/estimate_purge_data_size_result.rb +1 -1
  296. data/lib/oci/log_analytics/models/export_content.rb +1 -0
  297. data/lib/oci/log_analytics/models/extract_log_field_results.rb +1 -1
  298. data/lib/oci/log_analytics/models/extract_log_header_details.rb +1 -1
  299. data/lib/oci/log_analytics/models/extract_log_header_results.rb +1 -1
  300. data/lib/oci/log_analytics/models/file_validation_response.rb +3 -3
  301. data/lib/oci/log_analytics/models/filter.rb +1 -1
  302. data/lib/oci/log_analytics/models/filter_details.rb +1 -1
  303. data/lib/oci/log_analytics/models/label_source_summary.rb +1 -1
  304. data/lib/oci/log_analytics/models/log_analytics_entity_summary.rb +36 -4
  305. data/lib/oci/log_analytics/models/log_analytics_field_summary.rb +1 -1
  306. data/lib/oci/log_analytics/models/log_analytics_import_custom_content.rb +0 -1
  307. data/lib/oci/log_analytics/models/log_analytics_lookup.rb +0 -2
  308. data/lib/oci/log_analytics/models/log_analytics_object_collection_rule.rb +4 -6
  309. data/lib/oci/log_analytics/models/log_analytics_object_collection_rule_summary.rb +1 -3
  310. data/lib/oci/log_analytics/models/log_analytics_parser_filter.rb +3 -3
  311. data/lib/oci/log_analytics/models/namespace.rb +5 -4
  312. data/lib/oci/log_analytics/models/namespace_collection.rb +2 -2
  313. data/lib/oci/log_analytics/models/namespace_summary.rb +5 -4
  314. data/lib/oci/log_analytics/models/parsed_content.rb +2 -2
  315. data/lib/oci/log_analytics/models/parsed_field.rb +1 -1
  316. data/lib/oci/log_analytics/models/purge_storage_data_details.rb +6 -6
  317. data/lib/oci/log_analytics/models/query_aggregation.rb +1 -1
  318. data/lib/oci/log_analytics/models/query_details.rb +5 -5
  319. data/lib/oci/log_analytics/models/recall_archived_data_details.rb +5 -5
  320. data/lib/oci/log_analytics/models/release_recalled_data_details.rb +5 -5
  321. data/lib/oci/log_analytics/models/scope_filter.rb +1 -1
  322. data/lib/oci/log_analytics/models/source_validate_details.rb +1 -1
  323. data/lib/oci/log_analytics/models/source_validate_results.rb +1 -1
  324. data/lib/oci/log_analytics/models/storage.rb +2 -2
  325. data/lib/oci/log_analytics/models/storage_usage.rb +4 -4
  326. data/lib/oci/log_analytics/models/storage_work_request.rb +14 -14
  327. data/lib/oci/log_analytics/models/storage_work_request_collection.rb +2 -2
  328. data/lib/oci/log_analytics/models/storage_work_request_summary.rb +14 -14
  329. data/lib/oci/log_analytics/models/timezone_collection.rb +2 -2
  330. data/lib/oci/log_analytics/models/update_log_analytics_object_collection_rule_details.rb +3 -3
  331. data/lib/oci/log_analytics/models/update_storage_details.rb +1 -1
  332. data/lib/oci/log_analytics/models/upload.rb +1 -1
  333. data/lib/oci/log_analytics/models/upload_collection.rb +1 -1
  334. data/lib/oci/log_analytics/models/upload_file_collection.rb +1 -1
  335. data/lib/oci/log_analytics/models/upload_summary.rb +1 -1
  336. data/lib/oci/log_analytics/models/upload_warning_summary.rb +1 -1
  337. data/lib/oci/log_analytics/models/work_request_error_collection.rb +2 -2
  338. data/lib/oci/log_analytics/models/work_request_log.rb +3 -3
  339. data/lib/oci/log_analytics/models/work_request_log_collection.rb +2 -2
  340. data/lib/oci/logging/logging_management_client.rb +52 -52
  341. data/lib/oci/logging/logging_management_client_composite_operations.rb +128 -7
  342. data/lib/oci/logging/models/category.rb +4 -4
  343. data/lib/oci/logging/models/change_log_group_compartment_details.rb +2 -2
  344. data/lib/oci/logging/models/change_log_log_group_details.rb +1 -1
  345. data/lib/oci/logging/models/change_unified_agent_configuration_compartment_details.rb +2 -2
  346. data/lib/oci/logging/models/create_log_details.rb +3 -3
  347. data/lib/oci/logging/models/create_log_group_details.rb +1 -1
  348. data/lib/oci/logging/models/create_log_saved_search_details.rb +2 -16
  349. data/lib/oci/logging/models/create_unified_agent_configuration_details.rb +1 -1
  350. data/lib/oci/logging/models/grok_pattern.rb +6 -6
  351. data/lib/oci/logging/models/log.rb +5 -5
  352. data/lib/oci/logging/models/log_group.rb +3 -3
  353. data/lib/oci/logging/models/log_group_summary.rb +43 -5
  354. data/lib/oci/logging/models/log_included_search.rb +1 -1
  355. data/lib/oci/logging/models/log_included_search_summary.rb +1 -1
  356. data/lib/oci/logging/models/log_saved_search.rb +44 -19
  357. data/lib/oci/logging/models/log_saved_search_lifecycle_state.rb +5 -1
  358. data/lib/oci/logging/models/log_saved_search_summary.rb +63 -17
  359. data/lib/oci/logging/models/log_saved_search_summary_collection.rb +1 -1
  360. data/lib/oci/logging/models/log_summary.rb +4 -4
  361. data/lib/oci/logging/models/parameter.rb +2 -2
  362. data/lib/oci/logging/models/resource_type.rb +2 -2
  363. data/lib/oci/logging/models/service_summary.rb +6 -6
  364. data/lib/oci/logging/models/source.rb +1 -1
  365. data/lib/oci/logging/models/unified_agent_apache2_parser.rb +1 -1
  366. data/lib/oci/logging/models/unified_agent_apache_error_parser.rb +1 -1
  367. data/lib/oci/logging/models/unified_agent_configuration.rb +2 -2
  368. data/lib/oci/logging/models/unified_agent_configuration_collection.rb +1 -1
  369. data/lib/oci/logging/models/unified_agent_configuration_summary.rb +4 -4
  370. data/lib/oci/logging/models/unified_agent_csv_parser.rb +1 -1
  371. data/lib/oci/logging/models/unified_agent_grok_parser.rb +1 -1
  372. data/lib/oci/logging/models/unified_agent_logging_destination.rb +1 -1
  373. data/lib/oci/logging/models/unified_agent_logging_source.rb +2 -2
  374. data/lib/oci/logging/models/unified_agent_multiline_grok_parser.rb +1 -1
  375. data/lib/oci/logging/models/unified_agent_multiline_parser.rb +1 -1
  376. data/lib/oci/logging/models/unified_agent_none_parser.rb +1 -1
  377. data/lib/oci/logging/models/unified_agent_parser.rb +7 -7
  378. data/lib/oci/logging/models/unified_agent_regex_parser.rb +1 -1
  379. data/lib/oci/logging/models/unified_agent_service_configuration_details.rb +1 -1
  380. data/lib/oci/logging/models/unified_agent_syslog_parser.rb +1 -1
  381. data/lib/oci/logging/models/unified_agent_tail_log_source.rb +1 -1
  382. data/lib/oci/logging/models/unified_agent_tsv_parser.rb +1 -1
  383. data/lib/oci/logging/models/unified_agent_windows_event_source.rb +1 -1
  384. data/lib/oci/logging/models/unified_json_parser.rb +1 -1
  385. data/lib/oci/logging/models/update_configuration_details.rb +1 -1
  386. data/lib/oci/logging/models/update_log_details.rb +3 -3
  387. data/lib/oci/logging/models/update_log_group_details.rb +1 -1
  388. data/lib/oci/logging/models/update_log_saved_search_details.rb +2 -16
  389. data/lib/oci/logging/models/update_unified_agent_configuration_details.rb +2 -2
  390. data/lib/oci/logging/models/work_request.rb +2 -2
  391. data/lib/oci/logging/models/work_request_error.rb +3 -3
  392. data/lib/oci/logging/models/work_request_log.rb +1 -1
  393. data/lib/oci/logging/models/work_request_resource.rb +3 -3
  394. data/lib/oci/loggingingestion/logging_client.rb +3 -3
  395. data/lib/oci/loggingingestion/models/log_entry.rb +4 -5
  396. data/lib/oci/loggingingestion/models/log_entry_batch.rb +7 -7
  397. data/lib/oci/loggingsearch/log_search_client.rb +3 -3
  398. data/lib/oci/loggingsearch/models/field_info.rb +1 -1
  399. data/lib/oci/loggingsearch/models/search_logs_details.rb +2 -2
  400. data/lib/oci/loggingsearch/models/search_result.rb +2 -2
  401. data/lib/oci/management_dashboard/dashx_apis_client.rb +31 -32
  402. data/lib/oci/management_dashboard/models/change_management_dashboards_compartment_details.rb +2 -2
  403. data/lib/oci/management_dashboard/models/change_management_saved_searches_compartment_details.rb +2 -2
  404. data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +18 -18
  405. data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -15
  406. data/lib/oci/management_dashboard/models/management_dashboard.rb +23 -23
  407. data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +1 -1
  408. data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +19 -19
  409. data/lib/oci/management_dashboard/models/management_dashboard_import_details.rb +1 -1
  410. data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +14 -14
  411. data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +14 -12
  412. data/lib/oci/management_dashboard/models/management_saved_search.rb +19 -19
  413. data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +15 -15
  414. data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +46 -18
  415. data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +17 -17
  416. data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -15
  417. data/lib/oci/mysql/db_system_client.rb +611 -2
  418. data/lib/oci/mysql/db_system_client_composite_operations.rb +345 -0
  419. data/lib/oci/mysql/models/add_analytics_cluster_details.rb +173 -0
  420. data/lib/oci/mysql/models/analytics_cluster.rb +282 -0
  421. data/lib/oci/mysql/models/analytics_cluster_memory_estimate.rb +236 -0
  422. data/lib/oci/mysql/models/analytics_cluster_memory_estimate_status.rb +15 -0
  423. data/lib/oci/mysql/models/analytics_cluster_node.rb +222 -0
  424. data/lib/oci/mysql/models/analytics_cluster_schema_memory_estimate.rb +172 -0
  425. data/lib/oci/mysql/models/analytics_cluster_summary.rb +215 -0
  426. data/lib/oci/mysql/models/analytics_cluster_table_memory_estimate.rb +236 -0
  427. data/lib/oci/mysql/models/db_system.rb +31 -1
  428. data/lib/oci/mysql/models/db_system_summary.rb +31 -1
  429. data/lib/oci/mysql/models/shape_summary.rb +46 -4
  430. data/lib/oci/mysql/models/update_analytics_cluster_details.rb +179 -0
  431. data/lib/oci/mysql/models/work_request.rb +7 -0
  432. data/lib/oci/mysql/models/work_request_operation_type.rb +8 -1
  433. data/lib/oci/mysql/models/work_request_summary.rb +7 -0
  434. data/lib/oci/mysql/mysql.rb +9 -0
  435. data/lib/oci/mysql/mysqlaas_client.rb +14 -0
  436. data/lib/oci/nosql/models/create_table_details.rb +15 -1
  437. data/lib/oci/nosql/models/table.rb +55 -4
  438. data/lib/oci/nosql/models/table_collection.rb +32 -4
  439. data/lib/oci/nosql/models/table_summary.rb +54 -4
  440. data/lib/oci/nosql/nosql_client.rb +6 -6
  441. data/lib/oci/object_storage/models/object_lifecycle_rule.rb +6 -0
  442. data/lib/oci/ocvp/models/create_esxi_host_details.rb +4 -2
  443. data/lib/oci/ocvp/models/create_sddc_details.rb +35 -3
  444. data/lib/oci/ocvp/models/sddc.rb +89 -1
  445. data/lib/oci/ocvp/models/sddc_summary.rb +29 -1
  446. data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
  447. data/lib/oci/ocvp/models/update_sddc_details.rb +17 -1
  448. data/lib/oci/opsi/models/database_details.rb +210 -0
  449. data/lib/oci/opsi/models/database_insight_summary.rb +286 -0
  450. data/lib/oci/opsi/models/database_insights.rb +154 -0
  451. data/lib/oci/opsi/models/database_insights_collection.rb +150 -0
  452. data/lib/oci/opsi/models/historical_data_item.rb +165 -0
  453. data/lib/oci/opsi/models/ingest_sql_bucket_details.rb +151 -0
  454. data/lib/oci/opsi/models/ingest_sql_bucket_response_details.rb +152 -0
  455. data/lib/oci/opsi/models/ingest_sql_plan_lines_details.rb +151 -0
  456. data/lib/oci/opsi/models/ingest_sql_plan_lines_response_details.rb +152 -0
  457. data/lib/oci/opsi/models/ingest_sql_text_details.rb +151 -0
  458. data/lib/oci/opsi/models/ingest_sql_text_response_details.rb +152 -0
  459. data/lib/oci/opsi/models/projected_data_item.rb +195 -0
  460. data/lib/oci/opsi/models/resource_capacity_trend_aggregation.rb +180 -0
  461. data/lib/oci/opsi/models/resource_insight_current_utilization.rb +160 -0
  462. data/lib/oci/opsi/models/resource_insight_projected_utilization.rb +160 -0
  463. data/lib/oci/opsi/models/resource_insight_projected_utilization_item.rb +164 -0
  464. data/lib/oci/opsi/models/resource_statistics.rb +219 -0
  465. data/lib/oci/opsi/models/resource_statistics_aggregation.rb +166 -0
  466. data/lib/oci/opsi/models/resource_usage_trend_aggregation.rb +176 -0
  467. data/lib/oci/opsi/models/sort_order.rb +11 -0
  468. data/lib/oci/opsi/models/sql_bucket.rb +307 -0
  469. data/lib/oci/opsi/models/sql_insight_aggregation.rb +202 -0
  470. data/lib/oci/opsi/models/sql_insight_aggregation_collection.rb +199 -0
  471. data/lib/oci/opsi/models/sql_insight_thresholds.rb +243 -0
  472. data/lib/oci/opsi/models/sql_inventory.rb +182 -0
  473. data/lib/oci/opsi/models/sql_plan_collection.rb +180 -0
  474. data/lib/oci/opsi/models/sql_plan_insight_aggregation.rb +210 -0
  475. data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +218 -0
  476. data/lib/oci/opsi/models/sql_plan_insights.rb +177 -0
  477. data/lib/oci/opsi/models/sql_plan_line.rb +673 -0
  478. data/lib/oci/opsi/models/sql_plan_summary.rb +169 -0
  479. data/lib/oci/opsi/models/sql_response_time_distribution_aggregation.rb +168 -0
  480. data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +208 -0
  481. data/lib/oci/opsi/models/sql_search_collection.rb +209 -0
  482. data/lib/oci/opsi/models/sql_search_summary.rb +224 -0
  483. data/lib/oci/opsi/models/sql_statistic_aggregation.rb +189 -0
  484. data/lib/oci/opsi/models/sql_statistic_aggregation_collection.rb +179 -0
  485. data/lib/oci/opsi/models/sql_statistics.rb +402 -0
  486. data/lib/oci/opsi/models/sql_statistics_time_series.rb +162 -0
  487. data/lib/oci/opsi/models/sql_statistics_time_series_aggregation.rb +165 -0
  488. data/lib/oci/opsi/models/sql_statistics_time_series_aggregation_collection.rb +223 -0
  489. data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation.rb +165 -0
  490. data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +237 -0
  491. data/lib/oci/opsi/models/sql_text.rb +248 -0
  492. data/lib/oci/opsi/models/sql_text_collection.rb +151 -0
  493. data/lib/oci/opsi/models/sql_text_summary.rb +184 -0
  494. data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +270 -0
  495. data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +302 -0
  496. data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +249 -0
  497. data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +275 -0
  498. data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +270 -0
  499. data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +232 -0
  500. data/lib/oci/opsi/models/usage_unit.rb +13 -0
  501. data/lib/oci/opsi/operations_insights_client.rb +2008 -0
  502. data/lib/oci/opsi/operations_insights_client_composite_operations.rb +25 -0
  503. data/lib/oci/opsi/opsi.rb +72 -0
  504. data/lib/oci/opsi/util.rb +3 -0
  505. data/lib/oci/optimizer/models/action.rb +192 -0
  506. data/lib/oci/optimizer/models/action_type.rb +10 -0
  507. data/lib/oci/optimizer/models/bulk_apply_recommendations_details.rb +197 -0
  508. data/lib/oci/optimizer/models/category.rb +298 -0
  509. data/lib/oci/optimizer/models/category_collection.rb +151 -0
  510. data/lib/oci/optimizer/models/category_summary.rb +298 -0
  511. data/lib/oci/optimizer/models/create_profile_details.rb +227 -0
  512. data/lib/oci/{log_analytics/models/log_analytics_summary.rb → optimizer/models/enrollment_status.rb} +81 -63
  513. data/lib/oci/optimizer/models/enrollment_status_collection.rb +151 -0
  514. data/lib/oci/optimizer/models/enrollment_status_summary.rb +279 -0
  515. data/lib/oci/optimizer/models/history_collection.rb +151 -0
  516. data/lib/oci/optimizer/models/history_summary.rb +429 -0
  517. data/lib/oci/optimizer/models/importance.rb +14 -0
  518. data/lib/oci/{log_analytics/models/field_map.rb → optimizer/models/level_configuration.rb} +19 -24
  519. data/lib/oci/optimizer/models/levels_configuration.rb +150 -0
  520. data/lib/oci/optimizer/models/lifecycle_state.rb +18 -0
  521. data/lib/oci/optimizer/models/operation_status.rb +15 -0
  522. data/lib/oci/optimizer/models/operation_type.rb +10 -0
  523. data/lib/oci/optimizer/models/optimizer_enrollment_status.rb +11 -0
  524. data/lib/oci/optimizer/models/profile.rb +305 -0
  525. data/lib/oci/optimizer/models/profile_collection.rb +151 -0
  526. data/lib/oci/optimizer/models/profile_summary.rb +303 -0
  527. data/lib/oci/optimizer/models/recommendation.rb +409 -0
  528. data/lib/oci/optimizer/models/recommendation_collection.rb +151 -0
  529. data/lib/oci/optimizer/models/recommendation_count.rb +183 -0
  530. data/lib/oci/optimizer/models/recommendation_summary.rb +409 -0
  531. data/lib/oci/optimizer/models/resource_action.rb +450 -0
  532. data/lib/oci/optimizer/models/resource_action_collection.rb +151 -0
  533. data/lib/oci/optimizer/models/resource_action_summary.rb +450 -0
  534. data/lib/oci/optimizer/models/resource_count.rb +182 -0
  535. data/lib/oci/optimizer/models/sort_order.rb +11 -0
  536. data/lib/oci/optimizer/models/status.rb +13 -0
  537. data/lib/oci/{log_analytics/models/agent_upload.rb → optimizer/models/supported_level.rb} +3 -3
  538. data/lib/oci/optimizer/models/supported_levels.rb +153 -0
  539. data/lib/oci/optimizer/models/update_enrollment_status_details.rb +166 -0
  540. data/lib/oci/optimizer/models/update_profile_details.rb +202 -0
  541. data/lib/oci/optimizer/models/update_recommendation_details.rb +183 -0
  542. data/lib/oci/optimizer/models/update_resource_action_details.rb +183 -0
  543. data/lib/oci/optimizer/models/work_request.rb +300 -0
  544. data/lib/oci/optimizer/models/work_request_action_type.rb +14 -0
  545. data/lib/oci/optimizer/models/work_request_collection.rb +151 -0
  546. data/lib/oci/optimizer/models/work_request_error.rb +173 -0
  547. data/lib/oci/optimizer/models/work_request_error_collection.rb +151 -0
  548. data/lib/oci/optimizer/models/work_request_log_entry.rb +161 -0
  549. data/lib/oci/optimizer/models/work_request_log_entry_collection.rb +151 -0
  550. data/lib/oci/{log_analytics/models/out_of_box_entity_type_details.rb → optimizer/models/work_request_resource.rb} +60 -57
  551. data/lib/oci/optimizer/optimizer.rb +66 -0
  552. data/lib/oci/optimizer/optimizer_client.rb +1652 -0
  553. data/lib/oci/optimizer/optimizer_client_composite_operations.rb +314 -0
  554. data/lib/oci/optimizer/util.rb +3 -0
  555. data/lib/oci/regions.rb +5 -1
  556. data/lib/oci/sch/models/service_connector.rb +1 -1
  557. data/lib/oci/sch/models/source_details.rb +1 -1
  558. data/lib/oci/sch/models/target_details.rb +1 -1
  559. data/lib/oci/sch/models/task_details.rb +1 -1
  560. data/lib/oci/sch/models/work_request.rb +1 -1
  561. data/lib/oci/sch/service_connector_client.rb +8 -8
  562. data/lib/oci/signer.rb +3 -1
  563. data/lib/oci/tenant_manager_control_plane/link_client.rb +287 -0
  564. data/lib/oci/tenant_manager_control_plane/link_client_composite_operations.rb +65 -0
  565. data/lib/oci/tenant_manager_control_plane/models/action_type.rb +14 -0
  566. data/lib/oci/tenant_manager_control_plane/models/create_sender_invitation_details.rb +228 -0
  567. data/lib/oci/tenant_manager_control_plane/models/lifecycle_state.rb +15 -0
  568. data/lib/oci/tenant_manager_control_plane/models/link.rb +258 -0
  569. data/lib/oci/tenant_manager_control_plane/models/link_collection.rb +150 -0
  570. data/lib/oci/tenant_manager_control_plane/models/link_summary.rb +258 -0
  571. data/lib/oci/tenant_manager_control_plane/models/operation_status.rb +15 -0
  572. data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +12 -0
  573. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation.rb +367 -0
  574. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_collection.rb +150 -0
  575. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_status.rb +15 -0
  576. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_summary.rb +367 -0
  577. data/lib/oci/tenant_manager_control_plane/models/sender_invitation.rb +366 -0
  578. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_collection.rb +150 -0
  579. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_status.rb +14 -0
  580. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_summary.rb +366 -0
  581. data/lib/oci/tenant_manager_control_plane/models/sort_order.rb +11 -0
  582. data/lib/oci/tenant_manager_control_plane/models/update_recipient_invitation_details.rb +186 -0
  583. data/lib/oci/tenant_manager_control_plane/models/update_sender_invitation_details.rb +186 -0
  584. data/lib/oci/tenant_manager_control_plane/models/work_request.rb +307 -0
  585. data/lib/oci/tenant_manager_control_plane/models/work_request_collection.rb +150 -0
  586. data/lib/oci/tenant_manager_control_plane/models/work_request_error.rb +173 -0
  587. data/lib/oci/tenant_manager_control_plane/models/work_request_error_collection.rb +150 -0
  588. data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry.rb +160 -0
  589. data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry_collection.rb +150 -0
  590. data/lib/oci/tenant_manager_control_plane/models/work_request_resource.rb +219 -0
  591. data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +307 -0
  592. data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +425 -0
  593. data/lib/oci/tenant_manager_control_plane/recipient_invitation_client_composite_operations.rb +153 -0
  594. data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +435 -0
  595. data/lib/oci/tenant_manager_control_plane/sender_invitation_client_composite_operations.rb +163 -0
  596. data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +52 -0
  597. data/lib/oci/tenant_manager_control_plane/util.rb +3 -0
  598. data/lib/oci/tenant_manager_control_plane/work_request_client.rb +356 -0
  599. data/lib/oci/tenant_manager_control_plane/work_request_client_composite_operations.rb +25 -0
  600. data/lib/oci/usage_api/models/configuration.rb +3 -3
  601. data/lib/oci/usage_api/models/configuration_aggregation.rb +2 -2
  602. data/lib/oci/usage_api/models/dimension.rb +3 -3
  603. data/lib/oci/usage_api/models/filter.rb +1 -1
  604. data/lib/oci/usage_api/models/request_summarized_usages_details.rb +12 -12
  605. data/lib/oci/usage_api/models/tag.rb +3 -3
  606. data/lib/oci/usage_api/models/usage_aggregation.rb +1 -1
  607. data/lib/oci/usage_api/models/usage_summary.rb +47 -19
  608. data/lib/oci/usage_api/usageapi_client.rb +4 -4
  609. data/lib/oci/version.rb +1 -1
  610. metadata +273 -17
  611. data/lib/oci/log_analytics/models/attribute.rb +0 -435
@@ -0,0 +1,66 @@
1
+ # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3
+
4
+ module OCI
5
+ module Optimizer
6
+ # Module containing models for requests made to, and responses received from,
7
+ # OCI Optimizer services
8
+ module Models
9
+ end
10
+ end
11
+ end
12
+
13
+ # Require models
14
+ require 'oci/optimizer/models/action'
15
+ require 'oci/optimizer/models/action_type'
16
+ require 'oci/optimizer/models/bulk_apply_recommendations_details'
17
+ require 'oci/optimizer/models/category'
18
+ require 'oci/optimizer/models/category_collection'
19
+ require 'oci/optimizer/models/category_summary'
20
+ require 'oci/optimizer/models/create_profile_details'
21
+ require 'oci/optimizer/models/enrollment_status'
22
+ require 'oci/optimizer/models/enrollment_status_collection'
23
+ require 'oci/optimizer/models/enrollment_status_summary'
24
+ require 'oci/optimizer/models/history_collection'
25
+ require 'oci/optimizer/models/history_summary'
26
+ require 'oci/optimizer/models/importance'
27
+ require 'oci/optimizer/models/level_configuration'
28
+ require 'oci/optimizer/models/levels_configuration'
29
+ require 'oci/optimizer/models/lifecycle_state'
30
+ require 'oci/optimizer/models/operation_status'
31
+ require 'oci/optimizer/models/operation_type'
32
+ require 'oci/optimizer/models/optimizer_enrollment_status'
33
+ require 'oci/optimizer/models/profile'
34
+ require 'oci/optimizer/models/profile_collection'
35
+ require 'oci/optimizer/models/profile_summary'
36
+ require 'oci/optimizer/models/recommendation'
37
+ require 'oci/optimizer/models/recommendation_collection'
38
+ require 'oci/optimizer/models/recommendation_count'
39
+ require 'oci/optimizer/models/recommendation_summary'
40
+ require 'oci/optimizer/models/resource_action'
41
+ require 'oci/optimizer/models/resource_action_collection'
42
+ require 'oci/optimizer/models/resource_action_summary'
43
+ require 'oci/optimizer/models/resource_count'
44
+ require 'oci/optimizer/models/sort_order'
45
+ require 'oci/optimizer/models/status'
46
+ require 'oci/optimizer/models/supported_level'
47
+ require 'oci/optimizer/models/supported_levels'
48
+ require 'oci/optimizer/models/update_enrollment_status_details'
49
+ require 'oci/optimizer/models/update_profile_details'
50
+ require 'oci/optimizer/models/update_recommendation_details'
51
+ require 'oci/optimizer/models/update_resource_action_details'
52
+ require 'oci/optimizer/models/work_request'
53
+ require 'oci/optimizer/models/work_request_action_type'
54
+ require 'oci/optimizer/models/work_request_collection'
55
+ require 'oci/optimizer/models/work_request_error'
56
+ require 'oci/optimizer/models/work_request_error_collection'
57
+ require 'oci/optimizer/models/work_request_log_entry'
58
+ require 'oci/optimizer/models/work_request_log_entry_collection'
59
+ require 'oci/optimizer/models/work_request_resource'
60
+
61
+ # Require generated clients
62
+ require 'oci/optimizer/optimizer_client'
63
+ require 'oci/optimizer/optimizer_client_composite_operations'
64
+
65
+ # Require service utilities
66
+ require 'oci/optimizer/util'
@@ -0,0 +1,1652 @@
1
+ # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3
+
4
+ require 'uri'
5
+ require 'logger'
6
+
7
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
8
+ module OCI
9
+ # APIs for managing Cloud Advisor. Cloud Advisor provides recommendations that help you maximize cost savings and improve the security posture of your tenancy.
10
+ class Optimizer::OptimizerClient
11
+ # Client used to make HTTP requests.
12
+ # @return [OCI::ApiClient]
13
+ attr_reader :api_client
14
+
15
+ # Fully qualified endpoint URL
16
+ # @return [String]
17
+ attr_reader :endpoint
18
+
19
+ # The default retry configuration to apply to all operations in this service client. This can be overridden
20
+ # on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
21
+ # will not perform any retries
22
+ # @return [OCI::Retry::RetryConfig]
23
+ attr_reader :retry_config
24
+
25
+ # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
26
+ # @return [String]
27
+ attr_reader :region
28
+
29
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
30
+
31
+
32
+ # Creates a new OptimizerClient.
33
+ # Notes:
34
+ # If a config is not specified, then the global OCI.config will be used.
35
+ #
36
+ # This client is not thread-safe
37
+ #
38
+ # Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
39
+ # region. A region may be specified in the config or via or the region parameter. If specified in both, then the
40
+ # region parameter will be used.
41
+ # @param [Config] config A Config object.
42
+ # @param [String] region A region used to determine the service endpoint. This will usually
43
+ # correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
44
+ # @param [String] endpoint The fully qualified endpoint URL
45
+ # @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
46
+ # a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
47
+ # so that the instance principals signer can be provided to the client
48
+ # @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
49
+ # the details for the proxy can be provided in this parameter
50
+ # @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
51
+ # apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
52
+ # will not perform any retries
53
+ def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
54
+ # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
55
+ # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
56
+ # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
57
+ # pass it to this constructor.
58
+ #
59
+ # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
60
+ # so try and load the config from the default file.
61
+ config = OCI::Config.validate_and_build_config_with_signer(config, signer)
62
+
63
+ signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
64
+
65
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
66
+ @retry_config = retry_config
67
+
68
+ if endpoint
69
+ @endpoint = endpoint + '/20200606'
70
+ else
71
+ region ||= config.region
72
+ region ||= signer.region if signer.respond_to?(:region)
73
+ self.region = region
74
+ end
75
+ logger.info "OptimizerClient endpoint set to '#{@endpoint}'." if logger
76
+ end
77
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
78
+
79
+ # Set the region that will be used to determine the service endpoint.
80
+ # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
81
+ # but may be an arbitrary string.
82
+ def region=(new_region)
83
+ @region = new_region
84
+
85
+ raise 'A region must be specified.' unless @region
86
+
87
+ @endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://optimizer.{region}.oci.{secondLevelDomain}') + '/20200606'
88
+ logger.info "OptimizerClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
89
+ end
90
+
91
+ # @return [Logger] The logger for this client. May be nil.
92
+ def logger
93
+ @api_client.config.logger
94
+ end
95
+
96
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
97
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
98
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
99
+
100
+
101
+ # Applies the specified recommendations to the resources.
102
+ #
103
+ # @param [String] recommendation_id The unique OCID associated with the recommendation.
104
+ # @param [OCI::Optimizer::Models::BulkApplyRecommendationsDetails] bulk_apply_recommendations_details Details about bulk recommendation actions.
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
107
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
108
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
109
+ # If you need to contact Oracle about a particular request, please provide the request ID.
110
+ #
111
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
112
+ # server error without risk of executing that same action again. Retry tokens expire after 24
113
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
114
+ # has been deleted and purged from the system, then a retry of the original creation request
115
+ # may be rejected).
116
+ #
117
+ # @return [Response] A Response object with data of type nil
118
+ def bulk_apply_recommendations(recommendation_id, bulk_apply_recommendations_details, opts = {})
119
+ logger.debug 'Calling operation OptimizerClient#bulk_apply_recommendations.' if logger
120
+
121
+ raise "Missing the required parameter 'recommendation_id' when calling bulk_apply_recommendations." if recommendation_id.nil?
122
+ raise "Missing the required parameter 'bulk_apply_recommendations_details' when calling bulk_apply_recommendations." if bulk_apply_recommendations_details.nil?
123
+ raise "Parameter value for 'recommendation_id' must not be blank" if OCI::Internal::Util.blank_string?(recommendation_id)
124
+
125
+ path = '/recommendations/{recommendationId}/actions/bulkApplyRecommendations'.sub('{recommendationId}', recommendation_id.to_s)
126
+ operation_signing_strategy = :standard
127
+
128
+ # rubocop:disable Style/NegatedIf
129
+ # Query Params
130
+ query_params = {}
131
+
132
+ # Header Params
133
+ header_params = {}
134
+ header_params[:accept] = 'application/json'
135
+ header_params[:'content-type'] = 'application/json'
136
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
137
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
138
+ # rubocop:enable Style/NegatedIf
139
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
140
+
141
+ post_body = @api_client.object_to_http_body(bulk_apply_recommendations_details)
142
+
143
+ # rubocop:disable Metrics/BlockLength
144
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#bulk_apply_recommendations') do
145
+ @api_client.call_api(
146
+ :POST,
147
+ path,
148
+ endpoint,
149
+ header_params: header_params,
150
+ query_params: query_params,
151
+ operation_signing_strategy: operation_signing_strategy,
152
+ body: post_body
153
+ )
154
+ end
155
+ # rubocop:enable Metrics/BlockLength
156
+ end
157
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
158
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
159
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
160
+
161
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
162
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
163
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
164
+
165
+
166
+ # Creates a new profile.
167
+ #
168
+ # @param [OCI::Optimizer::Models::CreateProfileDetails] create_profile_details Details for creating the profile.
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
171
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
172
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
173
+ # If you need to contact Oracle about a particular request, please provide the request ID.
174
+ #
175
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
176
+ # server error without risk of executing that same action again. Retry tokens expire after 24
177
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
178
+ # has been deleted and purged from the system, then a retry of the original creation request
179
+ # may be rejected).
180
+ #
181
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Profile Profile}
182
+ def create_profile(create_profile_details, opts = {})
183
+ logger.debug 'Calling operation OptimizerClient#create_profile.' if logger
184
+
185
+ raise "Missing the required parameter 'create_profile_details' when calling create_profile." if create_profile_details.nil?
186
+
187
+ path = '/profiles'
188
+ operation_signing_strategy = :standard
189
+
190
+ # rubocop:disable Style/NegatedIf
191
+ # Query Params
192
+ query_params = {}
193
+
194
+ # Header Params
195
+ header_params = {}
196
+ header_params[:accept] = 'application/json'
197
+ header_params[:'content-type'] = 'application/json'
198
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
199
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
200
+ # rubocop:enable Style/NegatedIf
201
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
202
+
203
+ post_body = @api_client.object_to_http_body(create_profile_details)
204
+
205
+ # rubocop:disable Metrics/BlockLength
206
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#create_profile') do
207
+ @api_client.call_api(
208
+ :POST,
209
+ path,
210
+ endpoint,
211
+ header_params: header_params,
212
+ query_params: query_params,
213
+ operation_signing_strategy: operation_signing_strategy,
214
+ body: post_body,
215
+ return_type: 'OCI::Optimizer::Models::Profile'
216
+ )
217
+ end
218
+ # rubocop:enable Metrics/BlockLength
219
+ end
220
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
221
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
222
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
223
+
224
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
225
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
226
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
227
+
228
+
229
+ # Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.
230
+ #
231
+ # @param [String] profile_id The unique OCID of the profile.
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
234
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
235
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
236
+ # for a resource, set the `if-match` parameter to the value of the
237
+ # etag from a previous GET or POST response for that resource.
238
+ # The resource will be updated or deleted only if the etag you
239
+ # provide matches the resource's current etag value.
240
+ #
241
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
242
+ # If you need to contact Oracle about a particular request, please provide the request ID.
243
+ #
244
+ # @return [Response] A Response object with data of type nil
245
+ def delete_profile(profile_id, opts = {})
246
+ logger.debug 'Calling operation OptimizerClient#delete_profile.' if logger
247
+
248
+ raise "Missing the required parameter 'profile_id' when calling delete_profile." if profile_id.nil?
249
+ raise "Parameter value for 'profile_id' must not be blank" if OCI::Internal::Util.blank_string?(profile_id)
250
+
251
+ path = '/profiles/{profileId}'.sub('{profileId}', profile_id.to_s)
252
+ operation_signing_strategy = :standard
253
+
254
+ # rubocop:disable Style/NegatedIf
255
+ # Query Params
256
+ query_params = {}
257
+
258
+ # Header Params
259
+ header_params = {}
260
+ header_params[:accept] = 'application/json'
261
+ header_params[:'content-type'] = 'application/json'
262
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
263
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
264
+ # rubocop:enable Style/NegatedIf
265
+
266
+ post_body = nil
267
+
268
+ # rubocop:disable Metrics/BlockLength
269
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#delete_profile') do
270
+ @api_client.call_api(
271
+ :DELETE,
272
+ path,
273
+ endpoint,
274
+ header_params: header_params,
275
+ query_params: query_params,
276
+ operation_signing_strategy: operation_signing_strategy,
277
+ body: post_body
278
+ )
279
+ end
280
+ # rubocop:enable Metrics/BlockLength
281
+ end
282
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
283
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
284
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
285
+
286
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
287
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
288
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
289
+
290
+
291
+ # Gets the category that corresponds to the specified OCID.
292
+ #
293
+ # @param [String] category_id The unique OCID associated with the category.
294
+ # @param [Hash] opts the optional parameters
295
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
296
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
297
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
298
+ # If you need to contact Oracle about a particular request, please provide the request ID.
299
+ #
300
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Category Category}
301
+ def get_category(category_id, opts = {})
302
+ logger.debug 'Calling operation OptimizerClient#get_category.' if logger
303
+
304
+ raise "Missing the required parameter 'category_id' when calling get_category." if category_id.nil?
305
+ raise "Parameter value for 'category_id' must not be blank" if OCI::Internal::Util.blank_string?(category_id)
306
+
307
+ path = '/categories/{categoryId}'.sub('{categoryId}', category_id.to_s)
308
+ operation_signing_strategy = :standard
309
+
310
+ # rubocop:disable Style/NegatedIf
311
+ # Query Params
312
+ query_params = {}
313
+
314
+ # Header Params
315
+ header_params = {}
316
+ header_params[:accept] = 'application/json'
317
+ header_params[:'content-type'] = 'application/json'
318
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
319
+ # rubocop:enable Style/NegatedIf
320
+
321
+ post_body = nil
322
+
323
+ # rubocop:disable Metrics/BlockLength
324
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_category') do
325
+ @api_client.call_api(
326
+ :GET,
327
+ path,
328
+ endpoint,
329
+ header_params: header_params,
330
+ query_params: query_params,
331
+ operation_signing_strategy: operation_signing_strategy,
332
+ body: post_body,
333
+ return_type: 'OCI::Optimizer::Models::Category'
334
+ )
335
+ end
336
+ # rubocop:enable Metrics/BlockLength
337
+ end
338
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
339
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
340
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
341
+
342
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
343
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
344
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
345
+
346
+
347
+ # Gets the Cloud Advisor enrollment status.
348
+ #
349
+ # @param [String] enrollment_status_id The unique OCID associated with the enrollment status.
350
+ # @param [Hash] opts the optional parameters
351
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
352
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
353
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
354
+ # If you need to contact Oracle about a particular request, please provide the request ID.
355
+ #
356
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::EnrollmentStatus EnrollmentStatus}
357
+ def get_enrollment_status(enrollment_status_id, opts = {})
358
+ logger.debug 'Calling operation OptimizerClient#get_enrollment_status.' if logger
359
+
360
+ raise "Missing the required parameter 'enrollment_status_id' when calling get_enrollment_status." if enrollment_status_id.nil?
361
+ raise "Parameter value for 'enrollment_status_id' must not be blank" if OCI::Internal::Util.blank_string?(enrollment_status_id)
362
+
363
+ path = '/enrollmentStatus/{enrollmentStatusId}'.sub('{enrollmentStatusId}', enrollment_status_id.to_s)
364
+ operation_signing_strategy = :standard
365
+
366
+ # rubocop:disable Style/NegatedIf
367
+ # Query Params
368
+ query_params = {}
369
+
370
+ # Header Params
371
+ header_params = {}
372
+ header_params[:accept] = 'application/json'
373
+ header_params[:'content-type'] = 'application/json'
374
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
375
+ # rubocop:enable Style/NegatedIf
376
+
377
+ post_body = nil
378
+
379
+ # rubocop:disable Metrics/BlockLength
380
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_enrollment_status') do
381
+ @api_client.call_api(
382
+ :GET,
383
+ path,
384
+ endpoint,
385
+ header_params: header_params,
386
+ query_params: query_params,
387
+ operation_signing_strategy: operation_signing_strategy,
388
+ body: post_body,
389
+ return_type: 'OCI::Optimizer::Models::EnrollmentStatus'
390
+ )
391
+ end
392
+ # rubocop:enable Metrics/BlockLength
393
+ end
394
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
395
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
396
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
397
+
398
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
399
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
400
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
401
+
402
+
403
+ # Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.
404
+ #
405
+ # @param [String] profile_id The unique OCID of the profile.
406
+ # @param [Hash] opts the optional parameters
407
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
408
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
409
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
410
+ # If you need to contact Oracle about a particular request, please provide the request ID.
411
+ #
412
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Profile Profile}
413
+ def get_profile(profile_id, opts = {})
414
+ logger.debug 'Calling operation OptimizerClient#get_profile.' if logger
415
+
416
+ raise "Missing the required parameter 'profile_id' when calling get_profile." if profile_id.nil?
417
+ raise "Parameter value for 'profile_id' must not be blank" if OCI::Internal::Util.blank_string?(profile_id)
418
+
419
+ path = '/profiles/{profileId}'.sub('{profileId}', profile_id.to_s)
420
+ operation_signing_strategy = :standard
421
+
422
+ # rubocop:disable Style/NegatedIf
423
+ # Query Params
424
+ query_params = {}
425
+
426
+ # Header Params
427
+ header_params = {}
428
+ header_params[:accept] = 'application/json'
429
+ header_params[:'content-type'] = 'application/json'
430
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
431
+ # rubocop:enable Style/NegatedIf
432
+
433
+ post_body = nil
434
+
435
+ # rubocop:disable Metrics/BlockLength
436
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_profile') do
437
+ @api_client.call_api(
438
+ :GET,
439
+ path,
440
+ endpoint,
441
+ header_params: header_params,
442
+ query_params: query_params,
443
+ operation_signing_strategy: operation_signing_strategy,
444
+ body: post_body,
445
+ return_type: 'OCI::Optimizer::Models::Profile'
446
+ )
447
+ end
448
+ # rubocop:enable Metrics/BlockLength
449
+ end
450
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
451
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
452
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
453
+
454
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
455
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
456
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
457
+
458
+
459
+ # Gets the recommendation for the specified OCID.
460
+ #
461
+ # @param [String] recommendation_id The unique OCID associated with the recommendation.
462
+ # @param [Hash] opts the optional parameters
463
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
464
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
465
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
466
+ # If you need to contact Oracle about a particular request, please provide the request ID.
467
+ #
468
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Recommendation Recommendation}
469
+ def get_recommendation(recommendation_id, opts = {})
470
+ logger.debug 'Calling operation OptimizerClient#get_recommendation.' if logger
471
+
472
+ raise "Missing the required parameter 'recommendation_id' when calling get_recommendation." if recommendation_id.nil?
473
+ raise "Parameter value for 'recommendation_id' must not be blank" if OCI::Internal::Util.blank_string?(recommendation_id)
474
+
475
+ path = '/recommendations/{recommendationId}'.sub('{recommendationId}', recommendation_id.to_s)
476
+ operation_signing_strategy = :standard
477
+
478
+ # rubocop:disable Style/NegatedIf
479
+ # Query Params
480
+ query_params = {}
481
+
482
+ # Header Params
483
+ header_params = {}
484
+ header_params[:accept] = 'application/json'
485
+ header_params[:'content-type'] = 'application/json'
486
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
487
+ # rubocop:enable Style/NegatedIf
488
+
489
+ post_body = nil
490
+
491
+ # rubocop:disable Metrics/BlockLength
492
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_recommendation') do
493
+ @api_client.call_api(
494
+ :GET,
495
+ path,
496
+ endpoint,
497
+ header_params: header_params,
498
+ query_params: query_params,
499
+ operation_signing_strategy: operation_signing_strategy,
500
+ body: post_body,
501
+ return_type: 'OCI::Optimizer::Models::Recommendation'
502
+ )
503
+ end
504
+ # rubocop:enable Metrics/BlockLength
505
+ end
506
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
507
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
508
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
509
+
510
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
511
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
512
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
513
+
514
+
515
+ # Gets the resource action that corresponds to the specified OCID.
516
+ #
517
+ # @param [String] resource_action_id The unique OCID associated with the resource action.
518
+ # @param [Hash] opts the optional parameters
519
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
520
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
521
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
522
+ # If you need to contact Oracle about a particular request, please provide the request ID.
523
+ #
524
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::ResourceAction ResourceAction}
525
+ def get_resource_action(resource_action_id, opts = {})
526
+ logger.debug 'Calling operation OptimizerClient#get_resource_action.' if logger
527
+
528
+ raise "Missing the required parameter 'resource_action_id' when calling get_resource_action." if resource_action_id.nil?
529
+ raise "Parameter value for 'resource_action_id' must not be blank" if OCI::Internal::Util.blank_string?(resource_action_id)
530
+
531
+ path = '/resourceActions/{resourceActionId}'.sub('{resourceActionId}', resource_action_id.to_s)
532
+ operation_signing_strategy = :standard
533
+
534
+ # rubocop:disable Style/NegatedIf
535
+ # Query Params
536
+ query_params = {}
537
+
538
+ # Header Params
539
+ header_params = {}
540
+ header_params[:accept] = 'application/json'
541
+ header_params[:'content-type'] = 'application/json'
542
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
543
+ # rubocop:enable Style/NegatedIf
544
+
545
+ post_body = nil
546
+
547
+ # rubocop:disable Metrics/BlockLength
548
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_resource_action') do
549
+ @api_client.call_api(
550
+ :GET,
551
+ path,
552
+ endpoint,
553
+ header_params: header_params,
554
+ query_params: query_params,
555
+ operation_signing_strategy: operation_signing_strategy,
556
+ body: post_body,
557
+ return_type: 'OCI::Optimizer::Models::ResourceAction'
558
+ )
559
+ end
560
+ # rubocop:enable Metrics/BlockLength
561
+ end
562
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
563
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
564
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
565
+
566
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
567
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
568
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
569
+
570
+
571
+ # Gets the status of the work request associated with the specified ID.
572
+ # @param [String] work_request_id The OCID of the work request.
573
+ # @param [Hash] opts the optional parameters
574
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
575
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
576
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
577
+ # If you need to contact Oracle about a particular request, please provide the request ID.
578
+ #
579
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::WorkRequest WorkRequest}
580
+ def get_work_request(work_request_id, opts = {})
581
+ logger.debug 'Calling operation OptimizerClient#get_work_request.' if logger
582
+
583
+ raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
584
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
585
+
586
+ path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
587
+ operation_signing_strategy = :standard
588
+
589
+ # rubocop:disable Style/NegatedIf
590
+ # Query Params
591
+ query_params = {}
592
+
593
+ # Header Params
594
+ header_params = {}
595
+ header_params[:accept] = 'application/json'
596
+ header_params[:'content-type'] = 'application/json'
597
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
598
+ # rubocop:enable Style/NegatedIf
599
+
600
+ post_body = nil
601
+
602
+ # rubocop:disable Metrics/BlockLength
603
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#get_work_request') do
604
+ @api_client.call_api(
605
+ :GET,
606
+ path,
607
+ endpoint,
608
+ header_params: header_params,
609
+ query_params: query_params,
610
+ operation_signing_strategy: operation_signing_strategy,
611
+ body: post_body,
612
+ return_type: 'OCI::Optimizer::Models::WorkRequest'
613
+ )
614
+ end
615
+ # rubocop:enable Metrics/BlockLength
616
+ end
617
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
618
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
619
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
620
+
621
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
622
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
623
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
624
+
625
+
626
+ # Lists the supported Cloud Advisor categories.
627
+ #
628
+ # @param [String] compartment_id The OCID of the compartment.
629
+ # @param [BOOLEAN] compartment_id_in_subtree When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
630
+ #
631
+ # Can only be set to true when performing ListCompartments on the tenancy (root compartment).
632
+ #
633
+ # @param [Hash] opts the optional parameters
634
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
635
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
636
+ # @option opts [String] :name Optional. A filter that returns results that match the name specified.
637
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
638
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
639
+ #
640
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
641
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
642
+ #
643
+ # Allowed values are: NAME, TIMECREATED
644
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
645
+ #
646
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
647
+ # If you need to contact Oracle about a particular request, please provide the request ID.
648
+ #
649
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::CategoryCollection CategoryCollection}
650
+ def list_categories(compartment_id, compartment_id_in_subtree, opts = {})
651
+ logger.debug 'Calling operation OptimizerClient#list_categories.' if logger
652
+
653
+ raise "Missing the required parameter 'compartment_id' when calling list_categories." if compartment_id.nil?
654
+ raise "Missing the required parameter 'compartment_id_in_subtree' when calling list_categories." if compartment_id_in_subtree.nil?
655
+
656
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
657
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
658
+ end
659
+
660
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
661
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
662
+ end
663
+
664
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
665
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
666
+ end
667
+
668
+ path = '/categories'
669
+ operation_signing_strategy = :standard
670
+
671
+ # rubocop:disable Style/NegatedIf
672
+ # Query Params
673
+ query_params = {}
674
+ query_params[:compartmentId] = compartment_id
675
+ query_params[:compartmentIdInSubtree] = compartment_id_in_subtree
676
+ query_params[:name] = opts[:name] if opts[:name]
677
+ query_params[:limit] = opts[:limit] if opts[:limit]
678
+ query_params[:page] = opts[:page] if opts[:page]
679
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
680
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
681
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
682
+
683
+ # Header Params
684
+ header_params = {}
685
+ header_params[:accept] = 'application/json'
686
+ header_params[:'content-type'] = 'application/json'
687
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
688
+ # rubocop:enable Style/NegatedIf
689
+
690
+ post_body = nil
691
+
692
+ # rubocop:disable Metrics/BlockLength
693
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_categories') do
694
+ @api_client.call_api(
695
+ :GET,
696
+ path,
697
+ endpoint,
698
+ header_params: header_params,
699
+ query_params: query_params,
700
+ operation_signing_strategy: operation_signing_strategy,
701
+ body: post_body,
702
+ return_type: 'OCI::Optimizer::Models::CategoryCollection'
703
+ )
704
+ end
705
+ # rubocop:enable Metrics/BlockLength
706
+ end
707
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
708
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
709
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
710
+
711
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
712
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
713
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
714
+
715
+
716
+ # Lists the Cloud Advisor enrollment statuses.
717
+ #
718
+ # @param [String] compartment_id The OCID of the compartment.
719
+ # @param [Hash] opts the optional parameters
720
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
721
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
722
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
723
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
724
+ #
725
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
726
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
727
+ #
728
+ # Allowed values are: NAME, TIMECREATED
729
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
730
+ #
731
+ # @option opts [String] :status A filter that returns results that match the Cloud Advisor enrollment status specified.
732
+ #
733
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
734
+ # If you need to contact Oracle about a particular request, please provide the request ID.
735
+ #
736
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::EnrollmentStatusCollection EnrollmentStatusCollection}
737
+ def list_enrollment_statuses(compartment_id, opts = {})
738
+ logger.debug 'Calling operation OptimizerClient#list_enrollment_statuses.' if logger
739
+
740
+ raise "Missing the required parameter 'compartment_id' when calling list_enrollment_statuses." if compartment_id.nil?
741
+
742
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
743
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
744
+ end
745
+
746
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
747
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
748
+ end
749
+
750
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
751
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
752
+ end
753
+
754
+ if opts[:status] && !OCI::Optimizer::Models::OPTIMIZER_ENROLLMENT_STATUS_ENUM.include?(opts[:status])
755
+ raise 'Invalid value for "status", must be one of the values in OCI::Optimizer::Models::OPTIMIZER_ENROLLMENT_STATUS_ENUM.'
756
+ end
757
+
758
+ path = '/enrollmentStatus'
759
+ operation_signing_strategy = :standard
760
+
761
+ # rubocop:disable Style/NegatedIf
762
+ # Query Params
763
+ query_params = {}
764
+ query_params[:compartmentId] = compartment_id
765
+ query_params[:limit] = opts[:limit] if opts[:limit]
766
+ query_params[:page] = opts[:page] if opts[:page]
767
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
768
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
769
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
770
+ query_params[:status] = opts[:status] if opts[:status]
771
+
772
+ # Header Params
773
+ header_params = {}
774
+ header_params[:accept] = 'application/json'
775
+ header_params[:'content-type'] = 'application/json'
776
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
777
+ # rubocop:enable Style/NegatedIf
778
+
779
+ post_body = nil
780
+
781
+ # rubocop:disable Metrics/BlockLength
782
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_enrollment_statuses') do
783
+ @api_client.call_api(
784
+ :GET,
785
+ path,
786
+ endpoint,
787
+ header_params: header_params,
788
+ query_params: query_params,
789
+ operation_signing_strategy: operation_signing_strategy,
790
+ body: post_body,
791
+ return_type: 'OCI::Optimizer::Models::EnrollmentStatusCollection'
792
+ )
793
+ end
794
+ # rubocop:enable Metrics/BlockLength
795
+ end
796
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
797
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
798
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
799
+
800
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
801
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
802
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
803
+
804
+
805
+ # Lists changes to the recommendations based on user activity.
806
+ # For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
807
+ #
808
+ # @param [String] compartment_id The OCID of the compartment.
809
+ # @param [BOOLEAN] compartment_id_in_subtree When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
810
+ #
811
+ # Can only be set to true when performing ListCompartments on the tenancy (root compartment).
812
+ #
813
+ # @param [Hash] opts the optional parameters
814
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
815
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
816
+ # @option opts [String] :name Optional. A filter that returns results that match the name specified.
817
+ # @option opts [String] :recommendation_name Optional. A filter that returns results that match the recommendation name specified.
818
+ # @option opts [String] :recommendation_id The unique OCID associated with the recommendation.
819
+ # @option opts [String] :resource_type Optional. A filter that returns results that match the resource type specified.
820
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
821
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
822
+ #
823
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
824
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
825
+ #
826
+ # Allowed values are: NAME, TIMECREATED
827
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
828
+ #
829
+ # @option opts [String] :status A filter that returns recommendations that match the status specified.
830
+ #
831
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
832
+ # If you need to contact Oracle about a particular request, please provide the request ID.
833
+ #
834
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::HistoryCollection HistoryCollection}
835
+ def list_histories(compartment_id, compartment_id_in_subtree, opts = {})
836
+ logger.debug 'Calling operation OptimizerClient#list_histories.' if logger
837
+
838
+ raise "Missing the required parameter 'compartment_id' when calling list_histories." if compartment_id.nil?
839
+ raise "Missing the required parameter 'compartment_id_in_subtree' when calling list_histories." if compartment_id_in_subtree.nil?
840
+
841
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
842
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
843
+ end
844
+
845
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
846
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
847
+ end
848
+
849
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
850
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
851
+ end
852
+
853
+ if opts[:status] && !OCI::Optimizer::Models::STATUS_ENUM.include?(opts[:status])
854
+ raise 'Invalid value for "status", must be one of the values in OCI::Optimizer::Models::STATUS_ENUM.'
855
+ end
856
+
857
+ path = '/histories'
858
+ operation_signing_strategy = :standard
859
+
860
+ # rubocop:disable Style/NegatedIf
861
+ # Query Params
862
+ query_params = {}
863
+ query_params[:compartmentId] = compartment_id
864
+ query_params[:compartmentIdInSubtree] = compartment_id_in_subtree
865
+ query_params[:name] = opts[:name] if opts[:name]
866
+ query_params[:recommendationName] = opts[:recommendation_name] if opts[:recommendation_name]
867
+ query_params[:recommendationId] = opts[:recommendation_id] if opts[:recommendation_id]
868
+ query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
869
+ query_params[:limit] = opts[:limit] if opts[:limit]
870
+ query_params[:page] = opts[:page] if opts[:page]
871
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
872
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
873
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
874
+ query_params[:status] = opts[:status] if opts[:status]
875
+
876
+ # Header Params
877
+ header_params = {}
878
+ header_params[:accept] = 'application/json'
879
+ header_params[:'content-type'] = 'application/json'
880
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
881
+ # rubocop:enable Style/NegatedIf
882
+
883
+ post_body = nil
884
+
885
+ # rubocop:disable Metrics/BlockLength
886
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_histories') do
887
+ @api_client.call_api(
888
+ :GET,
889
+ path,
890
+ endpoint,
891
+ header_params: header_params,
892
+ query_params: query_params,
893
+ operation_signing_strategy: operation_signing_strategy,
894
+ body: post_body,
895
+ return_type: 'OCI::Optimizer::Models::HistoryCollection'
896
+ )
897
+ end
898
+ # rubocop:enable Metrics/BlockLength
899
+ end
900
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
901
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
902
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
903
+
904
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
905
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
906
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
907
+
908
+
909
+ # Lists the existing profiles.
910
+ #
911
+ # @param [String] compartment_id The OCID of the compartment.
912
+ # @param [Hash] opts the optional parameters
913
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
914
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
915
+ # @option opts [String] :name Optional. A filter that returns results that match the name specified.
916
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
917
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
918
+ #
919
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
920
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
921
+ #
922
+ # Allowed values are: NAME, TIMECREATED
923
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
924
+ #
925
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
926
+ # If you need to contact Oracle about a particular request, please provide the request ID.
927
+ #
928
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::ProfileCollection ProfileCollection}
929
+ def list_profiles(compartment_id, opts = {})
930
+ logger.debug 'Calling operation OptimizerClient#list_profiles.' if logger
931
+
932
+ raise "Missing the required parameter 'compartment_id' when calling list_profiles." if compartment_id.nil?
933
+
934
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
935
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
936
+ end
937
+
938
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
939
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
940
+ end
941
+
942
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
943
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
944
+ end
945
+
946
+ path = '/profiles'
947
+ operation_signing_strategy = :standard
948
+
949
+ # rubocop:disable Style/NegatedIf
950
+ # Query Params
951
+ query_params = {}
952
+ query_params[:compartmentId] = compartment_id
953
+ query_params[:name] = opts[:name] if opts[:name]
954
+ query_params[:limit] = opts[:limit] if opts[:limit]
955
+ query_params[:page] = opts[:page] if opts[:page]
956
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
957
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
958
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
959
+
960
+ # Header Params
961
+ header_params = {}
962
+ header_params[:accept] = 'application/json'
963
+ header_params[:'content-type'] = 'application/json'
964
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
965
+ # rubocop:enable Style/NegatedIf
966
+
967
+ post_body = nil
968
+
969
+ # rubocop:disable Metrics/BlockLength
970
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_profiles') do
971
+ @api_client.call_api(
972
+ :GET,
973
+ path,
974
+ endpoint,
975
+ header_params: header_params,
976
+ query_params: query_params,
977
+ operation_signing_strategy: operation_signing_strategy,
978
+ body: post_body,
979
+ return_type: 'OCI::Optimizer::Models::ProfileCollection'
980
+ )
981
+ end
982
+ # rubocop:enable Metrics/BlockLength
983
+ end
984
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
985
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
986
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
987
+
988
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
989
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
990
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
991
+
992
+
993
+ # Lists the Cloud Advisor recommendations that are currently supported in the specified category.
994
+ #
995
+ # @param [String] compartment_id The OCID of the compartment.
996
+ # @param [BOOLEAN] compartment_id_in_subtree When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
997
+ #
998
+ # Can only be set to true when performing ListCompartments on the tenancy (root compartment).
999
+ #
1000
+ # @param [String] category_id The unique OCID associated with the category.
1001
+ # @param [Hash] opts the optional parameters
1002
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1003
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1004
+ # @option opts [String] :name Optional. A filter that returns results that match the name specified.
1005
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
1006
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1007
+ #
1008
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1009
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
1010
+ #
1011
+ # Allowed values are: NAME, TIMECREATED
1012
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
1013
+ #
1014
+ # @option opts [String] :status A filter that returns recommendations that match the status specified.
1015
+ #
1016
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1017
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1018
+ #
1019
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::RecommendationCollection RecommendationCollection}
1020
+ def list_recommendations(compartment_id, compartment_id_in_subtree, category_id, opts = {})
1021
+ logger.debug 'Calling operation OptimizerClient#list_recommendations.' if logger
1022
+
1023
+ raise "Missing the required parameter 'compartment_id' when calling list_recommendations." if compartment_id.nil?
1024
+ raise "Missing the required parameter 'compartment_id_in_subtree' when calling list_recommendations." if compartment_id_in_subtree.nil?
1025
+ raise "Missing the required parameter 'category_id' when calling list_recommendations." if category_id.nil?
1026
+
1027
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1028
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
1029
+ end
1030
+
1031
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
1032
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
1033
+ end
1034
+
1035
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1036
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
1037
+ end
1038
+
1039
+ if opts[:status] && !OCI::Optimizer::Models::STATUS_ENUM.include?(opts[:status])
1040
+ raise 'Invalid value for "status", must be one of the values in OCI::Optimizer::Models::STATUS_ENUM.'
1041
+ end
1042
+
1043
+ path = '/recommendations'
1044
+ operation_signing_strategy = :standard
1045
+
1046
+ # rubocop:disable Style/NegatedIf
1047
+ # Query Params
1048
+ query_params = {}
1049
+ query_params[:compartmentId] = compartment_id
1050
+ query_params[:compartmentIdInSubtree] = compartment_id_in_subtree
1051
+ query_params[:categoryId] = category_id
1052
+ query_params[:name] = opts[:name] if opts[:name]
1053
+ query_params[:limit] = opts[:limit] if opts[:limit]
1054
+ query_params[:page] = opts[:page] if opts[:page]
1055
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1056
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1057
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1058
+ query_params[:status] = opts[:status] if opts[:status]
1059
+
1060
+ # Header Params
1061
+ header_params = {}
1062
+ header_params[:accept] = 'application/json'
1063
+ header_params[:'content-type'] = 'application/json'
1064
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1065
+ # rubocop:enable Style/NegatedIf
1066
+
1067
+ post_body = nil
1068
+
1069
+ # rubocop:disable Metrics/BlockLength
1070
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_recommendations') do
1071
+ @api_client.call_api(
1072
+ :GET,
1073
+ path,
1074
+ endpoint,
1075
+ header_params: header_params,
1076
+ query_params: query_params,
1077
+ operation_signing_strategy: operation_signing_strategy,
1078
+ body: post_body,
1079
+ return_type: 'OCI::Optimizer::Models::RecommendationCollection'
1080
+ )
1081
+ end
1082
+ # rubocop:enable Metrics/BlockLength
1083
+ end
1084
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1085
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1086
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1087
+
1088
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1089
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1090
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1091
+
1092
+
1093
+ # Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
1094
+ #
1095
+ # @param [String] compartment_id The OCID of the compartment.
1096
+ # @param [BOOLEAN] compartment_id_in_subtree When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of `accessLevel`.
1097
+ #
1098
+ # Can only be set to true when performing ListCompartments on the tenancy (root compartment).
1099
+ #
1100
+ # @param [String] recommendation_id The unique OCID associated with the recommendation.
1101
+ # @param [Hash] opts the optional parameters
1102
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1103
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1104
+ # @option opts [String] :name Optional. A filter that returns results that match the name specified.
1105
+ # @option opts [String] :resource_type Optional. A filter that returns results that match the resource type specified.
1106
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
1107
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1108
+ #
1109
+ # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
1110
+ # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for NAME is ascending. The NAME sort order is case sensitive.
1111
+ #
1112
+ # Allowed values are: NAME, TIMECREATED
1113
+ # @option opts [String] :lifecycle_state A filter that returns results that match the lifecycle state specified.
1114
+ #
1115
+ # @option opts [String] :status A filter that returns recommendations that match the status specified.
1116
+ #
1117
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1118
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1119
+ #
1120
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::ResourceActionCollection ResourceActionCollection}
1121
+ def list_resource_actions(compartment_id, compartment_id_in_subtree, recommendation_id, opts = {})
1122
+ logger.debug 'Calling operation OptimizerClient#list_resource_actions.' if logger
1123
+
1124
+ raise "Missing the required parameter 'compartment_id' when calling list_resource_actions." if compartment_id.nil?
1125
+ raise "Missing the required parameter 'compartment_id_in_subtree' when calling list_resource_actions." if compartment_id_in_subtree.nil?
1126
+ raise "Missing the required parameter 'recommendation_id' when calling list_resource_actions." if recommendation_id.nil?
1127
+
1128
+ if opts[:sort_order] && !OCI::Optimizer::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1129
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Optimizer::Models::SORT_ORDER_ENUM.'
1130
+ end
1131
+
1132
+ if opts[:sort_by] && !%w[NAME TIMECREATED].include?(opts[:sort_by])
1133
+ raise 'Invalid value for "sort_by", must be one of NAME, TIMECREATED.'
1134
+ end
1135
+
1136
+ if opts[:lifecycle_state] && !OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1137
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Optimizer::Models::LIFECYCLE_STATE_ENUM.'
1138
+ end
1139
+
1140
+ if opts[:status] && !OCI::Optimizer::Models::STATUS_ENUM.include?(opts[:status])
1141
+ raise 'Invalid value for "status", must be one of the values in OCI::Optimizer::Models::STATUS_ENUM.'
1142
+ end
1143
+
1144
+ path = '/resourceActions'
1145
+ operation_signing_strategy = :standard
1146
+
1147
+ # rubocop:disable Style/NegatedIf
1148
+ # Query Params
1149
+ query_params = {}
1150
+ query_params[:compartmentId] = compartment_id
1151
+ query_params[:compartmentIdInSubtree] = compartment_id_in_subtree
1152
+ query_params[:recommendationId] = recommendation_id
1153
+ query_params[:name] = opts[:name] if opts[:name]
1154
+ query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
1155
+ query_params[:limit] = opts[:limit] if opts[:limit]
1156
+ query_params[:page] = opts[:page] if opts[:page]
1157
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1158
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1159
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1160
+ query_params[:status] = opts[:status] if opts[:status]
1161
+
1162
+ # Header Params
1163
+ header_params = {}
1164
+ header_params[:accept] = 'application/json'
1165
+ header_params[:'content-type'] = 'application/json'
1166
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1167
+ # rubocop:enable Style/NegatedIf
1168
+
1169
+ post_body = nil
1170
+
1171
+ # rubocop:disable Metrics/BlockLength
1172
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_resource_actions') do
1173
+ @api_client.call_api(
1174
+ :GET,
1175
+ path,
1176
+ endpoint,
1177
+ header_params: header_params,
1178
+ query_params: query_params,
1179
+ operation_signing_strategy: operation_signing_strategy,
1180
+ body: post_body,
1181
+ return_type: 'OCI::Optimizer::Models::ResourceActionCollection'
1182
+ )
1183
+ end
1184
+ # rubocop:enable Metrics/BlockLength
1185
+ end
1186
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1187
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1188
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1189
+
1190
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1191
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1192
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1193
+
1194
+
1195
+ # Lists errors associated with the specified work request.
1196
+ #
1197
+ # @param [String] work_request_id The OCID of the work request.
1198
+ # @param [Hash] opts the optional parameters
1199
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1200
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1201
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1202
+ #
1203
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
1204
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1205
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1206
+ #
1207
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
1208
+ def list_work_request_errors(work_request_id, opts = {})
1209
+ logger.debug 'Calling operation OptimizerClient#list_work_request_errors.' if logger
1210
+
1211
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
1212
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1213
+
1214
+ path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
1215
+ operation_signing_strategy = :standard
1216
+
1217
+ # rubocop:disable Style/NegatedIf
1218
+ # Query Params
1219
+ query_params = {}
1220
+ query_params[:page] = opts[:page] if opts[:page]
1221
+ query_params[:limit] = opts[:limit] if opts[:limit]
1222
+
1223
+ # Header Params
1224
+ header_params = {}
1225
+ header_params[:accept] = 'application/json'
1226
+ header_params[:'content-type'] = 'application/json'
1227
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1228
+ # rubocop:enable Style/NegatedIf
1229
+
1230
+ post_body = nil
1231
+
1232
+ # rubocop:disable Metrics/BlockLength
1233
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_work_request_errors') do
1234
+ @api_client.call_api(
1235
+ :GET,
1236
+ path,
1237
+ endpoint,
1238
+ header_params: header_params,
1239
+ query_params: query_params,
1240
+ operation_signing_strategy: operation_signing_strategy,
1241
+ body: post_body,
1242
+ return_type: 'OCI::Optimizer::Models::WorkRequestErrorCollection'
1243
+ )
1244
+ end
1245
+ # rubocop:enable Metrics/BlockLength
1246
+ end
1247
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1248
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1249
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1250
+
1251
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1252
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1253
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1254
+
1255
+
1256
+ # Lists the logs associated with the specified work request.
1257
+ #
1258
+ # @param [String] work_request_id The OCID of the work request.
1259
+ # @param [Hash] opts the optional parameters
1260
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1261
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1262
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1263
+ #
1264
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
1265
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1266
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1267
+ #
1268
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
1269
+ def list_work_request_logs(work_request_id, opts = {})
1270
+ logger.debug 'Calling operation OptimizerClient#list_work_request_logs.' if logger
1271
+
1272
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
1273
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1274
+
1275
+ path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
1276
+ operation_signing_strategy = :standard
1277
+
1278
+ # rubocop:disable Style/NegatedIf
1279
+ # Query Params
1280
+ query_params = {}
1281
+ query_params[:page] = opts[:page] if opts[:page]
1282
+ query_params[:limit] = opts[:limit] if opts[:limit]
1283
+
1284
+ # Header Params
1285
+ header_params = {}
1286
+ header_params[:accept] = 'application/json'
1287
+ header_params[:'content-type'] = 'application/json'
1288
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1289
+ # rubocop:enable Style/NegatedIf
1290
+
1291
+ post_body = nil
1292
+
1293
+ # rubocop:disable Metrics/BlockLength
1294
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_work_request_logs') do
1295
+ @api_client.call_api(
1296
+ :GET,
1297
+ path,
1298
+ endpoint,
1299
+ header_params: header_params,
1300
+ query_params: query_params,
1301
+ operation_signing_strategy: operation_signing_strategy,
1302
+ body: post_body,
1303
+ return_type: 'OCI::Optimizer::Models::WorkRequestLogEntryCollection'
1304
+ )
1305
+ end
1306
+ # rubocop:enable Metrics/BlockLength
1307
+ end
1308
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1309
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1310
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1311
+
1312
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1313
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1314
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1315
+
1316
+
1317
+ # Lists the work requests in the tenancy. The tenancy is the root compartment.
1318
+ #
1319
+ # @param [String] compartment_id The OCID of the compartment.
1320
+ # @param [Hash] opts the optional parameters
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
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] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1324
+ #
1325
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call. (default to 10)
1326
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1327
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1328
+ #
1329
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::WorkRequestCollection WorkRequestCollection}
1330
+ def list_work_requests(compartment_id, opts = {})
1331
+ logger.debug 'Calling operation OptimizerClient#list_work_requests.' if logger
1332
+
1333
+ raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
1334
+
1335
+ path = '/workRequests'
1336
+ operation_signing_strategy = :standard
1337
+
1338
+ # rubocop:disable Style/NegatedIf
1339
+ # Query Params
1340
+ query_params = {}
1341
+ query_params[:compartmentId] = compartment_id
1342
+ query_params[:page] = opts[:page] if opts[:page]
1343
+ query_params[:limit] = opts[:limit] if opts[:limit]
1344
+
1345
+ # Header Params
1346
+ header_params = {}
1347
+ header_params[:accept] = 'application/json'
1348
+ header_params[:'content-type'] = 'application/json'
1349
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1350
+ # rubocop:enable Style/NegatedIf
1351
+
1352
+ post_body = nil
1353
+
1354
+ # rubocop:disable Metrics/BlockLength
1355
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#list_work_requests') do
1356
+ @api_client.call_api(
1357
+ :GET,
1358
+ path,
1359
+ endpoint,
1360
+ header_params: header_params,
1361
+ query_params: query_params,
1362
+ operation_signing_strategy: operation_signing_strategy,
1363
+ body: post_body,
1364
+ return_type: 'OCI::Optimizer::Models::WorkRequestCollection'
1365
+ )
1366
+ end
1367
+ # rubocop:enable Metrics/BlockLength
1368
+ end
1369
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1370
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1371
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1372
+
1373
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1374
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1375
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1376
+
1377
+
1378
+ # Updates the enrollment status of the tenancy.
1379
+ #
1380
+ # @param [String] enrollment_status_id The unique OCID associated with the enrollment status.
1381
+ # @param [OCI::Optimizer::Models::UpdateEnrollmentStatusDetails] update_enrollment_status_details The request object for updating the enrollment status.
1382
+ # @param [Hash] opts the optional parameters
1383
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1384
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1385
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1386
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1387
+ #
1388
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1389
+ # for a resource, set the `if-match` parameter to the value of the
1390
+ # etag from a previous GET or POST response for that resource.
1391
+ # The resource will be updated or deleted only if the etag you
1392
+ # provide matches the resource's current etag value.
1393
+ #
1394
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::EnrollmentStatus EnrollmentStatus}
1395
+ def update_enrollment_status(enrollment_status_id, update_enrollment_status_details, opts = {})
1396
+ logger.debug 'Calling operation OptimizerClient#update_enrollment_status.' if logger
1397
+
1398
+ raise "Missing the required parameter 'enrollment_status_id' when calling update_enrollment_status." if enrollment_status_id.nil?
1399
+ raise "Missing the required parameter 'update_enrollment_status_details' when calling update_enrollment_status." if update_enrollment_status_details.nil?
1400
+ raise "Parameter value for 'enrollment_status_id' must not be blank" if OCI::Internal::Util.blank_string?(enrollment_status_id)
1401
+
1402
+ path = '/enrollmentStatus/{enrollmentStatusId}'.sub('{enrollmentStatusId}', enrollment_status_id.to_s)
1403
+ operation_signing_strategy = :standard
1404
+
1405
+ # rubocop:disable Style/NegatedIf
1406
+ # Query Params
1407
+ query_params = {}
1408
+
1409
+ # Header Params
1410
+ header_params = {}
1411
+ header_params[:accept] = 'application/json'
1412
+ header_params[:'content-type'] = 'application/json'
1413
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1414
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1415
+ # rubocop:enable Style/NegatedIf
1416
+
1417
+ post_body = @api_client.object_to_http_body(update_enrollment_status_details)
1418
+
1419
+ # rubocop:disable Metrics/BlockLength
1420
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#update_enrollment_status') do
1421
+ @api_client.call_api(
1422
+ :PUT,
1423
+ path,
1424
+ endpoint,
1425
+ header_params: header_params,
1426
+ query_params: query_params,
1427
+ operation_signing_strategy: operation_signing_strategy,
1428
+ body: post_body,
1429
+ return_type: 'OCI::Optimizer::Models::EnrollmentStatus'
1430
+ )
1431
+ end
1432
+ # rubocop:enable Metrics/BlockLength
1433
+ end
1434
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1435
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1436
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1437
+
1438
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1439
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1440
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1441
+
1442
+
1443
+ # Updates the specified profile. Uses the profile's OCID to determine which profile to update.
1444
+ #
1445
+ # @param [String] profile_id The unique OCID of the profile.
1446
+ # @param [OCI::Optimizer::Models::UpdateProfileDetails] update_profile_details The profile information to use for the update.
1447
+ # @param [Hash] opts the optional parameters
1448
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1449
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1450
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1451
+ # for a resource, set the `if-match` parameter to the value of the
1452
+ # etag from a previous GET or POST response for that resource.
1453
+ # The resource will be updated or deleted only if the etag you
1454
+ # provide matches the resource's current etag value.
1455
+ #
1456
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1457
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1458
+ #
1459
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Profile Profile}
1460
+ def update_profile(profile_id, update_profile_details, opts = {})
1461
+ logger.debug 'Calling operation OptimizerClient#update_profile.' if logger
1462
+
1463
+ raise "Missing the required parameter 'profile_id' when calling update_profile." if profile_id.nil?
1464
+ raise "Missing the required parameter 'update_profile_details' when calling update_profile." if update_profile_details.nil?
1465
+ raise "Parameter value for 'profile_id' must not be blank" if OCI::Internal::Util.blank_string?(profile_id)
1466
+
1467
+ path = '/profiles/{profileId}'.sub('{profileId}', profile_id.to_s)
1468
+ operation_signing_strategy = :standard
1469
+
1470
+ # rubocop:disable Style/NegatedIf
1471
+ # Query Params
1472
+ query_params = {}
1473
+
1474
+ # Header Params
1475
+ header_params = {}
1476
+ header_params[:accept] = 'application/json'
1477
+ header_params[:'content-type'] = 'application/json'
1478
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1479
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1480
+ # rubocop:enable Style/NegatedIf
1481
+
1482
+ post_body = @api_client.object_to_http_body(update_profile_details)
1483
+
1484
+ # rubocop:disable Metrics/BlockLength
1485
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#update_profile') do
1486
+ @api_client.call_api(
1487
+ :PUT,
1488
+ path,
1489
+ endpoint,
1490
+ header_params: header_params,
1491
+ query_params: query_params,
1492
+ operation_signing_strategy: operation_signing_strategy,
1493
+ body: post_body,
1494
+ return_type: 'OCI::Optimizer::Models::Profile'
1495
+ )
1496
+ end
1497
+ # rubocop:enable Metrics/BlockLength
1498
+ end
1499
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1500
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1501
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1502
+
1503
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1504
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1505
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1506
+
1507
+
1508
+ # Updates the recommendation that corresponds to the specified OCID.
1509
+ # Use this operation to implement the following actions:
1510
+ #
1511
+ # * Postpone recommendation
1512
+ # * Dismiss recommendation
1513
+ # * Reactivate recommendation
1514
+ #
1515
+ # @param [String] recommendation_id The unique OCID associated with the recommendation.
1516
+ # @param [OCI::Optimizer::Models::UpdateRecommendationDetails] update_recommendation_details The request object for udpating the recommendation details.
1517
+ # @param [Hash] opts the optional parameters
1518
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1519
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1520
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1521
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1522
+ #
1523
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1524
+ # for a resource, set the `if-match` parameter to the value of the
1525
+ # etag from a previous GET or POST response for that resource.
1526
+ # The resource will be updated or deleted only if the etag you
1527
+ # provide matches the resource's current etag value.
1528
+ #
1529
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::Recommendation Recommendation}
1530
+ def update_recommendation(recommendation_id, update_recommendation_details, opts = {})
1531
+ logger.debug 'Calling operation OptimizerClient#update_recommendation.' if logger
1532
+
1533
+ raise "Missing the required parameter 'recommendation_id' when calling update_recommendation." if recommendation_id.nil?
1534
+ raise "Missing the required parameter 'update_recommendation_details' when calling update_recommendation." if update_recommendation_details.nil?
1535
+ raise "Parameter value for 'recommendation_id' must not be blank" if OCI::Internal::Util.blank_string?(recommendation_id)
1536
+
1537
+ path = '/recommendations/{recommendationId}'.sub('{recommendationId}', recommendation_id.to_s)
1538
+ operation_signing_strategy = :standard
1539
+
1540
+ # rubocop:disable Style/NegatedIf
1541
+ # Query Params
1542
+ query_params = {}
1543
+
1544
+ # Header Params
1545
+ header_params = {}
1546
+ header_params[:accept] = 'application/json'
1547
+ header_params[:'content-type'] = 'application/json'
1548
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1549
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1550
+ # rubocop:enable Style/NegatedIf
1551
+
1552
+ post_body = @api_client.object_to_http_body(update_recommendation_details)
1553
+
1554
+ # rubocop:disable Metrics/BlockLength
1555
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#update_recommendation') do
1556
+ @api_client.call_api(
1557
+ :PUT,
1558
+ path,
1559
+ endpoint,
1560
+ header_params: header_params,
1561
+ query_params: query_params,
1562
+ operation_signing_strategy: operation_signing_strategy,
1563
+ body: post_body,
1564
+ return_type: 'OCI::Optimizer::Models::Recommendation'
1565
+ )
1566
+ end
1567
+ # rubocop:enable Metrics/BlockLength
1568
+ end
1569
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1570
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1571
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1572
+
1573
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1574
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1575
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1576
+
1577
+
1578
+ # Updates the resource action that corresponds to the specified OCID.
1579
+ # Use this operation to implement the following actions:
1580
+ #
1581
+ # * Postpone resource action
1582
+ # * Ignore resource action
1583
+ # * Reactivate resource action
1584
+ #
1585
+ # @param [String] resource_action_id The unique OCID associated with the resource action.
1586
+ # @param [OCI::Optimizer::Models::UpdateResourceActionDetails] update_resource_action_details The resource action information to be updated.
1587
+ # @param [Hash] opts the optional parameters
1588
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1589
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1590
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request.
1591
+ # If you need to contact Oracle about a particular request, please provide the request ID.
1592
+ #
1593
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1594
+ # for a resource, set the `if-match` parameter to the value of the
1595
+ # etag from a previous GET or POST response for that resource.
1596
+ # The resource will be updated or deleted only if the etag you
1597
+ # provide matches the resource's current etag value.
1598
+ #
1599
+ # @return [Response] A Response object with data of type {OCI::Optimizer::Models::ResourceAction ResourceAction}
1600
+ def update_resource_action(resource_action_id, update_resource_action_details, opts = {})
1601
+ logger.debug 'Calling operation OptimizerClient#update_resource_action.' if logger
1602
+
1603
+ raise "Missing the required parameter 'resource_action_id' when calling update_resource_action." if resource_action_id.nil?
1604
+ raise "Missing the required parameter 'update_resource_action_details' when calling update_resource_action." if update_resource_action_details.nil?
1605
+ raise "Parameter value for 'resource_action_id' must not be blank" if OCI::Internal::Util.blank_string?(resource_action_id)
1606
+
1607
+ path = '/resourceActions/{resourceActionId}'.sub('{resourceActionId}', resource_action_id.to_s)
1608
+ operation_signing_strategy = :standard
1609
+
1610
+ # rubocop:disable Style/NegatedIf
1611
+ # Query Params
1612
+ query_params = {}
1613
+
1614
+ # Header Params
1615
+ header_params = {}
1616
+ header_params[:accept] = 'application/json'
1617
+ header_params[:'content-type'] = 'application/json'
1618
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1619
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1620
+ # rubocop:enable Style/NegatedIf
1621
+
1622
+ post_body = @api_client.object_to_http_body(update_resource_action_details)
1623
+
1624
+ # rubocop:disable Metrics/BlockLength
1625
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OptimizerClient#update_resource_action') do
1626
+ @api_client.call_api(
1627
+ :PUT,
1628
+ path,
1629
+ endpoint,
1630
+ header_params: header_params,
1631
+ query_params: query_params,
1632
+ operation_signing_strategy: operation_signing_strategy,
1633
+ body: post_body,
1634
+ return_type: 'OCI::Optimizer::Models::ResourceAction'
1635
+ )
1636
+ end
1637
+ # rubocop:enable Metrics/BlockLength
1638
+ end
1639
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1640
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1641
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1642
+
1643
+ private
1644
+
1645
+ def applicable_retry_config(opts = {})
1646
+ return @retry_config unless opts.key?(:retry_config)
1647
+
1648
+ opts[:retry_config]
1649
+ end
1650
+ end
1651
+ end
1652
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength