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
data/lib/oci/core/core.rb CHANGED
@@ -105,6 +105,9 @@ require 'oci/core/models/vnic_attachment'
105
105
  require 'oci/core/models/volume'
106
106
  require 'oci/core/models/volume_attachment'
107
107
  require 'oci/core/models/volume_backup'
108
+ require 'oci/core/models/volume_source_details'
109
+ require 'oci/core/models/volume_source_from_volume_backup_details'
110
+ require 'oci/core/models/volume_source_from_volume_details'
108
111
 
109
112
  # Require generated clients
110
113
  require 'oci/core/blockstorage_client'
@@ -83,8 +83,8 @@ module OCI
83
83
  def to_hash
84
84
  hash = {}
85
85
  self.class.attribute_map.each_pair do |attr, param|
86
- value = self.send(attr)
87
- next if value.nil?
86
+ value = send(attr)
87
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
88
88
  hash[param] = _to_hash(value)
89
89
  end
90
90
  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
@@ -113,8 +113,8 @@ module OCI
113
113
  def to_hash
114
114
  hash = {}
115
115
  self.class.attribute_map.each_pair do |attr, param|
116
- value = self.send(attr)
117
- next if value.nil?
116
+ value = send(attr)
117
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
118
118
  hash[param] = _to_hash(value)
119
119
  end
120
120
  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
@@ -155,8 +155,8 @@ module OCI
155
155
  def to_hash
156
156
  hash = {}
157
157
  self.class.attribute_map.each_pair do |attr, param|
158
- value = self.send(attr)
159
- next if value.nil?
158
+ value = send(attr)
159
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
160
160
  hash[param] = _to_hash(value)
161
161
  end
162
162
  hash
@@ -115,8 +115,8 @@ module OCI
115
115
  def to_hash
116
116
  hash = {}
117
117
  self.class.attribute_map.each_pair do |attr, param|
118
- value = self.send(attr)
119
- next if value.nil?
118
+ value = send(attr)
119
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
120
120
  hash[param] = _to_hash(value)
121
121
  end
122
122
  hash
@@ -95,8 +95,8 @@ module OCI
95
95
  def to_hash
96
96
  hash = {}
97
97
  self.class.attribute_map.each_pair do |attr, param|
98
- value = self.send(attr)
99
- next if value.nil?
98
+ value = send(attr)
99
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
100
100
  hash[param] = _to_hash(value)
101
101
  end
102
102
  hash
@@ -146,8 +146,8 @@ module OCI
146
146
  def to_hash
147
147
  hash = {}
148
148
  self.class.attribute_map.each_pair do |attr, param|
149
- value = self.send(attr)
150
- next if value.nil?
149
+ value = send(attr)
150
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
151
151
  hash[param] = _to_hash(value)
152
152
  end
153
153
  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
@@ -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
@@ -92,8 +92,8 @@ module OCI
92
92
  def to_hash
93
93
  hash = {}
94
94
  self.class.attribute_map.each_pair do |attr, param|
95
- value = self.send(attr)
96
- next if value.nil?
95
+ value = send(attr)
96
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
97
97
  hash[param] = _to_hash(value)
98
98
  end
99
99
  hash
@@ -83,8 +83,8 @@ module OCI
83
83
  def to_hash
84
84
  hash = {}
85
85
  self.class.attribute_map.each_pair do |attr, param|
86
- value = self.send(attr)
87
- next if value.nil?
86
+ value = send(attr)
87
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
88
88
  hash[param] = _to_hash(value)
89
89
  end
90
90
  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
@@ -83,8 +83,8 @@ module OCI
83
83
  def to_hash
84
84
  hash = {}
85
85
  self.class.attribute_map.each_pair do |attr, param|
86
- value = self.send(attr)
87
- next if value.nil?
86
+ value = send(attr)
87
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
88
88
  hash[param] = _to_hash(value)
89
89
  end
90
90
  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
@@ -114,8 +114,8 @@ module OCI
114
114
  def to_hash
115
115
  hash = {}
116
116
  self.class.attribute_map.each_pair do |attr, param|
117
- value = self.send(attr)
118
- next if value.nil?
117
+ value = send(attr)
118
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
119
119
  hash[param] = _to_hash(value)
120
120
  end
121
121
  hash
@@ -121,8 +121,8 @@ module OCI
121
121
  def to_hash
122
122
  hash = {}
123
123
  self.class.attribute_map.each_pair do |attr, param|
124
- value = self.send(attr)
125
- next if value.nil?
124
+ value = send(attr)
125
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
126
126
  hash[param] = _to_hash(value)
127
127
  end
128
128
  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
@@ -110,8 +110,8 @@ module OCI
110
110
  def to_hash
111
111
  hash = {}
112
112
  self.class.attribute_map.each_pair do |attr, param|
113
- value = self.send(attr)
114
- next if value.nil?
113
+ value = send(attr)
114
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
115
115
  hash[param] = _to_hash(value)
116
116
  end
117
117
  hash
@@ -193,8 +193,8 @@ module OCI
193
193
  def to_hash
194
194
  hash = {}
195
195
  self.class.attribute_map.each_pair do |attr, param|
196
- value = self.send(attr)
197
- next if value.nil?
196
+ value = send(attr)
197
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
198
198
  hash[param] = _to_hash(value)
199
199
  end
200
200
  hash
@@ -119,8 +119,8 @@ module OCI
119
119
  def to_hash
120
120
  hash = {}
121
121
  self.class.attribute_map.each_pair do |attr, param|
122
- value = self.send(attr)
123
- next if value.nil?
122
+ value = send(attr)
123
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
124
124
  hash[param] = _to_hash(value)
125
125
  end
126
126
  hash
@@ -53,16 +53,15 @@ module OCI
53
53
  # @return [String]
54
54
  attr_accessor :provider_name
55
55
 
56
- # The name of the service offered by the provider (if you're connecting
57
- # via a provider). To get a list of the available service offerings, see
56
+ # The name of the provider (if you're connecting via a provider).
57
+ # To get a list of the provider names, see
58
58
  # {#list_fast_connect_provider_services list_fast_connect_provider_services}.
59
59
  #
60
60
  # @return [String]
61
61
  attr_accessor :provider_service_name
62
62
 
63
- # The Oracle Bare Metal Cloud Services region where this virtual
63
+ # The Oracle Cloud Infrastructure region where this virtual
64
64
  # circuit is located.
65
- #
66
65
  # Example: `phx`
67
66
  #
68
67
  # @return [String]
@@ -196,8 +195,8 @@ module OCI
196
195
  def to_hash
197
196
  hash = {}
198
197
  self.class.attribute_map.each_pair do |attr, param|
199
- value = self.send(attr)
200
- next if value.nil?
198
+ value = send(attr)
199
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
201
200
  hash[param] = _to_hash(value)
202
201
  end
203
202
  hash
@@ -175,8 +175,8 @@ module OCI
175
175
  def to_hash
176
176
  hash = {}
177
177
  self.class.attribute_map.each_pair do |attr, param|
178
- value = self.send(attr)
179
- next if value.nil?
178
+ value = send(attr)
179
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
180
180
  hash[param] = _to_hash(value)
181
181
  end
182
182
  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
@@ -26,12 +26,21 @@ module OCI
26
26
  attr_accessor :size_in_gbs
27
27
 
28
28
  # The size of the volume in MBs. The value must be a multiple of 1024.
29
- # This field is deprecated. Please use sizeInGBs.
29
+ # This field is deprecated. Use sizeInGBs instead.
30
30
  #
31
31
  # @return [Integer]
32
32
  attr_accessor :size_in_mbs
33
33
 
34
+ # Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup.
35
+ # This is an optional field. If not specified or set to null, the new Block volume will be empty.
36
+ # When specified, the new Block volume will contain data from the source volume or backup.
37
+ #
38
+ # @return [OCI::Core::Models::VolumeSourceDetails]
39
+ attr_accessor :source_details
40
+
34
41
  # The OCID of the volume backup from which the data should be restored on the newly created volume.
42
+ # This field is deprecated. Use the sourceDetails field instead to specify the
43
+ # backup for the volume.
35
44
  #
36
45
  # @return [String]
37
46
  attr_accessor :volume_backup_id
@@ -65,6 +74,10 @@ module OCI
65
74
  self.size_in_mbs = attributes[:'sizeInMBs']
66
75
  end
67
76
 
77
+ if attributes[:'sourceDetails']
78
+ self.source_details = attributes[:'sourceDetails']
79
+ end
80
+
68
81
  if attributes[:'volumeBackupId']
69
82
  self.volume_backup_id = attributes[:'volumeBackupId']
70
83
  end
@@ -81,6 +94,7 @@ module OCI
81
94
  display_name == other_object.display_name &&
82
95
  size_in_gbs == other_object.size_in_gbs &&
83
96
  size_in_mbs == other_object.size_in_mbs &&
97
+ source_details == other_object.source_details &&
84
98
  volume_backup_id == other_object.volume_backup_id
85
99
  end
86
100
 
@@ -93,7 +107,7 @@ module OCI
93
107
  # Calculates hash code according to all attributes.
94
108
  # @return [Fixnum] Hash code
95
109
  def hash
96
- [availability_domain, compartment_id, display_name, size_in_gbs, size_in_mbs, volume_backup_id].hash
110
+ [availability_domain, compartment_id, display_name, size_in_gbs, size_in_mbs, source_details, volume_backup_id].hash
97
111
  end
98
112
 
99
113
  # Builds the object from hash
@@ -127,8 +141,8 @@ module OCI
127
141
  def to_hash
128
142
  hash = {}
129
143
  self.class.attribute_map.each_pair do |attr, param|
130
- value = self.send(attr)
131
- next if value.nil?
144
+ value = send(attr)
145
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
132
146
  hash[param] = _to_hash(value)
133
147
  end
134
148
  hash
@@ -164,6 +178,7 @@ module OCI
164
178
  :'display_name' => :'displayName',
165
179
  :'size_in_gbs' => :'sizeInGBs',
166
180
  :'size_in_mbs' => :'sizeInMBs',
181
+ :'source_details' => :'sourceDetails',
167
182
  :'volume_backup_id' => :'volumeBackupId'
168
183
  }
169
184
  end
@@ -176,6 +191,7 @@ module OCI
176
191
  :'display_name' => :'String',
177
192
  :'size_in_gbs' => :'Integer',
178
193
  :'size_in_mbs' => :'Integer',
194
+ :'source_details' => :'OCI::Core::Models::VolumeSourceDetails',
179
195
  :'volume_backup_id' => :'String'
180
196
  }
181
197
  end
@@ -173,8 +173,8 @@ module OCI
173
173
  def to_hash
174
174
  hash = {}
175
175
  self.class.attribute_map.each_pair do |attr, param|
176
- value = self.send(attr)
177
- next if value.nil?
176
+ value = send(attr)
177
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
178
178
  hash[param] = _to_hash(value)
179
179
  end
180
180
  hash
@@ -133,8 +133,8 @@ module OCI
133
133
  def to_hash
134
134
  hash = {}
135
135
  self.class.attribute_map.each_pair do |attr, param|
136
- value = self.send(attr)
137
- next if value.nil?
136
+ value = send(attr)
137
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
138
138
  hash[param] = _to_hash(value)
139
139
  end
140
140
  hash
@@ -86,8 +86,8 @@ module OCI
86
86
  def to_hash
87
87
  hash = {}
88
88
  self.class.attribute_map.each_pair do |attr, param|
89
- value = self.send(attr)
90
- next if value.nil?
89
+ value = send(attr)
90
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
91
91
  hash[param] = _to_hash(value)
92
92
  end
93
93
  hash
@@ -136,8 +136,8 @@ module OCI
136
136
  def to_hash
137
137
  hash = {}
138
138
  self.class.attribute_map.each_pair do |attr, param|
139
- value = self.send(attr)
140
- next if value.nil?
139
+ value = send(attr)
140
+ next if value.nil? && !instance_variable_defined?("@#{attr}")
141
141
  hash[param] = _to_hash(value)
142
142
  end
143
143
  hash