oci 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +3 -3
  3. data/README.md +72 -6
  4. data/lib/oci.rb +1 -1
  5. data/lib/oci/api_client.rb +1 -1
  6. data/lib/oci/audit/audit.rb +1 -1
  7. data/lib/oci/audit/audit_client.rb +1 -1
  8. data/lib/oci/audit/models/audit_event.rb +4 -4
  9. data/lib/oci/audit/models/configuration.rb +4 -4
  10. data/lib/oci/audit/models/update_configuration_details.rb +4 -4
  11. data/lib/oci/audit/util.rb +2 -1
  12. data/lib/oci/config.rb +1 -1
  13. data/lib/oci/config_file_loader.rb +1 -1
  14. data/lib/oci/core/blockstorage_client.rb +1 -1
  15. data/lib/oci/core/compute_client.rb +4 -2
  16. data/lib/oci/core/core.rb +2 -1
  17. data/lib/oci/core/models/attach_boot_volume_details.rb +4 -4
  18. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +4 -4
  19. data/lib/oci/core/models/attach_vnic_details.rb +4 -4
  20. data/lib/oci/core/models/attach_volume_details.rb +4 -4
  21. data/lib/oci/core/models/boot_volume.rb +4 -4
  22. data/lib/oci/core/models/boot_volume_attachment.rb +4 -4
  23. data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +4 -4
  24. data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +4 -4
  25. data/lib/oci/core/models/capture_console_history_details.rb +36 -5
  26. data/lib/oci/core/models/connect_local_peering_gateways_details.rb +4 -4
  27. data/lib/oci/core/models/console_history.rb +36 -6
  28. data/lib/oci/core/models/cpe.rb +4 -4
  29. data/lib/oci/core/models/create_cpe_details.rb +4 -4
  30. data/lib/oci/core/models/create_cross_connect_details.rb +4 -4
  31. data/lib/oci/core/models/create_cross_connect_group_details.rb +4 -4
  32. data/lib/oci/core/models/create_dhcp_details.rb +36 -5
  33. data/lib/oci/core/models/create_drg_attachment_details.rb +4 -4
  34. data/lib/oci/core/models/create_drg_details.rb +4 -4
  35. data/lib/oci/core/models/create_image_details.rb +69 -8
  36. data/lib/oci/core/models/create_instance_console_connection_details.rb +36 -5
  37. data/lib/oci/core/models/create_internet_gateway_details.rb +4 -4
  38. data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -4
  39. data/lib/oci/core/models/create_local_peering_gateway_details.rb +4 -4
  40. data/lib/oci/core/models/create_private_ip_details.rb +36 -5
  41. data/lib/oci/core/models/create_route_table_details.rb +36 -5
  42. data/lib/oci/core/models/create_security_list_details.rb +36 -5
  43. data/lib/oci/core/models/create_subnet_details.rb +36 -5
  44. data/lib/oci/core/models/create_vcn_details.rb +39 -8
  45. data/lib/oci/core/models/create_virtual_circuit_details.rb +4 -4
  46. data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +4 -4
  47. data/lib/oci/core/models/create_vnic_details.rb +4 -4
  48. data/lib/oci/core/models/create_volume_backup_details.rb +36 -5
  49. data/lib/oci/core/models/create_volume_details.rb +36 -5
  50. data/lib/oci/core/models/cross_connect.rb +4 -4
  51. data/lib/oci/core/models/cross_connect_group.rb +4 -4
  52. data/lib/oci/core/models/cross_connect_location.rb +4 -4
  53. data/lib/oci/core/models/cross_connect_mapping.rb +4 -4
  54. data/lib/oci/core/models/cross_connect_port_speed_shape.rb +4 -4
  55. data/lib/oci/core/models/cross_connect_status.rb +4 -4
  56. data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +4 -4
  57. data/lib/oci/core/models/dhcp_dns_option.rb +4 -4
  58. data/lib/oci/core/models/dhcp_option.rb +4 -4
  59. data/lib/oci/core/models/dhcp_options.rb +36 -5
  60. data/lib/oci/core/models/dhcp_search_domain_option.rb +4 -4
  61. data/lib/oci/core/models/drg.rb +4 -4
  62. data/lib/oci/core/models/drg_attachment.rb +4 -4
  63. data/lib/oci/core/models/egress_security_rule.rb +4 -4
  64. data/lib/oci/core/models/export_image_details.rb +4 -4
  65. data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +4 -4
  66. data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +4 -4
  67. data/lib/oci/core/models/fast_connect_provider_service.rb +4 -4
  68. data/lib/oci/core/models/i_scsi_volume_attachment.rb +4 -4
  69. data/lib/oci/core/models/icmp_options.rb +4 -4
  70. data/lib/oci/core/models/image.rb +77 -6
  71. data/lib/oci/core/models/image_source_details.rb +32 -5
  72. data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +8 -5
  73. data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -5
  74. data/lib/oci/core/models/ingress_security_rule.rb +4 -4
  75. data/lib/oci/core/models/instance.rb +77 -5
  76. data/lib/oci/core/models/instance_console_connection.rb +52 -8
  77. data/lib/oci/core/models/instance_credentials.rb +4 -4
  78. data/lib/oci/core/models/instance_source_details.rb +4 -4
  79. data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +4 -4
  80. data/lib/oci/core/models/instance_source_via_image_details.rb +4 -4
  81. data/lib/oci/core/models/internet_gateway.rb +4 -4
  82. data/lib/oci/core/models/ip_sec_connection.rb +4 -4
  83. data/lib/oci/core/models/ip_sec_connection_device_config.rb +4 -4
  84. data/lib/oci/core/models/ip_sec_connection_device_status.rb +4 -4
  85. data/lib/oci/core/models/launch_instance_details.rb +39 -6
  86. data/lib/oci/core/models/launch_options.rb +239 -0
  87. data/lib/oci/core/models/letter_of_authority.rb +4 -4
  88. data/lib/oci/core/models/local_peering_gateway.rb +4 -4
  89. data/lib/oci/core/models/port_range.rb +4 -4
  90. data/lib/oci/core/models/private_ip.rb +36 -5
  91. data/lib/oci/core/models/route_rule.rb +4 -4
  92. data/lib/oci/core/models/route_table.rb +36 -5
  93. data/lib/oci/core/models/security_list.rb +36 -5
  94. data/lib/oci/core/models/shape.rb +4 -4
  95. data/lib/oci/core/models/subnet.rb +36 -5
  96. data/lib/oci/core/models/tcp_options.rb +4 -4
  97. data/lib/oci/core/models/tunnel_config.rb +4 -4
  98. data/lib/oci/core/models/tunnel_status.rb +4 -4
  99. data/lib/oci/core/models/udp_options.rb +4 -4
  100. data/lib/oci/core/models/update_boot_volume_details.rb +4 -4
  101. data/lib/oci/core/models/update_console_history_details.rb +39 -8
  102. data/lib/oci/core/models/update_cpe_details.rb +4 -4
  103. data/lib/oci/core/models/update_cross_connect_details.rb +4 -4
  104. data/lib/oci/core/models/update_cross_connect_group_details.rb +4 -4
  105. data/lib/oci/core/models/update_dhcp_details.rb +36 -5
  106. data/lib/oci/core/models/update_drg_attachment_details.rb +4 -4
  107. data/lib/oci/core/models/update_drg_details.rb +4 -4
  108. data/lib/oci/core/models/update_image_details.rb +39 -8
  109. data/lib/oci/core/models/update_instance_details.rb +39 -8
  110. data/lib/oci/core/models/update_internet_gateway_details.rb +4 -4
  111. data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -4
  112. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -4
  113. data/lib/oci/core/models/update_private_ip_details.rb +36 -5
  114. data/lib/oci/core/models/update_route_table_details.rb +36 -5
  115. data/lib/oci/core/models/update_security_list_details.rb +36 -5
  116. data/lib/oci/core/models/update_subnet_details.rb +39 -8
  117. data/lib/oci/core/models/update_vcn_details.rb +39 -8
  118. data/lib/oci/core/models/update_virtual_circuit_details.rb +4 -4
  119. data/lib/oci/core/models/update_vnic_details.rb +4 -4
  120. data/lib/oci/core/models/update_volume_backup_details.rb +39 -8
  121. data/lib/oci/core/models/update_volume_details.rb +39 -8
  122. data/lib/oci/core/models/vcn.rb +36 -5
  123. data/lib/oci/core/models/virtual_circuit.rb +4 -4
  124. data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +4 -4
  125. data/lib/oci/core/models/virtual_circuit_public_prefix.rb +4 -4
  126. data/lib/oci/core/models/vnic.rb +4 -4
  127. data/lib/oci/core/models/vnic_attachment.rb +4 -4
  128. data/lib/oci/core/models/volume.rb +36 -5
  129. data/lib/oci/core/models/volume_attachment.rb +4 -4
  130. data/lib/oci/core/models/volume_backup.rb +36 -5
  131. data/lib/oci/core/models/volume_source_details.rb +4 -4
  132. data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +4 -4
  133. data/lib/oci/core/models/volume_source_from_volume_details.rb +4 -4
  134. data/lib/oci/core/util.rb +2 -1
  135. data/lib/oci/core/virtual_network_client.rb +1 -1
  136. data/lib/oci/database/database.rb +1 -1
  137. data/lib/oci/database/database_client.rb +1 -1
  138. data/lib/oci/database/models/backup.rb +4 -4
  139. data/lib/oci/database/models/backup_summary.rb +4 -4
  140. data/lib/oci/database/models/create_backup_details.rb +4 -4
  141. data/lib/oci/database/models/create_data_guard_association_details.rb +4 -4
  142. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +4 -4
  143. data/lib/oci/database/models/create_database_details.rb +4 -4
  144. data/lib/oci/database/models/create_database_from_backup_details.rb +4 -4
  145. data/lib/oci/database/models/create_db_home_details.rb +4 -4
  146. data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -4
  147. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +4 -4
  148. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -4
  149. data/lib/oci/database/models/data_guard_association.rb +4 -4
  150. data/lib/oci/database/models/data_guard_association_summary.rb +4 -4
  151. data/lib/oci/database/models/database.rb +4 -4
  152. data/lib/oci/database/models/database_summary.rb +4 -4
  153. data/lib/oci/database/models/db_backup_config.rb +4 -4
  154. data/lib/oci/database/models/db_home.rb +4 -4
  155. data/lib/oci/database/models/db_home_summary.rb +4 -4
  156. data/lib/oci/database/models/db_node.rb +4 -4
  157. data/lib/oci/database/models/db_node_summary.rb +4 -4
  158. data/lib/oci/database/models/db_system.rb +4 -4
  159. data/lib/oci/database/models/db_system_shape_summary.rb +4 -4
  160. data/lib/oci/database/models/db_system_summary.rb +4 -4
  161. data/lib/oci/database/models/db_version_summary.rb +4 -4
  162. data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -4
  163. data/lib/oci/database/models/launch_db_system_details.rb +4 -4
  164. data/lib/oci/database/models/patch.rb +4 -4
  165. data/lib/oci/database/models/patch_details.rb +4 -4
  166. data/lib/oci/database/models/patch_history_entry.rb +4 -4
  167. data/lib/oci/database/models/patch_history_entry_summary.rb +4 -4
  168. data/lib/oci/database/models/patch_summary.rb +4 -4
  169. data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -4
  170. data/lib/oci/database/models/restore_database_details.rb +4 -4
  171. data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -4
  172. data/lib/oci/database/models/update_database_details.rb +4 -4
  173. data/lib/oci/database/models/update_db_home_details.rb +4 -4
  174. data/lib/oci/database/models/update_db_system_details.rb +4 -4
  175. data/lib/oci/database/util.rb +2 -1
  176. data/lib/oci/errors.rb +1 -1
  177. data/lib/oci/global_context.rb +1 -1
  178. data/lib/oci/identity/identity.rb +9 -1
  179. data/lib/oci/identity/identity_client.rb +339 -1
  180. data/lib/oci/identity/models/add_user_to_group_details.rb +4 -4
  181. data/lib/oci/identity/models/api_key.rb +4 -4
  182. data/lib/oci/identity/models/availability_domain.rb +4 -4
  183. data/lib/oci/identity/models/compartment.rb +34 -8
  184. data/lib/oci/identity/models/create_api_key_details.rb +4 -4
  185. data/lib/oci/identity/models/create_compartment_details.rb +34 -8
  186. data/lib/oci/identity/models/create_customer_secret_key_details.rb +4 -4
  187. data/lib/oci/identity/models/create_group_details.rb +34 -8
  188. data/lib/oci/identity/models/create_identity_provider_details.rb +34 -8
  189. data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -4
  190. data/lib/oci/identity/models/create_policy_details.rb +34 -8
  191. data/lib/oci/identity/models/create_region_subscription_details.rb +4 -4
  192. data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
  193. data/lib/oci/identity/models/create_swift_password_details.rb +4 -4
  194. data/lib/oci/identity/models/create_tag_details.rb +158 -0
  195. data/lib/oci/identity/models/create_tag_namespace_details.rb +169 -0
  196. data/lib/oci/identity/models/create_user_details.rb +34 -8
  197. data/lib/oci/identity/models/customer_secret_key.rb +4 -4
  198. data/lib/oci/identity/models/customer_secret_key_summary.rb +4 -4
  199. data/lib/oci/identity/models/group.rb +35 -8
  200. data/lib/oci/identity/models/identity_provider.rb +34 -8
  201. data/lib/oci/identity/models/idp_group_mapping.rb +4 -4
  202. data/lib/oci/identity/models/policy.rb +34 -8
  203. data/lib/oci/identity/models/region.rb +4 -4
  204. data/lib/oci/identity/models/region_subscription.rb +4 -4
  205. data/lib/oci/identity/models/saml2_identity_provider.rb +11 -5
  206. data/lib/oci/identity/models/swift_password.rb +4 -4
  207. data/lib/oci/identity/models/tag.rb +228 -0
  208. data/lib/oci/identity/models/tag_namespace.rb +205 -0
  209. data/lib/oci/identity/models/tag_namespace_summary.rb +205 -0
  210. data/lib/oci/identity/models/tag_summary.rb +205 -0
  211. data/lib/oci/identity/models/tenancy.rb +34 -8
  212. data/lib/oci/identity/models/ui_password.rb +4 -4
  213. data/lib/oci/identity/models/update_compartment_details.rb +34 -8
  214. data/lib/oci/identity/models/update_customer_secret_key_details.rb +4 -4
  215. data/lib/oci/identity/models/update_group_details.rb +34 -8
  216. data/lib/oci/identity/models/update_identity_provider_details.rb +34 -8
  217. data/lib/oci/identity/models/update_idp_group_mapping_details.rb +4 -4
  218. data/lib/oci/identity/models/update_policy_details.rb +34 -8
  219. data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +11 -5
  220. data/lib/oci/identity/models/update_state_details.rb +4 -4
  221. data/lib/oci/identity/models/update_swift_password_details.rb +4 -4
  222. data/lib/oci/identity/models/update_tag_details.rb +157 -0
  223. data/lib/oci/identity/models/update_tag_namespace_details.rb +157 -0
  224. data/lib/oci/identity/models/update_user_details.rb +34 -8
  225. data/lib/oci/identity/models/user.rb +35 -8
  226. data/lib/oci/identity/models/user_group_membership.rb +4 -4
  227. data/lib/oci/identity/util.rb +2 -1
  228. data/lib/oci/internal/internal.rb +1 -1
  229. data/lib/oci/internal/util.rb +2 -2
  230. data/lib/oci/load_balancer/load_balancer.rb +1 -1
  231. data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
  232. data/lib/oci/load_balancer/models/backend.rb +4 -4
  233. data/lib/oci/load_balancer/models/backend_details.rb +4 -4
  234. data/lib/oci/load_balancer/models/backend_health.rb +4 -4
  235. data/lib/oci/load_balancer/models/backend_set.rb +4 -4
  236. data/lib/oci/load_balancer/models/backend_set_details.rb +4 -4
  237. data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
  238. data/lib/oci/load_balancer/models/certificate.rb +4 -4
  239. data/lib/oci/load_balancer/models/certificate_details.rb +4 -4
  240. data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
  241. data/lib/oci/load_balancer/models/create_backend_set_details.rb +4 -4
  242. data/lib/oci/load_balancer/models/create_certificate_details.rb +4 -4
  243. data/lib/oci/load_balancer/models/create_listener_details.rb +4 -4
  244. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
  245. data/lib/oci/load_balancer/models/health_check_result.rb +4 -4
  246. data/lib/oci/load_balancer/models/health_checker.rb +4 -4
  247. data/lib/oci/load_balancer/models/health_checker_details.rb +4 -4
  248. data/lib/oci/load_balancer/models/ip_address.rb +4 -4
  249. data/lib/oci/load_balancer/models/listener.rb +4 -4
  250. data/lib/oci/load_balancer/models/listener_details.rb +4 -4
  251. data/lib/oci/load_balancer/models/load_balancer.rb +4 -4
  252. data/lib/oci/load_balancer/models/load_balancer_health.rb +4 -4
  253. data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +4 -4
  254. data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -4
  255. data/lib/oci/load_balancer/models/load_balancer_protocol.rb +4 -4
  256. data/lib/oci/load_balancer/models/load_balancer_shape.rb +4 -4
  257. data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +4 -4
  258. data/lib/oci/load_balancer/models/ssl_configuration.rb +4 -4
  259. data/lib/oci/load_balancer/models/ssl_configuration_details.rb +4 -4
  260. data/lib/oci/load_balancer/models/update_backend_details.rb +4 -4
  261. data/lib/oci/load_balancer/models/update_backend_set_details.rb +4 -4
  262. data/lib/oci/load_balancer/models/update_health_checker_details.rb +4 -4
  263. data/lib/oci/load_balancer/models/update_listener_details.rb +4 -4
  264. data/lib/oci/load_balancer/models/update_load_balancer_details.rb +4 -4
  265. data/lib/oci/load_balancer/models/work_request.rb +4 -4
  266. data/lib/oci/load_balancer/models/work_request_error.rb +4 -4
  267. data/lib/oci/load_balancer/util.rb +1 -1
  268. data/lib/oci/object_storage/models/bucket.rb +4 -4
  269. data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
  270. data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +4 -4
  271. data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +4 -4
  272. data/lib/oci/object_storage/models/create_bucket_details.rb +4 -4
  273. data/lib/oci/object_storage/models/create_multipart_upload_details.rb +4 -4
  274. data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +4 -4
  275. data/lib/oci/object_storage/models/list_objects.rb +4 -4
  276. data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
  277. data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +4 -4
  278. data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
  279. data/lib/oci/object_storage/models/object_summary.rb +4 -4
  280. data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -4
  281. data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +4 -4
  282. data/lib/oci/object_storage/models/rename_object_details.rb +4 -4
  283. data/lib/oci/object_storage/models/restore_objects_details.rb +4 -4
  284. data/lib/oci/object_storage/models/update_bucket_details.rb +4 -4
  285. data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
  286. data/lib/oci/object_storage/object_storage.rb +1 -1
  287. data/lib/oci/object_storage/object_storage_client.rb +1 -1
  288. data/lib/oci/object_storage/util.rb +2 -1
  289. data/lib/oci/regions.rb +1 -1
  290. data/lib/oci/response.rb +1 -1
  291. data/lib/oci/response_headers.rb +1 -1
  292. data/lib/oci/signer.rb +1 -1
  293. data/lib/oci/version.rb +2 -2
  294. data/lib/oci/waiter.rb +21 -5
  295. data/lib/oraclebmc.rb +1 -1
  296. metadata +11 -2
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -126,10 +126,10 @@ module OCI
126
126
  # check to ensure the input is an array given that the the attribute
127
127
  # is documented as an array but the input is not
128
128
  if attributes[self.class.attribute_map[key]].is_a?(Array)
129
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
129
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
130
130
  end
131
131
  elsif !attributes[self.class.attribute_map[key]].nil?
132
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
132
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
133
133
  end # or else data not found in attributes(hash), not an issue as the data can be optional
134
134
  end
135
135
 
@@ -147,7 +147,7 @@ module OCI
147
147
  def to_hash
148
148
  hash = {}
149
149
  self.class.attribute_map.each_pair do |attr, param|
150
- value = public_send(attr)
150
+ value = public_method(attr).call
151
151
  next if value.nil? && !instance_variable_defined?("@#{attr}")
152
152
  hash[param] = _to_hash(value)
153
153
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -186,10 +186,10 @@ module OCI
186
186
  # check to ensure the input is an array given that the the attribute
187
187
  # is documented as an array but the input is not
188
188
  if attributes[self.class.attribute_map[key]].is_a?(Array)
189
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
189
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
190
190
  end
191
191
  elsif !attributes[self.class.attribute_map[key]].nil?
192
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
192
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
193
193
  end # or else data not found in attributes(hash), not an issue as the data can be optional
194
194
  end
195
195
 
@@ -207,7 +207,7 @@ module OCI
207
207
  def to_hash
208
208
  hash = {}
209
209
  self.class.attribute_map.each_pair do |attr, param|
210
- value = public_send(attr)
210
+ value = public_method(attr).call
211
211
  next if value.nil? && !instance_variable_defined?("@#{attr}")
212
212
  hash[param] = _to_hash(value)
213
213
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -64,10 +64,10 @@ module OCI
64
64
  # check to ensure the input is an array given that the the attribute
65
65
  # is documented as an array but the input is not
66
66
  if attributes[self.class.attribute_map[key]].is_a?(Array)
67
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
67
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
68
68
  end
69
69
  elsif !attributes[self.class.attribute_map[key]].nil?
70
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
70
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
71
71
  end # or else data not found in attributes(hash), not an issue as the data can be optional
72
72
  end
73
73
 
@@ -85,7 +85,7 @@ module OCI
85
85
  def to_hash
86
86
  hash = {}
87
87
  self.class.attribute_map.each_pair do |attr, param|
88
- value = public_send(attr)
88
+ value = public_method(attr).call
89
89
  next if value.nil? && !instance_variable_defined?("@#{attr}")
90
90
  hash[param] = _to_hash(value)
91
91
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -15,12 +15,29 @@ module OCI
15
15
  # @return [String]
16
16
  attr_accessor :compartment_id
17
17
 
18
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
19
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
20
+ #
21
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
22
+ #
23
+ # @return [Hash<String, Hash<String, Object>>]
24
+ attr_accessor :defined_tags
25
+
18
26
  # A user-friendly name. Does not have to be unique, and it's changeable. Avoid
19
27
  # entering confidential information.
20
28
  #
21
29
  # @return [String]
22
30
  attr_accessor :display_name
23
31
 
32
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no
33
+ # predefined name, type, or namespace. For more information, see
34
+ # [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
35
+ #
36
+ # Example: `{\"Department\": \"Finance\"}`
37
+ #
38
+ # @return [Hash<String, String>]
39
+ attr_accessor :freeform_tags
40
+
24
41
  # The hostname for the private IP. Used for DNS. The value is the hostname
25
42
  # portion of the private IP's fully qualified domain name (FQDN)
26
43
  # (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`).
@@ -90,10 +107,18 @@ module OCI
90
107
  self.compartment_id = attributes[:'compartmentId']
91
108
  end
92
109
 
110
+ if attributes[:'definedTags']
111
+ self.defined_tags = attributes[:'definedTags']
112
+ end
113
+
93
114
  if attributes[:'displayName']
94
115
  self.display_name = attributes[:'displayName']
95
116
  end
96
117
 
118
+ if attributes[:'freeformTags']
119
+ self.freeform_tags = attributes[:'freeformTags']
120
+ end
121
+
97
122
  if attributes[:'hostnameLabel']
98
123
  self.hostname_label = attributes[:'hostnameLabel']
99
124
  end
@@ -131,7 +156,9 @@ module OCI
131
156
  self.class == other_object.class &&
132
157
  availability_domain == other_object.availability_domain &&
133
158
  compartment_id == other_object.compartment_id &&
159
+ defined_tags == other_object.defined_tags &&
134
160
  display_name == other_object.display_name &&
161
+ freeform_tags == other_object.freeform_tags &&
135
162
  hostname_label == other_object.hostname_label &&
136
163
  id == other_object.id &&
137
164
  ip_address == other_object.ip_address &&
@@ -150,7 +177,7 @@ module OCI
150
177
  # Calculates hash code according to all attributes.
151
178
  # @return [Fixnum] Hash code
152
179
  def hash
153
- [availability_domain, compartment_id, display_name, hostname_label, id, ip_address, is_primary, subnet_id, time_created, vnic_id].hash
180
+ [availability_domain, compartment_id, defined_tags, display_name, freeform_tags, hostname_label, id, ip_address, is_primary, subnet_id, time_created, vnic_id].hash
154
181
  end
155
182
 
156
183
  # Builds the object from hash
@@ -163,10 +190,10 @@ module OCI
163
190
  # check to ensure the input is an array given that the the attribute
164
191
  # is documented as an array but the input is not
165
192
  if attributes[self.class.attribute_map[key]].is_a?(Array)
166
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
193
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
167
194
  end
168
195
  elsif !attributes[self.class.attribute_map[key]].nil?
169
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
196
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
170
197
  end # or else data not found in attributes(hash), not an issue as the data can be optional
171
198
  end
172
199
 
@@ -184,7 +211,7 @@ module OCI
184
211
  def to_hash
185
212
  hash = {}
186
213
  self.class.attribute_map.each_pair do |attr, param|
187
- value = public_send(attr)
214
+ value = public_method(attr).call
188
215
  next if value.nil? && !instance_variable_defined?("@#{attr}")
189
216
  hash[param] = _to_hash(value)
190
217
  end
@@ -218,7 +245,9 @@ module OCI
218
245
  {
219
246
  :'availability_domain' => :'availabilityDomain',
220
247
  :'compartment_id' => :'compartmentId',
248
+ :'defined_tags' => :'definedTags',
221
249
  :'display_name' => :'displayName',
250
+ :'freeform_tags' => :'freeformTags',
222
251
  :'hostname_label' => :'hostnameLabel',
223
252
  :'id' => :'id',
224
253
  :'ip_address' => :'ipAddress',
@@ -234,7 +263,9 @@ module OCI
234
263
  {
235
264
  :'availability_domain' => :'String',
236
265
  :'compartment_id' => :'String',
266
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>',
237
267
  :'display_name' => :'String',
268
+ :'freeform_tags' => :'Hash<String, String>',
238
269
  :'hostname_label' => :'String',
239
270
  :'id' => :'String',
240
271
  :'ip_address' => :'String',
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -69,10 +69,10 @@ module OCI
69
69
  # check to ensure the input is an array given that the the attribute
70
70
  # is documented as an array but the input is not
71
71
  if attributes[self.class.attribute_map[key]].is_a?(Array)
72
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
72
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
73
73
  end
74
74
  elsif !attributes[self.class.attribute_map[key]].nil?
75
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
75
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
76
76
  end # or else data not found in attributes(hash), not an issue as the data can be optional
77
77
  end
78
78
 
@@ -90,7 +90,7 @@ module OCI
90
90
  def to_hash
91
91
  hash = {}
92
92
  self.class.attribute_map.each_pair do |attr, param|
93
- value = public_send(attr)
93
+ value = public_method(attr).call
94
94
  next if value.nil? && !instance_variable_defined?("@#{attr}")
95
95
  hash[param] = _to_hash(value)
96
96
  end
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -15,12 +15,29 @@ module OCI
15
15
  # @return [String]
16
16
  attr_accessor :compartment_id
17
17
 
18
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
19
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
20
+ #
21
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
22
+ #
23
+ # @return [Hash<String, Hash<String, Object>>]
24
+ attr_accessor :defined_tags
25
+
18
26
  # A user-friendly name. Does not have to be unique, and it's changeable.
19
27
  # Avoid entering confidential information.
20
28
  #
21
29
  # @return [String]
22
30
  attr_accessor :display_name
23
31
 
32
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no
33
+ # predefined name, type, or namespace. For more information, see
34
+ # [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
35
+ #
36
+ # Example: `{\"Department\": \"Finance\"}`
37
+ #
38
+ # @return [Hash<String, String>]
39
+ attr_accessor :freeform_tags
40
+
24
41
  # The route table's Oracle ID (OCID).
25
42
  # @return [String]
26
43
  attr_accessor :id
@@ -57,10 +74,18 @@ module OCI
57
74
  self.compartment_id = attributes[:'compartmentId']
58
75
  end
59
76
 
77
+ if attributes[:'definedTags']
78
+ self.defined_tags = attributes[:'definedTags']
79
+ end
80
+
60
81
  if attributes[:'displayName']
61
82
  self.display_name = attributes[:'displayName']
62
83
  end
63
84
 
85
+ if attributes[:'freeformTags']
86
+ self.freeform_tags = attributes[:'freeformTags']
87
+ end
88
+
64
89
  if attributes[:'id']
65
90
  self.id = attributes[:'id']
66
91
  end
@@ -99,7 +124,9 @@ module OCI
99
124
  return true if self.equal?(other_object)
100
125
  self.class == other_object.class &&
101
126
  compartment_id == other_object.compartment_id &&
127
+ defined_tags == other_object.defined_tags &&
102
128
  display_name == other_object.display_name &&
129
+ freeform_tags == other_object.freeform_tags &&
103
130
  id == other_object.id &&
104
131
  lifecycle_state == other_object.lifecycle_state &&
105
132
  route_rules == other_object.route_rules &&
@@ -116,7 +143,7 @@ module OCI
116
143
  # Calculates hash code according to all attributes.
117
144
  # @return [Fixnum] Hash code
118
145
  def hash
119
- [compartment_id, display_name, id, lifecycle_state, route_rules, time_created, vcn_id].hash
146
+ [compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, route_rules, time_created, vcn_id].hash
120
147
  end
121
148
 
122
149
  # Builds the object from hash
@@ -129,10 +156,10 @@ module OCI
129
156
  # check to ensure the input is an array given that the the attribute
130
157
  # is documented as an array but the input is not
131
158
  if attributes[self.class.attribute_map[key]].is_a?(Array)
132
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
159
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
133
160
  end
134
161
  elsif !attributes[self.class.attribute_map[key]].nil?
135
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
162
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
136
163
  end # or else data not found in attributes(hash), not an issue as the data can be optional
137
164
  end
138
165
 
@@ -150,7 +177,7 @@ module OCI
150
177
  def to_hash
151
178
  hash = {}
152
179
  self.class.attribute_map.each_pair do |attr, param|
153
- value = public_send(attr)
180
+ value = public_method(attr).call
154
181
  next if value.nil? && !instance_variable_defined?("@#{attr}")
155
182
  hash[param] = _to_hash(value)
156
183
  end
@@ -183,7 +210,9 @@ module OCI
183
210
  def self.attribute_map
184
211
  {
185
212
  :'compartment_id' => :'compartmentId',
213
+ :'defined_tags' => :'definedTags',
186
214
  :'display_name' => :'displayName',
215
+ :'freeform_tags' => :'freeformTags',
187
216
  :'id' => :'id',
188
217
  :'lifecycle_state' => :'lifecycleState',
189
218
  :'route_rules' => :'routeRules',
@@ -196,7 +225,9 @@ module OCI
196
225
  def self.swagger_types
197
226
  {
198
227
  :'compartment_id' => :'String',
228
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>',
199
229
  :'display_name' => :'String',
230
+ :'freeform_tags' => :'Hash<String, String>',
200
231
  :'id' => :'String',
201
232
  :'lifecycle_state' => :'String',
202
233
  :'route_rules' => :'Array<OCI::Core::Models::RouteRule>',
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
 
3
3
  require 'date'
4
4
 
@@ -15,6 +15,14 @@ module OCI
15
15
  # @return [String]
16
16
  attr_accessor :compartment_id
17
17
 
18
+ # Defined tags for this resource. Each key is predefined and scoped to a namespace.
19
+ # For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
20
+ #
21
+ # Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
22
+ #
23
+ # @return [Hash<String, Hash<String, Object>>]
24
+ attr_accessor :defined_tags
25
+
18
26
  # A user-friendly name. Does not have to be unique, and it's changeable.
19
27
  # Avoid entering confidential information.
20
28
  #
@@ -25,6 +33,15 @@ module OCI
25
33
  # @return [Array<OCI::Core::Models::EgressSecurityRule>]
26
34
  attr_accessor :egress_security_rules
27
35
 
36
+ # Free-form tags for this resource. Each tag is a simple key-value pair with no
37
+ # predefined name, type, or namespace. For more information, see
38
+ # [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
39
+ #
40
+ # Example: `{\"Department\": \"Finance\"}`
41
+ #
42
+ # @return [Hash<String, String>]
43
+ attr_accessor :freeform_tags
44
+
28
45
  # The security list's Oracle Cloud ID (OCID).
29
46
  # @return [String]
30
47
  attr_accessor :id
@@ -61,6 +78,10 @@ module OCI
61
78
  self.compartment_id = attributes[:'compartmentId']
62
79
  end
63
80
 
81
+ if attributes[:'definedTags']
82
+ self.defined_tags = attributes[:'definedTags']
83
+ end
84
+
64
85
  if attributes[:'displayName']
65
86
  self.display_name = attributes[:'displayName']
66
87
  end
@@ -69,6 +90,10 @@ module OCI
69
90
  self.egress_security_rules = attributes[:'egressSecurityRules']
70
91
  end
71
92
 
93
+ if attributes[:'freeformTags']
94
+ self.freeform_tags = attributes[:'freeformTags']
95
+ end
96
+
72
97
  if attributes[:'id']
73
98
  self.id = attributes[:'id']
74
99
  end
@@ -107,8 +132,10 @@ module OCI
107
132
  return true if self.equal?(other_object)
108
133
  self.class == other_object.class &&
109
134
  compartment_id == other_object.compartment_id &&
135
+ defined_tags == other_object.defined_tags &&
110
136
  display_name == other_object.display_name &&
111
137
  egress_security_rules == other_object.egress_security_rules &&
138
+ freeform_tags == other_object.freeform_tags &&
112
139
  id == other_object.id &&
113
140
  ingress_security_rules == other_object.ingress_security_rules &&
114
141
  lifecycle_state == other_object.lifecycle_state &&
@@ -125,7 +152,7 @@ module OCI
125
152
  # Calculates hash code according to all attributes.
126
153
  # @return [Fixnum] Hash code
127
154
  def hash
128
- [compartment_id, display_name, egress_security_rules, id, ingress_security_rules, lifecycle_state, time_created, vcn_id].hash
155
+ [compartment_id, defined_tags, display_name, egress_security_rules, freeform_tags, id, ingress_security_rules, lifecycle_state, time_created, vcn_id].hash
129
156
  end
130
157
 
131
158
  # Builds the object from hash
@@ -138,10 +165,10 @@ module OCI
138
165
  # check to ensure the input is an array given that the the attribute
139
166
  # is documented as an array but the input is not
140
167
  if attributes[self.class.attribute_map[key]].is_a?(Array)
141
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
168
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
142
169
  end
143
170
  elsif !attributes[self.class.attribute_map[key]].nil?
144
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
171
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
145
172
  end # or else data not found in attributes(hash), not an issue as the data can be optional
146
173
  end
147
174
 
@@ -159,7 +186,7 @@ module OCI
159
186
  def to_hash
160
187
  hash = {}
161
188
  self.class.attribute_map.each_pair do |attr, param|
162
- value = public_send(attr)
189
+ value = public_method(attr).call
163
190
  next if value.nil? && !instance_variable_defined?("@#{attr}")
164
191
  hash[param] = _to_hash(value)
165
192
  end
@@ -192,8 +219,10 @@ module OCI
192
219
  def self.attribute_map
193
220
  {
194
221
  :'compartment_id' => :'compartmentId',
222
+ :'defined_tags' => :'definedTags',
195
223
  :'display_name' => :'displayName',
196
224
  :'egress_security_rules' => :'egressSecurityRules',
225
+ :'freeform_tags' => :'freeformTags',
197
226
  :'id' => :'id',
198
227
  :'ingress_security_rules' => :'ingressSecurityRules',
199
228
  :'lifecycle_state' => :'lifecycleState',
@@ -206,8 +235,10 @@ module OCI
206
235
  def self.swagger_types
207
236
  {
208
237
  :'compartment_id' => :'String',
238
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>',
209
239
  :'display_name' => :'String',
210
240
  :'egress_security_rules' => :'Array<OCI::Core::Models::EgressSecurityRule>',
241
+ :'freeform_tags' => :'Hash<String, String>',
211
242
  :'id' => :'String',
212
243
  :'ingress_security_rules' => :'Array<OCI::Core::Models::IngressSecurityRule>',
213
244
  :'lifecycle_state' => :'String',