oci 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -56,11 +56,11 @@ module OCI
56
56
  # Initializes the object
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  # @option attributes [String] :destination The value to assign to the {#destination} property
59
- # @option attributes [OCI::Core::Models::IcmpOptions] :icmpOptions The value to assign to the {#icmp_options} property
60
- # @option attributes [BOOLEAN] :isStateless The value to assign to the {#is_stateless} property
59
+ # @option attributes [OCI::Core::Models::IcmpOptions] :icmp_options The value to assign to the {#icmp_options} property
60
+ # @option attributes [BOOLEAN] :is_stateless The value to assign to the {#is_stateless} property
61
61
  # @option attributes [String] :protocol The value to assign to the {#protocol} property
62
- # @option attributes [OCI::Core::Models::TcpOptions] :tcpOptions The value to assign to the {#tcp_options} property
63
- # @option attributes [OCI::Core::Models::UdpOptions] :udpOptions The value to assign to the {#udp_options} property
62
+ # @option attributes [OCI::Core::Models::TcpOptions] :tcp_options The value to assign to the {#tcp_options} property
63
+ # @option attributes [OCI::Core::Models::UdpOptions] :udp_options The value to assign to the {#udp_options} property
64
64
  def initialize(attributes = {})
65
65
  return unless attributes.is_a?(Hash)
66
66
 
@@ -75,10 +75,22 @@ module OCI
75
75
  self.icmp_options = attributes[:'icmpOptions']
76
76
  end
77
77
 
78
+ raise 'You cannot provide both :icmpOptions and :icmp_options' if attributes.key?(:'icmpOptions') && attributes.key?(:'icmp_options')
79
+
80
+ if attributes[:'icmp_options']
81
+ self.icmp_options = attributes[:'icmp_options']
82
+ end
83
+
78
84
  unless attributes[:'isStateless'].nil?
79
85
  self.is_stateless = attributes[:'isStateless']
80
86
  end
81
87
 
88
+ raise 'You cannot provide both :isStateless and :is_stateless' if attributes.key?(:'isStateless') && attributes.key?(:'is_stateless')
89
+
90
+ unless attributes[:'is_stateless'].nil?
91
+ self.is_stateless = attributes[:'is_stateless']
92
+ end
93
+
82
94
  if attributes[:'protocol']
83
95
  self.protocol = attributes[:'protocol']
84
96
  end
@@ -87,10 +99,22 @@ module OCI
87
99
  self.tcp_options = attributes[:'tcpOptions']
88
100
  end
89
101
 
102
+ raise 'You cannot provide both :tcpOptions and :tcp_options' if attributes.key?(:'tcpOptions') && attributes.key?(:'tcp_options')
103
+
104
+ if attributes[:'tcp_options']
105
+ self.tcp_options = attributes[:'tcp_options']
106
+ end
107
+
90
108
  if attributes[:'udpOptions']
91
109
  self.udp_options = attributes[:'udpOptions']
92
110
  end
93
111
 
112
+ raise 'You cannot provide both :udpOptions and :udp_options' if attributes.key?(:'udpOptions') && attributes.key?(:'udp_options')
113
+
114
+ if attributes[:'udp_options']
115
+ self.udp_options = attributes[:'udp_options']
116
+ end
117
+
94
118
  end
95
119
 
96
120
  # Checks equality by comparing each attribute.
@@ -36,7 +36,7 @@ module OCI
36
36
 
37
37
  # Initializes the object
38
38
  # @param [Hash] attributes Model attributes in the form of hash
39
- # @option attributes [String] :destinationType The value to assign to the {#destination_type} property
39
+ # @option attributes [String] :destination_type The value to assign to the {#destination_type} property
40
40
  def initialize(attributes = {})
41
41
  return unless attributes.is_a?(Hash)
42
42
 
@@ -47,6 +47,12 @@ module OCI
47
47
  self.destination_type = attributes[:'destinationType']
48
48
  end
49
49
 
50
+ raise 'You cannot provide both :destinationType and :destination_type' if attributes.key?(:'destinationType') && attributes.key?(:'destination_type')
51
+
52
+ if attributes[:'destination_type']
53
+ self.destination_type = attributes[:'destination_type']
54
+ end
55
+
50
56
  end
51
57
 
52
58
  # Checks equality by comparing each attribute.
@@ -20,9 +20,9 @@ module OCI
20
20
 
21
21
  # Initializes the object
22
22
  # @param [Hash] attributes Model attributes in the form of hash
23
- # @option attributes [String] :bucketName The value to assign to the {#bucket_name} property
24
- # @option attributes [String] :namespaceName The value to assign to the {#namespace_name} property
25
- # @option attributes [String] :objectName The value to assign to the {#object_name} property
23
+ # @option attributes [String] :bucket_name The value to assign to the {#bucket_name} property
24
+ # @option attributes [String] :namespace_name The value to assign to the {#namespace_name} property
25
+ # @option attributes [String] :object_name The value to assign to the {#object_name} property
26
26
  def initialize(attributes = {})
27
27
  return unless attributes.is_a?(Hash)
28
28
 
@@ -37,14 +37,32 @@ module OCI
37
37
  self.bucket_name = attributes[:'bucketName']
38
38
  end
39
39
 
40
+ raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name')
41
+
42
+ if attributes[:'bucket_name']
43
+ self.bucket_name = attributes[:'bucket_name']
44
+ end
45
+
40
46
  if attributes[:'namespaceName']
41
47
  self.namespace_name = attributes[:'namespaceName']
42
48
  end
43
49
 
50
+ raise 'You cannot provide both :namespaceName and :namespace_name' if attributes.key?(:'namespaceName') && attributes.key?(:'namespace_name')
51
+
52
+ if attributes[:'namespace_name']
53
+ self.namespace_name = attributes[:'namespace_name']
54
+ end
55
+
44
56
  if attributes[:'objectName']
45
57
  self.object_name = attributes[:'objectName']
46
58
  end
47
59
 
60
+ raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name')
61
+
62
+ if attributes[:'object_name']
63
+ self.object_name = attributes[:'object_name']
64
+ end
65
+
48
66
  end
49
67
 
50
68
  # Checks equality by comparing each attribute.
@@ -14,7 +14,7 @@ module OCI
14
14
 
15
15
  # Initializes the object
16
16
  # @param [Hash] attributes Model attributes in the form of hash
17
- # @option attributes [String] :destinationUri The value to assign to the {#destination_uri} property
17
+ # @option attributes [String] :destination_uri The value to assign to the {#destination_uri} property
18
18
  def initialize(attributes = {})
19
19
  return unless attributes.is_a?(Hash)
20
20
 
@@ -29,6 +29,12 @@ module OCI
29
29
  self.destination_uri = attributes[:'destinationUri']
30
30
  end
31
31
 
32
+ raise 'You cannot provide both :destinationUri and :destination_uri' if attributes.key?(:'destinationUri') && attributes.key?(:'destination_uri')
33
+
34
+ if attributes[:'destination_uri']
35
+ self.destination_uri = attributes[:'destination_uri']
36
+ end
37
+
32
38
  end
33
39
 
34
40
  # Checks equality by comparing each attribute.
@@ -74,11 +74,11 @@ module OCI
74
74
  # @param [Hash] attributes Model attributes in the form of hash
75
75
  # @option attributes [String] :description The value to assign to the {#description} property
76
76
  # @option attributes [String] :id The value to assign to the {#id} property
77
- # @option attributes [String] :privatePeeringBgpManagement The value to assign to the {#private_peering_bgp_management} property
78
- # @option attributes [String] :providerName The value to assign to the {#provider_name} property
79
- # @option attributes [String] :providerServiceName The value to assign to the {#provider_service_name} property
80
- # @option attributes [String] :publicPeeringBgpManagement The value to assign to the {#public_peering_bgp_management} property
81
- # @option attributes [Array<String>] :supportedVirtualCircuitTypes The value to assign to the {#supported_virtual_circuit_types} property
77
+ # @option attributes [String] :private_peering_bgp_management The value to assign to the {#private_peering_bgp_management} property
78
+ # @option attributes [String] :provider_name The value to assign to the {#provider_name} property
79
+ # @option attributes [String] :provider_service_name The value to assign to the {#provider_service_name} property
80
+ # @option attributes [String] :public_peering_bgp_management The value to assign to the {#public_peering_bgp_management} property
81
+ # @option attributes [Array<String>] :supported_virtual_circuit_types The value to assign to the {#supported_virtual_circuit_types} property
82
82
  # @option attributes [String] :type The value to assign to the {#type} property
83
83
  def initialize(attributes = {})
84
84
  return unless attributes.is_a?(Hash)
@@ -98,22 +98,52 @@ module OCI
98
98
  self.private_peering_bgp_management = attributes[:'privatePeeringBgpManagement']
99
99
  end
100
100
 
101
+ raise 'You cannot provide both :privatePeeringBgpManagement and :private_peering_bgp_management' if attributes.key?(:'privatePeeringBgpManagement') && attributes.key?(:'private_peering_bgp_management')
102
+
103
+ if attributes[:'private_peering_bgp_management']
104
+ self.private_peering_bgp_management = attributes[:'private_peering_bgp_management']
105
+ end
106
+
101
107
  if attributes[:'providerName']
102
108
  self.provider_name = attributes[:'providerName']
103
109
  end
104
110
 
111
+ raise 'You cannot provide both :providerName and :provider_name' if attributes.key?(:'providerName') && attributes.key?(:'provider_name')
112
+
113
+ if attributes[:'provider_name']
114
+ self.provider_name = attributes[:'provider_name']
115
+ end
116
+
105
117
  if attributes[:'providerServiceName']
106
118
  self.provider_service_name = attributes[:'providerServiceName']
107
119
  end
108
120
 
121
+ raise 'You cannot provide both :providerServiceName and :provider_service_name' if attributes.key?(:'providerServiceName') && attributes.key?(:'provider_service_name')
122
+
123
+ if attributes[:'provider_service_name']
124
+ self.provider_service_name = attributes[:'provider_service_name']
125
+ end
126
+
109
127
  if attributes[:'publicPeeringBgpManagement']
110
128
  self.public_peering_bgp_management = attributes[:'publicPeeringBgpManagement']
111
129
  end
112
130
 
131
+ raise 'You cannot provide both :publicPeeringBgpManagement and :public_peering_bgp_management' if attributes.key?(:'publicPeeringBgpManagement') && attributes.key?(:'public_peering_bgp_management')
132
+
133
+ if attributes[:'public_peering_bgp_management']
134
+ self.public_peering_bgp_management = attributes[:'public_peering_bgp_management']
135
+ end
136
+
113
137
  if attributes[:'supportedVirtualCircuitTypes']
114
138
  self.supported_virtual_circuit_types = attributes[:'supportedVirtualCircuitTypes']
115
139
  end
116
140
 
141
+ raise 'You cannot provide both :supportedVirtualCircuitTypes and :supported_virtual_circuit_types' if attributes.key?(:'supportedVirtualCircuitTypes') && attributes.key?(:'supported_virtual_circuit_types')
142
+
143
+ if attributes[:'supported_virtual_circuit_types']
144
+ self.supported_virtual_circuit_types = attributes[:'supported_virtual_circuit_types']
145
+ end
146
+
117
147
  if attributes[:'type']
118
148
  self.type = attributes[:'type']
119
149
  end
@@ -15,7 +15,7 @@ module OCI
15
15
 
16
16
  # Initializes the object
17
17
  # @param [Hash] attributes Model attributes in the form of hash
18
- # @option attributes [String] :ipAddress The value to assign to the {#ip_address} property
18
+ # @option attributes [String] :ip_address The value to assign to the {#ip_address} property
19
19
  def initialize(attributes = {})
20
20
  return unless attributes.is_a?(Hash)
21
21
 
@@ -26,6 +26,12 @@ module OCI
26
26
  self.ip_address = attributes[:'ipAddress']
27
27
  end
28
28
 
29
+ raise 'You cannot provide both :ipAddress and :ip_address' if attributes.key?(:'ipAddress') && attributes.key?(:'ip_address')
30
+
31
+ if attributes[:'ip_address']
32
+ self.ip_address = attributes[:'ip_address']
33
+ end
34
+
29
35
  end
30
36
 
31
37
  # Checks equality by comparing each attribute.
@@ -14,7 +14,7 @@ module OCI
14
14
 
15
15
  # Initializes the object
16
16
  # @param [Hash] attributes Model attributes in the form of hash
17
- # @option attributes [String] :privateIpId The value to assign to the {#private_ip_id} property
17
+ # @option attributes [String] :private_ip_id The value to assign to the {#private_ip_id} property
18
18
  def initialize(attributes = {})
19
19
  return unless attributes.is_a?(Hash)
20
20
 
@@ -25,6 +25,12 @@ module OCI
25
25
  self.private_ip_id = attributes[:'privateIpId']
26
26
  end
27
27
 
28
+ raise 'You cannot provide both :privateIpId and :private_ip_id' if attributes.key?(:'privateIpId') && attributes.key?(:'private_ip_id')
29
+
30
+ if attributes[:'private_ip_id']
31
+ self.private_ip_id = attributes[:'private_ip_id']
32
+ end
33
+
28
34
  end
29
35
 
30
36
  # Checks equality by comparing each attribute.
@@ -45,17 +45,17 @@ module OCI
45
45
 
46
46
  # Initializes the object
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
- # @option attributes [String] :availabilityDomain The value to assign to the {OCI::Core::Models::VolumeAttachment#availability_domain #availability_domain} proprety
49
- # @option attributes [String] :compartmentId The value to assign to the {OCI::Core::Models::VolumeAttachment#compartment_id #compartment_id} proprety
50
- # @option attributes [String] :displayName The value to assign to the {OCI::Core::Models::VolumeAttachment#display_name #display_name} proprety
48
+ # @option attributes [String] :availability_domain The value to assign to the {OCI::Core::Models::VolumeAttachment#availability_domain #availability_domain} proprety
49
+ # @option attributes [String] :compartment_id The value to assign to the {OCI::Core::Models::VolumeAttachment#compartment_id #compartment_id} proprety
50
+ # @option attributes [String] :display_name The value to assign to the {OCI::Core::Models::VolumeAttachment#display_name #display_name} proprety
51
51
  # @option attributes [String] :id The value to assign to the {OCI::Core::Models::VolumeAttachment#id #id} proprety
52
- # @option attributes [String] :instanceId The value to assign to the {OCI::Core::Models::VolumeAttachment#instance_id #instance_id} proprety
53
- # @option attributes [BOOLEAN] :isReadOnly The value to assign to the {OCI::Core::Models::VolumeAttachment#is_read_only #is_read_only} proprety
54
- # @option attributes [String] :lifecycleState The value to assign to the {OCI::Core::Models::VolumeAttachment#lifecycle_state #lifecycle_state} proprety
55
- # @option attributes [DateTime] :timeCreated The value to assign to the {OCI::Core::Models::VolumeAttachment#time_created #time_created} proprety
56
- # @option attributes [String] :volumeId The value to assign to the {OCI::Core::Models::VolumeAttachment#volume_id #volume_id} proprety
57
- # @option attributes [String] :chapSecret The value to assign to the {#chap_secret} property
58
- # @option attributes [String] :chapUsername The value to assign to the {#chap_username} property
52
+ # @option attributes [String] :instance_id The value to assign to the {OCI::Core::Models::VolumeAttachment#instance_id #instance_id} proprety
53
+ # @option attributes [BOOLEAN] :is_read_only The value to assign to the {OCI::Core::Models::VolumeAttachment#is_read_only #is_read_only} proprety
54
+ # @option attributes [String] :lifecycle_state The value to assign to the {OCI::Core::Models::VolumeAttachment#lifecycle_state #lifecycle_state} proprety
55
+ # @option attributes [DateTime] :time_created The value to assign to the {OCI::Core::Models::VolumeAttachment#time_created #time_created} proprety
56
+ # @option attributes [String] :volume_id The value to assign to the {OCI::Core::Models::VolumeAttachment#volume_id #volume_id} proprety
57
+ # @option attributes [String] :chap_secret The value to assign to the {#chap_secret} property
58
+ # @option attributes [String] :chap_username The value to assign to the {#chap_username} property
59
59
  # @option attributes [String] :ipv4 The value to assign to the {#ipv4} property
60
60
  # @option attributes [String] :iqn The value to assign to the {#iqn} property
61
61
  # @option attributes [Integer] :port The value to assign to the {#port} property
@@ -73,10 +73,22 @@ module OCI
73
73
  self.chap_secret = attributes[:'chapSecret']
74
74
  end
75
75
 
76
+ raise 'You cannot provide both :chapSecret and :chap_secret' if attributes.key?(:'chapSecret') && attributes.key?(:'chap_secret')
77
+
78
+ if attributes[:'chap_secret']
79
+ self.chap_secret = attributes[:'chap_secret']
80
+ end
81
+
76
82
  if attributes[:'chapUsername']
77
83
  self.chap_username = attributes[:'chapUsername']
78
84
  end
79
85
 
86
+ raise 'You cannot provide both :chapUsername and :chap_username' if attributes.key?(:'chapUsername') && attributes.key?(:'chap_username')
87
+
88
+ if attributes[:'chap_username']
89
+ self.chap_username = attributes[:'chap_username']
90
+ end
91
+
80
92
  if attributes[:'ipv4']
81
93
  self.ipv4 = attributes[:'ipv4']
82
94
  end
@@ -111,19 +111,19 @@ module OCI
111
111
 
112
112
  # Initializes the object
113
113
  # @param [Hash] attributes Model attributes in the form of hash
114
- # @option attributes [String] :baseImageId The value to assign to the {#base_image_id} property
115
- # @option attributes [String] :compartmentId The value to assign to the {#compartment_id} property
116
- # @option attributes [BOOLEAN] :createImageAllowed The value to assign to the {#create_image_allowed} property
117
- # @option attributes [Hash<String, Hash<String, Object>>] :definedTags The value to assign to the {#defined_tags} property
118
- # @option attributes [String] :displayName The value to assign to the {#display_name} property
119
- # @option attributes [Hash<String, String>] :freeformTags The value to assign to the {#freeform_tags} property
114
+ # @option attributes [String] :base_image_id The value to assign to the {#base_image_id} property
115
+ # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
116
+ # @option attributes [BOOLEAN] :create_image_allowed The value to assign to the {#create_image_allowed} property
117
+ # @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
118
+ # @option attributes [String] :display_name The value to assign to the {#display_name} property
119
+ # @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
120
120
  # @option attributes [String] :id The value to assign to the {#id} property
121
- # @option attributes [String] :launchMode The value to assign to the {#launch_mode} property
122
- # @option attributes [OCI::Core::Models::LaunchOptions] :launchOptions The value to assign to the {#launch_options} property
123
- # @option attributes [String] :lifecycleState The value to assign to the {#lifecycle_state} property
124
- # @option attributes [String] :operatingSystem The value to assign to the {#operating_system} property
125
- # @option attributes [String] :operatingSystemVersion The value to assign to the {#operating_system_version} property
126
- # @option attributes [DateTime] :timeCreated The value to assign to the {#time_created} property
121
+ # @option attributes [String] :launch_mode The value to assign to the {#launch_mode} property
122
+ # @option attributes [OCI::Core::Models::LaunchOptions] :launch_options The value to assign to the {#launch_options} property
123
+ # @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
124
+ # @option attributes [String] :operating_system The value to assign to the {#operating_system} property
125
+ # @option attributes [String] :operating_system_version The value to assign to the {#operating_system_version} property
126
+ # @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
127
127
  def initialize(attributes = {})
128
128
  return unless attributes.is_a?(Hash)
129
129
 
@@ -134,26 +134,62 @@ module OCI
134
134
  self.base_image_id = attributes[:'baseImageId']
135
135
  end
136
136
 
137
+ raise 'You cannot provide both :baseImageId and :base_image_id' if attributes.key?(:'baseImageId') && attributes.key?(:'base_image_id')
138
+
139
+ if attributes[:'base_image_id']
140
+ self.base_image_id = attributes[:'base_image_id']
141
+ end
142
+
137
143
  if attributes[:'compartmentId']
138
144
  self.compartment_id = attributes[:'compartmentId']
139
145
  end
140
146
 
147
+ raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
148
+
149
+ if attributes[:'compartment_id']
150
+ self.compartment_id = attributes[:'compartment_id']
151
+ end
152
+
141
153
  unless attributes[:'createImageAllowed'].nil?
142
154
  self.create_image_allowed = attributes[:'createImageAllowed']
143
155
  end
144
156
 
157
+ raise 'You cannot provide both :createImageAllowed and :create_image_allowed' if attributes.key?(:'createImageAllowed') && attributes.key?(:'create_image_allowed')
158
+
159
+ unless attributes[:'create_image_allowed'].nil?
160
+ self.create_image_allowed = attributes[:'create_image_allowed']
161
+ end
162
+
145
163
  if attributes[:'definedTags']
146
164
  self.defined_tags = attributes[:'definedTags']
147
165
  end
148
166
 
167
+ raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
168
+
169
+ if attributes[:'defined_tags']
170
+ self.defined_tags = attributes[:'defined_tags']
171
+ end
172
+
149
173
  if attributes[:'displayName']
150
174
  self.display_name = attributes[:'displayName']
151
175
  end
152
176
 
177
+ raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
178
+
179
+ if attributes[:'display_name']
180
+ self.display_name = attributes[:'display_name']
181
+ end
182
+
153
183
  if attributes[:'freeformTags']
154
184
  self.freeform_tags = attributes[:'freeformTags']
155
185
  end
156
186
 
187
+ raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
188
+
189
+ if attributes[:'freeform_tags']
190
+ self.freeform_tags = attributes[:'freeform_tags']
191
+ end
192
+
157
193
  if attributes[:'id']
158
194
  self.id = attributes[:'id']
159
195
  end
@@ -162,26 +198,62 @@ module OCI
162
198
  self.launch_mode = attributes[:'launchMode']
163
199
  end
164
200
 
201
+ raise 'You cannot provide both :launchMode and :launch_mode' if attributes.key?(:'launchMode') && attributes.key?(:'launch_mode')
202
+
203
+ if attributes[:'launch_mode']
204
+ self.launch_mode = attributes[:'launch_mode']
205
+ end
206
+
165
207
  if attributes[:'launchOptions']
166
208
  self.launch_options = attributes[:'launchOptions']
167
209
  end
168
210
 
211
+ raise 'You cannot provide both :launchOptions and :launch_options' if attributes.key?(:'launchOptions') && attributes.key?(:'launch_options')
212
+
213
+ if attributes[:'launch_options']
214
+ self.launch_options = attributes[:'launch_options']
215
+ end
216
+
169
217
  if attributes[:'lifecycleState']
170
218
  self.lifecycle_state = attributes[:'lifecycleState']
171
219
  end
172
220
 
221
+ raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
222
+
223
+ if attributes[:'lifecycle_state']
224
+ self.lifecycle_state = attributes[:'lifecycle_state']
225
+ end
226
+
173
227
  if attributes[:'operatingSystem']
174
228
  self.operating_system = attributes[:'operatingSystem']
175
229
  end
176
230
 
231
+ raise 'You cannot provide both :operatingSystem and :operating_system' if attributes.key?(:'operatingSystem') && attributes.key?(:'operating_system')
232
+
233
+ if attributes[:'operating_system']
234
+ self.operating_system = attributes[:'operating_system']
235
+ end
236
+
177
237
  if attributes[:'operatingSystemVersion']
178
238
  self.operating_system_version = attributes[:'operatingSystemVersion']
179
239
  end
180
240
 
241
+ raise 'You cannot provide both :operatingSystemVersion and :operating_system_version' if attributes.key?(:'operatingSystemVersion') && attributes.key?(:'operating_system_version')
242
+
243
+ if attributes[:'operating_system_version']
244
+ self.operating_system_version = attributes[:'operating_system_version']
245
+ end
246
+
181
247
  if attributes[:'timeCreated']
182
248
  self.time_created = attributes[:'timeCreated']
183
249
  end
184
250
 
251
+ raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
252
+
253
+ if attributes[:'time_created']
254
+ self.time_created = attributes[:'time_created']
255
+ end
256
+
185
257
  end
186
258
 
187
259
  # Custom attribute writer method checking allowed values (enum).