oci 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1785) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -9
  3. data/lib/oci.rb +12 -1
  4. data/lib/oci/analytics/analytics.rb +1 -1
  5. data/lib/oci/analytics/analytics_client.rb +1 -1
  6. data/lib/oci/analytics/analytics_client_composite_operations.rb +1 -1
  7. data/lib/oci/analytics/models/analytics_instance.rb +1 -1
  8. data/lib/oci/analytics/models/analytics_instance_lifecycle_state.rb +1 -1
  9. data/lib/oci/analytics/models/analytics_instance_summary.rb +1 -1
  10. data/lib/oci/analytics/models/capacity.rb +1 -1
  11. data/lib/oci/analytics/models/capacity_type.rb +1 -1
  12. data/lib/oci/analytics/models/change_compartment_details.rb +1 -1
  13. data/lib/oci/analytics/models/create_analytics_instance_details.rb +1 -1
  14. data/lib/oci/analytics/models/feature_set.rb +1 -1
  15. data/lib/oci/analytics/models/license_type.rb +1 -1
  16. data/lib/oci/analytics/models/scale_analytics_instance_details.rb +1 -1
  17. data/lib/oci/analytics/models/sort_by.rb +1 -1
  18. data/lib/oci/analytics/models/sort_order.rb +1 -1
  19. data/lib/oci/analytics/models/update_analytics_instance_details.rb +1 -1
  20. data/lib/oci/analytics/models/work_request.rb +1 -1
  21. data/lib/oci/analytics/models/work_request_action_result.rb +1 -1
  22. data/lib/oci/analytics/models/work_request_error.rb +1 -1
  23. data/lib/oci/analytics/models/work_request_log.rb +1 -1
  24. data/lib/oci/analytics/models/work_request_operation_type.rb +1 -1
  25. data/lib/oci/analytics/models/work_request_resource.rb +1 -1
  26. data/lib/oci/analytics/models/work_request_resource_type.rb +1 -1
  27. data/lib/oci/analytics/models/work_request_sort_by.rb +1 -1
  28. data/lib/oci/analytics/models/work_request_status.rb +1 -1
  29. data/lib/oci/analytics/models/work_request_summary.rb +1 -1
  30. data/lib/oci/announcements_service/announcement_client.rb +1 -1
  31. data/lib/oci/announcements_service/announcement_client_composite_operations.rb +1 -1
  32. data/lib/oci/announcements_service/announcements_service.rb +1 -1
  33. data/lib/oci/announcements_service/models/affected_resource.rb +1 -1
  34. data/lib/oci/announcements_service/models/announcement.rb +1 -1
  35. data/lib/oci/announcements_service/models/announcement_summary.rb +1 -1
  36. data/lib/oci/announcements_service/models/announcement_user_status_details.rb +1 -1
  37. data/lib/oci/announcements_service/models/announcements_collection.rb +1 -1
  38. data/lib/oci/announcements_service/models/base_announcement.rb +1 -1
  39. data/lib/oci/api_client.rb +3 -3
  40. data/lib/oci/api_client_proxy_settings.rb +1 -1
  41. data/lib/oci/apigateway/apigateway.rb +62 -0
  42. data/lib/oci/apigateway/deployment_client.rb +512 -0
  43. data/lib/oci/apigateway/deployment_client_composite_operations.rb +222 -0
  44. data/lib/oci/apigateway/gateway_client.rb +510 -0
  45. data/lib/oci/apigateway/gateway_client_composite_operations.rb +222 -0
  46. data/lib/oci/apigateway/models/access_log_policy.rb +156 -0
  47. data/lib/oci/apigateway/models/anonymous_route_authorization_policy.rb +146 -0
  48. data/lib/oci/apigateway/models/any_of_route_authorization_policy.rb +164 -0
  49. data/lib/oci/apigateway/models/api_specification.rb +175 -0
  50. data/lib/oci/apigateway/models/api_specification_logging_policies.rb +166 -0
  51. data/lib/oci/apigateway/models/api_specification_request_policies.rb +170 -0
  52. data/lib/oci/apigateway/models/api_specification_route.rb +232 -0
  53. data/lib/oci/apigateway/models/api_specification_route_backend.rb +189 -0
  54. data/lib/oci/apigateway/models/api_specification_route_request_policies.rb +158 -0
  55. data/lib/oci/apigateway/models/authentication_only_route_authorization_policy.rb +145 -0
  56. data/lib/oci/apigateway/models/authentication_policy.rb +202 -0
  57. data/lib/oci/apigateway/models/change_deployment_compartment_details.rb +155 -0
  58. data/lib/oci/apigateway/models/change_gateway_compartment_details.rb +155 -0
  59. data/lib/oci/apigateway/models/cors_policy.rb +239 -0
  60. data/lib/oci/apigateway/models/create_deployment_details.rb +254 -0
  61. data/lib/oci/apigateway/models/create_gateway_details.rb +241 -0
  62. data/lib/oci/apigateway/models/custom_authentication_policy.rb +196 -0
  63. data/lib/oci/apigateway/models/deployment.rb +361 -0
  64. data/lib/oci/apigateway/models/deployment_collection.rb +149 -0
  65. data/lib/oci/apigateway/models/deployment_summary.rb +324 -0
  66. data/lib/oci/apigateway/models/execution_log_policy.rb +195 -0
  67. data/lib/oci/apigateway/models/gateway.rb +366 -0
  68. data/lib/oci/apigateway/models/gateway_collection.rb +149 -0
  69. data/lib/oci/apigateway/models/gateway_summary.rb +321 -0
  70. data/lib/oci/{oce/models/delete_oce_instance_details.rb → apigateway/models/header_field_specification.rb} +20 -14
  71. data/lib/oci/apigateway/models/http_backend.rb +226 -0
  72. data/lib/oci/apigateway/models/oracle_function_backend.rb +163 -0
  73. data/lib/oci/apigateway/models/rate_limiting_policy.rb +187 -0
  74. data/lib/oci/apigateway/models/route_authorization_policy.rb +195 -0
  75. data/lib/oci/apigateway/models/stock_response_backend.rb +178 -0
  76. data/lib/oci/apigateway/models/update_deployment_details.rb +204 -0
  77. data/lib/oci/apigateway/models/update_gateway_details.rb +195 -0
  78. data/lib/oci/apigateway/models/work_request.rb +308 -0
  79. data/lib/oci/apigateway/models/work_request_collection.rb +149 -0
  80. data/lib/oci/apigateway/models/work_request_error.rb +172 -0
  81. data/lib/oci/apigateway/models/work_request_error_collection.rb +149 -0
  82. data/lib/oci/apigateway/models/work_request_log.rb +159 -0
  83. data/lib/oci/apigateway/models/work_request_log_collection.rb +149 -0
  84. data/lib/oci/apigateway/models/work_request_resource.rb +219 -0
  85. data/lib/oci/apigateway/models/work_request_summary.rb +256 -0
  86. data/lib/oci/apigateway/util.rb +2 -0
  87. data/lib/oci/apigateway/work_requests_client.rb +467 -0
  88. data/lib/oci/apigateway/work_requests_client_composite_operations.rb +24 -0
  89. data/lib/oci/application_migration/application_migration.rb +56 -0
  90. data/lib/oci/application_migration/application_migration_client.rb +1388 -0
  91. data/lib/oci/application_migration/application_migration_client_composite_operations.rb +24 -0
  92. data/lib/oci/application_migration/models/authorization_details.rb +179 -0
  93. data/lib/oci/application_migration/models/change_compartment_details.rb +155 -0
  94. data/lib/oci/application_migration/models/configuration_field.rb +224 -0
  95. data/lib/oci/application_migration/models/create_migration_details.rb +283 -0
  96. data/lib/oci/application_migration/models/create_source_details.rb +239 -0
  97. data/lib/oci/application_migration/models/discovery_details.rb +187 -0
  98. data/lib/oci/application_migration/models/ics_discovery_details.rb +176 -0
  99. data/lib/oci/application_migration/models/internal_authorization_details.rb +168 -0
  100. data/lib/oci/application_migration/models/internal_source_details.rb +162 -0
  101. data/lib/oci/application_migration/models/jcs_discovery_details.rb +176 -0
  102. data/lib/oci/application_migration/models/migration.rb +373 -0
  103. data/lib/oci/application_migration/models/migration_lifecycle_states.rb +15 -0
  104. data/lib/oci/application_migration/models/migration_states.rb +15 -0
  105. data/lib/oci/application_migration/models/migration_summary.rb +343 -0
  106. data/lib/oci/application_migration/models/migration_types.rb +14 -0
  107. data/lib/oci/application_migration/models/oac_discovery_details.rb +176 -0
  108. data/lib/oci/application_migration/models/ocic_authorization_details.rb +168 -0
  109. data/lib/oci/application_migration/models/ocic_source_details.rb +172 -0
  110. data/lib/oci/application_migration/models/oic_discovery_details.rb +176 -0
  111. data/lib/oci/application_migration/models/operation_status.rb +14 -0
  112. data/lib/oci/application_migration/models/operation_types.rb +19 -0
  113. data/lib/oci/application_migration/models/pcs_discovery_details.rb +176 -0
  114. data/lib/oci/application_migration/models/soacs_discovery_details.rb +176 -0
  115. data/lib/oci/application_migration/models/sort_orders.rb +10 -0
  116. data/lib/oci/application_migration/models/source.rb +277 -0
  117. data/lib/oci/application_migration/models/source_application.rb +211 -0
  118. data/lib/oci/application_migration/models/source_application_summary.rb +218 -0
  119. data/lib/oci/application_migration/models/source_details.rb +186 -0
  120. data/lib/oci/application_migration/models/source_lifecycle_states.rb +14 -0
  121. data/lib/oci/application_migration/models/source_summary.rb +294 -0
  122. data/lib/oci/application_migration/models/source_types.rb +10 -0
  123. data/lib/oci/application_migration/models/update_migration_details.rb +239 -0
  124. data/lib/oci/application_migration/models/update_source_details.rb +223 -0
  125. data/lib/oci/application_migration/models/work_request.rb +257 -0
  126. data/lib/oci/application_migration/models/work_request_error.rb +170 -0
  127. data/lib/oci/application_migration/models/work_request_log_entry.rb +159 -0
  128. data/lib/oci/application_migration/models/work_request_resource.rb +217 -0
  129. data/lib/oci/application_migration/models/work_request_summary.rb +250 -0
  130. data/lib/oci/application_migration/util.rb +1 -0
  131. data/lib/oci/audit/audit.rb +1 -1
  132. data/lib/oci/audit/audit_client.rb +1 -1
  133. data/lib/oci/audit/audit_client_composite_operations.rb +1 -1
  134. data/lib/oci/audit/models/audit_event.rb +1 -1
  135. data/lib/oci/audit/models/configuration.rb +1 -1
  136. data/lib/oci/audit/models/data.rb +1 -1
  137. data/lib/oci/audit/models/identity.rb +1 -1
  138. data/lib/oci/audit/models/request.rb +1 -1
  139. data/lib/oci/audit/models/response.rb +1 -1
  140. data/lib/oci/audit/models/state_change.rb +1 -1
  141. data/lib/oci/audit/models/update_configuration_details.rb +1 -1
  142. data/lib/oci/auth/federation_client.rb +4 -2
  143. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -2
  144. data/lib/oci/autoscaling/auto_scaling_client.rb +1 -1
  145. data/lib/oci/autoscaling/auto_scaling_client_composite_operations.rb +1 -1
  146. data/lib/oci/autoscaling/autoscaling.rb +1 -1
  147. data/lib/oci/autoscaling/models/action.rb +1 -1
  148. data/lib/oci/autoscaling/models/auto_scaling_configuration.rb +1 -1
  149. data/lib/oci/autoscaling/models/auto_scaling_configuration_summary.rb +1 -1
  150. data/lib/oci/autoscaling/models/auto_scaling_policy.rb +1 -1
  151. data/lib/oci/autoscaling/models/auto_scaling_policy_summary.rb +1 -1
  152. data/lib/oci/autoscaling/models/capacity.rb +1 -1
  153. data/lib/oci/autoscaling/models/change_auto_scaling_compartment_details.rb +1 -1
  154. data/lib/oci/autoscaling/models/condition.rb +1 -1
  155. data/lib/oci/autoscaling/models/create_auto_scaling_configuration_details.rb +1 -1
  156. data/lib/oci/autoscaling/models/create_auto_scaling_policy_details.rb +1 -1
  157. data/lib/oci/autoscaling/models/create_condition_details.rb +1 -1
  158. data/lib/oci/autoscaling/models/create_threshold_policy_details.rb +1 -1
  159. data/lib/oci/autoscaling/models/instance_pool_resource.rb +1 -1
  160. data/lib/oci/autoscaling/models/metric.rb +1 -1
  161. data/lib/oci/autoscaling/models/resource.rb +1 -1
  162. data/lib/oci/autoscaling/models/threshold.rb +1 -1
  163. data/lib/oci/autoscaling/models/threshold_policy.rb +1 -1
  164. data/lib/oci/autoscaling/models/update_auto_scaling_configuration_details.rb +1 -1
  165. data/lib/oci/autoscaling/models/update_auto_scaling_policy_details.rb +1 -1
  166. data/lib/oci/autoscaling/models/update_condition_details.rb +1 -1
  167. data/lib/oci/autoscaling/models/update_threshold_policy_details.rb +1 -1
  168. data/lib/oci/base_signer.rb +1 -1
  169. data/lib/oci/bds/bds.rb +44 -0
  170. data/lib/oci/bds/bds_client.rb +1046 -0
  171. data/lib/oci/bds/bds_client_composite_operations.rb +422 -0
  172. data/lib/oci/bds/models/action_types.rb +13 -0
  173. data/lib/oci/bds/models/add_block_storage_details.rb +169 -0
  174. data/lib/oci/bds/models/add_cloud_sql_details.rb +179 -0
  175. data/lib/oci/bds/models/add_worker_nodes_details.rb +167 -0
  176. data/lib/oci/bds/models/bds_instance.rb +435 -0
  177. data/lib/oci/bds/models/bds_instance_summary.rb +309 -0
  178. data/lib/oci/bds/models/change_bds_instance_compartment_details.rb +153 -0
  179. data/lib/oci/bds/models/cloud_sql_details.rb +211 -0
  180. data/lib/oci/bds/models/cluster_details.rb +239 -0
  181. data/lib/oci/bds/models/create_bds_instance_details.rb +297 -0
  182. data/lib/oci/bds/models/create_node_details.rb +193 -0
  183. data/lib/oci/bds/models/default_error.rb +159 -0
  184. data/lib/oci/bds/models/kerberos_details.rb +167 -0
  185. data/lib/oci/bds/models/network_config.rb +167 -0
  186. data/lib/oci/bds/models/node.rb +389 -0
  187. data/lib/oci/bds/models/operation_status.rb +14 -0
  188. data/lib/oci/bds/models/operation_types.rb +16 -0
  189. data/lib/oci/bds/models/remove_cloud_sql_details.rb +153 -0
  190. data/lib/oci/bds/models/sort_orders.rb +10 -0
  191. data/lib/oci/bds/models/update_bds_instance_details.rb +185 -0
  192. data/lib/oci/bds/models/volume_attachment_detail.rb +167 -0
  193. data/lib/oci/bds/models/work_request.rb +311 -0
  194. data/lib/oci/bds/models/work_request_error.rb +172 -0
  195. data/lib/oci/bds/models/work_request_log_entry.rb +159 -0
  196. data/lib/oci/bds/models/work_request_resource.rb +218 -0
  197. data/lib/oci/bds/util.rb +2 -0
  198. data/lib/oci/budget/budget.rb +1 -1
  199. data/lib/oci/budget/budget_client.rb +10 -12
  200. data/lib/oci/budget/budget_client_composite_operations.rb +1 -1
  201. data/lib/oci/budget/models/alert_rule.rb +1 -1
  202. data/lib/oci/budget/models/alert_rule_summary.rb +2 -2
  203. data/lib/oci/budget/models/alert_type.rb +1 -1
  204. data/lib/oci/budget/models/budget.rb +2 -2
  205. data/lib/oci/budget/models/budget_summary.rb +2 -2
  206. data/lib/oci/budget/models/create_alert_rule_details.rb +2 -2
  207. data/lib/oci/budget/models/create_budget_details.rb +2 -2
  208. data/lib/oci/budget/models/lifecycle_state.rb +1 -1
  209. data/lib/oci/budget/models/reset_period.rb +1 -1
  210. data/lib/oci/budget/models/sort_by.rb +1 -1
  211. data/lib/oci/budget/models/sort_order.rb +1 -1
  212. data/lib/oci/budget/models/target_type.rb +1 -1
  213. data/lib/oci/budget/models/threshold_type.rb +1 -1
  214. data/lib/oci/budget/models/update_alert_rule_details.rb +2 -2
  215. data/lib/oci/budget/models/update_budget_details.rb +1 -1
  216. data/lib/oci/config.rb +1 -1
  217. data/lib/oci/config_file_loader.rb +1 -1
  218. data/lib/oci/container_engine/container_engine.rb +8 -1
  219. data/lib/oci/container_engine/container_engine_client.rb +6 -2
  220. data/lib/oci/container_engine/container_engine_client_composite_operations.rb +1 -1
  221. data/lib/oci/container_engine/models/add_on_options.rb +1 -1
  222. data/lib/oci/container_engine/models/admission_controller_options.rb +155 -0
  223. data/lib/oci/container_engine/models/cluster.rb +1 -1
  224. data/lib/oci/container_engine/models/cluster_create_options.rb +19 -5
  225. data/lib/oci/container_engine/models/cluster_endpoints.rb +1 -1
  226. data/lib/oci/container_engine/models/cluster_lifecycle_state.rb +1 -1
  227. data/lib/oci/container_engine/models/cluster_metadata.rb +1 -1
  228. data/lib/oci/container_engine/models/cluster_options.rb +1 -1
  229. data/lib/oci/container_engine/models/cluster_summary.rb +1 -1
  230. data/lib/oci/container_engine/models/create_cluster_details.rb +1 -1
  231. data/lib/oci/container_engine/models/create_cluster_kubeconfig_content_details.rb +5 -6
  232. data/lib/oci/container_engine/models/create_node_pool_details.rb +21 -3
  233. data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +1 -1
  234. data/lib/oci/container_engine/models/key_value.rb +1 -1
  235. data/lib/oci/container_engine/models/kubernetes_network_config.rb +1 -1
  236. data/lib/oci/container_engine/models/node.rb +30 -2
  237. data/lib/oci/container_engine/models/node_error.rb +1 -1
  238. data/lib/oci/container_engine/models/node_pool.rb +20 -4
  239. data/lib/oci/container_engine/models/node_pool_node_config_details.rb +1 -1
  240. data/lib/oci/container_engine/models/node_pool_options.rb +24 -11
  241. data/lib/oci/container_engine/models/node_pool_placement_config_details.rb +1 -1
  242. data/lib/oci/container_engine/models/node_pool_summary.rb +20 -4
  243. data/lib/oci/{database/models/autonomous_exadata_infrastructure_maintenance_window.rb → container_engine/models/node_source_details.rb} +37 -40
  244. data/lib/oci/container_engine/models/node_source_option.rb +205 -0
  245. data/lib/oci/container_engine/models/node_source_type.rb +9 -0
  246. data/lib/oci/container_engine/models/node_source_via_image_details.rb +161 -0
  247. data/lib/oci/container_engine/models/node_source_via_image_option.rb +166 -0
  248. data/lib/oci/container_engine/models/sort_order.rb +1 -1
  249. data/lib/oci/container_engine/models/update_cluster_details.rb +14 -5
  250. data/lib/oci/container_engine/models/update_cluster_options_details.rb +153 -0
  251. data/lib/oci/container_engine/models/update_node_pool_details.rb +1 -1
  252. data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +1 -1
  253. data/lib/oci/container_engine/models/work_request.rb +1 -1
  254. data/lib/oci/container_engine/models/work_request_error.rb +1 -1
  255. data/lib/oci/container_engine/models/work_request_log_entry.rb +1 -1
  256. data/lib/oci/container_engine/models/work_request_operation_type.rb +1 -1
  257. data/lib/oci/container_engine/models/work_request_resource.rb +1 -1
  258. data/lib/oci/container_engine/models/work_request_status.rb +1 -1
  259. data/lib/oci/container_engine/models/work_request_summary.rb +1 -1
  260. data/lib/oci/core/blockstorage_client.rb +110 -24
  261. data/lib/oci/core/blockstorage_client_composite_operations.rb +41 -1
  262. data/lib/oci/core/compute_client.rb +12 -11
  263. data/lib/oci/core/compute_client_composite_operations.rb +1 -1
  264. data/lib/oci/core/compute_management_client.rb +39 -26
  265. data/lib/oci/core/compute_management_client_composite_operations.rb +11 -11
  266. data/lib/oci/core/core.rb +10 -1
  267. data/lib/oci/core/models/add_network_security_group_security_rules_details.rb +1 -1
  268. data/lib/oci/core/models/add_security_rule_details.rb +5 -3
  269. data/lib/oci/core/models/added_network_security_group_security_rules.rb +1 -1
  270. data/lib/oci/core/models/app_catalog_listing.rb +1 -1
  271. data/lib/oci/core/models/app_catalog_listing_resource_version.rb +1 -1
  272. data/lib/oci/core/models/app_catalog_listing_resource_version_agreements.rb +1 -1
  273. data/lib/oci/core/models/app_catalog_listing_resource_version_summary.rb +1 -1
  274. data/lib/oci/core/models/app_catalog_listing_summary.rb +1 -1
  275. data/lib/oci/core/models/app_catalog_subscription.rb +1 -1
  276. data/lib/oci/core/models/app_catalog_subscription_summary.rb +1 -1
  277. data/lib/oci/core/models/attach_boot_volume_details.rb +1 -1
  278. data/lib/oci/core/models/attach_emulated_volume_details.rb +6 -2
  279. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +6 -2
  280. data/lib/oci/core/models/attach_load_balancer_details.rb +3 -2
  281. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +6 -2
  282. data/lib/oci/core/models/attach_service_determined_volume_details.rb +6 -2
  283. data/lib/oci/core/models/attach_vnic_details.rb +1 -1
  284. data/lib/oci/core/models/attach_volume_details.rb +20 -2
  285. data/lib/oci/core/models/bgp_session_info.rb +1 -1
  286. data/lib/oci/core/models/boot_volume.rb +26 -3
  287. data/lib/oci/core/models/boot_volume_attachment.rb +1 -1
  288. data/lib/oci/core/models/boot_volume_backup.rb +17 -3
  289. data/lib/oci/core/models/boot_volume_kms_key.rb +3 -3
  290. data/lib/oci/core/models/boot_volume_source_details.rb +1 -1
  291. data/lib/oci/core/models/boot_volume_source_from_boot_volume_backup_details.rb +1 -1
  292. data/lib/oci/core/models/boot_volume_source_from_boot_volume_details.rb +1 -1
  293. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +1 -1
  294. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +1 -1
  295. data/lib/oci/core/models/capture_console_history_details.rb +1 -1
  296. data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +1 -1
  297. data/lib/oci/core/models/change_boot_volume_compartment_details.rb +1 -1
  298. data/lib/oci/core/models/change_cluster_network_compartment_details.rb +3 -3
  299. data/lib/oci/core/models/change_cpe_compartment_details.rb +1 -1
  300. data/lib/oci/core/models/change_cross_connect_compartment_details.rb +1 -1
  301. data/lib/oci/core/models/change_cross_connect_group_compartment_details.rb +1 -1
  302. data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +1 -1
  303. data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +1 -1
  304. data/lib/oci/core/models/change_drg_compartment_details.rb +1 -1
  305. data/lib/oci/core/models/change_image_compartment_details.rb +1 -1
  306. data/lib/oci/core/models/change_instance_compartment_details.rb +1 -1
  307. data/lib/oci/core/models/change_instance_configuration_compartment_details.rb +1 -1
  308. data/lib/oci/core/models/change_instance_pool_compartment_details.rb +1 -1
  309. data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +1 -1
  310. data/lib/oci/core/models/change_ip_sec_connection_compartment_details.rb +1 -1
  311. data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +1 -1
  312. data/lib/oci/core/models/change_nat_gateway_compartment_details.rb +1 -1
  313. data/lib/oci/core/models/change_network_security_group_compartment_details.rb +1 -1
  314. data/lib/oci/core/models/change_public_ip_compartment_details.rb +1 -1
  315. data/lib/oci/core/models/change_remote_peering_connection_compartment_details.rb +1 -1
  316. data/lib/oci/core/models/change_route_table_compartment_details.rb +1 -1
  317. data/lib/oci/core/models/change_security_list_compartment_details.rb +1 -1
  318. data/lib/oci/core/models/change_service_gateway_compartment_details.rb +1 -1
  319. data/lib/oci/core/models/change_subnet_compartment_details.rb +1 -1
  320. data/lib/oci/core/models/change_vcn_compartment_details.rb +1 -1
  321. data/lib/oci/core/models/change_virtual_circuit_compartment_details.rb +1 -1
  322. data/lib/oci/core/models/change_volume_backup_compartment_details.rb +1 -1
  323. data/lib/oci/core/models/change_volume_compartment_details.rb +1 -1
  324. data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +1 -1
  325. data/lib/oci/core/models/change_volume_group_compartment_details.rb +1 -1
  326. data/lib/oci/core/models/cluster_network.rb +16 -7
  327. data/lib/oci/core/models/cluster_network_placement_configuration_details.rb +5 -2
  328. data/lib/oci/core/models/cluster_network_summary.rb +10 -5
  329. data/lib/oci/core/models/compute_instance_details.rb +1 -1
  330. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +1 -1
  331. data/lib/oci/core/models/connect_remote_peering_connections_details.rb +1 -1
  332. data/lib/oci/core/models/console_history.rb +1 -1
  333. data/lib/oci/core/models/copy_boot_volume_backup_details.rb +194 -0
  334. data/lib/oci/core/models/copy_volume_backup_details.rb +2 -2
  335. data/lib/oci/core/models/cpe.rb +30 -2
  336. data/lib/oci/core/models/cpe_device_config_answer.rb +165 -0
  337. data/lib/oci/core/models/cpe_device_config_question.rb +180 -0
  338. data/lib/oci/core/models/cpe_device_info.rb +163 -0
  339. data/lib/oci/core/models/cpe_device_shape_detail.rb +203 -0
  340. data/lib/oci/core/models/cpe_device_shape_summary.rb +167 -0
  341. data/lib/oci/core/models/create_app_catalog_subscription_details.rb +7 -7
  342. data/lib/oci/core/models/create_boot_volume_backup_details.rb +1 -1
  343. data/lib/oci/core/models/create_boot_volume_details.rb +28 -3
  344. data/lib/oci/core/models/create_cluster_network_details.rb +13 -6
  345. data/lib/oci/core/models/create_cluster_network_instance_pool_details.rb +10 -3
  346. data/lib/oci/core/models/create_cpe_details.rb +31 -5
  347. data/lib/oci/core/models/create_cross_connect_details.rb +1 -1
  348. data/lib/oci/core/models/create_cross_connect_group_details.rb +1 -1
  349. data/lib/oci/core/models/create_dedicated_vm_host_details.rb +1 -1
  350. data/lib/oci/core/models/create_dhcp_details.rb +1 -1
  351. data/lib/oci/core/models/create_drg_attachment_details.rb +1 -1
  352. data/lib/oci/core/models/create_drg_details.rb +1 -1
  353. data/lib/oci/core/models/create_image_details.rb +1 -1
  354. data/lib/oci/core/models/create_instance_configuration_base.rb +1 -1
  355. data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
  356. data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +1 -1
  357. data/lib/oci/core/models/create_instance_console_connection_details.rb +1 -1
  358. data/lib/oci/core/models/create_instance_pool_details.rb +6 -3
  359. data/lib/oci/core/models/create_instance_pool_placement_configuration_details.rb +33 -3
  360. data/lib/oci/core/models/create_internet_gateway_details.rb +1 -1
  361. data/lib/oci/core/models/create_ip_sec_connection_details.rb +2 -2
  362. data/lib/oci/core/models/create_ip_sec_connection_tunnel_details.rb +1 -1
  363. data/lib/oci/core/models/create_ip_sec_tunnel_bgp_session_details.rb +1 -1
  364. data/lib/oci/core/models/create_ipv6_details.rb +1 -1
  365. data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
  366. data/lib/oci/core/models/create_nat_gateway_details.rb +1 -1
  367. data/lib/oci/core/models/create_network_security_group_details.rb +1 -1
  368. data/lib/oci/core/models/create_private_ip_details.rb +1 -1
  369. data/lib/oci/core/models/create_public_ip_details.rb +1 -1
  370. data/lib/oci/core/models/create_remote_peering_connection_details.rb +1 -1
  371. data/lib/oci/core/models/create_route_table_details.rb +1 -1
  372. data/lib/oci/core/models/create_security_list_details.rb +1 -1
  373. data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
  374. data/lib/oci/core/models/create_subnet_details.rb +1 -1
  375. data/lib/oci/core/models/create_vcn_details.rb +1 -1
  376. data/lib/oci/core/models/create_virtual_circuit_details.rb +22 -3
  377. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +2 -2
  378. data/lib/oci/core/models/create_vnic_details.rb +11 -8
  379. data/lib/oci/core/models/create_volume_backup_details.rb +1 -1
  380. data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +3 -3
  381. data/lib/oci/core/models/create_volume_backup_policy_details.rb +11 -4
  382. data/lib/oci/core/models/create_volume_details.rb +30 -3
  383. data/lib/oci/core/models/create_volume_group_backup_details.rb +1 -1
  384. data/lib/oci/core/models/create_volume_group_details.rb +1 -1
  385. data/lib/oci/core/models/cross_connect.rb +1 -1
  386. data/lib/oci/core/models/cross_connect_group.rb +1 -1
  387. data/lib/oci/core/models/cross_connect_location.rb +1 -1
  388. data/lib/oci/core/models/cross_connect_mapping.rb +5 -3
  389. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +1 -1
  390. data/lib/oci/core/models/cross_connect_status.rb +1 -1
  391. data/lib/oci/core/models/dedicated_vm_host.rb +1 -1
  392. data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +1 -1
  393. data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +1 -1
  394. data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +1 -1
  395. data/lib/oci/core/models/dedicated_vm_host_summary.rb +1 -1
  396. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +1 -1
  397. data/lib/oci/core/models/detach_load_balancer_details.rb +1 -1
  398. data/lib/oci/core/models/device.rb +1 -1
  399. data/lib/oci/core/models/dhcp_dns_option.rb +1 -1
  400. data/lib/oci/core/models/dhcp_option.rb +1 -1
  401. data/lib/oci/core/models/dhcp_options.rb +1 -1
  402. data/lib/oci/core/models/dhcp_search_domain_option.rb +1 -1
  403. data/lib/oci/core/models/drg.rb +1 -1
  404. data/lib/oci/core/models/drg_attachment.rb +1 -1
  405. data/lib/oci/core/models/drg_redundancy_status.rb +187 -0
  406. data/lib/oci/core/models/egress_security_rule.rb +18 -6
  407. data/lib/oci/core/models/emulated_volume_attachment.rb +6 -2
  408. data/lib/oci/core/models/export_image_details.rb +1 -1
  409. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +1 -1
  410. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +1 -1
  411. data/lib/oci/core/models/fast_connect_provider_service.rb +1 -1
  412. data/lib/oci/core/models/fast_connect_provider_service_key.rb +2 -2
  413. data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +1 -1
  414. data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +1 -1
  415. data/lib/oci/core/models/i_scsi_volume_attachment.rb +6 -2
  416. data/lib/oci/core/models/icmp_options.rb +1 -1
  417. data/lib/oci/core/models/image.rb +1 -1
  418. data/lib/oci/core/models/image_shape_compatibility_entry.rb +1 -1
  419. data/lib/oci/core/models/image_source_details.rb +1 -1
  420. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +1 -1
  421. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +1 -1
  422. data/lib/oci/core/models/ingress_security_rule.rb +18 -6
  423. data/lib/oci/core/models/instance.rb +1 -1
  424. data/lib/oci/core/models/instance_agent_config.rb +22 -5
  425. data/lib/oci/core/models/instance_agent_features.rb +20 -5
  426. data/lib/oci/core/models/instance_configuration.rb +1 -1
  427. data/lib/oci/core/models/instance_configuration_attach_vnic_details.rb +1 -1
  428. data/lib/oci/core/models/instance_configuration_attach_volume_details.rb +1 -1
  429. data/lib/oci/core/models/instance_configuration_block_volume_details.rb +1 -1
  430. data/lib/oci/core/models/instance_configuration_create_vnic_details.rb +1 -1
  431. data/lib/oci/core/models/instance_configuration_create_volume_details.rb +1 -1
  432. data/lib/oci/core/models/instance_configuration_instance_details.rb +1 -1
  433. data/lib/oci/core/models/instance_configuration_instance_source_details.rb +1 -1
  434. data/lib/oci/core/models/instance_configuration_instance_source_via_boot_volume_details.rb +1 -1
  435. data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +1 -1
  436. data/lib/oci/core/models/instance_configuration_iscsi_attach_volume_details.rb +1 -1
  437. data/lib/oci/core/models/instance_configuration_launch_instance_details.rb +1 -1
  438. data/lib/oci/core/models/instance_configuration_paravirtualized_attach_volume_details.rb +1 -1
  439. data/lib/oci/core/models/instance_configuration_summary.rb +1 -1
  440. data/lib/oci/core/models/instance_configuration_volume_source_details.rb +1 -1
  441. data/lib/oci/core/models/instance_configuration_volume_source_from_volume_backup_details.rb +1 -1
  442. data/lib/oci/core/models/instance_configuration_volume_source_from_volume_details.rb +1 -1
  443. data/lib/oci/core/models/instance_console_connection.rb +2 -2
  444. data/lib/oci/core/models/instance_credentials.rb +1 -1
  445. data/lib/oci/core/models/instance_pool.rb +9 -5
  446. data/lib/oci/core/models/instance_pool_instance_load_balancer_backend.rb +1 -1
  447. data/lib/oci/core/models/instance_pool_load_balancer_attachment.rb +6 -4
  448. data/lib/oci/core/models/instance_pool_placement_configuration.rb +33 -3
  449. data/lib/oci/core/models/instance_pool_placement_secondary_vnic_subnet.rb +4 -4
  450. data/lib/oci/core/models/instance_pool_summary.rb +1 -1
  451. data/lib/oci/core/models/instance_source_details.rb +1 -1
  452. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +1 -1
  453. data/lib/oci/core/models/instance_source_via_image_details.rb +2 -2
  454. data/lib/oci/core/models/instance_summary.rb +1 -1
  455. data/lib/oci/core/models/internet_gateway.rb +1 -1
  456. data/lib/oci/core/models/ip_sec_connection.rb +2 -2
  457. data/lib/oci/core/models/ip_sec_connection_device_config.rb +1 -1
  458. data/lib/oci/core/models/ip_sec_connection_device_status.rb +1 -1
  459. data/lib/oci/core/models/ip_sec_connection_tunnel.rb +1 -1
  460. data/lib/oci/core/models/ip_sec_connection_tunnel_shared_secret.rb +1 -1
  461. data/lib/oci/core/models/ipv6.rb +3 -4
  462. data/lib/oci/core/models/launch_instance_agent_config_details.rb +23 -5
  463. data/lib/oci/core/models/launch_instance_details.rb +1 -1
  464. data/lib/oci/core/models/launch_options.rb +1 -1
  465. data/lib/oci/core/models/letter_of_authority.rb +1 -1
  466. data/lib/oci/core/models/local_peering_gateway.rb +1 -1
  467. data/lib/oci/core/models/nat_gateway.rb +1 -1
  468. data/lib/oci/core/models/network_security_group.rb +1 -1
  469. data/lib/oci/core/models/network_security_group_vnic.rb +1 -1
  470. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +6 -2
  471. data/lib/oci/core/models/peer_region_for_remote_peering.rb +1 -1
  472. data/lib/oci/core/models/port_range.rb +1 -1
  473. data/lib/oci/core/models/private_ip.rb +1 -1
  474. data/lib/oci/core/models/public_ip.rb +1 -1
  475. data/lib/oci/core/models/remote_peering_connection.rb +1 -1
  476. data/lib/oci/core/models/remove_network_security_group_security_rules_details.rb +1 -1
  477. data/lib/oci/core/models/route_rule.rb +18 -7
  478. data/lib/oci/core/models/route_table.rb +1 -1
  479. data/lib/oci/core/models/security_list.rb +1 -2
  480. data/lib/oci/core/models/security_rule.rb +5 -3
  481. data/lib/oci/core/models/service.rb +1 -1
  482. data/lib/oci/core/models/service_gateway.rb +1 -1
  483. data/lib/oci/core/models/service_id_request_details.rb +1 -1
  484. data/lib/oci/core/models/service_id_response_details.rb +1 -1
  485. data/lib/oci/core/models/shape.rb +1 -1
  486. data/lib/oci/core/models/subnet.rb +3 -3
  487. data/lib/oci/core/models/tcp_options.rb +1 -1
  488. data/lib/oci/core/models/tunnel_config.rb +1 -1
  489. data/lib/oci/core/models/tunnel_cpe_device_config.rb +163 -0
  490. data/lib/oci/core/models/tunnel_status.rb +1 -1
  491. data/lib/oci/core/models/udp_options.rb +1 -1
  492. data/lib/oci/core/models/update_boot_volume_backup_details.rb +1 -1
  493. data/lib/oci/core/models/update_boot_volume_details.rb +28 -5
  494. data/lib/oci/core/models/update_boot_volume_kms_key_details.rb +4 -4
  495. data/lib/oci/core/models/update_cluster_network_details.rb +5 -3
  496. data/lib/oci/core/models/update_console_history_details.rb +1 -1
  497. data/lib/oci/core/models/update_cpe_details.rb +30 -5
  498. data/lib/oci/core/models/update_cross_connect_details.rb +1 -1
  499. data/lib/oci/core/models/update_cross_connect_group_details.rb +1 -1
  500. data/lib/oci/core/models/update_dedicated_vm_host_details.rb +1 -1
  501. data/lib/oci/core/models/update_dhcp_details.rb +1 -1
  502. data/lib/oci/core/models/update_drg_attachment_details.rb +1 -1
  503. data/lib/oci/core/models/update_drg_details.rb +1 -1
  504. data/lib/oci/core/models/update_image_details.rb +1 -1
  505. data/lib/oci/core/models/update_instance_agent_config_details.rb +22 -5
  506. data/lib/oci/core/models/update_instance_configuration_details.rb +1 -1
  507. data/lib/oci/core/models/update_instance_details.rb +20 -37
  508. data/lib/oci/core/models/update_instance_pool_details.rb +4 -2
  509. data/lib/oci/core/models/update_instance_pool_placement_configuration_details.rb +31 -2
  510. data/lib/oci/core/models/update_internet_gateway_details.rb +1 -1
  511. data/lib/oci/core/models/update_ip_sec_connection_details.rb +2 -2
  512. data/lib/oci/core/models/update_ip_sec_connection_tunnel_details.rb +1 -1
  513. data/lib/oci/core/models/update_ip_sec_connection_tunnel_shared_secret_details.rb +1 -1
  514. data/lib/oci/core/models/update_ip_sec_tunnel_bgp_session_details.rb +1 -1
  515. data/lib/oci/core/models/update_ipv6_details.rb +1 -1
  516. data/lib/oci/core/models/update_local_peering_gateway_details.rb +1 -1
  517. data/lib/oci/core/models/update_nat_gateway_details.rb +1 -1
  518. data/lib/oci/core/models/update_network_security_group_details.rb +1 -1
  519. data/lib/oci/core/models/update_network_security_group_security_rules_details.rb +1 -1
  520. data/lib/oci/core/models/update_private_ip_details.rb +1 -1
  521. data/lib/oci/core/models/update_public_ip_details.rb +1 -1
  522. data/lib/oci/core/models/update_remote_peering_connection_details.rb +1 -1
  523. data/lib/oci/core/models/update_route_table_details.rb +1 -1
  524. data/lib/oci/core/models/update_security_list_details.rb +1 -1
  525. data/lib/oci/core/models/update_security_rule_details.rb +5 -3
  526. data/lib/oci/core/models/update_service_gateway_details.rb +1 -1
  527. data/lib/oci/core/models/update_subnet_details.rb +1 -1
  528. data/lib/oci/core/models/update_tunnel_cpe_device_config_details.rb +154 -0
  529. data/lib/oci/core/models/update_vcn_details.rb +1 -1
  530. data/lib/oci/core/models/update_virtual_circuit_details.rb +21 -3
  531. data/lib/oci/core/models/update_vnic_details.rb +7 -4
  532. data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
  533. data/lib/oci/core/models/update_volume_backup_policy_details.rb +10 -3
  534. data/lib/oci/core/models/update_volume_details.rb +27 -2
  535. data/lib/oci/core/models/update_volume_group_backup_details.rb +1 -1
  536. data/lib/oci/core/models/update_volume_group_details.rb +1 -1
  537. data/lib/oci/core/models/update_volume_kms_key_details.rb +4 -4
  538. data/lib/oci/core/models/updated_network_security_group_security_rules.rb +1 -1
  539. data/lib/oci/core/models/vcn.rb +3 -2
  540. data/lib/oci/core/models/virtual_circuit.rb +21 -4
  541. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +1 -1
  542. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +1 -1
  543. data/lib/oci/core/models/vnic.rb +1 -1
  544. data/lib/oci/core/models/vnic_attachment.rb +2 -2
  545. data/lib/oci/core/models/volume.rb +28 -3
  546. data/lib/oci/core/models/volume_attachment.rb +16 -2
  547. data/lib/oci/core/models/volume_backup.rb +2 -2
  548. data/lib/oci/core/models/volume_backup_policy.rb +1 -1
  549. data/lib/oci/core/models/volume_backup_policy_assignment.rb +9 -5
  550. data/lib/oci/core/models/volume_backup_schedule.rb +27 -11
  551. data/lib/oci/core/models/volume_group.rb +2 -2
  552. data/lib/oci/core/models/volume_group_backup.rb +1 -1
  553. data/lib/oci/core/models/volume_group_source_details.rb +1 -1
  554. data/lib/oci/core/models/volume_group_source_from_volume_group_backup_details.rb +1 -1
  555. data/lib/oci/core/models/volume_group_source_from_volume_group_details.rb +1 -1
  556. data/lib/oci/core/models/volume_group_source_from_volumes_details.rb +1 -1
  557. data/lib/oci/core/models/volume_kms_key.rb +3 -3
  558. data/lib/oci/core/models/volume_source_details.rb +1 -1
  559. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +1 -1
  560. data/lib/oci/core/models/volume_source_from_volume_details.rb +1 -1
  561. data/lib/oci/core/virtual_network_client.rb +699 -1
  562. data/lib/oci/core/virtual_network_client_composite_operations.rb +1 -1
  563. data/lib/oci/data_catalog/data_catalog.rb +135 -0
  564. data/lib/oci/data_catalog/data_catalog_client.rb +7577 -0
  565. data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +172 -0
  566. data/lib/oci/data_catalog/models/attribute.rb +403 -0
  567. data/lib/oci/data_catalog/models/attribute_collection.rb +150 -0
  568. data/lib/oci/data_catalog/models/attribute_summary.rb +281 -0
  569. data/lib/oci/data_catalog/models/attribute_tag.rb +269 -0
  570. data/lib/oci/data_catalog/models/attribute_tag_collection.rb +150 -0
  571. data/lib/oci/data_catalog/models/attribute_tag_summary.rb +269 -0
  572. data/lib/oci/data_catalog/models/base_permissions_summary.rb +153 -0
  573. data/lib/oci/data_catalog/models/base_tag.rb +255 -0
  574. data/lib/oci/data_catalog/models/base_tag_summary.rb +255 -0
  575. data/lib/oci/data_catalog/models/catalog.rb +311 -0
  576. data/lib/oci/data_catalog/models/catalog_permissions_summary.rb +167 -0
  577. data/lib/oci/data_catalog/models/catalog_summary.rb +279 -0
  578. data/lib/oci/data_catalog/models/change_catalog_compartment_details.rb +153 -0
  579. data/lib/oci/data_catalog/models/connection.rb +343 -0
  580. data/lib/oci/data_catalog/models/connection_alias_summary.rb +170 -0
  581. data/lib/oci/data_catalog/models/connection_collection.rb +150 -0
  582. data/lib/oci/data_catalog/models/connection_result.rb +10 -0
  583. data/lib/oci/data_catalog/models/connection_summary.rb +271 -0
  584. data/lib/oci/data_catalog/models/create_attribute_details.rb +283 -0
  585. data/lib/oci/data_catalog/models/create_catalog_details.rb +199 -0
  586. data/lib/oci/data_catalog/models/create_connection_details.rb +237 -0
  587. data/lib/oci/data_catalog/models/create_data_asset_details.rb +197 -0
  588. data/lib/oci/data_catalog/models/create_entity_details.rb +275 -0
  589. data/lib/oci/data_catalog/models/create_folder_details.rb +239 -0
  590. data/lib/oci/data_catalog/models/create_glossary_details.rb +189 -0
  591. data/lib/oci/data_catalog/models/create_job_definition_details.rb +271 -0
  592. data/lib/oci/data_catalog/models/create_job_details.rb +240 -0
  593. data/lib/oci/data_catalog/models/create_job_execution_details.rb +342 -0
  594. data/lib/oci/data_catalog/models/create_tag_details.rb +165 -0
  595. data/lib/oci/data_catalog/models/create_term_details.rb +219 -0
  596. data/lib/oci/data_catalog/models/create_term_relationship_details.rb +179 -0
  597. data/lib/oci/data_catalog/models/data_asset.rb +319 -0
  598. data/lib/oci/data_catalog/models/data_asset_collection.rb +150 -0
  599. data/lib/oci/data_catalog/models/data_asset_permissions_summary.rb +167 -0
  600. data/lib/oci/data_catalog/models/data_asset_summary.rb +261 -0
  601. data/lib/oci/data_catalog/models/data_asset_tag.rb +269 -0
  602. data/lib/oci/data_catalog/models/data_asset_tag_collection.rb +150 -0
  603. data/lib/oci/data_catalog/models/data_asset_tag_summary.rb +269 -0
  604. data/lib/oci/data_catalog/models/entity.rb +428 -0
  605. data/lib/oci/data_catalog/models/entity_collection.rb +150 -0
  606. data/lib/oci/data_catalog/models/entity_summary.rb +299 -0
  607. data/lib/oci/data_catalog/models/entity_tag.rb +269 -0
  608. data/lib/oci/data_catalog/models/entity_tag_collection.rb +150 -0
  609. data/lib/oci/data_catalog/models/entity_tag_summary.rb +269 -0
  610. data/lib/oci/data_catalog/models/folder.rb +371 -0
  611. data/lib/oci/data_catalog/models/folder_collection.rb +150 -0
  612. data/lib/oci/data_catalog/models/folder_summary.rb +286 -0
  613. data/lib/oci/data_catalog/models/folder_tag.rb +269 -0
  614. data/lib/oci/data_catalog/models/folder_tag_collection.rb +150 -0
  615. data/lib/oci/data_catalog/models/folder_tag_summary.rb +269 -0
  616. data/lib/oci/data_catalog/models/glossary.rb +304 -0
  617. data/lib/oci/data_catalog/models/glossary_collection.rb +150 -0
  618. data/lib/oci/data_catalog/models/glossary_permissions_summary.rb +167 -0
  619. data/lib/oci/data_catalog/models/glossary_summary.rb +251 -0
  620. data/lib/oci/data_catalog/models/glossary_tree_element.rb +311 -0
  621. data/lib/oci/data_catalog/models/harvest_status.rb +12 -0
  622. data/lib/oci/data_catalog/models/import_connection_details.rb +166 -0
  623. data/lib/oci/data_catalog/models/import_glossary_details.rb +153 -0
  624. data/lib/oci/data_catalog/models/job.rb +420 -0
  625. data/lib/oci/data_catalog/models/job_collection.rb +150 -0
  626. data/lib/oci/data_catalog/models/job_definition.rb +391 -0
  627. data/lib/oci/data_catalog/models/job_definition_collection.rb +150 -0
  628. data/lib/oci/data_catalog/models/job_definition_permissions_summary.rb +167 -0
  629. data/lib/oci/data_catalog/models/job_definition_scope.rb +229 -0
  630. data/lib/oci/data_catalog/models/job_definition_summary.rb +262 -0
  631. data/lib/oci/data_catalog/models/job_execution.rb +420 -0
  632. data/lib/oci/data_catalog/models/job_execution_collection.rb +150 -0
  633. data/lib/oci/data_catalog/models/job_execution_state.rb +14 -0
  634. data/lib/oci/data_catalog/models/job_execution_summary.rb +275 -0
  635. data/lib/oci/data_catalog/models/job_lifecycle_state.rb +11 -0
  636. data/lib/oci/data_catalog/models/job_log.rb +258 -0
  637. data/lib/oci/data_catalog/models/job_log_collection.rb +150 -0
  638. data/lib/oci/data_catalog/models/job_log_summary.rb +216 -0
  639. data/lib/oci/data_catalog/models/job_metric.rb +336 -0
  640. data/lib/oci/data_catalog/models/job_metric_collection.rb +150 -0
  641. data/lib/oci/data_catalog/models/job_metric_summary.rb +289 -0
  642. data/lib/oci/data_catalog/models/job_schedule_type.rb +10 -0
  643. data/lib/oci/data_catalog/models/job_summary.rb +386 -0
  644. data/lib/oci/data_catalog/models/job_type.rb +21 -0
  645. data/lib/oci/data_catalog/models/lifecycle_state.rb +16 -0
  646. data/lib/oci/data_catalog/models/parse_connection_details.rb +166 -0
  647. data/lib/oci/data_catalog/models/property_definition.rb +187 -0
  648. data/lib/oci/data_catalog/models/search_criteria.rb +150 -0
  649. data/lib/oci/data_catalog/models/search_result.rb +490 -0
  650. data/lib/oci/data_catalog/models/search_result_collection.rb +161 -0
  651. data/lib/oci/data_catalog/models/search_tag_summary.rb +163 -0
  652. data/lib/oci/data_catalog/models/search_term_summary.rb +222 -0
  653. data/lib/oci/data_catalog/models/term.rb +367 -0
  654. data/lib/oci/data_catalog/models/term_associated_object.rb +169 -0
  655. data/lib/oci/data_catalog/models/term_collection.rb +150 -0
  656. data/lib/oci/data_catalog/models/term_relationship.rb +300 -0
  657. data/lib/oci/data_catalog/models/term_relationship_collection.rb +150 -0
  658. data/lib/oci/data_catalog/models/term_relationship_summary.rb +300 -0
  659. data/lib/oci/data_catalog/models/term_summary.rb +300 -0
  660. data/lib/oci/data_catalog/models/term_workflow_status.rb +12 -0
  661. data/lib/oci/data_catalog/models/type.rb +308 -0
  662. data/lib/oci/data_catalog/models/type_collection.rb +150 -0
  663. data/lib/oci/data_catalog/models/type_summary.rb +223 -0
  664. data/lib/oci/data_catalog/models/update_attribute_details.rb +279 -0
  665. data/lib/oci/data_catalog/models/update_catalog_details.rb +185 -0
  666. data/lib/oci/data_catalog/models/update_connection_details.rb +219 -0
  667. data/lib/oci/data_catalog/models/update_data_asset_details.rb +180 -0
  668. data/lib/oci/data_catalog/models/update_entity_details.rb +271 -0
  669. data/lib/oci/data_catalog/models/update_folder_details.rb +239 -0
  670. data/lib/oci/data_catalog/models/update_glossary_details.rb +189 -0
  671. data/lib/oci/data_catalog/models/update_job_definition_details.rb +252 -0
  672. data/lib/oci/data_catalog/models/update_job_details.rb +224 -0
  673. data/lib/oci/data_catalog/models/update_term_details.rb +203 -0
  674. data/lib/oci/data_catalog/models/update_term_relationship_details.rb +165 -0
  675. data/lib/oci/data_catalog/models/upload_credentials_details.rb +166 -0
  676. data/lib/oci/data_catalog/models/validate_connection_details.rb +166 -0
  677. data/lib/oci/data_catalog/models/validate_connection_result.rb +159 -0
  678. data/lib/oci/data_catalog/models/work_request.rb +307 -0
  679. data/lib/oci/data_catalog/models/work_request_error.rb +172 -0
  680. data/lib/oci/data_catalog/models/work_request_log.rb +159 -0
  681. data/lib/oci/data_catalog/models/work_request_resource.rb +218 -0
  682. data/lib/oci/data_catalog/util.rb +1 -0
  683. data/lib/oci/data_flow/data_flow.rb +34 -0
  684. data/lib/oci/data_flow/data_flow_client.rb +1116 -0
  685. data/lib/oci/data_flow/data_flow_client_composite_operations.rb +270 -0
  686. data/lib/oci/data_flow/models/application.rb +527 -0
  687. data/lib/oci/data_flow/models/application_language.rb +12 -0
  688. data/lib/oci/data_flow/models/application_lifecycle_state.rb +11 -0
  689. data/lib/oci/data_flow/models/application_parameter.rb +165 -0
  690. data/lib/oci/data_flow/models/application_summary.rb +345 -0
  691. data/lib/oci/data_flow/models/change_application_compartment_details.rb +155 -0
  692. data/lib/oci/data_flow/models/change_run_compartment_details.rb +155 -0
  693. data/lib/oci/data_flow/models/create_application_details.rb +411 -0
  694. data/lib/oci/data_flow/models/create_run_details.rb +358 -0
  695. data/lib/oci/data_flow/models/run.rb +625 -0
  696. data/lib/oci/data_flow/models/run_lifecycle_state.rb +14 -0
  697. data/lib/oci/data_flow/models/run_log_summary.rb +259 -0
  698. data/lib/oci/data_flow/models/run_summary.rb +454 -0
  699. data/lib/oci/data_flow/models/update_application_details.rb +396 -0
  700. data/lib/oci/data_flow/models/update_run_details.rb +173 -0
  701. data/lib/oci/data_flow/util.rb +1 -0
  702. data/lib/oci/data_science/data_science.rb +49 -0
  703. data/lib/oci/data_science/data_science_client.rb +2359 -0
  704. data/lib/oci/data_science/data_science_client_composite_operations.rb +587 -0
  705. data/lib/oci/data_science/models/change_model_compartment_details.rb +154 -0
  706. data/lib/oci/data_science/models/change_notebook_session_compartment_details.rb +154 -0
  707. data/lib/oci/data_science/models/change_project_compartment_details.rb +154 -0
  708. data/lib/oci/data_science/models/create_model_details.rb +225 -0
  709. data/lib/oci/data_science/models/create_model_provenance_details.rb +210 -0
  710. data/lib/oci/data_science/models/create_notebook_session_details.rb +230 -0
  711. data/lib/oci/data_science/models/create_project_details.rb +210 -0
  712. data/lib/oci/data_science/models/model.rb +299 -0
  713. data/lib/oci/data_science/models/model_lifecycle_state.rb +12 -0
  714. data/lib/oci/data_science/models/model_provenance.rb +210 -0
  715. data/lib/oci/data_science/models/model_summary.rb +289 -0
  716. data/lib/oci/data_science/models/notebook_session.rb +336 -0
  717. data/lib/oci/data_science/models/notebook_session_configuration_details.rb +180 -0
  718. data/lib/oci/data_science/models/notebook_session_lifecycle_state.rb +15 -0
  719. data/lib/oci/data_science/models/notebook_session_shape_summary.rb +181 -0
  720. data/lib/oci/data_science/models/notebook_session_summary.rb +321 -0
  721. data/lib/oci/data_science/models/project.rb +285 -0
  722. data/lib/oci/data_science/models/project_lifecycle_state.rb +11 -0
  723. data/lib/oci/data_science/models/project_summary.rb +284 -0
  724. data/lib/oci/data_science/models/update_model_details.rb +198 -0
  725. data/lib/oci/data_science/models/update_model_provenance_details.rb +210 -0
  726. data/lib/oci/data_science/models/update_notebook_session_details.rb +202 -0
  727. data/lib/oci/data_science/models/update_project_details.rb +195 -0
  728. data/lib/oci/data_science/models/work_request.rb +300 -0
  729. data/lib/oci/data_science/models/work_request_error.rb +170 -0
  730. data/lib/oci/data_science/models/work_request_log_entry.rb +159 -0
  731. data/lib/oci/data_science/models/work_request_operation_type.rb +14 -0
  732. data/lib/oci/data_science/models/work_request_resource.rb +214 -0
  733. data/lib/oci/data_science/models/work_request_status.rb +14 -0
  734. data/lib/oci/data_science/models/work_request_summary.rb +300 -0
  735. data/lib/oci/data_science/util.rb +1 -0
  736. data/lib/oci/database/database.rb +12 -3
  737. data/lib/oci/database/database_client.rb +730 -50
  738. data/lib/oci/database/database_client_composite_operations.rb +162 -4
  739. data/lib/oci/database/models/activate_exadata_infrastructure_details.rb +1 -1
  740. data/lib/oci/database/models/associated_database_details.rb +1 -1
  741. data/lib/oci/database/models/autonomous_container_database.rb +17 -4
  742. data/lib/oci/database/models/autonomous_container_database_backup_config.rb +1 -1
  743. data/lib/oci/database/models/autonomous_container_database_summary.rb +17 -4
  744. data/lib/oci/database/models/autonomous_data_warehouse.rb +1 -1
  745. data/lib/oci/database/models/autonomous_data_warehouse_backup.rb +1 -1
  746. data/lib/oci/database/models/autonomous_data_warehouse_backup_summary.rb +1 -1
  747. data/lib/oci/database/models/autonomous_data_warehouse_connection_strings.rb +1 -1
  748. data/lib/oci/database/models/autonomous_data_warehouse_console_token_details.rb +1 -1
  749. data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +1 -1
  750. data/lib/oci/database/models/autonomous_database.rb +157 -15
  751. data/lib/oci/database/models/autonomous_database_backup.rb +21 -5
  752. data/lib/oci/database/models/autonomous_database_backup_summary.rb +21 -5
  753. data/lib/oci/database/models/autonomous_database_connection_strings.rb +1 -1
  754. data/lib/oci/database/models/autonomous_database_connection_urls.rb +20 -6
  755. data/lib/oci/database/models/autonomous_database_console_token_details.rb +2 -2
  756. data/lib/oci/database/models/autonomous_database_summary.rb +157 -15
  757. data/lib/oci/database/models/autonomous_database_wallet.rb +1 -1
  758. data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +7 -3
  759. data/lib/oci/database/models/autonomous_db_version_summary.rb +213 -0
  760. data/lib/oci/database/models/autonomous_exadata_infrastructure.rb +4 -2
  761. data/lib/oci/database/models/autonomous_exadata_infrastructure_shape_summary.rb +1 -1
  762. data/lib/oci/database/models/autonomous_exadata_infrastructure_summary.rb +4 -2
  763. data/lib/oci/database/models/backup.rb +15 -5
  764. data/lib/oci/database/models/backup_destination.rb +1 -1
  765. data/lib/oci/database/models/backup_destination_details.rb +5 -39
  766. data/lib/oci/database/models/backup_destination_summary.rb +1 -1
  767. data/lib/oci/database/models/backup_summary.rb +15 -5
  768. data/lib/oci/database/models/change_compartment_details.rb +1 -1
  769. data/lib/oci/database/models/change_exadata_infrastructure_compartment_details.rb +1 -1
  770. data/lib/oci/database/models/change_vm_cluster_compartment_details.rb +1 -1
  771. data/lib/oci/database/models/complete_external_backup_job_details.rb +1 -1
  772. data/lib/oci/database/models/console_connection.rb +235 -0
  773. data/lib/oci/database/models/console_connection_summary.rb +240 -0
  774. data/lib/oci/database/models/create_autonomous_container_database_details.rb +16 -3
  775. data/lib/oci/database/models/create_autonomous_data_warehouse_backup_details.rb +1 -1
  776. data/lib/oci/database/models/create_autonomous_data_warehouse_details.rb +1 -1
  777. data/lib/oci/database/models/create_autonomous_database_backup_details.rb +1 -1
  778. data/lib/oci/database/models/create_autonomous_database_base.rb +110 -12
  779. data/lib/oci/database/models/create_autonomous_database_clone_details.rb +22 -2
  780. data/lib/oci/database/models/create_autonomous_database_details.rb +22 -2
  781. data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +269 -0
  782. data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +279 -0
  783. data/lib/oci/database/models/create_backup_destination_details.rb +1 -1
  784. data/lib/oci/database/models/create_backup_details.rb +1 -1
  785. data/lib/oci/database/models/create_console_connection_details.rb +155 -0
  786. data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
  787. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +3 -3
  788. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +21 -5
  789. data/lib/oci/database/models/create_database_base.rb +215 -0
  790. data/lib/oci/database/models/create_database_details.rb +1 -1
  791. data/lib/oci/database/models/{create_db_home_with_vm_cluster_id_from_backup_details.rb → create_database_from_backup.rb} +16 -24
  792. data/lib/oci/database/models/create_database_from_backup_details.rb +1 -1
  793. data/lib/oci/database/models/create_db_home_base.rb +4 -6
  794. data/lib/oci/database/models/create_db_home_details.rb +3 -3
  795. data/lib/oci/database/models/create_db_home_from_backup_details.rb +3 -3
  796. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +1 -2
  797. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +1 -1
  798. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +1 -2
  799. data/lib/oci/database/models/create_exadata_infrastructure_details.rb +4 -2
  800. data/lib/oci/database/models/create_external_backup_job_details.rb +1 -1
  801. data/lib/oci/database/models/create_new_database_details.rb +168 -0
  802. data/lib/oci/database/models/create_nfs_backup_destination_details.rb +1 -1
  803. data/lib/oci/database/models/create_recovery_appliance_backup_destination_details.rb +1 -1
  804. data/lib/oci/database/models/create_vm_cluster_details.rb +1 -1
  805. data/lib/oci/database/models/data_guard_association.rb +2 -2
  806. data/lib/oci/database/models/data_guard_association_summary.rb +2 -2
  807. data/lib/oci/database/models/database.rb +31 -3
  808. data/lib/oci/database/models/database_connection_strings.rb +1 -1
  809. data/lib/oci/database/models/database_summary.rb +31 -3
  810. data/lib/oci/database/models/day_of_week.rb +1 -1
  811. data/lib/oci/database/models/db_backup_config.rb +1 -1
  812. data/lib/oci/database/models/db_home.rb +34 -6
  813. data/lib/oci/database/models/db_home_summary.rb +37 -9
  814. data/lib/oci/database/models/db_iorm_config.rb +1 -1
  815. data/lib/oci/database/models/db_iorm_config_update_detail.rb +1 -1
  816. data/lib/oci/database/models/db_node.rb +79 -5
  817. data/lib/oci/database/models/db_node_summary.rb +79 -5
  818. data/lib/oci/database/models/db_system.rb +4 -2
  819. data/lib/oci/database/models/db_system_options.rb +7 -2
  820. data/lib/oci/database/models/db_system_shape_summary.rb +1 -1
  821. data/lib/oci/database/models/db_system_summary.rb +4 -2
  822. data/lib/oci/database/models/db_version_summary.rb +19 -5
  823. data/lib/oci/database/models/exadata_infrastructure.rb +1 -1
  824. data/lib/oci/database/models/exadata_infrastructure_summary.rb +1 -1
  825. data/lib/oci/database/models/exadata_iorm_config.rb +1 -1
  826. data/lib/oci/database/models/exadata_iorm_config_update_details.rb +1 -1
  827. data/lib/oci/database/models/external_backup_job.rb +1 -1
  828. data/lib/oci/database/models/failover_data_guard_association_details.rb +1 -1
  829. data/lib/oci/database/models/generate_autonomous_data_warehouse_wallet_details.rb +1 -1
  830. data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +1 -1
  831. data/lib/oci/database/models/generate_recommended_network_details.rb +1 -1
  832. data/lib/oci/database/models/gi_version_summary.rb +1 -1
  833. data/lib/oci/database/models/info_for_network_gen_details.rb +1 -1
  834. data/lib/oci/database/models/launch_autonomous_exadata_infrastructure_details.rb +4 -2
  835. data/lib/oci/database/models/launch_db_system_base.rb +6 -4
  836. data/lib/oci/database/models/launch_db_system_details.rb +1 -1
  837. data/lib/oci/database/models/launch_db_system_from_backup_details.rb +1 -1
  838. data/lib/oci/database/models/maintenance_run.rb +5 -1
  839. data/lib/oci/database/models/maintenance_run_summary.rb +5 -1
  840. data/lib/oci/database/models/maintenance_window.rb +1 -1
  841. data/lib/oci/database/models/month.rb +1 -1
  842. data/lib/oci/database/models/node_details.rb +2 -2
  843. data/lib/oci/database/models/ocp_us.rb +181 -0
  844. data/lib/oci/database/models/patch.rb +1 -1
  845. data/lib/oci/database/models/patch_details.rb +2 -2
  846. data/lib/oci/database/models/patch_history_entry.rb +1 -1
  847. data/lib/oci/database/models/patch_history_entry_summary.rb +1 -1
  848. data/lib/oci/database/models/patch_summary.rb +1 -1
  849. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +1 -1
  850. data/lib/oci/database/models/restore_autonomous_data_warehouse_details.rb +1 -1
  851. data/lib/oci/database/models/restore_autonomous_database_details.rb +1 -1
  852. data/lib/oci/database/models/restore_database_details.rb +1 -1
  853. data/lib/oci/database/models/scan_details.rb +1 -1
  854. data/lib/oci/database/models/switchover_data_guard_association_details.rb +1 -1
  855. data/lib/oci/database/models/update_autonomous_container_database_details.rb +15 -2
  856. data/lib/oci/database/models/update_autonomous_data_warehouse_details.rb +1 -1
  857. data/lib/oci/database/models/update_autonomous_database_details.rb +30 -10
  858. data/lib/oci/database/models/update_autonomous_database_wallet_details.rb +1 -1
  859. data/lib/oci/database/models/update_autonomous_exadata_infrastructure_details.rb +4 -2
  860. data/lib/oci/database/models/update_backup_destination_details.rb +1 -1
  861. data/lib/oci/database/models/update_database_details.rb +1 -1
  862. data/lib/oci/database/models/update_db_home_details.rb +2 -2
  863. data/lib/oci/database/models/update_db_system_details.rb +19 -3
  864. data/lib/oci/database/models/update_exadata_infrastructure_details.rb +1 -1
  865. data/lib/oci/database/models/update_maintenance_run_details.rb +1 -1
  866. data/lib/oci/database/models/update_vm_cluster_details.rb +1 -1
  867. data/lib/oci/database/models/update_vm_cluster_network_details.rb +1 -1
  868. data/lib/oci/database/models/vm_cluster.rb +1 -1
  869. data/lib/oci/database/models/vm_cluster_network.rb +1 -1
  870. data/lib/oci/database/models/vm_cluster_network_details.rb +1 -1
  871. data/lib/oci/database/models/vm_cluster_network_summary.rb +1 -1
  872. data/lib/oci/database/models/vm_cluster_summary.rb +1 -1
  873. data/lib/oci/database/models/vm_network_details.rb +1 -1
  874. data/lib/oci/database/models/workload_type.rb +160 -0
  875. data/lib/oci/dns/dns.rb +6 -1
  876. data/lib/oci/dns/dns_client.rb +572 -3
  877. data/lib/oci/dns/dns_client_composite_operations.rb +120 -1
  878. data/lib/oci/dns/models/change_steering_policy_compartment_details.rb +1 -1
  879. data/lib/oci/dns/models/change_tsig_key_compartment_details.rb +155 -0
  880. data/lib/oci/dns/models/change_zone_compartment_details.rb +1 -1
  881. data/lib/oci/dns/models/create_migrated_dynect_zone_details.rb +1 -1
  882. data/lib/oci/dns/models/create_steering_policy_attachment_details.rb +1 -1
  883. data/lib/oci/dns/models/create_steering_policy_details.rb +1 -1
  884. data/lib/oci/dns/models/create_tsig_key_details.rb +228 -0
  885. data/lib/oci/dns/models/create_zone_base_details.rb +1 -1
  886. data/lib/oci/dns/models/create_zone_details.rb +1 -1
  887. data/lib/oci/dns/models/dynect_migration_details.rb +1 -1
  888. data/lib/oci/dns/models/external_master.rb +22 -5
  889. data/lib/oci/dns/models/migration_replacement.rb +1 -1
  890. data/lib/oci/dns/models/nameserver.rb +1 -1
  891. data/lib/oci/dns/models/patch_domain_records_details.rb +1 -1
  892. data/lib/oci/dns/models/patch_rr_set_details.rb +1 -1
  893. data/lib/oci/dns/models/patch_zone_records_details.rb +1 -1
  894. data/lib/oci/dns/models/record.rb +1 -1
  895. data/lib/oci/dns/models/record_collection.rb +1 -1
  896. data/lib/oci/dns/models/record_details.rb +1 -1
  897. data/lib/oci/dns/models/record_operation.rb +1 -1
  898. data/lib/oci/dns/models/rr_set.rb +1 -1
  899. data/lib/oci/dns/models/sort_order.rb +1 -1
  900. data/lib/oci/dns/models/steering_policy.rb +1 -1
  901. data/lib/oci/dns/models/steering_policy_answer.rb +1 -1
  902. data/lib/oci/dns/models/steering_policy_attachment.rb +1 -1
  903. data/lib/oci/dns/models/steering_policy_attachment_summary.rb +1 -1
  904. data/lib/oci/dns/models/steering_policy_filter_answer_data.rb +1 -1
  905. data/lib/oci/dns/models/steering_policy_filter_rule.rb +1 -1
  906. data/lib/oci/dns/models/steering_policy_filter_rule_case.rb +1 -1
  907. data/lib/oci/dns/models/steering_policy_health_rule.rb +1 -1
  908. data/lib/oci/dns/models/steering_policy_health_rule_case.rb +1 -1
  909. data/lib/oci/dns/models/steering_policy_limit_rule.rb +1 -1
  910. data/lib/oci/dns/models/steering_policy_limit_rule_case.rb +1 -1
  911. data/lib/oci/dns/models/steering_policy_priority_answer_data.rb +1 -1
  912. data/lib/oci/dns/models/steering_policy_priority_rule.rb +1 -1
  913. data/lib/oci/dns/models/steering_policy_priority_rule_case.rb +1 -1
  914. data/lib/oci/dns/models/steering_policy_rule.rb +1 -1
  915. data/lib/oci/dns/models/steering_policy_summary.rb +1 -1
  916. data/lib/oci/dns/models/steering_policy_weighted_answer_data.rb +1 -1
  917. data/lib/oci/dns/models/steering_policy_weighted_rule.rb +1 -1
  918. data/lib/oci/dns/models/steering_policy_weighted_rule_case.rb +1 -1
  919. data/lib/oci/dns/models/tsig.rb +1 -1
  920. data/lib/oci/dns/models/tsig_key.rb +320 -0
  921. data/lib/oci/dns/models/tsig_key_summary.rb +290 -0
  922. data/lib/oci/dns/models/update_domain_records_details.rb +1 -1
  923. data/lib/oci/dns/models/update_rr_set_details.rb +1 -1
  924. data/lib/oci/dns/models/update_steering_policy_attachment_details.rb +1 -1
  925. data/lib/oci/dns/models/update_steering_policy_details.rb +1 -1
  926. data/lib/oci/dns/models/update_tsig_key_details.rb +180 -0
  927. data/lib/oci/dns/models/update_zone_details.rb +1 -1
  928. data/lib/oci/dns/models/update_zone_records_details.rb +1 -1
  929. data/lib/oci/dns/models/zone.rb +1 -1
  930. data/lib/oci/dns/models/zone_summary.rb +1 -1
  931. data/lib/oci/dts/appliance_export_job_client.rb +495 -0
  932. data/lib/oci/dts/appliance_export_job_client_composite_operations.rb +143 -0
  933. data/lib/oci/dts/dts.rb +8 -1
  934. data/lib/oci/dts/models/appliance_export_job.rb +550 -0
  935. data/lib/oci/dts/models/appliance_export_job_summary.rb +275 -0
  936. data/lib/oci/dts/models/attach_devices_details.rb +1 -1
  937. data/lib/oci/dts/models/change_appliance_export_job_compartment_details.rb +154 -0
  938. data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +1 -1
  939. data/lib/oci/dts/models/create_appliance_export_job_details.rb +269 -0
  940. data/lib/oci/dts/models/create_transfer_appliance_details.rb +1 -1
  941. data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +9 -5
  942. data/lib/oci/dts/models/create_transfer_device_details.rb +1 -1
  943. data/lib/oci/dts/models/create_transfer_job_details.rb +9 -5
  944. data/lib/oci/dts/models/create_transfer_package_details.rb +1 -1
  945. data/lib/oci/dts/models/detach_devices_details.rb +1 -1
  946. data/lib/oci/dts/models/multiple_transfer_appliances.rb +1 -1
  947. data/lib/oci/dts/models/multiple_transfer_devices.rb +1 -1
  948. data/lib/oci/dts/models/multiple_transfer_packages.rb +1 -1
  949. data/lib/oci/dts/models/new_transfer_device.rb +1 -1
  950. data/lib/oci/dts/models/shipping_address.rb +1 -1
  951. data/lib/oci/dts/models/shipping_vendors.rb +1 -1
  952. data/lib/oci/dts/models/transfer_appliance.rb +1 -1
  953. data/lib/oci/dts/models/transfer_appliance_certificate.rb +1 -1
  954. data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +1 -1
  955. data/lib/oci/dts/models/transfer_appliance_entitlement.rb +9 -5
  956. data/lib/oci/dts/models/transfer_appliance_entitlement_summary.rb +9 -5
  957. data/lib/oci/dts/models/transfer_appliance_public_key.rb +1 -1
  958. data/lib/oci/dts/models/transfer_appliance_summary.rb +1 -1
  959. data/lib/oci/dts/models/transfer_device.rb +1 -1
  960. data/lib/oci/dts/models/transfer_device_summary.rb +1 -1
  961. data/lib/oci/dts/models/transfer_job.rb +9 -5
  962. data/lib/oci/dts/models/transfer_job_summary.rb +9 -5
  963. data/lib/oci/dts/models/transfer_package.rb +1 -1
  964. data/lib/oci/dts/models/transfer_package_summary.rb +1 -1
  965. data/lib/oci/dts/models/update_appliance_export_job_details.rb +395 -0
  966. data/lib/oci/dts/models/update_transfer_appliance_details.rb +1 -1
  967. data/lib/oci/dts/models/update_transfer_device_details.rb +1 -1
  968. data/lib/oci/dts/models/update_transfer_job_details.rb +9 -5
  969. data/lib/oci/dts/models/update_transfer_package_details.rb +1 -1
  970. data/lib/oci/dts/shipping_vendors_client.rb +1 -1
  971. data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +1 -1
  972. data/lib/oci/dts/transfer_appliance_client.rb +1 -1
  973. data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +1 -1
  974. data/lib/oci/dts/transfer_appliance_entitlement_client.rb +1 -1
  975. data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +1 -1
  976. data/lib/oci/dts/transfer_device_client.rb +1 -1
  977. data/lib/oci/dts/transfer_device_client_composite_operations.rb +1 -1
  978. data/lib/oci/dts/transfer_job_client.rb +33 -5
  979. data/lib/oci/dts/transfer_job_client_composite_operations.rb +1 -1
  980. data/lib/oci/dts/transfer_package_client.rb +1 -1
  981. data/lib/oci/dts/transfer_package_client_composite_operations.rb +1 -1
  982. data/lib/oci/email/email.rb +1 -1
  983. data/lib/oci/email/email_client.rb +1 -1
  984. data/lib/oci/email/email_client_composite_operations.rb +1 -1
  985. data/lib/oci/email/models/change_sender_compartment_details.rb +1 -1
  986. data/lib/oci/email/models/create_sender_details.rb +1 -1
  987. data/lib/oci/email/models/create_suppression_details.rb +1 -1
  988. data/lib/oci/email/models/sender.rb +1 -1
  989. data/lib/oci/email/models/sender_summary.rb +1 -1
  990. data/lib/oci/email/models/suppression.rb +1 -1
  991. data/lib/oci/email/models/suppression_summary.rb +1 -1
  992. data/lib/oci/email/models/update_sender_details.rb +1 -1
  993. data/lib/oci/errors.rb +1 -1
  994. data/lib/oci/events/events.rb +1 -1
  995. data/lib/oci/events/events_client.rb +2 -2
  996. data/lib/oci/events/events_client_composite_operations.rb +1 -1
  997. data/lib/oci/events/models/action.rb +22 -3
  998. data/lib/oci/events/models/action_details.rb +1 -1
  999. data/lib/oci/events/models/action_details_list.rb +1 -1
  1000. data/lib/oci/events/models/action_list.rb +1 -1
  1001. data/lib/oci/events/models/change_rule_compartment_details.rb +1 -1
  1002. data/lib/oci/events/models/create_faa_s_action_details.rb +1 -1
  1003. data/lib/oci/events/models/create_notification_service_action_details.rb +1 -1
  1004. data/lib/oci/events/models/create_rule_details.rb +2 -7
  1005. data/lib/oci/events/models/create_streaming_service_action_details.rb +1 -1
  1006. data/lib/oci/events/models/faa_s_action.rb +6 -2
  1007. data/lib/oci/events/models/notification_service_action.rb +6 -2
  1008. data/lib/oci/events/models/rule.rb +3 -8
  1009. data/lib/oci/events/models/rule_summary.rb +3 -8
  1010. data/lib/oci/events/models/streaming_service_action.rb +6 -2
  1011. data/lib/oci/events/models/update_rule_details.rb +2 -7
  1012. data/lib/oci/file_storage/file_storage.rb +1 -1
  1013. data/lib/oci/file_storage/file_storage_client.rb +68 -60
  1014. data/lib/oci/file_storage/file_storage_client_composite_operations.rb +1 -1
  1015. data/lib/oci/file_storage/models/change_file_system_compartment_details.rb +1 -1
  1016. data/lib/oci/file_storage/models/change_mount_target_compartment_details.rb +1 -1
  1017. data/lib/oci/file_storage/models/client_options.rb +1 -1
  1018. data/lib/oci/file_storage/models/create_export_details.rb +1 -1
  1019. data/lib/oci/file_storage/models/create_file_system_details.rb +1 -1
  1020. data/lib/oci/file_storage/models/create_mount_target_details.rb +20 -2
  1021. data/lib/oci/file_storage/models/create_snapshot_details.rb +1 -1
  1022. data/lib/oci/file_storage/models/export.rb +1 -1
  1023. data/lib/oci/file_storage/models/export_set.rb +1 -1
  1024. data/lib/oci/file_storage/models/export_set_summary.rb +1 -1
  1025. data/lib/oci/file_storage/models/export_summary.rb +1 -1
  1026. data/lib/oci/file_storage/models/file_system.rb +2 -2
  1027. data/lib/oci/file_storage/models/file_system_summary.rb +1 -1
  1028. data/lib/oci/file_storage/models/mount_target.rb +20 -2
  1029. data/lib/oci/file_storage/models/mount_target_summary.rb +20 -2
  1030. data/lib/oci/file_storage/models/snapshot.rb +1 -1
  1031. data/lib/oci/file_storage/models/snapshot_summary.rb +1 -1
  1032. data/lib/oci/file_storage/models/update_export_details.rb +1 -1
  1033. data/lib/oci/file_storage/models/update_export_set_details.rb +1 -1
  1034. data/lib/oci/file_storage/models/update_file_system_details.rb +6 -5
  1035. data/lib/oci/file_storage/models/update_mount_target_details.rb +20 -2
  1036. data/lib/oci/file_storage/models/update_snapshot_details.rb +1 -1
  1037. data/lib/oci/functions/functions.rb +1 -1
  1038. data/lib/oci/functions/functions_invoke_client.rb +1 -1
  1039. data/lib/oci/functions/functions_invoke_client_composite_operations.rb +1 -1
  1040. data/lib/oci/functions/functions_management_client.rb +1 -1
  1041. data/lib/oci/functions/functions_management_client_composite_operations.rb +1 -1
  1042. data/lib/oci/functions/models/application.rb +1 -1
  1043. data/lib/oci/functions/models/application_summary.rb +1 -1
  1044. data/lib/oci/functions/models/change_application_compartment_details.rb +1 -1
  1045. data/lib/oci/functions/models/create_application_details.rb +1 -1
  1046. data/lib/oci/functions/models/create_function_details.rb +1 -1
  1047. data/lib/oci/functions/models/function.rb +1 -1
  1048. data/lib/oci/functions/models/function_summary.rb +1 -1
  1049. data/lib/oci/functions/models/update_application_details.rb +1 -1
  1050. data/lib/oci/functions/models/update_function_details.rb +1 -1
  1051. data/lib/oci/global_context.rb +1 -1
  1052. data/lib/oci/healthchecks/health_checks_client.rb +1 -1
  1053. data/lib/oci/healthchecks/health_checks_client_composite_operations.rb +1 -1
  1054. data/lib/oci/healthchecks/healthchecks.rb +1 -1
  1055. data/lib/oci/healthchecks/models/change_http_monitor_compartment_details.rb +1 -1
  1056. data/lib/oci/healthchecks/models/change_ping_monitor_compartment_details.rb +1 -1
  1057. data/lib/oci/healthchecks/models/connection.rb +1 -1
  1058. data/lib/oci/healthchecks/models/create_http_monitor_details.rb +1 -1
  1059. data/lib/oci/healthchecks/models/create_on_demand_http_probe_details.rb +1 -1
  1060. data/lib/oci/healthchecks/models/create_on_demand_ping_probe_details.rb +1 -1
  1061. data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +1 -1
  1062. data/lib/oci/healthchecks/models/dns.rb +1 -1
  1063. data/lib/oci/healthchecks/models/geolocation.rb +1 -1
  1064. data/lib/oci/healthchecks/models/health_checks_vantage_point_summary.rb +1 -1
  1065. data/lib/oci/healthchecks/models/http_monitor.rb +1 -1
  1066. data/lib/oci/healthchecks/models/http_monitor_summary.rb +1 -1
  1067. data/lib/oci/healthchecks/models/http_probe.rb +1 -1
  1068. data/lib/oci/healthchecks/models/http_probe_method.rb +1 -1
  1069. data/lib/oci/healthchecks/models/http_probe_protocol.rb +1 -1
  1070. data/lib/oci/healthchecks/models/http_probe_result_summary.rb +1 -1
  1071. data/lib/oci/healthchecks/models/ping_monitor.rb +1 -1
  1072. data/lib/oci/healthchecks/models/ping_monitor_summary.rb +1 -1
  1073. data/lib/oci/healthchecks/models/ping_probe.rb +1 -1
  1074. data/lib/oci/healthchecks/models/ping_probe_protocol.rb +1 -1
  1075. data/lib/oci/healthchecks/models/ping_probe_result_summary.rb +1 -1
  1076. data/lib/oci/healthchecks/models/routing.rb +1 -1
  1077. data/lib/oci/healthchecks/models/tcp_connection.rb +1 -1
  1078. data/lib/oci/healthchecks/models/update_http_monitor_details.rb +1 -1
  1079. data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +1 -1
  1080. data/lib/oci/identity/identity.rb +11 -1
  1081. data/lib/oci/identity/identity_client.rb +637 -13
  1082. data/lib/oci/identity/identity_client_composite_operations.rb +40 -1
  1083. data/lib/oci/identity/models/add_user_to_group_details.rb +1 -1
  1084. data/lib/oci/identity/models/api_key.rb +1 -1
  1085. data/lib/oci/identity/models/auth_token.rb +1 -1
  1086. data/lib/oci/identity/models/authentication_policy.rb +1 -1
  1087. data/lib/oci/identity/models/availability_domain.rb +1 -1
  1088. data/lib/oci/identity/models/base_tag_definition_validator.rb +11 -9
  1089. data/lib/oci/identity/models/change_tag_namespace_compartment_detail.rb +1 -1
  1090. data/lib/oci/identity/models/compartment.rb +1 -1
  1091. data/lib/oci/identity/models/create_api_key_details.rb +1 -1
  1092. data/lib/oci/identity/models/create_auth_token_details.rb +1 -1
  1093. data/lib/oci/identity/models/create_compartment_details.rb +1 -1
  1094. data/lib/oci/identity/models/create_customer_secret_key_details.rb +1 -1
  1095. data/lib/oci/identity/models/create_dynamic_group_details.rb +1 -1
  1096. data/lib/oci/identity/models/create_group_details.rb +1 -1
  1097. data/lib/oci/identity/models/create_identity_provider_details.rb +1 -1
  1098. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +1 -1
  1099. data/lib/oci/identity/models/create_network_source_details.rb +251 -0
  1100. data/lib/oci/identity/models/create_o_auth2_client_credential_details.rb +169 -0
  1101. data/lib/oci/identity/models/create_policy_details.rb +1 -1
  1102. data/lib/oci/identity/models/create_region_subscription_details.rb +1 -1
  1103. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +1 -1
  1104. data/lib/oci/identity/models/create_smtp_credential_details.rb +1 -1
  1105. data/lib/oci/identity/models/create_swift_password_details.rb +1 -1
  1106. data/lib/oci/identity/models/create_tag_default_details.rb +1 -1
  1107. data/lib/oci/identity/models/create_tag_details.rb +11 -4
  1108. data/lib/oci/identity/models/create_tag_namespace_details.rb +3 -1
  1109. data/lib/oci/identity/models/create_user_details.rb +1 -1
  1110. data/lib/oci/identity/models/customer_secret_key.rb +1 -1
  1111. data/lib/oci/identity/models/customer_secret_key_summary.rb +1 -1
  1112. data/lib/oci/identity/models/default_tag_definition_validator.rb +4 -3
  1113. data/lib/oci/identity/models/dynamic_group.rb +1 -1
  1114. data/lib/oci/identity/models/enum_tag_definition_validator.rb +4 -3
  1115. data/lib/oci/identity/models/fault_domain.rb +1 -1
  1116. data/lib/oci/identity/models/fully_qualified_scope.rb +159 -0
  1117. data/lib/oci/identity/models/group.rb +1 -1
  1118. data/lib/oci/identity/models/identity_provider.rb +1 -1
  1119. data/lib/oci/identity/models/identity_provider_group_summary.rb +1 -1
  1120. data/lib/oci/identity/models/idp_group_mapping.rb +1 -1
  1121. data/lib/oci/identity/models/mfa_totp_device.rb +1 -1
  1122. data/lib/oci/identity/models/mfa_totp_device_summary.rb +1 -1
  1123. data/lib/oci/identity/models/mfa_totp_token.rb +1 -1
  1124. data/lib/oci/identity/models/move_compartment_details.rb +1 -1
  1125. data/lib/oci/identity/models/network_sources.rb +333 -0
  1126. data/lib/oci/identity/models/network_sources_summary.rb +246 -0
  1127. data/lib/oci/identity/models/network_sources_virtual_source_list.rb +165 -0
  1128. data/lib/oci/identity/models/o_auth2_client_credential.rb +292 -0
  1129. data/lib/oci/identity/models/o_auth2_client_credential_summary.rb +282 -0
  1130. data/lib/oci/identity/models/password_policy.rb +1 -1
  1131. data/lib/oci/identity/models/policy.rb +1 -1
  1132. data/lib/oci/identity/models/region.rb +1 -1
  1133. data/lib/oci/identity/models/region_subscription.rb +1 -1
  1134. data/lib/oci/identity/models/saml2_identity_provider.rb +1 -1
  1135. data/lib/oci/identity/models/scim_client_credentials.rb +1 -1
  1136. data/lib/oci/identity/models/smtp_credential.rb +1 -1
  1137. data/lib/oci/identity/models/smtp_credential_summary.rb +1 -1
  1138. data/lib/oci/identity/models/swift_password.rb +1 -1
  1139. data/lib/oci/identity/models/tag.rb +13 -5
  1140. data/lib/oci/identity/models/tag_default.rb +1 -1
  1141. data/lib/oci/identity/models/tag_default_summary.rb +1 -1
  1142. data/lib/oci/identity/models/tag_namespace.rb +1 -1
  1143. data/lib/oci/identity/models/tag_namespace_summary.rb +1 -1
  1144. data/lib/oci/identity/models/tag_summary.rb +1 -1
  1145. data/lib/oci/identity/models/tagging_work_request.rb +1 -1
  1146. data/lib/oci/identity/models/tagging_work_request_error_summary.rb +1 -1
  1147. data/lib/oci/identity/models/tagging_work_request_log_summary.rb +1 -1
  1148. data/lib/oci/identity/models/tagging_work_request_summary.rb +1 -1
  1149. data/lib/oci/identity/models/tenancy.rb +16 -2
  1150. data/lib/oci/identity/models/ui_password.rb +1 -1
  1151. data/lib/oci/identity/models/ui_password_information.rb +1 -1
  1152. data/lib/oci/identity/models/update_auth_token_details.rb +1 -1
  1153. data/lib/oci/identity/models/update_authentication_policy_details.rb +1 -1
  1154. data/lib/oci/identity/models/update_compartment_details.rb +1 -1
  1155. data/lib/oci/identity/models/update_customer_secret_key_details.rb +1 -1
  1156. data/lib/oci/identity/models/update_dynamic_group_details.rb +1 -1
  1157. data/lib/oci/identity/models/update_group_details.rb +1 -1
  1158. data/lib/oci/identity/models/update_identity_provider_details.rb +1 -1
  1159. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +1 -1
  1160. data/lib/oci/identity/models/update_network_source_details.rb +225 -0
  1161. data/lib/oci/identity/models/update_o_auth2_client_credential_details.rb +173 -0
  1162. data/lib/oci/identity/models/update_policy_details.rb +1 -1
  1163. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +1 -1
  1164. data/lib/oci/identity/models/update_smtp_credential_details.rb +1 -1
  1165. data/lib/oci/identity/models/update_state_details.rb +1 -1
  1166. data/lib/oci/identity/models/update_swift_password_details.rb +1 -1
  1167. data/lib/oci/identity/models/update_tag_default_details.rb +1 -1
  1168. data/lib/oci/identity/models/update_tag_details.rb +11 -4
  1169. data/lib/oci/identity/models/update_tag_namespace_details.rb +1 -1
  1170. data/lib/oci/identity/models/update_user_capabilities_details.rb +20 -5
  1171. data/lib/oci/identity/models/update_user_details.rb +1 -1
  1172. data/lib/oci/identity/models/user.rb +2 -1
  1173. data/lib/oci/identity/models/user_capabilities.rb +20 -5
  1174. data/lib/oci/identity/models/user_group_membership.rb +1 -1
  1175. data/lib/oci/identity/models/work_request.rb +1 -1
  1176. data/lib/oci/identity/models/work_request_error.rb +1 -1
  1177. data/lib/oci/identity/models/work_request_log_entry.rb +1 -1
  1178. data/lib/oci/identity/models/work_request_resource.rb +1 -1
  1179. data/lib/oci/identity/models/work_request_summary.rb +1 -1
  1180. data/lib/oci/integration/integration.rb +1 -1
  1181. data/lib/oci/integration/integration_instance_client.rb +1 -1
  1182. data/lib/oci/integration/integration_instance_client_composite_operations.rb +1 -1
  1183. data/lib/oci/integration/models/change_integration_instance_compartment_details.rb +1 -1
  1184. data/lib/oci/integration/models/create_integration_instance_details.rb +1 -1
  1185. data/lib/oci/integration/models/integration_instance.rb +1 -1
  1186. data/lib/oci/integration/models/integration_instance_summary.rb +1 -1
  1187. data/lib/oci/integration/models/update_integration_instance_details.rb +1 -1
  1188. data/lib/oci/integration/models/work_request.rb +1 -1
  1189. data/lib/oci/integration/models/work_request_error.rb +1 -1
  1190. data/lib/oci/integration/models/work_request_log_entry.rb +1 -1
  1191. data/lib/oci/integration/models/work_request_resource.rb +1 -1
  1192. data/lib/oci/integration/models/work_request_summary.rb +1 -1
  1193. data/lib/oci/key_management/key_management.rb +7 -1
  1194. data/lib/oci/key_management/kms_crypto_client.rb +4 -5
  1195. data/lib/oci/key_management/kms_crypto_client_composite_operations.rb +1 -1
  1196. data/lib/oci/key_management/kms_management_client.rb +438 -20
  1197. data/lib/oci/key_management/kms_management_client_composite_operations.rb +121 -1
  1198. data/lib/oci/key_management/kms_vault_client.rb +113 -18
  1199. data/lib/oci/key_management/kms_vault_client_composite_operations.rb +1 -1
  1200. data/lib/oci/key_management/models/change_key_compartment_details.rb +2 -2
  1201. data/lib/oci/key_management/models/change_vault_compartment_details.rb +2 -2
  1202. data/lib/oci/key_management/models/create_key_details.rb +8 -7
  1203. data/lib/oci/key_management/models/create_vault_details.rb +9 -7
  1204. data/lib/oci/key_management/models/decrypt_data_details.rb +5 -6
  1205. data/lib/oci/key_management/models/decrypted_data.rb +1 -1
  1206. data/lib/oci/key_management/models/encrypt_data_details.rb +4 -4
  1207. data/lib/oci/key_management/models/encrypted_data.rb +1 -1
  1208. data/lib/oci/key_management/models/generate_key_details.rb +6 -6
  1209. data/lib/oci/key_management/models/generated_key.rb +8 -9
  1210. data/lib/oci/key_management/models/import_key_details.rb +230 -0
  1211. data/lib/oci/key_management/models/import_key_version_details.rb +186 -0
  1212. data/lib/oci/key_management/models/key.rb +12 -11
  1213. data/lib/oci/key_management/models/key_shape.rb +3 -2
  1214. data/lib/oci/key_management/models/key_summary.rb +7 -6
  1215. data/lib/oci/key_management/models/key_version.rb +92 -2
  1216. data/lib/oci/key_management/models/key_version_summary.rb +93 -3
  1217. data/lib/oci/key_management/models/schedule_key_deletion_details.rb +7 -5
  1218. data/lib/oci/key_management/models/schedule_key_version_deletion_details.rb +156 -0
  1219. data/lib/oci/key_management/models/schedule_vault_deletion_details.rb +7 -5
  1220. data/lib/oci/key_management/models/update_key_details.rb +7 -6
  1221. data/lib/oci/key_management/models/update_vault_details.rb +7 -6
  1222. data/lib/oci/key_management/models/vault.rb +34 -14
  1223. data/lib/oci/key_management/models/vault_summary.rb +15 -9
  1224. data/lib/oci/key_management/models/vault_usage.rb +167 -0
  1225. data/lib/oci/key_management/models/wrapped_import_key.rb +179 -0
  1226. data/lib/oci/key_management/models/wrapping_key.rb +248 -0
  1227. data/lib/oci/limits/limits.rb +1 -1
  1228. data/lib/oci/limits/limits_client.rb +1 -1
  1229. data/lib/oci/limits/limits_client_composite_operations.rb +1 -1
  1230. data/lib/oci/limits/models/create_quota_details.rb +1 -1
  1231. data/lib/oci/limits/models/limit_definition_summary.rb +1 -1
  1232. data/lib/oci/limits/models/limit_value_summary.rb +1 -1
  1233. data/lib/oci/limits/models/quota.rb +1 -1
  1234. data/lib/oci/limits/models/quota_summary.rb +1 -1
  1235. data/lib/oci/limits/models/resource_availability.rb +1 -1
  1236. data/lib/oci/limits/models/service_summary.rb +1 -1
  1237. data/lib/oci/limits/models/update_quota_details.rb +1 -1
  1238. data/lib/oci/limits/quotas_client.rb +1 -1
  1239. data/lib/oci/limits/quotas_client_composite_operations.rb +1 -1
  1240. data/lib/oci/load_balancer/load_balancer.rb +4 -1
  1241. data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
  1242. data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +1 -1
  1243. data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +1 -1
  1244. data/lib/oci/load_balancer/models/add_http_response_header_rule.rb +1 -1
  1245. data/lib/oci/load_balancer/models/allow_rule.rb +1 -1
  1246. data/lib/oci/load_balancer/models/backend.rb +1 -1
  1247. data/lib/oci/load_balancer/models/backend_details.rb +1 -1
  1248. data/lib/oci/load_balancer/models/backend_health.rb +1 -1
  1249. data/lib/oci/load_balancer/models/backend_set.rb +1 -1
  1250. data/lib/oci/load_balancer/models/backend_set_details.rb +1 -1
  1251. data/lib/oci/load_balancer/models/backend_set_health.rb +1 -1
  1252. data/lib/oci/load_balancer/models/certificate.rb +1 -1
  1253. data/lib/oci/load_balancer/models/certificate_details.rb +1 -1
  1254. data/lib/oci/load_balancer/models/change_load_balancer_compartment_details.rb +1 -1
  1255. data/lib/oci/load_balancer/models/connection_configuration.rb +22 -5
  1256. data/lib/oci/load_balancer/models/control_access_using_http_methods_rule.rb +1 -1
  1257. data/lib/oci/load_balancer/models/create_backend_details.rb +1 -1
  1258. data/lib/oci/load_balancer/models/create_backend_set_details.rb +1 -1
  1259. data/lib/oci/load_balancer/models/create_certificate_details.rb +1 -1
  1260. data/lib/oci/load_balancer/models/create_hostname_details.rb +1 -1
  1261. data/lib/oci/load_balancer/models/create_listener_details.rb +1 -1
  1262. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +1 -1
  1263. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +1 -1
  1264. data/lib/oci/load_balancer/models/create_rule_set_details.rb +1 -1
  1265. data/lib/oci/load_balancer/models/extend_http_request_header_value_rule.rb +1 -1
  1266. data/lib/oci/load_balancer/models/extend_http_response_header_value_rule.rb +1 -1
  1267. data/lib/oci/load_balancer/models/health_check_result.rb +1 -1
  1268. data/lib/oci/load_balancer/models/health_checker.rb +1 -1
  1269. data/lib/oci/load_balancer/models/health_checker_details.rb +1 -1
  1270. data/lib/oci/load_balancer/models/hostname.rb +1 -1
  1271. data/lib/oci/load_balancer/models/hostname_details.rb +1 -1
  1272. data/lib/oci/load_balancer/models/ip_address.rb +1 -1
  1273. data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +1 -1
  1274. data/lib/oci/load_balancer/models/listener.rb +1 -1
  1275. data/lib/oci/load_balancer/models/listener_details.rb +1 -1
  1276. data/lib/oci/load_balancer/models/listener_rule_summary.rb +1 -1
  1277. data/lib/oci/load_balancer/models/load_balancer.rb +1 -1
  1278. data/lib/oci/load_balancer/models/load_balancer_health.rb +1 -1
  1279. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +1 -1
  1280. data/lib/oci/load_balancer/models/load_balancer_policy.rb +1 -1
  1281. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +1 -1
  1282. data/lib/oci/load_balancer/models/load_balancer_shape.rb +1 -1
  1283. data/lib/oci/load_balancer/models/path_match_condition.rb +210 -0
  1284. data/lib/oci/load_balancer/models/path_match_type.rb +1 -1
  1285. data/lib/oci/load_balancer/models/path_route.rb +1 -1
  1286. data/lib/oci/load_balancer/models/path_route_set.rb +1 -1
  1287. data/lib/oci/load_balancer/models/path_route_set_details.rb +1 -1
  1288. data/lib/oci/load_balancer/models/redirect_rule.rb +212 -0
  1289. data/lib/oci/load_balancer/models/redirect_uri.rb +323 -0
  1290. data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +1 -1
  1291. data/lib/oci/load_balancer/models/remove_http_response_header_rule.rb +1 -1
  1292. data/lib/oci/load_balancer/models/rule.rb +3 -1
  1293. data/lib/oci/load_balancer/models/rule_condition.rb +3 -1
  1294. data/lib/oci/load_balancer/models/rule_set.rb +1 -1
  1295. data/lib/oci/load_balancer/models/rule_set_details.rb +1 -1
  1296. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +1 -1
  1297. data/lib/oci/load_balancer/models/source_ip_address_condition.rb +1 -1
  1298. data/lib/oci/load_balancer/models/source_vcn_id_condition.rb +1 -1
  1299. data/lib/oci/load_balancer/models/source_vcn_ip_address_condition.rb +1 -1
  1300. data/lib/oci/load_balancer/models/ssl_configuration.rb +1 -1
  1301. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +1 -1
  1302. data/lib/oci/load_balancer/models/update_backend_details.rb +1 -1
  1303. data/lib/oci/load_balancer/models/update_backend_set_details.rb +1 -1
  1304. data/lib/oci/load_balancer/models/update_health_checker_details.rb +1 -1
  1305. data/lib/oci/load_balancer/models/update_hostname_details.rb +1 -1
  1306. data/lib/oci/load_balancer/models/update_listener_details.rb +1 -1
  1307. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +1 -1
  1308. data/lib/oci/load_balancer/models/update_network_security_groups_details.rb +1 -1
  1309. data/lib/oci/load_balancer/models/update_path_route_set_details.rb +1 -1
  1310. data/lib/oci/load_balancer/models/update_rule_set_details.rb +1 -1
  1311. data/lib/oci/load_balancer/models/work_request.rb +1 -1
  1312. data/lib/oci/load_balancer/models/work_request_error.rb +1 -1
  1313. data/lib/oci/marketplace/marketplace.rb +50 -0
  1314. data/lib/oci/marketplace/marketplace_client.rb +1009 -0
  1315. data/lib/oci/marketplace/marketplace_client_composite_operations.rb +24 -0
  1316. data/lib/oci/marketplace/models/accepted_agreement.rb +270 -0
  1317. data/lib/oci/marketplace/models/accepted_agreement_summary.rb +233 -0
  1318. data/lib/oci/marketplace/models/agreement.rb +229 -0
  1319. data/lib/oci/marketplace/models/agreement_summary.rb +204 -0
  1320. data/lib/oci/marketplace/models/category_summary.rb +149 -0
  1321. data/lib/oci/marketplace/models/create_accepted_agreement_details.rb +258 -0
  1322. data/lib/oci/marketplace/models/documentation_link.rb +173 -0
  1323. data/lib/oci/marketplace/models/error_entity.rb +159 -0
  1324. data/lib/oci/marketplace/models/image_listing_package.rb +209 -0
  1325. data/lib/oci/marketplace/models/item.rb +159 -0
  1326. data/lib/oci/marketplace/models/link.rb +182 -0
  1327. data/lib/oci/marketplace/models/link_enum.rb +13 -0
  1328. data/lib/oci/marketplace/models/listing.rb +478 -0
  1329. data/lib/oci/marketplace/models/listing_package.rb +265 -0
  1330. data/lib/oci/marketplace/models/listing_package_summary.rb +233 -0
  1331. data/lib/oci/marketplace/models/listing_summary.rb +300 -0
  1332. data/lib/oci/marketplace/models/named_link.rb +159 -0
  1333. data/lib/oci/marketplace/models/orchestration_listing_package.rb +195 -0
  1334. data/lib/oci/marketplace/models/orchestration_variable.rb +237 -0
  1335. data/lib/oci/marketplace/models/orchestration_variable_type_enum.rb +10 -0
  1336. data/lib/oci/marketplace/models/package_type_enum.rb +10 -0
  1337. data/lib/oci/marketplace/models/pricing_currency_enum.rb +9 -0
  1338. data/lib/oci/marketplace/models/pricing_model.rb +243 -0
  1339. data/lib/oci/marketplace/models/pricing_strategy_enum.rb +12 -0
  1340. data/lib/oci/marketplace/models/pricing_type_enum.rb +11 -0
  1341. data/lib/oci/marketplace/models/publisher.rb +258 -0
  1342. data/lib/oci/marketplace/models/publisher_summary.rb +169 -0
  1343. data/lib/oci/marketplace/models/region.rb +169 -0
  1344. data/lib/oci/marketplace/models/screenshot.rb +201 -0
  1345. data/lib/oci/marketplace/models/support_contact.rb +179 -0
  1346. data/lib/oci/marketplace/models/update_accepted_agreement_details.rb +190 -0
  1347. data/lib/oci/marketplace/models/upload_data.rb +191 -0
  1348. data/lib/oci/marketplace/util.rb +2 -0
  1349. data/lib/oci/monitoring/models/aggregated_datapoint.rb +1 -1
  1350. data/lib/oci/monitoring/models/alarm.rb +1 -1
  1351. data/lib/oci/monitoring/models/alarm_history_collection.rb +1 -1
  1352. data/lib/oci/monitoring/models/alarm_history_entry.rb +1 -1
  1353. data/lib/oci/monitoring/models/alarm_status_summary.rb +1 -1
  1354. data/lib/oci/monitoring/models/alarm_summary.rb +1 -1
  1355. data/lib/oci/monitoring/models/change_alarm_compartment_details.rb +1 -1
  1356. data/lib/oci/monitoring/models/create_alarm_details.rb +1 -1
  1357. data/lib/oci/monitoring/models/datapoint.rb +1 -1
  1358. data/lib/oci/monitoring/models/failed_metric_record.rb +1 -1
  1359. data/lib/oci/monitoring/models/list_metrics_details.rb +1 -1
  1360. data/lib/oci/monitoring/models/metric.rb +1 -1
  1361. data/lib/oci/monitoring/models/metric_data.rb +1 -1
  1362. data/lib/oci/monitoring/models/metric_data_details.rb +1 -1
  1363. data/lib/oci/monitoring/models/post_metric_data_details.rb +1 -1
  1364. data/lib/oci/monitoring/models/post_metric_data_response_details.rb +1 -1
  1365. data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +1 -1
  1366. data/lib/oci/monitoring/models/suppression.rb +1 -1
  1367. data/lib/oci/monitoring/models/update_alarm_details.rb +1 -1
  1368. data/lib/oci/monitoring/monitoring.rb +1 -1
  1369. data/lib/oci/monitoring/monitoring_client.rb +1 -1
  1370. data/lib/oci/monitoring/monitoring_client_composite_operations.rb +1 -1
  1371. data/lib/oci/nosql/models/change_table_compartment_details.rb +172 -0
  1372. data/lib/oci/nosql/models/column.rb +187 -0
  1373. data/lib/oci/nosql/models/create_index_details.rb +195 -0
  1374. data/lib/oci/nosql/models/create_table_details.rb +225 -0
  1375. data/lib/oci/nosql/models/delete_row_result.rb +193 -0
  1376. data/lib/oci/nosql/models/index.rb +254 -0
  1377. data/lib/oci/nosql/models/index_collection.rb +149 -0
  1378. data/lib/oci/nosql/models/index_key.rb +186 -0
  1379. data/lib/oci/nosql/models/index_summary.rb +188 -0
  1380. data/lib/oci/nosql/models/prepared_statement.rb +160 -0
  1381. data/lib/oci/nosql/models/query_details.rb +245 -0
  1382. data/lib/oci/nosql/models/query_result_collection.rb +158 -0
  1383. data/lib/oci/nosql/models/request_usage.rb +167 -0
  1384. data/lib/oci/nosql/models/row.rb +175 -0
  1385. data/lib/oci/nosql/models/schema.rb +187 -0
  1386. data/lib/oci/nosql/models/statement_summary.rb +247 -0
  1387. data/lib/oci/nosql/models/table.rb +328 -0
  1388. data/lib/oci/nosql/models/table_collection.rb +149 -0
  1389. data/lib/oci/nosql/models/table_limits.rb +181 -0
  1390. data/lib/oci/nosql/models/table_summary.rb +281 -0
  1391. data/lib/oci/nosql/models/table_usage_collection.rb +149 -0
  1392. data/lib/oci/nosql/models/table_usage_summary.rb +247 -0
  1393. data/lib/oci/nosql/models/update_row_details.rb +284 -0
  1394. data/lib/oci/nosql/models/update_row_result.rb +207 -0
  1395. data/lib/oci/nosql/models/update_table_details.rb +219 -0
  1396. data/lib/oci/nosql/models/work_request.rb +305 -0
  1397. data/lib/oci/nosql/models/work_request_collection.rb +149 -0
  1398. data/lib/oci/nosql/models/work_request_error.rb +173 -0
  1399. data/lib/oci/nosql/models/work_request_error_collection.rb +149 -0
  1400. data/lib/oci/nosql/models/work_request_log_entry.rb +159 -0
  1401. data/lib/oci/nosql/models/work_request_log_entry_collection.rb +149 -0
  1402. data/lib/oci/nosql/models/work_request_resource.rb +219 -0
  1403. data/lib/oci/nosql/models/work_request_summary.rb +305 -0
  1404. data/lib/oci/nosql/nosql.rb +52 -0
  1405. data/lib/oci/nosql/nosql_client.rb +1559 -0
  1406. data/lib/oci/nosql/nosql_client_composite_operations.rb +371 -0
  1407. data/lib/oci/nosql/util.rb +2 -0
  1408. data/lib/oci/object_storage/models/bucket.rb +55 -10
  1409. data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
  1410. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +1 -1
  1411. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +1 -1
  1412. data/lib/oci/object_storage/models/copy_object_details.rb +1 -1
  1413. data/lib/oci/object_storage/models/create_bucket_details.rb +8 -5
  1414. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +54 -5
  1415. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +2 -2
  1416. data/lib/oci/object_storage/models/create_replication_policy_details.rb +179 -0
  1417. data/lib/oci/object_storage/models/create_retention_rule_details.rb +177 -0
  1418. data/lib/oci/object_storage/models/duration.rb +192 -0
  1419. data/lib/oci/object_storage/models/list_objects.rb +2 -2
  1420. data/lib/oci/object_storage/models/multipart_upload.rb +2 -2
  1421. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +1 -1
  1422. data/lib/oci/object_storage/models/namespace_metadata.rb +1 -1
  1423. data/lib/oci/object_storage/models/object_lifecycle_policy.rb +2 -2
  1424. data/lib/oci/object_storage/models/object_lifecycle_rule.rb +2 -3
  1425. data/lib/oci/object_storage/models/object_name_filter.rb +1 -1
  1426. data/lib/oci/object_storage/models/object_summary.rb +16 -6
  1427. data/lib/oci/object_storage/models/pattern_details.rb +1 -1
  1428. data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -3
  1429. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -3
  1430. data/lib/oci/object_storage/models/put_object_lifecycle_policy_details.rb +1 -1
  1431. data/lib/oci/object_storage/models/rename_object_details.rb +1 -1
  1432. data/lib/oci/object_storage/models/replication_policy.rb +262 -0
  1433. data/lib/oci/object_storage/models/replication_policy_summary.rb +265 -0
  1434. data/lib/oci/object_storage/models/replication_source.rb +181 -0
  1435. data/lib/oci/object_storage/models/restore_objects_details.rb +1 -1
  1436. data/lib/oci/object_storage/models/retention_rule.rb +226 -0
  1437. data/lib/oci/object_storage/models/retention_rule_collection.rb +150 -0
  1438. data/lib/oci/object_storage/models/retention_rule_details.rb +180 -0
  1439. data/lib/oci/object_storage/models/retention_rule_summary.rb +223 -0
  1440. data/lib/oci/object_storage/models/update_bucket_details.rb +10 -8
  1441. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +1 -1
  1442. data/lib/oci/object_storage/models/update_retention_rule_details.rb +177 -0
  1443. data/lib/oci/object_storage/models/work_request.rb +6 -6
  1444. data/lib/oci/object_storage/models/work_request_error.rb +1 -1
  1445. data/lib/oci/object_storage/models/work_request_log_entry.rb +2 -2
  1446. data/lib/oci/object_storage/models/work_request_resource.rb +1 -1
  1447. data/lib/oci/object_storage/models/work_request_resource_metadata_key.rb +1 -1
  1448. data/lib/oci/object_storage/models/work_request_summary.rb +6 -6
  1449. data/lib/oci/object_storage/object_storage.rb +12 -1
  1450. data/lib/oci/object_storage/object_storage_client.rb +893 -170
  1451. data/lib/oci/object_storage/object_storage_client_composite_operations.rb +1 -1
  1452. data/lib/oci/oce/models/change_oce_instance_compartment_details.rb +1 -1
  1453. data/lib/oci/oce/models/create_oce_instance_details.rb +99 -2
  1454. data/lib/oci/oce/models/identity_stripe_details.rb +167 -0
  1455. data/lib/oci/oce/models/oce_instance.rb +130 -2
  1456. data/lib/oci/oce/models/oce_instance_summary.rb +98 -2
  1457. data/lib/oci/oce/models/update_oce_instance_details.rb +16 -2
  1458. data/lib/oci/oce/models/work_request.rb +1 -1
  1459. data/lib/oci/oce/models/work_request_error.rb +1 -1
  1460. data/lib/oci/oce/models/work_request_log_entry.rb +1 -1
  1461. data/lib/oci/oce/models/work_request_resource.rb +2 -1
  1462. data/lib/oci/oce/models/workflow_monitor.rb +1 -1
  1463. data/lib/oci/oce/models/workflow_step.rb +1 -1
  1464. data/lib/oci/oce/oce.rb +2 -2
  1465. data/lib/oci/oce/oce_instance_client.rb +3 -5
  1466. data/lib/oci/oce/oce_instance_client_composite_operations.rb +3 -4
  1467. data/lib/oci/oda/models/change_oda_instance_compartment_details.rb +1 -1
  1468. data/lib/oci/oda/models/create_oda_instance_details.rb +1 -1
  1469. data/lib/oci/oda/models/error_body.rb +1 -1
  1470. data/lib/oci/oda/models/oda_instance.rb +1 -1
  1471. data/lib/oci/oda/models/oda_instance_summary.rb +1 -1
  1472. data/lib/oci/oda/models/update_oda_instance_details.rb +1 -1
  1473. data/lib/oci/oda/models/work_request.rb +3 -1
  1474. data/lib/oci/oda/models/work_request_error.rb +1 -1
  1475. data/lib/oci/oda/models/work_request_log_entry.rb +1 -1
  1476. data/lib/oci/oda/models/work_request_resource.rb +3 -1
  1477. data/lib/oci/oda/models/work_request_summary.rb +3 -1
  1478. data/lib/oci/oda/oda.rb +1 -1
  1479. data/lib/oci/oda/oda_client.rb +144 -1
  1480. data/lib/oci/oda/oda_client_composite_operations.rb +99 -1
  1481. data/lib/oci/ons/models/backoff_retry_policy.rb +1 -1
  1482. data/lib/oci/ons/models/change_compartment_details.rb +1 -1
  1483. data/lib/oci/ons/models/confirmation_result.rb +1 -1
  1484. data/lib/oci/ons/models/create_subscription_details.rb +2 -1
  1485. data/lib/oci/ons/models/create_topic_details.rb +1 -1
  1486. data/lib/oci/ons/models/delivery_policy.rb +1 -1
  1487. data/lib/oci/ons/models/message_details.rb +1 -1
  1488. data/lib/oci/ons/models/notification_topic.rb +2 -2
  1489. data/lib/oci/ons/models/notification_topic_summary.rb +2 -2
  1490. data/lib/oci/ons/models/publish_result.rb +1 -1
  1491. data/lib/oci/ons/models/subscription.rb +1 -1
  1492. data/lib/oci/ons/models/subscription_summary.rb +1 -1
  1493. data/lib/oci/ons/models/topic_attributes_details.rb +1 -1
  1494. data/lib/oci/ons/models/update_subscription_details.rb +1 -1
  1495. data/lib/oci/ons/notification_control_plane_client.rb +2 -2
  1496. data/lib/oci/ons/notification_control_plane_client_composite_operations.rb +1 -1
  1497. data/lib/oci/ons/notification_data_plane_client.rb +11 -3
  1498. data/lib/oci/ons/notification_data_plane_client_composite_operations.rb +1 -1
  1499. data/lib/oci/ons/ons.rb +1 -1
  1500. data/lib/oci/os_management/models/add_packages_to_software_source_details.rb +153 -0
  1501. data/lib/oci/os_management/models/api_error.rb +161 -0
  1502. data/lib/oci/os_management/models/arch_types.rb +13 -0
  1503. data/lib/oci/os_management/models/attach_child_software_source_to_managed_instance_details.rb +153 -0
  1504. data/lib/oci/os_management/models/attach_parent_software_source_to_managed_instance_details.rb +153 -0
  1505. data/lib/oci/os_management/models/available_software_source_summary.rb +205 -0
  1506. data/lib/oci/os_management/models/available_update_summary.rb +284 -0
  1507. data/lib/oci/os_management/models/change_managed_instance_group_compartment_details.rb +155 -0
  1508. data/lib/oci/os_management/models/change_scheduled_job_compartment_details.rb +155 -0
  1509. data/lib/oci/os_management/models/change_software_source_compartment_details.rb +155 -0
  1510. data/lib/oci/os_management/models/checksum_types.rb +12 -0
  1511. data/lib/oci/os_management/models/create_managed_instance_group_details.rb +209 -0
  1512. data/lib/oci/os_management/models/create_scheduled_job_details.rb +399 -0
  1513. data/lib/oci/os_management/models/create_software_source_details.rb +324 -0
  1514. data/lib/oci/os_management/models/detach_child_software_source_from_managed_instance_details.rb +153 -0
  1515. data/lib/oci/os_management/models/detach_parent_software_source_from_managed_instance_details.rb +153 -0
  1516. data/lib/oci/os_management/models/errata_id.rb +159 -0
  1517. data/lib/oci/os_management/models/erratum.rb +330 -0
  1518. data/lib/oci/os_management/models/erratum_summary.rb +245 -0
  1519. data/lib/oci/os_management/models/id.rb +163 -0
  1520. data/lib/oci/os_management/models/installable_package_summary.rb +207 -0
  1521. data/lib/oci/os_management/models/installed_package_summary.rb +221 -0
  1522. data/lib/oci/os_management/models/interval_types.rb +12 -0
  1523. data/lib/oci/os_management/models/lifecycle_states.rb +14 -0
  1524. data/lib/oci/os_management/models/managed_instance.rb +347 -0
  1525. data/lib/oci/os_management/models/managed_instance_group.rb +271 -0
  1526. data/lib/oci/os_management/models/managed_instance_group_summary.rb +271 -0
  1527. data/lib/oci/os_management/models/managed_instance_summary.rb +261 -0
  1528. data/lib/oci/os_management/models/managed_instance_update_details.rb +163 -0
  1529. data/lib/oci/os_management/models/operation_status.rb +14 -0
  1530. data/lib/oci/os_management/models/operation_types.rb +12 -0
  1531. data/lib/oci/os_management/models/package_name.rb +149 -0
  1532. data/lib/oci/os_management/models/package_update_types.rb +12 -0
  1533. data/lib/oci/os_management/models/recurrence.rb +182 -0
  1534. data/lib/oci/os_management/models/remove_packages_from_software_source_details.rb +153 -0
  1535. data/lib/oci/os_management/models/schedule_types.rb +10 -0
  1536. data/lib/oci/os_management/models/scheduled_job.rb +493 -0
  1537. data/lib/oci/os_management/models/scheduled_job_summary.rb +371 -0
  1538. data/lib/oci/os_management/models/software_package.rb +289 -0
  1539. data/lib/oci/os_management/models/software_package_dependency.rb +177 -0
  1540. data/lib/oci/os_management/models/software_package_file.rb +213 -0
  1541. data/lib/oci/os_management/models/software_package_search_summary.rb +262 -0
  1542. data/lib/oci/os_management/models/software_package_summary.rb +217 -0
  1543. data/lib/oci/os_management/models/software_source.rb +519 -0
  1544. data/lib/oci/os_management/models/software_source_id.rb +159 -0
  1545. data/lib/oci/os_management/models/software_source_summary.rb +340 -0
  1546. data/lib/oci/os_management/models/updatable_package_summary.rb +239 -0
  1547. data/lib/oci/os_management/models/update_managed_instance_group_details.rb +195 -0
  1548. data/lib/oci/os_management/models/update_scheduled_job_details.rb +351 -0
  1549. data/lib/oci/os_management/models/update_software_source_details.rb +266 -0
  1550. data/lib/oci/os_management/models/update_types.rb +11 -0
  1551. data/lib/oci/os_management/models/work_request.rb +327 -0
  1552. data/lib/oci/os_management/models/work_request_error.rb +172 -0
  1553. data/lib/oci/os_management/models/work_request_log_entry.rb +161 -0
  1554. data/lib/oci/os_management/models/work_request_resource.rb +231 -0
  1555. data/lib/oci/os_management/models/work_request_summary.rb +286 -0
  1556. data/lib/oci/os_management/os_management.rb +75 -0
  1557. data/lib/oci/os_management/os_management_client.rb +3298 -0
  1558. data/lib/oci/os_management/os_management_client_composite_operations.rb +580 -0
  1559. data/lib/oci/os_management/util.rb +2 -0
  1560. data/lib/oci/regions.rb +21 -2
  1561. data/lib/oci/resource_manager/models/apply_job_operation_details.rb +1 -1
  1562. data/lib/oci/resource_manager/models/apply_job_operation_details_summary.rb +1 -1
  1563. data/lib/oci/resource_manager/models/apply_job_plan_resolution.rb +1 -1
  1564. data/lib/oci/resource_manager/models/change_stack_compartment_details.rb +1 -1
  1565. data/lib/oci/resource_manager/models/config_source.rb +1 -1
  1566. data/lib/oci/resource_manager/models/create_apply_job_operation_details.rb +1 -1
  1567. data/lib/oci/resource_manager/models/create_config_source_details.rb +1 -1
  1568. data/lib/oci/resource_manager/models/create_destroy_job_operation_details.rb +1 -1
  1569. data/lib/oci/resource_manager/models/create_import_tf_state_job_operation_details.rb +1 -1
  1570. data/lib/oci/resource_manager/models/create_job_details.rb +1 -1
  1571. data/lib/oci/resource_manager/models/create_job_operation_details.rb +1 -1
  1572. data/lib/oci/resource_manager/models/create_plan_job_operation_details.rb +1 -1
  1573. data/lib/oci/resource_manager/models/create_stack_details.rb +1 -1
  1574. data/lib/oci/resource_manager/models/create_zip_upload_config_source_details.rb +1 -1
  1575. data/lib/oci/resource_manager/models/destroy_job_operation_details.rb +1 -1
  1576. data/lib/oci/resource_manager/models/destroy_job_operation_details_summary.rb +1 -1
  1577. data/lib/oci/resource_manager/models/failure_details.rb +1 -1
  1578. data/lib/oci/resource_manager/models/import_tf_state_job_operation_details.rb +1 -1
  1579. data/lib/oci/resource_manager/models/import_tf_state_job_operation_details_summary.rb +1 -1
  1580. data/lib/oci/resource_manager/models/job.rb +1 -1
  1581. data/lib/oci/resource_manager/models/job_operation_details.rb +1 -1
  1582. data/lib/oci/resource_manager/models/job_operation_details_summary.rb +1 -1
  1583. data/lib/oci/resource_manager/models/job_summary.rb +1 -1
  1584. data/lib/oci/resource_manager/models/log_entry.rb +1 -1
  1585. data/lib/oci/resource_manager/models/plan_job_operation_details.rb +1 -1
  1586. data/lib/oci/resource_manager/models/plan_job_operation_details_summary.rb +1 -1
  1587. data/lib/oci/resource_manager/models/stack.rb +1 -1
  1588. data/lib/oci/resource_manager/models/stack_summary.rb +1 -1
  1589. data/lib/oci/resource_manager/models/terraform_version_collection.rb +1 -1
  1590. data/lib/oci/resource_manager/models/terraform_version_summary.rb +1 -1
  1591. data/lib/oci/resource_manager/models/update_config_source_details.rb +1 -1
  1592. data/lib/oci/resource_manager/models/update_job_details.rb +1 -1
  1593. data/lib/oci/resource_manager/models/update_stack_details.rb +1 -1
  1594. data/lib/oci/resource_manager/models/update_zip_upload_config_source_details.rb +1 -1
  1595. data/lib/oci/resource_manager/models/work_request.rb +1 -1
  1596. data/lib/oci/resource_manager/models/work_request_error.rb +1 -1
  1597. data/lib/oci/resource_manager/models/work_request_log_entry.rb +1 -1
  1598. data/lib/oci/resource_manager/models/work_request_resource.rb +1 -1
  1599. data/lib/oci/resource_manager/models/work_request_summary.rb +1 -1
  1600. data/lib/oci/resource_manager/models/zip_upload_config_source.rb +1 -1
  1601. data/lib/oci/resource_manager/resource_manager.rb +1 -1
  1602. data/lib/oci/resource_manager/resource_manager_client.rb +1 -1
  1603. data/lib/oci/resource_manager/resource_manager_client_composite_operations.rb +1 -1
  1604. data/lib/oci/resource_search/models/free_text_search_details.rb +1 -1
  1605. data/lib/oci/resource_search/models/queryable_field_description.rb +3 -3
  1606. data/lib/oci/resource_search/models/resource_summary.rb +49 -11
  1607. data/lib/oci/resource_search/models/resource_summary_collection.rb +2 -2
  1608. data/lib/oci/resource_search/models/resource_type.rb +1 -1
  1609. data/lib/oci/resource_search/models/search_context.rb +2 -2
  1610. data/lib/oci/resource_search/models/search_details.rb +3 -3
  1611. data/lib/oci/resource_search/models/structured_search_details.rb +4 -2
  1612. data/lib/oci/resource_search/resource_search.rb +1 -1
  1613. data/lib/oci/resource_search/resource_search_client.rb +3 -3
  1614. data/lib/oci/resource_search/resource_search_client_composite_operations.rb +1 -1
  1615. data/lib/oci/response.rb +1 -1
  1616. data/lib/oci/response_headers.rb +1 -1
  1617. data/lib/oci/secrets/models/base64_secret_bundle_content_details.rb +157 -0
  1618. data/lib/oci/secrets/models/secret_bundle.rb +293 -0
  1619. data/lib/oci/secrets/models/secret_bundle_content_details.rb +188 -0
  1620. data/lib/oci/secrets/models/secret_bundle_version_summary.rb +269 -0
  1621. data/lib/oci/secrets/secrets.rb +22 -0
  1622. data/lib/oci/secrets/secrets_client.rb +259 -0
  1623. data/lib/oci/secrets/secrets_client_composite_operations.rb +24 -0
  1624. data/lib/oci/secrets/util.rb +2 -0
  1625. data/lib/oci/signer.rb +1 -1
  1626. data/lib/oci/streaming/models/archiver.rb +4 -5
  1627. data/lib/oci/streaming/models/archiver_error.rb +1 -1
  1628. data/lib/oci/streaming/models/archiver_start_position.rb +1 -1
  1629. data/lib/oci/streaming/models/change_connect_harness_compartment_details.rb +155 -0
  1630. data/lib/oci/streaming/models/change_stream_compartment_details.rb +1 -1
  1631. data/lib/oci/streaming/models/change_stream_pool_compartment_details.rb +155 -0
  1632. data/lib/oci/streaming/models/connect_harness.rb +280 -0
  1633. data/lib/oci/streaming/models/connect_harness_summary.rb +266 -0
  1634. data/lib/oci/streaming/models/create_archiver_details.rb +1 -1
  1635. data/lib/oci/streaming/models/create_connect_harness_details.rb +201 -0
  1636. data/lib/oci/streaming/models/create_cursor_details.rb +1 -1
  1637. data/lib/oci/streaming/models/create_group_cursor_details.rb +1 -1
  1638. data/lib/oci/streaming/models/create_stream_details.rb +17 -3
  1639. data/lib/oci/streaming/models/create_stream_pool_details.rb +240 -0
  1640. data/lib/oci/streaming/models/cursor.rb +1 -1
  1641. data/lib/oci/streaming/models/custom_encryption_key.rb +191 -0
  1642. data/lib/oci/streaming/models/custom_encryption_key_details.rb +153 -0
  1643. data/lib/oci/streaming/models/group.rb +3 -3
  1644. data/lib/oci/streaming/models/kafka_settings.rb +195 -0
  1645. data/lib/oci/streaming/models/message.rb +1 -1
  1646. data/lib/oci/streaming/models/partition_reservation.rb +1 -1
  1647. data/lib/oci/streaming/models/private_endpoint_details.rb +192 -0
  1648. data/lib/oci/streaming/models/private_endpoint_settings.rb +185 -0
  1649. data/lib/oci/streaming/models/put_messages_details.rb +1 -1
  1650. data/lib/oci/streaming/models/put_messages_details_entry.rb +1 -1
  1651. data/lib/oci/streaming/models/put_messages_result.rb +2 -2
  1652. data/lib/oci/streaming/models/put_messages_result_entry.rb +1 -1
  1653. data/lib/oci/streaming/models/stream.rb +19 -2
  1654. data/lib/oci/streaming/models/stream_pool.rb +351 -0
  1655. data/lib/oci/streaming/models/stream_pool_summary.rb +279 -0
  1656. data/lib/oci/streaming/models/stream_summary.rb +19 -2
  1657. data/lib/oci/streaming/models/update_archiver_details.rb +1 -1
  1658. data/lib/oci/streaming/models/update_connect_harness_details.rb +174 -0
  1659. data/lib/oci/streaming/models/update_group_details.rb +1 -1
  1660. data/lib/oci/streaming/models/update_stream_details.rb +17 -2
  1661. data/lib/oci/streaming/models/update_stream_pool_details.rb +209 -0
  1662. data/lib/oci/streaming/stream_admin_client.rb +865 -83
  1663. data/lib/oci/streaming/stream_admin_client_composite_operations.rb +248 -4
  1664. data/lib/oci/streaming/stream_client.rb +22 -40
  1665. data/lib/oci/streaming/stream_client_composite_operations.rb +1 -1
  1666. data/lib/oci/streaming/streaming.rb +16 -2
  1667. data/lib/oci/vault/models/base64_secret_content_details.rb +165 -0
  1668. data/lib/oci/vault/models/change_secret_compartment_details.rb +155 -0
  1669. data/lib/oci/vault/models/create_secret_details.rb +281 -0
  1670. data/lib/oci/vault/models/schedule_secret_deletion_details.rb +154 -0
  1671. data/lib/oci/vault/models/schedule_secret_version_deletion_details.rb +155 -0
  1672. data/lib/oci/vault/models/secret.rb +393 -0
  1673. data/lib/oci/vault/models/secret_content_details.rb +220 -0
  1674. data/lib/oci/vault/models/secret_expiry_rule.rb +202 -0
  1675. data/lib/oci/vault/models/secret_reuse_rule.rb +163 -0
  1676. data/lib/oci/vault/models/secret_rule.rb +190 -0
  1677. data/lib/oci/vault/models/secret_summary.rb +352 -0
  1678. data/lib/oci/vault/models/secret_version.rb +304 -0
  1679. data/lib/oci/vault/models/secret_version_summary.rb +304 -0
  1680. data/lib/oci/vault/models/update_secret_details.rb +240 -0
  1681. data/lib/oci/vault/util.rb +2 -0
  1682. data/lib/oci/vault/vault.rb +33 -0
  1683. data/lib/oci/vault/vaults_client.rb +882 -0
  1684. data/lib/oci/vault/vaults_client_composite_operations.rb +103 -0
  1685. data/lib/oci/version.rb +2 -2
  1686. data/lib/oci/waas/models/access_rule.rb +89 -8
  1687. data/lib/oci/waas/models/access_rule_criteria.rb +68 -32
  1688. data/lib/oci/waas/models/add_http_response_header_action.rb +175 -0
  1689. data/lib/oci/waas/models/address_list.rb +1 -1
  1690. data/lib/oci/waas/models/address_list_summary.rb +1 -1
  1691. data/lib/oci/waas/models/address_rate_limiting.rb +1 -1
  1692. data/lib/oci/waas/models/block_challenge_settings.rb +1 -1
  1693. data/lib/oci/waas/models/caching_rule.rb +2 -2
  1694. data/lib/oci/waas/models/caching_rule_criteria.rb +1 -1
  1695. data/lib/oci/waas/models/caching_rule_summary.rb +2 -2
  1696. data/lib/oci/waas/models/captcha.rb +1 -1
  1697. data/lib/oci/waas/models/certificate.rb +1 -1
  1698. data/lib/oci/waas/models/certificate_extensions.rb +1 -1
  1699. data/lib/oci/waas/models/certificate_issuer_name.rb +1 -1
  1700. data/lib/oci/waas/models/certificate_public_key_info.rb +1 -1
  1701. data/lib/oci/waas/models/certificate_subject_name.rb +1 -1
  1702. data/lib/oci/waas/models/certificate_summary.rb +1 -1
  1703. data/lib/oci/waas/models/change_address_list_compartment_details.rb +1 -1
  1704. data/lib/oci/waas/models/change_certificate_compartment_details.rb +1 -1
  1705. data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +1 -1
  1706. data/lib/oci/waas/models/change_http_redirect_compartment_details.rb +1 -1
  1707. data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +1 -1
  1708. data/lib/oci/waas/models/create_address_list_details.rb +2 -2
  1709. data/lib/oci/waas/models/create_certificate_details.rb +1 -1
  1710. data/lib/oci/waas/models/create_custom_protection_rule_details.rb +1 -1
  1711. data/lib/oci/waas/models/create_http_redirect_details.rb +2 -2
  1712. data/lib/oci/waas/models/create_waas_policy_details.rb +1 -1
  1713. data/lib/oci/waas/models/custom_protection_rule.rb +1 -1
  1714. data/lib/oci/waas/models/custom_protection_rule_setting.rb +14 -5
  1715. data/lib/oci/waas/models/custom_protection_rule_summary.rb +1 -1
  1716. data/lib/oci/waas/models/device_fingerprint_challenge.rb +1 -1
  1717. data/lib/oci/waas/models/edge_subnet.rb +1 -1
  1718. data/lib/oci/waas/models/extend_http_response_header_action.rb +177 -0
  1719. data/lib/oci/waas/models/good_bot.rb +1 -1
  1720. data/lib/oci/waas/models/header.rb +2 -2
  1721. data/lib/oci/waas/models/header_manipulation_action.rb +188 -0
  1722. data/lib/oci/waas/models/health_check.rb +345 -0
  1723. data/lib/oci/waas/models/http_redirect.rb +3 -3
  1724. data/lib/oci/waas/models/http_redirect_summary.rb +3 -3
  1725. data/lib/oci/waas/models/http_redirect_target.rb +3 -3
  1726. data/lib/oci/waas/models/human_interaction_challenge.rb +21 -5
  1727. data/lib/oci/waas/models/ip_hash_load_balancing_method.rb +145 -0
  1728. data/lib/oci/waas/models/js_challenge.rb +48 -6
  1729. data/lib/oci/waas/models/lifecycle_states.rb +1 -1
  1730. data/lib/oci/waas/models/load_balancing_method.rb +194 -0
  1731. data/lib/oci/waas/models/origin.rb +1 -1
  1732. data/lib/oci/waas/models/origin_group.rb +1 -1
  1733. data/lib/oci/waas/models/origin_group_origins.rb +1 -1
  1734. data/lib/oci/waas/models/policy_config.rb +62 -5
  1735. data/lib/oci/waas/models/protection_rule.rb +1 -1
  1736. data/lib/oci/waas/models/protection_rule_action.rb +1 -1
  1737. data/lib/oci/waas/models/protection_rule_exclusion.rb +4 -4
  1738. data/lib/oci/waas/models/protection_settings.rb +1 -1
  1739. data/lib/oci/waas/models/purge_cache.rb +1 -1
  1740. data/lib/oci/waas/models/recommendation.rb +1 -1
  1741. data/lib/oci/waas/models/remove_http_response_header_action.rb +162 -0
  1742. data/lib/oci/waas/models/round_robin_load_balancing_method.rb +145 -0
  1743. data/lib/oci/waas/models/sticky_cookie_load_balancing_method.rb +187 -0
  1744. data/lib/oci/waas/models/threat_feed.rb +1 -1
  1745. data/lib/oci/waas/models/threat_feed_action.rb +1 -1
  1746. data/lib/oci/waas/models/update_address_list_details.rb +2 -2
  1747. data/lib/oci/waas/models/update_certificate_details.rb +1 -1
  1748. data/lib/oci/waas/models/update_custom_protection_rule_details.rb +1 -1
  1749. data/lib/oci/waas/models/update_http_redirect_details.rb +2 -2
  1750. data/lib/oci/waas/models/update_waas_policy_details.rb +1 -1
  1751. data/lib/oci/waas/models/waas_policy.rb +1 -1
  1752. data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +14 -5
  1753. data/lib/oci/waas/models/waas_policy_summary.rb +1 -1
  1754. data/lib/oci/waas/models/waf_blocked_request.rb +1 -1
  1755. data/lib/oci/waas/models/waf_config.rb +1 -1
  1756. data/lib/oci/waas/models/waf_config_details.rb +1 -1
  1757. data/lib/oci/waas/models/waf_log.rb +3 -3
  1758. data/lib/oci/waas/models/waf_meter_datum.rb +1 -1
  1759. data/lib/oci/waas/models/waf_request.rb +1 -1
  1760. data/lib/oci/waas/models/waf_traffic_datum.rb +1 -1
  1761. data/lib/oci/waas/models/whitelist.rb +20 -6
  1762. data/lib/oci/waas/models/work_request.rb +1 -1
  1763. data/lib/oci/waas/models/work_request_error.rb +1 -1
  1764. data/lib/oci/waas/models/work_request_log_entry.rb +1 -1
  1765. data/lib/oci/waas/models/work_request_operation_types.rb +1 -1
  1766. data/lib/oci/waas/models/work_request_resource.rb +1 -1
  1767. data/lib/oci/waas/models/work_request_status_values.rb +1 -1
  1768. data/lib/oci/waas/models/work_request_summary.rb +1 -1
  1769. data/lib/oci/waas/redirect_client.rb +2 -2
  1770. data/lib/oci/waas/redirect_client_composite_operations.rb +1 -1
  1771. data/lib/oci/waas/waas.rb +10 -1
  1772. data/lib/oci/waas/waas_client.rb +25 -23
  1773. data/lib/oci/waas/waas_client_composite_operations.rb +1 -1
  1774. data/lib/oci/waiter.rb +1 -1
  1775. data/lib/oci/work_requests/models/work_request.rb +1 -1
  1776. data/lib/oci/work_requests/models/work_request_error.rb +1 -1
  1777. data/lib/oci/work_requests/models/work_request_log_entry.rb +1 -1
  1778. data/lib/oci/work_requests/models/work_request_resource.rb +1 -1
  1779. data/lib/oci/work_requests/models/work_request_summary.rb +1 -1
  1780. data/lib/oci/work_requests/work_request_client.rb +1 -1
  1781. data/lib/oci/work_requests/work_request_client_composite_operations.rb +1 -1
  1782. data/lib/oci/work_requests/work_requests.rb +1 -1
  1783. data/lib/oraclebmc.rb +1 -1
  1784. metadata +548 -7
  1785. data/lib/oci/streaming/models/archiver_lifecycle_state.rb +0 -14
@@ -0,0 +1,286 @@
1
+ # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'date'
4
+ require 'logger'
5
+
6
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
7
+ module OCI
8
+ # A work request summary
9
+ class OsManagement::Models::WorkRequestSummary
10
+ OPERATION_TYPE_ENUM = [
11
+ OPERATION_TYPE_INSTALL = 'INSTALL'.freeze,
12
+ OPERATION_TYPE_UPDATE = 'UPDATE'.freeze,
13
+ OPERATION_TYPE_REMOVE = 'REMOVE'.freeze,
14
+ OPERATION_TYPE_UPDATEALL = 'UPDATEALL'.freeze,
15
+ OPERATION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
16
+ ].freeze
17
+
18
+ STATUS_ENUM = [
19
+ STATUS_ACCEPTED = 'ACCEPTED'.freeze,
20
+ STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze,
21
+ STATUS_FAILED = 'FAILED'.freeze,
22
+ STATUS_SUCCEEDED = 'SUCCEEDED'.freeze,
23
+ STATUS_CANCELLING = 'CANCELLING'.freeze,
24
+ STATUS_CANCELED = 'CANCELED'.freeze,
25
+ STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
26
+ ].freeze
27
+
28
+ # **[Required]** the type of operation this Work Request performs
29
+ # @return [String]
30
+ attr_reader :operation_type
31
+
32
+ # **[Required]** status of current work request.
33
+ # @return [String]
34
+ attr_reader :status
35
+
36
+ # **[Required]** The id of the work request.
37
+ # @return [String]
38
+ attr_accessor :id
39
+
40
+ # **[Required]** The ocid of the compartment that contains the work request. Work requests should be scoped to
41
+ # the same compartment as the resource the work request affects. If the work request affects multiple resources,
42
+ # and those resources are not in the same compartment, it is up to the service team to pick the primary
43
+ # resource whose compartment should be used
44
+ #
45
+ # @return [String]
46
+ attr_accessor :compartment_id
47
+
48
+ # Description of the type of work.
49
+ # @return [String]
50
+ attr_accessor :description
51
+
52
+ # A progress or error message, if there is any.
53
+ # @return [String]
54
+ attr_accessor :message
55
+
56
+ # Percentage of the request completed.
57
+ # @return [Float]
58
+ attr_accessor :percent_complete
59
+
60
+ # **[Required]** The date and time the request was created, as described in
61
+ # [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
62
+ #
63
+ # @return [DateTime]
64
+ attr_accessor :time_accepted
65
+
66
+ # Attribute mapping from ruby-style variable name to JSON key.
67
+ def self.attribute_map
68
+ {
69
+ # rubocop:disable Style/SymbolLiteral
70
+ 'operation_type': :'operationType',
71
+ 'status': :'status',
72
+ 'id': :'id',
73
+ 'compartment_id': :'compartmentId',
74
+ 'description': :'description',
75
+ 'message': :'message',
76
+ 'percent_complete': :'percentComplete',
77
+ 'time_accepted': :'timeAccepted'
78
+ # rubocop:enable Style/SymbolLiteral
79
+ }
80
+ end
81
+
82
+ # Attribute type mapping.
83
+ def self.swagger_types
84
+ {
85
+ # rubocop:disable Style/SymbolLiteral
86
+ 'operation_type': :'String',
87
+ 'status': :'String',
88
+ 'id': :'String',
89
+ 'compartment_id': :'String',
90
+ 'description': :'String',
91
+ 'message': :'String',
92
+ 'percent_complete': :'Float',
93
+ 'time_accepted': :'DateTime'
94
+ # rubocop:enable Style/SymbolLiteral
95
+ }
96
+ end
97
+
98
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
99
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
100
+
101
+
102
+ # Initializes the object
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @option attributes [String] :operation_type The value to assign to the {#operation_type} property
105
+ # @option attributes [String] :status The value to assign to the {#status} property
106
+ # @option attributes [String] :id The value to assign to the {#id} property
107
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
108
+ # @option attributes [String] :description The value to assign to the {#description} property
109
+ # @option attributes [String] :message The value to assign to the {#message} property
110
+ # @option attributes [Float] :percent_complete The value to assign to the {#percent_complete} property
111
+ # @option attributes [DateTime] :time_accepted The value to assign to the {#time_accepted} property
112
+ def initialize(attributes = {})
113
+ return unless attributes.is_a?(Hash)
114
+
115
+ # convert string to symbol for hash key
116
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
117
+
118
+ self.operation_type = attributes[:'operationType'] if attributes[:'operationType']
119
+
120
+ raise 'You cannot provide both :operationType and :operation_type' if attributes.key?(:'operationType') && attributes.key?(:'operation_type')
121
+
122
+ self.operation_type = attributes[:'operation_type'] if attributes[:'operation_type']
123
+
124
+ self.status = attributes[:'status'] if attributes[:'status']
125
+
126
+ self.id = attributes[:'id'] if attributes[:'id']
127
+
128
+ self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
129
+
130
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
131
+
132
+ self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
133
+
134
+ self.description = attributes[:'description'] if attributes[:'description']
135
+
136
+ self.message = attributes[:'message'] if attributes[:'message']
137
+
138
+ self.percent_complete = attributes[:'percentComplete'] if attributes[:'percentComplete']
139
+
140
+ raise 'You cannot provide both :percentComplete and :percent_complete' if attributes.key?(:'percentComplete') && attributes.key?(:'percent_complete')
141
+
142
+ self.percent_complete = attributes[:'percent_complete'] if attributes[:'percent_complete']
143
+
144
+ self.time_accepted = attributes[:'timeAccepted'] if attributes[:'timeAccepted']
145
+
146
+ raise 'You cannot provide both :timeAccepted and :time_accepted' if attributes.key?(:'timeAccepted') && attributes.key?(:'time_accepted')
147
+
148
+ self.time_accepted = attributes[:'time_accepted'] if attributes[:'time_accepted']
149
+ end
150
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
151
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
152
+
153
+ # Custom attribute writer method checking allowed values (enum).
154
+ # @param [Object] operation_type Object to be assigned
155
+ def operation_type=(operation_type)
156
+ # rubocop:disable Style/ConditionalAssignment
157
+ if operation_type && !OPERATION_TYPE_ENUM.include?(operation_type)
158
+ OCI.logger.debug("Unknown value for 'operation_type' [" + operation_type + "]. Mapping to 'OPERATION_TYPE_UNKNOWN_ENUM_VALUE'") if OCI.logger
159
+ @operation_type = OPERATION_TYPE_UNKNOWN_ENUM_VALUE
160
+ else
161
+ @operation_type = operation_type
162
+ end
163
+ # rubocop:enable Style/ConditionalAssignment
164
+ end
165
+
166
+ # Custom attribute writer method checking allowed values (enum).
167
+ # @param [Object] status Object to be assigned
168
+ def status=(status)
169
+ # rubocop:disable Style/ConditionalAssignment
170
+ if status && !STATUS_ENUM.include?(status)
171
+ OCI.logger.debug("Unknown value for 'status' [" + status + "]. Mapping to 'STATUS_UNKNOWN_ENUM_VALUE'") if OCI.logger
172
+ @status = STATUS_UNKNOWN_ENUM_VALUE
173
+ else
174
+ @status = status
175
+ end
176
+ # rubocop:enable Style/ConditionalAssignment
177
+ end
178
+
179
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
180
+
181
+
182
+ # Checks equality by comparing each attribute.
183
+ # @param [Object] other the other object to be compared
184
+ def ==(other)
185
+ return true if equal?(other)
186
+
187
+ self.class == other.class &&
188
+ operation_type == other.operation_type &&
189
+ status == other.status &&
190
+ id == other.id &&
191
+ compartment_id == other.compartment_id &&
192
+ description == other.description &&
193
+ message == other.message &&
194
+ percent_complete == other.percent_complete &&
195
+ time_accepted == other.time_accepted
196
+ end
197
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
198
+
199
+ # @see the `==` method
200
+ # @param [Object] other the other object to be compared
201
+ def eql?(other)
202
+ self == other
203
+ end
204
+
205
+ # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
206
+
207
+
208
+ # Calculates hash code according to all attributes.
209
+ # @return [Fixnum] Hash code
210
+ def hash
211
+ [operation_type, status, id, compartment_id, description, message, percent_complete, time_accepted].hash
212
+ end
213
+ # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
214
+
215
+ # rubocop:disable Metrics/AbcSize, Layout/EmptyLines
216
+
217
+
218
+ # Builds the object from hash
219
+ # @param [Hash] attributes Model attributes in the form of hash
220
+ # @return [Object] Returns the model itself
221
+ def build_from_hash(attributes)
222
+ return nil unless attributes.is_a?(Hash)
223
+
224
+ self.class.swagger_types.each_pair do |key, type|
225
+ if type =~ /^Array<(.*)>/i
226
+ # check to ensure the input is an array given that the the attribute
227
+ # is documented as an array but the input is not
228
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
229
+ public_method("#{key}=").call(
230
+ attributes[self.class.attribute_map[key]]
231
+ .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
232
+ )
233
+ end
234
+ elsif !attributes[self.class.attribute_map[key]].nil?
235
+ public_method("#{key}=").call(
236
+ OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
237
+ )
238
+ end
239
+ # or else data not found in attributes(hash), not an issue as the data can be optional
240
+ end
241
+
242
+ self
243
+ end
244
+ # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
245
+
246
+ # Returns the string representation of the object
247
+ # @return [String] String presentation of the object
248
+ def to_s
249
+ to_hash.to_s
250
+ end
251
+
252
+ # Returns the object in the form of hash
253
+ # @return [Hash] Returns the object in the form of hash
254
+ def to_hash
255
+ hash = {}
256
+ self.class.attribute_map.each_pair do |attr, param|
257
+ value = public_method(attr).call
258
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
259
+
260
+ hash[param] = _to_hash(value)
261
+ end
262
+ hash
263
+ end
264
+
265
+ private
266
+
267
+ # Outputs non-array value in the form of hash
268
+ # For object, use to_hash. Otherwise, just return the value
269
+ # @param [Object] value Any valid value
270
+ # @return [Hash] Returns the value in the form of hash
271
+ def _to_hash(value)
272
+ if value.is_a?(Array)
273
+ value.compact.map { |v| _to_hash(v) }
274
+ elsif value.is_a?(Hash)
275
+ {}.tap do |hash|
276
+ value.each { |k, v| hash[k] = _to_hash(v) }
277
+ end
278
+ elsif value.respond_to? :to_hash
279
+ value.to_hash
280
+ else
281
+ value
282
+ end
283
+ end
284
+ end
285
+ end
286
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
@@ -0,0 +1,75 @@
1
+ # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ module OCI
4
+ module OsManagement
5
+ # Module containing models for requests made to, and responses received from,
6
+ # OCI OsManagement services
7
+ module Models
8
+ end
9
+ end
10
+ end
11
+
12
+ # Require models
13
+ require 'oci/os_management/models/add_packages_to_software_source_details'
14
+ require 'oci/os_management/models/api_error'
15
+ require 'oci/os_management/models/arch_types'
16
+ require 'oci/os_management/models/attach_child_software_source_to_managed_instance_details'
17
+ require 'oci/os_management/models/attach_parent_software_source_to_managed_instance_details'
18
+ require 'oci/os_management/models/available_software_source_summary'
19
+ require 'oci/os_management/models/available_update_summary'
20
+ require 'oci/os_management/models/change_managed_instance_group_compartment_details'
21
+ require 'oci/os_management/models/change_scheduled_job_compartment_details'
22
+ require 'oci/os_management/models/change_software_source_compartment_details'
23
+ require 'oci/os_management/models/checksum_types'
24
+ require 'oci/os_management/models/create_managed_instance_group_details'
25
+ require 'oci/os_management/models/create_scheduled_job_details'
26
+ require 'oci/os_management/models/create_software_source_details'
27
+ require 'oci/os_management/models/detach_child_software_source_from_managed_instance_details'
28
+ require 'oci/os_management/models/detach_parent_software_source_from_managed_instance_details'
29
+ require 'oci/os_management/models/errata_id'
30
+ require 'oci/os_management/models/erratum'
31
+ require 'oci/os_management/models/erratum_summary'
32
+ require 'oci/os_management/models/id'
33
+ require 'oci/os_management/models/installable_package_summary'
34
+ require 'oci/os_management/models/installed_package_summary'
35
+ require 'oci/os_management/models/interval_types'
36
+ require 'oci/os_management/models/lifecycle_states'
37
+ require 'oci/os_management/models/managed_instance'
38
+ require 'oci/os_management/models/managed_instance_group'
39
+ require 'oci/os_management/models/managed_instance_group_summary'
40
+ require 'oci/os_management/models/managed_instance_summary'
41
+ require 'oci/os_management/models/managed_instance_update_details'
42
+ require 'oci/os_management/models/operation_status'
43
+ require 'oci/os_management/models/operation_types'
44
+ require 'oci/os_management/models/package_name'
45
+ require 'oci/os_management/models/package_update_types'
46
+ require 'oci/os_management/models/recurrence'
47
+ require 'oci/os_management/models/remove_packages_from_software_source_details'
48
+ require 'oci/os_management/models/schedule_types'
49
+ require 'oci/os_management/models/scheduled_job'
50
+ require 'oci/os_management/models/scheduled_job_summary'
51
+ require 'oci/os_management/models/software_package'
52
+ require 'oci/os_management/models/software_package_dependency'
53
+ require 'oci/os_management/models/software_package_file'
54
+ require 'oci/os_management/models/software_package_search_summary'
55
+ require 'oci/os_management/models/software_package_summary'
56
+ require 'oci/os_management/models/software_source'
57
+ require 'oci/os_management/models/software_source_id'
58
+ require 'oci/os_management/models/software_source_summary'
59
+ require 'oci/os_management/models/updatable_package_summary'
60
+ require 'oci/os_management/models/update_managed_instance_group_details'
61
+ require 'oci/os_management/models/update_scheduled_job_details'
62
+ require 'oci/os_management/models/update_software_source_details'
63
+ require 'oci/os_management/models/update_types'
64
+ require 'oci/os_management/models/work_request'
65
+ require 'oci/os_management/models/work_request_error'
66
+ require 'oci/os_management/models/work_request_log_entry'
67
+ require 'oci/os_management/models/work_request_resource'
68
+ require 'oci/os_management/models/work_request_summary'
69
+
70
+ # Require generated clients
71
+ require 'oci/os_management/os_management_client'
72
+ require 'oci/os_management/os_management_client_composite_operations'
73
+
74
+ # Require service utilities
75
+ require 'oci/os_management/util'
@@ -0,0 +1,3298 @@
1
+ # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ require 'uri'
4
+ require 'logger'
5
+
6
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
7
+ module OCI
8
+ # OS Management as a Service API definition
9
+ class OsManagement::OsManagementClient
10
+ # Client used to make HTTP requests.
11
+ # @return [OCI::ApiClient]
12
+ attr_reader :api_client
13
+
14
+ # Fully qualified endpoint URL
15
+ # @return [String]
16
+ attr_reader :endpoint
17
+
18
+ # The default retry configuration to apply to all operations in this service client. This can be overridden
19
+ # on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
20
+ # will not perform any retries
21
+ # @return [OCI::Retry::RetryConfig]
22
+ attr_reader :retry_config
23
+
24
+ # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
25
+ # @return [String]
26
+ attr_reader :region
27
+
28
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
29
+
30
+
31
+ # Creates a new OsManagementClient.
32
+ # Notes:
33
+ # If a config is not specified, then the global OCI.config will be used.
34
+ #
35
+ # This client is not thread-safe
36
+ #
37
+ # Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
38
+ # region. A region may be specified in the config or via or the region parameter. If specified in both, then the
39
+ # region parameter will be used.
40
+ # @param [Config] config A Config object.
41
+ # @param [String] region A region used to determine the service endpoint. This will usually
42
+ # correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
43
+ # @param [String] endpoint The fully qualified endpoint URL
44
+ # @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
45
+ # a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
46
+ # so that the instance principals signer can be provided to the client
47
+ # @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
48
+ # the details for the proxy can be provided in this parameter
49
+ # @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
50
+ # 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
51
+ # will not perform any retries
52
+ def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
53
+ # If the signer is an InstancePrincipalsSecurityTokenSigner and no config was supplied (which is valid for instance principals)
54
+ # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
55
+ # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
56
+ # pass it to this constructor.
57
+ #
58
+ # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
59
+ # so try and load the config from the default file.
60
+ config ||= OCI.config unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
61
+ config ||= OCI::Config.new if signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
62
+ config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
63
+
64
+ if signer.nil?
65
+ signer = OCI::Signer.new(
66
+ config.user,
67
+ config.fingerprint,
68
+ config.tenancy,
69
+ config.key_file,
70
+ pass_phrase: config.pass_phrase,
71
+ private_key_content: config.key_content
72
+ )
73
+ end
74
+
75
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
76
+ @retry_config = retry_config
77
+
78
+ if endpoint
79
+ @endpoint = endpoint + '/20190801'
80
+ else
81
+ region ||= config.region
82
+ region ||= signer.region if signer.respond_to?(:region)
83
+ self.region = region
84
+ end
85
+ logger.info "OsManagementClient endpoint set to '#{@endpoint}'." if logger
86
+ end
87
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
88
+
89
+ # Set the region that will be used to determine the service endpoint.
90
+ # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
91
+ # but may be an arbitrary string.
92
+ def region=(new_region)
93
+ @region = new_region
94
+
95
+ raise 'A region must be specified.' unless @region
96
+
97
+ @endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://osms.{region}.oci.{secondLevelDomain}') + '/20190801'
98
+ logger.info "OsManagementClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
99
+ end
100
+
101
+ # @return [Logger] The logger for this client. May be nil.
102
+ def logger
103
+ @api_client.config.logger
104
+ end
105
+
106
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
107
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
108
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
109
+
110
+
111
+ # Adds a given list of Software Packages to a specific Software Source.
112
+ #
113
+ # @param [String] software_source_id The OCID of the software source.
114
+ # @param [OCI::OsManagement::Models::AddPackagesToSoftwareSourceDetails] add_packages_to_software_source_details A list of package identifiers
115
+ # @param [Hash] opts the optional parameters
116
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
117
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
118
+ # @option opts [String] :opc_request_id The client request ID for tracing.
119
+ # @return [Response] A Response object with data of type nil
120
+ def add_packages_to_software_source(software_source_id, add_packages_to_software_source_details, opts = {})
121
+ logger.debug 'Calling operation OsManagementClient#add_packages_to_software_source.' if logger
122
+
123
+ raise "Missing the required parameter 'software_source_id' when calling add_packages_to_software_source." if software_source_id.nil?
124
+ raise "Missing the required parameter 'add_packages_to_software_source_details' when calling add_packages_to_software_source." if add_packages_to_software_source_details.nil?
125
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
126
+
127
+ path = '/softwareSources/{softwareSourceId}/actions/addPackages'.sub('{softwareSourceId}', software_source_id.to_s)
128
+ operation_signing_strategy = :standard
129
+
130
+ # rubocop:disable Style/NegatedIf
131
+ # Query Params
132
+ query_params = {}
133
+
134
+ # Header Params
135
+ header_params = {}
136
+ header_params[:accept] = 'application/json'
137
+ header_params[:'content-type'] = 'application/json'
138
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
139
+ # rubocop:enable Style/NegatedIf
140
+
141
+ post_body = @api_client.object_to_http_body(add_packages_to_software_source_details)
142
+
143
+ # rubocop:disable Metrics/BlockLength
144
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#add_packages_to_software_source') 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
+ # Adds a child software source to a managed instance. After the software
167
+ # source has been added, then packages from that software source can be
168
+ # installed on the managed instance.
169
+ #
170
+ # @param [String] managed_instance_id OCID for the managed instance
171
+ # @param [OCI::OsManagement::Models::AttachChildSoftwareSourceToManagedInstanceDetails] attach_child_software_source_to_managed_instance_details Details for attaching a Software Source to a Managed Instance
172
+ # @param [Hash] opts the optional parameters
173
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
174
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
175
+ # @option opts [String] :opc_request_id The client request ID for tracing.
176
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
177
+ # server error without risk of executing that same action again. Retry tokens expire after 24
178
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
179
+ # has been deleted and purged from the system, then a retry of the original creation request
180
+ # might be rejected.
181
+ #
182
+ # @return [Response] A Response object with data of type nil
183
+ def attach_child_software_source_to_managed_instance(managed_instance_id, attach_child_software_source_to_managed_instance_details, opts = {})
184
+ logger.debug 'Calling operation OsManagementClient#attach_child_software_source_to_managed_instance.' if logger
185
+
186
+ raise "Missing the required parameter 'managed_instance_id' when calling attach_child_software_source_to_managed_instance." if managed_instance_id.nil?
187
+ raise "Missing the required parameter 'attach_child_software_source_to_managed_instance_details' when calling attach_child_software_source_to_managed_instance." if attach_child_software_source_to_managed_instance_details.nil?
188
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
189
+
190
+ path = '/managedInstances/{managedInstanceId}/actions/attachChildSoftwareSource'.sub('{managedInstanceId}', managed_instance_id.to_s)
191
+ operation_signing_strategy = :standard
192
+
193
+ # rubocop:disable Style/NegatedIf
194
+ # Query Params
195
+ query_params = {}
196
+
197
+ # Header Params
198
+ header_params = {}
199
+ header_params[:accept] = 'application/json'
200
+ header_params[:'content-type'] = 'application/json'
201
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
202
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
203
+ # rubocop:enable Style/NegatedIf
204
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
205
+
206
+ post_body = @api_client.object_to_http_body(attach_child_software_source_to_managed_instance_details)
207
+
208
+ # rubocop:disable Metrics/BlockLength
209
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#attach_child_software_source_to_managed_instance') do
210
+ @api_client.call_api(
211
+ :POST,
212
+ path,
213
+ endpoint,
214
+ header_params: header_params,
215
+ query_params: query_params,
216
+ operation_signing_strategy: operation_signing_strategy,
217
+ body: post_body
218
+ )
219
+ end
220
+ # rubocop:enable Metrics/BlockLength
221
+ end
222
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
223
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
224
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
225
+
226
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
227
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
228
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
229
+
230
+
231
+ # Adds a Managed Instance to a Managed Instance Group. After the Managed
232
+ # Instance has been added, then operations can be performed on the Managed
233
+ # Instance Group which will then apply to all Managed Instances in the
234
+ # group.
235
+ #
236
+ # @param [String] managed_instance_group_id OCID for the managed instance group
237
+ # @param [String] managed_instance_id OCID for the managed instance
238
+ # @param [Hash] opts the optional parameters
239
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
240
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
241
+ # @option opts [String] :opc_request_id The client request ID for tracing.
242
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
243
+ # server error without risk of executing that same action again. Retry tokens expire after 24
244
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
245
+ # has been deleted and purged from the system, then a retry of the original creation request
246
+ # might be rejected.
247
+ #
248
+ # @return [Response] A Response object with data of type nil
249
+ def attach_managed_instance_to_managed_instance_group(managed_instance_group_id, managed_instance_id, opts = {})
250
+ logger.debug 'Calling operation OsManagementClient#attach_managed_instance_to_managed_instance_group.' if logger
251
+
252
+ raise "Missing the required parameter 'managed_instance_group_id' when calling attach_managed_instance_to_managed_instance_group." if managed_instance_group_id.nil?
253
+ raise "Missing the required parameter 'managed_instance_id' when calling attach_managed_instance_to_managed_instance_group." if managed_instance_id.nil?
254
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
255
+
256
+ path = '/managedInstanceGroups/{managedInstanceGroupId}/actions/attachManagedInstance'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
257
+ operation_signing_strategy = :standard
258
+
259
+ # rubocop:disable Style/NegatedIf
260
+ # Query Params
261
+ query_params = {}
262
+ query_params[:managedInstanceId] = managed_instance_id
263
+
264
+ # Header Params
265
+ header_params = {}
266
+ header_params[:accept] = 'application/json'
267
+ header_params[:'content-type'] = 'application/json'
268
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
269
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
270
+ # rubocop:enable Style/NegatedIf
271
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
272
+
273
+ post_body = nil
274
+
275
+ # rubocop:disable Metrics/BlockLength
276
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#attach_managed_instance_to_managed_instance_group') do
277
+ @api_client.call_api(
278
+ :POST,
279
+ path,
280
+ endpoint,
281
+ header_params: header_params,
282
+ query_params: query_params,
283
+ operation_signing_strategy: operation_signing_strategy,
284
+ body: post_body
285
+ )
286
+ end
287
+ # rubocop:enable Metrics/BlockLength
288
+ end
289
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
290
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
291
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
292
+
293
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
294
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
295
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
296
+
297
+
298
+ # Adds a parent software source to a managed instance. After the software
299
+ # source has been added, then packages from that software source can be
300
+ # installed on the managed instance. Software sources that have this
301
+ # software source as a parent will be able to be added to this managed instance.
302
+ #
303
+ # @param [String] managed_instance_id OCID for the managed instance
304
+ # @param [OCI::OsManagement::Models::AttachParentSoftwareSourceToManagedInstanceDetails] attach_parent_software_source_to_managed_instance_details Details for attaching a Software Source to a Managed Instance
305
+ # @param [Hash] opts the optional parameters
306
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
307
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
308
+ # @option opts [String] :opc_request_id The client request ID for tracing.
309
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
310
+ # server error without risk of executing that same action again. Retry tokens expire after 24
311
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
312
+ # has been deleted and purged from the system, then a retry of the original creation request
313
+ # might be rejected.
314
+ #
315
+ # @return [Response] A Response object with data of type nil
316
+ def attach_parent_software_source_to_managed_instance(managed_instance_id, attach_parent_software_source_to_managed_instance_details, opts = {})
317
+ logger.debug 'Calling operation OsManagementClient#attach_parent_software_source_to_managed_instance.' if logger
318
+
319
+ raise "Missing the required parameter 'managed_instance_id' when calling attach_parent_software_source_to_managed_instance." if managed_instance_id.nil?
320
+ raise "Missing the required parameter 'attach_parent_software_source_to_managed_instance_details' when calling attach_parent_software_source_to_managed_instance." if attach_parent_software_source_to_managed_instance_details.nil?
321
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
322
+
323
+ path = '/managedInstances/{managedInstanceId}/actions/attachParentSoftwareSource'.sub('{managedInstanceId}', managed_instance_id.to_s)
324
+ operation_signing_strategy = :standard
325
+
326
+ # rubocop:disable Style/NegatedIf
327
+ # Query Params
328
+ query_params = {}
329
+
330
+ # Header Params
331
+ header_params = {}
332
+ header_params[:accept] = 'application/json'
333
+ header_params[:'content-type'] = 'application/json'
334
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
335
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
336
+ # rubocop:enable Style/NegatedIf
337
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
338
+
339
+ post_body = @api_client.object_to_http_body(attach_parent_software_source_to_managed_instance_details)
340
+
341
+ # rubocop:disable Metrics/BlockLength
342
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#attach_parent_software_source_to_managed_instance') do
343
+ @api_client.call_api(
344
+ :POST,
345
+ path,
346
+ endpoint,
347
+ header_params: header_params,
348
+ query_params: query_params,
349
+ operation_signing_strategy: operation_signing_strategy,
350
+ body: post_body
351
+ )
352
+ end
353
+ # rubocop:enable Metrics/BlockLength
354
+ end
355
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
356
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
357
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
358
+
359
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
360
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
361
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
362
+
363
+
364
+ # Moves a resource into a different compartment. When provided, If-Match
365
+ # is checked against ETag values of the resource.
366
+ #
367
+ # @param [String] managed_instance_group_id OCID for the managed instance group
368
+ # @param [OCI::OsManagement::Models::ChangeManagedInstanceGroupCompartmentDetails] change_managed_instance_group_compartment_details OCID for the compartment to which the resource will be moved.
369
+ # @param [Hash] opts the optional parameters
370
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
371
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
372
+ # @option opts [String] :opc_request_id The client request ID for tracing.
373
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
374
+ # for a resource, set the `if-match` parameter to the value of the
375
+ # etag from a previous GET or POST response for that resource.
376
+ # The resource will be updated or deleted only if the etag you
377
+ # provide matches the resource's current etag value.
378
+ #
379
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
380
+ # server error without risk of executing that same action again. Retry tokens expire after 24
381
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
382
+ # has been deleted and purged from the system, then a retry of the original creation request
383
+ # might be rejected.
384
+ #
385
+ # @return [Response] A Response object with data of type nil
386
+ def change_managed_instance_group_compartment(managed_instance_group_id, change_managed_instance_group_compartment_details, opts = {})
387
+ logger.debug 'Calling operation OsManagementClient#change_managed_instance_group_compartment.' if logger
388
+
389
+ raise "Missing the required parameter 'managed_instance_group_id' when calling change_managed_instance_group_compartment." if managed_instance_group_id.nil?
390
+ raise "Missing the required parameter 'change_managed_instance_group_compartment_details' when calling change_managed_instance_group_compartment." if change_managed_instance_group_compartment_details.nil?
391
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
392
+
393
+ path = '/managedInstanceGroups/{managedInstanceGroupId}/actions/changeCompartment'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
394
+ operation_signing_strategy = :standard
395
+
396
+ # rubocop:disable Style/NegatedIf
397
+ # Query Params
398
+ query_params = {}
399
+
400
+ # Header Params
401
+ header_params = {}
402
+ header_params[:accept] = 'application/json'
403
+ header_params[:'content-type'] = 'application/json'
404
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
405
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
406
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
407
+ # rubocop:enable Style/NegatedIf
408
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
409
+
410
+ post_body = @api_client.object_to_http_body(change_managed_instance_group_compartment_details)
411
+
412
+ # rubocop:disable Metrics/BlockLength
413
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#change_managed_instance_group_compartment') do
414
+ @api_client.call_api(
415
+ :POST,
416
+ path,
417
+ endpoint,
418
+ header_params: header_params,
419
+ query_params: query_params,
420
+ operation_signing_strategy: operation_signing_strategy,
421
+ body: post_body
422
+ )
423
+ end
424
+ # rubocop:enable Metrics/BlockLength
425
+ end
426
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
427
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
428
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
429
+
430
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
431
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
432
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
433
+
434
+
435
+ # Moves a resource into a different compartment. When provided, If-Match
436
+ # is checked against ETag values of the resource.
437
+ #
438
+ # @param [String] scheduled_job_id The ID of the scheduled job.
439
+ # @param [OCI::OsManagement::Models::ChangeScheduledJobCompartmentDetails] change_scheduled_job_compartment_details OCID for the compartment to which the resource will be moved.
440
+ # @param [Hash] opts the optional parameters
441
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
442
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
443
+ # @option opts [String] :opc_request_id The client request ID for tracing.
444
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
445
+ # for a resource, set the `if-match` parameter to the value of the
446
+ # etag from a previous GET or POST response for that resource.
447
+ # The resource will be updated or deleted only if the etag you
448
+ # provide matches the resource's current etag value.
449
+ #
450
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
451
+ # server error without risk of executing that same action again. Retry tokens expire after 24
452
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
453
+ # has been deleted and purged from the system, then a retry of the original creation request
454
+ # might be rejected.
455
+ #
456
+ # @return [Response] A Response object with data of type nil
457
+ def change_scheduled_job_compartment(scheduled_job_id, change_scheduled_job_compartment_details, opts = {})
458
+ logger.debug 'Calling operation OsManagementClient#change_scheduled_job_compartment.' if logger
459
+
460
+ raise "Missing the required parameter 'scheduled_job_id' when calling change_scheduled_job_compartment." if scheduled_job_id.nil?
461
+ raise "Missing the required parameter 'change_scheduled_job_compartment_details' when calling change_scheduled_job_compartment." if change_scheduled_job_compartment_details.nil?
462
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
463
+
464
+ path = '/scheduledJobs/{scheduledJobId}/actions/changeCompartment'.sub('{scheduledJobId}', scheduled_job_id.to_s)
465
+ operation_signing_strategy = :standard
466
+
467
+ # rubocop:disable Style/NegatedIf
468
+ # Query Params
469
+ query_params = {}
470
+
471
+ # Header Params
472
+ header_params = {}
473
+ header_params[:accept] = 'application/json'
474
+ header_params[:'content-type'] = 'application/json'
475
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
476
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
477
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
478
+ # rubocop:enable Style/NegatedIf
479
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
480
+
481
+ post_body = @api_client.object_to_http_body(change_scheduled_job_compartment_details)
482
+
483
+ # rubocop:disable Metrics/BlockLength
484
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#change_scheduled_job_compartment') do
485
+ @api_client.call_api(
486
+ :POST,
487
+ path,
488
+ endpoint,
489
+ header_params: header_params,
490
+ query_params: query_params,
491
+ operation_signing_strategy: operation_signing_strategy,
492
+ body: post_body
493
+ )
494
+ end
495
+ # rubocop:enable Metrics/BlockLength
496
+ end
497
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
498
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
499
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
500
+
501
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
502
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
503
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
504
+
505
+
506
+ # Moves a resource into a different compartment. When provided, If-Match
507
+ # is checked against ETag values of the resource.
508
+ #
509
+ # @param [String] software_source_id The OCID of the software source.
510
+ # @param [OCI::OsManagement::Models::ChangeSoftwareSourceCompartmentDetails] change_software_source_compartment_details OCID for the compartment to which the resource will be moved.
511
+ # @param [Hash] opts the optional parameters
512
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
513
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
514
+ # @option opts [String] :opc_request_id The client request ID for tracing.
515
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
516
+ # for a resource, set the `if-match` parameter to the value of the
517
+ # etag from a previous GET or POST response for that resource.
518
+ # The resource will be updated or deleted only if the etag you
519
+ # provide matches the resource's current etag value.
520
+ #
521
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
522
+ # server error without risk of executing that same action again. Retry tokens expire after 24
523
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
524
+ # has been deleted and purged from the system, then a retry of the original creation request
525
+ # might be rejected.
526
+ #
527
+ # @return [Response] A Response object with data of type nil
528
+ def change_software_source_compartment(software_source_id, change_software_source_compartment_details, opts = {})
529
+ logger.debug 'Calling operation OsManagementClient#change_software_source_compartment.' if logger
530
+
531
+ raise "Missing the required parameter 'software_source_id' when calling change_software_source_compartment." if software_source_id.nil?
532
+ raise "Missing the required parameter 'change_software_source_compartment_details' when calling change_software_source_compartment." if change_software_source_compartment_details.nil?
533
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
534
+
535
+ path = '/softwareSources/{softwareSourceId}/actions/changeCompartment'.sub('{softwareSourceId}', software_source_id.to_s)
536
+ operation_signing_strategy = :standard
537
+
538
+ # rubocop:disable Style/NegatedIf
539
+ # Query Params
540
+ query_params = {}
541
+
542
+ # Header Params
543
+ header_params = {}
544
+ header_params[:accept] = 'application/json'
545
+ header_params[:'content-type'] = 'application/json'
546
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
547
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
548
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
549
+ # rubocop:enable Style/NegatedIf
550
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
551
+
552
+ post_body = @api_client.object_to_http_body(change_software_source_compartment_details)
553
+
554
+ # rubocop:disable Metrics/BlockLength
555
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#change_software_source_compartment') do
556
+ @api_client.call_api(
557
+ :POST,
558
+ path,
559
+ endpoint,
560
+ header_params: header_params,
561
+ query_params: query_params,
562
+ operation_signing_strategy: operation_signing_strategy,
563
+ body: post_body
564
+ )
565
+ end
566
+ # rubocop:enable Metrics/BlockLength
567
+ end
568
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
569
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
570
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
571
+
572
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
573
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
574
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
575
+
576
+
577
+ # Creates a new Managed Instance Group on the management system.
578
+ # This will not contain any managed instances after it is first created,
579
+ # and they must be added later.
580
+ #
581
+ # @param [OCI::OsManagement::Models::CreateManagedInstanceGroupDetails] create_managed_instance_group_details Details about a Managed Instance Group to create
582
+ # @param [Hash] opts the optional parameters
583
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
584
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
585
+ # @option opts [String] :opc_request_id The client request ID for tracing.
586
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
587
+ # server error without risk of executing that same action again. Retry tokens expire after 24
588
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
589
+ # has been deleted and purged from the system, then a retry of the original creation request
590
+ # might be rejected.
591
+ #
592
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ManagedInstanceGroup ManagedInstanceGroup}
593
+ def create_managed_instance_group(create_managed_instance_group_details, opts = {})
594
+ logger.debug 'Calling operation OsManagementClient#create_managed_instance_group.' if logger
595
+
596
+ raise "Missing the required parameter 'create_managed_instance_group_details' when calling create_managed_instance_group." if create_managed_instance_group_details.nil?
597
+
598
+ path = '/managedInstanceGroups'
599
+ operation_signing_strategy = :standard
600
+
601
+ # rubocop:disable Style/NegatedIf
602
+ # Query Params
603
+ query_params = {}
604
+
605
+ # Header Params
606
+ header_params = {}
607
+ header_params[:accept] = 'application/json'
608
+ header_params[:'content-type'] = 'application/json'
609
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
610
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
611
+ # rubocop:enable Style/NegatedIf
612
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
613
+
614
+ post_body = @api_client.object_to_http_body(create_managed_instance_group_details)
615
+
616
+ # rubocop:disable Metrics/BlockLength
617
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#create_managed_instance_group') do
618
+ @api_client.call_api(
619
+ :POST,
620
+ path,
621
+ endpoint,
622
+ header_params: header_params,
623
+ query_params: query_params,
624
+ operation_signing_strategy: operation_signing_strategy,
625
+ body: post_body,
626
+ return_type: 'OCI::OsManagement::Models::ManagedInstanceGroup'
627
+ )
628
+ end
629
+ # rubocop:enable Metrics/BlockLength
630
+ end
631
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
632
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
633
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
634
+
635
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
636
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
637
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
638
+
639
+
640
+ # Creates a new Scheduled Job to perform a specific package operation on
641
+ # a set of managed instances or managed instance groups. Can be created
642
+ # as a one-time execution in the future, or as a recurring execution
643
+ # that repeats on a defined interval.
644
+ #
645
+ # @param [OCI::OsManagement::Models::CreateScheduledJobDetails] create_scheduled_job_details Details about a Scheduled Job to create
646
+ # @param [Hash] opts the optional parameters
647
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
648
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
649
+ # @option opts [String] :opc_request_id The client request ID for tracing.
650
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
651
+ # server error without risk of executing that same action again. Retry tokens expire after 24
652
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
653
+ # has been deleted and purged from the system, then a retry of the original creation request
654
+ # might be rejected.
655
+ #
656
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ScheduledJob ScheduledJob}
657
+ def create_scheduled_job(create_scheduled_job_details, opts = {})
658
+ logger.debug 'Calling operation OsManagementClient#create_scheduled_job.' if logger
659
+
660
+ raise "Missing the required parameter 'create_scheduled_job_details' when calling create_scheduled_job." if create_scheduled_job_details.nil?
661
+
662
+ path = '/scheduledJobs'
663
+ operation_signing_strategy = :standard
664
+
665
+ # rubocop:disable Style/NegatedIf
666
+ # Query Params
667
+ query_params = {}
668
+
669
+ # Header Params
670
+ header_params = {}
671
+ header_params[:accept] = 'application/json'
672
+ header_params[:'content-type'] = 'application/json'
673
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
674
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
675
+ # rubocop:enable Style/NegatedIf
676
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
677
+
678
+ post_body = @api_client.object_to_http_body(create_scheduled_job_details)
679
+
680
+ # rubocop:disable Metrics/BlockLength
681
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#create_scheduled_job') do
682
+ @api_client.call_api(
683
+ :POST,
684
+ path,
685
+ endpoint,
686
+ header_params: header_params,
687
+ query_params: query_params,
688
+ operation_signing_strategy: operation_signing_strategy,
689
+ body: post_body,
690
+ return_type: 'OCI::OsManagement::Models::ScheduledJob'
691
+ )
692
+ end
693
+ # rubocop:enable Metrics/BlockLength
694
+ end
695
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
696
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
697
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
698
+
699
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
700
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
701
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
702
+
703
+
704
+ # Creates a new custom Software Source on the management system.
705
+ # This will not contain any packages after it is first created,
706
+ # and they must be added later.
707
+ #
708
+ # @param [OCI::OsManagement::Models::CreateSoftwareSourceDetails] create_software_source_details Details about a Sofware Source to create
709
+ # @param [Hash] opts the optional parameters
710
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
711
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
712
+ # @option opts [String] :opc_request_id The client request ID for tracing.
713
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
714
+ # server error without risk of executing that same action again. Retry tokens expire after 24
715
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
716
+ # has been deleted and purged from the system, then a retry of the original creation request
717
+ # might be rejected.
718
+ #
719
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::SoftwareSource SoftwareSource}
720
+ def create_software_source(create_software_source_details, opts = {})
721
+ logger.debug 'Calling operation OsManagementClient#create_software_source.' if logger
722
+
723
+ raise "Missing the required parameter 'create_software_source_details' when calling create_software_source." if create_software_source_details.nil?
724
+
725
+ path = '/softwareSources'
726
+ operation_signing_strategy = :standard
727
+
728
+ # rubocop:disable Style/NegatedIf
729
+ # Query Params
730
+ query_params = {}
731
+
732
+ # Header Params
733
+ header_params = {}
734
+ header_params[:accept] = 'application/json'
735
+ header_params[:'content-type'] = 'application/json'
736
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
737
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
738
+ # rubocop:enable Style/NegatedIf
739
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
740
+
741
+ post_body = @api_client.object_to_http_body(create_software_source_details)
742
+
743
+ # rubocop:disable Metrics/BlockLength
744
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#create_software_source') do
745
+ @api_client.call_api(
746
+ :POST,
747
+ path,
748
+ endpoint,
749
+ header_params: header_params,
750
+ query_params: query_params,
751
+ operation_signing_strategy: operation_signing_strategy,
752
+ body: post_body,
753
+ return_type: 'OCI::OsManagement::Models::SoftwareSource'
754
+ )
755
+ end
756
+ # rubocop:enable Metrics/BlockLength
757
+ end
758
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
759
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
760
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
761
+
762
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
763
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
764
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
765
+
766
+
767
+ # Deletes a Managed Instance Group from the management system
768
+ #
769
+ # @param [String] managed_instance_group_id OCID for the managed instance group
770
+ # @param [Hash] opts the optional parameters
771
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
772
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
773
+ # @option opts [String] :opc_request_id The client request ID for tracing.
774
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
775
+ # for a resource, set the `if-match` parameter to the value of the
776
+ # etag from a previous GET or POST response for that resource.
777
+ # The resource will be updated or deleted only if the etag you
778
+ # provide matches the resource's current etag value.
779
+ #
780
+ # @return [Response] A Response object with data of type nil
781
+ def delete_managed_instance_group(managed_instance_group_id, opts = {})
782
+ logger.debug 'Calling operation OsManagementClient#delete_managed_instance_group.' if logger
783
+
784
+ raise "Missing the required parameter 'managed_instance_group_id' when calling delete_managed_instance_group." if managed_instance_group_id.nil?
785
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
786
+
787
+ path = '/managedInstanceGroups/{managedInstanceGroupId}'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
788
+ operation_signing_strategy = :standard
789
+
790
+ # rubocop:disable Style/NegatedIf
791
+ # Query Params
792
+ query_params = {}
793
+
794
+ # Header Params
795
+ header_params = {}
796
+ header_params[:accept] = 'application/json'
797
+ header_params[:'content-type'] = 'application/json'
798
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
799
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
800
+ # rubocop:enable Style/NegatedIf
801
+
802
+ post_body = nil
803
+
804
+ # rubocop:disable Metrics/BlockLength
805
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#delete_managed_instance_group') do
806
+ @api_client.call_api(
807
+ :DELETE,
808
+ path,
809
+ endpoint,
810
+ header_params: header_params,
811
+ query_params: query_params,
812
+ operation_signing_strategy: operation_signing_strategy,
813
+ body: post_body
814
+ )
815
+ end
816
+ # rubocop:enable Metrics/BlockLength
817
+ end
818
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
819
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
820
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
821
+
822
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
823
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
824
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
825
+
826
+
827
+ # Cancels an existing Scheduled Job on the management system
828
+ #
829
+ # @param [String] scheduled_job_id The ID of the scheduled job.
830
+ # @param [Hash] opts the optional parameters
831
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
832
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
833
+ # @option opts [String] :opc_request_id The client request ID for tracing.
834
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
835
+ # for a resource, set the `if-match` parameter to the value of the
836
+ # etag from a previous GET or POST response for that resource.
837
+ # The resource will be updated or deleted only if the etag you
838
+ # provide matches the resource's current etag value.
839
+ #
840
+ # @return [Response] A Response object with data of type nil
841
+ def delete_scheduled_job(scheduled_job_id, opts = {})
842
+ logger.debug 'Calling operation OsManagementClient#delete_scheduled_job.' if logger
843
+
844
+ raise "Missing the required parameter 'scheduled_job_id' when calling delete_scheduled_job." if scheduled_job_id.nil?
845
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
846
+
847
+ path = '/scheduledJobs/{scheduledJobId}'.sub('{scheduledJobId}', scheduled_job_id.to_s)
848
+ operation_signing_strategy = :standard
849
+
850
+ # rubocop:disable Style/NegatedIf
851
+ # Query Params
852
+ query_params = {}
853
+
854
+ # Header Params
855
+ header_params = {}
856
+ header_params[:accept] = 'application/json'
857
+ header_params[:'content-type'] = 'application/json'
858
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
859
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
860
+ # rubocop:enable Style/NegatedIf
861
+
862
+ post_body = nil
863
+
864
+ # rubocop:disable Metrics/BlockLength
865
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#delete_scheduled_job') do
866
+ @api_client.call_api(
867
+ :DELETE,
868
+ path,
869
+ endpoint,
870
+ header_params: header_params,
871
+ query_params: query_params,
872
+ operation_signing_strategy: operation_signing_strategy,
873
+ body: post_body
874
+ )
875
+ end
876
+ # rubocop:enable Metrics/BlockLength
877
+ end
878
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
879
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
880
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
881
+
882
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
883
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
884
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
885
+
886
+
887
+ # Deletes a custom Software Source on the management system
888
+ #
889
+ # @param [String] software_source_id The OCID of the software source.
890
+ # @param [Hash] opts the optional parameters
891
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
892
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
893
+ # @option opts [String] :opc_request_id The client request ID for tracing.
894
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
895
+ # for a resource, set the `if-match` parameter to the value of the
896
+ # etag from a previous GET or POST response for that resource.
897
+ # The resource will be updated or deleted only if the etag you
898
+ # provide matches the resource's current etag value.
899
+ #
900
+ # @return [Response] A Response object with data of type nil
901
+ def delete_software_source(software_source_id, opts = {})
902
+ logger.debug 'Calling operation OsManagementClient#delete_software_source.' if logger
903
+
904
+ raise "Missing the required parameter 'software_source_id' when calling delete_software_source." if software_source_id.nil?
905
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
906
+
907
+ path = '/softwareSources/{softwareSourceId}'.sub('{softwareSourceId}', software_source_id.to_s)
908
+ operation_signing_strategy = :standard
909
+
910
+ # rubocop:disable Style/NegatedIf
911
+ # Query Params
912
+ query_params = {}
913
+
914
+ # Header Params
915
+ header_params = {}
916
+ header_params[:accept] = 'application/json'
917
+ header_params[:'content-type'] = 'application/json'
918
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
919
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
920
+ # rubocop:enable Style/NegatedIf
921
+
922
+ post_body = nil
923
+
924
+ # rubocop:disable Metrics/BlockLength
925
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#delete_software_source') do
926
+ @api_client.call_api(
927
+ :DELETE,
928
+ path,
929
+ endpoint,
930
+ header_params: header_params,
931
+ query_params: query_params,
932
+ operation_signing_strategy: operation_signing_strategy,
933
+ body: post_body
934
+ )
935
+ end
936
+ # rubocop:enable Metrics/BlockLength
937
+ end
938
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
939
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
940
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
941
+
942
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
943
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
944
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
945
+
946
+
947
+ # Removes a child software source from a managed instance. Packages will no longer be able to be
948
+ # installed from these software sources.
949
+ #
950
+ # @param [String] managed_instance_id OCID for the managed instance
951
+ # @param [OCI::OsManagement::Models::DetachChildSoftwareSourceFromManagedInstanceDetails] detach_child_software_source_from_managed_instance_details Details for detaching a Software Source from a Managed Instance
952
+ # @param [Hash] opts the optional parameters
953
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
954
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
955
+ # @option opts [String] :opc_request_id The client request ID for tracing.
956
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
957
+ # server error without risk of executing that same action again. Retry tokens expire after 24
958
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
959
+ # has been deleted and purged from the system, then a retry of the original creation request
960
+ # might be rejected.
961
+ #
962
+ # @return [Response] A Response object with data of type nil
963
+ def detach_child_software_source_from_managed_instance(managed_instance_id, detach_child_software_source_from_managed_instance_details, opts = {})
964
+ logger.debug 'Calling operation OsManagementClient#detach_child_software_source_from_managed_instance.' if logger
965
+
966
+ raise "Missing the required parameter 'managed_instance_id' when calling detach_child_software_source_from_managed_instance." if managed_instance_id.nil?
967
+ raise "Missing the required parameter 'detach_child_software_source_from_managed_instance_details' when calling detach_child_software_source_from_managed_instance." if detach_child_software_source_from_managed_instance_details.nil?
968
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
969
+
970
+ path = '/managedInstances/{managedInstanceId}/actions/detachChildSoftwareSource'.sub('{managedInstanceId}', managed_instance_id.to_s)
971
+ operation_signing_strategy = :standard
972
+
973
+ # rubocop:disable Style/NegatedIf
974
+ # Query Params
975
+ query_params = {}
976
+
977
+ # Header Params
978
+ header_params = {}
979
+ header_params[:accept] = 'application/json'
980
+ header_params[:'content-type'] = 'application/json'
981
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
982
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
983
+ # rubocop:enable Style/NegatedIf
984
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
985
+
986
+ post_body = @api_client.object_to_http_body(detach_child_software_source_from_managed_instance_details)
987
+
988
+ # rubocop:disable Metrics/BlockLength
989
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#detach_child_software_source_from_managed_instance') do
990
+ @api_client.call_api(
991
+ :POST,
992
+ path,
993
+ endpoint,
994
+ header_params: header_params,
995
+ query_params: query_params,
996
+ operation_signing_strategy: operation_signing_strategy,
997
+ body: post_body
998
+ )
999
+ end
1000
+ # rubocop:enable Metrics/BlockLength
1001
+ end
1002
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1003
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1004
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1005
+
1006
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1007
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1008
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1009
+
1010
+
1011
+ # Removes a Managed Instance from a Managed Instance Group.
1012
+ #
1013
+ # @param [String] managed_instance_group_id OCID for the managed instance group
1014
+ # @param [String] managed_instance_id OCID for the managed instance
1015
+ # @param [Hash] opts the optional parameters
1016
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1017
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1018
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1019
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1020
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1021
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1022
+ # has been deleted and purged from the system, then a retry of the original creation request
1023
+ # might be rejected.
1024
+ #
1025
+ # @return [Response] A Response object with data of type nil
1026
+ def detach_managed_instance_from_managed_instance_group(managed_instance_group_id, managed_instance_id, opts = {})
1027
+ logger.debug 'Calling operation OsManagementClient#detach_managed_instance_from_managed_instance_group.' if logger
1028
+
1029
+ raise "Missing the required parameter 'managed_instance_group_id' when calling detach_managed_instance_from_managed_instance_group." if managed_instance_group_id.nil?
1030
+ raise "Missing the required parameter 'managed_instance_id' when calling detach_managed_instance_from_managed_instance_group." if managed_instance_id.nil?
1031
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
1032
+
1033
+ path = '/managedInstanceGroups/{managedInstanceGroupId}/actions/detachManagedInstance'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
1034
+ operation_signing_strategy = :standard
1035
+
1036
+ # rubocop:disable Style/NegatedIf
1037
+ # Query Params
1038
+ query_params = {}
1039
+ query_params[:managedInstanceId] = managed_instance_id
1040
+
1041
+ # Header Params
1042
+ header_params = {}
1043
+ header_params[:accept] = 'application/json'
1044
+ header_params[:'content-type'] = 'application/json'
1045
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1046
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1047
+ # rubocop:enable Style/NegatedIf
1048
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1049
+
1050
+ post_body = nil
1051
+
1052
+ # rubocop:disable Metrics/BlockLength
1053
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#detach_managed_instance_from_managed_instance_group') do
1054
+ @api_client.call_api(
1055
+ :POST,
1056
+ path,
1057
+ endpoint,
1058
+ header_params: header_params,
1059
+ query_params: query_params,
1060
+ operation_signing_strategy: operation_signing_strategy,
1061
+ body: post_body
1062
+ )
1063
+ end
1064
+ # rubocop:enable Metrics/BlockLength
1065
+ end
1066
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1067
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1068
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1069
+
1070
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1071
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1072
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1073
+
1074
+
1075
+ # Removes a software source from a managed instance. All child software sources will also be removed
1076
+ # from the managed instance. Packages will no longer be able to be installed from these software sources.
1077
+ #
1078
+ # @param [String] managed_instance_id OCID for the managed instance
1079
+ # @param [OCI::OsManagement::Models::DetachParentSoftwareSourceFromManagedInstanceDetails] detach_parent_software_source_from_managed_instance_details Details for detaching a Software Source from a Managed Instance
1080
+ # @param [Hash] opts the optional parameters
1081
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1082
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1083
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1084
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1085
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1086
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1087
+ # has been deleted and purged from the system, then a retry of the original creation request
1088
+ # might be rejected.
1089
+ #
1090
+ # @return [Response] A Response object with data of type nil
1091
+ def detach_parent_software_source_from_managed_instance(managed_instance_id, detach_parent_software_source_from_managed_instance_details, opts = {})
1092
+ logger.debug 'Calling operation OsManagementClient#detach_parent_software_source_from_managed_instance.' if logger
1093
+
1094
+ raise "Missing the required parameter 'managed_instance_id' when calling detach_parent_software_source_from_managed_instance." if managed_instance_id.nil?
1095
+ raise "Missing the required parameter 'detach_parent_software_source_from_managed_instance_details' when calling detach_parent_software_source_from_managed_instance." if detach_parent_software_source_from_managed_instance_details.nil?
1096
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1097
+
1098
+ path = '/managedInstances/{managedInstanceId}/actions/detachParentSoftwareSource'.sub('{managedInstanceId}', managed_instance_id.to_s)
1099
+ operation_signing_strategy = :standard
1100
+
1101
+ # rubocop:disable Style/NegatedIf
1102
+ # Query Params
1103
+ query_params = {}
1104
+
1105
+ # Header Params
1106
+ header_params = {}
1107
+ header_params[:accept] = 'application/json'
1108
+ header_params[:'content-type'] = 'application/json'
1109
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1110
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1111
+ # rubocop:enable Style/NegatedIf
1112
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1113
+
1114
+ post_body = @api_client.object_to_http_body(detach_parent_software_source_from_managed_instance_details)
1115
+
1116
+ # rubocop:disable Metrics/BlockLength
1117
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#detach_parent_software_source_from_managed_instance') do
1118
+ @api_client.call_api(
1119
+ :POST,
1120
+ path,
1121
+ endpoint,
1122
+ header_params: header_params,
1123
+ query_params: query_params,
1124
+ operation_signing_strategy: operation_signing_strategy,
1125
+ body: post_body
1126
+ )
1127
+ end
1128
+ # rubocop:enable Metrics/BlockLength
1129
+ end
1130
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1131
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1132
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1133
+
1134
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1135
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1136
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1137
+
1138
+
1139
+ # Returns a specific erratum.
1140
+ #
1141
+ # @param [String] erratum_id The OCID of the erratum.
1142
+ # @param [Hash] opts the optional parameters
1143
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1144
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1145
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1146
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::Erratum Erratum}
1147
+ def get_erratum(erratum_id, opts = {})
1148
+ logger.debug 'Calling operation OsManagementClient#get_erratum.' if logger
1149
+
1150
+ raise "Missing the required parameter 'erratum_id' when calling get_erratum." if erratum_id.nil?
1151
+ raise "Parameter value for 'erratum_id' must not be blank" if OCI::Internal::Util.blank_string?(erratum_id)
1152
+
1153
+ path = '/errata/{erratumId}'.sub('{erratumId}', erratum_id.to_s)
1154
+ operation_signing_strategy = :standard
1155
+
1156
+ # rubocop:disable Style/NegatedIf
1157
+ # Query Params
1158
+ query_params = {}
1159
+
1160
+ # Header Params
1161
+ header_params = {}
1162
+ header_params[:accept] = 'application/json'
1163
+ header_params[:'content-type'] = 'application/json'
1164
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1165
+ # rubocop:enable Style/NegatedIf
1166
+
1167
+ post_body = nil
1168
+
1169
+ # rubocop:disable Metrics/BlockLength
1170
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_erratum') do
1171
+ @api_client.call_api(
1172
+ :GET,
1173
+ path,
1174
+ endpoint,
1175
+ header_params: header_params,
1176
+ query_params: query_params,
1177
+ operation_signing_strategy: operation_signing_strategy,
1178
+ body: post_body,
1179
+ return_type: 'OCI::OsManagement::Models::Erratum'
1180
+ )
1181
+ end
1182
+ # rubocop:enable Metrics/BlockLength
1183
+ end
1184
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1185
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1186
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1187
+
1188
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1189
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1190
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1191
+
1192
+
1193
+ # Returns a specific Managed Instance.
1194
+ #
1195
+ # @param [String] managed_instance_id OCID for the managed instance
1196
+ # @param [Hash] opts the optional parameters
1197
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1198
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1199
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1200
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ManagedInstance ManagedInstance}
1201
+ def get_managed_instance(managed_instance_id, opts = {})
1202
+ logger.debug 'Calling operation OsManagementClient#get_managed_instance.' if logger
1203
+
1204
+ raise "Missing the required parameter 'managed_instance_id' when calling get_managed_instance." if managed_instance_id.nil?
1205
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1206
+
1207
+ path = '/managedInstances/{managedInstanceId}'.sub('{managedInstanceId}', managed_instance_id.to_s)
1208
+ operation_signing_strategy = :standard
1209
+
1210
+ # rubocop:disable Style/NegatedIf
1211
+ # Query Params
1212
+ query_params = {}
1213
+
1214
+ # Header Params
1215
+ header_params = {}
1216
+ header_params[:accept] = 'application/json'
1217
+ header_params[:'content-type'] = 'application/json'
1218
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1219
+ # rubocop:enable Style/NegatedIf
1220
+
1221
+ post_body = nil
1222
+
1223
+ # rubocop:disable Metrics/BlockLength
1224
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_managed_instance') do
1225
+ @api_client.call_api(
1226
+ :GET,
1227
+ path,
1228
+ endpoint,
1229
+ header_params: header_params,
1230
+ query_params: query_params,
1231
+ operation_signing_strategy: operation_signing_strategy,
1232
+ body: post_body,
1233
+ return_type: 'OCI::OsManagement::Models::ManagedInstance'
1234
+ )
1235
+ end
1236
+ # rubocop:enable Metrics/BlockLength
1237
+ end
1238
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1239
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1240
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1241
+
1242
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1243
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1244
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1245
+
1246
+
1247
+ # Returns a specific Managed Instance Group.
1248
+ #
1249
+ # @param [String] managed_instance_group_id OCID for the managed instance group
1250
+ # @param [Hash] opts the optional parameters
1251
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1252
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1253
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1254
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ManagedInstanceGroup ManagedInstanceGroup}
1255
+ def get_managed_instance_group(managed_instance_group_id, opts = {})
1256
+ logger.debug 'Calling operation OsManagementClient#get_managed_instance_group.' if logger
1257
+
1258
+ raise "Missing the required parameter 'managed_instance_group_id' when calling get_managed_instance_group." if managed_instance_group_id.nil?
1259
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
1260
+
1261
+ path = '/managedInstanceGroups/{managedInstanceGroupId}'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
1262
+ operation_signing_strategy = :standard
1263
+
1264
+ # rubocop:disable Style/NegatedIf
1265
+ # Query Params
1266
+ query_params = {}
1267
+
1268
+ # Header Params
1269
+ header_params = {}
1270
+ header_params[:accept] = 'application/json'
1271
+ header_params[:'content-type'] = 'application/json'
1272
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1273
+ # rubocop:enable Style/NegatedIf
1274
+
1275
+ post_body = nil
1276
+
1277
+ # rubocop:disable Metrics/BlockLength
1278
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_managed_instance_group') do
1279
+ @api_client.call_api(
1280
+ :GET,
1281
+ path,
1282
+ endpoint,
1283
+ header_params: header_params,
1284
+ query_params: query_params,
1285
+ operation_signing_strategy: operation_signing_strategy,
1286
+ body: post_body,
1287
+ return_type: 'OCI::OsManagement::Models::ManagedInstanceGroup'
1288
+ )
1289
+ end
1290
+ # rubocop:enable Metrics/BlockLength
1291
+ end
1292
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1293
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1294
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1295
+
1296
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1297
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1298
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1299
+
1300
+
1301
+ # Gets the detailed information for the Scheduled Job with the given ID.
1302
+ #
1303
+ # @param [String] scheduled_job_id The ID of the scheduled job.
1304
+ # @param [Hash] opts the optional parameters
1305
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1306
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1307
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1308
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ScheduledJob ScheduledJob}
1309
+ def get_scheduled_job(scheduled_job_id, opts = {})
1310
+ logger.debug 'Calling operation OsManagementClient#get_scheduled_job.' if logger
1311
+
1312
+ raise "Missing the required parameter 'scheduled_job_id' when calling get_scheduled_job." if scheduled_job_id.nil?
1313
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
1314
+
1315
+ path = '/scheduledJobs/{scheduledJobId}'.sub('{scheduledJobId}', scheduled_job_id.to_s)
1316
+ operation_signing_strategy = :standard
1317
+
1318
+ # rubocop:disable Style/NegatedIf
1319
+ # Query Params
1320
+ query_params = {}
1321
+
1322
+ # Header Params
1323
+ header_params = {}
1324
+ header_params[:accept] = 'application/json'
1325
+ header_params[:'content-type'] = 'application/json'
1326
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1327
+ # rubocop:enable Style/NegatedIf
1328
+
1329
+ post_body = nil
1330
+
1331
+ # rubocop:disable Metrics/BlockLength
1332
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_scheduled_job') do
1333
+ @api_client.call_api(
1334
+ :GET,
1335
+ path,
1336
+ endpoint,
1337
+ header_params: header_params,
1338
+ query_params: query_params,
1339
+ operation_signing_strategy: operation_signing_strategy,
1340
+ body: post_body,
1341
+ return_type: 'OCI::OsManagement::Models::ScheduledJob'
1342
+ )
1343
+ end
1344
+ # rubocop:enable Metrics/BlockLength
1345
+ end
1346
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1347
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1348
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1349
+
1350
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1351
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1352
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1353
+
1354
+
1355
+ # Returns a specific Software Package.
1356
+ #
1357
+ # @param [String] software_source_id The OCID of the software source.
1358
+ # @param [String] software_package_name The id of the software package.
1359
+ # @param [Hash] opts the optional parameters
1360
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1361
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1362
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1363
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::SoftwarePackage SoftwarePackage}
1364
+ def get_software_package(software_source_id, software_package_name, opts = {})
1365
+ logger.debug 'Calling operation OsManagementClient#get_software_package.' if logger
1366
+
1367
+ raise "Missing the required parameter 'software_source_id' when calling get_software_package." if software_source_id.nil?
1368
+ raise "Missing the required parameter 'software_package_name' when calling get_software_package." if software_package_name.nil?
1369
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
1370
+ raise "Parameter value for 'software_package_name' must not be blank" if OCI::Internal::Util.blank_string?(software_package_name)
1371
+
1372
+ path = '/softwareSources/{softwareSourceId}/softwarePackages/{softwarePackageName}'.sub('{softwareSourceId}', software_source_id.to_s).sub('{softwarePackageName}', software_package_name.to_s)
1373
+ operation_signing_strategy = :standard
1374
+
1375
+ # rubocop:disable Style/NegatedIf
1376
+ # Query Params
1377
+ query_params = {}
1378
+
1379
+ # Header Params
1380
+ header_params = {}
1381
+ header_params[:accept] = 'application/json'
1382
+ header_params[:'content-type'] = 'application/json'
1383
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1384
+ # rubocop:enable Style/NegatedIf
1385
+
1386
+ post_body = nil
1387
+
1388
+ # rubocop:disable Metrics/BlockLength
1389
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_software_package') do
1390
+ @api_client.call_api(
1391
+ :GET,
1392
+ path,
1393
+ endpoint,
1394
+ header_params: header_params,
1395
+ query_params: query_params,
1396
+ operation_signing_strategy: operation_signing_strategy,
1397
+ body: post_body,
1398
+ return_type: 'OCI::OsManagement::Models::SoftwarePackage'
1399
+ )
1400
+ end
1401
+ # rubocop:enable Metrics/BlockLength
1402
+ end
1403
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1404
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1405
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1406
+
1407
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1408
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1409
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1410
+
1411
+
1412
+ # Returns a specific Software Source.
1413
+ #
1414
+ # @param [String] software_source_id The OCID of the software source.
1415
+ # @param [Hash] opts the optional parameters
1416
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1417
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1418
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1419
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::SoftwareSource SoftwareSource}
1420
+ def get_software_source(software_source_id, opts = {})
1421
+ logger.debug 'Calling operation OsManagementClient#get_software_source.' if logger
1422
+
1423
+ raise "Missing the required parameter 'software_source_id' when calling get_software_source." if software_source_id.nil?
1424
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
1425
+
1426
+ path = '/softwareSources/{softwareSourceId}'.sub('{softwareSourceId}', software_source_id.to_s)
1427
+ operation_signing_strategy = :standard
1428
+
1429
+ # rubocop:disable Style/NegatedIf
1430
+ # Query Params
1431
+ query_params = {}
1432
+
1433
+ # Header Params
1434
+ header_params = {}
1435
+ header_params[:accept] = 'application/json'
1436
+ header_params[:'content-type'] = 'application/json'
1437
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1438
+ # rubocop:enable Style/NegatedIf
1439
+
1440
+ post_body = nil
1441
+
1442
+ # rubocop:disable Metrics/BlockLength
1443
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_software_source') do
1444
+ @api_client.call_api(
1445
+ :GET,
1446
+ path,
1447
+ endpoint,
1448
+ header_params: header_params,
1449
+ query_params: query_params,
1450
+ operation_signing_strategy: operation_signing_strategy,
1451
+ body: post_body,
1452
+ return_type: 'OCI::OsManagement::Models::SoftwareSource'
1453
+ )
1454
+ end
1455
+ # rubocop:enable Metrics/BlockLength
1456
+ end
1457
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1458
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1459
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1460
+
1461
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1462
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1463
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1464
+
1465
+
1466
+ # Gets the detailed information for the work request with the given ID.
1467
+ # @param [String] work_request_id The ID of the asynchronous request.
1468
+ # @param [Hash] opts the optional parameters
1469
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1470
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1471
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1472
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::WorkRequest WorkRequest}
1473
+ def get_work_request(work_request_id, opts = {})
1474
+ logger.debug 'Calling operation OsManagementClient#get_work_request.' if logger
1475
+
1476
+ raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
1477
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1478
+
1479
+ path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
1480
+ operation_signing_strategy = :standard
1481
+
1482
+ # rubocop:disable Style/NegatedIf
1483
+ # Query Params
1484
+ query_params = {}
1485
+
1486
+ # Header Params
1487
+ header_params = {}
1488
+ header_params[:accept] = 'application/json'
1489
+ header_params[:'content-type'] = 'application/json'
1490
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1491
+ # rubocop:enable Style/NegatedIf
1492
+
1493
+ post_body = nil
1494
+
1495
+ # rubocop:disable Metrics/BlockLength
1496
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#get_work_request') do
1497
+ @api_client.call_api(
1498
+ :GET,
1499
+ path,
1500
+ endpoint,
1501
+ header_params: header_params,
1502
+ query_params: query_params,
1503
+ operation_signing_strategy: operation_signing_strategy,
1504
+ body: post_body,
1505
+ return_type: 'OCI::OsManagement::Models::WorkRequest'
1506
+ )
1507
+ end
1508
+ # rubocop:enable Metrics/BlockLength
1509
+ end
1510
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1511
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1512
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1513
+
1514
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1515
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1516
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1517
+
1518
+
1519
+ # Install all of the available package updates for the managed instance.
1520
+ #
1521
+ # @param [String] managed_instance_id OCID for the managed instance
1522
+ # @param [Hash] opts the optional parameters
1523
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1524
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1525
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1526
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1527
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1528
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1529
+ # has been deleted and purged from the system, then a retry of the original creation request
1530
+ # might be rejected.
1531
+ #
1532
+ # @return [Response] A Response object with data of type nil
1533
+ def install_all_package_updates_on_managed_instance(managed_instance_id, opts = {})
1534
+ logger.debug 'Calling operation OsManagementClient#install_all_package_updates_on_managed_instance.' if logger
1535
+
1536
+ raise "Missing the required parameter 'managed_instance_id' when calling install_all_package_updates_on_managed_instance." if managed_instance_id.nil?
1537
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1538
+
1539
+ path = '/managedInstances/{managedInstanceId}/actions/packages/updateAll'.sub('{managedInstanceId}', managed_instance_id.to_s)
1540
+ operation_signing_strategy = :standard
1541
+
1542
+ # rubocop:disable Style/NegatedIf
1543
+ # Query Params
1544
+ query_params = {}
1545
+
1546
+ # Header Params
1547
+ header_params = {}
1548
+ header_params[:accept] = 'application/json'
1549
+ header_params[:'content-type'] = 'application/json'
1550
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1551
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1552
+ # rubocop:enable Style/NegatedIf
1553
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1554
+
1555
+ post_body = nil
1556
+
1557
+ # rubocop:disable Metrics/BlockLength
1558
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#install_all_package_updates_on_managed_instance') do
1559
+ @api_client.call_api(
1560
+ :POST,
1561
+ path,
1562
+ endpoint,
1563
+ header_params: header_params,
1564
+ query_params: query_params,
1565
+ operation_signing_strategy: operation_signing_strategy,
1566
+ body: post_body
1567
+ )
1568
+ end
1569
+ # rubocop:enable Metrics/BlockLength
1570
+ end
1571
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1572
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1573
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1574
+
1575
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1576
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1577
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1578
+
1579
+
1580
+ # Installs a package on a managed instance.
1581
+ #
1582
+ # @param [String] managed_instance_id OCID for the managed instance
1583
+ # @param [String] software_package_name Package name
1584
+ # @param [Hash] opts the optional parameters
1585
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1586
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1587
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1588
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1589
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1590
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1591
+ # has been deleted and purged from the system, then a retry of the original creation request
1592
+ # might be rejected.
1593
+ #
1594
+ # @return [Response] A Response object with data of type nil
1595
+ def install_package_on_managed_instance(managed_instance_id, software_package_name, opts = {})
1596
+ logger.debug 'Calling operation OsManagementClient#install_package_on_managed_instance.' if logger
1597
+
1598
+ raise "Missing the required parameter 'managed_instance_id' when calling install_package_on_managed_instance." if managed_instance_id.nil?
1599
+ raise "Missing the required parameter 'software_package_name' when calling install_package_on_managed_instance." if software_package_name.nil?
1600
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1601
+
1602
+ path = '/managedInstances/{managedInstanceId}/actions/packages/install'.sub('{managedInstanceId}', managed_instance_id.to_s)
1603
+ operation_signing_strategy = :standard
1604
+
1605
+ # rubocop:disable Style/NegatedIf
1606
+ # Query Params
1607
+ query_params = {}
1608
+ query_params[:softwarePackageName] = software_package_name
1609
+
1610
+ # Header Params
1611
+ header_params = {}
1612
+ header_params[:accept] = 'application/json'
1613
+ header_params[:'content-type'] = 'application/json'
1614
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1615
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1616
+ # rubocop:enable Style/NegatedIf
1617
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1618
+
1619
+ post_body = nil
1620
+
1621
+ # rubocop:disable Metrics/BlockLength
1622
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#install_package_on_managed_instance') do
1623
+ @api_client.call_api(
1624
+ :POST,
1625
+ path,
1626
+ endpoint,
1627
+ header_params: header_params,
1628
+ query_params: query_params,
1629
+ operation_signing_strategy: operation_signing_strategy,
1630
+ body: post_body
1631
+ )
1632
+ end
1633
+ # rubocop:enable Metrics/BlockLength
1634
+ end
1635
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1636
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1637
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1638
+
1639
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1640
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1641
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1642
+
1643
+
1644
+ # Updates a package on a managed instance.
1645
+ #
1646
+ # @param [String] managed_instance_id OCID for the managed instance
1647
+ # @param [String] software_package_name Package name
1648
+ # @param [Hash] opts the optional parameters
1649
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1650
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1651
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1652
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1653
+ # server error without risk of executing that same action again. Retry tokens expire after 24
1654
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1655
+ # has been deleted and purged from the system, then a retry of the original creation request
1656
+ # might be rejected.
1657
+ #
1658
+ # @return [Response] A Response object with data of type nil
1659
+ def install_package_update_on_managed_instance(managed_instance_id, software_package_name, opts = {})
1660
+ logger.debug 'Calling operation OsManagementClient#install_package_update_on_managed_instance.' if logger
1661
+
1662
+ raise "Missing the required parameter 'managed_instance_id' when calling install_package_update_on_managed_instance." if managed_instance_id.nil?
1663
+ raise "Missing the required parameter 'software_package_name' when calling install_package_update_on_managed_instance." if software_package_name.nil?
1664
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1665
+
1666
+ path = '/managedInstances/{managedInstanceId}/actions/packages/update'.sub('{managedInstanceId}', managed_instance_id.to_s)
1667
+ operation_signing_strategy = :standard
1668
+
1669
+ # rubocop:disable Style/NegatedIf
1670
+ # Query Params
1671
+ query_params = {}
1672
+ query_params[:softwarePackageName] = software_package_name
1673
+
1674
+ # Header Params
1675
+ header_params = {}
1676
+ header_params[:accept] = 'application/json'
1677
+ header_params[:'content-type'] = 'application/json'
1678
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1679
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1680
+ # rubocop:enable Style/NegatedIf
1681
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
1682
+
1683
+ post_body = nil
1684
+
1685
+ # rubocop:disable Metrics/BlockLength
1686
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#install_package_update_on_managed_instance') do
1687
+ @api_client.call_api(
1688
+ :POST,
1689
+ path,
1690
+ endpoint,
1691
+ header_params: header_params,
1692
+ query_params: query_params,
1693
+ operation_signing_strategy: operation_signing_strategy,
1694
+ body: post_body
1695
+ )
1696
+ end
1697
+ # rubocop:enable Metrics/BlockLength
1698
+ end
1699
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1700
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1701
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1702
+
1703
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1704
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1705
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1706
+
1707
+
1708
+ # Returns a list of packages available for install on the Managed Instance.
1709
+ #
1710
+ # @param [String] managed_instance_id OCID for the managed instance
1711
+ # @param [Hash] opts the optional parameters
1712
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1713
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1714
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
1715
+ #
1716
+ # Example: `My new resource`
1717
+ #
1718
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1719
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1720
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1721
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
1722
+ # Allowed values are: ASC, DESC
1723
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
1724
+ # (default to TIMECREATED)
1725
+ # Allowed values are: TIMECREATED, DISPLAYNAME
1726
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1727
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::InstallablePackageSummary InstallablePackageSummary}>
1728
+ def list_available_packages_for_managed_instance(managed_instance_id, opts = {})
1729
+ logger.debug 'Calling operation OsManagementClient#list_available_packages_for_managed_instance.' if logger
1730
+
1731
+ raise "Missing the required parameter 'managed_instance_id' when calling list_available_packages_for_managed_instance." if managed_instance_id.nil?
1732
+
1733
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1734
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1735
+ end
1736
+
1737
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1738
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1739
+ end
1740
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1741
+
1742
+ path = '/managedInstances/{managedInstanceId}/packages/available'.sub('{managedInstanceId}', managed_instance_id.to_s)
1743
+ operation_signing_strategy = :standard
1744
+
1745
+ # rubocop:disable Style/NegatedIf
1746
+ # Query Params
1747
+ query_params = {}
1748
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1749
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1750
+ query_params[:limit] = opts[:limit] if opts[:limit]
1751
+ query_params[:page] = opts[:page] if opts[:page]
1752
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1753
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1754
+
1755
+ # Header Params
1756
+ header_params = {}
1757
+ header_params[:accept] = 'application/json'
1758
+ header_params[:'content-type'] = 'application/json'
1759
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1760
+ # rubocop:enable Style/NegatedIf
1761
+
1762
+ post_body = nil
1763
+
1764
+ # rubocop:disable Metrics/BlockLength
1765
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_available_packages_for_managed_instance') do
1766
+ @api_client.call_api(
1767
+ :GET,
1768
+ path,
1769
+ endpoint,
1770
+ header_params: header_params,
1771
+ query_params: query_params,
1772
+ operation_signing_strategy: operation_signing_strategy,
1773
+ body: post_body,
1774
+ return_type: 'Array<OCI::OsManagement::Models::InstallablePackageSummary>'
1775
+ )
1776
+ end
1777
+ # rubocop:enable Metrics/BlockLength
1778
+ end
1779
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1780
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1781
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1782
+
1783
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1784
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1785
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1786
+
1787
+
1788
+ # Returns a list of available software sources for a Managed Instance.
1789
+ #
1790
+ # @param [String] managed_instance_id OCID for the managed instance
1791
+ # @param [Hash] opts the optional parameters
1792
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1793
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1794
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
1795
+ #
1796
+ # Example: `My new resource`
1797
+ #
1798
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1799
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1800
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1801
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
1802
+ # Allowed values are: ASC, DESC
1803
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
1804
+ # (default to TIMECREATED)
1805
+ # Allowed values are: TIMECREATED, DISPLAYNAME
1806
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1807
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::AvailableSoftwareSourceSummary AvailableSoftwareSourceSummary}>
1808
+ def list_available_software_sources_for_managed_instance(managed_instance_id, opts = {})
1809
+ logger.debug 'Calling operation OsManagementClient#list_available_software_sources_for_managed_instance.' if logger
1810
+
1811
+ raise "Missing the required parameter 'managed_instance_id' when calling list_available_software_sources_for_managed_instance." if managed_instance_id.nil?
1812
+
1813
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1814
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1815
+ end
1816
+
1817
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1818
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1819
+ end
1820
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1821
+
1822
+ path = '/managedInstances/{managedInstanceId}/availableSoftwareSources'.sub('{managedInstanceId}', managed_instance_id.to_s)
1823
+ operation_signing_strategy = :standard
1824
+
1825
+ # rubocop:disable Style/NegatedIf
1826
+ # Query Params
1827
+ query_params = {}
1828
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1829
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1830
+ query_params[:limit] = opts[:limit] if opts[:limit]
1831
+ query_params[:page] = opts[:page] if opts[:page]
1832
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1833
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1834
+
1835
+ # Header Params
1836
+ header_params = {}
1837
+ header_params[:accept] = 'application/json'
1838
+ header_params[:'content-type'] = 'application/json'
1839
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1840
+ # rubocop:enable Style/NegatedIf
1841
+
1842
+ post_body = nil
1843
+
1844
+ # rubocop:disable Metrics/BlockLength
1845
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_available_software_sources_for_managed_instance') do
1846
+ @api_client.call_api(
1847
+ :GET,
1848
+ path,
1849
+ endpoint,
1850
+ header_params: header_params,
1851
+ query_params: query_params,
1852
+ operation_signing_strategy: operation_signing_strategy,
1853
+ body: post_body,
1854
+ return_type: 'Array<OCI::OsManagement::Models::AvailableSoftwareSourceSummary>'
1855
+ )
1856
+ end
1857
+ # rubocop:enable Metrics/BlockLength
1858
+ end
1859
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1860
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1861
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1862
+
1863
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1864
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1865
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1866
+
1867
+
1868
+ # Returns a list of available updates for a Managed Instance.
1869
+ #
1870
+ # @param [String] managed_instance_id OCID for the managed instance
1871
+ # @param [Hash] opts the optional parameters
1872
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1873
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1874
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
1875
+ #
1876
+ # Example: `My new resource`
1877
+ #
1878
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1879
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1880
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1881
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
1882
+ # Allowed values are: ASC, DESC
1883
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
1884
+ # (default to TIMECREATED)
1885
+ # Allowed values are: TIMECREATED, DISPLAYNAME
1886
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1887
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::AvailableUpdateSummary AvailableUpdateSummary}>
1888
+ def list_available_updates_for_managed_instance(managed_instance_id, opts = {})
1889
+ logger.debug 'Calling operation OsManagementClient#list_available_updates_for_managed_instance.' if logger
1890
+
1891
+ raise "Missing the required parameter 'managed_instance_id' when calling list_available_updates_for_managed_instance." if managed_instance_id.nil?
1892
+
1893
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1894
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1895
+ end
1896
+
1897
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1898
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1899
+ end
1900
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
1901
+
1902
+ path = '/managedInstances/{managedInstanceId}/packages/updates'.sub('{managedInstanceId}', managed_instance_id.to_s)
1903
+ operation_signing_strategy = :standard
1904
+
1905
+ # rubocop:disable Style/NegatedIf
1906
+ # Query Params
1907
+ query_params = {}
1908
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1909
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1910
+ query_params[:limit] = opts[:limit] if opts[:limit]
1911
+ query_params[:page] = opts[:page] if opts[:page]
1912
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1913
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1914
+
1915
+ # Header Params
1916
+ header_params = {}
1917
+ header_params[:accept] = 'application/json'
1918
+ header_params[:'content-type'] = 'application/json'
1919
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1920
+ # rubocop:enable Style/NegatedIf
1921
+
1922
+ post_body = nil
1923
+
1924
+ # rubocop:disable Metrics/BlockLength
1925
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_available_updates_for_managed_instance') do
1926
+ @api_client.call_api(
1927
+ :GET,
1928
+ path,
1929
+ endpoint,
1930
+ header_params: header_params,
1931
+ query_params: query_params,
1932
+ operation_signing_strategy: operation_signing_strategy,
1933
+ body: post_body,
1934
+ return_type: 'Array<OCI::OsManagement::Models::AvailableUpdateSummary>'
1935
+ )
1936
+ end
1937
+ # rubocop:enable Metrics/BlockLength
1938
+ end
1939
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1940
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1941
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1942
+
1943
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1944
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1945
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1946
+
1947
+
1948
+ # Returns a list of all Managed Instance Groups.
1949
+ #
1950
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
1951
+ # @param [Hash] opts the optional parameters
1952
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1953
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1954
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
1955
+ #
1956
+ # Example: `My new resource`
1957
+ #
1958
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1959
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1960
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
1961
+ # Allowed values are: ASC, DESC
1962
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
1963
+ # (default to TIMECREATED)
1964
+ # Allowed values are: TIMECREATED, DISPLAYNAME
1965
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1966
+ # @option opts [String] :lifecycle_state The current lifecycle state for the object.
1967
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::ManagedInstanceGroupSummary ManagedInstanceGroupSummary}>
1968
+ def list_managed_instance_groups(compartment_id, opts = {})
1969
+ logger.debug 'Calling operation OsManagementClient#list_managed_instance_groups.' if logger
1970
+
1971
+ raise "Missing the required parameter 'compartment_id' when calling list_managed_instance_groups." if compartment_id.nil?
1972
+
1973
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1974
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1975
+ end
1976
+
1977
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1978
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1979
+ end
1980
+
1981
+ if opts[:lifecycle_state] && !OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
1982
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.'
1983
+ end
1984
+
1985
+ path = '/managedInstanceGroups'
1986
+ operation_signing_strategy = :standard
1987
+
1988
+ # rubocop:disable Style/NegatedIf
1989
+ # Query Params
1990
+ query_params = {}
1991
+ query_params[:compartmentId] = compartment_id
1992
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1993
+ query_params[:limit] = opts[:limit] if opts[:limit]
1994
+ query_params[:page] = opts[:page] if opts[:page]
1995
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1996
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1997
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1998
+
1999
+ # Header Params
2000
+ header_params = {}
2001
+ header_params[:accept] = 'application/json'
2002
+ header_params[:'content-type'] = 'application/json'
2003
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2004
+ # rubocop:enable Style/NegatedIf
2005
+
2006
+ post_body = nil
2007
+
2008
+ # rubocop:disable Metrics/BlockLength
2009
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_managed_instance_groups') do
2010
+ @api_client.call_api(
2011
+ :GET,
2012
+ path,
2013
+ endpoint,
2014
+ header_params: header_params,
2015
+ query_params: query_params,
2016
+ operation_signing_strategy: operation_signing_strategy,
2017
+ body: post_body,
2018
+ return_type: 'Array<OCI::OsManagement::Models::ManagedInstanceGroupSummary>'
2019
+ )
2020
+ end
2021
+ # rubocop:enable Metrics/BlockLength
2022
+ end
2023
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2024
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2025
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2026
+
2027
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2028
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2029
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2030
+
2031
+
2032
+ # Returns a list of all Managed Instances.
2033
+ #
2034
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
2035
+ # @param [Hash] opts the optional parameters
2036
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2037
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2038
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2039
+ #
2040
+ # Example: `My new resource`
2041
+ #
2042
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2043
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2044
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2045
+ # Allowed values are: ASC, DESC
2046
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2047
+ # (default to TIMECREATED)
2048
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2049
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2050
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::ManagedInstanceSummary ManagedInstanceSummary}>
2051
+ def list_managed_instances(compartment_id, opts = {})
2052
+ logger.debug 'Calling operation OsManagementClient#list_managed_instances.' if logger
2053
+
2054
+ raise "Missing the required parameter 'compartment_id' when calling list_managed_instances." if compartment_id.nil?
2055
+
2056
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2057
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2058
+ end
2059
+
2060
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2061
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2062
+ end
2063
+
2064
+ path = '/managedInstances'
2065
+ operation_signing_strategy = :standard
2066
+
2067
+ # rubocop:disable Style/NegatedIf
2068
+ # Query Params
2069
+ query_params = {}
2070
+ query_params[:compartmentId] = compartment_id
2071
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2072
+ query_params[:limit] = opts[:limit] if opts[:limit]
2073
+ query_params[:page] = opts[:page] if opts[:page]
2074
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2075
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2076
+
2077
+ # Header Params
2078
+ header_params = {}
2079
+ header_params[:accept] = 'application/json'
2080
+ header_params[:'content-type'] = 'application/json'
2081
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2082
+ # rubocop:enable Style/NegatedIf
2083
+
2084
+ post_body = nil
2085
+
2086
+ # rubocop:disable Metrics/BlockLength
2087
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_managed_instances') do
2088
+ @api_client.call_api(
2089
+ :GET,
2090
+ path,
2091
+ endpoint,
2092
+ header_params: header_params,
2093
+ query_params: query_params,
2094
+ operation_signing_strategy: operation_signing_strategy,
2095
+ body: post_body,
2096
+ return_type: 'Array<OCI::OsManagement::Models::ManagedInstanceSummary>'
2097
+ )
2098
+ end
2099
+ # rubocop:enable Metrics/BlockLength
2100
+ end
2101
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2102
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2103
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2104
+
2105
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2106
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2107
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2108
+
2109
+
2110
+ # Returns a list of installed packages on the Managed Instance.
2111
+ #
2112
+ # @param [String] managed_instance_id OCID for the managed instance
2113
+ # @param [Hash] opts the optional parameters
2114
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2115
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2116
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2117
+ #
2118
+ # Example: `My new resource`
2119
+ #
2120
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
2121
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2122
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2123
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2124
+ # Allowed values are: ASC, DESC
2125
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2126
+ # (default to TIMECREATED)
2127
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2128
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2129
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::InstalledPackageSummary InstalledPackageSummary}>
2130
+ def list_packages_installed_on_managed_instance(managed_instance_id, opts = {})
2131
+ logger.debug 'Calling operation OsManagementClient#list_packages_installed_on_managed_instance.' if logger
2132
+
2133
+ raise "Missing the required parameter 'managed_instance_id' when calling list_packages_installed_on_managed_instance." if managed_instance_id.nil?
2134
+
2135
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2136
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2137
+ end
2138
+
2139
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2140
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2141
+ end
2142
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
2143
+
2144
+ path = '/managedInstances/{managedInstanceId}/packages'.sub('{managedInstanceId}', managed_instance_id.to_s)
2145
+ operation_signing_strategy = :standard
2146
+
2147
+ # rubocop:disable Style/NegatedIf
2148
+ # Query Params
2149
+ query_params = {}
2150
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2151
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2152
+ query_params[:limit] = opts[:limit] if opts[:limit]
2153
+ query_params[:page] = opts[:page] if opts[:page]
2154
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2155
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2156
+
2157
+ # Header Params
2158
+ header_params = {}
2159
+ header_params[:accept] = 'application/json'
2160
+ header_params[:'content-type'] = 'application/json'
2161
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2162
+ # rubocop:enable Style/NegatedIf
2163
+
2164
+ post_body = nil
2165
+
2166
+ # rubocop:disable Metrics/BlockLength
2167
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_packages_installed_on_managed_instance') do
2168
+ @api_client.call_api(
2169
+ :GET,
2170
+ path,
2171
+ endpoint,
2172
+ header_params: header_params,
2173
+ query_params: query_params,
2174
+ operation_signing_strategy: operation_signing_strategy,
2175
+ body: post_body,
2176
+ return_type: 'Array<OCI::OsManagement::Models::InstalledPackageSummary>'
2177
+ )
2178
+ end
2179
+ # rubocop:enable Metrics/BlockLength
2180
+ end
2181
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2182
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2183
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2184
+
2185
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2186
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2187
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2188
+
2189
+
2190
+ # Returns a list of all of the currently active Scheduled Jobs in the system
2191
+ #
2192
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
2193
+ # @param [Hash] opts the optional parameters
2194
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2195
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2196
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2197
+ #
2198
+ # Example: `My new resource`
2199
+ #
2200
+ # @option opts [String] :managed_instance_id The ID of the managed instance for which to list resources.
2201
+ # @option opts [String] :managed_instance_group_id The ID of the managed instace group for which to list resources.
2202
+ # @option opts [String] :operation_type The operation type for which to list resources
2203
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2204
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2205
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2206
+ # Allowed values are: ASC, DESC
2207
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2208
+ # (default to TIMECREATED)
2209
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2210
+ # @option opts [String] :lifecycle_state The current lifecycle state for the object.
2211
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2212
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::ScheduledJobSummary ScheduledJobSummary}>
2213
+ def list_scheduled_jobs(compartment_id, opts = {})
2214
+ logger.debug 'Calling operation OsManagementClient#list_scheduled_jobs.' if logger
2215
+
2216
+ raise "Missing the required parameter 'compartment_id' when calling list_scheduled_jobs." if compartment_id.nil?
2217
+
2218
+ if opts[:operation_type] && !OCI::OsManagement::Models::OPERATION_TYPES_ENUM.include?(opts[:operation_type])
2219
+ raise 'Invalid value for "operation_type", must be one of the values in OCI::OsManagement::Models::OPERATION_TYPES_ENUM.'
2220
+ end
2221
+
2222
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2223
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2224
+ end
2225
+
2226
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2227
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2228
+ end
2229
+
2230
+ if opts[:lifecycle_state] && !OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
2231
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.'
2232
+ end
2233
+
2234
+ path = '/scheduledJobs'
2235
+ operation_signing_strategy = :standard
2236
+
2237
+ # rubocop:disable Style/NegatedIf
2238
+ # Query Params
2239
+ query_params = {}
2240
+ query_params[:compartmentId] = compartment_id
2241
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2242
+ query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
2243
+ query_params[:managedInstanceGroupId] = opts[:managed_instance_group_id] if opts[:managed_instance_group_id]
2244
+ query_params[:operationType] = opts[:operation_type] if opts[:operation_type]
2245
+ query_params[:limit] = opts[:limit] if opts[:limit]
2246
+ query_params[:page] = opts[:page] if opts[:page]
2247
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2248
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2249
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
2250
+
2251
+ # Header Params
2252
+ header_params = {}
2253
+ header_params[:accept] = 'application/json'
2254
+ header_params[:'content-type'] = 'application/json'
2255
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2256
+ # rubocop:enable Style/NegatedIf
2257
+
2258
+ post_body = nil
2259
+
2260
+ # rubocop:disable Metrics/BlockLength
2261
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_scheduled_jobs') do
2262
+ @api_client.call_api(
2263
+ :GET,
2264
+ path,
2265
+ endpoint,
2266
+ header_params: header_params,
2267
+ query_params: query_params,
2268
+ operation_signing_strategy: operation_signing_strategy,
2269
+ body: post_body,
2270
+ return_type: 'Array<OCI::OsManagement::Models::ScheduledJobSummary>'
2271
+ )
2272
+ end
2273
+ # rubocop:enable Metrics/BlockLength
2274
+ end
2275
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2276
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2277
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2278
+
2279
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2280
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2281
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2282
+
2283
+
2284
+ # Lists Software Packages in a Software Source
2285
+ #
2286
+ # @param [String] software_source_id The OCID of the software source.
2287
+ # @param [Hash] opts the optional parameters
2288
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2289
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2290
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
2291
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2292
+ #
2293
+ # Example: `My new resource`
2294
+ #
2295
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2296
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2297
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2298
+ # Allowed values are: ASC, DESC
2299
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2300
+ # (default to TIMECREATED)
2301
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2302
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2303
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::SoftwarePackageSummary SoftwarePackageSummary}>
2304
+ def list_software_source_packages(software_source_id, opts = {})
2305
+ logger.debug 'Calling operation OsManagementClient#list_software_source_packages.' if logger
2306
+
2307
+ raise "Missing the required parameter 'software_source_id' when calling list_software_source_packages." if software_source_id.nil?
2308
+
2309
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2310
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2311
+ end
2312
+
2313
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2314
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2315
+ end
2316
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
2317
+
2318
+ path = '/softwareSources/{softwareSourceId}/softwarePackages'.sub('{softwareSourceId}', software_source_id.to_s)
2319
+ operation_signing_strategy = :standard
2320
+
2321
+ # rubocop:disable Style/NegatedIf
2322
+ # Query Params
2323
+ query_params = {}
2324
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2325
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2326
+ query_params[:limit] = opts[:limit] if opts[:limit]
2327
+ query_params[:page] = opts[:page] if opts[:page]
2328
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2329
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2330
+
2331
+ # Header Params
2332
+ header_params = {}
2333
+ header_params[:accept] = 'application/json'
2334
+ header_params[:'content-type'] = 'application/json'
2335
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2336
+ # rubocop:enable Style/NegatedIf
2337
+
2338
+ post_body = nil
2339
+
2340
+ # rubocop:disable Metrics/BlockLength
2341
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_software_source_packages') do
2342
+ @api_client.call_api(
2343
+ :GET,
2344
+ path,
2345
+ endpoint,
2346
+ header_params: header_params,
2347
+ query_params: query_params,
2348
+ operation_signing_strategy: operation_signing_strategy,
2349
+ body: post_body,
2350
+ return_type: 'Array<OCI::OsManagement::Models::SoftwarePackageSummary>'
2351
+ )
2352
+ end
2353
+ # rubocop:enable Metrics/BlockLength
2354
+ end
2355
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2356
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2357
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2358
+
2359
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2360
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2361
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2362
+
2363
+
2364
+ # Returns a list of all Software Sources.
2365
+ #
2366
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
2367
+ # @param [Hash] opts the optional parameters
2368
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2369
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2370
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2371
+ #
2372
+ # Example: `My new resource`
2373
+ #
2374
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2375
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2376
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2377
+ # Allowed values are: ASC, DESC
2378
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2379
+ # (default to TIMECREATED)
2380
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2381
+ # @option opts [String] :lifecycle_state The current lifecycle state for the object.
2382
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2383
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::SoftwareSourceSummary SoftwareSourceSummary}>
2384
+ def list_software_sources(compartment_id, opts = {})
2385
+ logger.debug 'Calling operation OsManagementClient#list_software_sources.' if logger
2386
+
2387
+ raise "Missing the required parameter 'compartment_id' when calling list_software_sources." if compartment_id.nil?
2388
+
2389
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2390
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2391
+ end
2392
+
2393
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2394
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2395
+ end
2396
+
2397
+ if opts[:lifecycle_state] && !OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
2398
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.'
2399
+ end
2400
+
2401
+ path = '/softwareSources'
2402
+ operation_signing_strategy = :standard
2403
+
2404
+ # rubocop:disable Style/NegatedIf
2405
+ # Query Params
2406
+ query_params = {}
2407
+ query_params[:compartmentId] = compartment_id
2408
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2409
+ query_params[:limit] = opts[:limit] if opts[:limit]
2410
+ query_params[:page] = opts[:page] if opts[:page]
2411
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2412
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2413
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
2414
+
2415
+ # Header Params
2416
+ header_params = {}
2417
+ header_params[:accept] = 'application/json'
2418
+ header_params[:'content-type'] = 'application/json'
2419
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2420
+ # rubocop:enable Style/NegatedIf
2421
+
2422
+ post_body = nil
2423
+
2424
+ # rubocop:disable Metrics/BlockLength
2425
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_software_sources') do
2426
+ @api_client.call_api(
2427
+ :GET,
2428
+ path,
2429
+ endpoint,
2430
+ header_params: header_params,
2431
+ query_params: query_params,
2432
+ operation_signing_strategy: operation_signing_strategy,
2433
+ body: post_body,
2434
+ return_type: 'Array<OCI::OsManagement::Models::SoftwareSourceSummary>'
2435
+ )
2436
+ end
2437
+ # rubocop:enable Metrics/BlockLength
2438
+ end
2439
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2440
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2441
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2442
+
2443
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2444
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2445
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2446
+
2447
+
2448
+ # Returns a list of all of the Scheduled Jobs whose next execution time is at or before the specified time.
2449
+ #
2450
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
2451
+ # @param [DateTime] time_end The cut-off time before which to list all upcoming schedules, in ISO 8601 format
2452
+ #
2453
+ # Example: 2017-07-14T02:40:00.000Z
2454
+ #
2455
+ # @param [Hash] opts the optional parameters
2456
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2457
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2458
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2459
+ #
2460
+ # Example: `My new resource`
2461
+ #
2462
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2463
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2464
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2465
+ # Allowed values are: ASC, DESC
2466
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2467
+ # (default to TIMECREATED)
2468
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2469
+ # @option opts [String] :tag_name The name of the tag.
2470
+ # @option opts [String] :tag_value The value for the tag.
2471
+ # @option opts [String] :lifecycle_state The current lifecycle state for the object.
2472
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2473
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::ScheduledJobSummary ScheduledJobSummary}>
2474
+ def list_upcoming_scheduled_jobs(compartment_id, time_end, opts = {})
2475
+ logger.debug 'Calling operation OsManagementClient#list_upcoming_scheduled_jobs.' if logger
2476
+
2477
+ raise "Missing the required parameter 'compartment_id' when calling list_upcoming_scheduled_jobs." if compartment_id.nil?
2478
+ raise "Missing the required parameter 'time_end' when calling list_upcoming_scheduled_jobs." if time_end.nil?
2479
+
2480
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2481
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2482
+ end
2483
+
2484
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2485
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2486
+ end
2487
+
2488
+ if opts[:lifecycle_state] && !OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
2489
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::OsManagement::Models::LIFECYCLE_STATES_ENUM.'
2490
+ end
2491
+
2492
+ path = '/scheduledJobs/upcomingSchedules'
2493
+ operation_signing_strategy = :standard
2494
+
2495
+ # rubocop:disable Style/NegatedIf
2496
+ # Query Params
2497
+ query_params = {}
2498
+ query_params[:compartmentId] = compartment_id
2499
+ query_params[:timeEnd] = time_end
2500
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2501
+ query_params[:limit] = opts[:limit] if opts[:limit]
2502
+ query_params[:page] = opts[:page] if opts[:page]
2503
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2504
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2505
+ query_params[:tagName] = opts[:tag_name] if opts[:tag_name]
2506
+ query_params[:tagValue] = opts[:tag_value] if opts[:tag_value]
2507
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
2508
+
2509
+ # Header Params
2510
+ header_params = {}
2511
+ header_params[:accept] = 'application/json'
2512
+ header_params[:'content-type'] = 'application/json'
2513
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2514
+ # rubocop:enable Style/NegatedIf
2515
+
2516
+ post_body = nil
2517
+
2518
+ # rubocop:disable Metrics/BlockLength
2519
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_upcoming_scheduled_jobs') do
2520
+ @api_client.call_api(
2521
+ :GET,
2522
+ path,
2523
+ endpoint,
2524
+ header_params: header_params,
2525
+ query_params: query_params,
2526
+ operation_signing_strategy: operation_signing_strategy,
2527
+ body: post_body,
2528
+ return_type: 'Array<OCI::OsManagement::Models::ScheduledJobSummary>'
2529
+ )
2530
+ end
2531
+ # rubocop:enable Metrics/BlockLength
2532
+ end
2533
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2534
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2535
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2536
+
2537
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2538
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2539
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2540
+
2541
+
2542
+ # Gets the errors for the work request with the given ID.
2543
+ # @param [String] work_request_id The ID of the asynchronous request.
2544
+ # @param [Hash] opts the optional parameters
2545
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2546
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2547
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2548
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2549
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2550
+ # Allowed values are: ASC, DESC
2551
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2552
+ # (default to TIMECREATED)
2553
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2554
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2555
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::WorkRequestError WorkRequestError}>
2556
+ def list_work_request_errors(work_request_id, opts = {})
2557
+ logger.debug 'Calling operation OsManagementClient#list_work_request_errors.' if logger
2558
+
2559
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
2560
+
2561
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2562
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2563
+ end
2564
+
2565
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2566
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2567
+ end
2568
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
2569
+
2570
+ path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
2571
+ operation_signing_strategy = :standard
2572
+
2573
+ # rubocop:disable Style/NegatedIf
2574
+ # Query Params
2575
+ query_params = {}
2576
+ query_params[:limit] = opts[:limit] if opts[:limit]
2577
+ query_params[:page] = opts[:page] if opts[:page]
2578
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2579
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2580
+
2581
+ # Header Params
2582
+ header_params = {}
2583
+ header_params[:accept] = 'application/json'
2584
+ header_params[:'content-type'] = 'application/json'
2585
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2586
+ # rubocop:enable Style/NegatedIf
2587
+
2588
+ post_body = nil
2589
+
2590
+ # rubocop:disable Metrics/BlockLength
2591
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_work_request_errors') do
2592
+ @api_client.call_api(
2593
+ :GET,
2594
+ path,
2595
+ endpoint,
2596
+ header_params: header_params,
2597
+ query_params: query_params,
2598
+ operation_signing_strategy: operation_signing_strategy,
2599
+ body: post_body,
2600
+ return_type: 'Array<OCI::OsManagement::Models::WorkRequestError>'
2601
+ )
2602
+ end
2603
+ # rubocop:enable Metrics/BlockLength
2604
+ end
2605
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2606
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2607
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2608
+
2609
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2610
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2611
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2612
+
2613
+
2614
+ # Lists the log entries for the work request with the given ID.
2615
+ # @param [String] work_request_id The ID of the asynchronous request.
2616
+ # @param [Hash] opts the optional parameters
2617
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2618
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2619
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2620
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2621
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2622
+ # Allowed values are: ASC, DESC
2623
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2624
+ # (default to TIMECREATED)
2625
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2626
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2627
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::WorkRequestLogEntry WorkRequestLogEntry}>
2628
+ def list_work_request_logs(work_request_id, opts = {})
2629
+ logger.debug 'Calling operation OsManagementClient#list_work_request_logs.' if logger
2630
+
2631
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
2632
+
2633
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2634
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2635
+ end
2636
+
2637
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2638
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2639
+ end
2640
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
2641
+
2642
+ path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
2643
+ operation_signing_strategy = :standard
2644
+
2645
+ # rubocop:disable Style/NegatedIf
2646
+ # Query Params
2647
+ query_params = {}
2648
+ query_params[:limit] = opts[:limit] if opts[:limit]
2649
+ query_params[:page] = opts[:page] if opts[:page]
2650
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2651
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2652
+
2653
+ # Header Params
2654
+ header_params = {}
2655
+ header_params[:accept] = 'application/json'
2656
+ header_params[:'content-type'] = 'application/json'
2657
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2658
+ # rubocop:enable Style/NegatedIf
2659
+
2660
+ post_body = nil
2661
+
2662
+ # rubocop:disable Metrics/BlockLength
2663
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_work_request_logs') do
2664
+ @api_client.call_api(
2665
+ :GET,
2666
+ path,
2667
+ endpoint,
2668
+ header_params: header_params,
2669
+ query_params: query_params,
2670
+ operation_signing_strategy: operation_signing_strategy,
2671
+ body: post_body,
2672
+ return_type: 'Array<OCI::OsManagement::Models::WorkRequestLogEntry>'
2673
+ )
2674
+ end
2675
+ # rubocop:enable Metrics/BlockLength
2676
+ end
2677
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2678
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2679
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2680
+
2681
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2682
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2683
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2684
+
2685
+
2686
+ # Lists the work requests in a compartment.
2687
+ #
2688
+ # @param [String] compartment_id The ID of the compartment in which to list resources.
2689
+ # @param [Hash] opts the optional parameters
2690
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2691
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2692
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2693
+ #
2694
+ # Example: `My new resource`
2695
+ #
2696
+ # @option opts [String] :managed_instance_id The ID of the managed instance for which to list resources.
2697
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2698
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2699
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2700
+ # Allowed values are: ASC, DESC
2701
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2702
+ # (default to TIMECREATED)
2703
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2704
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2705
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::WorkRequestSummary WorkRequestSummary}>
2706
+ def list_work_requests(compartment_id, opts = {})
2707
+ logger.debug 'Calling operation OsManagementClient#list_work_requests.' if logger
2708
+
2709
+ raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
2710
+
2711
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2712
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2713
+ end
2714
+
2715
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2716
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2717
+ end
2718
+
2719
+ path = '/workRequests'
2720
+ operation_signing_strategy = :standard
2721
+
2722
+ # rubocop:disable Style/NegatedIf
2723
+ # Query Params
2724
+ query_params = {}
2725
+ query_params[:compartmentId] = compartment_id
2726
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2727
+ query_params[:managedInstanceId] = opts[:managed_instance_id] if opts[:managed_instance_id]
2728
+ query_params[:limit] = opts[:limit] if opts[:limit]
2729
+ query_params[:page] = opts[:page] if opts[:page]
2730
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2731
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2732
+
2733
+ # Header Params
2734
+ header_params = {}
2735
+ header_params[:accept] = 'application/json'
2736
+ header_params[:'content-type'] = 'application/json'
2737
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2738
+ # rubocop:enable Style/NegatedIf
2739
+
2740
+ post_body = nil
2741
+
2742
+ # rubocop:disable Metrics/BlockLength
2743
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#list_work_requests') do
2744
+ @api_client.call_api(
2745
+ :GET,
2746
+ path,
2747
+ endpoint,
2748
+ header_params: header_params,
2749
+ query_params: query_params,
2750
+ operation_signing_strategy: operation_signing_strategy,
2751
+ body: post_body,
2752
+ return_type: 'Array<OCI::OsManagement::Models::WorkRequestSummary>'
2753
+ )
2754
+ end
2755
+ # rubocop:enable Metrics/BlockLength
2756
+ end
2757
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2758
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2759
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2760
+
2761
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2762
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2763
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2764
+
2765
+
2766
+ # Removes an installed package from a managed instance.
2767
+ #
2768
+ # @param [String] managed_instance_id OCID for the managed instance
2769
+ # @param [String] software_package_name Package name
2770
+ # @param [Hash] opts the optional parameters
2771
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2772
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2773
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2774
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2775
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2776
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2777
+ # has been deleted and purged from the system, then a retry of the original creation request
2778
+ # might be rejected.
2779
+ #
2780
+ # @return [Response] A Response object with data of type nil
2781
+ def remove_package_from_managed_instance(managed_instance_id, software_package_name, opts = {})
2782
+ logger.debug 'Calling operation OsManagementClient#remove_package_from_managed_instance.' if logger
2783
+
2784
+ raise "Missing the required parameter 'managed_instance_id' when calling remove_package_from_managed_instance." if managed_instance_id.nil?
2785
+ raise "Missing the required parameter 'software_package_name' when calling remove_package_from_managed_instance." if software_package_name.nil?
2786
+ raise "Parameter value for 'managed_instance_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_id)
2787
+
2788
+ path = '/managedInstances/{managedInstanceId}/actions/packages/remove'.sub('{managedInstanceId}', managed_instance_id.to_s)
2789
+ operation_signing_strategy = :standard
2790
+
2791
+ # rubocop:disable Style/NegatedIf
2792
+ # Query Params
2793
+ query_params = {}
2794
+ query_params[:softwarePackageName] = software_package_name
2795
+
2796
+ # Header Params
2797
+ header_params = {}
2798
+ header_params[:accept] = 'application/json'
2799
+ header_params[:'content-type'] = 'application/json'
2800
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2801
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2802
+ # rubocop:enable Style/NegatedIf
2803
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2804
+
2805
+ post_body = nil
2806
+
2807
+ # rubocop:disable Metrics/BlockLength
2808
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#remove_package_from_managed_instance') do
2809
+ @api_client.call_api(
2810
+ :POST,
2811
+ path,
2812
+ endpoint,
2813
+ header_params: header_params,
2814
+ query_params: query_params,
2815
+ operation_signing_strategy: operation_signing_strategy,
2816
+ body: post_body
2817
+ )
2818
+ end
2819
+ # rubocop:enable Metrics/BlockLength
2820
+ end
2821
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2822
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2823
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2824
+
2825
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2826
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2827
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2828
+
2829
+
2830
+ # Removes a given list of Software Packages from a specific Software Source.
2831
+ #
2832
+ # @param [String] software_source_id The OCID of the software source.
2833
+ # @param [OCI::OsManagement::Models::RemovePackagesFromSoftwareSourceDetails] remove_packages_from_software_source_details A list of package identifiers
2834
+ # @param [Hash] opts the optional parameters
2835
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2836
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2837
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2838
+ # @return [Response] A Response object with data of type nil
2839
+ def remove_packages_from_software_source(software_source_id, remove_packages_from_software_source_details, opts = {})
2840
+ logger.debug 'Calling operation OsManagementClient#remove_packages_from_software_source.' if logger
2841
+
2842
+ raise "Missing the required parameter 'software_source_id' when calling remove_packages_from_software_source." if software_source_id.nil?
2843
+ raise "Missing the required parameter 'remove_packages_from_software_source_details' when calling remove_packages_from_software_source." if remove_packages_from_software_source_details.nil?
2844
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
2845
+
2846
+ path = '/softwareSources/{softwareSourceId}/actions/removePackages'.sub('{softwareSourceId}', software_source_id.to_s)
2847
+ operation_signing_strategy = :standard
2848
+
2849
+ # rubocop:disable Style/NegatedIf
2850
+ # Query Params
2851
+ query_params = {}
2852
+
2853
+ # Header Params
2854
+ header_params = {}
2855
+ header_params[:accept] = 'application/json'
2856
+ header_params[:'content-type'] = 'application/json'
2857
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2858
+ # rubocop:enable Style/NegatedIf
2859
+
2860
+ post_body = @api_client.object_to_http_body(remove_packages_from_software_source_details)
2861
+
2862
+ # rubocop:disable Metrics/BlockLength
2863
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#remove_packages_from_software_source') do
2864
+ @api_client.call_api(
2865
+ :POST,
2866
+ path,
2867
+ endpoint,
2868
+ header_params: header_params,
2869
+ query_params: query_params,
2870
+ operation_signing_strategy: operation_signing_strategy,
2871
+ body: post_body
2872
+ )
2873
+ end
2874
+ # rubocop:enable Metrics/BlockLength
2875
+ end
2876
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2877
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2878
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2879
+
2880
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2881
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2882
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2883
+
2884
+
2885
+ # This will trigger an already created Scheduled Job to being executing
2886
+ # immediately instead of waiting for its next regularly scheduled time.
2887
+ #
2888
+ # @param [String] scheduled_job_id The ID of the scheduled job.
2889
+ # @param [Hash] opts the optional parameters
2890
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2891
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2892
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2893
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
2894
+ # for a resource, set the `if-match` parameter to the value of the
2895
+ # etag from a previous GET or POST response for that resource.
2896
+ # The resource will be updated or deleted only if the etag you
2897
+ # provide matches the resource's current etag value.
2898
+ #
2899
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
2900
+ # server error without risk of executing that same action again. Retry tokens expire after 24
2901
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2902
+ # has been deleted and purged from the system, then a retry of the original creation request
2903
+ # might be rejected.
2904
+ #
2905
+ # @return [Response] A Response object with data of type nil
2906
+ def run_scheduled_job_now(scheduled_job_id, opts = {})
2907
+ logger.debug 'Calling operation OsManagementClient#run_scheduled_job_now.' if logger
2908
+
2909
+ raise "Missing the required parameter 'scheduled_job_id' when calling run_scheduled_job_now." if scheduled_job_id.nil?
2910
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
2911
+
2912
+ path = '/scheduledJobs/{scheduledJobId}/actions/runNow'.sub('{scheduledJobId}', scheduled_job_id.to_s)
2913
+ operation_signing_strategy = :standard
2914
+
2915
+ # rubocop:disable Style/NegatedIf
2916
+ # Query Params
2917
+ query_params = {}
2918
+
2919
+ # Header Params
2920
+ header_params = {}
2921
+ header_params[:accept] = 'application/json'
2922
+ header_params[:'content-type'] = 'application/json'
2923
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2924
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2925
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2926
+ # rubocop:enable Style/NegatedIf
2927
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
2928
+
2929
+ post_body = nil
2930
+
2931
+ # rubocop:disable Metrics/BlockLength
2932
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#run_scheduled_job_now') do
2933
+ @api_client.call_api(
2934
+ :POST,
2935
+ path,
2936
+ endpoint,
2937
+ header_params: header_params,
2938
+ query_params: query_params,
2939
+ operation_signing_strategy: operation_signing_strategy,
2940
+ body: post_body
2941
+ )
2942
+ end
2943
+ # rubocop:enable Metrics/BlockLength
2944
+ end
2945
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2946
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2947
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2948
+
2949
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2950
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2951
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2952
+
2953
+
2954
+ # Searches all of the available Software Sources and returns any/all Software Packages matching
2955
+ # the search criteria.
2956
+ #
2957
+ # @param [Hash] opts the optional parameters
2958
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2959
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2960
+ # @option opts [String] :software_package_name the identifier for the software package (not an OCID)
2961
+ # @option opts [String] :display_name A user-friendly name. Does not have to be unique, and it's changeable.
2962
+ #
2963
+ # Example: `My new resource`
2964
+ #
2965
+ # @option opts [String] :cve_name The name of the CVE as published.
2966
+ # Example: `CVE-2006-4535`
2967
+ #
2968
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
2969
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
2970
+ # @option opts [String] :sort_order The sort order to use, either 'asc' or 'desc'. (default to DESC)
2971
+ # Allowed values are: ASC, DESC
2972
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If no value is specified TIMECREATED is default.
2973
+ # (default to TIMECREATED)
2974
+ # Allowed values are: TIMECREATED, DISPLAYNAME
2975
+ # @option opts [String] :opc_request_id The client request ID for tracing.
2976
+ # @return [Response] A Response object with data of type Array<{OCI::OsManagement::Models::SoftwarePackageSearchSummary SoftwarePackageSearchSummary}>
2977
+ def search_software_packages(opts = {})
2978
+ logger.debug 'Calling operation OsManagementClient#search_software_packages.' if logger
2979
+
2980
+
2981
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
2982
+ raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
2983
+ end
2984
+
2985
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
2986
+ raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
2987
+ end
2988
+
2989
+ path = '/softwareSources/softwarePackages'
2990
+ operation_signing_strategy = :standard
2991
+
2992
+ # rubocop:disable Style/NegatedIf
2993
+ # Query Params
2994
+ query_params = {}
2995
+ query_params[:softwarePackageName] = opts[:software_package_name] if opts[:software_package_name]
2996
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2997
+ query_params[:cveName] = opts[:cve_name] if opts[:cve_name]
2998
+ query_params[:limit] = opts[:limit] if opts[:limit]
2999
+ query_params[:page] = opts[:page] if opts[:page]
3000
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3001
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
3002
+
3003
+ # Header Params
3004
+ header_params = {}
3005
+ header_params[:accept] = 'application/json'
3006
+ header_params[:'content-type'] = 'application/json'
3007
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3008
+ # rubocop:enable Style/NegatedIf
3009
+
3010
+ post_body = nil
3011
+
3012
+ # rubocop:disable Metrics/BlockLength
3013
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#search_software_packages') do
3014
+ @api_client.call_api(
3015
+ :GET,
3016
+ path,
3017
+ endpoint,
3018
+ header_params: header_params,
3019
+ query_params: query_params,
3020
+ operation_signing_strategy: operation_signing_strategy,
3021
+ body: post_body,
3022
+ return_type: 'Array<OCI::OsManagement::Models::SoftwarePackageSearchSummary>'
3023
+ )
3024
+ end
3025
+ # rubocop:enable Metrics/BlockLength
3026
+ end
3027
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3028
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3029
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3030
+
3031
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3032
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3033
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3034
+
3035
+
3036
+ # This will force an already created Scheduled Job to skip its
3037
+ # next regularly scheduled execution
3038
+ #
3039
+ # @param [String] scheduled_job_id The ID of the scheduled job.
3040
+ # @param [Hash] opts the optional parameters
3041
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3042
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3043
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3044
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
3045
+ # for a resource, set the `if-match` parameter to the value of the
3046
+ # etag from a previous GET or POST response for that resource.
3047
+ # The resource will be updated or deleted only if the etag you
3048
+ # provide matches the resource's current etag value.
3049
+ #
3050
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
3051
+ # server error without risk of executing that same action again. Retry tokens expire after 24
3052
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
3053
+ # has been deleted and purged from the system, then a retry of the original creation request
3054
+ # might be rejected.
3055
+ #
3056
+ # @return [Response] A Response object with data of type nil
3057
+ def skip_next_scheduled_job_execution(scheduled_job_id, opts = {})
3058
+ logger.debug 'Calling operation OsManagementClient#skip_next_scheduled_job_execution.' if logger
3059
+
3060
+ raise "Missing the required parameter 'scheduled_job_id' when calling skip_next_scheduled_job_execution." if scheduled_job_id.nil?
3061
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
3062
+
3063
+ path = '/scheduledJobs/{scheduledJobId}/actions/skipNextExecution'.sub('{scheduledJobId}', scheduled_job_id.to_s)
3064
+ operation_signing_strategy = :standard
3065
+
3066
+ # rubocop:disable Style/NegatedIf
3067
+ # Query Params
3068
+ query_params = {}
3069
+
3070
+ # Header Params
3071
+ header_params = {}
3072
+ header_params[:accept] = 'application/json'
3073
+ header_params[:'content-type'] = 'application/json'
3074
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3075
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3076
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
3077
+ # rubocop:enable Style/NegatedIf
3078
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
3079
+
3080
+ post_body = nil
3081
+
3082
+ # rubocop:disable Metrics/BlockLength
3083
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#skip_next_scheduled_job_execution') do
3084
+ @api_client.call_api(
3085
+ :POST,
3086
+ path,
3087
+ endpoint,
3088
+ header_params: header_params,
3089
+ query_params: query_params,
3090
+ operation_signing_strategy: operation_signing_strategy,
3091
+ body: post_body
3092
+ )
3093
+ end
3094
+ # rubocop:enable Metrics/BlockLength
3095
+ end
3096
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3097
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3098
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3099
+
3100
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3101
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3102
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3103
+
3104
+
3105
+ # Updates a specific Managed Instance Group.
3106
+ #
3107
+ # @param [String] managed_instance_group_id OCID for the managed instance group
3108
+ # @param [OCI::OsManagement::Models::UpdateManagedInstanceGroupDetails] update_managed_instance_group_details Details about a Managed Instance Group to update
3109
+ # @param [Hash] opts the optional parameters
3110
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3111
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3112
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3113
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
3114
+ # for a resource, set the `if-match` parameter to the value of the
3115
+ # etag from a previous GET or POST response for that resource.
3116
+ # The resource will be updated or deleted only if the etag you
3117
+ # provide matches the resource's current etag value.
3118
+ #
3119
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ManagedInstanceGroup ManagedInstanceGroup}
3120
+ def update_managed_instance_group(managed_instance_group_id, update_managed_instance_group_details, opts = {})
3121
+ logger.debug 'Calling operation OsManagementClient#update_managed_instance_group.' if logger
3122
+
3123
+ raise "Missing the required parameter 'managed_instance_group_id' when calling update_managed_instance_group." if managed_instance_group_id.nil?
3124
+ raise "Missing the required parameter 'update_managed_instance_group_details' when calling update_managed_instance_group." if update_managed_instance_group_details.nil?
3125
+ raise "Parameter value for 'managed_instance_group_id' must not be blank" if OCI::Internal::Util.blank_string?(managed_instance_group_id)
3126
+
3127
+ path = '/managedInstanceGroups/{managedInstanceGroupId}'.sub('{managedInstanceGroupId}', managed_instance_group_id.to_s)
3128
+ operation_signing_strategy = :standard
3129
+
3130
+ # rubocop:disable Style/NegatedIf
3131
+ # Query Params
3132
+ query_params = {}
3133
+
3134
+ # Header Params
3135
+ header_params = {}
3136
+ header_params[:accept] = 'application/json'
3137
+ header_params[:'content-type'] = 'application/json'
3138
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3139
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3140
+ # rubocop:enable Style/NegatedIf
3141
+
3142
+ post_body = @api_client.object_to_http_body(update_managed_instance_group_details)
3143
+
3144
+ # rubocop:disable Metrics/BlockLength
3145
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#update_managed_instance_group') do
3146
+ @api_client.call_api(
3147
+ :PUT,
3148
+ path,
3149
+ endpoint,
3150
+ header_params: header_params,
3151
+ query_params: query_params,
3152
+ operation_signing_strategy: operation_signing_strategy,
3153
+ body: post_body,
3154
+ return_type: 'OCI::OsManagement::Models::ManagedInstanceGroup'
3155
+ )
3156
+ end
3157
+ # rubocop:enable Metrics/BlockLength
3158
+ end
3159
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3160
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3161
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3162
+
3163
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3164
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3165
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3166
+
3167
+
3168
+ # Updates an existing Scheduled Job on the management system.
3169
+ #
3170
+ # @param [String] scheduled_job_id The ID of the scheduled job.
3171
+ # @param [OCI::OsManagement::Models::UpdateScheduledJobDetails] update_scheduled_job_details Details about a Scheduled Job to update
3172
+ # @param [Hash] opts the optional parameters
3173
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3174
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3175
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3176
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
3177
+ # for a resource, set the `if-match` parameter to the value of the
3178
+ # etag from a previous GET or POST response for that resource.
3179
+ # The resource will be updated or deleted only if the etag you
3180
+ # provide matches the resource's current etag value.
3181
+ #
3182
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::ScheduledJob ScheduledJob}
3183
+ def update_scheduled_job(scheduled_job_id, update_scheduled_job_details, opts = {})
3184
+ logger.debug 'Calling operation OsManagementClient#update_scheduled_job.' if logger
3185
+
3186
+ raise "Missing the required parameter 'scheduled_job_id' when calling update_scheduled_job." if scheduled_job_id.nil?
3187
+ raise "Missing the required parameter 'update_scheduled_job_details' when calling update_scheduled_job." if update_scheduled_job_details.nil?
3188
+ raise "Parameter value for 'scheduled_job_id' must not be blank" if OCI::Internal::Util.blank_string?(scheduled_job_id)
3189
+
3190
+ path = '/scheduledJobs/{scheduledJobId}'.sub('{scheduledJobId}', scheduled_job_id.to_s)
3191
+ operation_signing_strategy = :standard
3192
+
3193
+ # rubocop:disable Style/NegatedIf
3194
+ # Query Params
3195
+ query_params = {}
3196
+
3197
+ # Header Params
3198
+ header_params = {}
3199
+ header_params[:accept] = 'application/json'
3200
+ header_params[:'content-type'] = 'application/json'
3201
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3202
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3203
+ # rubocop:enable Style/NegatedIf
3204
+
3205
+ post_body = @api_client.object_to_http_body(update_scheduled_job_details)
3206
+
3207
+ # rubocop:disable Metrics/BlockLength
3208
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#update_scheduled_job') do
3209
+ @api_client.call_api(
3210
+ :PUT,
3211
+ path,
3212
+ endpoint,
3213
+ header_params: header_params,
3214
+ query_params: query_params,
3215
+ operation_signing_strategy: operation_signing_strategy,
3216
+ body: post_body,
3217
+ return_type: 'OCI::OsManagement::Models::ScheduledJob'
3218
+ )
3219
+ end
3220
+ # rubocop:enable Metrics/BlockLength
3221
+ end
3222
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3223
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3224
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3225
+
3226
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3227
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3228
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3229
+
3230
+
3231
+ # Updates an existing custom Software Source on the management system.
3232
+ #
3233
+ # @param [String] software_source_id The OCID of the software source.
3234
+ # @param [OCI::OsManagement::Models::UpdateSoftwareSourceDetails] update_software_source_details Details about a Sofware Source to update
3235
+ # @param [Hash] opts the optional parameters
3236
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3237
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3238
+ # @option opts [String] :opc_request_id The client request ID for tracing.
3239
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
3240
+ # for a resource, set the `if-match` parameter to the value of the
3241
+ # etag from a previous GET or POST response for that resource.
3242
+ # The resource will be updated or deleted only if the etag you
3243
+ # provide matches the resource's current etag value.
3244
+ #
3245
+ # @return [Response] A Response object with data of type {OCI::OsManagement::Models::SoftwareSource SoftwareSource}
3246
+ def update_software_source(software_source_id, update_software_source_details, opts = {})
3247
+ logger.debug 'Calling operation OsManagementClient#update_software_source.' if logger
3248
+
3249
+ raise "Missing the required parameter 'software_source_id' when calling update_software_source." if software_source_id.nil?
3250
+ raise "Missing the required parameter 'update_software_source_details' when calling update_software_source." if update_software_source_details.nil?
3251
+ raise "Parameter value for 'software_source_id' must not be blank" if OCI::Internal::Util.blank_string?(software_source_id)
3252
+
3253
+ path = '/softwareSources/{softwareSourceId}'.sub('{softwareSourceId}', software_source_id.to_s)
3254
+ operation_signing_strategy = :standard
3255
+
3256
+ # rubocop:disable Style/NegatedIf
3257
+ # Query Params
3258
+ query_params = {}
3259
+
3260
+ # Header Params
3261
+ header_params = {}
3262
+ header_params[:accept] = 'application/json'
3263
+ header_params[:'content-type'] = 'application/json'
3264
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3265
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3266
+ # rubocop:enable Style/NegatedIf
3267
+
3268
+ post_body = @api_client.object_to_http_body(update_software_source_details)
3269
+
3270
+ # rubocop:disable Metrics/BlockLength
3271
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'OsManagementClient#update_software_source') do
3272
+ @api_client.call_api(
3273
+ :PUT,
3274
+ path,
3275
+ endpoint,
3276
+ header_params: header_params,
3277
+ query_params: query_params,
3278
+ operation_signing_strategy: operation_signing_strategy,
3279
+ body: post_body,
3280
+ return_type: 'OCI::OsManagement::Models::SoftwareSource'
3281
+ )
3282
+ end
3283
+ # rubocop:enable Metrics/BlockLength
3284
+ end
3285
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3286
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3287
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3288
+
3289
+ private
3290
+
3291
+ def applicable_retry_config(opts = {})
3292
+ return @retry_config unless opts.key?(:retry_config)
3293
+
3294
+ opts[:retry_config]
3295
+ end
3296
+ end
3297
+ end
3298
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength