oci 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/oci/audit/models/audit_event.rb +3 -3
  4. data/lib/oci/audit/models/configuration.rb +3 -3
  5. data/lib/oci/audit/models/update_configuration_details.rb +3 -3
  6. data/lib/oci/core/blockstorage_client.rb +155 -0
  7. data/lib/oci/core/compute_client.rb +176 -12
  8. data/lib/oci/core/core.rb +11 -0
  9. data/lib/oci/core/models/attach_boot_volume_details.rb +143 -0
  10. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +3 -3
  11. data/lib/oci/core/models/attach_vnic_details.rb +23 -7
  12. data/lib/oci/core/models/attach_volume_details.rb +3 -3
  13. data/lib/oci/core/models/boot_volume.rb +234 -0
  14. data/lib/oci/core/models/boot_volume_attachment.rb +224 -0
  15. data/lib/oci/core/models/capture_console_history_details.rb +3 -3
  16. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +120 -0
  17. data/lib/oci/core/models/console_history.rb +3 -3
  18. data/lib/oci/core/models/cpe.rb +3 -3
  19. data/lib/oci/core/models/create_cpe_details.rb +3 -3
  20. data/lib/oci/core/models/create_cross_connect_details.rb +3 -3
  21. data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -3
  22. data/lib/oci/core/models/create_dhcp_details.rb +3 -3
  23. data/lib/oci/core/models/create_drg_attachment_details.rb +3 -3
  24. data/lib/oci/core/models/create_drg_details.rb +3 -3
  25. data/lib/oci/core/models/create_image_details.rb +3 -3
  26. data/lib/oci/core/models/create_instance_console_connection_details.rb +5 -5
  27. data/lib/oci/core/models/create_internet_gateway_details.rb +3 -3
  28. data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
  29. data/lib/oci/core/models/create_local_peering_gateway_details.rb +144 -0
  30. data/lib/oci/core/models/create_private_ip_details.rb +3 -3
  31. data/lib/oci/core/models/create_route_table_details.rb +3 -3
  32. data/lib/oci/core/models/create_security_list_details.rb +3 -3
  33. data/lib/oci/core/models/create_subnet_details.rb +3 -3
  34. data/lib/oci/core/models/create_vcn_details.rb +3 -3
  35. data/lib/oci/core/models/create_virtual_circuit_details.rb +3 -3
  36. data/lib/oci/core/models/create_vnic_details.rb +3 -3
  37. data/lib/oci/core/models/create_volume_backup_details.rb +3 -3
  38. data/lib/oci/core/models/create_volume_details.rb +3 -3
  39. data/lib/oci/core/models/cross_connect.rb +3 -3
  40. data/lib/oci/core/models/cross_connect_group.rb +3 -3
  41. data/lib/oci/core/models/cross_connect_location.rb +3 -3
  42. data/lib/oci/core/models/cross_connect_mapping.rb +3 -3
  43. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +3 -3
  44. data/lib/oci/core/models/cross_connect_status.rb +3 -3
  45. data/lib/oci/core/models/dhcp_dns_option.rb +3 -3
  46. data/lib/oci/core/models/dhcp_option.rb +3 -3
  47. data/lib/oci/core/models/dhcp_options.rb +3 -3
  48. data/lib/oci/core/models/dhcp_search_domain_option.rb +3 -3
  49. data/lib/oci/core/models/drg.rb +3 -3
  50. data/lib/oci/core/models/drg_attachment.rb +3 -3
  51. data/lib/oci/core/models/egress_security_rule.rb +3 -3
  52. data/lib/oci/core/models/export_image_details.rb +3 -3
  53. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -3
  54. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
  55. data/lib/oci/core/models/fast_connect_provider_service.rb +3 -3
  56. data/lib/oci/core/models/i_scsi_volume_attachment.rb +3 -3
  57. data/lib/oci/core/models/icmp_options.rb +3 -3
  58. data/lib/oci/core/models/image.rb +3 -3
  59. data/lib/oci/core/models/image_source_details.rb +3 -3
  60. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +3 -3
  61. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
  62. data/lib/oci/core/models/ingress_security_rule.rb +3 -3
  63. data/lib/oci/core/models/instance.rb +16 -6
  64. data/lib/oci/core/models/instance_console_connection.rb +9 -9
  65. data/lib/oci/core/models/instance_credentials.rb +3 -3
  66. data/lib/oci/core/models/instance_source_details.rb +135 -0
  67. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +128 -0
  68. data/lib/oci/core/models/instance_source_via_image_details.rb +128 -0
  69. data/lib/oci/core/models/internet_gateway.rb +3 -3
  70. data/lib/oci/core/models/ip_sec_connection.rb +3 -3
  71. data/lib/oci/core/models/ip_sec_connection_device_config.rb +3 -3
  72. data/lib/oci/core/models/ip_sec_connection_device_status.rb +3 -3
  73. data/lib/oci/core/models/launch_instance_details.rb +19 -6
  74. data/lib/oci/core/models/letter_of_authority.rb +3 -3
  75. data/lib/oci/core/models/local_peering_gateway.rb +271 -0
  76. data/lib/oci/core/models/port_range.rb +3 -3
  77. data/lib/oci/core/models/private_ip.rb +3 -3
  78. data/lib/oci/core/models/route_rule.rb +3 -3
  79. data/lib/oci/core/models/route_table.rb +3 -3
  80. data/lib/oci/core/models/security_list.rb +3 -3
  81. data/lib/oci/core/models/shape.rb +3 -3
  82. data/lib/oci/core/models/subnet.rb +3 -3
  83. data/lib/oci/core/models/tcp_options.rb +3 -3
  84. data/lib/oci/core/models/tunnel_config.rb +3 -3
  85. data/lib/oci/core/models/tunnel_status.rb +3 -3
  86. data/lib/oci/core/models/udp_options.rb +3 -3
  87. data/lib/oci/core/models/update_boot_volume_details.rb +122 -0
  88. data/lib/oci/core/models/update_console_history_details.rb +3 -3
  89. data/lib/oci/core/models/update_cpe_details.rb +3 -3
  90. data/lib/oci/core/models/update_cross_connect_details.rb +3 -3
  91. data/lib/oci/core/models/update_cross_connect_group_details.rb +3 -3
  92. data/lib/oci/core/models/update_dhcp_details.rb +3 -3
  93. data/lib/oci/core/models/update_drg_attachment_details.rb +3 -3
  94. data/lib/oci/core/models/update_drg_details.rb +3 -3
  95. data/lib/oci/core/models/update_image_details.rb +3 -3
  96. data/lib/oci/core/models/update_instance_details.rb +3 -3
  97. data/lib/oci/core/models/update_internet_gateway_details.rb +3 -3
  98. data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -3
  99. data/lib/oci/core/models/update_local_peering_gateway_details.rb +122 -0
  100. data/lib/oci/core/models/update_private_ip_details.rb +3 -3
  101. data/lib/oci/core/models/update_route_table_details.rb +3 -3
  102. data/lib/oci/core/models/update_security_list_details.rb +3 -3
  103. data/lib/oci/core/models/update_subnet_details.rb +3 -3
  104. data/lib/oci/core/models/update_vcn_details.rb +3 -3
  105. data/lib/oci/core/models/update_virtual_circuit_details.rb +3 -3
  106. data/lib/oci/core/models/update_vnic_details.rb +3 -3
  107. data/lib/oci/core/models/update_volume_backup_details.rb +3 -3
  108. data/lib/oci/core/models/update_volume_details.rb +3 -3
  109. data/lib/oci/core/models/vcn.rb +3 -3
  110. data/lib/oci/core/models/virtual_circuit.rb +3 -3
  111. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +3 -3
  112. data/lib/oci/core/models/vnic.rb +3 -3
  113. data/lib/oci/core/models/vnic_attachment.rb +20 -4
  114. data/lib/oci/core/models/volume.rb +3 -3
  115. data/lib/oci/core/models/volume_attachment.rb +3 -3
  116. data/lib/oci/core/models/volume_backup.rb +3 -3
  117. data/lib/oci/core/models/volume_source_details.rb +3 -3
  118. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -3
  119. data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -3
  120. data/lib/oci/core/virtual_network_client.rb +233 -0
  121. data/lib/oci/database/database.rb +3 -0
  122. data/lib/oci/database/database_client.rb +1 -1
  123. data/lib/oci/database/models/backup.rb +3 -3
  124. data/lib/oci/database/models/backup_summary.rb +3 -3
  125. data/lib/oci/database/models/create_backup_details.rb +3 -3
  126. data/lib/oci/database/models/create_data_guard_association_details.rb +3 -3
  127. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +3 -3
  128. data/lib/oci/database/models/create_database_details.rb +3 -3
  129. data/lib/oci/database/models/create_database_from_backup_details.rb +142 -0
  130. data/lib/oci/database/models/create_db_home_details.rb +3 -3
  131. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +173 -0
  132. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +22 -30
  133. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +133 -0
  134. data/lib/oci/database/models/data_guard_association.rb +3 -3
  135. data/lib/oci/database/models/data_guard_association_summary.rb +3 -3
  136. data/lib/oci/database/models/database.rb +3 -3
  137. data/lib/oci/database/models/database_summary.rb +3 -3
  138. data/lib/oci/database/models/db_backup_config.rb +3 -3
  139. data/lib/oci/database/models/db_home.rb +3 -3
  140. data/lib/oci/database/models/db_home_summary.rb +3 -3
  141. data/lib/oci/database/models/db_node.rb +3 -3
  142. data/lib/oci/database/models/db_node_summary.rb +3 -3
  143. data/lib/oci/database/models/db_system.rb +3 -3
  144. data/lib/oci/database/models/db_system_shape_summary.rb +3 -3
  145. data/lib/oci/database/models/db_system_summary.rb +3 -3
  146. data/lib/oci/database/models/db_version_summary.rb +3 -3
  147. data/lib/oci/database/models/failover_data_guard_association_details.rb +3 -3
  148. data/lib/oci/database/models/launch_db_system_details.rb +3 -3
  149. data/lib/oci/database/models/patch.rb +3 -3
  150. data/lib/oci/database/models/patch_details.rb +3 -3
  151. data/lib/oci/database/models/patch_history_entry.rb +3 -3
  152. data/lib/oci/database/models/patch_history_entry_summary.rb +3 -3
  153. data/lib/oci/database/models/patch_summary.rb +3 -3
  154. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +3 -3
  155. data/lib/oci/database/models/restore_database_details.rb +3 -3
  156. data/lib/oci/database/models/switchover_data_guard_association_details.rb +3 -3
  157. data/lib/oci/database/models/update_database_details.rb +3 -3
  158. data/lib/oci/database/models/update_db_home_details.rb +3 -3
  159. data/lib/oci/database/models/update_db_system_details.rb +3 -3
  160. data/lib/oci/identity/models/add_user_to_group_details.rb +3 -3
  161. data/lib/oci/identity/models/api_key.rb +3 -3
  162. data/lib/oci/identity/models/availability_domain.rb +3 -3
  163. data/lib/oci/identity/models/compartment.rb +3 -3
  164. data/lib/oci/identity/models/create_api_key_details.rb +3 -3
  165. data/lib/oci/identity/models/create_compartment_details.rb +3 -3
  166. data/lib/oci/identity/models/create_customer_secret_key_details.rb +3 -3
  167. data/lib/oci/identity/models/create_group_details.rb +3 -3
  168. data/lib/oci/identity/models/create_identity_provider_details.rb +3 -3
  169. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +3 -3
  170. data/lib/oci/identity/models/create_policy_details.rb +3 -3
  171. data/lib/oci/identity/models/create_region_subscription_details.rb +3 -3
  172. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +3 -3
  173. data/lib/oci/identity/models/create_swift_password_details.rb +3 -3
  174. data/lib/oci/identity/models/create_user_details.rb +3 -3
  175. data/lib/oci/identity/models/customer_secret_key.rb +3 -3
  176. data/lib/oci/identity/models/customer_secret_key_summary.rb +3 -3
  177. data/lib/oci/identity/models/group.rb +3 -3
  178. data/lib/oci/identity/models/identity_provider.rb +3 -3
  179. data/lib/oci/identity/models/idp_group_mapping.rb +3 -3
  180. data/lib/oci/identity/models/policy.rb +3 -3
  181. data/lib/oci/identity/models/region.rb +3 -3
  182. data/lib/oci/identity/models/region_subscription.rb +3 -3
  183. data/lib/oci/identity/models/saml2_identity_provider.rb +3 -3
  184. data/lib/oci/identity/models/swift_password.rb +3 -3
  185. data/lib/oci/identity/models/tenancy.rb +3 -3
  186. data/lib/oci/identity/models/ui_password.rb +3 -3
  187. data/lib/oci/identity/models/update_compartment_details.rb +3 -3
  188. data/lib/oci/identity/models/update_customer_secret_key_details.rb +3 -3
  189. data/lib/oci/identity/models/update_group_details.rb +3 -3
  190. data/lib/oci/identity/models/update_identity_provider_details.rb +3 -3
  191. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +3 -3
  192. data/lib/oci/identity/models/update_policy_details.rb +3 -3
  193. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +3 -3
  194. data/lib/oci/identity/models/update_state_details.rb +3 -3
  195. data/lib/oci/identity/models/update_swift_password_details.rb +3 -3
  196. data/lib/oci/identity/models/update_user_details.rb +3 -3
  197. data/lib/oci/identity/models/user.rb +3 -3
  198. data/lib/oci/identity/models/user_group_membership.rb +3 -3
  199. data/lib/oci/load_balancer/load_balancer_client.rb +27 -1
  200. data/lib/oci/load_balancer/models/backend.rb +3 -3
  201. data/lib/oci/load_balancer/models/backend_details.rb +3 -3
  202. data/lib/oci/load_balancer/models/backend_health.rb +4 -4
  203. data/lib/oci/load_balancer/models/backend_set.rb +5 -6
  204. data/lib/oci/load_balancer/models/backend_set_details.rb +5 -6
  205. data/lib/oci/load_balancer/models/backend_set_health.rb +3 -3
  206. data/lib/oci/load_balancer/models/certificate.rb +3 -3
  207. data/lib/oci/load_balancer/models/certificate_details.rb +3 -3
  208. data/lib/oci/load_balancer/models/create_backend_details.rb +3 -3
  209. data/lib/oci/load_balancer/models/create_backend_set_details.rb +5 -5
  210. data/lib/oci/load_balancer/models/create_certificate_details.rb +3 -3
  211. data/lib/oci/load_balancer/models/create_listener_details.rb +3 -3
  212. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
  213. data/lib/oci/load_balancer/models/health_check_result.rb +3 -3
  214. data/lib/oci/load_balancer/models/health_checker.rb +3 -3
  215. data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
  216. data/lib/oci/load_balancer/models/ip_address.rb +3 -3
  217. data/lib/oci/load_balancer/models/listener.rb +3 -3
  218. data/lib/oci/load_balancer/models/listener_details.rb +3 -3
  219. data/lib/oci/load_balancer/models/load_balancer.rb +6 -4
  220. data/lib/oci/load_balancer/models/load_balancer_health.rb +5 -5
  221. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +3 -3
  222. data/lib/oci/load_balancer/models/load_balancer_policy.rb +3 -3
  223. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -3
  224. data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -3
  225. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +3 -3
  226. data/lib/oci/load_balancer/models/ssl_configuration.rb +3 -3
  227. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +3 -3
  228. data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
  229. data/lib/oci/load_balancer/models/update_backend_set_details.rb +5 -6
  230. data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
  231. data/lib/oci/load_balancer/models/update_listener_details.rb +3 -3
  232. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -3
  233. data/lib/oci/load_balancer/models/work_request.rb +5 -3
  234. data/lib/oci/load_balancer/models/work_request_error.rb +3 -3
  235. data/lib/oci/object_storage/models/bucket.rb +3 -3
  236. data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
  237. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +3 -3
  238. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +3 -3
  239. data/lib/oci/object_storage/models/create_bucket_details.rb +3 -3
  240. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +3 -3
  241. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +3 -3
  242. data/lib/oci/object_storage/models/list_objects.rb +3 -3
  243. data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
  244. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +3 -3
  245. data/lib/oci/object_storage/models/namespace_metadata.rb +3 -3
  246. data/lib/oci/object_storage/models/object_summary.rb +3 -3
  247. data/lib/oci/object_storage/models/preauthenticated_request.rb +3 -3
  248. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -3
  249. data/lib/oci/object_storage/models/rename_object_details.rb +3 -3
  250. data/lib/oci/object_storage/models/restore_objects_details.rb +3 -3
  251. data/lib/oci/object_storage/models/update_bucket_details.rb +3 -3
  252. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +3 -3
  253. data/lib/oci/version.rb +1 -1
  254. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2547706fa1e10fb27e6c82edc90e6ee138f65d1
4
- data.tar.gz: e2f85e45a41f48d2a92174468bed39ac1658804c
3
+ metadata.gz: c5a955af9b080d6fe67e271c9905e2d28f0f19af
4
+ data.tar.gz: 3926d554915916b11910539894df24de951243e3
5
5
  SHA512:
6
- metadata.gz: 537d4e1e3a4d61314e6d48f88c5f5a6f5450358c6d3bca3a3742a7ab9b1f2ca4ce7a2ff2ebddb9b0b4b023569f6d60190bb04887e50b6d8fbf9fadb85db6ecfe
7
- data.tar.gz: d7862eed2f006296f3b9797d05a027cda94ceb4de85d0a867bf5dc36d7bd47b9addc47758efb928cba7228920731e8d01a564a452087d106efdb5e22df45dce3
6
+ metadata.gz: ff7db8b2df2f5be1e9d28783acb53cf49c4c303e3048783d10237df501aff4552e9739f1f9a466c06ccfaedf126f21b18f98e4ae63eda11738914c8303c0360d
7
+ data.tar.gz: 91082800cbadb544bd5e13710af6984536a253f93fefdf5ac1646b795961856d67840948014e58efb7ded78976b54965bbb91f6df8d5cdb0f6eba7e5a919a828
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Oracle Cloud Infrastructure Ruby SDK
2
- **Version 2.0.2**
2
+ **Version 2.0.3**
3
3
 
4
4
  This topic describes how to install, configure, and use the Oracle Cloud Infrastructure Ruby SDK.
5
5
 
@@ -206,10 +206,10 @@ module OCI
206
206
  # check to ensure the input is an array given that the the attribute
207
207
  # is documented as an array but the input is not
208
208
  if attributes[self.class.attribute_map[key]].is_a?(Array)
209
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
209
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
210
210
  end
211
211
  elsif !attributes[self.class.attribute_map[key]].nil?
212
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
212
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
213
213
  end # or else data not found in attributes(hash), not an issue as the data can be optional
214
214
  end
215
215
 
@@ -227,7 +227,7 @@ module OCI
227
227
  def to_hash
228
228
  hash = {}
229
229
  self.class.attribute_map.each_pair do |attr, param|
230
- value = send(attr)
230
+ value = public_send(attr)
231
231
  next if value.nil? && !instance_variable_defined?("@#{attr}")
232
232
  hash[param] = _to_hash(value)
233
233
  end
@@ -53,10 +53,10 @@ module OCI
53
53
  # check to ensure the input is an array given that the the attribute
54
54
  # is documented as an array but the input is not
55
55
  if attributes[self.class.attribute_map[key]].is_a?(Array)
56
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
56
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
57
  end
58
58
  elsif !attributes[self.class.attribute_map[key]].nil?
59
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
59
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
60
  end # or else data not found in attributes(hash), not an issue as the data can be optional
61
61
  end
62
62
 
@@ -74,7 +74,7 @@ module OCI
74
74
  def to_hash
75
75
  hash = {}
76
76
  self.class.attribute_map.each_pair do |attr, param|
77
- value = send(attr)
77
+ value = public_send(attr)
78
78
  next if value.nil? && !instance_variable_defined?("@#{attr}")
79
79
  hash[param] = _to_hash(value)
80
80
  end
@@ -53,10 +53,10 @@ module OCI
53
53
  # check to ensure the input is an array given that the the attribute
54
54
  # is documented as an array but the input is not
55
55
  if attributes[self.class.attribute_map[key]].is_a?(Array)
56
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
56
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
57
  end
58
58
  elsif !attributes[self.class.attribute_map[key]].nil?
59
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
59
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
60
  end # or else data not found in attributes(hash), not an issue as the data can be optional
61
61
  end
62
62
 
@@ -74,7 +74,7 @@ module OCI
74
74
  def to_hash
75
75
  hash = {}
76
76
  self.class.attribute_map.each_pair do |attr, param|
77
- value = send(attr)
77
+ value = public_send(attr)
78
78
  next if value.nil? && !instance_variable_defined?("@#{attr}")
79
79
  hash[param] = _to_hash(value)
80
80
  end
@@ -154,6 +154,45 @@ module OCI
154
154
  :return_type => 'OCI::Core::Models::VolumeBackup')
155
155
  end
156
156
 
157
+ # Deletes the specified boot volume. The volume cannot have an active connection to an instance.
158
+ # To disconnect the boot volume from a connected instance, see
159
+ # [Disconnecting From a Boot Volume](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/deletingbootvolume.htm).
160
+ # **Warning:** All data on the boot volume will be permanently lost when the boot volume is deleted.
161
+ #
162
+ # @param [String] boot_volume_id The OCID of the boot volume.
163
+ # @param [Hash] opts the optional parameters
164
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
165
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
166
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
167
+ #
168
+ # @return [Response] A Response object with data of type nil
169
+ def delete_boot_volume(boot_volume_id, opts = {})
170
+ logger.debug "Calling operation BlockstorageClient#delete_boot_volume." if logger
171
+
172
+ fail "Missing the required parameter 'boot_volume_id' when calling delete_boot_volume." if boot_volume_id.nil?
173
+
174
+ path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
175
+
176
+ # Query Params
177
+ query_params = {}
178
+
179
+ # Header Params
180
+ header_params = {}
181
+ header_params['accept'] = 'application/json'
182
+ header_params['content-type'] = 'application/json'
183
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
184
+
185
+ post_body = nil
186
+
187
+ return @api_client.call_api(
188
+ :DELETE,
189
+ path,
190
+ endpoint,
191
+ :header_params => header_params,
192
+ :query_params => query_params,
193
+ :body => post_body)
194
+ end
195
+
157
196
  # Deletes the specified volume. The volume cannot have an active connection to an instance.
158
197
  # To disconnect the volume from a connected instance, see
159
198
  # [Disconnecting From a Volume](https://docs.us-phoenix-1.oraclecloud.com/Content/Block/Tasks/disconnectingfromavolume.htm).
@@ -228,6 +267,37 @@ module OCI
228
267
  :body => post_body)
229
268
  end
230
269
 
270
+ # Gets information for the specified boot volume.
271
+ # @param [String] boot_volume_id The OCID of the boot volume.
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [Response] A Response object with data of type OCI::Core::Models::BootVolume
274
+ def get_boot_volume(boot_volume_id, opts = {})
275
+ logger.debug "Calling operation BlockstorageClient#get_boot_volume." if logger
276
+
277
+ fail "Missing the required parameter 'boot_volume_id' when calling get_boot_volume." if boot_volume_id.nil?
278
+
279
+ path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
280
+
281
+ # Query Params
282
+ query_params = {}
283
+
284
+ # Header Params
285
+ header_params = {}
286
+ header_params['accept'] = 'application/json'
287
+ header_params['content-type'] = 'application/json'
288
+
289
+ post_body = nil
290
+
291
+ return @api_client.call_api(
292
+ :GET,
293
+ path,
294
+ endpoint,
295
+ :header_params => header_params,
296
+ :query_params => query_params,
297
+ :body => post_body,
298
+ :return_type => 'OCI::Core::Models::BootVolume')
299
+ end
300
+
231
301
  # Gets information for the specified volume.
232
302
  # @param [String] volume_id The OCID of the volume.
233
303
  # @param [Hash] opts the optional parameters
@@ -290,6 +360,53 @@ module OCI
290
360
  :return_type => 'OCI::Core::Models::VolumeBackup')
291
361
  end
292
362
 
363
+ # Lists the boot volumes in the specified compartment and Availability Domain.
364
+ #
365
+ # @param [String] availability_domain The name of the Availability Domain.
366
+ #
367
+ # Example: `Uocm:PHX-AD-1`
368
+ #
369
+ # @param [String] compartment_id The OCID of the compartment.
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
372
+ #
373
+ # Example: `500`
374
+ #
375
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
376
+ #
377
+ # @return [Response] A Response object with data of type Array<OCI::Core::Models::BootVolume>
378
+ def list_boot_volumes(availability_domain, compartment_id, opts = {})
379
+ logger.debug "Calling operation BlockstorageClient#list_boot_volumes." if logger
380
+
381
+ fail "Missing the required parameter 'availability_domain' when calling list_boot_volumes." if availability_domain.nil?
382
+ fail "Missing the required parameter 'compartment_id' when calling list_boot_volumes." if compartment_id.nil?
383
+
384
+ path = "/bootVolumes"
385
+
386
+ # Query Params
387
+ query_params = {}
388
+ query_params[:'availabilityDomain'] = availability_domain
389
+ query_params[:'compartmentId'] = compartment_id
390
+ query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
391
+ query_params[:'page'] = opts[:'page'] if opts[:'page']
392
+
393
+ # Header Params
394
+ header_params = {}
395
+ header_params['accept'] = 'application/json'
396
+ header_params['content-type'] = 'application/json'
397
+
398
+ post_body = nil
399
+
400
+ return @api_client.call_api(
401
+ :GET,
402
+ path,
403
+ endpoint,
404
+ :header_params => header_params,
405
+ :query_params => query_params,
406
+ :body => post_body,
407
+ :return_type => 'Array<OCI::Core::Models::BootVolume>')
408
+ end
409
+
293
410
  # Lists the volume backups in the specified compartment. You can filter the results by volume.
294
411
  #
295
412
  # @param [String] compartment_id The OCID of the compartment.
@@ -447,6 +564,44 @@ module OCI
447
564
  :return_type => 'Array<OCI::Core::Models::Volume>')
448
565
  end
449
566
 
567
+ # Updates the specified boot volume's display name.
568
+ # @param [String] boot_volume_id The OCID of the boot volume.
569
+ # @param [UpdateBootVolumeDetails] update_boot_volume_details Update boot volume's display name.
570
+ # @param [Hash] opts the optional parameters
571
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
572
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
573
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
574
+ #
575
+ # @return [Response] A Response object with data of type OCI::Core::Models::BootVolume
576
+ def update_boot_volume(boot_volume_id, update_boot_volume_details, opts = {})
577
+ logger.debug "Calling operation BlockstorageClient#update_boot_volume." if logger
578
+
579
+ fail "Missing the required parameter 'boot_volume_id' when calling update_boot_volume." if boot_volume_id.nil?
580
+ fail "Missing the required parameter 'update_boot_volume_details' when calling update_boot_volume." if update_boot_volume_details.nil?
581
+
582
+ path = "/bootVolumes/{bootVolumeId}".sub('{bootVolumeId}', boot_volume_id.to_s)
583
+
584
+ # Query Params
585
+ query_params = {}
586
+
587
+ # Header Params
588
+ header_params = {}
589
+ header_params['accept'] = 'application/json'
590
+ header_params['content-type'] = 'application/json'
591
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
592
+
593
+ post_body = @api_client.object_to_http_body(update_boot_volume_details)
594
+
595
+ return @api_client.call_api(
596
+ :PUT,
597
+ path,
598
+ endpoint,
599
+ :header_params => header_params,
600
+ :query_params => query_params,
601
+ :body => post_body,
602
+ :return_type => 'OCI::Core::Models::BootVolume')
603
+ end
604
+
450
605
  # Updates the specified volume's display name.
451
606
  # Avoid entering confidential information.
452
607
  #
@@ -58,6 +58,45 @@ module OCI
58
58
  end
59
59
 
60
60
 
61
+ # Attaches the specified boot volume to the specified instance.
62
+ #
63
+ # @param [AttachBootVolumeDetails] attach_boot_volume_details Attach boot volume request
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
66
+ # server error without risk of executing that same action again. Retry tokens expire after 24
67
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
68
+ # has been deleted and purged from the system, then a retry of the original creation request
69
+ # may be rejected).
70
+ #
71
+ # @return [Response] A Response object with data of type OCI::Core::Models::BootVolumeAttachment
72
+ def attach_boot_volume(attach_boot_volume_details, opts = {})
73
+ logger.debug "Calling operation ComputeClient#attach_boot_volume." if logger
74
+
75
+ fail "Missing the required parameter 'attach_boot_volume_details' when calling attach_boot_volume." if attach_boot_volume_details.nil?
76
+
77
+ path = "/bootVolumeAttachments/"
78
+
79
+ # Query Params
80
+ query_params = {}
81
+
82
+ # Header Params
83
+ header_params = {}
84
+ header_params['accept'] = 'application/json'
85
+ header_params['content-type'] = 'application/json'
86
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
87
+
88
+ post_body = @api_client.object_to_http_body(attach_boot_volume_details)
89
+
90
+ return @api_client.call_api(
91
+ :POST,
92
+ path,
93
+ endpoint,
94
+ :header_params => header_params,
95
+ :query_params => query_params,
96
+ :body => post_body,
97
+ :return_type => 'OCI::Core::Models::BootVolumeAttachment')
98
+ end
99
+
61
100
  # Creates a secondary VNIC and attaches it to the specified instance.
62
101
  # For more information about secondary VNICs, see
63
102
  # [Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
@@ -254,13 +293,11 @@ module OCI
254
293
  :return_type => 'OCI::Core::Models::Image')
255
294
  end
256
295
 
257
- # Creates a new serial console connection to the specified instance.
258
- # Once the serial console connection has been created and is available,
259
- # you connect to the serial console using an SSH client.
296
+ # Creates a new console connection to the specified instance.
297
+ # Once the console connection has been created and is available,
298
+ # you connect to the console using SSH.
260
299
  #
261
- # The default number of enabled serial console connections per tenancy is 10.
262
- #
263
- # For more information about serial console access, see [Accessing the Serial Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
300
+ # For more information about console access, see [Accessing the Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
264
301
  #
265
302
  # @param [CreateInstanceConsoleConnectionDetails] create_instance_console_connection_details Request object for creating an InstanceConsoleConnection
266
303
  # @param [Hash] opts the optional parameters
@@ -276,7 +313,7 @@ module OCI
276
313
 
277
314
  fail "Missing the required parameter 'create_instance_console_connection_details' when calling create_instance_console_connection." if create_instance_console_connection_details.nil?
278
315
 
279
- path = "/instanceConsoleConnections/"
316
+ path = "/instanceConsoleConnections"
280
317
 
281
318
  # Query Params
282
319
  query_params = {}
@@ -369,7 +406,7 @@ module OCI
369
406
  :body => post_body)
370
407
  end
371
408
 
372
- # Deletes the specified serial console connection.
409
+ # Deletes the specified instance console connection.
373
410
  # @param [String] instance_console_connection_id The OCID of the intance console connection
374
411
  # @param [Hash] opts the optional parameters
375
412
  # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -404,6 +441,45 @@ module OCI
404
441
  :body => post_body)
405
442
  end
406
443
 
444
+ # Detaches a boot volume from an instance. You must specify the OCID of the boot volume attachment.
445
+ #
446
+ # This is an asynchronous operation. The attachment's `lifecycleState` will change to DETACHING temporarily
447
+ # until the attachment is completely removed.
448
+ #
449
+ # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
450
+ # @param [Hash] opts the optional parameters
451
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
452
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
453
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
454
+ #
455
+ # @return [Response] A Response object with data of type nil
456
+ def detach_boot_volume(boot_volume_attachment_id, opts = {})
457
+ logger.debug "Calling operation ComputeClient#detach_boot_volume." if logger
458
+
459
+ fail "Missing the required parameter 'boot_volume_attachment_id' when calling detach_boot_volume." if boot_volume_attachment_id.nil?
460
+
461
+ path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
462
+
463
+ # Query Params
464
+ query_params = {}
465
+
466
+ # Header Params
467
+ header_params = {}
468
+ header_params['accept'] = 'application/json'
469
+ header_params['content-type'] = 'application/json'
470
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
471
+
472
+ post_body = nil
473
+
474
+ return @api_client.call_api(
475
+ :DELETE,
476
+ path,
477
+ endpoint,
478
+ :header_params => header_params,
479
+ :query_params => query_params,
480
+ :body => post_body)
481
+ end
482
+
407
483
  # Detaches and deletes the specified secondary VNIC.
408
484
  # This operation cannot be used on the instance's primary VNIC.
409
485
  # When you terminate an instance, all attached VNICs (primary
@@ -543,6 +619,37 @@ module OCI
543
619
  :return_type => 'OCI::Core::Models::Image')
544
620
  end
545
621
 
622
+ # Gets information about the specified boot volume attachment.
623
+ # @param [String] boot_volume_attachment_id The OCID of the boot volume attachment.
624
+ # @param [Hash] opts the optional parameters
625
+ # @return [Response] A Response object with data of type OCI::Core::Models::BootVolumeAttachment
626
+ def get_boot_volume_attachment(boot_volume_attachment_id, opts = {})
627
+ logger.debug "Calling operation ComputeClient#get_boot_volume_attachment." if logger
628
+
629
+ fail "Missing the required parameter 'boot_volume_attachment_id' when calling get_boot_volume_attachment." if boot_volume_attachment_id.nil?
630
+
631
+ path = "/bootVolumeAttachments/{bootVolumeAttachmentId}".sub('{bootVolumeAttachmentId}', boot_volume_attachment_id.to_s)
632
+
633
+ # Query Params
634
+ query_params = {}
635
+
636
+ # Header Params
637
+ header_params = {}
638
+ header_params['accept'] = 'application/json'
639
+ header_params['content-type'] = 'application/json'
640
+
641
+ post_body = nil
642
+
643
+ return @api_client.call_api(
644
+ :GET,
645
+ path,
646
+ endpoint,
647
+ :header_params => header_params,
648
+ :query_params => query_params,
649
+ :body => post_body,
650
+ :return_type => 'OCI::Core::Models::BootVolumeAttachment')
651
+ end
652
+
546
653
  # Shows the metadata for the specified console history.
547
654
  # See {#capture_console_history capture_console_history}
548
655
  # for details about using the console history operations.
@@ -677,7 +784,7 @@ module OCI
677
784
  :return_type => 'OCI::Core::Models::Instance')
678
785
  end
679
786
 
680
- # Gets the specified serial console connection's information.
787
+ # Gets the specified instance console connection's information.
681
788
  # @param [String] instance_console_connection_id The OCID of the intance console connection
682
789
  # @param [Hash] opts the optional parameters
683
790
  # @return [Response] A Response object with data of type OCI::Core::Models::InstanceConsoleConnection
@@ -937,6 +1044,58 @@ module OCI
937
1044
  :return_type => 'OCI::Core::Models::Instance')
938
1045
  end
939
1046
 
1047
+ # Lists the boot volume attachments in the specified compartment. You can filter the
1048
+ # list by specifying an instance OCID, boot volume OCID, or both.
1049
+ #
1050
+ # @param [String] availability_domain The name of the Availability Domain.
1051
+ #
1052
+ # Example: `Uocm:PHX-AD-1`
1053
+ #
1054
+ # @param [String] compartment_id The OCID of the compartment.
1055
+ # @param [Hash] opts the optional parameters
1056
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
1057
+ #
1058
+ # Example: `500`
1059
+ #
1060
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1061
+ #
1062
+ # @option opts [String] :instance_id The OCID of the instance.
1063
+ # @option opts [String] :boot_volume_id The OCID of the boot volume.
1064
+ # @return [Response] A Response object with data of type Array<OCI::Core::Models::BootVolumeAttachment>
1065
+ def list_boot_volume_attachments(availability_domain, compartment_id, opts = {})
1066
+ logger.debug "Calling operation ComputeClient#list_boot_volume_attachments." if logger
1067
+
1068
+ fail "Missing the required parameter 'availability_domain' when calling list_boot_volume_attachments." if availability_domain.nil?
1069
+ fail "Missing the required parameter 'compartment_id' when calling list_boot_volume_attachments." if compartment_id.nil?
1070
+
1071
+ path = "/bootVolumeAttachments/"
1072
+
1073
+ # Query Params
1074
+ query_params = {}
1075
+ query_params[:'availabilityDomain'] = availability_domain
1076
+ query_params[:'compartmentId'] = compartment_id
1077
+ query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
1078
+ query_params[:'page'] = opts[:'page'] if opts[:'page']
1079
+ query_params[:'instanceId'] = opts[:'instance_id'] if opts[:'instance_id']
1080
+ query_params[:'bootVolumeId'] = opts[:'boot_volume_id'] if opts[:'boot_volume_id']
1081
+
1082
+ # Header Params
1083
+ header_params = {}
1084
+ header_params['accept'] = 'application/json'
1085
+ header_params['content-type'] = 'application/json'
1086
+
1087
+ post_body = nil
1088
+
1089
+ return @api_client.call_api(
1090
+ :GET,
1091
+ path,
1092
+ endpoint,
1093
+ :header_params => header_params,
1094
+ :query_params => query_params,
1095
+ :body => post_body,
1096
+ :return_type => 'Array<OCI::Core::Models::BootVolumeAttachment>')
1097
+ end
1098
+
940
1099
  # Lists the console history metadata for the specified compartment or instance.
941
1100
  #
942
1101
  # @param [String] compartment_id The OCID of the compartment.
@@ -1105,9 +1264,9 @@ module OCI
1105
1264
  :return_type => 'Array<OCI::Core::Models::Image>')
1106
1265
  end
1107
1266
 
1108
- # Lists the serial console connections for the specified compartment or instance.
1267
+ # Lists the console connections for the specified compartment or instance.
1109
1268
  #
1110
- # For more information about serial console access, see [Accessing the Serial Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
1269
+ # For more information about console access, see [Accessing the Instance Console](https://docs.us-phoenix-1.oraclecloud.com/Content/Compute/References/serialconsole.htm).
1111
1270
  #
1112
1271
  # @param [String] compartment_id The OCID of the compartment.
1113
1272
  # @param [Hash] opts the optional parameters
@@ -1124,7 +1283,7 @@ module OCI
1124
1283
 
1125
1284
  fail "Missing the required parameter 'compartment_id' when calling list_instance_console_connections." if compartment_id.nil?
1126
1285
 
1127
- path = "/instanceConsoleConnections/"
1286
+ path = "/instanceConsoleConnections"
1128
1287
 
1129
1288
  # Query Params
1130
1289
  query_params = {}
@@ -1389,6 +1548,9 @@ module OCI
1389
1548
  # Terminates the specified instance. Any attached VNICs and volumes are automatically detached
1390
1549
  # when the instance terminates.
1391
1550
  #
1551
+ # To preserve the boot volume associated with the instance, specify `true` for `PreserveBootVolumeQueryParam`.
1552
+ # To delete the boot volume when the instance is deleted, specify `false` or do not specify a value for `PreserveBootVolumeQueryParam`.
1553
+ #
1392
1554
  # This is an asynchronous operation. The instance's `lifecycleState` will change to TERMINATING temporarily
1393
1555
  # until the instance is completely removed.
1394
1556
  #
@@ -1398,6 +1560,7 @@ module OCI
1398
1560
  # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1399
1561
  # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1400
1562
  #
1563
+ # @option opts [BOOLEAN] :preserve_boot_volume Specifies whether to delete or preserve the boot volume when terminating an instance.
1401
1564
  # @return [Response] A Response object with data of type nil
1402
1565
  def terminate_instance(instance_id, opts = {})
1403
1566
  logger.debug "Calling operation ComputeClient#terminate_instance." if logger
@@ -1408,6 +1571,7 @@ module OCI
1408
1571
 
1409
1572
  # Query Params
1410
1573
  query_params = {}
1574
+ query_params[:'preserveBootVolume'] = opts[:'preserve_boot_volume'] if opts[:'preserve_boot_volume']
1411
1575
 
1412
1576
  # Header Params
1413
1577
  header_params = {}