oci 2.5.10 → 2.9.0

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