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
 
@@ -62,10 +62,10 @@ module OCI
62
62
  # check to ensure the input is an array given that the the attribute
63
63
  # is documented as an array but the input is not
64
64
  if attributes[self.class.attribute_map[key]].is_a?(Array)
65
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
65
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
66
66
  end
67
67
  elsif !attributes[self.class.attribute_map[key]].nil?
68
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
68
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
69
69
  end # or else data not found in attributes(hash), not an issue as the data can be optional
70
70
  end
71
71
 
@@ -83,7 +83,7 @@ module OCI
83
83
  def to_hash
84
84
  hash = {}
85
85
  self.class.attribute_map.each_pair do |attr, param|
86
- value = public_send(attr)
86
+ value = public_method(attr).call
87
87
  next if value.nil? && !instance_variable_defined?("@#{attr}")
88
88
  hash[param] = _to_hash(value)
89
89
  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
 
@@ -132,10 +132,10 @@ module OCI
132
132
  # check to ensure the input is an array given that the the attribute
133
133
  # is documented as an array but the input is not
134
134
  if attributes[self.class.attribute_map[key]].is_a?(Array)
135
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
135
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
136
136
  end
137
137
  elsif !attributes[self.class.attribute_map[key]].nil?
138
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
138
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
139
139
  end # or else data not found in attributes(hash), not an issue as the data can be optional
140
140
  end
141
141
 
@@ -153,7 +153,7 @@ module OCI
153
153
  def to_hash
154
154
  hash = {}
155
155
  self.class.attribute_map.each_pair do |attr, param|
156
- value = public_send(attr)
156
+ value = public_method(attr).call
157
157
  next if value.nil? && !instance_variable_defined?("@#{attr}")
158
158
  hash[param] = _to_hash(value)
159
159
  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
 
@@ -62,10 +62,10 @@ module OCI
62
62
  # check to ensure the input is an array given that the the attribute
63
63
  # is documented as an array but the input is not
64
64
  if attributes[self.class.attribute_map[key]].is_a?(Array)
65
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
65
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
66
66
  end
67
67
  elsif !attributes[self.class.attribute_map[key]].nil?
68
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
68
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
69
69
  end # or else data not found in attributes(hash), not an issue as the data can be optional
70
70
  end
71
71
 
@@ -83,7 +83,7 @@ module OCI
83
83
  def to_hash
84
84
  hash = {}
85
85
  self.class.attribute_map.each_pair do |attr, param|
86
- value = public_send(attr)
86
+ value = public_method(attr).call
87
87
  next if value.nil? && !instance_variable_defined?("@#{attr}")
88
88
  hash[param] = _to_hash(value)
89
89
  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
 
@@ -47,6 +47,18 @@ module OCI
47
47
  # @return [Integer]
48
48
  attr_accessor :inactive_status
49
49
 
50
+ # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
51
+ # Example: `{\"bar-key\": \"value\"}`
52
+ #
53
+ # @return [Hash<String, String>]
54
+ attr_accessor :freeform_tags
55
+
56
+ # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
57
+ # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
58
+ #
59
+ # @return [Hash<String, Hash<String, Object>>]
60
+ attr_accessor :defined_tags
61
+
50
62
 
51
63
  # Initializes the object
52
64
  # @param [Hash] attributes Model attributes in the form of hash
@@ -84,6 +96,14 @@ module OCI
84
96
  self.inactive_status = attributes[:'inactiveStatus']
85
97
  end
86
98
 
99
+ if attributes[:'freeformTags']
100
+ self.freeform_tags = attributes[:'freeformTags']
101
+ end
102
+
103
+ if attributes[:'definedTags']
104
+ self.defined_tags = attributes[:'definedTags']
105
+ end
106
+
87
107
  end
88
108
 
89
109
  # Custom attribute writer method checking allowed values (enum).
@@ -107,7 +127,9 @@ module OCI
107
127
  description == other_object.description &&
108
128
  time_created == other_object.time_created &&
109
129
  lifecycle_state == other_object.lifecycle_state &&
110
- inactive_status == other_object.inactive_status
130
+ inactive_status == other_object.inactive_status &&
131
+ freeform_tags == other_object.freeform_tags &&
132
+ defined_tags == other_object.defined_tags
111
133
  end
112
134
 
113
135
  # @see the `==` method
@@ -119,7 +141,7 @@ module OCI
119
141
  # Calculates hash code according to all attributes.
120
142
  # @return [Fixnum] Hash code
121
143
  def hash
122
- [id, compartment_id, name, description, time_created, lifecycle_state, inactive_status].hash
144
+ [id, compartment_id, name, description, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
123
145
  end
124
146
 
125
147
  # Builds the object from hash
@@ -132,10 +154,10 @@ module OCI
132
154
  # check to ensure the input is an array given that the the attribute
133
155
  # is documented as an array but the input is not
134
156
  if attributes[self.class.attribute_map[key]].is_a?(Array)
135
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
157
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
136
158
  end
137
159
  elsif !attributes[self.class.attribute_map[key]].nil?
138
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
160
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
139
161
  end # or else data not found in attributes(hash), not an issue as the data can be optional
140
162
  end
141
163
 
@@ -153,7 +175,7 @@ module OCI
153
175
  def to_hash
154
176
  hash = {}
155
177
  self.class.attribute_map.each_pair do |attr, param|
156
- value = public_send(attr)
178
+ value = public_method(attr).call
157
179
  next if value.nil? && !instance_variable_defined?("@#{attr}")
158
180
  hash[param] = _to_hash(value)
159
181
  end
@@ -191,7 +213,9 @@ module OCI
191
213
  :'description' => :'description',
192
214
  :'time_created' => :'timeCreated',
193
215
  :'lifecycle_state' => :'lifecycleState',
194
- :'inactive_status' => :'inactiveStatus'
216
+ :'inactive_status' => :'inactiveStatus',
217
+ :'freeform_tags' => :'freeformTags',
218
+ :'defined_tags' => :'definedTags'
195
219
  }
196
220
  end
197
221
 
@@ -204,7 +228,9 @@ module OCI
204
228
  :'description' => :'String',
205
229
  :'time_created' => :'DateTime',
206
230
  :'lifecycle_state' => :'String',
207
- :'inactive_status' => :'Integer'
231
+ :'inactive_status' => :'Integer',
232
+ :'freeform_tags' => :'Hash<String, String>',
233
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>'
208
234
  }
209
235
  end
210
236
  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
 
@@ -53,10 +53,10 @@ module OCI
53
53
  # check to ensure the input is an array given that the the attribute
54
54
  # is documented as an array but the input is not
55
55
  if attributes[self.class.attribute_map[key]].is_a?(Array)
56
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
56
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
57
  end
58
58
  elsif !attributes[self.class.attribute_map[key]].nil?
59
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
59
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
60
  end # or else data not found in attributes(hash), not an issue as the data can be optional
61
61
  end
62
62
 
@@ -74,7 +74,7 @@ module OCI
74
74
  def to_hash
75
75
  hash = {}
76
76
  self.class.attribute_map.each_pair do |attr, param|
77
- value = public_send(attr)
77
+ value = public_method(attr).call
78
78
  next if value.nil? && !instance_variable_defined?("@#{attr}")
79
79
  hash[param] = _to_hash(value)
80
80
  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
 
@@ -19,6 +19,18 @@ module OCI
19
19
  # @return [String]
20
20
  attr_accessor :description
21
21
 
22
+ # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
23
+ # Example: `{\"bar-key\": \"value\"}`
24
+ #
25
+ # @return [Hash<String, String>]
26
+ attr_accessor :freeform_tags
27
+
28
+ # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
29
+ # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
30
+ #
31
+ # @return [Hash<String, Hash<String, Object>>]
32
+ attr_accessor :defined_tags
33
+
22
34
 
23
35
  # Initializes the object
24
36
  # @param [Hash] attributes Model attributes in the form of hash
@@ -40,6 +52,14 @@ module OCI
40
52
  self.description = attributes[:'description']
41
53
  end
42
54
 
55
+ if attributes[:'freeformTags']
56
+ self.freeform_tags = attributes[:'freeformTags']
57
+ end
58
+
59
+ if attributes[:'definedTags']
60
+ self.defined_tags = attributes[:'definedTags']
61
+ end
62
+
43
63
  end
44
64
 
45
65
  # Checks equality by comparing each attribute.
@@ -49,7 +69,9 @@ module OCI
49
69
  self.class == other_object.class &&
50
70
  compartment_id == other_object.compartment_id &&
51
71
  name == other_object.name &&
52
- description == other_object.description
72
+ description == other_object.description &&
73
+ freeform_tags == other_object.freeform_tags &&
74
+ defined_tags == other_object.defined_tags
53
75
  end
54
76
 
55
77
  # @see the `==` method
@@ -61,7 +83,7 @@ module OCI
61
83
  # Calculates hash code according to all attributes.
62
84
  # @return [Fixnum] Hash code
63
85
  def hash
64
- [compartment_id, name, description].hash
86
+ [compartment_id, name, description, freeform_tags, defined_tags].hash
65
87
  end
66
88
 
67
89
  # Builds the object from hash
@@ -74,10 +96,10 @@ module OCI
74
96
  # check to ensure the input is an array given that the the attribute
75
97
  # is documented as an array but the input is not
76
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
77
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
99
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
78
100
  end
79
101
  elsif !attributes[self.class.attribute_map[key]].nil?
80
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
102
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
81
103
  end # or else data not found in attributes(hash), not an issue as the data can be optional
82
104
  end
83
105
 
@@ -95,7 +117,7 @@ module OCI
95
117
  def to_hash
96
118
  hash = {}
97
119
  self.class.attribute_map.each_pair do |attr, param|
98
- value = public_send(attr)
120
+ value = public_method(attr).call
99
121
  next if value.nil? && !instance_variable_defined?("@#{attr}")
100
122
  hash[param] = _to_hash(value)
101
123
  end
@@ -129,7 +151,9 @@ module OCI
129
151
  {
130
152
  :'compartment_id' => :'compartmentId',
131
153
  :'name' => :'name',
132
- :'description' => :'description'
154
+ :'description' => :'description',
155
+ :'freeform_tags' => :'freeformTags',
156
+ :'defined_tags' => :'definedTags'
133
157
  }
134
158
  end
135
159
 
@@ -138,7 +162,9 @@ module OCI
138
162
  {
139
163
  :'compartment_id' => :'String',
140
164
  :'name' => :'String',
141
- :'description' => :'String'
165
+ :'description' => :'String',
166
+ :'freeform_tags' => :'Hash<String, String>',
167
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>'
142
168
  }
143
169
  end
144
170
  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
 
@@ -54,10 +54,10 @@ module OCI
54
54
  # check to ensure the input is an array given that the the attribute
55
55
  # is documented as an array but the input is not
56
56
  if attributes[self.class.attribute_map[key]].is_a?(Array)
57
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
57
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
58
58
  end
59
59
  elsif !attributes[self.class.attribute_map[key]].nil?
60
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
60
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
61
61
  end # or else data not found in attributes(hash), not an issue as the data can be optional
62
62
  end
63
63
 
@@ -75,7 +75,7 @@ module OCI
75
75
  def to_hash
76
76
  hash = {}
77
77
  self.class.attribute_map.each_pair do |attr, param|
78
- value = public_send(attr)
78
+ value = public_method(attr).call
79
79
  next if value.nil? && !instance_variable_defined?("@#{attr}")
80
80
  hash[param] = _to_hash(value)
81
81
  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
 
@@ -18,6 +18,18 @@ module OCI
18
18
  # @return [String]
19
19
  attr_accessor :description
20
20
 
21
+ # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
22
+ # Example: `{\"bar-key\": \"value\"}`
23
+ #
24
+ # @return [Hash<String, String>]
25
+ attr_accessor :freeform_tags
26
+
27
+ # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
28
+ # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
29
+ #
30
+ # @return [Hash<String, Hash<String, Object>>]
31
+ attr_accessor :defined_tags
32
+
21
33
 
22
34
  # Initializes the object
23
35
  # @param [Hash] attributes Model attributes in the form of hash
@@ -39,6 +51,14 @@ module OCI
39
51
  self.description = attributes[:'description']
40
52
  end
41
53
 
54
+ if attributes[:'freeformTags']
55
+ self.freeform_tags = attributes[:'freeformTags']
56
+ end
57
+
58
+ if attributes[:'definedTags']
59
+ self.defined_tags = attributes[:'definedTags']
60
+ end
61
+
42
62
  end
43
63
 
44
64
  # Checks equality by comparing each attribute.
@@ -48,7 +68,9 @@ module OCI
48
68
  self.class == other_object.class &&
49
69
  compartment_id == other_object.compartment_id &&
50
70
  name == other_object.name &&
51
- description == other_object.description
71
+ description == other_object.description &&
72
+ freeform_tags == other_object.freeform_tags &&
73
+ defined_tags == other_object.defined_tags
52
74
  end
53
75
 
54
76
  # @see the `==` method
@@ -60,7 +82,7 @@ module OCI
60
82
  # Calculates hash code according to all attributes.
61
83
  # @return [Fixnum] Hash code
62
84
  def hash
63
- [compartment_id, name, description].hash
85
+ [compartment_id, name, description, freeform_tags, defined_tags].hash
64
86
  end
65
87
 
66
88
  # Builds the object from hash
@@ -73,10 +95,10 @@ module OCI
73
95
  # check to ensure the input is an array given that the the attribute
74
96
  # is documented as an array but the input is not
75
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
76
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
98
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
77
99
  end
78
100
  elsif !attributes[self.class.attribute_map[key]].nil?
79
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
101
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
80
102
  end # or else data not found in attributes(hash), not an issue as the data can be optional
81
103
  end
82
104
 
@@ -94,7 +116,7 @@ module OCI
94
116
  def to_hash
95
117
  hash = {}
96
118
  self.class.attribute_map.each_pair do |attr, param|
97
- value = public_send(attr)
119
+ value = public_method(attr).call
98
120
  next if value.nil? && !instance_variable_defined?("@#{attr}")
99
121
  hash[param] = _to_hash(value)
100
122
  end
@@ -128,7 +150,9 @@ module OCI
128
150
  {
129
151
  :'compartment_id' => :'compartmentId',
130
152
  :'name' => :'name',
131
- :'description' => :'description'
153
+ :'description' => :'description',
154
+ :'freeform_tags' => :'freeformTags',
155
+ :'defined_tags' => :'definedTags'
132
156
  }
133
157
  end
134
158
 
@@ -137,7 +161,9 @@ module OCI
137
161
  {
138
162
  :'compartment_id' => :'String',
139
163
  :'name' => :'String',
140
- :'description' => :'String'
164
+ :'description' => :'String',
165
+ :'freeform_tags' => :'Hash<String, String>',
166
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>'
141
167
  }
142
168
  end
143
169
  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
 
@@ -44,6 +44,18 @@ module OCI
44
44
  # @return [String]
45
45
  attr_accessor :protocol
46
46
 
47
+ # Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
48
+ # Example: `{\"bar-key\": \"value\"}`
49
+ #
50
+ # @return [Hash<String, String>]
51
+ attr_accessor :freeform_tags
52
+
53
+ # Usage of predefined tag keys. These predefined keys are scoped to namespaces.
54
+ # Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
55
+ #
56
+ # @return [Hash<String, Hash<String, Object>>]
57
+ attr_accessor :defined_tags
58
+
47
59
 
48
60
  # Given the hash representation of a subtype of this class,
49
61
  # use the info in the hash to return the class of the subtype.
@@ -84,6 +96,14 @@ module OCI
84
96
  self.protocol = attributes[:'protocol']
85
97
  end
86
98
 
99
+ if attributes[:'freeformTags']
100
+ self.freeform_tags = attributes[:'freeformTags']
101
+ end
102
+
103
+ if attributes[:'definedTags']
104
+ self.defined_tags = attributes[:'definedTags']
105
+ end
106
+
87
107
  end
88
108
 
89
109
  # Custom attribute writer method checking allowed values (enum).
@@ -115,7 +135,9 @@ module OCI
115
135
  name == other_object.name &&
116
136
  description == other_object.description &&
117
137
  product_type == other_object.product_type &&
118
- protocol == other_object.protocol
138
+ protocol == other_object.protocol &&
139
+ freeform_tags == other_object.freeform_tags &&
140
+ defined_tags == other_object.defined_tags
119
141
  end
120
142
 
121
143
  # @see the `==` method
@@ -127,7 +149,7 @@ module OCI
127
149
  # Calculates hash code according to all attributes.
128
150
  # @return [Fixnum] Hash code
129
151
  def hash
130
- [compartment_id, name, description, product_type, protocol].hash
152
+ [compartment_id, name, description, product_type, protocol, freeform_tags, defined_tags].hash
131
153
  end
132
154
 
133
155
  # Builds the object from hash
@@ -140,10 +162,10 @@ module OCI
140
162
  # check to ensure the input is an array given that the the attribute
141
163
  # is documented as an array but the input is not
142
164
  if attributes[self.class.attribute_map[key]].is_a?(Array)
143
- self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
165
+ self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
144
166
  end
145
167
  elsif !attributes[self.class.attribute_map[key]].nil?
146
- self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
168
+ self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
147
169
  end # or else data not found in attributes(hash), not an issue as the data can be optional
148
170
  end
149
171
 
@@ -161,7 +183,7 @@ module OCI
161
183
  def to_hash
162
184
  hash = {}
163
185
  self.class.attribute_map.each_pair do |attr, param|
164
- value = public_send(attr)
186
+ value = public_method(attr).call
165
187
  next if value.nil? && !instance_variable_defined?("@#{attr}")
166
188
  hash[param] = _to_hash(value)
167
189
  end
@@ -197,7 +219,9 @@ module OCI
197
219
  :'name' => :'name',
198
220
  :'description' => :'description',
199
221
  :'product_type' => :'productType',
200
- :'protocol' => :'protocol'
222
+ :'protocol' => :'protocol',
223
+ :'freeform_tags' => :'freeformTags',
224
+ :'defined_tags' => :'definedTags'
201
225
  }
202
226
  end
203
227
 
@@ -208,7 +232,9 @@ module OCI
208
232
  :'name' => :'String',
209
233
  :'description' => :'String',
210
234
  :'product_type' => :'String',
211
- :'protocol' => :'String'
235
+ :'protocol' => :'String',
236
+ :'freeform_tags' => :'Hash<String, String>',
237
+ :'defined_tags' => :'Hash<String, Hash<String, Object>>'
212
238
  }
213
239
  end
214
240
  end