oci 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/api_client.rb +21 -11
  5. data/lib/oci/audit/models/audit_event.rb +133 -19
  6. data/lib/oci/audit/models/configuration.rb +7 -1
  7. data/lib/oci/audit/models/update_configuration_details.rb +7 -1
  8. data/lib/oci/base_signer.rb +1 -2
  9. data/lib/oci/core/models/attach_boot_volume_details.rb +21 -3
  10. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +11 -5
  11. data/lib/oci/core/models/attach_vnic_details.rb +28 -4
  12. data/lib/oci/core/models/attach_volume_details.rb +28 -4
  13. data/lib/oci/core/models/boot_volume.rb +56 -8
  14. data/lib/oci/core/models/boot_volume_attachment.rb +49 -7
  15. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +7 -1
  16. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +7 -1
  17. data/lib/oci/core/models/capture_console_history_details.rb +28 -4
  18. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +7 -1
  19. data/lib/oci/core/models/console_history.rb +56 -8
  20. data/lib/oci/core/models/cpe.rb +28 -4
  21. data/lib/oci/core/models/create_cpe_details.rb +21 -3
  22. data/lib/oci/core/models/create_cross_connect_details.rb +49 -7
  23. data/lib/oci/core/models/create_cross_connect_group_details.rb +14 -2
  24. data/lib/oci/core/models/create_dhcp_details.rb +35 -5
  25. data/lib/oci/core/models/create_drg_attachment_details.rb +21 -3
  26. data/lib/oci/core/models/create_drg_details.rb +14 -2
  27. data/lib/oci/core/models/create_image_details.rb +49 -7
  28. data/lib/oci/core/models/create_instance_console_connection_details.rb +28 -4
  29. data/lib/oci/core/models/create_internet_gateway_details.rb +28 -4
  30. data/lib/oci/core/models/create_ip_sec_connection_details.rb +35 -5
  31. data/lib/oci/core/models/create_local_peering_gateway_details.rb +21 -3
  32. data/lib/oci/core/models/create_private_ip_details.rb +42 -6
  33. data/lib/oci/core/models/create_public_ip_details.rb +21 -3
  34. data/lib/oci/core/models/create_route_table_details.rb +42 -6
  35. data/lib/oci/core/models/create_security_list_details.rb +49 -7
  36. data/lib/oci/core/models/create_subnet_details.rb +84 -12
  37. data/lib/oci/core/models/create_vcn_details.rb +42 -6
  38. data/lib/oci/core/models/create_virtual_circuit_details.rb +70 -10
  39. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +7 -1
  40. data/lib/oci/core/models/create_vnic_details.rb +42 -6
  41. data/lib/oci/core/models/create_volume_backup_details.rb +28 -4
  42. data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +14 -2
  43. data/lib/oci/core/models/create_volume_details.rb +70 -10
  44. data/lib/oci/core/models/cross_connect.rb +56 -8
  45. data/lib/oci/core/models/cross_connect_group.rb +28 -4
  46. data/lib/oci/core/models/cross_connect_mapping.rb +28 -4
  47. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +7 -1
  48. data/lib/oci/core/models/cross_connect_status.rb +28 -4
  49. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +7 -1
  50. data/lib/oci/core/models/dhcp_dns_option.rb +14 -2
  51. data/lib/oci/core/models/dhcp_options.rb +49 -7
  52. data/lib/oci/core/models/dhcp_search_domain_option.rb +7 -1
  53. data/lib/oci/core/models/drg.rb +28 -4
  54. data/lib/oci/core/models/drg_attachment.rb +42 -6
  55. data/lib/oci/core/models/egress_security_rule.rb +28 -4
  56. data/lib/oci/core/models/export_image_details.rb +7 -1
  57. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +21 -3
  58. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +7 -1
  59. data/lib/oci/core/models/fast_connect_provider_service.rb +35 -5
  60. data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +7 -1
  61. data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +7 -1
  62. data/lib/oci/core/models/i_scsi_volume_attachment.rb +22 -10
  63. data/lib/oci/core/models/image.rb +84 -12
  64. data/lib/oci/core/models/image_source_details.rb +14 -2
  65. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +22 -4
  66. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -2
  67. data/lib/oci/core/models/ingress_security_rule.rb +28 -4
  68. data/lib/oci/core/models/instance.rb +91 -13
  69. data/lib/oci/core/models/instance_console_connection.rb +49 -7
  70. data/lib/oci/core/models/instance_source_details.rb +7 -1
  71. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +7 -1
  72. data/lib/oci/core/models/instance_source_via_image_details.rb +7 -1
  73. data/lib/oci/core/models/internet_gateway.rb +42 -6
  74. data/lib/oci/core/models/ip_sec_connection.rb +49 -7
  75. data/lib/oci/core/models/ip_sec_connection_device_config.rb +14 -2
  76. data/lib/oci/core/models/ip_sec_connection_device_status.rb +14 -2
  77. data/lib/oci/core/models/launch_instance_details.rb +84 -12
  78. data/lib/oci/core/models/launch_options.rb +21 -3
  79. data/lib/oci/core/models/letter_of_authority.rb +49 -7
  80. data/lib/oci/core/models/local_peering_gateway.rb +63 -9
  81. data/lib/oci/core/models/private_ip.rb +77 -11
  82. data/lib/oci/core/models/public_ip.rb +49 -7
  83. data/lib/oci/core/models/route_rule.rb +14 -2
  84. data/lib/oci/core/models/route_table.rb +56 -8
  85. data/lib/oci/core/models/security_list.rb +63 -9
  86. data/lib/oci/core/models/subnet.rb +119 -17
  87. data/lib/oci/core/models/tcp_options.rb +14 -2
  88. data/lib/oci/core/models/tunnel_config.rb +21 -3
  89. data/lib/oci/core/models/tunnel_status.rb +28 -4
  90. data/lib/oci/core/models/udp_options.rb +14 -2
  91. data/lib/oci/core/models/update_boot_volume_details.rb +7 -1
  92. data/lib/oci/core/models/update_console_history_details.rb +21 -3
  93. data/lib/oci/core/models/update_cpe_details.rb +7 -1
  94. data/lib/oci/core/models/update_cross_connect_details.rb +14 -2
  95. data/lib/oci/core/models/update_cross_connect_group_details.rb +7 -1
  96. data/lib/oci/core/models/update_dhcp_details.rb +21 -3
  97. data/lib/oci/core/models/update_drg_attachment_details.rb +7 -1
  98. data/lib/oci/core/models/update_drg_details.rb +7 -1
  99. data/lib/oci/core/models/update_image_details.rb +21 -3
  100. data/lib/oci/core/models/update_instance_details.rb +21 -3
  101. data/lib/oci/core/models/update_internet_gateway_details.rb +14 -2
  102. data/lib/oci/core/models/update_ip_sec_connection_details.rb +7 -1
  103. data/lib/oci/core/models/update_local_peering_gateway_details.rb +7 -1
  104. data/lib/oci/core/models/update_private_ip_details.rb +35 -5
  105. data/lib/oci/core/models/update_public_ip_details.rb +14 -2
  106. data/lib/oci/core/models/update_route_table_details.rb +28 -4
  107. data/lib/oci/core/models/update_security_list_details.rb +35 -5
  108. data/lib/oci/core/models/update_subnet_details.rb +21 -3
  109. data/lib/oci/core/models/update_vcn_details.rb +21 -3
  110. data/lib/oci/core/models/update_virtual_circuit_details.rb +49 -7
  111. data/lib/oci/core/models/update_vnic_details.rb +21 -3
  112. data/lib/oci/core/models/update_volume_backup_details.rb +21 -3
  113. data/lib/oci/core/models/update_volume_details.rb +21 -3
  114. data/lib/oci/core/models/vcn.rb +84 -12
  115. data/lib/oci/core/models/virtual_circuit.rb +126 -18
  116. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +7 -1
  117. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +14 -2
  118. data/lib/oci/core/models/vnic.rb +84 -12
  119. data/lib/oci/core/models/vnic_attachment.rb +70 -10
  120. data/lib/oci/core/models/volume.rb +77 -11
  121. data/lib/oci/core/models/volume_attachment.rb +63 -9
  122. data/lib/oci/core/models/volume_backup.rb +98 -14
  123. data/lib/oci/core/models/volume_backup_policy.rb +14 -2
  124. data/lib/oci/core/models/volume_backup_policy_assignment.rb +21 -3
  125. data/lib/oci/core/models/volume_backup_schedule.rb +21 -3
  126. data/lib/oci/database/database_client.rb +2 -2
  127. data/lib/oci/database/models/backup.rb +56 -8
  128. data/lib/oci/database/models/backup_summary.rb +56 -8
  129. data/lib/oci/database/models/create_backup_details.rb +14 -2
  130. data/lib/oci/database/models/create_data_guard_association_details.rb +28 -4
  131. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +10 -4
  132. data/lib/oci/database/models/create_database_details.rb +49 -7
  133. data/lib/oci/database/models/create_database_from_backup_details.rb +21 -3
  134. data/lib/oci/database/models/create_db_home_details.rb +14 -2
  135. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +14 -2
  136. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -3
  137. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -2
  138. data/lib/oci/database/models/data_guard_association.rb +91 -13
  139. data/lib/oci/database/models/data_guard_association_summary.rb +91 -13
  140. data/lib/oci/database/models/database.rb +84 -12
  141. data/lib/oci/database/models/database_summary.rb +84 -12
  142. data/lib/oci/database/models/db_backup_config.rb +7 -1
  143. data/lib/oci/database/models/db_home.rb +49 -7
  144. data/lib/oci/database/models/db_home_summary.rb +49 -7
  145. data/lib/oci/database/models/db_node.rb +42 -6
  146. data/lib/oci/database/models/db_node_summary.rb +42 -6
  147. data/lib/oci/database/models/db_system.rb +161 -23
  148. data/lib/oci/database/models/db_system_shape_summary.rb +7 -1
  149. data/lib/oci/database/models/db_system_summary.rb +161 -23
  150. data/lib/oci/database/models/db_version_summary.rb +7 -1
  151. data/lib/oci/database/models/failover_data_guard_association_details.rb +7 -1
  152. data/lib/oci/database/models/launch_db_system_details.rb +105 -15
  153. data/lib/oci/database/models/patch.rb +35 -5
  154. data/lib/oci/database/models/patch_details.rb +7 -1
  155. data/lib/oci/database/models/patch_history_entry.rb +35 -5
  156. data/lib/oci/database/models/patch_history_entry_summary.rb +35 -5
  157. data/lib/oci/database/models/patch_summary.rb +35 -5
  158. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +7 -1
  159. data/lib/oci/database/models/restore_database_details.rb +7 -1
  160. data/lib/oci/database/models/switchover_data_guard_association_details.rb +7 -1
  161. data/lib/oci/database/models/update_database_details.rb +7 -1
  162. data/lib/oci/database/models/update_db_home_details.rb +7 -1
  163. data/lib/oci/database/models/update_db_system_details.rb +21 -3
  164. data/lib/oci/dns/models/create_zone_details.rb +21 -3
  165. data/lib/oci/dns/models/record.rb +21 -3
  166. data/lib/oci/dns/models/record_details.rb +21 -3
  167. data/lib/oci/dns/models/record_operation.rb +21 -3
  168. data/lib/oci/dns/models/update_zone_details.rb +7 -1
  169. data/lib/oci/dns/models/zone.rb +42 -6
  170. data/lib/oci/dns/models/zone_summary.rb +28 -4
  171. data/lib/oci/file_storage/file_storage.rb +33 -0
  172. data/lib/oci/file_storage/file_storage_client.rb +1117 -0
  173. data/lib/oci/file_storage/models/create_export_details.rb +162 -0
  174. data/lib/oci/file_storage/models/create_file_system_details.rb +170 -0
  175. data/lib/oci/file_storage/models/create_mount_target_details.rb +242 -0
  176. data/lib/oci/file_storage/models/create_snapshot_details.rb +146 -0
  177. data/lib/oci/file_storage/models/export.rb +261 -0
  178. data/lib/oci/file_storage/models/export_set.rb +315 -0
  179. data/lib/oci/file_storage/models/export_set_summary.rb +260 -0
  180. data/lib/oci/file_storage/models/export_summary.rb +233 -0
  181. data/lib/oci/file_storage/models/file_system.rb +273 -0
  182. data/lib/oci/file_storage/models/file_system_summary.rb +265 -0
  183. data/lib/oci/file_storage/models/mount_target.rb +320 -0
  184. data/lib/oci/file_storage/models/mount_target_summary.rb +300 -0
  185. data/lib/oci/file_storage/models/snapshot.rb +217 -0
  186. data/lib/oci/file_storage/models/snapshot_summary.rb +217 -0
  187. data/lib/oci/file_storage/models/update_export_set_details.rb +185 -0
  188. data/lib/oci/file_storage/models/update_file_system_details.rb +131 -0
  189. data/lib/oci/file_storage/models/update_mount_target_details.rb +131 -0
  190. data/lib/oci/file_storage/util.rb +2 -0
  191. data/lib/oci/identity/models/add_user_to_group_details.rb +14 -2
  192. data/lib/oci/identity/models/api_key.rb +42 -6
  193. data/lib/oci/identity/models/availability_domain.rb +7 -1
  194. data/lib/oci/identity/models/compartment.rb +42 -6
  195. data/lib/oci/identity/models/create_compartment_details.rb +21 -3
  196. data/lib/oci/identity/models/create_customer_secret_key_details.rb +7 -1
  197. data/lib/oci/identity/models/create_dynamic_group_details.rb +14 -2
  198. data/lib/oci/identity/models/create_group_details.rb +21 -3
  199. data/lib/oci/identity/models/create_identity_provider_details.rb +28 -4
  200. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +14 -2
  201. data/lib/oci/identity/models/create_policy_details.rb +28 -4
  202. data/lib/oci/identity/models/create_region_subscription_details.rb +7 -1
  203. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
  204. data/lib/oci/identity/models/create_tag_details.rb +14 -2
  205. data/lib/oci/identity/models/create_tag_namespace_details.rb +21 -3
  206. data/lib/oci/identity/models/create_user_details.rb +21 -3
  207. data/lib/oci/identity/models/customer_secret_key.rb +42 -6
  208. data/lib/oci/identity/models/customer_secret_key_summary.rb +42 -6
  209. data/lib/oci/identity/models/dynamic_group.rb +35 -5
  210. data/lib/oci/identity/models/group.rb +42 -6
  211. data/lib/oci/identity/models/identity_provider.rb +49 -7
  212. data/lib/oci/identity/models/idp_group_mapping.rb +49 -7
  213. data/lib/oci/identity/models/policy.rb +49 -7
  214. data/lib/oci/identity/models/region_subscription.rb +21 -3
  215. data/lib/oci/identity/models/saml2_identity_provider.rb +28 -10
  216. data/lib/oci/identity/models/swift_password.rb +35 -5
  217. data/lib/oci/identity/models/tag.rb +49 -7
  218. data/lib/oci/identity/models/tag_namespace.rb +35 -5
  219. data/lib/oci/identity/models/tag_namespace_summary.rb +35 -5
  220. data/lib/oci/identity/models/tag_summary.rb +35 -5
  221. data/lib/oci/identity/models/tenancy.rb +21 -3
  222. data/lib/oci/identity/models/ui_password.rb +28 -4
  223. data/lib/oci/identity/models/update_compartment_details.rb +14 -2
  224. data/lib/oci/identity/models/update_customer_secret_key_details.rb +7 -1
  225. data/lib/oci/identity/models/update_dynamic_group_details.rb +7 -1
  226. data/lib/oci/identity/models/update_group_details.rb +14 -2
  227. data/lib/oci/identity/models/update_identity_provider_details.rb +14 -2
  228. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +14 -2
  229. data/lib/oci/identity/models/update_policy_details.rb +21 -3
  230. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +9 -3
  231. data/lib/oci/identity/models/update_tag_details.rb +21 -3
  232. data/lib/oci/identity/models/update_tag_namespace_details.rb +21 -3
  233. data/lib/oci/identity/models/update_user_details.rb +14 -2
  234. data/lib/oci/identity/models/user.rb +42 -6
  235. data/lib/oci/identity/models/user_group_membership.rb +42 -6
  236. data/lib/oci/load_balancer/models/backend.rb +7 -1
  237. data/lib/oci/load_balancer/models/backend_details.rb +7 -1
  238. data/lib/oci/load_balancer/models/backend_health.rb +7 -1
  239. data/lib/oci/load_balancer/models/backend_set.rb +21 -3
  240. data/lib/oci/load_balancer/models/backend_set_details.rb +21 -3
  241. data/lib/oci/load_balancer/models/backend_set_health.rb +28 -4
  242. data/lib/oci/load_balancer/models/certificate.rb +21 -3
  243. data/lib/oci/load_balancer/models/certificate_details.rb +28 -4
  244. data/lib/oci/load_balancer/models/connection_configuration.rb +7 -1
  245. data/lib/oci/load_balancer/models/create_backend_details.rb +7 -1
  246. data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -3
  247. data/lib/oci/load_balancer/models/create_certificate_details.rb +28 -4
  248. data/lib/oci/load_balancer/models/create_listener_details.rb +28 -4
  249. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +51 -7
  250. data/lib/oci/load_balancer/models/create_path_route_set_details.rb +7 -1
  251. data/lib/oci/load_balancer/models/health_check_result.rb +21 -3
  252. data/lib/oci/load_balancer/models/health_checker.rb +35 -5
  253. data/lib/oci/load_balancer/models/health_checker_details.rb +35 -5
  254. data/lib/oci/load_balancer/models/ip_address.rb +14 -2
  255. data/lib/oci/load_balancer/models/listener.rb +28 -4
  256. data/lib/oci/load_balancer/models/listener_details.rb +28 -4
  257. data/lib/oci/load_balancer/models/load_balancer.rb +70 -10
  258. data/lib/oci/load_balancer/models/load_balancer_health.rb +28 -4
  259. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +7 -1
  260. data/lib/oci/load_balancer/models/path_match_type.rb +7 -1
  261. data/lib/oci/load_balancer/models/path_route.rb +14 -2
  262. data/lib/oci/load_balancer/models/path_route_set.rb +7 -1
  263. data/lib/oci/load_balancer/models/path_route_set_details.rb +7 -1
  264. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +16 -2
  265. data/lib/oci/load_balancer/models/ssl_configuration.rb +23 -3
  266. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +23 -3
  267. data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -3
  268. data/lib/oci/load_balancer/models/update_health_checker_details.rb +35 -5
  269. data/lib/oci/load_balancer/models/update_listener_details.rb +28 -4
  270. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +7 -1
  271. data/lib/oci/load_balancer/models/update_path_route_set_details.rb +7 -1
  272. data/lib/oci/load_balancer/models/work_request.rb +35 -5
  273. data/lib/oci/load_balancer/models/work_request_error.rb +7 -1
  274. data/lib/oci/object_storage/models/bucket.rb +83 -11
  275. data/lib/oci/object_storage/models/bucket_summary.rb +67 -7
  276. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +14 -2
  277. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +7 -1
  278. data/lib/oci/object_storage/models/create_bucket_details.rb +67 -7
  279. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +21 -3
  280. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +21 -3
  281. data/lib/oci/object_storage/models/list_objects.rb +7 -1
  282. data/lib/oci/object_storage/models/multipart_upload.rb +14 -2
  283. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +7 -1
  284. data/lib/oci/object_storage/models/namespace_metadata.rb +14 -2
  285. data/lib/oci/object_storage/models/object_summary.rb +7 -1
  286. data/lib/oci/object_storage/models/preauthenticated_request.rb +35 -5
  287. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +28 -4
  288. data/lib/oci/object_storage/models/rename_object_details.rb +35 -5
  289. data/lib/oci/object_storage/models/restore_objects_details.rb +25 -5
  290. data/lib/oci/object_storage/models/update_bucket_details.rb +60 -6
  291. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +14 -2
  292. data/lib/oci/object_storage/object_storage_client.rb +17 -5
  293. data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +11 -3
  294. data/lib/oci/signer.rb +0 -8
  295. data/lib/oci/version.rb +1 -1
  296. data/lib/oci/waiter.rb +1 -0
  297. metadata +22 -2
@@ -31,7 +31,7 @@ module OCI
31
31
  # @option attributes [String] :etag The value to assign to the {#etag} property
32
32
  # @option attributes [String] :md5 The value to assign to the {#md5} property
33
33
  # @option attributes [Integer] :size The value to assign to the {#size} property
34
- # @option attributes [Integer] :partNumber The value to assign to the {#part_number} property
34
+ # @option attributes [Integer] :part_number The value to assign to the {#part_number} property
35
35
  def initialize(attributes = {})
36
36
  return unless attributes.is_a?(Hash)
37
37
 
@@ -54,6 +54,12 @@ module OCI
54
54
  self.part_number = attributes[:'partNumber']
55
55
  end
56
56
 
57
+ raise 'You cannot provide both :partNumber and :part_number' if attributes.key?(:'partNumber') && attributes.key?(:'part_number')
58
+
59
+ if attributes[:'part_number']
60
+ self.part_number = attributes[:'part_number']
61
+ end
62
+
57
63
  end
58
64
 
59
65
  # Checks equality by comparing each attribute.
@@ -22,8 +22,8 @@ module OCI
22
22
  # Initializes the object
23
23
  # @param [Hash] attributes Model attributes in the form of hash
24
24
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
25
- # @option attributes [String] :defaultS3CompartmentId The value to assign to the {#default_s3_compartment_id} property
26
- # @option attributes [String] :defaultSwiftCompartmentId The value to assign to the {#default_swift_compartment_id} property
25
+ # @option attributes [String] :default_s3_compartment_id The value to assign to the {#default_s3_compartment_id} property
26
+ # @option attributes [String] :default_swift_compartment_id The value to assign to the {#default_swift_compartment_id} property
27
27
  def initialize(attributes = {})
28
28
  return unless attributes.is_a?(Hash)
29
29
 
@@ -38,10 +38,22 @@ module OCI
38
38
  self.default_s3_compartment_id = attributes[:'defaultS3CompartmentId']
39
39
  end
40
40
 
41
+ raise 'You cannot provide both :defaultS3CompartmentId and :default_s3_compartment_id' if attributes.key?(:'defaultS3CompartmentId') && attributes.key?(:'default_s3_compartment_id')
42
+
43
+ if attributes[:'default_s3_compartment_id']
44
+ self.default_s3_compartment_id = attributes[:'default_s3_compartment_id']
45
+ end
46
+
41
47
  if attributes[:'defaultSwiftCompartmentId']
42
48
  self.default_swift_compartment_id = attributes[:'defaultSwiftCompartmentId']
43
49
  end
44
50
 
51
+ raise 'You cannot provide both :defaultSwiftCompartmentId and :default_swift_compartment_id' if attributes.key?(:'defaultSwiftCompartmentId') && attributes.key?(:'default_swift_compartment_id')
52
+
53
+ if attributes[:'default_swift_compartment_id']
54
+ self.default_swift_compartment_id = attributes[:'default_swift_compartment_id']
55
+ end
56
+
45
57
  end
46
58
 
47
59
  # Checks equality by comparing each attribute.
@@ -32,7 +32,7 @@ module OCI
32
32
  # @option attributes [String] :name The value to assign to the {#name} property
33
33
  # @option attributes [Integer] :size The value to assign to the {#size} property
34
34
  # @option attributes [String] :md5 The value to assign to the {#md5} property
35
- # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
35
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
36
36
  def initialize(attributes = {})
37
37
  return unless attributes.is_a?(Hash)
38
38
 
@@ -55,6 +55,12 @@ module OCI
55
55
  self.time_created = attributes[:'timeCreated']
56
56
  end
57
57
 
58
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
59
+
60
+ if attributes[:'time_created']
61
+ self.time_created = attributes[:'time_created']
62
+ end
63
+
58
64
  end
59
65
 
60
66
  # Checks equality by comparing each attribute.
@@ -57,11 +57,11 @@ module OCI
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  # @option attributes [String] :id The value to assign to the {#id} property
59
59
  # @option attributes [String] :name The value to assign to the {#name} property
60
- # @option attributes [String] :accessUri The value to assign to the {#access_uri} property
61
- # @option attributes [String] :objectName The value to assign to the {#object_name} property
62
- # @option attributes [String] :accessType The value to assign to the {#access_type} property
63
- # @option attributes [DateTime] :timeExpires The value to assign to the {#time_expires} property
64
- # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
60
+ # @option attributes [String] :access_uri The value to assign to the {#access_uri} property
61
+ # @option attributes [String] :object_name The value to assign to the {#object_name} property
62
+ # @option attributes [String] :access_type The value to assign to the {#access_type} property
63
+ # @option attributes [DateTime] :time_expires The value to assign to the {#time_expires} property
64
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
65
65
  def initialize(attributes = {})
66
66
  return unless attributes.is_a?(Hash)
67
67
 
@@ -80,22 +80,52 @@ module OCI
80
80
  self.access_uri = attributes[:'accessUri']
81
81
  end
82
82
 
83
+ raise 'You cannot provide both :accessUri and :access_uri' if attributes.key?(:'accessUri') && attributes.key?(:'access_uri')
84
+
85
+ if attributes[:'access_uri']
86
+ self.access_uri = attributes[:'access_uri']
87
+ end
88
+
83
89
  if attributes[:'objectName']
84
90
  self.object_name = attributes[:'objectName']
85
91
  end
86
92
 
93
+ raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name')
94
+
95
+ if attributes[:'object_name']
96
+ self.object_name = attributes[:'object_name']
97
+ end
98
+
87
99
  if attributes[:'accessType']
88
100
  self.access_type = attributes[:'accessType']
89
101
  end
90
102
 
103
+ raise 'You cannot provide both :accessType and :access_type' if attributes.key?(:'accessType') && attributes.key?(:'access_type')
104
+
105
+ if attributes[:'access_type']
106
+ self.access_type = attributes[:'access_type']
107
+ end
108
+
91
109
  if attributes[:'timeExpires']
92
110
  self.time_expires = attributes[:'timeExpires']
93
111
  end
94
112
 
113
+ raise 'You cannot provide both :timeExpires and :time_expires' if attributes.key?(:'timeExpires') && attributes.key?(:'time_expires')
114
+
115
+ if attributes[:'time_expires']
116
+ self.time_expires = attributes[:'time_expires']
117
+ end
118
+
95
119
  if attributes[:'timeCreated']
96
120
  self.time_created = attributes[:'timeCreated']
97
121
  end
98
122
 
123
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
124
+
125
+ if attributes[:'time_created']
126
+ self.time_created = attributes[:'time_created']
127
+ end
128
+
99
129
  end
100
130
 
101
131
  # Custom attribute writer method checking allowed values (enum).
@@ -44,10 +44,10 @@ module OCI
44
44
  # @param [Hash] attributes Model attributes in the form of hash
45
45
  # @option attributes [String] :id The value to assign to the {#id} property
46
46
  # @option attributes [String] :name The value to assign to the {#name} property
47
- # @option attributes [String] :objectName The value to assign to the {#object_name} property
48
- # @option attributes [String] :accessType The value to assign to the {#access_type} property
49
- # @option attributes [DateTime] :timeExpires The value to assign to the {#time_expires} property
50
- # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
47
+ # @option attributes [String] :object_name The value to assign to the {#object_name} property
48
+ # @option attributes [String] :access_type The value to assign to the {#access_type} property
49
+ # @option attributes [DateTime] :time_expires The value to assign to the {#time_expires} property
50
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
51
51
  def initialize(attributes = {})
52
52
  return unless attributes.is_a?(Hash)
53
53
 
@@ -66,18 +66,42 @@ module OCI
66
66
  self.object_name = attributes[:'objectName']
67
67
  end
68
68
 
69
+ raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name')
70
+
71
+ if attributes[:'object_name']
72
+ self.object_name = attributes[:'object_name']
73
+ end
74
+
69
75
  if attributes[:'accessType']
70
76
  self.access_type = attributes[:'accessType']
71
77
  end
72
78
 
79
+ raise 'You cannot provide both :accessType and :access_type' if attributes.key?(:'accessType') && attributes.key?(:'access_type')
80
+
81
+ if attributes[:'access_type']
82
+ self.access_type = attributes[:'access_type']
83
+ end
84
+
73
85
  if attributes[:'timeExpires']
74
86
  self.time_expires = attributes[:'timeExpires']
75
87
  end
76
88
 
89
+ raise 'You cannot provide both :timeExpires and :time_expires' if attributes.key?(:'timeExpires') && attributes.key?(:'time_expires')
90
+
91
+ if attributes[:'time_expires']
92
+ self.time_expires = attributes[:'time_expires']
93
+ end
94
+
77
95
  if attributes[:'timeCreated']
78
96
  self.time_created = attributes[:'timeCreated']
79
97
  end
80
98
 
99
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
100
+
101
+ if attributes[:'time_created']
102
+ self.time_created = attributes[:'time_created']
103
+ end
104
+
81
105
  end
82
106
 
83
107
  # Custom attribute writer method checking allowed values (enum).
@@ -31,11 +31,11 @@ module OCI
31
31
 
32
32
  # Initializes the object
33
33
  # @param [Hash] attributes Model attributes in the form of hash
34
- # @option attributes [String] :sourceName The value to assign to the {#source_name} property
35
- # @option attributes [String] :newName The value to assign to the {#new_name} property
36
- # @option attributes [String] :srcObjIfMatchETag The value to assign to the {#src_obj_if_match_e_tag} property
37
- # @option attributes [String] :newObjIfMatchETag The value to assign to the {#new_obj_if_match_e_tag} property
38
- # @option attributes [String] :newObjIfNoneMatchETag The value to assign to the {#new_obj_if_none_match_e_tag} property
34
+ # @option attributes [String] :source_name The value to assign to the {#source_name} property
35
+ # @option attributes [String] :new_name The value to assign to the {#new_name} property
36
+ # @option attributes [String] :src_obj_if_match_e_tag The value to assign to the {#src_obj_if_match_e_tag} property
37
+ # @option attributes [String] :new_obj_if_match_e_tag The value to assign to the {#new_obj_if_match_e_tag} property
38
+ # @option attributes [String] :new_obj_if_none_match_e_tag The value to assign to the {#new_obj_if_none_match_e_tag} property
39
39
  def initialize(attributes = {})
40
40
  return unless attributes.is_a?(Hash)
41
41
 
@@ -46,22 +46,52 @@ module OCI
46
46
  self.source_name = attributes[:'sourceName']
47
47
  end
48
48
 
49
+ raise 'You cannot provide both :sourceName and :source_name' if attributes.key?(:'sourceName') && attributes.key?(:'source_name')
50
+
51
+ if attributes[:'source_name']
52
+ self.source_name = attributes[:'source_name']
53
+ end
54
+
49
55
  if attributes[:'newName']
50
56
  self.new_name = attributes[:'newName']
51
57
  end
52
58
 
59
+ raise 'You cannot provide both :newName and :new_name' if attributes.key?(:'newName') && attributes.key?(:'new_name')
60
+
61
+ if attributes[:'new_name']
62
+ self.new_name = attributes[:'new_name']
63
+ end
64
+
53
65
  if attributes[:'srcObjIfMatchETag']
54
66
  self.src_obj_if_match_e_tag = attributes[:'srcObjIfMatchETag']
55
67
  end
56
68
 
69
+ raise 'You cannot provide both :srcObjIfMatchETag and :src_obj_if_match_e_tag' if attributes.key?(:'srcObjIfMatchETag') && attributes.key?(:'src_obj_if_match_e_tag')
70
+
71
+ if attributes[:'src_obj_if_match_e_tag']
72
+ self.src_obj_if_match_e_tag = attributes[:'src_obj_if_match_e_tag']
73
+ end
74
+
57
75
  if attributes[:'newObjIfMatchETag']
58
76
  self.new_obj_if_match_e_tag = attributes[:'newObjIfMatchETag']
59
77
  end
60
78
 
79
+ raise 'You cannot provide both :newObjIfMatchETag and :new_obj_if_match_e_tag' if attributes.key?(:'newObjIfMatchETag') && attributes.key?(:'new_obj_if_match_e_tag')
80
+
81
+ if attributes[:'new_obj_if_match_e_tag']
82
+ self.new_obj_if_match_e_tag = attributes[:'new_obj_if_match_e_tag']
83
+ end
84
+
61
85
  if attributes[:'newObjIfNoneMatchETag']
62
86
  self.new_obj_if_none_match_e_tag = attributes[:'newObjIfNoneMatchETag']
63
87
  end
64
88
 
89
+ raise 'You cannot provide both :newObjIfNoneMatchETag and :new_obj_if_none_match_e_tag' if attributes.key?(:'newObjIfNoneMatchETag') && attributes.key?(:'new_obj_if_none_match_e_tag')
90
+
91
+ if attributes[:'new_obj_if_none_match_e_tag']
92
+ self.new_obj_if_none_match_e_tag = attributes[:'new_obj_if_none_match_e_tag']
93
+ end
94
+
65
95
  end
66
96
 
67
97
  # Checks equality by comparing each attribute.
@@ -8,10 +8,17 @@ module OCI
8
8
  # @return [String]
9
9
  attr_accessor :object_name
10
10
 
11
+ # The number of hours for which this object will be restored.
12
+ # By default object will be restored for 24 hours.It can be configured using hours parameter.
13
+ #
14
+ # @return [Integer]
15
+ attr_accessor :hours
16
+
11
17
 
12
18
  # Initializes the object
13
19
  # @param [Hash] attributes Model attributes in the form of hash
14
- # @option attributes [String] :objectName The value to assign to the {#object_name} property
20
+ # @option attributes [String] :object_name The value to assign to the {#object_name} property
21
+ # @option attributes [Integer] :hours The value to assign to the {#hours} property
15
22
  def initialize(attributes = {})
16
23
  return unless attributes.is_a?(Hash)
17
24
 
@@ -22,6 +29,16 @@ module OCI
22
29
  self.object_name = attributes[:'objectName']
23
30
  end
24
31
 
32
+ raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name')
33
+
34
+ if attributes[:'object_name']
35
+ self.object_name = attributes[:'object_name']
36
+ end
37
+
38
+ if attributes[:'hours']
39
+ self.hours = attributes[:'hours']
40
+ end
41
+
25
42
  end
26
43
 
27
44
  # Checks equality by comparing each attribute.
@@ -29,7 +46,8 @@ module OCI
29
46
  def ==(other_object)
30
47
  return true if self.equal?(other_object)
31
48
  self.class == other_object.class &&
32
- object_name == other_object.object_name
49
+ object_name == other_object.object_name &&
50
+ hours == other_object.hours
33
51
  end
34
52
 
35
53
  # @see the `==` method
@@ -41,7 +59,7 @@ module OCI
41
59
  # Calculates hash code according to all attributes.
42
60
  # @return [Fixnum] Hash code
43
61
  def hash
44
- [object_name].hash
62
+ [object_name, hours].hash
45
63
  end
46
64
 
47
65
  # Builds the object from hash
@@ -107,14 +125,16 @@ module OCI
107
125
  # Attribute mapping from ruby-style variable name to JSON key.
108
126
  def self.attribute_map
109
127
  {
110
- :'object_name' => :'objectName'
128
+ :'object_name' => :'objectName',
129
+ :'hours' => :'hours'
111
130
  }
112
131
  end
113
132
 
114
133
  # Attribute type mapping.
115
134
  def self.swagger_types
116
135
  {
117
- :'object_name' => :'String'
136
+ :'object_name' => :'String',
137
+ :'hours' => :'Integer'
118
138
  }
119
139
  end
120
140
  end
@@ -39,14 +39,30 @@ module OCI
39
39
  # @return [String]
40
40
  attr_accessor :public_access_type
41
41
 
42
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
43
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
44
+ # Example: `{\"Department\": \"Finance\"}`
45
+ #
46
+ # @return [Hash<String, String>]
47
+ attr_accessor :freeform_tags
48
+
49
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
50
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
51
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}
52
+ #
53
+ # @return [Hash<String, Hash<String, Object>>]
54
+ attr_accessor :defined_tags
55
+
42
56
 
43
57
  # Initializes the object
44
58
  # @param [Hash] attributes Model attributes in the form of hash
45
59
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
46
- # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
60
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
47
61
  # @option attributes [String] :name The value to assign to the {#name} property
48
62
  # @option attributes [Hash<String, String>] :metadata The value to assign to the {#metadata} property
49
- # @option attributes [String] :publicAccessType The value to assign to the {#public_access_type} property
63
+ # @option attributes [String] :public_access_type The value to assign to the {#public_access_type} property
64
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
65
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
50
66
  def initialize(attributes = {})
51
67
  return unless attributes.is_a?(Hash)
52
68
 
@@ -61,6 +77,12 @@ module OCI
61
77
  self.compartment_id = attributes[:'compartmentId']
62
78
  end
63
79
 
80
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
81
+
82
+ if attributes[:'compartment_id']
83
+ self.compartment_id = attributes[:'compartment_id']
84
+ end
85
+
64
86
  if attributes[:'name']
65
87
  self.name = attributes[:'name']
66
88
  end
@@ -73,6 +95,32 @@ module OCI
73
95
  self.public_access_type = attributes[:'publicAccessType']
74
96
  end
75
97
 
98
+ raise 'You cannot provide both :publicAccessType and :public_access_type' if attributes.key?(:'publicAccessType') && attributes.key?(:'public_access_type')
99
+
100
+ if attributes[:'public_access_type']
101
+ self.public_access_type = attributes[:'public_access_type']
102
+ end
103
+
104
+ if attributes[:'freeformTags']
105
+ self.freeform_tags = attributes[:'freeformTags']
106
+ end
107
+
108
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
109
+
110
+ if attributes[:'freeform_tags']
111
+ self.freeform_tags = attributes[:'freeform_tags']
112
+ end
113
+
114
+ if attributes[:'definedTags']
115
+ self.defined_tags = attributes[:'definedTags']
116
+ end
117
+
118
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
119
+
120
+ if attributes[:'defined_tags']
121
+ self.defined_tags = attributes[:'defined_tags']
122
+ end
123
+
76
124
  end
77
125
 
78
126
  # Custom attribute writer method checking allowed values (enum).
@@ -94,7 +142,9 @@ module OCI
94
142
  compartment_id == other_object.compartment_id &&
95
143
  name == other_object.name &&
96
144
  metadata == other_object.metadata &&
97
- public_access_type == other_object.public_access_type
145
+ public_access_type == other_object.public_access_type &&
146
+ freeform_tags == other_object.freeform_tags &&
147
+ defined_tags == other_object.defined_tags
98
148
  end
99
149
 
100
150
  # @see the `==` method
@@ -106,7 +156,7 @@ module OCI
106
156
  # Calculates hash code according to all attributes.
107
157
  # @return [Fixnum] Hash code
108
158
  def hash
109
- [namespace, compartment_id, name, metadata, public_access_type].hash
159
+ [namespace, compartment_id, name, metadata, public_access_type, freeform_tags, defined_tags].hash
110
160
  end
111
161
 
112
162
  # Builds the object from hash
@@ -176,7 +226,9 @@ module OCI
176
226
  :'compartment_id' => :'compartmentId',
177
227
  :'name' => :'name',
178
228
  :'metadata' => :'metadata',
179
- :'public_access_type' => :'publicAccessType'
229
+ :'public_access_type' => :'publicAccessType',
230
+ :'freeform_tags' => :'freeformTags',
231
+ :'defined_tags' => :'definedTags'
180
232
  }
181
233
  end
182
234
 
@@ -187,7 +239,9 @@ module OCI
187
239
  :'compartment_id' => :'String',
188
240
  :'name' => :'String',
189
241
  :'metadata' => :'Hash<String, String>',
190
- :'public_access_type' => :'String'
242
+ :'public_access_type' => :'String',
243
+ :'freeform_tags' => :'Hash<String, String>',
244
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>'
191
245
  }
192
246
  end
193
247
  end