oci 2.0.2 → 2.0.3

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 (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
@@ -55,10 +55,10 @@ module OCI
55
55
  # check to ensure the input is an array given that the the attribute
56
56
  # is documented as an array but the input is not
57
57
  if attributes[self.class.attribute_map[key]].is_a?(Array)
58
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
58
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
59
59
  end
60
60
  elsif !attributes[self.class.attribute_map[key]].nil?
61
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
61
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
62
62
  end # or else data not found in attributes(hash), not an issue as the data can be optional
63
63
  end
64
64
 
@@ -76,7 +76,7 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = send(attr)
79
+ value = public_send(attr)
80
80
  next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
@@ -189,10 +189,10 @@ module OCI
189
189
  # check to ensure the input is an array given that the the attribute
190
190
  # is documented as an array but the input is not
191
191
  if attributes[self.class.attribute_map[key]].is_a?(Array)
192
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
192
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
193
193
  end
194
194
  elsif !attributes[self.class.attribute_map[key]].nil?
195
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
195
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
196
196
  end # or else data not found in attributes(hash), not an issue as the data can be optional
197
197
  end
198
198
 
@@ -210,7 +210,7 @@ module OCI
210
210
  def to_hash
211
211
  hash = {}
212
212
  self.class.attribute_map.each_pair do |attr, param|
213
- value = send(attr)
213
+ value = public_send(attr)
214
214
  next if value.nil? && !instance_variable_defined?("@#{attr}")
215
215
  hash[param] = _to_hash(value)
216
216
  end
@@ -296,10 +296,10 @@ module OCI
296
296
  # check to ensure the input is an array given that the the attribute
297
297
  # is documented as an array but the input is not
298
298
  if attributes[self.class.attribute_map[key]].is_a?(Array)
299
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
299
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
300
300
  end
301
301
  elsif !attributes[self.class.attribute_map[key]].nil?
302
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
302
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
303
303
  end # or else data not found in attributes(hash), not an issue as the data can be optional
304
304
  end
305
305
 
@@ -317,7 +317,7 @@ module OCI
317
317
  def to_hash
318
318
  hash = {}
319
319
  self.class.attribute_map.each_pair do |attr, param|
320
- value = send(attr)
320
+ value = public_send(attr)
321
321
  next if value.nil? && !instance_variable_defined?("@#{attr}")
322
322
  hash[param] = _to_hash(value)
323
323
  end
@@ -68,10 +68,10 @@ module OCI
68
68
  # check to ensure the input is an array given that the the attribute
69
69
  # is documented as an array but the input is not
70
70
  if attributes[self.class.attribute_map[key]].is_a?(Array)
71
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
71
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
72
72
  end
73
73
  elsif !attributes[self.class.attribute_map[key]].nil?
74
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
74
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
75
75
  end # or else data not found in attributes(hash), not an issue as the data can be optional
76
76
  end
77
77
 
@@ -89,7 +89,7 @@ module OCI
89
89
  def to_hash
90
90
  hash = {}
91
91
  self.class.attribute_map.each_pair do |attr, param|
92
- value = send(attr)
92
+ value = public_send(attr)
93
93
  next if value.nil? && !instance_variable_defined?("@#{attr}")
94
94
  hash[param] = _to_hash(value)
95
95
  end
@@ -213,10 +213,10 @@ module OCI
213
213
  # check to ensure the input is an array given that the the attribute
214
214
  # is documented as an array but the input is not
215
215
  if attributes[self.class.attribute_map[key]].is_a?(Array)
216
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
216
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
217
217
  end
218
218
  elsif !attributes[self.class.attribute_map[key]].nil?
219
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
219
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
220
220
  end # or else data not found in attributes(hash), not an issue as the data can be optional
221
221
  end
222
222
 
@@ -234,7 +234,7 @@ module OCI
234
234
  def to_hash
235
235
  hash = {}
236
236
  self.class.attribute_map.each_pair do |attr, param|
237
- value = send(attr)
237
+ value = public_send(attr)
238
238
  next if value.nil? && !instance_variable_defined?("@#{attr}")
239
239
  hash[param] = _to_hash(value)
240
240
  end
@@ -42,6 +42,15 @@ module OCI
42
42
  # @return [String]
43
43
  attr_accessor :lifecycle_state
44
44
 
45
+ # Which physical network interface card (NIC) the VNIC uses.
46
+ # Certain bare metal instance shapes have two active physical NICs (0 and 1). If
47
+ # you add a secondary VNIC to one of these instances, you can specify which NIC
48
+ # the VNIC will use. For more information, see
49
+ # [Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
50
+ #
51
+ # @return [Integer]
52
+ attr_accessor :nic_index
53
+
45
54
  # The OCID of the VNIC's subnet.
46
55
  # @return [String]
47
56
  attr_accessor :subnet_id
@@ -98,6 +107,10 @@ module OCI
98
107
  self.lifecycle_state = attributes[:'lifecycleState']
99
108
  end
100
109
 
110
+ if attributes[:'nicIndex']
111
+ self.nic_index = attributes[:'nicIndex']
112
+ end
113
+
101
114
  if attributes[:'subnetId']
102
115
  self.subnet_id = attributes[:'subnetId']
103
116
  end
@@ -137,6 +150,7 @@ module OCI
137
150
  id == other_object.id &&
138
151
  instance_id == other_object.instance_id &&
139
152
  lifecycle_state == other_object.lifecycle_state &&
153
+ nic_index == other_object.nic_index &&
140
154
  subnet_id == other_object.subnet_id &&
141
155
  time_created == other_object.time_created &&
142
156
  vlan_tag == other_object.vlan_tag &&
@@ -152,7 +166,7 @@ module OCI
152
166
  # Calculates hash code according to all attributes.
153
167
  # @return [Fixnum] Hash code
154
168
  def hash
155
- [availability_domain, compartment_id, display_name, id, instance_id, lifecycle_state, subnet_id, time_created, vlan_tag, vnic_id].hash
169
+ [availability_domain, compartment_id, display_name, id, instance_id, lifecycle_state, nic_index, subnet_id, time_created, vlan_tag, vnic_id].hash
156
170
  end
157
171
 
158
172
  # Builds the object from hash
@@ -165,10 +179,10 @@ module OCI
165
179
  # check to ensure the input is an array given that the the attribute
166
180
  # is documented as an array but the input is not
167
181
  if attributes[self.class.attribute_map[key]].is_a?(Array)
168
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
182
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
169
183
  end
170
184
  elsif !attributes[self.class.attribute_map[key]].nil?
171
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
185
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
172
186
  end # or else data not found in attributes(hash), not an issue as the data can be optional
173
187
  end
174
188
 
@@ -186,7 +200,7 @@ module OCI
186
200
  def to_hash
187
201
  hash = {}
188
202
  self.class.attribute_map.each_pair do |attr, param|
189
- value = send(attr)
203
+ value = public_send(attr)
190
204
  next if value.nil? && !instance_variable_defined?("@#{attr}")
191
205
  hash[param] = _to_hash(value)
192
206
  end
@@ -224,6 +238,7 @@ module OCI
224
238
  :'id' => :'id',
225
239
  :'instance_id' => :'instanceId',
226
240
  :'lifecycle_state' => :'lifecycleState',
241
+ :'nic_index' => :'nicIndex',
227
242
  :'subnet_id' => :'subnetId',
228
243
  :'time_created' => :'timeCreated',
229
244
  :'vlan_tag' => :'vlanTag',
@@ -240,6 +255,7 @@ module OCI
240
255
  :'id' => :'String',
241
256
  :'instance_id' => :'String',
242
257
  :'lifecycle_state' => :'String',
258
+ :'nic_index' => :'Integer',
243
259
  :'subnet_id' => :'String',
244
260
  :'time_created' => :'DateTime',
245
261
  :'vlan_tag' => :'Integer',
@@ -160,10 +160,10 @@ module OCI
160
160
  # check to ensure the input is an array given that the the attribute
161
161
  # is documented as an array but the input is not
162
162
  if attributes[self.class.attribute_map[key]].is_a?(Array)
163
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
163
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
164
164
  end
165
165
  elsif !attributes[self.class.attribute_map[key]].nil?
166
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
166
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
167
167
  end # or else data not found in attributes(hash), not an issue as the data can be optional
168
168
  end
169
169
 
@@ -181,7 +181,7 @@ module OCI
181
181
  def to_hash
182
182
  hash = {}
183
183
  self.class.attribute_map.each_pair do |attr, param|
184
- value = send(attr)
184
+ value = public_send(attr)
185
185
  next if value.nil? && !instance_variable_defined?("@#{attr}")
186
186
  hash[param] = _to_hash(value)
187
187
  end
@@ -163,10 +163,10 @@ module OCI
163
163
  # check to ensure the input is an array given that the the attribute
164
164
  # is documented as an array but the input is not
165
165
  if attributes[self.class.attribute_map[key]].is_a?(Array)
166
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
166
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
167
167
  end
168
168
  elsif !attributes[self.class.attribute_map[key]].nil?
169
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
169
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
170
170
  end # or else data not found in attributes(hash), not an issue as the data can be optional
171
171
  end
172
172
 
@@ -184,7 +184,7 @@ module OCI
184
184
  def to_hash
185
185
  hash = {}
186
186
  self.class.attribute_map.each_pair do |attr, param|
187
- value = send(attr)
187
+ value = public_send(attr)
188
188
  next if value.nil? && !instance_variable_defined?("@#{attr}")
189
189
  hash[param] = _to_hash(value)
190
190
  end
@@ -175,10 +175,10 @@ module OCI
175
175
  # check to ensure the input is an array given that the the attribute
176
176
  # is documented as an array but the input is not
177
177
  if attributes[self.class.attribute_map[key]].is_a?(Array)
178
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
178
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
179
179
  end
180
180
  elsif !attributes[self.class.attribute_map[key]].nil?
181
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
181
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
182
182
  end # or else data not found in attributes(hash), not an issue as the data can be optional
183
183
  end
184
184
 
@@ -196,7 +196,7 @@ module OCI
196
196
  def to_hash
197
197
  hash = {}
198
198
  self.class.attribute_map.each_pair do |attr, param|
199
- value = send(attr)
199
+ value = public_send(attr)
200
200
  next if value.nil? && !instance_variable_defined?("@#{attr}")
201
201
  hash[param] = _to_hash(value)
202
202
  end
@@ -64,10 +64,10 @@ module OCI
64
64
  # check to ensure the input is an array given that the the attribute
65
65
  # is documented as an array but the input is not
66
66
  if attributes[self.class.attribute_map[key]].is_a?(Array)
67
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
67
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
68
68
  end
69
69
  elsif !attributes[self.class.attribute_map[key]].nil?
70
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
70
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
71
71
  end # or else data not found in attributes(hash), not an issue as the data can be optional
72
72
  end
73
73
 
@@ -85,7 +85,7 @@ module OCI
85
85
  def to_hash
86
86
  hash = {}
87
87
  self.class.attribute_map.each_pair do |attr, param|
88
- value = send(attr)
88
+ value = public_send(attr)
89
89
  next if value.nil? && !instance_variable_defined?("@#{attr}")
90
90
  hash[param] = _to_hash(value)
91
91
  end
@@ -59,10 +59,10 @@ module OCI
59
59
  # check to ensure the input is an array given that the the attribute
60
60
  # is documented as an array but the input is not
61
61
  if attributes[self.class.attribute_map[key]].is_a?(Array)
62
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
62
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
63
63
  end
64
64
  elsif !attributes[self.class.attribute_map[key]].nil?
65
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
65
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
66
66
  end # or else data not found in attributes(hash), not an issue as the data can be optional
67
67
  end
68
68
 
@@ -80,7 +80,7 @@ module OCI
80
80
  def to_hash
81
81
  hash = {}
82
82
  self.class.attribute_map.each_pair do |attr, param|
83
- value = send(attr)
83
+ value = public_send(attr)
84
84
  next if value.nil? && !instance_variable_defined?("@#{attr}")
85
85
  hash[param] = _to_hash(value)
86
86
  end
@@ -59,10 +59,10 @@ module OCI
59
59
  # check to ensure the input is an array given that the the attribute
60
60
  # is documented as an array but the input is not
61
61
  if attributes[self.class.attribute_map[key]].is_a?(Array)
62
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
62
+ self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
63
63
  end
64
64
  elsif !attributes[self.class.attribute_map[key]].nil?
65
- self.send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
65
+ self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
66
66
  end # or else data not found in attributes(hash), not an issue as the data can be optional
67
67
  end
68
68
 
@@ -80,7 +80,7 @@ module OCI
80
80
  def to_hash
81
81
  hash = {}
82
82
  self.class.attribute_map.each_pair do |attr, param|
83
- value = send(attr)
83
+ value = public_send(attr)
84
84
  next if value.nil? && !instance_variable_defined?("@#{attr}")
85
85
  hash[param] = _to_hash(value)
86
86
  end
@@ -58,6 +58,46 @@ module OCI
58
58
  end
59
59
 
60
60
 
61
+ # Connects this local peering gateway (LPG) to another one in the same region.
62
+ #
63
+ # This operation must be called by the VCN administrator who is designated as
64
+ # the *requestor* in the peering relationship. The *acceptor* must implement
65
+ # an Identity and Access Management (IAM) policy that gives the requestor permission
66
+ # to connect to LPGs in the acceptor's compartment. Without that permission, this
67
+ # operation will fail. For more information, see
68
+ # [VCN Peering](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/VCNpeering.htm).
69
+ #
70
+ # @param [String] local_peering_gateway_id The OCID of the local peering gateway.
71
+ # @param [ConnectLocalPeeringGatewaysDetails] connect_local_peering_gateways_details Details regarding the local peering gateway to connect.
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [Response] A Response object with data of type nil
74
+ def connect_local_peering_gateways(local_peering_gateway_id, connect_local_peering_gateways_details, opts = {})
75
+ logger.debug "Calling operation VirtualNetworkClient#connect_local_peering_gateways." if logger
76
+
77
+ fail "Missing the required parameter 'local_peering_gateway_id' when calling connect_local_peering_gateways." if local_peering_gateway_id.nil?
78
+ fail "Missing the required parameter 'connect_local_peering_gateways_details' when calling connect_local_peering_gateways." if connect_local_peering_gateways_details.nil?
79
+
80
+ path = "/localPeeringGateways/{localPeeringGatewayId}/actions/connect".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
81
+
82
+ # Query Params
83
+ query_params = {}
84
+
85
+ # Header Params
86
+ header_params = {}
87
+ header_params['accept'] = 'application/json'
88
+ header_params['content-type'] = 'application/json'
89
+
90
+ post_body = @api_client.object_to_http_body(connect_local_peering_gateways_details)
91
+
92
+ return @api_client.call_api(
93
+ :POST,
94
+ path,
95
+ endpoint,
96
+ :header_params => header_params,
97
+ :query_params => query_params,
98
+ :body => post_body)
99
+ end
100
+
61
101
  # Creates a new virtual Customer-Premises Equipment (CPE) object in the specified compartment. For
62
102
  # more information, see [IPSec VPNs](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPsec.htm).
63
103
  #
@@ -493,6 +533,45 @@ module OCI
493
533
  :return_type => 'OCI::Core::Models::IPSecConnection')
494
534
  end
495
535
 
536
+ # Creates a new local peering gateway (LPG) for the specified VCN.
537
+ #
538
+ # @param [CreateLocalPeeringGatewayDetails] create_local_peering_gateway_details Details for creating a new local peering gateway.
539
+ # @param [Hash] opts the optional parameters
540
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
541
+ # server error without risk of executing that same action again. Retry tokens expire after 24
542
+ # hours, but can be invalidated before then due to conflicting operations (for example, if a resource
543
+ # has been deleted and purged from the system, then a retry of the original creation request
544
+ # may be rejected).
545
+ #
546
+ # @return [Response] A Response object with data of type OCI::Core::Models::LocalPeeringGateway
547
+ def create_local_peering_gateway(create_local_peering_gateway_details, opts = {})
548
+ logger.debug "Calling operation VirtualNetworkClient#create_local_peering_gateway." if logger
549
+
550
+ fail "Missing the required parameter 'create_local_peering_gateway_details' when calling create_local_peering_gateway." if create_local_peering_gateway_details.nil?
551
+
552
+ path = "/localPeeringGateways"
553
+
554
+ # Query Params
555
+ query_params = {}
556
+
557
+ # Header Params
558
+ header_params = {}
559
+ header_params['accept'] = 'application/json'
560
+ header_params['content-type'] = 'application/json'
561
+ header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
562
+
563
+ post_body = @api_client.object_to_http_body(create_local_peering_gateway_details)
564
+
565
+ return @api_client.call_api(
566
+ :POST,
567
+ path,
568
+ endpoint,
569
+ :header_params => header_params,
570
+ :query_params => query_params,
571
+ :body => post_body,
572
+ :return_type => 'OCI::Core::Models::LocalPeeringGateway')
573
+ end
574
+
496
575
  # Creates a secondary private IP for the specified VNIC.
497
576
  # For more information about secondary private IPs, see
498
577
  # [IP Addresses](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingIPaddresses.htm).
@@ -1147,6 +1226,45 @@ module OCI
1147
1226
  :body => post_body)
1148
1227
  end
1149
1228
 
1229
+ # Deletes the specified local peering gateway (LPG).
1230
+ #
1231
+ # This is an asynchronous operation; the local peering gateway's `lifecycleState` changes to TERMINATING temporarily
1232
+ # until the local peering gateway is completely removed.
1233
+ #
1234
+ # @param [String] local_peering_gateway_id The OCID of the local peering gateway.
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
1237
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
1238
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
1239
+ #
1240
+ # @return [Response] A Response object with data of type nil
1241
+ def delete_local_peering_gateway(local_peering_gateway_id, opts = {})
1242
+ logger.debug "Calling operation VirtualNetworkClient#delete_local_peering_gateway." if logger
1243
+
1244
+ fail "Missing the required parameter 'local_peering_gateway_id' when calling delete_local_peering_gateway." if local_peering_gateway_id.nil?
1245
+
1246
+ path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
1247
+
1248
+ # Query Params
1249
+ query_params = {}
1250
+
1251
+ # Header Params
1252
+ header_params = {}
1253
+ header_params['accept'] = 'application/json'
1254
+ header_params['content-type'] = 'application/json'
1255
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
1256
+
1257
+ post_body = nil
1258
+
1259
+ return @api_client.call_api(
1260
+ :DELETE,
1261
+ path,
1262
+ endpoint,
1263
+ :header_params => header_params,
1264
+ :query_params => query_params,
1265
+ :body => post_body)
1266
+ end
1267
+
1150
1268
  # Unassigns and deletes the specified private IP. You must
1151
1269
  # specify the object's OCID. The private IP address is returned to
1152
1270
  # the subnet's pool of available addresses.
@@ -1768,6 +1886,37 @@ module OCI
1768
1886
  :return_type => 'OCI::Core::Models::IPSecConnectionDeviceStatus')
1769
1887
  end
1770
1888
 
1889
+ # Gets the specified local peering gateway's information.
1890
+ # @param [String] local_peering_gateway_id The OCID of the local peering gateway.
1891
+ # @param [Hash] opts the optional parameters
1892
+ # @return [Response] A Response object with data of type OCI::Core::Models::LocalPeeringGateway
1893
+ def get_local_peering_gateway(local_peering_gateway_id, opts = {})
1894
+ logger.debug "Calling operation VirtualNetworkClient#get_local_peering_gateway." if logger
1895
+
1896
+ fail "Missing the required parameter 'local_peering_gateway_id' when calling get_local_peering_gateway." if local_peering_gateway_id.nil?
1897
+
1898
+ path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
1899
+
1900
+ # Query Params
1901
+ query_params = {}
1902
+
1903
+ # Header Params
1904
+ header_params = {}
1905
+ header_params['accept'] = 'application/json'
1906
+ header_params['content-type'] = 'application/json'
1907
+
1908
+ post_body = nil
1909
+
1910
+ return @api_client.call_api(
1911
+ :GET,
1912
+ path,
1913
+ endpoint,
1914
+ :header_params => header_params,
1915
+ :query_params => query_params,
1916
+ :body => post_body,
1917
+ :return_type => 'OCI::Core::Models::LocalPeeringGateway')
1918
+ end
1919
+
1771
1920
  # Gets the specified private IP. You must specify the object's OCID.
1772
1921
  # Alternatively, you can get the object by using
1773
1922
  # {#list_private_ips list_private_ips}
@@ -2610,6 +2759,51 @@ module OCI
2610
2759
  :return_type => 'Array<OCI::Core::Models::IPSecConnection>')
2611
2760
  end
2612
2761
 
2762
+ # Lists the local peering gateways (LPGs) for the specified VCN and compartment
2763
+ # (the LPG's compartment).
2764
+ #
2765
+ # @param [String] compartment_id The OCID of the compartment.
2766
+ # @param [String] vcn_id The OCID of the VCN.
2767
+ # @param [Hash] opts the optional parameters
2768
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
2769
+ #
2770
+ # Example: `500`
2771
+ #
2772
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
2773
+ #
2774
+ # @return [Response] A Response object with data of type Array<OCI::Core::Models::LocalPeeringGateway>
2775
+ def list_local_peering_gateways(compartment_id, vcn_id, opts = {})
2776
+ logger.debug "Calling operation VirtualNetworkClient#list_local_peering_gateways." if logger
2777
+
2778
+ fail "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil?
2779
+ fail "Missing the required parameter 'vcn_id' when calling list_local_peering_gateways." if vcn_id.nil?
2780
+
2781
+ path = "/localPeeringGateways"
2782
+
2783
+ # Query Params
2784
+ query_params = {}
2785
+ query_params[:'compartmentId'] = compartment_id
2786
+ query_params[:'vcnId'] = vcn_id
2787
+ query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
2788
+ query_params[:'page'] = opts[:'page'] if opts[:'page']
2789
+
2790
+ # Header Params
2791
+ header_params = {}
2792
+ header_params['accept'] = 'application/json'
2793
+ header_params['content-type'] = 'application/json'
2794
+
2795
+ post_body = nil
2796
+
2797
+ return @api_client.call_api(
2798
+ :GET,
2799
+ path,
2800
+ endpoint,
2801
+ :header_params => header_params,
2802
+ :query_params => query_params,
2803
+ :body => post_body,
2804
+ :return_type => 'Array<OCI::Core::Models::LocalPeeringGateway>')
2805
+ end
2806
+
2613
2807
  # Lists the {PrivateIp} objects based
2614
2808
  # on one of these filters:
2615
2809
  #
@@ -3421,6 +3615,45 @@ module OCI
3421
3615
  :return_type => 'OCI::Core::Models::IPSecConnection')
3422
3616
  end
3423
3617
 
3618
+ # Updates the specified local peering gateway (LPG).
3619
+ #
3620
+ # @param [String] local_peering_gateway_id The OCID of the local peering gateway.
3621
+ # @param [UpdateLocalPeeringGatewayDetails] update_local_peering_gateway_details Details object for updating a local peering gateway.
3622
+ # @param [Hash] opts the optional parameters
3623
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
3624
+ # parameter to the value of the etag from a previous GET or POST response for that resource. The resource
3625
+ # will be updated or deleted only if the etag you provide matches the resource's current etag value.
3626
+ #
3627
+ # @return [Response] A Response object with data of type OCI::Core::Models::LocalPeeringGateway
3628
+ def update_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_details, opts = {})
3629
+ logger.debug "Calling operation VirtualNetworkClient#update_local_peering_gateway." if logger
3630
+
3631
+ fail "Missing the required parameter 'local_peering_gateway_id' when calling update_local_peering_gateway." if local_peering_gateway_id.nil?
3632
+ fail "Missing the required parameter 'update_local_peering_gateway_details' when calling update_local_peering_gateway." if update_local_peering_gateway_details.nil?
3633
+
3634
+ path = "/localPeeringGateways/{localPeeringGatewayId}".sub('{localPeeringGatewayId}', local_peering_gateway_id.to_s)
3635
+
3636
+ # Query Params
3637
+ query_params = {}
3638
+
3639
+ # Header Params
3640
+ header_params = {}
3641
+ header_params['accept'] = 'application/json'
3642
+ header_params['content-type'] = 'application/json'
3643
+ header_params[:'if-match'] = opts[:'if_match'] if opts[:'if_match']
3644
+
3645
+ post_body = @api_client.object_to_http_body(update_local_peering_gateway_details)
3646
+
3647
+ return @api_client.call_api(
3648
+ :PUT,
3649
+ path,
3650
+ endpoint,
3651
+ :header_params => header_params,
3652
+ :query_params => query_params,
3653
+ :body => post_body,
3654
+ :return_type => 'OCI::Core::Models::LocalPeeringGateway')
3655
+ end
3656
+
3424
3657
  # Updates the specified private IP. You must specify the object's OCID.
3425
3658
  # Use this operation if you want to:
3426
3659
  #