oci 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (370) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -3
  3. data/lib/oci.rb +6 -0
  4. data/lib/oci/api_client.rb +159 -134
  5. data/lib/oci/audit/audit.rb +3 -0
  6. data/lib/oci/audit/audit_client.rb +88 -40
  7. data/lib/oci/audit/audit_client_composite_operations.rb +64 -0
  8. data/lib/oci/audit/models/audit_event.rb +151 -200
  9. data/lib/oci/audit/models/configuration.rb +61 -38
  10. data/lib/oci/audit/models/update_configuration_details.rb +61 -38
  11. data/lib/oci/auth/util.rb +1 -1
  12. data/lib/oci/base_signer.rb +20 -29
  13. data/lib/oci/config.rb +9 -3
  14. data/lib/oci/core/blockstorage_client.rb +512 -269
  15. data/lib/oci/core/blockstorage_client_composite_operations.rb +342 -0
  16. data/lib/oci/core/compute_client.rb +959 -536
  17. data/lib/oci/core/compute_client_composite_operations.rb +738 -0
  18. data/lib/oci/core/core.rb +5 -0
  19. data/lib/oci/core/models/attach_boot_volume_details.rb +72 -57
  20. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +76 -53
  21. data/lib/oci/core/models/attach_paravirtualized_volume_details.rb +69 -45
  22. data/lib/oci/core/models/attach_vnic_details.rb +79 -68
  23. data/lib/oci/core/models/attach_volume_details.rb +83 -74
  24. data/lib/oci/core/models/boot_volume.rb +119 -120
  25. data/lib/oci/core/models/boot_volume_attachment.rb +114 -111
  26. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +61 -38
  27. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +61 -38
  28. data/lib/oci/core/models/capture_console_history_details.rb +81 -70
  29. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +60 -38
  30. data/lib/oci/core/models/connect_remote_peering_connections_details.rb +67 -49
  31. data/lib/oci/core/models/console_history.rb +122 -123
  32. data/lib/oci/core/models/cpe.rb +82 -74
  33. data/lib/oci/core/models/create_cpe_details.rb +73 -58
  34. data/lib/oci/core/models/create_cross_connect_details.rb +98 -99
  35. data/lib/oci/core/models/create_cross_connect_group_details.rb +67 -48
  36. data/lib/oci/core/models/create_dhcp_details.rb +89 -84
  37. data/lib/oci/core/models/create_drg_attachment_details.rb +71 -56
  38. data/lib/oci/core/models/create_drg_details.rb +66 -47
  39. data/lib/oci/core/models/create_image_details.rb +108 -110
  40. data/lib/oci/core/models/create_instance_console_connection_details.rb +79 -69
  41. data/lib/oci/core/models/create_internet_gateway_details.rb +76 -65
  42. data/lib/oci/core/models/create_ip_sec_connection_details.rb +83 -76
  43. data/lib/oci/core/models/create_local_peering_gateway_details.rb +72 -57
  44. data/lib/oci/core/models/create_private_ip_details.rb +97 -94
  45. data/lib/oci/core/models/create_public_ip_details.rb +90 -77
  46. data/lib/oci/core/models/create_remote_peering_connection_details.rb +72 -57
  47. data/lib/oci/core/models/create_route_table_details.rb +90 -87
  48. data/lib/oci/core/models/create_security_list_details.rb +95 -96
  49. data/lib/oci/core/models/create_subnet_details.rb +133 -154
  50. data/lib/oci/core/models/create_vcn_details.rb +96 -93
  51. data/lib/oci/core/models/create_virtual_circuit_details.rb +136 -153
  52. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +62 -39
  53. data/lib/oci/core/models/create_vnic_details.rb +99 -97
  54. data/lib/oci/core/models/create_volume_backup_details.rb +94 -85
  55. data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +66 -47
  56. data/lib/oci/core/models/create_volume_details.rb +117 -130
  57. data/lib/oci/core/models/cross_connect.rb +120 -121
  58. data/lib/oci/core/models/cross_connect_group.rb +97 -82
  59. data/lib/oci/core/models/cross_connect_location.rb +65 -43
  60. data/lib/oci/core/models/cross_connect_mapping.rb +89 -81
  61. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +68 -48
  62. data/lib/oci/core/models/cross_connect_status.rb +110 -87
  63. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +61 -38
  64. data/lib/oci/core/models/dhcp_dns_option.rb +85 -60
  65. data/lib/oci/core/models/dhcp_option.rb +62 -38
  66. data/lib/oci/core/models/dhcp_options.rb +119 -118
  67. data/lib/oci/core/models/dhcp_search_domain_option.rb +66 -44
  68. data/lib/oci/core/models/drg.rb +96 -81
  69. data/lib/oci/core/models/drg_attachment.rb +106 -99
  70. data/lib/oci/core/models/egress_security_rule.rb +89 -83
  71. data/lib/oci/core/models/export_image_details.rb +63 -41
  72. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +74 -59
  73. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +65 -42
  74. data/lib/oci/core/models/fast_connect_provider_service.rb +155 -126
  75. data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +61 -39
  76. data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +61 -39
  77. data/lib/oci/core/models/i_scsi_volume_attachment.rb +117 -105
  78. data/lib/oci/core/models/icmp_options.rb +63 -41
  79. data/lib/oci/core/models/image.rb +170 -185
  80. data/lib/oci/core/models/image_source_details.rb +79 -60
  81. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +77 -62
  82. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +67 -44
  83. data/lib/oci/core/models/ingress_security_rule.rb +89 -83
  84. data/lib/oci/core/models/instance.rb +190 -211
  85. data/lib/oci/core/models/instance_console_connection.rb +118 -117
  86. data/lib/oci/core/models/instance_credentials.rb +63 -41
  87. data/lib/oci/core/models/instance_source_details.rb +64 -41
  88. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +64 -41
  89. data/lib/oci/core/models/instance_source_via_image_details.rb +70 -51
  90. data/lib/oci/core/models/internet_gateway.rb +107 -100
  91. data/lib/oci/core/models/ip_sec_connection.rb +113 -110
  92. data/lib/oci/core/models/ip_sec_connection_device_config.rb +73 -59
  93. data/lib/oci/core/models/ip_sec_connection_device_status.rb +75 -61
  94. data/lib/oci/core/models/launch_instance_details.rb +163 -189
  95. data/lib/oci/core/models/launch_options.rb +130 -93
  96. data/lib/oci/core/models/letter_of_authority.rb +105 -100
  97. data/lib/oci/core/models/local_peering_gateway.rb +141 -140
  98. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +83 -60
  99. data/lib/oci/core/models/peer_region_for_remote_peering.rb +61 -37
  100. data/lib/oci/core/models/port_range.rb +65 -42
  101. data/lib/oci/core/models/private_ip.rb +131 -151
  102. data/lib/oci/core/models/public_ip.rb +160 -149
  103. data/lib/oci/core/models/remote_peering_connection.rb +148 -151
  104. data/lib/oci/core/models/route_rule.rb +68 -50
  105. data/lib/oci/core/models/route_table.rb +120 -121
  106. data/lib/oci/core/models/security_list.rb +125 -130
  107. data/lib/oci/core/models/shape.rb +60 -36
  108. data/lib/oci/core/models/subnet.rb +183 -220
  109. data/lib/oci/core/models/tcp_options.rb +67 -49
  110. data/lib/oci/core/models/tunnel_config.rb +76 -62
  111. data/lib/oci/core/models/tunnel_status.rb +94 -77
  112. data/lib/oci/core/models/udp_options.rb +67 -49
  113. data/lib/oci/core/models/update_boot_volume_details.rb +62 -39
  114. data/lib/oci/core/models/update_console_history_details.rb +76 -61
  115. data/lib/oci/core/models/update_cpe_details.rb +62 -39
  116. data/lib/oci/core/models/update_cross_connect_details.rb +68 -50
  117. data/lib/oci/core/models/update_cross_connect_group_details.rb +62 -39
  118. data/lib/oci/core/models/update_dhcp_details.rb +80 -67
  119. data/lib/oci/core/models/update_drg_attachment_details.rb +62 -39
  120. data/lib/oci/core/models/update_drg_details.rb +62 -39
  121. data/lib/oci/core/models/update_image_details.rb +77 -62
  122. data/lib/oci/core/models/update_instance_details.rb +77 -62
  123. data/lib/oci/core/models/update_internet_gateway_details.rb +67 -48
  124. data/lib/oci/core/models/update_ip_sec_connection_details.rb +62 -39
  125. data/lib/oci/core/models/update_local_peering_gateway_details.rb +62 -39
  126. data/lib/oci/core/models/update_private_ip_details.rb +90 -83
  127. data/lib/oci/core/models/update_public_ip_details.rb +68 -49
  128. data/lib/oci/core/models/update_remote_peering_connection_details.rb +62 -39
  129. data/lib/oci/core/models/update_route_table_details.rb +81 -70
  130. data/lib/oci/core/models/update_security_list_details.rb +86 -79
  131. data/lib/oci/core/models/update_subnet_details.rb +76 -61
  132. data/lib/oci/core/models/update_vcn_details.rb +76 -61
  133. data/lib/oci/core/models/update_virtual_circuit_details.rb +114 -115
  134. data/lib/oci/core/models/update_vnic_details.rb +75 -60
  135. data/lib/oci/core/models/update_volume_backup_details.rb +76 -61
  136. data/lib/oci/core/models/update_volume_details.rb +76 -61
  137. data/lib/oci/core/models/vcn.rb +150 -167
  138. data/lib/oci/core/models/virtual_circuit.rb +254 -269
  139. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +68 -48
  140. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +79 -54
  141. data/lib/oci/core/models/vnic.rb +149 -166
  142. data/lib/oci/core/models/vnic_attachment.rb +132 -141
  143. data/lib/oci/core/models/volume.rb +138 -151
  144. data/lib/oci/core/models/volume_attachment.rb +126 -131
  145. data/lib/oci/core/models/volume_backup.rb +185 -200
  146. data/lib/oci/core/models/volume_backup_policy.rb +75 -61
  147. data/lib/oci/core/models/volume_backup_policy_assignment.rb +75 -63
  148. data/lib/oci/core/models/volume_backup_schedule.rb +101 -76
  149. data/lib/oci/core/models/volume_source_details.rb +62 -37
  150. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +62 -38
  151. data/lib/oci/core/models/volume_source_from_volume_details.rb +62 -38
  152. data/lib/oci/core/virtual_network_client.rb +2683 -1457
  153. data/lib/oci/core/virtual_network_client_composite_operations.rb +1849 -0
  154. data/lib/oci/database/database.rb +3 -0
  155. data/lib/oci/database/database_client.rb +894 -454
  156. data/lib/oci/database/database_client_composite_operations.rb +462 -0
  157. data/lib/oci/database/models/backup.rb +131 -128
  158. data/lib/oci/database/models/backup_summary.rb +131 -128
  159. data/lib/oci/database/models/create_backup_details.rb +66 -47
  160. data/lib/oci/database/models/create_data_guard_association_details.rb +112 -102
  161. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +73 -51
  162. data/lib/oci/database/models/create_database_details.rb +140 -105
  163. data/lib/oci/database/models/create_database_from_backup_details.rb +71 -56
  164. data/lib/oci/database/models/create_db_home_details.rb +70 -53
  165. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +83 -67
  166. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +74 -53
  167. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +69 -44
  168. data/lib/oci/database/models/data_guard_association.rb +205 -204
  169. data/lib/oci/database/models/data_guard_association_summary.rb +205 -204
  170. data/lib/oci/database/models/database.rb +175 -156
  171. data/lib/oci/database/models/database_summary.rb +175 -156
  172. data/lib/oci/database/models/db_backup_config.rb +60 -38
  173. data/lib/oci/database/models/db_home.rb +110 -107
  174. data/lib/oci/database/models/db_home_summary.rb +110 -107
  175. data/lib/oci/database/models/db_node.rb +113 -108
  176. data/lib/oci/database/models/db_node_summary.rb +113 -108
  177. data/lib/oci/database/models/db_system.rb +299 -314
  178. data/lib/oci/database/models/db_system_shape_summary.rb +88 -86
  179. data/lib/oci/database/models/db_system_summary.rb +299 -314
  180. data/lib/oci/database/models/db_version_summary.rb +64 -44
  181. data/lib/oci/database/models/failover_data_guard_association_details.rb +60 -38
  182. data/lib/oci/database/models/launch_db_system_details.rb +231 -234
  183. data/lib/oci/database/models/patch.rb +136 -113
  184. data/lib/oci/database/models/patch_details.rb +73 -53
  185. data/lib/oci/database/models/patch_history_entry.rb +114 -99
  186. data/lib/oci/database/models/patch_history_entry_summary.rb +114 -99
  187. data/lib/oci/database/models/patch_summary.rb +136 -113
  188. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +60 -38
  189. data/lib/oci/database/models/restore_database_details.rb +72 -53
  190. data/lib/oci/database/models/switchover_data_guard_association_details.rb +60 -38
  191. data/lib/oci/database/models/update_database_details.rb +97 -38
  192. data/lib/oci/database/models/update_db_home_details.rb +60 -38
  193. data/lib/oci/database/models/update_db_system_details.rb +112 -64
  194. data/lib/oci/dns/dns.rb +3 -0
  195. data/lib/oci/dns/dns_client.rb +489 -302
  196. data/lib/oci/dns/dns_client_composite_operations.rb +143 -0
  197. data/lib/oci/dns/models/create_zone_details.rb +84 -72
  198. data/lib/oci/dns/models/external_master.rb +67 -47
  199. data/lib/oci/dns/models/patch_domain_records_details.rb +60 -35
  200. data/lib/oci/dns/models/patch_rr_set_details.rb +60 -35
  201. data/lib/oci/dns/models/patch_zone_records_details.rb +60 -35
  202. data/lib/oci/dns/models/record.rb +92 -86
  203. data/lib/oci/dns/models/record_collection.rb +59 -35
  204. data/lib/oci/dns/models/record_details.rb +92 -86
  205. data/lib/oci/dns/models/record_operation.rb +113 -110
  206. data/lib/oci/dns/models/rr_set.rb +59 -35
  207. data/lib/oci/dns/models/sort_order.rb +0 -2
  208. data/lib/oci/dns/models/tsig.rb +68 -48
  209. data/lib/oci/dns/models/update_domain_records_details.rb +60 -35
  210. data/lib/oci/dns/models/update_rr_set_details.rb +60 -35
  211. data/lib/oci/dns/models/update_zone_details.rb +60 -38
  212. data/lib/oci/dns/models/update_zone_records_details.rb +60 -35
  213. data/lib/oci/dns/models/zone.rb +133 -126
  214. data/lib/oci/dns/models/zone_summary.rb +108 -99
  215. data/lib/oci/email/email.rb +3 -0
  216. data/lib/oci/email/email_client.rb +223 -112
  217. data/lib/oci/email/email_client_composite_operations.rb +103 -0
  218. data/lib/oci/email/models/create_sender_details.rb +65 -47
  219. data/lib/oci/email/models/create_suppression_details.rb +66 -48
  220. data/lib/oci/email/models/sender.rb +97 -84
  221. data/lib/oci/email/models/sender_summary.rb +89 -70
  222. data/lib/oci/email/models/suppression.rb +90 -69
  223. data/lib/oci/email/models/suppression_summary.rb +90 -69
  224. data/lib/oci/errors.rb +16 -0
  225. data/lib/oci/file_storage/file_storage.rb +3 -0
  226. data/lib/oci/file_storage/file_storage_client.rb +587 -333
  227. data/lib/oci/file_storage/file_storage_client_composite_operations.rb +460 -0
  228. data/lib/oci/file_storage/models/create_export_details.rb +73 -56
  229. data/lib/oci/file_storage/models/create_file_system_details.rb +75 -60
  230. data/lib/oci/file_storage/models/create_mount_target_details.rb +96 -93
  231. data/lib/oci/file_storage/models/create_snapshot_details.rb +68 -47
  232. data/lib/oci/file_storage/models/export.rb +102 -89
  233. data/lib/oci/file_storage/models/export_set.rb +121 -122
  234. data/lib/oci/file_storage/models/export_set_summary.rb +109 -102
  235. data/lib/oci/file_storage/models/export_summary.rb +102 -89
  236. data/lib/oci/file_storage/models/file_system.rb +110 -103
  237. data/lib/oci/file_storage/models/file_system_summary.rb +110 -103
  238. data/lib/oci/file_storage/models/mount_target.rb +126 -131
  239. data/lib/oci/file_storage/models/mount_target_summary.rb +121 -122
  240. data/lib/oci/file_storage/models/snapshot.rb +98 -81
  241. data/lib/oci/file_storage/models/snapshot_summary.rb +98 -81
  242. data/lib/oci/file_storage/models/update_export_set_details.rb +75 -60
  243. data/lib/oci/file_storage/models/update_file_system_details.rb +63 -40
  244. data/lib/oci/file_storage/models/update_mount_target_details.rb +63 -40
  245. data/lib/oci/identity/identity.rb +3 -0
  246. data/lib/oci/identity/identity_client.rb +1671 -872
  247. data/lib/oci/identity/identity_client_composite_operations.rb +818 -0
  248. data/lib/oci/identity/models/add_user_to_group_details.rb +66 -47
  249. data/lib/oci/identity/models/api_key.rb +108 -101
  250. data/lib/oci/identity/models/availability_domain.rb +64 -44
  251. data/lib/oci/identity/models/compartment.rb +118 -115
  252. data/lib/oci/identity/models/create_api_key_details.rb +60 -35
  253. data/lib/oci/identity/models/create_compartment_details.rb +83 -72
  254. data/lib/oci/identity/models/create_customer_secret_key_details.rb +62 -39
  255. data/lib/oci/identity/models/create_dynamic_group_details.rb +75 -61
  256. data/lib/oci/identity/models/create_group_details.rb +82 -71
  257. data/lib/oci/identity/models/create_identity_provider_details.rb +115 -110
  258. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +67 -48
  259. data/lib/oci/identity/models/create_policy_details.rb +94 -89
  260. data/lib/oci/identity/models/create_region_subscription_details.rb +64 -41
  261. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +88 -67
  262. data/lib/oci/identity/models/create_smtp_credential_details.rb +61 -36
  263. data/lib/oci/identity/models/create_swift_password_details.rb +61 -36
  264. data/lib/oci/identity/models/create_tag_details.rb +77 -62
  265. data/lib/oci/identity/models/create_tag_namespace_details.rb +82 -71
  266. data/lib/oci/identity/models/create_user_details.rb +82 -71
  267. data/lib/oci/identity/models/customer_secret_key.rb +114 -109
  268. data/lib/oci/identity/models/customer_secret_key_summary.rb +109 -102
  269. data/lib/oci/identity/models/dynamic_group.rb +112 -105
  270. data/lib/oci/identity/models/group.rb +118 -115
  271. data/lib/oci/identity/models/identity_provider.rb +135 -138
  272. data/lib/oci/identity/models/idp_group_mapping.rb +112 -109
  273. data/lib/oci/identity/models/policy.rb +129 -132
  274. data/lib/oci/identity/models/region.rb +67 -45
  275. data/lib/oci/identity/models/region_subscription.rb +90 -71
  276. data/lib/oci/identity/models/saml2_identity_provider.rb +106 -92
  277. data/lib/oci/identity/models/smtp_credential.rb +118 -113
  278. data/lib/oci/identity/models/smtp_credential_summary.rb +113 -106
  279. data/lib/oci/identity/models/swift_password.rb +113 -106
  280. data/lib/oci/identity/models/tag.rb +108 -116
  281. data/lib/oci/identity/models/tag_namespace.rb +97 -97
  282. data/lib/oci/identity/models/tag_namespace_summary.rb +97 -97
  283. data/lib/oci/identity/models/tag_summary.rb +97 -97
  284. data/lib/oci/identity/models/tenancy.rb +86 -78
  285. data/lib/oci/identity/models/ui_password.rb +97 -82
  286. data/lib/oci/identity/models/update_compartment_details.rb +77 -62
  287. data/lib/oci/identity/models/update_customer_secret_key_details.rb +61 -38
  288. data/lib/oci/identity/models/update_dynamic_group_details.rb +65 -45
  289. data/lib/oci/identity/models/update_group_details.rb +72 -55
  290. data/lib/oci/identity/models/update_identity_provider_details.rb +89 -74
  291. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +66 -47
  292. data/lib/oci/identity/models/update_policy_details.rb +83 -72
  293. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +79 -58
  294. data/lib/oci/identity/models/update_smtp_credential_details.rb +60 -35
  295. data/lib/oci/identity/models/update_state_details.rb +61 -36
  296. data/lib/oci/identity/models/update_swift_password_details.rb +60 -35
  297. data/lib/oci/identity/models/update_tag_details.rb +78 -65
  298. data/lib/oci/identity/models/update_tag_namespace_details.rb +78 -65
  299. data/lib/oci/identity/models/update_user_details.rb +72 -55
  300. data/lib/oci/identity/models/user.rb +120 -117
  301. data/lib/oci/identity/models/user_group_membership.rb +107 -100
  302. data/lib/oci/load_balancer/load_balancer.rb +3 -0
  303. data/lib/oci/load_balancer/load_balancer_client.rb +918 -500
  304. data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +795 -0
  305. data/lib/oci/load_balancer/models/backend.rb +101 -94
  306. data/lib/oci/load_balancer/models/backend_details.rb +95 -86
  307. data/lib/oci/load_balancer/models/backend_health.rb +84 -57
  308. data/lib/oci/load_balancer/models/backend_set.rb +87 -79
  309. data/lib/oci/load_balancer/models/backend_set_details.rb +80 -70
  310. data/lib/oci/load_balancer/models/backend_set_health.rb +106 -91
  311. data/lib/oci/load_balancer/models/certificate.rb +78 -64
  312. data/lib/oci/load_balancer/models/certificate_details.rb +92 -84
  313. data/lib/oci/load_balancer/models/connection_configuration.rb +73 -51
  314. data/lib/oci/load_balancer/models/create_backend_details.rb +95 -86
  315. data/lib/oci/load_balancer/models/create_backend_set_details.rb +87 -79
  316. data/lib/oci/load_balancer/models/create_certificate_details.rb +92 -84
  317. data/lib/oci/load_balancer/models/create_listener_details.rb +97 -93
  318. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +109 -117
  319. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +66 -46
  320. data/lib/oci/load_balancer/models/health_check_result.rb +98 -79
  321. data/lib/oci/load_balancer/models/health_checker.rb +108 -108
  322. data/lib/oci/load_balancer/models/health_checker_details.rb +108 -108
  323. data/lib/oci/load_balancer/models/ip_address.rb +70 -52
  324. data/lib/oci/load_balancer/models/listener.rb +97 -93
  325. data/lib/oci/load_balancer/models/listener_details.rb +91 -85
  326. data/lib/oci/load_balancer/models/load_balancer.rb +144 -157
  327. data/lib/oci/load_balancer/models/load_balancer_health.rb +110 -95
  328. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +88 -61
  329. data/lib/oci/load_balancer/models/load_balancer_policy.rb +59 -35
  330. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +59 -35
  331. data/lib/oci/load_balancer/models/load_balancer_shape.rb +59 -35
  332. data/lib/oci/load_balancer/models/path_match_type.rb +80 -51
  333. data/lib/oci/load_balancer/models/path_route.rb +76 -60
  334. data/lib/oci/load_balancer/models/path_route_set.rb +66 -46
  335. data/lib/oci/load_balancer/models/path_route_set_details.rb +60 -38
  336. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +71 -55
  337. data/lib/oci/load_balancer/models/ssl_configuration.rb +78 -66
  338. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +78 -66
  339. data/lib/oci/load_balancer/models/update_backend_details.rb +82 -67
  340. data/lib/oci/load_balancer/models/update_backend_set_details.rb +80 -70
  341. data/lib/oci/load_balancer/models/update_health_checker_details.rb +108 -108
  342. data/lib/oci/load_balancer/models/update_listener_details.rb +91 -85
  343. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +62 -40
  344. data/lib/oci/load_balancer/models/update_path_route_set_details.rb +60 -38
  345. data/lib/oci/load_balancer/models/work_request.rb +115 -108
  346. data/lib/oci/load_balancer/models/work_request_error.rb +76 -49
  347. data/lib/oci/object_storage/models/bucket.rb +136 -133
  348. data/lib/oci/object_storage/models/bucket_summary.rb +95 -95
  349. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +66 -48
  350. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +64 -44
  351. data/lib/oci/object_storage/models/create_bucket_details.rb +113 -111
  352. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +80 -70
  353. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +87 -74
  354. data/lib/oci/object_storage/models/list_objects.rb +71 -53
  355. data/lib/oci/object_storage/models/multipart_upload.rb +77 -65
  356. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +72 -56
  357. data/lib/oci/object_storage/models/namespace_metadata.rb +69 -53
  358. data/lib/oci/object_storage/models/object_summary.rb +73 -57
  359. data/lib/oci/object_storage/models/preauthenticated_request.rb +105 -96
  360. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +99 -86
  361. data/lib/oci/object_storage/models/rename_object_details.rb +80 -74
  362. data/lib/oci/object_storage/models/restore_objects_details.rb +66 -45
  363. data/lib/oci/object_storage/models/update_bucket_details.rb +101 -97
  364. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +65 -47
  365. data/lib/oci/object_storage/object_storage.rb +2 -0
  366. data/lib/oci/object_storage/object_storage_client.rb +737 -435
  367. data/lib/oci/object_storage/object_storage_client_composite_operations.rb +24 -0
  368. data/lib/oci/signer.rb +20 -7
  369. data/lib/oci/version.rb +1 -1
  370. metadata +13 -2
@@ -0,0 +1,342 @@
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
+
3
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
4
+ module OCI
5
+ # This class provides a wrapper around {OCI::Core::BlockstorageClient} and offers convenience methods
6
+ # for operations that would otherwise need to be chained together. For example, instead of performing an action
7
+ # on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
8
+ # to enter a given state, you can call a single method in this class to accomplish the same functionality
9
+ class Core::BlockstorageClientCompositeOperations
10
+ # The {OCI::Core::BlockstorageClient} used to communicate with the service_client
11
+ #
12
+ # @return [OCI::Core::BlockstorageClient]
13
+ attr_reader :service_client
14
+
15
+ # Initializes a new BlockstorageClientCompositeOperations
16
+ #
17
+ # @param [OCI::Core::BlockstorageClient] service_client The client used to communicate with the service.
18
+ # Defaults to a new service client created via {OCI::Core::BlockstorageClient#initialize} with no arguments
19
+ def initialize(service_client = OCI::Core::BlockstorageClient.new)
20
+ @service_client = service_client
21
+ end
22
+
23
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
24
+ # rubocop:disable Layout/EmptyLines
25
+
26
+
27
+ # Calls {OCI::Core::BlockstorageClient#create_volume} and then waits for the {OCI::Core::Models::Volume} acted upon
28
+ # to enter the given state(s).
29
+ #
30
+ # @param [OCI::Core::Models::CreateVolumeDetails] create_volume_details Request to create a new volume.
31
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Volume#lifecycle_state}
32
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#create_volume}
33
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
34
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
35
+ # * max_wait_seconds The maximum time to wait, in seconds
36
+ #
37
+ # @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::Volume}
38
+ def create_volume_and_wait_for_state(create_volume_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
39
+ operation_result = @service_client.create_volume(create_volume_details, base_operation_opts)
40
+
41
+ return operation_result if wait_for_states.empty?
42
+
43
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
44
+ wait_for_resource_id = operation_result.data.id
45
+
46
+ begin
47
+ waiter_result = @service_client.get_volume(wait_for_resource_id).wait_until(
48
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
49
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
50
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
51
+ )
52
+ result_to_return = waiter_result
53
+
54
+ return result_to_return
55
+ rescue StandardError
56
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
57
+ end
58
+ end
59
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
60
+ # rubocop:enable Layout/EmptyLines
61
+
62
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
63
+ # rubocop:disable Layout/EmptyLines
64
+
65
+
66
+ # Calls {OCI::Core::BlockstorageClient#create_volume_backup} and then waits for the {OCI::Core::Models::VolumeBackup} acted upon
67
+ # to enter the given state(s).
68
+ #
69
+ # @param [OCI::Core::Models::CreateVolumeBackupDetails] create_volume_backup_details Request to create a new backup of given volume.
70
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::VolumeBackup#lifecycle_state}
71
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#create_volume_backup}
72
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
73
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
74
+ # * max_wait_seconds The maximum time to wait, in seconds
75
+ #
76
+ # @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::VolumeBackup}
77
+ def create_volume_backup_and_wait_for_state(create_volume_backup_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
78
+ operation_result = @service_client.create_volume_backup(create_volume_backup_details, base_operation_opts)
79
+
80
+ return operation_result if wait_for_states.empty?
81
+
82
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
83
+ wait_for_resource_id = operation_result.data.id
84
+
85
+ begin
86
+ waiter_result = @service_client.get_volume_backup(wait_for_resource_id).wait_until(
87
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
88
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
89
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
90
+ )
91
+ result_to_return = waiter_result
92
+
93
+ return result_to_return
94
+ rescue StandardError
95
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
96
+ end
97
+ end
98
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
99
+ # rubocop:enable Layout/EmptyLines
100
+
101
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
102
+ # rubocop:disable Layout/EmptyLines
103
+
104
+
105
+ # Calls {OCI::Core::BlockstorageClient#delete_boot_volume} and then waits for the {OCI::Core::Models::BootVolume} acted upon
106
+ # to enter the given state(s).
107
+ #
108
+ # @param [String] boot_volume_id The OCID of the boot volume.
109
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::BootVolume#lifecycle_state}
110
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#delete_boot_volume}
111
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
112
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
113
+ # * max_wait_seconds The maximum time to wait, in seconds
114
+ #
115
+ # @return [OCI::Response] A {OCI::Response} object with data of type nil
116
+ def delete_boot_volume_and_wait_for_state(boot_volume_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
117
+ initial_get_result = @service_client.get_boot_volume(boot_volume_id)
118
+ operation_result = @service_client.delete_boot_volume(boot_volume_id, base_operation_opts)
119
+
120
+ return operation_result if wait_for_states.empty?
121
+
122
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
123
+
124
+ begin
125
+ waiter_result = initial_get_result.wait_until(
126
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
127
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
128
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
129
+ succeed_on_not_found: true
130
+ )
131
+ result_to_return = waiter_result
132
+
133
+ return result_to_return
134
+ rescue StandardError
135
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
136
+ end
137
+ end
138
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
139
+ # rubocop:enable Layout/EmptyLines
140
+
141
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
142
+ # rubocop:disable Layout/EmptyLines
143
+
144
+
145
+ # Calls {OCI::Core::BlockstorageClient#delete_volume} and then waits for the {OCI::Core::Models::Volume} acted upon
146
+ # to enter the given state(s).
147
+ #
148
+ # @param [String] volume_id The OCID of the volume.
149
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Volume#lifecycle_state}
150
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#delete_volume}
151
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
152
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
153
+ # * max_wait_seconds The maximum time to wait, in seconds
154
+ #
155
+ # @return [OCI::Response] A {OCI::Response} object with data of type nil
156
+ def delete_volume_and_wait_for_state(volume_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
157
+ initial_get_result = @service_client.get_volume(volume_id)
158
+ operation_result = @service_client.delete_volume(volume_id, base_operation_opts)
159
+
160
+ return operation_result if wait_for_states.empty?
161
+
162
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
163
+
164
+ begin
165
+ waiter_result = initial_get_result.wait_until(
166
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
167
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
168
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
169
+ succeed_on_not_found: true
170
+ )
171
+ result_to_return = waiter_result
172
+
173
+ return result_to_return
174
+ rescue StandardError
175
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
176
+ end
177
+ end
178
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
179
+ # rubocop:enable Layout/EmptyLines
180
+
181
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
182
+ # rubocop:disable Layout/EmptyLines
183
+
184
+
185
+ # Calls {OCI::Core::BlockstorageClient#delete_volume_backup} and then waits for the {OCI::Core::Models::VolumeBackup} acted upon
186
+ # to enter the given state(s).
187
+ #
188
+ # @param [String] volume_backup_id The OCID of the volume backup.
189
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::VolumeBackup#lifecycle_state}
190
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#delete_volume_backup}
191
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
192
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
193
+ # * max_wait_seconds The maximum time to wait, in seconds
194
+ #
195
+ # @return [OCI::Response] A {OCI::Response} object with data of type nil
196
+ def delete_volume_backup_and_wait_for_state(volume_backup_id, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
197
+ initial_get_result = @service_client.get_volume_backup(volume_backup_id)
198
+ operation_result = @service_client.delete_volume_backup(volume_backup_id, base_operation_opts)
199
+
200
+ return operation_result if wait_for_states.empty?
201
+
202
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
203
+
204
+ begin
205
+ waiter_result = initial_get_result.wait_until(
206
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
207
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
208
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200,
209
+ succeed_on_not_found: true
210
+ )
211
+ result_to_return = waiter_result
212
+
213
+ return result_to_return
214
+ rescue StandardError
215
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
216
+ end
217
+ end
218
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
219
+ # rubocop:enable Layout/EmptyLines
220
+
221
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
222
+ # rubocop:disable Layout/EmptyLines
223
+
224
+
225
+ # Calls {OCI::Core::BlockstorageClient#update_boot_volume} and then waits for the {OCI::Core::Models::BootVolume} acted upon
226
+ # to enter the given state(s).
227
+ #
228
+ # @param [String] boot_volume_id The OCID of the boot volume.
229
+ # @param [OCI::Core::Models::UpdateBootVolumeDetails] update_boot_volume_details Update boot volume's display name.
230
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::BootVolume#lifecycle_state}
231
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#update_boot_volume}
232
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
233
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
234
+ # * max_wait_seconds The maximum time to wait, in seconds
235
+ #
236
+ # @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::BootVolume}
237
+ def update_boot_volume_and_wait_for_state(boot_volume_id, update_boot_volume_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
238
+ operation_result = @service_client.update_boot_volume(boot_volume_id, update_boot_volume_details, base_operation_opts)
239
+
240
+ return operation_result if wait_for_states.empty?
241
+
242
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
243
+ wait_for_resource_id = operation_result.data.id
244
+
245
+ begin
246
+ waiter_result = @service_client.get_boot_volume(wait_for_resource_id).wait_until(
247
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
248
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
249
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
250
+ )
251
+ result_to_return = waiter_result
252
+
253
+ return result_to_return
254
+ rescue StandardError
255
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
256
+ end
257
+ end
258
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
259
+ # rubocop:enable Layout/EmptyLines
260
+
261
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
262
+ # rubocop:disable Layout/EmptyLines
263
+
264
+
265
+ # Calls {OCI::Core::BlockstorageClient#update_volume} and then waits for the {OCI::Core::Models::Volume} acted upon
266
+ # to enter the given state(s).
267
+ #
268
+ # @param [String] volume_id The OCID of the volume.
269
+ # @param [OCI::Core::Models::UpdateVolumeDetails] update_volume_details Update volume's display name. Avoid entering confidential information.
270
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::Volume#lifecycle_state}
271
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#update_volume}
272
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
273
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
274
+ # * max_wait_seconds The maximum time to wait, in seconds
275
+ #
276
+ # @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::Volume}
277
+ def update_volume_and_wait_for_state(volume_id, update_volume_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
278
+ operation_result = @service_client.update_volume(volume_id, update_volume_details, base_operation_opts)
279
+
280
+ return operation_result if wait_for_states.empty?
281
+
282
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
283
+ wait_for_resource_id = operation_result.data.id
284
+
285
+ begin
286
+ waiter_result = @service_client.get_volume(wait_for_resource_id).wait_until(
287
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
288
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
289
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
290
+ )
291
+ result_to_return = waiter_result
292
+
293
+ return result_to_return
294
+ rescue StandardError
295
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
296
+ end
297
+ end
298
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
299
+ # rubocop:enable Layout/EmptyLines
300
+
301
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
302
+ # rubocop:disable Layout/EmptyLines
303
+
304
+
305
+ # Calls {OCI::Core::BlockstorageClient#update_volume_backup} and then waits for the {OCI::Core::Models::VolumeBackup} acted upon
306
+ # to enter the given state(s).
307
+ #
308
+ # @param [String] volume_backup_id The OCID of the volume backup.
309
+ # @param [OCI::Core::Models::UpdateVolumeBackupDetails] update_volume_backup_details Update volume backup fields
310
+ # @param [Array<String>] wait_for_states An array of states to wait on. These should be valid values for {OCI::Core::Models::VolumeBackup#lifecycle_state}
311
+ # @param [Hash] base_operation_opts Any optional arguments accepted by {OCI::Core::BlockstorageClient#update_volume_backup}
312
+ # @param [Hash] waiter_opts Optional arguments for the waiter. Keys should be symbols, and the following keys are supported:
313
+ # * max_interval_seconds: The maximum interval between queries, in seconds.
314
+ # * max_wait_seconds The maximum time to wait, in seconds
315
+ #
316
+ # @return [OCI::Response] A {OCI::Response} object with data of type {OCI::Core::Models::VolumeBackup}
317
+ def update_volume_backup_and_wait_for_state(volume_backup_id, update_volume_backup_details, wait_for_states = [], base_operation_opts = {}, waiter_opts = {})
318
+ operation_result = @service_client.update_volume_backup(volume_backup_id, update_volume_backup_details, base_operation_opts)
319
+
320
+ return operation_result if wait_for_states.empty?
321
+
322
+ lowered_wait_for_states = wait_for_states.map(&:downcase)
323
+ wait_for_resource_id = operation_result.data.id
324
+
325
+ begin
326
+ waiter_result = @service_client.get_volume_backup(wait_for_resource_id).wait_until(
327
+ eval_proc: ->(response) { response.data.respond_to?(:lifecycle_state) && lowered_wait_for_states.include?(response.data.lifecycle_state.downcase) },
328
+ max_interval_seconds: waiter_opts.key?(:max_interval_seconds) ? waiter_opts[:max_interval_seconds] : 30,
329
+ max_wait_seconds: waiter_opts.key?(:max_wait_seconds) ? waiter_opts[:max_wait_seconds] : 1200
330
+ )
331
+ result_to_return = waiter_result
332
+
333
+ return result_to_return
334
+ rescue StandardError
335
+ raise OCI::Errors::CompositeOperationError.new(partial_results: [operation_result])
336
+ end
337
+ end
338
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/ParameterLists, Metrics/PerceivedComplexity
339
+ # rubocop:enable Layout/EmptyLines
340
+ end
341
+ end
342
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
@@ -1,12 +1,12 @@
1
1
  # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
- require "uri"
4
- require "logger"
3
+ require 'uri'
4
+ require 'logger'
5
5
 
6
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
6
7
  module OCI
7
-
8
+ # APIs for Networking Service, Compute Service, and Block Volume Service.
8
9
  class Core::ComputeClient
9
-
10
10
  # Client used to make HTTP requests.
11
11
  # @return [OCI::ApiClient]
12
12
  attr_reader :api_client
@@ -17,7 +17,10 @@ module OCI
17
17
 
18
18
  # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
19
19
  # @return [String]
20
- attr_accessor :region
20
+ attr_reader :region
21
+
22
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
23
+
21
24
 
22
25
  # Creates a new ComputeClient.
23
26
  # If a config is not specified, then the global OCI.config will be used.
@@ -46,15 +49,23 @@ module OCI
46
49
  config.validate unless signer.is_a?(OCI::Auth::Signers::InstancePrincipalsSecurityTokenSigner)
47
50
 
48
51
  if signer.nil?
49
- signer = Signer.new(config.user, config.fingerprint, config.tenancy, config.key_file, pass_phrase: config.pass_phrase, private_key_content: config.key_content, signing_strategy: Signer::STANDARD)
52
+ signer = OCI::Signer.new(
53
+ config.user,
54
+ config.fingerprint,
55
+ config.tenancy,
56
+ config.key_file,
57
+ pass_phrase: config.pass_phrase,
58
+ private_key_content: config.key_content
59
+ )
50
60
  end
51
61
 
52
- @api_client = ApiClient.new(config, signer, proxy_settings: proxy_settings)
62
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
53
63
 
54
64
  region ||= config.region
55
65
  region ||= signer.region if signer.respond_to?(:region)
56
66
  self.region = region
57
67
  end
68
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines
58
69
 
59
70
  # Set the region that will be used to determine the service endpoint.
60
71
  # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
@@ -73,24 +84,29 @@ module OCI
73
84
  @api_client.config.logger
74
85
  end
75
86
 
87
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
88
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
89
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
90
+
76
91
 
77
92
  # Attaches the specified boot volume to the specified instance.
78
- #
79
- # @param [AttachBootVolumeDetails] attach_boot_volume_details Attach boot volume request
93
+ #
94
+ # @param [OCI::Core::Models::AttachBootVolumeDetails] attach_boot_volume_details Attach boot volume request
80
95
  # @param [Hash] opts the optional parameters
81
96
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
82
97
  # server error without risk of executing that same action again. Retry tokens expire after 24
83
98
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
84
99
  # has been deleted and purged from the system, then a retry of the original creation request
85
100
  # may be rejected).
86
- #
87
- # @return [Response] A Response object with data of type OCI::Core::Models::BootVolumeAttachment
101
+ #
102
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeAttachment BootVolumeAttachment}
88
103
  def attach_boot_volume(attach_boot_volume_details, opts = {})
89
- logger.debug "Calling operation ComputeClient#attach_boot_volume." if logger
104
+ logger.debug 'Calling operation ComputeClient#attach_boot_volume.' if logger
90
105
 
91
106
  raise "Missing the required parameter 'attach_boot_volume_details' when calling attach_boot_volume." if attach_boot_volume_details.nil?
92
107
 
93
- path = "/bootVolumeAttachments/"
108
+ path = '/bootVolumeAttachments/'
109
+ operation_signing_strategy = :standard
94
110
 
95
111
  # Query Params
96
112
  query_params = {}
@@ -99,39 +115,50 @@ module OCI
99
115
  header_params = {}
100
116
  header_params['accept'] = 'application/json'
101
117
  header_params['content-type'] = 'application/json'
102
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
118
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
103
119
 
104
120
  post_body = @api_client.object_to_http_body(attach_boot_volume_details)
105
121
 
106
- return @api_client.call_api(
122
+ @api_client.call_api(
107
123
  :POST,
108
124
  path,
109
125
  endpoint,
110
- :header_params => header_params,
111
- :query_params => query_params,
112
- :body => post_body,
113
- :return_type => 'OCI::Core::Models::BootVolumeAttachment')
126
+ header_params: header_params,
127
+ query_params: query_params,
128
+ operation_signing_strategy: operation_signing_strategy,
129
+ body: post_body,
130
+ return_type: 'OCI::Core::Models::BootVolumeAttachment'
131
+ )
114
132
  end
133
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
134
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
135
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
136
+
137
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
138
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
139
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
140
+
115
141
 
116
142
  # Creates a secondary VNIC and attaches it to the specified instance.
117
143
  # For more information about secondary VNICs, see
118
144
  # [Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
119
- #
120
- # @param [AttachVnicDetails] attach_vnic_details Attach VNIC details.
145
+ #
146
+ # @param [OCI::Core::Models::AttachVnicDetails] attach_vnic_details Attach VNIC details.
121
147
  # @param [Hash] opts the optional parameters
122
148
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
123
149
  # server error without risk of executing that same action again. Retry tokens expire after 24
124
150
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
125
151
  # has been deleted and purged from the system, then a retry of the original creation request
126
152
  # may be rejected).
127
- #
128
- # @return [Response] A Response object with data of type OCI::Core::Models::VnicAttachment
153
+ #
154
+ # @return [Response] A Response object with data of type {OCI::Core::Models::VnicAttachment VnicAttachment}
129
155
  def attach_vnic(attach_vnic_details, opts = {})
130
- logger.debug "Calling operation ComputeClient#attach_vnic." if logger
156
+ logger.debug 'Calling operation ComputeClient#attach_vnic.' if logger
131
157
 
132
158
  raise "Missing the required parameter 'attach_vnic_details' when calling attach_vnic." if attach_vnic_details.nil?
133
159
 
134
- path = "/vnicAttachments/"
160
+ path = '/vnicAttachments/'
161
+ operation_signing_strategy = :standard
135
162
 
136
163
  # Query Params
137
164
  query_params = {}
@@ -140,37 +167,48 @@ module OCI
140
167
  header_params = {}
141
168
  header_params['accept'] = 'application/json'
142
169
  header_params['content-type'] = 'application/json'
143
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
170
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
144
171
 
145
172
  post_body = @api_client.object_to_http_body(attach_vnic_details)
146
173
 
147
- return @api_client.call_api(
174
+ @api_client.call_api(
148
175
  :POST,
149
176
  path,
150
177
  endpoint,
151
- :header_params => header_params,
152
- :query_params => query_params,
153
- :body => post_body,
154
- :return_type => 'OCI::Core::Models::VnicAttachment')
178
+ header_params: header_params,
179
+ query_params: query_params,
180
+ operation_signing_strategy: operation_signing_strategy,
181
+ body: post_body,
182
+ return_type: 'OCI::Core::Models::VnicAttachment'
183
+ )
155
184
  end
185
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
186
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
187
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
188
+
189
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
190
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
191
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
192
+
156
193
 
157
194
  # Attaches the specified storage volume to the specified instance.
158
- #
159
- # @param [AttachVolumeDetails] attach_volume_details Attach volume request
195
+ #
196
+ # @param [OCI::Core::Models::AttachVolumeDetails] attach_volume_details Attach volume request
160
197
  # @param [Hash] opts the optional parameters
161
198
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
162
199
  # server error without risk of executing that same action again. Retry tokens expire after 24
163
200
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
164
201
  # has been deleted and purged from the system, then a retry of the original creation request
165
202
  # may be rejected).
166
- #
167
- # @return [Response] A Response object with data of type OCI::Core::Models::VolumeAttachment
203
+ #
204
+ # @return [Response] A Response object with data of type {OCI::Core::Models::VolumeAttachment VolumeAttachment}
168
205
  def attach_volume(attach_volume_details, opts = {})
169
- logger.debug "Calling operation ComputeClient#attach_volume." if logger
206
+ logger.debug 'Calling operation ComputeClient#attach_volume.' if logger
170
207
 
171
208
  raise "Missing the required parameter 'attach_volume_details' when calling attach_volume." if attach_volume_details.nil?
172
209
 
173
- path = "/volumeAttachments/"
210
+ path = '/volumeAttachments/'
211
+ operation_signing_strategy = :standard
174
212
 
175
213
  # Query Params
176
214
  query_params = {}
@@ -179,26 +217,36 @@ module OCI
179
217
  header_params = {}
180
218
  header_params['accept'] = 'application/json'
181
219
  header_params['content-type'] = 'application/json'
182
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
220
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
183
221
 
184
222
  post_body = @api_client.object_to_http_body(attach_volume_details)
185
223
 
186
- return @api_client.call_api(
224
+ @api_client.call_api(
187
225
  :POST,
188
226
  path,
189
227
  endpoint,
190
- :header_params => header_params,
191
- :query_params => query_params,
192
- :body => post_body,
193
- :return_type => 'OCI::Core::Models::VolumeAttachment')
228
+ header_params: header_params,
229
+ query_params: query_params,
230
+ operation_signing_strategy: operation_signing_strategy,
231
+ body: post_body,
232
+ return_type: 'OCI::Core::Models::VolumeAttachment'
233
+ )
194
234
  end
235
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
236
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
237
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
238
+
239
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
240
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
241
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
242
+
195
243
 
196
244
  # Captures the most recent serial console data (up to a megabyte) for the
197
245
  # specified instance.
198
- #
246
+ #
199
247
  # The `CaptureConsoleHistory` operation works with the other console history operations
200
248
  # as described below.
201
- #
249
+ #
202
250
  # 1. Use `CaptureConsoleHistory` to request the capture of up to a megabyte of the
203
251
  # most recent console history. This call returns a `ConsoleHistory`
204
252
  # object. The object will have a state of REQUESTED.
@@ -210,22 +258,23 @@ module OCI
210
258
  # metadata).
211
259
  # 4. Optionally, use `DeleteConsoleHistory` to delete the console history metadata
212
260
  # and the console history data.
213
- #
214
- # @param [CaptureConsoleHistoryDetails] capture_console_history_details Console history details
261
+ #
262
+ # @param [OCI::Core::Models::CaptureConsoleHistoryDetails] capture_console_history_details Console history details
215
263
  # @param [Hash] opts the optional parameters
216
264
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
217
265
  # server error without risk of executing that same action again. Retry tokens expire after 24
218
266
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
219
267
  # has been deleted and purged from the system, then a retry of the original creation request
220
268
  # may be rejected).
221
- #
222
- # @return [Response] A Response object with data of type OCI::Core::Models::ConsoleHistory
269
+ #
270
+ # @return [Response] A Response object with data of type {OCI::Core::Models::ConsoleHistory ConsoleHistory}
223
271
  def capture_console_history(capture_console_history_details, opts = {})
224
- logger.debug "Calling operation ComputeClient#capture_console_history." if logger
272
+ logger.debug 'Calling operation ComputeClient#capture_console_history.' if logger
225
273
 
226
274
  raise "Missing the required parameter 'capture_console_history_details' when calling capture_console_history." if capture_console_history_details.nil?
227
275
 
228
- path = "/instanceConsoleHistories/"
276
+ path = '/instanceConsoleHistories/'
277
+ operation_signing_strategy = :standard
229
278
 
230
279
  # Query Params
231
280
  query_params = {}
@@ -234,59 +283,70 @@ module OCI
234
283
  header_params = {}
235
284
  header_params['accept'] = 'application/json'
236
285
  header_params['content-type'] = 'application/json'
237
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
286
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
238
287
 
239
288
  post_body = @api_client.object_to_http_body(capture_console_history_details)
240
289
 
241
- return @api_client.call_api(
290
+ @api_client.call_api(
242
291
  :POST,
243
292
  path,
244
293
  endpoint,
245
- :header_params => header_params,
246
- :query_params => query_params,
247
- :body => post_body,
248
- :return_type => 'OCI::Core::Models::ConsoleHistory')
294
+ header_params: header_params,
295
+ query_params: query_params,
296
+ operation_signing_strategy: operation_signing_strategy,
297
+ body: post_body,
298
+ return_type: 'OCI::Core::Models::ConsoleHistory'
299
+ )
249
300
  end
301
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
302
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
303
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
304
+
305
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
306
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
307
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
308
+
250
309
 
251
310
  # Creates a boot disk image for the specified instance or imports an exported image from the Oracle Cloud Infrastructure Object Storage service.
252
- #
311
+ #
253
312
  # When creating a new image, you must provide the OCID of the instance you want to use as the basis for the image, and
254
313
  # the OCID of the compartment containing that instance. For more information about images,
255
314
  # see [Managing Custom Images](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm).
256
- #
315
+ #
257
316
  # When importing an exported image from Object Storage, you specify the source information
258
317
  # in {#image_source_details image_source_details}.
259
- #
318
+ #
260
319
  # When importing an image based on the namespace, bucket name, and object name,
261
320
  # use {#image_source_via_object_storage_tuple_details image_source_via_object_storage_tuple_details}.
262
- #
321
+ #
263
322
  # When importing an image based on the Object Storage URL, use
264
323
  # image_source_via_object_storage_uri_details.
265
324
  # See [Object Storage URLs](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
266
325
  # for constructing URLs for image import/export.
267
- #
326
+ #
268
327
  # For more information about importing exported images, see
269
328
  # [Image Import/Export](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm).
270
- #
329
+ #
271
330
  # You may optionally specify a *display name* for the image, which is simply a friendly name or description.
272
331
  # It does not have to be unique, and you can change it. See {#update_image update_image}.
273
332
  # Avoid entering confidential information.
274
- #
275
- # @param [CreateImageDetails] create_image_details Image creation details
333
+ #
334
+ # @param [OCI::Core::Models::CreateImageDetails] create_image_details Image creation details
276
335
  # @param [Hash] opts the optional parameters
277
336
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
278
337
  # server error without risk of executing that same action again. Retry tokens expire after 24
279
338
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
280
339
  # has been deleted and purged from the system, then a retry of the original creation request
281
340
  # may be rejected).
282
- #
283
- # @return [Response] A Response object with data of type OCI::Core::Models::Image
341
+ #
342
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Image Image}
284
343
  def create_image(create_image_details, opts = {})
285
- logger.debug "Calling operation ComputeClient#create_image." if logger
344
+ logger.debug 'Calling operation ComputeClient#create_image.' if logger
286
345
 
287
346
  raise "Missing the required parameter 'create_image_details' when calling create_image." if create_image_details.nil?
288
347
 
289
- path = "/images"
348
+ path = '/images'
349
+ operation_signing_strategy = :standard
290
350
 
291
351
  # Query Params
292
352
  query_params = {}
@@ -295,41 +355,52 @@ module OCI
295
355
  header_params = {}
296
356
  header_params['accept'] = 'application/json'
297
357
  header_params['content-type'] = 'application/json'
298
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
358
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
299
359
 
300
360
  post_body = @api_client.object_to_http_body(create_image_details)
301
361
 
302
- return @api_client.call_api(
362
+ @api_client.call_api(
303
363
  :POST,
304
364
  path,
305
365
  endpoint,
306
- :header_params => header_params,
307
- :query_params => query_params,
308
- :body => post_body,
309
- :return_type => 'OCI::Core::Models::Image')
366
+ header_params: header_params,
367
+ query_params: query_params,
368
+ operation_signing_strategy: operation_signing_strategy,
369
+ body: post_body,
370
+ return_type: 'OCI::Core::Models::Image'
371
+ )
310
372
  end
373
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
374
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
375
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
376
+
377
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
378
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
379
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
380
+
311
381
 
312
382
  # Creates a new console connection to the specified instance.
313
383
  # Once the console connection has been created and is available,
314
384
  # you connect to the console using SSH.
315
- #
385
+ #
316
386
  # For more information about console access, see [Accessing the Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
317
- #
318
- # @param [CreateInstanceConsoleConnectionDetails] create_instance_console_connection_details Request object for creating an InstanceConsoleConnection
387
+ #
388
+ # @param [OCI::Core::Models::CreateInstanceConsoleConnectionDetails] create_instance_console_connection_details Request object for creating an InstanceConsoleConnection
319
389
  # @param [Hash] opts the optional parameters
320
390
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
321
391
  # server error without risk of executing that same action again. Retry tokens expire after 24
322
392
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
323
393
  # has been deleted and purged from the system, then a retry of the original creation request
324
394
  # may be rejected).
325
- #
326
- # @return [Response] A Response object with data of type OCI::Core::Models::InstanceConsoleConnection
395
+ #
396
+ # @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConsoleConnection InstanceConsoleConnection}
327
397
  def create_instance_console_connection(create_instance_console_connection_details, opts = {})
328
- logger.debug "Calling operation ComputeClient#create_instance_console_connection." if logger
398
+ logger.debug 'Calling operation ComputeClient#create_instance_console_connection.' if logger
329
399
 
330
400
  raise "Missing the required parameter 'create_instance_console_connection_details' when calling create_instance_console_connection." if create_instance_console_connection_details.nil?
331
401
 
332
- path = "/instanceConsoleConnections"
402
+ path = '/instanceConsoleConnections'
403
+ operation_signing_strategy = :standard
333
404
 
334
405
  # Query Params
335
406
  query_params = {}
@@ -338,19 +409,29 @@ module OCI
338
409
  header_params = {}
339
410
  header_params['accept'] = 'application/json'
340
411
  header_params['content-type'] = 'application/json'
341
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
412
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
342
413
 
343
414
  post_body = @api_client.object_to_http_body(create_instance_console_connection_details)
344
415
 
345
- return @api_client.call_api(
416
+ @api_client.call_api(
346
417
  :POST,
347
418
  path,
348
419
  endpoint,
349
- :header_params => header_params,
350
- :query_params => query_params,
351
- :body => post_body,
352
- :return_type => 'OCI::Core::Models::InstanceConsoleConnection')
420
+ header_params: header_params,
421
+ query_params: query_params,
422
+ operation_signing_strategy: operation_signing_strategy,
423
+ body: post_body,
424
+ return_type: 'OCI::Core::Models::InstanceConsoleConnection'
425
+ )
353
426
  end
427
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
428
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
429
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
430
+
431
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
432
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
433
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
434
+
354
435
 
355
436
  # Deletes the specified console history metadata and the console history data.
356
437
  # @param [String] instance_console_history_id The OCID of the console history.
@@ -358,15 +439,16 @@ module OCI
358
439
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
359
440
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
360
441
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
361
- #
442
+ #
362
443
  # @return [Response] A Response object with data of type nil
363
444
  def delete_console_history(instance_console_history_id, opts = {})
364
- logger.debug "Calling operation ComputeClient#delete_console_history." if logger
445
+ logger.debug 'Calling operation ComputeClient#delete_console_history.' if logger
365
446
 
366
447
  raise "Missing the required parameter 'instance_console_history_id' when calling delete_console_history." if instance_console_history_id.nil?
367
- raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
448
+ raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id)
368
449
 
369
- path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
450
+ path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
451
+ operation_signing_strategy = :standard
370
452
 
371
453
  # Query Params
372
454
  query_params = {}
@@ -375,18 +457,28 @@ module OCI
375
457
  header_params = {}
376
458
  header_params['accept'] = 'application/json'
377
459
  header_params['content-type'] = 'application/json'
378
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
460
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
379
461
 
380
462
  post_body = nil
381
463
 
382
- return @api_client.call_api(
464
+ @api_client.call_api(
383
465
  :DELETE,
384
466
  path,
385
467
  endpoint,
386
- :header_params => header_params,
387
- :query_params => query_params,
388
- :body => post_body)
468
+ header_params: header_params,
469
+ query_params: query_params,
470
+ operation_signing_strategy: operation_signing_strategy,
471
+ body: post_body
472
+ )
389
473
  end
474
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
475
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
476
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
477
+
478
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
479
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
480
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
481
+
390
482
 
391
483
  # Deletes an image.
392
484
  # @param [String] image_id The OCID of the image.
@@ -394,15 +486,16 @@ module OCI
394
486
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
395
487
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
396
488
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
397
- #
489
+ #
398
490
  # @return [Response] A Response object with data of type nil
399
491
  def delete_image(image_id, opts = {})
400
- logger.debug "Calling operation ComputeClient#delete_image." if logger
492
+ logger.debug 'Calling operation ComputeClient#delete_image.' if logger
401
493
 
402
494
  raise "Missing the required parameter 'image_id' when calling delete_image." if image_id.nil?
403
- raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
495
+ raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id)
404
496
 
405
- path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
497
+ path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
498
+ operation_signing_strategy = :standard
406
499
 
407
500
  # Query Params
408
501
  query_params = {}
@@ -411,18 +504,28 @@ module OCI
411
504
  header_params = {}
412
505
  header_params['accept'] = 'application/json'
413
506
  header_params['content-type'] = 'application/json'
414
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
507
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
415
508
 
416
509
  post_body = nil
417
510
 
418
- return @api_client.call_api(
511
+ @api_client.call_api(
419
512
  :DELETE,
420
513
  path,
421
514
  endpoint,
422
- :header_params => header_params,
423
- :query_params => query_params,
424
- :body => post_body)
515
+ header_params: header_params,
516
+ query_params: query_params,
517
+ operation_signing_strategy: operation_signing_strategy,
518
+ body: post_body
519
+ )
425
520
  end
521
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
522
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
523
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
524
+
525
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
526
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
527
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
528
+
426
529
 
427
530
  # Deletes the specified instance console connection.
428
531
  # @param [String] instance_console_connection_id The OCID of the intance console connection
@@ -430,15 +533,16 @@ module OCI
430
533
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
431
534
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
432
535
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
433
- #
536
+ #
434
537
  # @return [Response] A Response object with data of type nil
435
538
  def delete_instance_console_connection(instance_console_connection_id, opts = {})
436
- logger.debug "Calling operation ComputeClient#delete_instance_console_connection." if logger
539
+ logger.debug 'Calling operation ComputeClient#delete_instance_console_connection.' if logger
437
540
 
438
541
  raise "Missing the required parameter 'instance_console_connection_id' when calling delete_instance_console_connection." if instance_console_connection_id.nil?
439
- raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_connection_id)
542
+ raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_connection_id)
440
543
 
441
- path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
544
+ path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
545
+ operation_signing_strategy = :standard
442
546
 
443
547
  # Query Params
444
548
  query_params = {}
@@ -447,38 +551,49 @@ module OCI
447
551
  header_params = {}
448
552
  header_params['accept'] = 'application/json'
449
553
  header_params['content-type'] = 'application/json'
450
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
554
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
451
555
 
452
556
  post_body = nil
453
557
 
454
- return @api_client.call_api(
558
+ @api_client.call_api(
455
559
  :DELETE,
456
560
  path,
457
561
  endpoint,
458
- :header_params => header_params,
459
- :query_params => query_params,
460
- :body => post_body)
562
+ header_params: header_params,
563
+ query_params: query_params,
564
+ operation_signing_strategy: operation_signing_strategy,
565
+ body: post_body
566
+ )
461
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
+
462
576
 
463
577
  # Detaches a boot volume from an instance. You must specify the OCID of the boot volume attachment.
464
- #
578
+ #
465
579
  # This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily
466
580
  # until the attachment is completely removed.
467
- #
581
+ #
468
582
  # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
469
583
  # @param [Hash] opts the optional parameters
470
584
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
471
585
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
472
586
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
473
- #
587
+ #
474
588
  # @return [Response] A Response object with data of type nil
475
589
  def detach_boot_volume(boot_volume_attachment_id, opts = {})
476
- logger.debug "Calling operation ComputeClient#detach_boot_volume." if logger
590
+ logger.debug 'Calling operation ComputeClient#detach_boot_volume.' if logger
477
591
 
478
592
  raise "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if boot_volume_attachment_id.nil?
479
- raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_attachment_id)
593
+ raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_attachment_id)
480
594
 
481
- path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
595
+ path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
596
+ operation_signing_strategy = :standard
482
597
 
483
598
  # Query Params
484
599
  query_params = {}
@@ -487,44 +602,55 @@ module OCI
487
602
  header_params = {}
488
603
  header_params['accept'] = 'application/json'
489
604
  header_params['content-type'] = 'application/json'
490
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
605
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
491
606
 
492
607
  post_body = nil
493
608
 
494
- return @api_client.call_api(
609
+ @api_client.call_api(
495
610
  :DELETE,
496
611
  path,
497
612
  endpoint,
498
- :header_params => header_params,
499
- :query_params => query_params,
500
- :body => post_body)
613
+ header_params: header_params,
614
+ query_params: query_params,
615
+ operation_signing_strategy: operation_signing_strategy,
616
+ body: post_body
617
+ )
501
618
  end
619
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
620
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
621
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
622
+
623
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
624
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
625
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
626
+
502
627
 
503
628
  # Detaches and deletes the specified secondary VNIC.
504
629
  # This operation cannot be used on the instance's primary VNIC.
505
630
  # When you terminate an instance, all attached VNICs (primary
506
631
  # and secondary) are automatically detached and deleted.
507
- #
632
+ #
508
633
  # **Important:** If the VNIC has a
509
634
  # {PrivateIp} that is the
510
635
  # [target of a route rule](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingroutetables.htm#privateip),
511
636
  # deleting the VNIC causes that route rule to blackhole and the traffic
512
637
  # will be dropped.
513
- #
638
+ #
514
639
  # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
515
640
  # @param [Hash] opts the optional parameters
516
641
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
517
642
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
518
643
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
519
- #
644
+ #
520
645
  # @return [Response] A Response object with data of type nil
521
646
  def detach_vnic(vnic_attachment_id, opts = {})
522
- logger.debug "Calling operation ComputeClient#detach_vnic." if logger
647
+ logger.debug 'Calling operation ComputeClient#detach_vnic.' if logger
523
648
 
524
649
  raise "Missing the required parameter 'vnic_attachment_id' when calling detach_vnic." if vnic_attachment_id.nil?
525
- raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_attachment_id)
650
+ raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(vnic_attachment_id)
526
651
 
527
- path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
652
+ path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
653
+ operation_signing_strategy = :standard
528
654
 
529
655
  # Query Params
530
656
  query_params = {}
@@ -533,38 +659,49 @@ module OCI
533
659
  header_params = {}
534
660
  header_params['accept'] = 'application/json'
535
661
  header_params['content-type'] = 'application/json'
536
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
662
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
537
663
 
538
664
  post_body = nil
539
665
 
540
- return @api_client.call_api(
666
+ @api_client.call_api(
541
667
  :DELETE,
542
668
  path,
543
669
  endpoint,
544
- :header_params => header_params,
545
- :query_params => query_params,
546
- :body => post_body)
670
+ header_params: header_params,
671
+ query_params: query_params,
672
+ operation_signing_strategy: operation_signing_strategy,
673
+ body: post_body
674
+ )
547
675
  end
676
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
677
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
678
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
679
+
680
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
681
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
682
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
683
+
548
684
 
549
685
  # Detaches a storage volume from an instance. You must specify the OCID of the volume attachment.
550
- #
686
+ #
551
687
  # This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily
552
688
  # until the attachment is completely removed.
553
- #
689
+ #
554
690
  # @param [String] volume_attachment_id The OCID of the volume attachment.
555
691
  # @param [Hash] opts the optional parameters
556
692
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
557
693
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
558
694
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
559
- #
695
+ #
560
696
  # @return [Response] A Response object with data of type nil
561
697
  def detach_volume(volume_attachment_id, opts = {})
562
- logger.debug "Calling operation ComputeClient#detach_volume." if logger
698
+ logger.debug 'Calling operation ComputeClient#detach_volume.' if logger
563
699
 
564
700
  raise "Missing the required parameter 'volume_attachment_id' when calling detach_volume." if volume_attachment_id.nil?
565
- raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_attachment_id)
701
+ raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_attachment_id)
566
702
 
567
- path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
703
+ path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', volume_attachment_id.to_s)
704
+ operation_signing_strategy = :standard
568
705
 
569
706
  # Query Params
570
707
  query_params = {}
@@ -573,52 +710,63 @@ module OCI
573
710
  header_params = {}
574
711
  header_params['accept'] = 'application/json'
575
712
  header_params['content-type'] = 'application/json'
576
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
713
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
577
714
 
578
715
  post_body = nil
579
716
 
580
- return @api_client.call_api(
717
+ @api_client.call_api(
581
718
  :DELETE,
582
719
  path,
583
720
  endpoint,
584
- :header_params => header_params,
585
- :query_params => query_params,
586
- :body => post_body)
721
+ header_params: header_params,
722
+ query_params: query_params,
723
+ operation_signing_strategy: operation_signing_strategy,
724
+ body: post_body
725
+ )
587
726
  end
727
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
728
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
729
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
730
+
731
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
732
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
733
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
734
+
588
735
 
589
736
  # Exports the specified image to the Oracle Cloud Infrastructure Object Storage service. You can use the Object Storage URL,
590
737
  # or the namespace, bucket name, and object name when specifying the location to export to.
591
- #
738
+ #
592
739
  # For more information about exporting images, see [Image Import/Export](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm).
593
- #
740
+ #
594
741
  # To perform an image export, you need write access to the Object Storage bucket for the image,
595
742
  # see [Let Users Write Objects to Object Storage Buckets](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/commonpolicies.htm#Let4).
596
- #
743
+ #
597
744
  # See [Object Storage URLs](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/imageimportexport.htm#URLs) and [pre-authenticated requests](https://docs.us-phoenix-1.oraclecloud.com/Content/Object/Tasks/managingaccess.htm#pre-auth)
598
745
  # for constructing URLs for image import/export.
599
- #
746
+ #
600
747
  # @param [String] image_id The OCID of the image.
601
- # @param [ExportImageDetails] export_image_details Details for the image export.
748
+ # @param [OCI::Core::Models::ExportImageDetails] export_image_details Details for the image export.
602
749
  # @param [Hash] opts the optional parameters
603
750
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
604
751
  # server error without risk of executing that same action again. Retry tokens expire after 24
605
752
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
606
753
  # has been deleted and purged from the system, then a retry of the original creation request
607
754
  # may be rejected).
608
- #
755
+ #
609
756
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
610
757
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
611
758
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
612
- #
613
- # @return [Response] A Response object with data of type OCI::Core::Models::Image
759
+ #
760
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Image Image}
614
761
  def export_image(image_id, export_image_details, opts = {})
615
- logger.debug "Calling operation ComputeClient#export_image." if logger
762
+ logger.debug 'Calling operation ComputeClient#export_image.' if logger
616
763
 
617
764
  raise "Missing the required parameter 'image_id' when calling export_image." if image_id.nil?
618
765
  raise "Missing the required parameter 'export_image_details' when calling export_image." if export_image_details.nil?
619
- raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
766
+ raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id)
620
767
 
621
- path = "/images/{imageId}/actions/export".sub('{imageId}', image_id.to_s)
768
+ path = '/images/{imageId}/actions/export'.sub('{imageId}', image_id.to_s)
769
+ operation_signing_strategy = :standard
622
770
 
623
771
  # Query Params
624
772
  query_params = {}
@@ -627,32 +775,44 @@ module OCI
627
775
  header_params = {}
628
776
  header_params['accept'] = 'application/json'
629
777
  header_params['content-type'] = 'application/json'
630
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
631
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
778
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
779
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
632
780
 
633
781
  post_body = @api_client.object_to_http_body(export_image_details)
634
782
 
635
- return @api_client.call_api(
783
+ @api_client.call_api(
636
784
  :POST,
637
785
  path,
638
786
  endpoint,
639
- :header_params => header_params,
640
- :query_params => query_params,
641
- :body => post_body,
642
- :return_type => 'OCI::Core::Models::Image')
787
+ header_params: header_params,
788
+ query_params: query_params,
789
+ operation_signing_strategy: operation_signing_strategy,
790
+ body: post_body,
791
+ return_type: 'OCI::Core::Models::Image'
792
+ )
643
793
  end
794
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
795
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
796
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
797
+
798
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
799
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
800
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
801
+ # rubocop:disable Lint/UnusedMethodArgument
802
+
644
803
 
645
804
  # Gets information about the specified boot volume attachment.
646
805
  # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
647
806
  # @param [Hash] opts the optional parameters
648
- # @return [Response] A Response object with data of type OCI::Core::Models::BootVolumeAttachment
807
+ # @return [Response] A Response object with data of type {OCI::Core::Models::BootVolumeAttachment BootVolumeAttachment}
649
808
  def get_boot_volume_attachment(boot_volume_attachment_id, opts = {})
650
- logger.debug "Calling operation ComputeClient#get_boot_volume_attachment." if logger
809
+ logger.debug 'Calling operation ComputeClient#get_boot_volume_attachment.' if logger
651
810
 
652
811
  raise "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if boot_volume_attachment_id.nil?
653
- raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(boot_volume_attachment_id)
812
+ raise "Parameter value for 'boot_volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(boot_volume_attachment_id)
654
813
 
655
- path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
814
+ path = '/bootVolumeAttachments/{bootVolumeAttachmentId}'.sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
815
+ operation_signing_strategy = :standard
656
816
 
657
817
  # Query Params
658
818
  query_params = {}
@@ -664,30 +824,43 @@ module OCI
664
824
 
665
825
  post_body = nil
666
826
 
667
- return @api_client.call_api(
827
+ @api_client.call_api(
668
828
  :GET,
669
829
  path,
670
830
  endpoint,
671
- :header_params => header_params,
672
- :query_params => query_params,
673
- :body => post_body,
674
- :return_type => 'OCI::Core::Models::BootVolumeAttachment')
831
+ header_params: header_params,
832
+ query_params: query_params,
833
+ operation_signing_strategy: operation_signing_strategy,
834
+ body: post_body,
835
+ return_type: 'OCI::Core::Models::BootVolumeAttachment'
836
+ )
675
837
  end
838
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
839
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
840
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
841
+ # rubocop:enable Lint/UnusedMethodArgument
842
+
843
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
844
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
845
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
846
+ # rubocop:disable Lint/UnusedMethodArgument
847
+
676
848
 
677
849
  # Shows the metadata for the specified console history.
678
850
  # See {#capture_console_history capture_console_history}
679
851
  # for details about using the console history operations.
680
- #
852
+ #
681
853
  # @param [String] instance_console_history_id The OCID of the console history.
682
854
  # @param [Hash] opts the optional parameters
683
- # @return [Response] A Response object with data of type OCI::Core::Models::ConsoleHistory
855
+ # @return [Response] A Response object with data of type {OCI::Core::Models::ConsoleHistory ConsoleHistory}
684
856
  def get_console_history(instance_console_history_id, opts = {})
685
- logger.debug "Calling operation ComputeClient#get_console_history." if logger
857
+ logger.debug 'Calling operation ComputeClient#get_console_history.' if logger
686
858
 
687
859
  raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history." if instance_console_history_id.nil?
688
- raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
860
+ raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id)
689
861
 
690
- path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
862
+ path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
863
+ operation_signing_strategy = :standard
691
864
 
692
865
  # Query Params
693
866
  query_params = {}
@@ -699,37 +872,49 @@ module OCI
699
872
 
700
873
  post_body = nil
701
874
 
702
- return @api_client.call_api(
875
+ @api_client.call_api(
703
876
  :GET,
704
877
  path,
705
878
  endpoint,
706
- :header_params => header_params,
707
- :query_params => query_params,
708
- :body => post_body,
709
- :return_type => 'OCI::Core::Models::ConsoleHistory')
879
+ header_params: header_params,
880
+ query_params: query_params,
881
+ operation_signing_strategy: operation_signing_strategy,
882
+ body: post_body,
883
+ return_type: 'OCI::Core::Models::ConsoleHistory'
884
+ )
710
885
  end
886
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
887
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
888
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
889
+ # rubocop:enable Lint/UnusedMethodArgument
890
+
891
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
892
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
893
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
894
+
711
895
 
712
896
  # Gets the actual console history data (not the metadata).
713
897
  # See {#capture_console_history capture_console_history}
714
898
  # for details about using the console history operations.
715
- #
899
+ #
716
900
  # @param [String] instance_console_history_id The OCID of the console history.
717
901
  # @param [Hash] opts the optional parameters
718
902
  # @option opts [Integer] :offset Offset of the snapshot data to retrieve.
719
903
  # @option opts [Integer] :length Length of the snapshot data to retrieve.
720
904
  # @return [Response] A Response object with data of type String
721
905
  def get_console_history_content(instance_console_history_id, opts = {})
722
- logger.debug "Calling operation ComputeClient#get_console_history_content." if logger
906
+ logger.debug 'Calling operation ComputeClient#get_console_history_content.' if logger
723
907
 
724
908
  raise "Missing the required parameter 'instance_console_history_id' when calling get_console_history_content." if instance_console_history_id.nil?
725
- raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
909
+ raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id)
726
910
 
727
- path = "/instanceConsoleHistories/{instanceConsoleHistoryId}/data".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
911
+ path = '/instanceConsoleHistories/{instanceConsoleHistoryId}/data'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
912
+ operation_signing_strategy = :standard
728
913
 
729
914
  # Query Params
730
915
  query_params = {}
731
- query_params[:'offset'] = opts[:'offset'] if opts[:'offset']
732
- query_params[:'length'] = opts[:'length'] if opts[:'length']
916
+ query_params[:offset] = opts[:offset] if opts[:offset]
917
+ query_params[:length] = opts[:length] if opts[:length]
733
918
 
734
919
  # Header Params
735
920
  header_params = {}
@@ -738,27 +923,39 @@ module OCI
738
923
 
739
924
  post_body = nil
740
925
 
741
- return @api_client.call_api(
926
+ @api_client.call_api(
742
927
  :GET,
743
928
  path,
744
929
  endpoint,
745
- :header_params => header_params,
746
- :query_params => query_params,
747
- :body => post_body,
748
- :return_type => 'String')
930
+ header_params: header_params,
931
+ query_params: query_params,
932
+ operation_signing_strategy: operation_signing_strategy,
933
+ body: post_body,
934
+ return_type: 'String'
935
+ )
749
936
  end
937
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
938
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
939
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
940
+
941
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
942
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
943
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
944
+ # rubocop:disable Lint/UnusedMethodArgument
945
+
750
946
 
751
947
  # Gets the specified image.
752
948
  # @param [String] image_id The OCID of the image.
753
949
  # @param [Hash] opts the optional parameters
754
- # @return [Response] A Response object with data of type OCI::Core::Models::Image
950
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Image Image}
755
951
  def get_image(image_id, opts = {})
756
- logger.debug "Calling operation ComputeClient#get_image." if logger
952
+ logger.debug 'Calling operation ComputeClient#get_image.' if logger
757
953
 
758
954
  raise "Missing the required parameter 'image_id' when calling get_image." if image_id.nil?
759
- raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
955
+ raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id)
760
956
 
761
- path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
957
+ path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
958
+ operation_signing_strategy = :standard
762
959
 
763
960
  # Query Params
764
961
  query_params = {}
@@ -770,27 +967,40 @@ module OCI
770
967
 
771
968
  post_body = nil
772
969
 
773
- return @api_client.call_api(
970
+ @api_client.call_api(
774
971
  :GET,
775
972
  path,
776
973
  endpoint,
777
- :header_params => header_params,
778
- :query_params => query_params,
779
- :body => post_body,
780
- :return_type => 'OCI::Core::Models::Image')
974
+ header_params: header_params,
975
+ query_params: query_params,
976
+ operation_signing_strategy: operation_signing_strategy,
977
+ body: post_body,
978
+ return_type: 'OCI::Core::Models::Image'
979
+ )
781
980
  end
981
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
982
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
983
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
984
+ # rubocop:enable Lint/UnusedMethodArgument
985
+
986
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
987
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
988
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
989
+ # rubocop:disable Lint/UnusedMethodArgument
990
+
782
991
 
783
992
  # Gets information about the specified instance.
784
993
  # @param [String] instance_id The OCID of the instance.
785
994
  # @param [Hash] opts the optional parameters
786
- # @return [Response] A Response object with data of type OCI::Core::Models::Instance
995
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
787
996
  def get_instance(instance_id, opts = {})
788
- logger.debug "Calling operation ComputeClient#get_instance." if logger
997
+ logger.debug 'Calling operation ComputeClient#get_instance.' if logger
789
998
 
790
999
  raise "Missing the required parameter 'instance_id' when calling get_instance." if instance_id.nil?
791
- raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
1000
+ raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
792
1001
 
793
- path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
1002
+ path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
1003
+ operation_signing_strategy = :standard
794
1004
 
795
1005
  # Query Params
796
1006
  query_params = {}
@@ -802,27 +1012,40 @@ module OCI
802
1012
 
803
1013
  post_body = nil
804
1014
 
805
- return @api_client.call_api(
1015
+ @api_client.call_api(
806
1016
  :GET,
807
1017
  path,
808
1018
  endpoint,
809
- :header_params => header_params,
810
- :query_params => query_params,
811
- :body => post_body,
812
- :return_type => 'OCI::Core::Models::Instance')
1019
+ header_params: header_params,
1020
+ query_params: query_params,
1021
+ operation_signing_strategy: operation_signing_strategy,
1022
+ body: post_body,
1023
+ return_type: 'OCI::Core::Models::Instance'
1024
+ )
813
1025
  end
1026
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1027
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1028
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1029
+ # rubocop:enable Lint/UnusedMethodArgument
1030
+
1031
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1032
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1033
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1034
+ # rubocop:disable Lint/UnusedMethodArgument
1035
+
814
1036
 
815
1037
  # Gets the specified instance console connection's information.
816
1038
  # @param [String] instance_console_connection_id The OCID of the intance console connection
817
1039
  # @param [Hash] opts the optional parameters
818
- # @return [Response] A Response object with data of type OCI::Core::Models::InstanceConsoleConnection
1040
+ # @return [Response] A Response object with data of type {OCI::Core::Models::InstanceConsoleConnection InstanceConsoleConnection}
819
1041
  def get_instance_console_connection(instance_console_connection_id, opts = {})
820
- logger.debug "Calling operation ComputeClient#get_instance_console_connection." if logger
1042
+ logger.debug 'Calling operation ComputeClient#get_instance_console_connection.' if logger
821
1043
 
822
1044
  raise "Missing the required parameter 'instance_console_connection_id' when calling get_instance_console_connection." if instance_console_connection_id.nil?
823
- raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_connection_id)
1045
+ raise "Parameter value for 'instance_console_connection_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_connection_id)
824
1046
 
825
- path = "/instanceConsoleConnections/{instanceConsoleConnectionId}".sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
1047
+ path = '/instanceConsoleConnections/{instanceConsoleConnectionId}'.sub('{instanceConsoleConnectionId}', instance_console_connection_id.to_s)
1048
+ operation_signing_strategy = :standard
826
1049
 
827
1050
  # Query Params
828
1051
  query_params = {}
@@ -834,28 +1057,41 @@ module OCI
834
1057
 
835
1058
  post_body = nil
836
1059
 
837
- return @api_client.call_api(
1060
+ @api_client.call_api(
838
1061
  :GET,
839
1062
  path,
840
1063
  endpoint,
841
- :header_params => header_params,
842
- :query_params => query_params,
843
- :body => post_body,
844
- :return_type => 'OCI::Core::Models::InstanceConsoleConnection')
1064
+ header_params: header_params,
1065
+ query_params: query_params,
1066
+ operation_signing_strategy: operation_signing_strategy,
1067
+ body: post_body,
1068
+ return_type: 'OCI::Core::Models::InstanceConsoleConnection'
1069
+ )
845
1070
  end
1071
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1072
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1073
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1074
+ # rubocop:enable Lint/UnusedMethodArgument
1075
+
1076
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1077
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1078
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1079
+ # rubocop:disable Lint/UnusedMethodArgument
1080
+
846
1081
 
847
1082
  # Gets the information for the specified VNIC attachment.
848
- #
1083
+ #
849
1084
  # @param [String] vnic_attachment_id The OCID of the VNIC attachment.
850
1085
  # @param [Hash] opts the optional parameters
851
- # @return [Response] A Response object with data of type OCI::Core::Models::VnicAttachment
1086
+ # @return [Response] A Response object with data of type {OCI::Core::Models::VnicAttachment VnicAttachment}
852
1087
  def get_vnic_attachment(vnic_attachment_id, opts = {})
853
- logger.debug "Calling operation ComputeClient#get_vnic_attachment." if logger
1088
+ logger.debug 'Calling operation ComputeClient#get_vnic_attachment.' if logger
854
1089
 
855
1090
  raise "Missing the required parameter 'vnic_attachment_id' when calling get_vnic_attachment." if vnic_attachment_id.nil?
856
- raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(vnic_attachment_id)
1091
+ raise "Parameter value for 'vnic_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(vnic_attachment_id)
857
1092
 
858
- path = "/vnicAttachments/{vnicAttachmentId}".sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
1093
+ path = '/vnicAttachments/{vnicAttachmentId}'.sub('{vnicAttachmentId}', vnic_attachment_id.to_s)
1094
+ operation_signing_strategy = :standard
859
1095
 
860
1096
  # Query Params
861
1097
  query_params = {}
@@ -867,27 +1103,40 @@ module OCI
867
1103
 
868
1104
  post_body = nil
869
1105
 
870
- return @api_client.call_api(
1106
+ @api_client.call_api(
871
1107
  :GET,
872
1108
  path,
873
1109
  endpoint,
874
- :header_params => header_params,
875
- :query_params => query_params,
876
- :body => post_body,
877
- :return_type => 'OCI::Core::Models::VnicAttachment')
1110
+ header_params: header_params,
1111
+ query_params: query_params,
1112
+ operation_signing_strategy: operation_signing_strategy,
1113
+ body: post_body,
1114
+ return_type: 'OCI::Core::Models::VnicAttachment'
1115
+ )
878
1116
  end
1117
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1118
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1119
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1120
+ # rubocop:enable Lint/UnusedMethodArgument
1121
+
1122
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1123
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1124
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1125
+ # rubocop:disable Lint/UnusedMethodArgument
1126
+
879
1127
 
880
1128
  # Gets information about the specified volume attachment.
881
1129
  # @param [String] volume_attachment_id The OCID of the volume attachment.
882
1130
  # @param [Hash] opts the optional parameters
883
- # @return [Response] A Response object with data of type OCI::Core::Models::VolumeAttachment
1131
+ # @return [Response] A Response object with data of type {OCI::Core::Models::VolumeAttachment VolumeAttachment}
884
1132
  def get_volume_attachment(volume_attachment_id, opts = {})
885
- logger.debug "Calling operation ComputeClient#get_volume_attachment." if logger
1133
+ logger.debug 'Calling operation ComputeClient#get_volume_attachment.' if logger
886
1134
 
887
1135
  raise "Missing the required parameter 'volume_attachment_id' when calling get_volume_attachment." if volume_attachment_id.nil?
888
- raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util::blank_string?(volume_attachment_id)
1136
+ raise "Parameter value for 'volume_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(volume_attachment_id)
889
1137
 
890
- path = "/volumeAttachments/{volumeAttachmentId}".sub('{volumeAttachmentId}', volume_attachment_id.to_s)
1138
+ path = '/volumeAttachments/{volumeAttachmentId}'.sub('{volumeAttachmentId}', volume_attachment_id.to_s)
1139
+ operation_signing_strategy = :standard
891
1140
 
892
1141
  # Query Params
893
1142
  query_params = {}
@@ -899,29 +1148,42 @@ module OCI
899
1148
 
900
1149
  post_body = nil
901
1150
 
902
- return @api_client.call_api(
1151
+ @api_client.call_api(
903
1152
  :GET,
904
1153
  path,
905
1154
  endpoint,
906
- :header_params => header_params,
907
- :query_params => query_params,
908
- :body => post_body,
909
- :return_type => 'OCI::Core::Models::VolumeAttachment')
1155
+ header_params: header_params,
1156
+ query_params: query_params,
1157
+ operation_signing_strategy: operation_signing_strategy,
1158
+ body: post_body,
1159
+ return_type: 'OCI::Core::Models::VolumeAttachment'
1160
+ )
910
1161
  end
1162
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1163
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1164
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1165
+ # rubocop:enable Lint/UnusedMethodArgument
1166
+
1167
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1168
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1169
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1170
+ # rubocop:disable Lint/UnusedMethodArgument
1171
+
911
1172
 
912
1173
  # Gets the generated credentials for the instance. Only works for Windows instances. The returned credentials
913
1174
  # are only valid for the initial login.
914
- #
1175
+ #
915
1176
  # @param [String] instance_id The OCID of the instance.
916
1177
  # @param [Hash] opts the optional parameters
917
- # @return [Response] A Response object with data of type OCI::Core::Models::InstanceCredentials
1178
+ # @return [Response] A Response object with data of type {OCI::Core::Models::InstanceCredentials InstanceCredentials}
918
1179
  def get_windows_instance_initial_credentials(instance_id, opts = {})
919
- logger.debug "Calling operation ComputeClient#get_windows_instance_initial_credentials." if logger
1180
+ logger.debug 'Calling operation ComputeClient#get_windows_instance_initial_credentials.' if logger
920
1181
 
921
1182
  raise "Missing the required parameter 'instance_id' when calling get_windows_instance_initial_credentials." if instance_id.nil?
922
- raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
1183
+ raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
923
1184
 
924
- path = "/instances/{instanceId}/initialCredentials".sub('{instanceId}', instance_id.to_s)
1185
+ path = '/instances/{instanceId}/initialCredentials'.sub('{instanceId}', instance_id.to_s)
1186
+ operation_signing_strategy = :standard
925
1187
 
926
1188
  # Query Params
927
1189
  query_params = {}
@@ -933,33 +1195,44 @@ module OCI
933
1195
 
934
1196
  post_body = nil
935
1197
 
936
- return @api_client.call_api(
1198
+ @api_client.call_api(
937
1199
  :GET,
938
1200
  path,
939
1201
  endpoint,
940
- :header_params => header_params,
941
- :query_params => query_params,
942
- :body => post_body,
943
- :return_type => 'OCI::Core::Models::InstanceCredentials')
1202
+ header_params: header_params,
1203
+ query_params: query_params,
1204
+ operation_signing_strategy: operation_signing_strategy,
1205
+ body: post_body,
1206
+ return_type: 'OCI::Core::Models::InstanceCredentials'
1207
+ )
944
1208
  end
1209
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1210
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1211
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1212
+ # rubocop:enable Lint/UnusedMethodArgument
1213
+
1214
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1215
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1216
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1217
+
945
1218
 
946
1219
  # Performs one of the power actions (start, stop, softreset, or reset)
947
1220
  # on the specified instance.
948
- #
1221
+ #
949
1222
  # **start** - power on
950
- #
1223
+ #
951
1224
  # **stop** - power off
952
- #
1225
+ #
953
1226
  # **softreset** - ACPI shutdown and power on
954
- #
1227
+ #
955
1228
  # **reset** - power off and power on
956
- #
1229
+ #
957
1230
  # Note that the **stop** state has no effect on the resources you consume.
958
1231
  # Billing continues for instances that you stop, and related resources continue
959
1232
  # to apply against any relevant quotas. You must terminate an instance
960
1233
  # ({#terminate_instance terminate_instance})
961
1234
  # to remove its resources from billing and quotas.
962
- #
1235
+ #
963
1236
  # @param [String] instance_id The OCID of the instance.
964
1237
  # @param [String] action The action to perform on the instance.
965
1238
  # Allowed values are: STOP, START, SOFTRESET, RESET
@@ -969,67 +1242,78 @@ module OCI
969
1242
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
970
1243
  # has been deleted and purged from the system, then a retry of the original creation request
971
1244
  # may be rejected).
972
- #
1245
+ #
973
1246
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
974
1247
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
975
1248
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
976
- #
977
- # @return [Response] A Response object with data of type OCI::Core::Models::Instance
1249
+ #
1250
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
978
1251
  def instance_action(instance_id, action, opts = {})
979
- logger.debug "Calling operation ComputeClient#instance_action." if logger
1252
+ logger.debug 'Calling operation ComputeClient#instance_action.' if logger
980
1253
 
981
1254
  raise "Missing the required parameter 'instance_id' when calling instance_action." if instance_id.nil?
982
1255
  raise "Missing the required parameter 'action' when calling instance_action." if action.nil?
983
- unless ['STOP', 'START', 'SOFTRESET', 'RESET'].include?(action)
1256
+ unless %w[STOP START SOFTRESET RESET].include?(action)
984
1257
  raise "Invalid value for 'action', must be one of STOP, START, SOFTRESET, RESET."
985
1258
  end
986
- raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
1259
+ raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
987
1260
 
988
- path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
1261
+ path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
1262
+ operation_signing_strategy = :standard
989
1263
 
990
1264
  # Query Params
991
1265
  query_params = {}
992
- query_params[:'action'] = action
1266
+ query_params[:action] = action
993
1267
 
994
1268
  # Header Params
995
1269
  header_params = {}
996
1270
  header_params['accept'] = 'application/json'
997
1271
  header_params['content-type'] = 'application/json'
998
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
999
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1272
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1273
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1000
1274
 
1001
1275
  post_body = nil
1002
1276
 
1003
- return @api_client.call_api(
1277
+ @api_client.call_api(
1004
1278
  :POST,
1005
1279
  path,
1006
1280
  endpoint,
1007
- :header_params => header_params,
1008
- :query_params => query_params,
1009
- :body => post_body,
1010
- :return_type => 'OCI::Core::Models::Instance')
1281
+ header_params: header_params,
1282
+ query_params: query_params,
1283
+ operation_signing_strategy: operation_signing_strategy,
1284
+ body: post_body,
1285
+ return_type: 'OCI::Core::Models::Instance'
1286
+ )
1011
1287
  end
1288
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1289
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1290
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1291
+
1292
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1293
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1294
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1295
+
1012
1296
 
1013
1297
  # Creates a new instance in the specified compartment and the specified Availability Domain.
1014
1298
  # For general information about instances, see
1015
1299
  # [Overview of the Compute Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Concepts/computeoverview.htm).
1016
- #
1300
+ #
1017
1301
  # For information about access control and compartments, see
1018
1302
  # [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
1019
- #
1303
+ #
1020
1304
  # For information about Availability Domains, see
1021
1305
  # [Regions and Availability Domains](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/regions.htm).
1022
1306
  # To get a list of Availability Domains, use the `ListAvailabilityDomains` operation
1023
1307
  # in the Identity and Access Management Service API.
1024
- #
1308
+ #
1025
1309
  # All Oracle Cloud Infrastructure resources, including instances, get an Oracle-assigned,
1026
1310
  # unique ID called an Oracle Cloud Identifier (OCID).
1027
1311
  # When you create a resource, you can find its OCID in the response. You can
1028
1312
  # also retrieve a resource's OCID by using a List API operation
1029
1313
  # on that resource type, or by viewing the resource in the Console.
1030
- #
1314
+ #
1031
1315
  # To launch an instance using an image or a boot volume use the `sourceDetails` parameter in {LaunchInstanceDetails}.
1032
- #
1316
+ #
1033
1317
  # When you launch an instance, it is automatically attached to a virtual
1034
1318
  # network interface card (VNIC), called the *primary VNIC*. The VNIC
1035
1319
  # has a private IP address from the subnet's CIDR. You can either assign a
@@ -1038,25 +1322,26 @@ module OCI
1038
1322
  # addresses, use the {#list_vnic_attachments list_vnic_attachments}
1039
1323
  # operation to get the VNIC ID for the instance, and then call
1040
1324
  # {#get_vnic get_vnic} with the VNIC ID.
1041
- #
1325
+ #
1042
1326
  # You can later add secondary VNICs to an instance. For more information, see
1043
1327
  # [Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
1044
- #
1045
- # @param [LaunchInstanceDetails] launch_instance_details Instance details
1328
+ #
1329
+ # @param [OCI::Core::Models::LaunchInstanceDetails] launch_instance_details Instance details
1046
1330
  # @param [Hash] opts the optional parameters
1047
1331
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1048
1332
  # server error without risk of executing that same action again. Retry tokens expire after 24
1049
1333
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
1050
1334
  # has been deleted and purged from the system, then a retry of the original creation request
1051
1335
  # may be rejected).
1052
- #
1053
- # @return [Response] A Response object with data of type OCI::Core::Models::Instance
1336
+ #
1337
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
1054
1338
  def launch_instance(launch_instance_details, opts = {})
1055
- logger.debug "Calling operation ComputeClient#launch_instance." if logger
1339
+ logger.debug 'Calling operation ComputeClient#launch_instance.' if logger
1056
1340
 
1057
1341
  raise "Missing the required parameter 'launch_instance_details' when calling launch_instance." if launch_instance_details.nil?
1058
1342
 
1059
- path = "/instances/"
1343
+ path = '/instances/'
1344
+ operation_signing_strategy = :standard
1060
1345
 
1061
1346
  # Query Params
1062
1347
  query_params = {}
@@ -1065,54 +1350,65 @@ module OCI
1065
1350
  header_params = {}
1066
1351
  header_params['accept'] = 'application/json'
1067
1352
  header_params['content-type'] = 'application/json'
1068
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1353
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
1069
1354
 
1070
1355
  post_body = @api_client.object_to_http_body(launch_instance_details)
1071
1356
 
1072
- return @api_client.call_api(
1357
+ @api_client.call_api(
1073
1358
  :POST,
1074
1359
  path,
1075
1360
  endpoint,
1076
- :header_params => header_params,
1077
- :query_params => query_params,
1078
- :body => post_body,
1079
- :return_type => 'OCI::Core::Models::Instance')
1361
+ header_params: header_params,
1362
+ query_params: query_params,
1363
+ operation_signing_strategy: operation_signing_strategy,
1364
+ body: post_body,
1365
+ return_type: 'OCI::Core::Models::Instance'
1366
+ )
1080
1367
  end
1368
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1369
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1370
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1371
+
1372
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1373
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1374
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1375
+
1081
1376
 
1082
1377
  # Lists the boot volume attachments in the specified compartment. You can filter the
1083
1378
  # list by specifying an instance OCID, boot volume OCID, or both.
1084
- #
1379
+ #
1085
1380
  # @param [String] availability_domain The name of the Availability Domain.
1086
- #
1381
+ #
1087
1382
  # Example: `Uocm:PHX-AD-1`
1088
- #
1383
+ #
1089
1384
  # @param [String] compartment_id The OCID of the compartment.
1090
1385
  # @param [Hash] opts the optional parameters
1091
1386
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1092
- #
1387
+ #
1093
1388
  # Example: `500`
1094
- #
1389
+ #
1095
1390
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1096
- #
1391
+ #
1097
1392
  # @option opts [String] :instance_id The OCID of the instance.
1098
1393
  # @option opts [String] :boot_volume_id The OCID of the boot volume.
1099
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::BootVolumeAttachment>
1394
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::BootVolumeAttachment BootVolumeAttachment}>
1100
1395
  def list_boot_volume_attachments(availability_domain, compartment_id, opts = {})
1101
- logger.debug "Calling operation ComputeClient#list_boot_volume_attachments." if logger
1396
+ logger.debug 'Calling operation ComputeClient#list_boot_volume_attachments.' if logger
1102
1397
 
1103
1398
  raise "Missing the required parameter 'availability_domain' when calling list_boot_volume_attachments." if availability_domain.nil?
1104
1399
  raise "Missing the required parameter 'compartment_id' when calling list_boot_volume_attachments." if compartment_id.nil?
1105
1400
 
1106
- path = "/bootVolumeAttachments/"
1401
+ path = '/bootVolumeAttachments/'
1402
+ operation_signing_strategy = :standard
1107
1403
 
1108
1404
  # Query Params
1109
1405
  query_params = {}
1110
- query_params[:'availabilityDomain'] = availability_domain
1111
- query_params[:'compartmentId'] = compartment_id
1112
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1113
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1114
- query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1115
- query_params[:'bootVolumeId'] = opts[:'boot_volume_id'] if opts[:'boot_volume_id']
1406
+ query_params[:availabilityDomain] = availability_domain
1407
+ query_params[:compartmentId] = compartment_id
1408
+ query_params[:limit] = opts[:limit] if opts[:limit]
1409
+ query_params[:page] = opts[:page] if opts[:page]
1410
+ query_params[:instanceId] = opts[:instance_id] if opts[:instance_id]
1411
+ query_params[:bootVolumeId] = opts[:boot_volume_id] if opts[:boot_volume_id]
1116
1412
 
1117
1413
  # Header Params
1118
1414
  header_params = {}
@@ -1121,77 +1417,88 @@ module OCI
1121
1417
 
1122
1418
  post_body = nil
1123
1419
 
1124
- return @api_client.call_api(
1420
+ @api_client.call_api(
1125
1421
  :GET,
1126
1422
  path,
1127
1423
  endpoint,
1128
- :header_params => header_params,
1129
- :query_params => query_params,
1130
- :body => post_body,
1131
- :return_type => 'Array<OCI::Core::Models::BootVolumeAttachment>')
1424
+ header_params: header_params,
1425
+ query_params: query_params,
1426
+ operation_signing_strategy: operation_signing_strategy,
1427
+ body: post_body,
1428
+ return_type: 'Array<OCI::Core::Models::BootVolumeAttachment>'
1429
+ )
1132
1430
  end
1431
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1432
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1433
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1434
+
1435
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1436
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1437
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1438
+
1133
1439
 
1134
1440
  # Lists the console history metadata for the specified compartment or instance.
1135
- #
1441
+ #
1136
1442
  # @param [String] compartment_id The OCID of the compartment.
1137
1443
  # @param [Hash] opts the optional parameters
1138
1444
  # @option opts [String] :availability_domain The name of the Availability Domain.
1139
- #
1445
+ #
1140
1446
  # Example: `Uocm:PHX-AD-1`
1141
- #
1447
+ #
1142
1448
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1143
- #
1449
+ #
1144
1450
  # Example: `500`
1145
- #
1451
+ #
1146
1452
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1147
- #
1453
+ #
1148
1454
  # @option opts [String] :instance_id The OCID of the instance.
1149
1455
  # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
1150
1456
  # TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
1151
1457
  # sort order is case sensitive.
1152
- #
1458
+ #
1153
1459
  # **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
1154
1460
  # optionally filter by Availability Domain if the scope of the resource type is within a
1155
1461
  # single Availability Domain. If you call one of these \"List\" operations without specifying
1156
1462
  # an Availability Domain, the resources are grouped by Availability Domain, then sorted.
1157
- #
1463
+ #
1158
1464
  # Allowed values are: TIMECREATED, DISPLAYNAME
1159
1465
  # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
1160
1466
  # is case sensitive.
1161
- #
1467
+ #
1162
1468
  # Allowed values are: ASC, DESC
1163
1469
  # @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
1164
- #
1165
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::ConsoleHistory>
1470
+ #
1471
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::ConsoleHistory ConsoleHistory}>
1166
1472
  def list_console_histories(compartment_id, opts = {})
1167
- logger.debug "Calling operation ComputeClient#list_console_histories." if logger
1473
+ logger.debug 'Calling operation ComputeClient#list_console_histories.' if logger
1168
1474
 
1169
1475
  raise "Missing the required parameter 'compartment_id' when calling list_console_histories." if compartment_id.nil?
1170
1476
 
1171
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1477
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1172
1478
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1173
1479
  end
1174
1480
 
1175
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1481
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1176
1482
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1177
1483
  end
1178
1484
 
1179
- if opts[:'lifecycle_state'] && !OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1485
+ if opts[:lifecycle_state] && !OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1180
1486
  raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::ConsoleHistory::LIFECYCLE_STATE_ENUM.'
1181
1487
  end
1182
1488
 
1183
- path = "/instanceConsoleHistories/"
1489
+ path = '/instanceConsoleHistories/'
1490
+ operation_signing_strategy = :standard
1184
1491
 
1185
1492
  # Query Params
1186
1493
  query_params = {}
1187
- query_params[:'compartmentId'] = compartment_id
1188
- query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain']
1189
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1190
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1191
- query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1192
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1193
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1194
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
1494
+ query_params[:compartmentId] = compartment_id
1495
+ query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
1496
+ query_params[:limit] = opts[:limit] if opts[:limit]
1497
+ query_params[:page] = opts[:page] if opts[:page]
1498
+ query_params[:instanceId] = opts[:instance_id] if opts[:instance_id]
1499
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1500
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1501
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1195
1502
 
1196
1503
  # Header Params
1197
1504
  header_params = {}
@@ -1200,89 +1507,100 @@ module OCI
1200
1507
 
1201
1508
  post_body = nil
1202
1509
 
1203
- return @api_client.call_api(
1510
+ @api_client.call_api(
1204
1511
  :GET,
1205
1512
  path,
1206
1513
  endpoint,
1207
- :header_params => header_params,
1208
- :query_params => query_params,
1209
- :body => post_body,
1210
- :return_type => 'Array<OCI::Core::Models::ConsoleHistory>')
1514
+ header_params: header_params,
1515
+ query_params: query_params,
1516
+ operation_signing_strategy: operation_signing_strategy,
1517
+ body: post_body,
1518
+ return_type: 'Array<OCI::Core::Models::ConsoleHistory>'
1519
+ )
1211
1520
  end
1521
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1522
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1523
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1524
+
1525
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1526
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1527
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1528
+
1212
1529
 
1213
1530
  # Lists the available images in the specified compartment.
1214
1531
  # If you specify a value for the `sortBy` parameter, Oracle-provided images appear first in the list, followed by custom images.
1215
1532
  # For more
1216
1533
  # information about images, see
1217
1534
  # [Managing Custom Images](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/Tasks/managingcustomimages.htm).
1218
- #
1535
+ #
1219
1536
  # @param [String] compartment_id The OCID of the compartment.
1220
1537
  # @param [Hash] opts the optional parameters
1221
1538
  # @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
1222
- #
1539
+ #
1223
1540
  # @option opts [String] :operating_system The image's operating system.
1224
- #
1541
+ #
1225
1542
  # Example: `Oracle Linux`
1226
- #
1543
+ #
1227
1544
  # @option opts [String] :operating_system_version The image's operating system version.
1228
- #
1545
+ #
1229
1546
  # Example: `7.2`
1230
- #
1547
+ #
1231
1548
  # @option opts [String] :shape Shape name.
1232
1549
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1233
- #
1550
+ #
1234
1551
  # Example: `500`
1235
- #
1552
+ #
1236
1553
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1237
- #
1554
+ #
1238
1555
  # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
1239
1556
  # TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
1240
1557
  # sort order is case sensitive.
1241
- #
1558
+ #
1242
1559
  # **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
1243
1560
  # optionally filter by Availability Domain if the scope of the resource type is within a
1244
1561
  # single Availability Domain. If you call one of these \"List\" operations without specifying
1245
1562
  # an Availability Domain, the resources are grouped by Availability Domain, then sorted.
1246
- #
1563
+ #
1247
1564
  # Allowed values are: TIMECREATED, DISPLAYNAME
1248
1565
  # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
1249
1566
  # is case sensitive.
1250
- #
1567
+ #
1251
1568
  # Allowed values are: ASC, DESC
1252
1569
  # @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
1253
- #
1254
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::Image>
1570
+ #
1571
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::Image Image}>
1255
1572
  def list_images(compartment_id, opts = {})
1256
- logger.debug "Calling operation ComputeClient#list_images." if logger
1573
+ logger.debug 'Calling operation ComputeClient#list_images.' if logger
1257
1574
 
1258
1575
  raise "Missing the required parameter 'compartment_id' when calling list_images." if compartment_id.nil?
1259
1576
 
1260
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1577
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1261
1578
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1262
1579
  end
1263
1580
 
1264
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1581
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1265
1582
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1266
1583
  end
1267
1584
 
1268
- if opts[:'lifecycle_state'] && !OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1585
+ if opts[:lifecycle_state] && !OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1269
1586
  raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Image::LIFECYCLE_STATE_ENUM.'
1270
1587
  end
1271
1588
 
1272
- path = "/images"
1589
+ path = '/images'
1590
+ operation_signing_strategy = :standard
1273
1591
 
1274
1592
  # Query Params
1275
1593
  query_params = {}
1276
- query_params[:'compartmentId'] = compartment_id
1277
- query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
1278
- query_params[:'operatingSystem'] = opts[:'operating_system'] if opts[:'operating_system']
1279
- query_params[:'operatingSystemVersion'] = opts[:'operating_system_version'] if opts[:'operating_system_version']
1280
- query_params[:'shape'] = opts[:'shape'] if opts[:'shape']
1281
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1282
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1283
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1284
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1285
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
1594
+ query_params[:compartmentId] = compartment_id
1595
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1596
+ query_params[:operatingSystem] = opts[:operating_system] if opts[:operating_system]
1597
+ query_params[:operatingSystemVersion] = opts[:operating_system_version] if opts[:operating_system_version]
1598
+ query_params[:shape] = opts[:shape] if opts[:shape]
1599
+ query_params[:limit] = opts[:limit] if opts[:limit]
1600
+ query_params[:page] = opts[:page] if opts[:page]
1601
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1602
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1603
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1286
1604
 
1287
1605
  # Header Params
1288
1606
  header_params = {}
@@ -1291,43 +1609,54 @@ module OCI
1291
1609
 
1292
1610
  post_body = nil
1293
1611
 
1294
- return @api_client.call_api(
1612
+ @api_client.call_api(
1295
1613
  :GET,
1296
1614
  path,
1297
1615
  endpoint,
1298
- :header_params => header_params,
1299
- :query_params => query_params,
1300
- :body => post_body,
1301
- :return_type => 'Array<OCI::Core::Models::Image>')
1616
+ header_params: header_params,
1617
+ query_params: query_params,
1618
+ operation_signing_strategy: operation_signing_strategy,
1619
+ body: post_body,
1620
+ return_type: 'Array<OCI::Core::Models::Image>'
1621
+ )
1302
1622
  end
1623
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1624
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1625
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1626
+
1627
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1628
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1629
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1630
+
1303
1631
 
1304
1632
  # Lists the console connections for the specified compartment or instance.
1305
- #
1633
+ #
1306
1634
  # For more information about console access, see [Accessing the Instance Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
1307
- #
1635
+ #
1308
1636
  # @param [String] compartment_id The OCID of the compartment.
1309
1637
  # @param [Hash] opts the optional parameters
1310
1638
  # @option opts [String] :instance_id The OCID of the instance.
1311
1639
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1312
- #
1640
+ #
1313
1641
  # Example: `500`
1314
- #
1642
+ #
1315
1643
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1316
- #
1317
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::InstanceConsoleConnection>
1644
+ #
1645
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::InstanceConsoleConnection InstanceConsoleConnection}>
1318
1646
  def list_instance_console_connections(compartment_id, opts = {})
1319
- logger.debug "Calling operation ComputeClient#list_instance_console_connections." if logger
1647
+ logger.debug 'Calling operation ComputeClient#list_instance_console_connections.' if logger
1320
1648
 
1321
1649
  raise "Missing the required parameter 'compartment_id' when calling list_instance_console_connections." if compartment_id.nil?
1322
1650
 
1323
- path = "/instanceConsoleConnections"
1651
+ path = '/instanceConsoleConnections'
1652
+ operation_signing_strategy = :standard
1324
1653
 
1325
1654
  # Query Params
1326
1655
  query_params = {}
1327
- query_params[:'compartmentId'] = compartment_id
1328
- query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1329
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1330
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1656
+ query_params[:compartmentId] = compartment_id
1657
+ query_params[:instanceId] = opts[:instance_id] if opts[:instance_id]
1658
+ query_params[:limit] = opts[:limit] if opts[:limit]
1659
+ query_params[:page] = opts[:page] if opts[:page]
1331
1660
 
1332
1661
  # Header Params
1333
1662
  header_params = {}
@@ -1336,80 +1665,91 @@ module OCI
1336
1665
 
1337
1666
  post_body = nil
1338
1667
 
1339
- return @api_client.call_api(
1668
+ @api_client.call_api(
1340
1669
  :GET,
1341
1670
  path,
1342
1671
  endpoint,
1343
- :header_params => header_params,
1344
- :query_params => query_params,
1345
- :body => post_body,
1346
- :return_type => 'Array<OCI::Core::Models::InstanceConsoleConnection>')
1672
+ header_params: header_params,
1673
+ query_params: query_params,
1674
+ operation_signing_strategy: operation_signing_strategy,
1675
+ body: post_body,
1676
+ return_type: 'Array<OCI::Core::Models::InstanceConsoleConnection>'
1677
+ )
1347
1678
  end
1679
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1680
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1681
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1682
+
1683
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1684
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1685
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1686
+
1348
1687
 
1349
1688
  # Lists the instances in the specified compartment and the specified Availability Domain.
1350
1689
  # You can filter the results by specifying an instance name (the list will include all the identically-named
1351
1690
  # instances in the compartment).
1352
- #
1691
+ #
1353
1692
  # @param [String] compartment_id The OCID of the compartment.
1354
1693
  # @param [Hash] opts the optional parameters
1355
1694
  # @option opts [String] :availability_domain The name of the Availability Domain.
1356
- #
1695
+ #
1357
1696
  # Example: `Uocm:PHX-AD-1`
1358
- #
1697
+ #
1359
1698
  # @option opts [String] :display_name A filter to return only resources that match the given display name exactly.
1360
- #
1699
+ #
1361
1700
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1362
- #
1701
+ #
1363
1702
  # Example: `500`
1364
- #
1703
+ #
1365
1704
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1366
- #
1705
+ #
1367
1706
  # @option opts [String] :sort_by The field to sort by. You can provide one sort order (`sortOrder`). Default order for
1368
1707
  # TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
1369
1708
  # sort order is case sensitive.
1370
- #
1709
+ #
1371
1710
  # **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
1372
1711
  # optionally filter by Availability Domain if the scope of the resource type is within a
1373
1712
  # single Availability Domain. If you call one of these \"List\" operations without specifying
1374
1713
  # an Availability Domain, the resources are grouped by Availability Domain, then sorted.
1375
- #
1714
+ #
1376
1715
  # Allowed values are: TIMECREATED, DISPLAYNAME
1377
1716
  # @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
1378
1717
  # is case sensitive.
1379
- #
1718
+ #
1380
1719
  # Allowed values are: ASC, DESC
1381
1720
  # @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
1382
- #
1383
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::Instance>
1721
+ #
1722
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::Instance Instance}>
1384
1723
  def list_instances(compartment_id, opts = {})
1385
- logger.debug "Calling operation ComputeClient#list_instances." if logger
1724
+ logger.debug 'Calling operation ComputeClient#list_instances.' if logger
1386
1725
 
1387
1726
  raise "Missing the required parameter 'compartment_id' when calling list_instances." if compartment_id.nil?
1388
1727
 
1389
- if opts[:'sort_by'] && !['TIMECREATED', 'DISPLAYNAME'].include?(opts[:'sort_by'])
1728
+ if opts[:sort_by] && !%w[TIMECREATED DISPLAYNAME].include?(opts[:sort_by])
1390
1729
  raise 'Invalid value for "sort_by", must be one of TIMECREATED, DISPLAYNAME.'
1391
1730
  end
1392
1731
 
1393
- if opts[:'sort_order'] && !['ASC', 'DESC'].include?(opts[:'sort_order'])
1732
+ if opts[:sort_order] && !%w[ASC DESC].include?(opts[:sort_order])
1394
1733
  raise 'Invalid value for "sort_order", must be one of ASC, DESC.'
1395
1734
  end
1396
1735
 
1397
- if opts[:'lifecycle_state'] && !OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.include?(opts[:'lifecycle_state'])
1736
+ if opts[:lifecycle_state] && !OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1398
1737
  raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Core::Models::Instance::LIFECYCLE_STATE_ENUM.'
1399
1738
  end
1400
1739
 
1401
- path = "/instances/"
1740
+ path = '/instances/'
1741
+ operation_signing_strategy = :standard
1402
1742
 
1403
1743
  # Query Params
1404
1744
  query_params = {}
1405
- query_params[:'compartmentId'] = compartment_id
1406
- query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain']
1407
- query_params[:'displayName'] = opts[:'display_name'] if opts[:'display_name']
1408
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1409
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1410
- query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
1411
- query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
1412
- query_params[:'lifecycleState'] = opts[:'lifecycle_state'] if opts[:'lifecycle_state']
1745
+ query_params[:compartmentId] = compartment_id
1746
+ query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
1747
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1748
+ query_params[:limit] = opts[:limit] if opts[:limit]
1749
+ query_params[:page] = opts[:page] if opts[:page]
1750
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1751
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1752
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1413
1753
 
1414
1754
  # Header Params
1415
1755
  header_params = {}
@@ -1418,47 +1758,58 @@ module OCI
1418
1758
 
1419
1759
  post_body = nil
1420
1760
 
1421
- return @api_client.call_api(
1761
+ @api_client.call_api(
1422
1762
  :GET,
1423
1763
  path,
1424
1764
  endpoint,
1425
- :header_params => header_params,
1426
- :query_params => query_params,
1427
- :body => post_body,
1428
- :return_type => 'Array<OCI::Core::Models::Instance>')
1765
+ header_params: header_params,
1766
+ query_params: query_params,
1767
+ operation_signing_strategy: operation_signing_strategy,
1768
+ body: post_body,
1769
+ return_type: 'Array<OCI::Core::Models::Instance>'
1770
+ )
1429
1771
  end
1772
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1773
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1774
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1775
+
1776
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1777
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1778
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1779
+
1430
1780
 
1431
1781
  # Lists the shapes that can be used to launch an instance within the specified compartment. You can
1432
1782
  # filter the list by compatibility with a specific image.
1433
- #
1783
+ #
1434
1784
  # @param [String] compartment_id The OCID of the compartment.
1435
1785
  # @param [Hash] opts the optional parameters
1436
1786
  # @option opts [String] :availability_domain The name of the Availability Domain.
1437
- #
1787
+ #
1438
1788
  # Example: `Uocm:PHX-AD-1`
1439
- #
1789
+ #
1440
1790
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1441
- #
1791
+ #
1442
1792
  # Example: `500`
1443
- #
1793
+ #
1444
1794
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1445
- #
1795
+ #
1446
1796
  # @option opts [String] :image_id The OCID of an image.
1447
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::Shape>
1797
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::Shape Shape}>
1448
1798
  def list_shapes(compartment_id, opts = {})
1449
- logger.debug "Calling operation ComputeClient#list_shapes." if logger
1799
+ logger.debug 'Calling operation ComputeClient#list_shapes.' if logger
1450
1800
 
1451
1801
  raise "Missing the required parameter 'compartment_id' when calling list_shapes." if compartment_id.nil?
1452
1802
 
1453
- path = "/shapes"
1803
+ path = '/shapes'
1804
+ operation_signing_strategy = :standard
1454
1805
 
1455
1806
  # Query Params
1456
1807
  query_params = {}
1457
- query_params[:'compartmentId'] = compartment_id
1458
- query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain']
1459
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1460
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1461
- query_params[:'imageId'] = opts[:'image_id'] if opts[:'image_id']
1808
+ query_params[:compartmentId] = compartment_id
1809
+ query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
1810
+ query_params[:limit] = opts[:limit] if opts[:limit]
1811
+ query_params[:page] = opts[:page] if opts[:page]
1812
+ query_params[:imageId] = opts[:image_id] if opts[:image_id]
1462
1813
 
1463
1814
  # Header Params
1464
1815
  header_params = {}
@@ -1467,50 +1818,61 @@ module OCI
1467
1818
 
1468
1819
  post_body = nil
1469
1820
 
1470
- return @api_client.call_api(
1821
+ @api_client.call_api(
1471
1822
  :GET,
1472
1823
  path,
1473
1824
  endpoint,
1474
- :header_params => header_params,
1475
- :query_params => query_params,
1476
- :body => post_body,
1477
- :return_type => 'Array<OCI::Core::Models::Shape>')
1825
+ header_params: header_params,
1826
+ query_params: query_params,
1827
+ operation_signing_strategy: operation_signing_strategy,
1828
+ body: post_body,
1829
+ return_type: 'Array<OCI::Core::Models::Shape>'
1830
+ )
1478
1831
  end
1832
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1833
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1834
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1835
+
1836
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1837
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1838
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1839
+
1479
1840
 
1480
1841
  # Lists the VNIC attachments in the specified compartment. A VNIC attachment
1481
1842
  # resides in the same compartment as the attached instance. The list can be
1482
1843
  # filtered by instance, VNIC, or Availability Domain.
1483
- #
1844
+ #
1484
1845
  # @param [String] compartment_id The OCID of the compartment.
1485
1846
  # @param [Hash] opts the optional parameters
1486
1847
  # @option opts [String] :availability_domain The name of the Availability Domain.
1487
- #
1848
+ #
1488
1849
  # Example: `Uocm:PHX-AD-1`
1489
- #
1850
+ #
1490
1851
  # @option opts [String] :instance_id The OCID of the instance.
1491
1852
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1492
- #
1853
+ #
1493
1854
  # Example: `500`
1494
- #
1855
+ #
1495
1856
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1496
- #
1857
+ #
1497
1858
  # @option opts [String] :vnic_id The OCID of the VNIC.
1498
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::VnicAttachment>
1859
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::VnicAttachment VnicAttachment}>
1499
1860
  def list_vnic_attachments(compartment_id, opts = {})
1500
- logger.debug "Calling operation ComputeClient#list_vnic_attachments." if logger
1861
+ logger.debug 'Calling operation ComputeClient#list_vnic_attachments.' if logger
1501
1862
 
1502
1863
  raise "Missing the required parameter 'compartment_id' when calling list_vnic_attachments." if compartment_id.nil?
1503
1864
 
1504
- path = "/vnicAttachments/"
1865
+ path = '/vnicAttachments/'
1866
+ operation_signing_strategy = :standard
1505
1867
 
1506
1868
  # Query Params
1507
1869
  query_params = {}
1508
- query_params[:'compartmentId'] = compartment_id
1509
- query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain']
1510
- query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1511
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1512
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1513
- query_params[:'vnicId'] = opts[:'vnic_id'] if opts[:'vnic_id']
1870
+ query_params[:compartmentId] = compartment_id
1871
+ query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
1872
+ query_params[:instanceId] = opts[:instance_id] if opts[:instance_id]
1873
+ query_params[:limit] = opts[:limit] if opts[:limit]
1874
+ query_params[:page] = opts[:page] if opts[:page]
1875
+ query_params[:vnicId] = opts[:vnic_id] if opts[:vnic_id]
1514
1876
 
1515
1877
  # Header Params
1516
1878
  header_params = {}
@@ -1519,52 +1881,63 @@ module OCI
1519
1881
 
1520
1882
  post_body = nil
1521
1883
 
1522
- return @api_client.call_api(
1884
+ @api_client.call_api(
1523
1885
  :GET,
1524
1886
  path,
1525
1887
  endpoint,
1526
- :header_params => header_params,
1527
- :query_params => query_params,
1528
- :body => post_body,
1529
- :return_type => 'Array<OCI::Core::Models::VnicAttachment>')
1888
+ header_params: header_params,
1889
+ query_params: query_params,
1890
+ operation_signing_strategy: operation_signing_strategy,
1891
+ body: post_body,
1892
+ return_type: 'Array<OCI::Core::Models::VnicAttachment>'
1893
+ )
1530
1894
  end
1895
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1896
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1897
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1898
+
1899
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1900
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1901
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1902
+
1531
1903
 
1532
1904
  # Lists the volume attachments in the specified compartment. You can filter the
1533
1905
  # list by specifying an instance OCID, volume OCID, or both.
1534
- #
1906
+ #
1535
1907
  # Currently, the only supported volume attachment type are {IScsiVolumeAttachment} and
1536
1908
  # {ParavirtualizedVolumeAttachment}.
1537
- #
1909
+ #
1538
1910
  # @param [String] compartment_id The OCID of the compartment.
1539
1911
  # @param [Hash] opts the optional parameters
1540
1912
  # @option opts [String] :availability_domain The name of the Availability Domain.
1541
- #
1913
+ #
1542
1914
  # Example: `Uocm:PHX-AD-1`
1543
- #
1915
+ #
1544
1916
  # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1545
- #
1917
+ #
1546
1918
  # Example: `500`
1547
- #
1919
+ #
1548
1920
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1549
- #
1921
+ #
1550
1922
  # @option opts [String] :instance_id The OCID of the instance.
1551
1923
  # @option opts [String] :volume_id The OCID of the volume.
1552
- # @return [Response] A Response object with data of type Array<OCI::Core::Models::VolumeAttachment>
1924
+ # @return [Response] A Response object with data of type Array<{OCI::Core::Models::VolumeAttachment VolumeAttachment}>
1553
1925
  def list_volume_attachments(compartment_id, opts = {})
1554
- logger.debug "Calling operation ComputeClient#list_volume_attachments." if logger
1926
+ logger.debug 'Calling operation ComputeClient#list_volume_attachments.' if logger
1555
1927
 
1556
1928
  raise "Missing the required parameter 'compartment_id' when calling list_volume_attachments." if compartment_id.nil?
1557
1929
 
1558
- path = "/volumeAttachments/"
1930
+ path = '/volumeAttachments/'
1931
+ operation_signing_strategy = :standard
1559
1932
 
1560
1933
  # Query Params
1561
1934
  query_params = {}
1562
- query_params[:'compartmentId'] = compartment_id
1563
- query_params[:'availabilityDomain'] = opts[:'availability_domain'] if opts[:'availability_domain']
1564
- query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1565
- query_params[:'page'] = opts[:'page'] if opts[:'page']
1566
- query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1567
- query_params[:'volumeId'] = opts[:'volume_id'] if opts[:'volume_id']
1935
+ query_params[:compartmentId] = compartment_id
1936
+ query_params[:availabilityDomain] = opts[:availability_domain] if opts[:availability_domain]
1937
+ query_params[:limit] = opts[:limit] if opts[:limit]
1938
+ query_params[:page] = opts[:page] if opts[:page]
1939
+ query_params[:instanceId] = opts[:instance_id] if opts[:instance_id]
1940
+ query_params[:volumeId] = opts[:volume_id] if opts[:volume_id]
1568
1941
 
1569
1942
  # Header Params
1570
1943
  header_params = {}
@@ -1573,81 +1946,103 @@ module OCI
1573
1946
 
1574
1947
  post_body = nil
1575
1948
 
1576
- return @api_client.call_api(
1949
+ @api_client.call_api(
1577
1950
  :GET,
1578
1951
  path,
1579
1952
  endpoint,
1580
- :header_params => header_params,
1581
- :query_params => query_params,
1582
- :body => post_body,
1583
- :return_type => 'Array<OCI::Core::Models::VolumeAttachment>')
1953
+ header_params: header_params,
1954
+ query_params: query_params,
1955
+ operation_signing_strategy: operation_signing_strategy,
1956
+ body: post_body,
1957
+ return_type: 'Array<OCI::Core::Models::VolumeAttachment>'
1958
+ )
1584
1959
  end
1960
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1961
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1962
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1963
+
1964
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1965
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1966
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1967
+
1585
1968
 
1586
1969
  # Terminates the specified instance. Any attached VNICs and volumes are automatically detached
1587
1970
  # when the instance terminates.
1588
- #
1971
+ #
1589
1972
  # To preserve the boot volume associated with the instance, specify `true` for `PreserveBootVolumeQueryParam`.
1590
1973
  # To delete the boot volume when the instance is deleted, specify `false` or do not specify a value for `PreserveBootVolumeQueryParam`.
1591
- #
1974
+ #
1592
1975
  # This is an asynchronous operation. The instance's `lifecycleState` will change to TERMINATING temporarily
1593
1976
  # until the instance is completely removed.
1594
- #
1977
+ #
1595
1978
  # @param [String] instance_id The OCID of the instance.
1596
1979
  # @param [Hash] opts the optional parameters
1597
1980
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1598
1981
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1599
1982
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1600
- #
1983
+ #
1601
1984
  # @option opts [BOOLEAN] :preserve_boot_volume Specifies whether to delete or preserve the boot volume when terminating an instance.
1602
1985
  # The default value is false.
1603
- #
1986
+ #
1604
1987
  # @return [Response] A Response object with data of type nil
1605
1988
  def terminate_instance(instance_id, opts = {})
1606
- logger.debug "Calling operation ComputeClient#terminate_instance." if logger
1989
+ logger.debug 'Calling operation ComputeClient#terminate_instance.' if logger
1607
1990
 
1608
1991
  raise "Missing the required parameter 'instance_id' when calling terminate_instance." if instance_id.nil?
1609
- raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
1992
+ raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
1610
1993
 
1611
- path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
1994
+ path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
1995
+ operation_signing_strategy = :standard
1612
1996
 
1613
1997
  # Query Params
1614
1998
  query_params = {}
1615
- query_params[:'preserveBootVolume'] = opts[:'preserve_boot_volume'] if opts[:'preserve_boot_volume']
1999
+ query_params[:preserveBootVolume] = opts[:preserve_boot_volume] if opts[:preserve_boot_volume]
1616
2000
 
1617
2001
  # Header Params
1618
2002
  header_params = {}
1619
2003
  header_params['accept'] = 'application/json'
1620
2004
  header_params['content-type'] = 'application/json'
1621
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
2005
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1622
2006
 
1623
2007
  post_body = nil
1624
2008
 
1625
- return @api_client.call_api(
2009
+ @api_client.call_api(
1626
2010
  :DELETE,
1627
2011
  path,
1628
2012
  endpoint,
1629
- :header_params => header_params,
1630
- :query_params => query_params,
1631
- :body => post_body)
2013
+ header_params: header_params,
2014
+ query_params: query_params,
2015
+ operation_signing_strategy: operation_signing_strategy,
2016
+ body: post_body
2017
+ )
1632
2018
  end
2019
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2020
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2021
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2022
+
2023
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2024
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2025
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2026
+
1633
2027
 
1634
2028
  # Updates the specified console history metadata.
1635
2029
  # @param [String] instance_console_history_id The OCID of the console history.
1636
- # @param [UpdateConsoleHistoryDetails] update_console_history_details Update instance fields
2030
+ # @param [OCI::Core::Models::UpdateConsoleHistoryDetails] update_console_history_details Update instance fields
1637
2031
  # @param [Hash] opts the optional parameters
1638
2032
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1639
2033
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1640
2034
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1641
- #
1642
- # @return [Response] A Response object with data of type OCI::Core::Models::ConsoleHistory
2035
+ #
2036
+ # @return [Response] A Response object with data of type {OCI::Core::Models::ConsoleHistory ConsoleHistory}
1643
2037
  def update_console_history(instance_console_history_id, update_console_history_details, opts = {})
1644
- logger.debug "Calling operation ComputeClient#update_console_history." if logger
2038
+ logger.debug 'Calling operation ComputeClient#update_console_history.' if logger
1645
2039
 
1646
2040
  raise "Missing the required parameter 'instance_console_history_id' when calling update_console_history." if instance_console_history_id.nil?
1647
2041
  raise "Missing the required parameter 'update_console_history_details' when calling update_console_history." if update_console_history_details.nil?
1648
- raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_console_history_id)
2042
+ raise "Parameter value for 'instance_console_history_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_console_history_id)
1649
2043
 
1650
- path = "/instanceConsoleHistories/{instanceConsoleHistoryId}".sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
2044
+ path = '/instanceConsoleHistories/{instanceConsoleHistoryId}'.sub('{instanceConsoleHistoryId}', instance_console_history_id.to_s)
2045
+ operation_signing_strategy = :standard
1651
2046
 
1652
2047
  # Query Params
1653
2048
  query_params = {}
@@ -1656,43 +2051,54 @@ module OCI
1656
2051
  header_params = {}
1657
2052
  header_params['accept'] = 'application/json'
1658
2053
  header_params['content-type'] = 'application/json'
1659
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
2054
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1660
2055
 
1661
2056
  post_body = @api_client.object_to_http_body(update_console_history_details)
1662
2057
 
1663
- return @api_client.call_api(
2058
+ @api_client.call_api(
1664
2059
  :PUT,
1665
2060
  path,
1666
2061
  endpoint,
1667
- :header_params => header_params,
1668
- :query_params => query_params,
1669
- :body => post_body,
1670
- :return_type => 'OCI::Core::Models::ConsoleHistory')
2062
+ header_params: header_params,
2063
+ query_params: query_params,
2064
+ operation_signing_strategy: operation_signing_strategy,
2065
+ body: post_body,
2066
+ return_type: 'OCI::Core::Models::ConsoleHistory'
2067
+ )
1671
2068
  end
2069
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2070
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2071
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2072
+
2073
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2074
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2075
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2076
+
1672
2077
 
1673
2078
  # Updates the display name of the image. Avoid entering confidential information.
1674
2079
  # @param [String] image_id The OCID of the image.
1675
- # @param [UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
2080
+ # @param [OCI::Core::Models::UpdateImageDetails] update_image_details Updates the image display name field. Avoid entering confidential information.
1676
2081
  # @param [Hash] opts the optional parameters
1677
2082
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1678
2083
  # server error without risk of executing that same action again. Retry tokens expire after 24
1679
2084
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
1680
2085
  # has been deleted and purged from the system, then a retry of the original creation request
1681
2086
  # may be rejected).
1682
- #
2087
+ #
1683
2088
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1684
2089
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1685
2090
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1686
- #
1687
- # @return [Response] A Response object with data of type OCI::Core::Models::Image
2091
+ #
2092
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Image Image}
1688
2093
  def update_image(image_id, update_image_details, opts = {})
1689
- logger.debug "Calling operation ComputeClient#update_image." if logger
2094
+ logger.debug 'Calling operation ComputeClient#update_image.' if logger
1690
2095
 
1691
2096
  raise "Missing the required parameter 'image_id' when calling update_image." if image_id.nil?
1692
2097
  raise "Missing the required parameter 'update_image_details' when calling update_image." if update_image_details.nil?
1693
- raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util::blank_string?(image_id)
2098
+ raise "Parameter value for 'image_id' must not be blank" if OCI::Internal::Util.blank_string?(image_id)
1694
2099
 
1695
- path = "/images/{imageId}".sub('{imageId}', image_id.to_s)
2100
+ path = '/images/{imageId}'.sub('{imageId}', image_id.to_s)
2101
+ operation_signing_strategy = :standard
1696
2102
 
1697
2103
  # Query Params
1698
2104
  query_params = {}
@@ -1701,46 +2107,57 @@ module OCI
1701
2107
  header_params = {}
1702
2108
  header_params['accept'] = 'application/json'
1703
2109
  header_params['content-type'] = 'application/json'
1704
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1705
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
2110
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2111
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1706
2112
 
1707
2113
  post_body = @api_client.object_to_http_body(update_image_details)
1708
2114
 
1709
- return @api_client.call_api(
2115
+ @api_client.call_api(
1710
2116
  :PUT,
1711
2117
  path,
1712
2118
  endpoint,
1713
- :header_params => header_params,
1714
- :query_params => query_params,
1715
- :body => post_body,
1716
- :return_type => 'OCI::Core::Models::Image')
2119
+ header_params: header_params,
2120
+ query_params: query_params,
2121
+ operation_signing_strategy: operation_signing_strategy,
2122
+ body: post_body,
2123
+ return_type: 'OCI::Core::Models::Image'
2124
+ )
1717
2125
  end
2126
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2127
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2128
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2129
+
2130
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2131
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2132
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2133
+
1718
2134
 
1719
2135
  # Updates the display name of the specified instance. Avoid entering confidential information.
1720
2136
  # The OCID of the instance remains the same.
1721
- #
2137
+ #
1722
2138
  # @param [String] instance_id The OCID of the instance.
1723
- # @param [UpdateInstanceDetails] update_instance_details Update instance fields
2139
+ # @param [OCI::Core::Models::UpdateInstanceDetails] update_instance_details Update instance fields
1724
2140
  # @param [Hash] opts the optional parameters
1725
2141
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
1726
2142
  # server error without risk of executing that same action again. Retry tokens expire after 24
1727
2143
  # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
1728
2144
  # has been deleted and purged from the system, then a retry of the original creation request
1729
2145
  # may be rejected).
1730
- #
2146
+ #
1731
2147
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1732
2148
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1733
2149
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1734
- #
1735
- # @return [Response] A Response object with data of type OCI::Core::Models::Instance
2150
+ #
2151
+ # @return [Response] A Response object with data of type {OCI::Core::Models::Instance Instance}
1736
2152
  def update_instance(instance_id, update_instance_details, opts = {})
1737
- logger.debug "Calling operation ComputeClient#update_instance." if logger
2153
+ logger.debug 'Calling operation ComputeClient#update_instance.' if logger
1738
2154
 
1739
2155
  raise "Missing the required parameter 'instance_id' when calling update_instance." if instance_id.nil?
1740
2156
  raise "Missing the required parameter 'update_instance_details' when calling update_instance." if update_instance_details.nil?
1741
- raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util::blank_string?(instance_id)
2157
+ raise "Parameter value for 'instance_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_id)
1742
2158
 
1743
- path = "/instances/{instanceId}".sub('{instanceId}', instance_id.to_s)
2159
+ path = '/instances/{instanceId}'.sub('{instanceId}', instance_id.to_s)
2160
+ operation_signing_strategy = :standard
1744
2161
 
1745
2162
  # Query Params
1746
2163
  query_params = {}
@@ -1749,19 +2166,25 @@ module OCI
1749
2166
  header_params = {}
1750
2167
  header_params['accept'] = 'application/json'
1751
2168
  header_params['content-type'] = 'application/json'
1752
- header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
1753
- header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
2169
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
2170
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1754
2171
 
1755
2172
  post_body = @api_client.object_to_http_body(update_instance_details)
1756
2173
 
1757
- return @api_client.call_api(
2174
+ @api_client.call_api(
1758
2175
  :PUT,
1759
2176
  path,
1760
2177
  endpoint,
1761
- :header_params => header_params,
1762
- :query_params => query_params,
1763
- :body => post_body,
1764
- :return_type => 'OCI::Core::Models::Instance')
2178
+ header_params: header_params,
2179
+ query_params: query_params,
2180
+ operation_signing_strategy: operation_signing_strategy,
2181
+ body: post_body,
2182
+ return_type: 'OCI::Core::Models::Instance'
2183
+ )
1765
2184
  end
2185
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2186
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2187
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1766
2188
  end
1767
2189
  end
2190
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength