oci 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/lib/oci.rb +2 -1
  4. data/lib/oci/audit/audit.rb +19 -0
  5. data/lib/oci/audit/audit_client.rb +176 -0
  6. data/lib/oci/audit/models/audit_event.rb +307 -0
  7. data/lib/oci/audit/models/configuration.rb +120 -0
  8. data/lib/oci/audit/models/update_configuration_details.rb +120 -0
  9. data/lib/oci/audit/util.rb +1 -0
  10. data/lib/oci/core/blockstorage_client.rb +69 -1
  11. data/lib/oci/core/compute_client.rb +106 -16
  12. data/lib/oci/core/core.rb +3 -0
  13. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +2 -2
  14. data/lib/oci/core/models/attach_vnic_details.rb +2 -2
  15. data/lib/oci/core/models/attach_volume_details.rb +2 -2
  16. data/lib/oci/core/models/capture_console_history_details.rb +2 -2
  17. data/lib/oci/core/models/console_history.rb +2 -2
  18. data/lib/oci/core/models/cpe.rb +2 -2
  19. data/lib/oci/core/models/create_cpe_details.rb +2 -2
  20. data/lib/oci/core/models/create_cross_connect_details.rb +2 -2
  21. data/lib/oci/core/models/create_cross_connect_group_details.rb +2 -2
  22. data/lib/oci/core/models/create_dhcp_details.rb +2 -2
  23. data/lib/oci/core/models/create_drg_attachment_details.rb +2 -2
  24. data/lib/oci/core/models/create_drg_details.rb +2 -2
  25. data/lib/oci/core/models/create_image_details.rb +2 -2
  26. data/lib/oci/core/models/create_instance_console_connection_details.rb +2 -2
  27. data/lib/oci/core/models/create_internet_gateway_details.rb +2 -2
  28. data/lib/oci/core/models/create_ip_sec_connection_details.rb +2 -2
  29. data/lib/oci/core/models/create_private_ip_details.rb +2 -2
  30. data/lib/oci/core/models/create_route_table_details.rb +2 -2
  31. data/lib/oci/core/models/create_security_list_details.rb +2 -2
  32. data/lib/oci/core/models/create_subnet_details.rb +2 -2
  33. data/lib/oci/core/models/create_vcn_details.rb +2 -2
  34. data/lib/oci/core/models/create_virtual_circuit_details.rb +5 -6
  35. data/lib/oci/core/models/create_vnic_details.rb +2 -2
  36. data/lib/oci/core/models/create_volume_backup_details.rb +2 -2
  37. data/lib/oci/core/models/create_volume_details.rb +20 -4
  38. data/lib/oci/core/models/cross_connect.rb +2 -2
  39. data/lib/oci/core/models/cross_connect_group.rb +2 -2
  40. data/lib/oci/core/models/cross_connect_location.rb +2 -2
  41. data/lib/oci/core/models/cross_connect_mapping.rb +2 -2
  42. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +2 -2
  43. data/lib/oci/core/models/cross_connect_status.rb +2 -2
  44. data/lib/oci/core/models/dhcp_dns_option.rb +2 -2
  45. data/lib/oci/core/models/dhcp_option.rb +2 -2
  46. data/lib/oci/core/models/dhcp_options.rb +2 -2
  47. data/lib/oci/core/models/dhcp_search_domain_option.rb +2 -2
  48. data/lib/oci/core/models/drg.rb +2 -2
  49. data/lib/oci/core/models/drg_attachment.rb +2 -2
  50. data/lib/oci/core/models/egress_security_rule.rb +2 -2
  51. data/lib/oci/core/models/export_image_details.rb +3 -3
  52. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +5 -5
  53. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
  54. data/lib/oci/core/models/fast_connect_provider_service.rb +2 -2
  55. data/lib/oci/core/models/i_scsi_volume_attachment.rb +2 -2
  56. data/lib/oci/core/models/icmp_options.rb +2 -2
  57. data/lib/oci/core/models/image.rb +2 -2
  58. data/lib/oci/core/models/image_source_details.rb +3 -3
  59. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +5 -5
  60. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
  61. data/lib/oci/core/models/ingress_security_rule.rb +2 -2
  62. data/lib/oci/core/models/instance.rb +4 -4
  63. data/lib/oci/core/models/instance_console_connection.rb +2 -2
  64. data/lib/oci/core/models/instance_credentials.rb +2 -2
  65. data/lib/oci/core/models/internet_gateway.rb +2 -2
  66. data/lib/oci/core/models/ip_sec_connection.rb +2 -2
  67. data/lib/oci/core/models/ip_sec_connection_device_config.rb +2 -2
  68. data/lib/oci/core/models/ip_sec_connection_device_status.rb +2 -2
  69. data/lib/oci/core/models/launch_instance_details.rb +4 -4
  70. data/lib/oci/core/models/letter_of_authority.rb +2 -2
  71. data/lib/oci/core/models/port_range.rb +2 -2
  72. data/lib/oci/core/models/private_ip.rb +2 -2
  73. data/lib/oci/core/models/route_rule.rb +2 -2
  74. data/lib/oci/core/models/route_table.rb +2 -2
  75. data/lib/oci/core/models/security_list.rb +2 -2
  76. data/lib/oci/core/models/shape.rb +2 -2
  77. data/lib/oci/core/models/subnet.rb +2 -2
  78. data/lib/oci/core/models/tcp_options.rb +2 -2
  79. data/lib/oci/core/models/tunnel_config.rb +2 -2
  80. data/lib/oci/core/models/tunnel_status.rb +2 -2
  81. data/lib/oci/core/models/udp_options.rb +2 -2
  82. data/lib/oci/core/models/update_console_history_details.rb +2 -2
  83. data/lib/oci/core/models/update_cpe_details.rb +2 -2
  84. data/lib/oci/core/models/update_cross_connect_details.rb +2 -2
  85. data/lib/oci/core/models/update_cross_connect_group_details.rb +2 -2
  86. data/lib/oci/core/models/update_dhcp_details.rb +2 -2
  87. data/lib/oci/core/models/update_drg_attachment_details.rb +2 -2
  88. data/lib/oci/core/models/update_drg_details.rb +2 -2
  89. data/lib/oci/core/models/update_image_details.rb +2 -2
  90. data/lib/oci/core/models/update_instance_details.rb +2 -2
  91. data/lib/oci/core/models/update_internet_gateway_details.rb +2 -2
  92. data/lib/oci/core/models/update_ip_sec_connection_details.rb +2 -2
  93. data/lib/oci/core/models/update_private_ip_details.rb +2 -2
  94. data/lib/oci/core/models/update_route_table_details.rb +2 -2
  95. data/lib/oci/core/models/update_security_list_details.rb +2 -2
  96. data/lib/oci/core/models/update_subnet_details.rb +2 -2
  97. data/lib/oci/core/models/update_vcn_details.rb +2 -2
  98. data/lib/oci/core/models/update_virtual_circuit_details.rb +2 -3
  99. data/lib/oci/core/models/update_vnic_details.rb +2 -2
  100. data/lib/oci/core/models/update_volume_backup_details.rb +2 -2
  101. data/lib/oci/core/models/update_volume_details.rb +2 -2
  102. data/lib/oci/core/models/vcn.rb +2 -2
  103. data/lib/oci/core/models/virtual_circuit.rb +5 -5
  104. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +2 -2
  105. data/lib/oci/core/models/vnic.rb +2 -2
  106. data/lib/oci/core/models/vnic_attachment.rb +2 -2
  107. data/lib/oci/core/models/volume.rb +29 -5
  108. data/lib/oci/core/models/volume_attachment.rb +2 -2
  109. data/lib/oci/core/models/volume_backup.rb +2 -2
  110. data/lib/oci/core/models/volume_source_details.rb +131 -0
  111. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +128 -0
  112. data/lib/oci/core/models/volume_source_from_volume_details.rb +128 -0
  113. data/lib/oci/core/virtual_network_client.rb +312 -10
  114. data/lib/oci/database/database.rb +7 -0
  115. data/lib/oci/database/database_client.rb +228 -4
  116. data/lib/oci/database/models/backup.rb +253 -0
  117. data/lib/oci/database/models/backup_summary.rb +253 -0
  118. data/lib/oci/database/models/create_backup_details.rb +131 -0
  119. data/lib/oci/database/models/create_data_guard_association_details.rb +2 -2
  120. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +2 -2
  121. data/lib/oci/database/models/create_database_details.rb +13 -3
  122. data/lib/oci/database/models/create_db_home_details.rb +2 -2
  123. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -2
  124. data/lib/oci/database/models/data_guard_association.rb +2 -2
  125. data/lib/oci/database/models/data_guard_association_summary.rb +374 -0
  126. data/lib/oci/database/models/database.rb +15 -3
  127. data/lib/oci/database/models/database_summary.rb +15 -3
  128. data/lib/oci/database/models/db_backup_config.rb +120 -0
  129. data/lib/oci/database/models/db_home.rb +2 -2
  130. data/lib/oci/database/models/db_home_summary.rb +2 -2
  131. data/lib/oci/database/models/db_node.rb +2 -2
  132. data/lib/oci/database/models/db_node_summary.rb +2 -2
  133. data/lib/oci/database/models/db_system.rb +9 -9
  134. data/lib/oci/database/models/db_system_shape_summary.rb +2 -2
  135. data/lib/oci/database/models/db_system_summary.rb +9 -9
  136. data/lib/oci/database/models/db_version_summary.rb +2 -2
  137. data/lib/oci/database/models/failover_data_guard_association_details.rb +2 -2
  138. data/lib/oci/database/models/launch_db_system_details.rb +2 -2
  139. data/lib/oci/database/models/patch.rb +4 -2
  140. data/lib/oci/database/models/patch_details.rb +4 -3
  141. data/lib/oci/database/models/patch_history_entry.rb +3 -2
  142. data/lib/oci/database/models/patch_history_entry_summary.rb +3 -2
  143. data/lib/oci/database/models/patch_summary.rb +4 -2
  144. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +2 -2
  145. data/lib/oci/database/models/restore_database_details.rb +145 -0
  146. data/lib/oci/database/models/switchover_data_guard_association_details.rb +2 -2
  147. data/lib/oci/database/models/update_database_details.rb +119 -0
  148. data/lib/oci/database/models/update_db_home_details.rb +2 -2
  149. data/lib/oci/database/models/update_db_system_details.rb +9 -9
  150. data/lib/oci/identity/identity_client.rb +6 -5
  151. data/lib/oci/identity/models/add_user_to_group_details.rb +2 -2
  152. data/lib/oci/identity/models/api_key.rb +2 -2
  153. data/lib/oci/identity/models/availability_domain.rb +2 -2
  154. data/lib/oci/identity/models/compartment.rb +3 -3
  155. data/lib/oci/identity/models/create_api_key_details.rb +2 -2
  156. data/lib/oci/identity/models/create_compartment_details.rb +2 -2
  157. data/lib/oci/identity/models/create_customer_secret_key_details.rb +2 -2
  158. data/lib/oci/identity/models/create_group_details.rb +2 -2
  159. data/lib/oci/identity/models/create_identity_provider_details.rb +2 -2
  160. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +2 -2
  161. data/lib/oci/identity/models/create_policy_details.rb +2 -2
  162. data/lib/oci/identity/models/create_region_subscription_details.rb +2 -2
  163. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +2 -2
  164. data/lib/oci/identity/models/create_swift_password_details.rb +2 -2
  165. data/lib/oci/identity/models/create_user_details.rb +2 -2
  166. data/lib/oci/identity/models/customer_secret_key.rb +2 -2
  167. data/lib/oci/identity/models/customer_secret_key_summary.rb +2 -2
  168. data/lib/oci/identity/models/group.rb +2 -2
  169. data/lib/oci/identity/models/identity_provider.rb +4 -4
  170. data/lib/oci/identity/models/idp_group_mapping.rb +2 -2
  171. data/lib/oci/identity/models/policy.rb +2 -2
  172. data/lib/oci/identity/models/region.rb +4 -4
  173. data/lib/oci/identity/models/region_subscription.rb +4 -4
  174. data/lib/oci/identity/models/saml2_identity_provider.rb +2 -2
  175. data/lib/oci/identity/models/swift_password.rb +2 -2
  176. data/lib/oci/identity/models/tenancy.rb +2 -2
  177. data/lib/oci/identity/models/ui_password.rb +2 -2
  178. data/lib/oci/identity/models/update_compartment_details.rb +2 -2
  179. data/lib/oci/identity/models/update_customer_secret_key_details.rb +2 -2
  180. data/lib/oci/identity/models/update_group_details.rb +2 -2
  181. data/lib/oci/identity/models/update_identity_provider_details.rb +2 -2
  182. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +2 -2
  183. data/lib/oci/identity/models/update_policy_details.rb +2 -2
  184. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +2 -2
  185. data/lib/oci/identity/models/update_state_details.rb +2 -2
  186. data/lib/oci/identity/models/update_swift_password_details.rb +2 -2
  187. data/lib/oci/identity/models/update_user_details.rb +2 -2
  188. data/lib/oci/identity/models/user.rb +2 -2
  189. data/lib/oci/identity/models/user_group_membership.rb +2 -2
  190. data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
  191. data/lib/oci/load_balancer/models/backend.rb +2 -2
  192. data/lib/oci/load_balancer/models/backend_details.rb +2 -2
  193. data/lib/oci/load_balancer/models/backend_health.rb +2 -2
  194. data/lib/oci/load_balancer/models/backend_set.rb +2 -2
  195. data/lib/oci/load_balancer/models/backend_set_details.rb +2 -2
  196. data/lib/oci/load_balancer/models/backend_set_health.rb +2 -2
  197. data/lib/oci/load_balancer/models/certificate.rb +2 -2
  198. data/lib/oci/load_balancer/models/certificate_details.rb +2 -2
  199. data/lib/oci/load_balancer/models/create_backend_details.rb +2 -2
  200. data/lib/oci/load_balancer/models/create_backend_set_details.rb +2 -2
  201. data/lib/oci/load_balancer/models/create_certificate_details.rb +2 -2
  202. data/lib/oci/load_balancer/models/create_listener_details.rb +2 -2
  203. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +2 -2
  204. data/lib/oci/load_balancer/models/health_check_result.rb +2 -2
  205. data/lib/oci/load_balancer/models/health_checker.rb +2 -2
  206. data/lib/oci/load_balancer/models/health_checker_details.rb +2 -2
  207. data/lib/oci/load_balancer/models/ip_address.rb +2 -2
  208. data/lib/oci/load_balancer/models/listener.rb +2 -2
  209. data/lib/oci/load_balancer/models/listener_details.rb +2 -2
  210. data/lib/oci/load_balancer/models/load_balancer.rb +2 -2
  211. data/lib/oci/load_balancer/models/load_balancer_health.rb +2 -2
  212. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +2 -2
  213. data/lib/oci/load_balancer/models/load_balancer_policy.rb +2 -2
  214. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +2 -2
  215. data/lib/oci/load_balancer/models/load_balancer_shape.rb +2 -2
  216. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +2 -2
  217. data/lib/oci/load_balancer/models/ssl_configuration.rb +2 -2
  218. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +2 -2
  219. data/lib/oci/load_balancer/models/update_backend_details.rb +2 -2
  220. data/lib/oci/load_balancer/models/update_backend_set_details.rb +2 -2
  221. data/lib/oci/load_balancer/models/update_health_checker_details.rb +2 -2
  222. data/lib/oci/load_balancer/models/update_listener_details.rb +2 -2
  223. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +2 -2
  224. data/lib/oci/load_balancer/models/work_request.rb +2 -2
  225. data/lib/oci/load_balancer/models/work_request_error.rb +2 -2
  226. data/lib/oci/object_storage/models/bucket.rb +44 -12
  227. data/lib/oci/object_storage/models/bucket_summary.rb +6 -4
  228. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +2 -2
  229. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +2 -2
  230. data/lib/oci/object_storage/models/create_bucket_details.rb +41 -11
  231. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +9 -7
  232. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +6 -7
  233. data/lib/oci/object_storage/models/list_objects.rb +4 -3
  234. data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
  235. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +6 -6
  236. data/lib/oci/object_storage/models/namespace_metadata.rb +142 -0
  237. data/lib/oci/object_storage/models/object_summary.rb +6 -4
  238. data/lib/oci/object_storage/models/preauthenticated_request.rb +13 -11
  239. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +8 -10
  240. data/lib/oci/object_storage/models/rename_object_details.rb +164 -0
  241. data/lib/oci/object_storage/models/restore_objects_details.rb +120 -0
  242. data/lib/oci/object_storage/models/update_bucket_details.rb +20 -8
  243. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +131 -0
  244. data/lib/oci/object_storage/object_storage.rb +4 -0
  245. data/lib/oci/object_storage/object_storage_client.rb +206 -94
  246. data/lib/oci/regions.rb +2 -1
  247. data/lib/oci/version.rb +1 -1
  248. metadata +22 -2
@@ -85,8 +85,8 @@ module OCI
85
85
  def to_hash
86
86
  hash = {}
87
87
  self.class.attribute_map.each_pair do |attr, param|
88
- value = self.send(attr)
89
- next if value.nil?
88
+ value = send(attr)
89
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
90
90
  hash[param] = _to_hash(value)
91
91
  end
92
92
  hash
@@ -184,8 +184,8 @@ module OCI
184
184
  def to_hash
185
185
  hash = {}
186
186
  self.class.attribute_map.each_pair do |attr, param|
187
- value = self.send(attr)
188
- next if value.nil?
187
+ value = send(attr)
188
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
189
189
  hash[param] = _to_hash(value)
190
190
  end
191
191
  hash
@@ -90,8 +90,8 @@ module OCI
90
90
  def to_hash
91
91
  hash = {}
92
92
  self.class.attribute_map.each_pair do |attr, param|
93
- value = self.send(attr)
94
- next if value.nil?
93
+ value = send(attr)
94
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
95
95
  hash[param] = _to_hash(value)
96
96
  end
97
97
  hash
@@ -150,8 +150,8 @@ module OCI
150
150
  def to_hash
151
151
  hash = {}
152
152
  self.class.attribute_map.each_pair do |attr, param|
153
- value = self.send(attr)
154
- next if value.nil?
153
+ value = send(attr)
154
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
155
155
  hash[param] = _to_hash(value)
156
156
  end
157
157
  hash
@@ -159,8 +159,8 @@ module OCI
159
159
  def to_hash
160
160
  hash = {}
161
161
  self.class.attribute_map.each_pair do |attr, param|
162
- value = self.send(attr)
163
- next if value.nil?
162
+ value = send(attr)
163
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
164
164
  hash[param] = _to_hash(value)
165
165
  end
166
166
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -275,8 +275,8 @@ module OCI
275
275
  def to_hash
276
276
  hash = {}
277
277
  self.class.attribute_map.each_pair do |attr, param|
278
- value = self.send(attr)
279
- next if value.nil?
278
+ value = send(attr)
279
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
280
280
  hash[param] = _to_hash(value)
281
281
  end
282
282
  hash
@@ -87,8 +87,8 @@ module OCI
87
87
  def to_hash
88
88
  hash = {}
89
89
  self.class.attribute_map.each_pair do |attr, param|
90
- value = self.send(attr)
91
- next if value.nil?
90
+ value = send(attr)
91
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
92
92
  hash[param] = _to_hash(value)
93
93
  end
94
94
  hash
@@ -101,8 +101,8 @@ module OCI
101
101
  def to_hash
102
102
  hash = {}
103
103
  self.class.attribute_map.each_pair do |attr, param|
104
- value = self.send(attr)
105
- next if value.nil?
104
+ value = send(attr)
105
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
106
106
  hash[param] = _to_hash(value)
107
107
  end
108
108
  hash
@@ -126,8 +126,8 @@ module OCI
126
126
  def to_hash
127
127
  hash = {}
128
128
  self.class.attribute_map.each_pair do |attr, param|
129
- value = self.send(attr)
130
- next if value.nil?
129
+ value = send(attr)
130
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
131
131
  hash[param] = _to_hash(value)
132
132
  end
133
133
  hash
@@ -87,8 +87,8 @@ module OCI
87
87
  def to_hash
88
88
  hash = {}
89
89
  self.class.attribute_map.each_pair do |attr, param|
90
- value = self.send(attr)
91
- next if value.nil?
90
+ value = send(attr)
91
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
92
92
  hash[param] = _to_hash(value)
93
93
  end
94
94
  hash
@@ -75,8 +75,8 @@ module OCI
75
75
  def to_hash
76
76
  hash = {}
77
77
  self.class.attribute_map.each_pair do |attr, param|
78
- value = self.send(attr)
79
- next if value.nil?
78
+ value = send(attr)
79
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
80
80
  hash[param] = _to_hash(value)
81
81
  end
82
82
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -90,8 +90,8 @@ module OCI
90
90
  def to_hash
91
91
  hash = {}
92
92
  self.class.attribute_map.each_pair do |attr, param|
93
- value = self.send(attr)
94
- next if value.nil?
93
+ value = send(attr)
94
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
95
95
  hash[param] = _to_hash(value)
96
96
  end
97
97
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -84,8 +84,8 @@ module OCI
84
84
  def to_hash
85
85
  hash = {}
86
86
  self.class.attribute_map.each_pair do |attr, param|
87
- value = self.send(attr)
88
- next if value.nil?
87
+ value = send(attr)
88
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
89
89
  hash[param] = _to_hash(value)
90
90
  end
91
91
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -78,8 +78,8 @@ module OCI
78
78
  def to_hash
79
79
  hash = {}
80
80
  self.class.attribute_map.each_pair do |attr, param|
81
- value = self.send(attr)
82
- next if value.nil?
81
+ value = send(attr)
82
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
83
83
  hash[param] = _to_hash(value)
84
84
  end
85
85
  hash
@@ -78,8 +78,8 @@ module OCI
78
78
  def to_hash
79
79
  hash = {}
80
80
  self.class.attribute_map.each_pair do |attr, param|
81
- value = self.send(attr)
82
- next if value.nil?
81
+ value = send(attr)
82
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
83
83
  hash[param] = _to_hash(value)
84
84
  end
85
85
  hash
@@ -85,8 +85,8 @@ module OCI
85
85
  def to_hash
86
86
  hash = {}
87
87
  self.class.attribute_map.each_pair do |attr, param|
88
- value = self.send(attr)
89
- next if value.nil?
88
+ value = send(attr)
89
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
90
90
  hash[param] = _to_hash(value)
91
91
  end
92
92
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -107,8 +107,8 @@ module OCI
107
107
  def to_hash
108
108
  hash = {}
109
109
  self.class.attribute_map.each_pair do |attr, param|
110
- value = self.send(attr)
111
- next if value.nil?
110
+ value = send(attr)
111
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
112
112
  hash[param] = _to_hash(value)
113
113
  end
114
114
  hash
@@ -85,8 +85,8 @@ module OCI
85
85
  def to_hash
86
86
  hash = {}
87
87
  self.class.attribute_map.each_pair do |attr, param|
88
- value = self.send(attr)
89
- next if value.nil?
88
+ value = send(attr)
89
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
90
90
  hash[param] = _to_hash(value)
91
91
  end
92
92
  hash
@@ -94,8 +94,8 @@ module OCI
94
94
  def to_hash
95
95
  hash = {}
96
96
  self.class.attribute_map.each_pair do |attr, param|
97
- value = self.send(attr)
98
- next if value.nil?
97
+ value = send(attr)
98
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
99
99
  hash[param] = _to_hash(value)
100
100
  end
101
101
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -11,7 +11,6 @@ module OCI
11
11
  # The provisioned data rate of the connection. To get a list of the
12
12
  # available bandwidth levels (that is, shapes), see
13
13
  # {#list_virtual_circuit_bandwidth_shapes list_virtual_circuit_bandwidth_shapes}.
14
- #
15
14
  # To be updated only by the customer who owns the virtual circuit.
16
15
  #
17
16
  # @return [String]
@@ -182,8 +181,8 @@ module OCI
182
181
  def to_hash
183
182
  hash = {}
184
183
  self.class.attribute_map.each_pair do |attr, param|
185
- value = self.send(attr)
186
- next if value.nil?
184
+ value = send(attr)
185
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
187
186
  hash[param] = _to_hash(value)
188
187
  end
189
188
  hash
@@ -111,8 +111,8 @@ module OCI
111
111
  def to_hash
112
112
  hash = {}
113
113
  self.class.attribute_map.each_pair do |attr, param|
114
- value = self.send(attr)
115
- next if value.nil?
114
+ value = send(attr)
115
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
116
116
  hash[param] = _to_hash(value)
117
117
  end
118
118
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -76,8 +76,8 @@ module OCI
76
76
  def to_hash
77
77
  hash = {}
78
78
  self.class.attribute_map.each_pair do |attr, param|
79
- value = self.send(attr)
80
- next if value.nil?
79
+ value = send(attr)
80
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
81
81
  hash[param] = _to_hash(value)
82
82
  end
83
83
  hash
@@ -210,8 +210,8 @@ module OCI
210
210
  def to_hash
211
211
  hash = {}
212
212
  self.class.attribute_map.each_pair do |attr, param|
213
- value = self.send(attr)
214
- next if value.nil?
213
+ value = send(attr)
214
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
215
215
  hash[param] = _to_hash(value)
216
216
  end
217
217
  hash
@@ -85,12 +85,12 @@ module OCI
85
85
  # @return [Integer]
86
86
  attr_accessor :oracle_bgp_asn
87
87
 
88
- # The name of the provider (if the customer is connecting via a provider).
88
+ # The name of the provider (if you're connecting via a provider).
89
89
  #
90
90
  # @return [String]
91
91
  attr_accessor :provider_name
92
92
 
93
- # The name of the service offered by the provider (if the customer is connecting via a provider).
93
+ # The name of the service offered by the provider.
94
94
  #
95
95
  # @return [String]
96
96
  attr_accessor :provider_service_name
@@ -110,7 +110,7 @@ module OCI
110
110
  # @return [String]
111
111
  attr_accessor :reference_comment
112
112
 
113
- # The Oracle Bare Metal Cloud Services region where this virtual
113
+ # The Oracle Cloud Infrastructure region where this virtual
114
114
  # circuit is located.
115
115
  #
116
116
  # @return [String]
@@ -317,8 +317,8 @@ module OCI
317
317
  def to_hash
318
318
  hash = {}
319
319
  self.class.attribute_map.each_pair do |attr, param|
320
- value = self.send(attr)
321
- next if value.nil?
320
+ value = send(attr)
321
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
322
322
  hash[param] = _to_hash(value)
323
323
  end
324
324
  hash
@@ -89,8 +89,8 @@ module OCI
89
89
  def to_hash
90
90
  hash = {}
91
91
  self.class.attribute_map.each_pair do |attr, param|
92
- value = self.send(attr)
93
- next if value.nil?
92
+ value = send(attr)
93
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
94
94
  hash[param] = _to_hash(value)
95
95
  end
96
96
  hash
@@ -234,8 +234,8 @@ module OCI
234
234
  def to_hash
235
235
  hash = {}
236
236
  self.class.attribute_map.each_pair do |attr, param|
237
- value = self.send(attr)
238
- next if value.nil?
237
+ value = send(attr)
238
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
239
239
  hash[param] = _to_hash(value)
240
240
  end
241
241
  hash