oci 2.0.4 → 2.0.5
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.
- checksums.yaml +4 -4
- data/LICENSE.txt +3 -3
- data/README.md +72 -6
- data/lib/oci.rb +1 -1
- data/lib/oci/api_client.rb +1 -1
- data/lib/oci/audit/audit.rb +1 -1
- data/lib/oci/audit/audit_client.rb +1 -1
- data/lib/oci/audit/models/audit_event.rb +4 -4
- data/lib/oci/audit/models/configuration.rb +4 -4
- data/lib/oci/audit/models/update_configuration_details.rb +4 -4
- data/lib/oci/audit/util.rb +2 -1
- data/lib/oci/config.rb +1 -1
- data/lib/oci/config_file_loader.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +4 -2
- data/lib/oci/core/core.rb +2 -1
- data/lib/oci/core/models/attach_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_vnic_details.rb +4 -4
- data/lib/oci/core/models/attach_volume_details.rb +4 -4
- data/lib/oci/core/models/boot_volume.rb +4 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +4 -4
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/capture_console_history_details.rb +36 -5
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +4 -4
- data/lib/oci/core/models/console_history.rb +36 -6
- data/lib/oci/core/models/cpe.rb +4 -4
- data/lib/oci/core/models/create_cpe_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/create_dhcp_details.rb +36 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/create_drg_details.rb +4 -4
- data/lib/oci/core/models/create_image_details.rb +69 -8
- data/lib/oci/core/models/create_instance_console_connection_details.rb +36 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_private_ip_details.rb +36 -5
- data/lib/oci/core/models/create_route_table_details.rb +36 -5
- data/lib/oci/core/models/create_security_list_details.rb +36 -5
- data/lib/oci/core/models/create_subnet_details.rb +36 -5
- data/lib/oci/core/models/create_vcn_details.rb +39 -8
- data/lib/oci/core/models/create_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/create_vnic_details.rb +4 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +36 -5
- data/lib/oci/core/models/create_volume_details.rb +36 -5
- data/lib/oci/core/models/cross_connect.rb +4 -4
- data/lib/oci/core/models/cross_connect_group.rb +4 -4
- data/lib/oci/core/models/cross_connect_location.rb +4 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +4 -4
- data/lib/oci/core/models/cross_connect_status.rb +4 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/dhcp_dns_option.rb +4 -4
- data/lib/oci/core/models/dhcp_option.rb +4 -4
- data/lib/oci/core/models/dhcp_options.rb +36 -5
- data/lib/oci/core/models/dhcp_search_domain_option.rb +4 -4
- data/lib/oci/core/models/drg.rb +4 -4
- data/lib/oci/core/models/drg_attachment.rb +4 -4
- data/lib/oci/core/models/egress_security_rule.rb +4 -4
- data/lib/oci/core/models/export_image_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +4 -4
- data/lib/oci/core/models/fast_connect_provider_service.rb +4 -4
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +4 -4
- data/lib/oci/core/models/icmp_options.rb +4 -4
- data/lib/oci/core/models/image.rb +77 -6
- data/lib/oci/core/models/image_source_details.rb +32 -5
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +8 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -5
- data/lib/oci/core/models/ingress_security_rule.rb +4 -4
- data/lib/oci/core/models/instance.rb +77 -5
- data/lib/oci/core/models/instance_console_connection.rb +52 -8
- data/lib/oci/core/models/instance_credentials.rb +4 -4
- data/lib/oci/core/models/instance_source_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_image_details.rb +4 -4
- data/lib/oci/core/models/internet_gateway.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +4 -4
- data/lib/oci/core/models/launch_instance_details.rb +39 -6
- data/lib/oci/core/models/launch_options.rb +239 -0
- data/lib/oci/core/models/letter_of_authority.rb +4 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -4
- data/lib/oci/core/models/port_range.rb +4 -4
- data/lib/oci/core/models/private_ip.rb +36 -5
- data/lib/oci/core/models/route_rule.rb +4 -4
- data/lib/oci/core/models/route_table.rb +36 -5
- data/lib/oci/core/models/security_list.rb +36 -5
- data/lib/oci/core/models/shape.rb +4 -4
- data/lib/oci/core/models/subnet.rb +36 -5
- data/lib/oci/core/models/tcp_options.rb +4 -4
- data/lib/oci/core/models/tunnel_config.rb +4 -4
- data/lib/oci/core/models/tunnel_status.rb +4 -4
- data/lib/oci/core/models/udp_options.rb +4 -4
- data/lib/oci/core/models/update_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/update_console_history_details.rb +39 -8
- data/lib/oci/core/models/update_cpe_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/update_dhcp_details.rb +36 -5
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/update_drg_details.rb +4 -4
- data/lib/oci/core/models/update_image_details.rb +39 -8
- data/lib/oci/core/models/update_instance_details.rb +39 -8
- data/lib/oci/core/models/update_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_private_ip_details.rb +36 -5
- data/lib/oci/core/models/update_route_table_details.rb +36 -5
- data/lib/oci/core/models/update_security_list_details.rb +36 -5
- data/lib/oci/core/models/update_subnet_details.rb +39 -8
- data/lib/oci/core/models/update_vcn_details.rb +39 -8
- data/lib/oci/core/models/update_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/update_vnic_details.rb +4 -4
- data/lib/oci/core/models/update_volume_backup_details.rb +39 -8
- data/lib/oci/core/models/update_volume_details.rb +39 -8
- data/lib/oci/core/models/vcn.rb +36 -5
- data/lib/oci/core/models/virtual_circuit.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +4 -4
- data/lib/oci/core/models/vnic.rb +4 -4
- data/lib/oci/core/models/vnic_attachment.rb +4 -4
- data/lib/oci/core/models/volume.rb +36 -5
- data/lib/oci/core/models/volume_attachment.rb +4 -4
- data/lib/oci/core/models/volume_backup.rb +36 -5
- data/lib/oci/core/models/volume_source_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_details.rb +4 -4
- data/lib/oci/core/util.rb +2 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -1
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +4 -4
- data/lib/oci/database/models/backup_summary.rb +4 -4
- data/lib/oci/database/models/create_backup_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +4 -4
- data/lib/oci/database/models/create_database_details.rb +4 -4
- data/lib/oci/database/models/create_database_from_backup_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -4
- data/lib/oci/database/models/data_guard_association.rb +4 -4
- data/lib/oci/database/models/data_guard_association_summary.rb +4 -4
- data/lib/oci/database/models/database.rb +4 -4
- data/lib/oci/database/models/database_summary.rb +4 -4
- data/lib/oci/database/models/db_backup_config.rb +4 -4
- data/lib/oci/database/models/db_home.rb +4 -4
- data/lib/oci/database/models/db_home_summary.rb +4 -4
- data/lib/oci/database/models/db_node.rb +4 -4
- data/lib/oci/database/models/db_node_summary.rb +4 -4
- data/lib/oci/database/models/db_system.rb +4 -4
- data/lib/oci/database/models/db_system_shape_summary.rb +4 -4
- data/lib/oci/database/models/db_system_summary.rb +4 -4
- data/lib/oci/database/models/db_version_summary.rb +4 -4
- data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/launch_db_system_details.rb +4 -4
- data/lib/oci/database/models/patch.rb +4 -4
- data/lib/oci/database/models/patch_details.rb +4 -4
- data/lib/oci/database/models/patch_history_entry.rb +4 -4
- data/lib/oci/database/models/patch_history_entry_summary.rb +4 -4
- data/lib/oci/database/models/patch_summary.rb +4 -4
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/restore_database_details.rb +4 -4
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/update_database_details.rb +4 -4
- data/lib/oci/database/models/update_db_home_details.rb +4 -4
- data/lib/oci/database/models/update_db_system_details.rb +4 -4
- data/lib/oci/database/util.rb +2 -1
- data/lib/oci/errors.rb +1 -1
- data/lib/oci/global_context.rb +1 -1
- data/lib/oci/identity/identity.rb +9 -1
- data/lib/oci/identity/identity_client.rb +339 -1
- data/lib/oci/identity/models/add_user_to_group_details.rb +4 -4
- data/lib/oci/identity/models/api_key.rb +4 -4
- data/lib/oci/identity/models/availability_domain.rb +4 -4
- data/lib/oci/identity/models/compartment.rb +34 -8
- data/lib/oci/identity/models/create_api_key_details.rb +4 -4
- data/lib/oci/identity/models/create_compartment_details.rb +34 -8
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/create_group_details.rb +34 -8
- data/lib/oci/identity/models/create_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/create_policy_details.rb +34 -8
- data/lib/oci/identity/models/create_region_subscription_details.rb +4 -4
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/create_tag_details.rb +158 -0
- data/lib/oci/identity/models/create_tag_namespace_details.rb +169 -0
- data/lib/oci/identity/models/create_user_details.rb +34 -8
- data/lib/oci/identity/models/customer_secret_key.rb +4 -4
- data/lib/oci/identity/models/customer_secret_key_summary.rb +4 -4
- data/lib/oci/identity/models/group.rb +35 -8
- data/lib/oci/identity/models/identity_provider.rb +34 -8
- data/lib/oci/identity/models/idp_group_mapping.rb +4 -4
- data/lib/oci/identity/models/policy.rb +34 -8
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +11 -5
- data/lib/oci/identity/models/swift_password.rb +4 -4
- data/lib/oci/identity/models/tag.rb +228 -0
- data/lib/oci/identity/models/tag_namespace.rb +205 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +205 -0
- data/lib/oci/identity/models/tag_summary.rb +205 -0
- data/lib/oci/identity/models/tenancy.rb +34 -8
- data/lib/oci/identity/models/ui_password.rb +4 -4
- data/lib/oci/identity/models/update_compartment_details.rb +34 -8
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/update_group_details.rb +34 -8
- data/lib/oci/identity/models/update_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/update_policy_details.rb +34 -8
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/update_state_details.rb +4 -4
- data/lib/oci/identity/models/update_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/update_tag_details.rb +157 -0
- data/lib/oci/identity/models/update_tag_namespace_details.rb +157 -0
- data/lib/oci/identity/models/update_user_details.rb +34 -8
- data/lib/oci/identity/models/user.rb +35 -8
- data/lib/oci/identity/models/user_group_membership.rb +4 -4
- data/lib/oci/identity/util.rb +2 -1
- data/lib/oci/internal/internal.rb +1 -1
- data/lib/oci/internal/util.rb +2 -2
- data/lib/oci/load_balancer/load_balancer.rb +1 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +4 -4
- data/lib/oci/load_balancer/models/backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
- data/lib/oci/load_balancer/models/certificate.rb +4 -4
- data/lib/oci/load_balancer/models/certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/ip_address.rb +4 -4
- data/lib/oci/load_balancer/models/listener.rb +4 -4
- data/lib/oci/load_balancer/models/listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +4 -4
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/work_request.rb +4 -4
- data/lib/oci/load_balancer/models/work_request_error.rb +4 -4
- data/lib/oci/load_balancer/util.rb +1 -1
- data/lib/oci/object_storage/models/bucket.rb +4 -4
- data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +4 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +4 -4
- data/lib/oci/object_storage/models/list_objects.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +4 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
- data/lib/oci/object_storage/models/object_summary.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +4 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +4 -4
- data/lib/oci/object_storage/models/restore_objects_details.rb +4 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
- data/lib/oci/object_storage/object_storage.rb +1 -1
- data/lib/oci/object_storage/object_storage_client.rb +1 -1
- data/lib/oci/object_storage/util.rb +2 -1
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/response.rb +1 -1
- data/lib/oci/response_headers.rb +1 -1
- data/lib/oci/signer.rb +1 -1
- data/lib/oci/version.rb +2 -2
- data/lib/oci/waiter.rb +21 -5
- data/lib/oraclebmc.rb +1 -1
- metadata +11 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -112,10 +112,10 @@ module OCI
|
|
|
112
112
|
# check to ensure the input is an array given that the the attribute
|
|
113
113
|
# is documented as an array but the input is not
|
|
114
114
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
115
|
-
self.
|
|
115
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
116
116
|
end
|
|
117
117
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
118
|
-
self.
|
|
118
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
119
119
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -133,7 +133,7 @@ module OCI
|
|
|
133
133
|
def to_hash
|
|
134
134
|
hash = {}
|
|
135
135
|
self.class.attribute_map.each_pair do |attr, param|
|
|
136
|
-
value =
|
|
136
|
+
value = public_method(attr).call
|
|
137
137
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
138
138
|
hash[param] = _to_hash(value)
|
|
139
139
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -65,10 +65,10 @@ module OCI
|
|
|
65
65
|
# check to ensure the input is an array given that the the attribute
|
|
66
66
|
# is documented as an array but the input is not
|
|
67
67
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
68
|
-
self.
|
|
68
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
69
69
|
end
|
|
70
70
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
71
|
-
self.
|
|
71
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
72
72
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -86,7 +86,7 @@ module OCI
|
|
|
86
86
|
def to_hash
|
|
87
87
|
hash = {}
|
|
88
88
|
self.class.attribute_map.each_pair do |attr, param|
|
|
89
|
-
value =
|
|
89
|
+
value = public_method(attr).call
|
|
90
90
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
91
91
|
hash[param] = _to_hash(value)
|
|
92
92
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -119,10 +119,10 @@ module OCI
|
|
|
119
119
|
# check to ensure the input is an array given that the the attribute
|
|
120
120
|
# is documented as an array but the input is not
|
|
121
121
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
122
|
-
self.
|
|
122
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
123
123
|
end
|
|
124
124
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
125
|
-
self.
|
|
125
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
126
126
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -140,7 +140,7 @@ module OCI
|
|
|
140
140
|
def to_hash
|
|
141
141
|
hash = {}
|
|
142
142
|
self.class.attribute_map.each_pair do |attr, param|
|
|
143
|
-
value =
|
|
143
|
+
value = public_method(attr).call
|
|
144
144
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
145
145
|
hash[param] = _to_hash(value)
|
|
146
146
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -68,10 +68,10 @@ module OCI
|
|
|
68
68
|
# check to ensure the input is an array given that the the attribute
|
|
69
69
|
# is documented as an array but the input is not
|
|
70
70
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
71
|
-
self.
|
|
71
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
72
72
|
end
|
|
73
73
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
74
|
-
self.
|
|
74
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
75
75
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
76
76
|
end
|
|
77
77
|
|
|
@@ -89,7 +89,7 @@ module OCI
|
|
|
89
89
|
def to_hash
|
|
90
90
|
hash = {}
|
|
91
91
|
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
-
value =
|
|
92
|
+
value = public_method(attr).call
|
|
93
93
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
94
94
|
hash[param] = _to_hash(value)
|
|
95
95
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -127,10 +127,10 @@ module OCI
|
|
|
127
127
|
# check to ensure the input is an array given that the the attribute
|
|
128
128
|
# is documented as an array but the input is not
|
|
129
129
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
130
|
-
self.
|
|
130
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
131
131
|
end
|
|
132
132
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
133
|
-
self.
|
|
133
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
134
134
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
135
135
|
end
|
|
136
136
|
|
|
@@ -148,7 +148,7 @@ module OCI
|
|
|
148
148
|
def to_hash
|
|
149
149
|
hash = {}
|
|
150
150
|
self.class.attribute_map.each_pair do |attr, param|
|
|
151
|
-
value =
|
|
151
|
+
value = public_method(attr).call
|
|
152
152
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
153
153
|
hash[param] = _to_hash(value)
|
|
154
154
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
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.
|
|
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.
|
|
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 =
|
|
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,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
require_relative 'dhcp_option'
|
|
@@ -100,10 +100,10 @@ module OCI
|
|
|
100
100
|
# check to ensure the input is an array given that the the attribute
|
|
101
101
|
# is documented as an array but the input is not
|
|
102
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
103
|
-
self.
|
|
103
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
104
104
|
end
|
|
105
105
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
106
|
-
self.
|
|
106
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
107
107
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
108
108
|
end
|
|
109
109
|
|
|
@@ -121,7 +121,7 @@ module OCI
|
|
|
121
121
|
def to_hash
|
|
122
122
|
hash = {}
|
|
123
123
|
self.class.attribute_map.each_pair do |attr, param|
|
|
124
|
-
value =
|
|
124
|
+
value = public_method(attr).call
|
|
125
125
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
126
126
|
hash[param] = _to_hash(value)
|
|
127
127
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -68,10 +68,10 @@ module OCI
|
|
|
68
68
|
# check to ensure the input is an array given that the the attribute
|
|
69
69
|
# is documented as an array but the input is not
|
|
70
70
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
71
|
-
self.
|
|
71
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
72
72
|
end
|
|
73
73
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
74
|
-
self.
|
|
74
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
75
75
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
76
76
|
end
|
|
77
77
|
|
|
@@ -89,7 +89,7 @@ module OCI
|
|
|
89
89
|
def to_hash
|
|
90
90
|
hash = {}
|
|
91
91
|
self.class.attribute_map.each_pair do |attr, param|
|
|
92
|
-
value =
|
|
92
|
+
value = public_method(attr).call
|
|
93
93
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
94
94
|
hash[param] = _to_hash(value)
|
|
95
95
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
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
|
# Oracle ID (OCID) for the set of DHCP options.
|
|
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
|
options == other_object.options &&
|
|
@@ -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, options, time_created, vcn_id].hash
|
|
146
|
+
[compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, options, 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.
|
|
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.
|
|
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 =
|
|
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
|
:'options' => :'options',
|
|
@@ -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
|
:'options' => :'Array<OCI::Core::Models::DhcpOption>',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
require_relative 'dhcp_option'
|
|
@@ -72,10 +72,10 @@ module OCI
|
|
|
72
72
|
# check to ensure the input is an array given that the the attribute
|
|
73
73
|
# is documented as an array but the input is not
|
|
74
74
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
75
|
-
self.
|
|
75
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
76
76
|
end
|
|
77
77
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
78
|
-
self.
|
|
78
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
79
79
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -93,7 +93,7 @@ module OCI
|
|
|
93
93
|
def to_hash
|
|
94
94
|
hash = {}
|
|
95
95
|
self.class.attribute_map.each_pair do |attr, param|
|
|
96
|
-
value =
|
|
96
|
+
value = public_method(attr).call
|
|
97
97
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
98
98
|
hash[param] = _to_hash(value)
|
|
99
99
|
end
|
data/lib/oci/core/models/drg.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -111,10 +111,10 @@ module OCI
|
|
|
111
111
|
# check to ensure the input is an array given that the the attribute
|
|
112
112
|
# is documented as an array but the input is not
|
|
113
113
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
114
|
-
self.
|
|
114
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
115
115
|
end
|
|
116
116
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
117
|
-
self.
|
|
117
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
118
118
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
119
119
|
end
|
|
120
120
|
|
|
@@ -132,7 +132,7 @@ module OCI
|
|
|
132
132
|
def to_hash
|
|
133
133
|
hash = {}
|
|
134
134
|
self.class.attribute_map.each_pair do |attr, param|
|
|
135
|
-
value =
|
|
135
|
+
value = public_method(attr).call
|
|
136
136
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
137
137
|
hash[param] = _to_hash(value)
|
|
138
138
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -129,10 +129,10 @@ module OCI
|
|
|
129
129
|
# check to ensure the input is an array given that the the attribute
|
|
130
130
|
# is documented as an array but the input is not
|
|
131
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
132
|
-
self.
|
|
132
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
133
133
|
end
|
|
134
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
135
|
-
self.
|
|
135
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
136
136
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
137
137
|
end
|
|
138
138
|
|
|
@@ -150,7 +150,7 @@ module OCI
|
|
|
150
150
|
def to_hash
|
|
151
151
|
hash = {}
|
|
152
152
|
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
-
value =
|
|
153
|
+
value = public_method(attr).call
|
|
154
154
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
155
155
|
hash[param] = _to_hash(value)
|
|
156
156
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -121,10 +121,10 @@ module OCI
|
|
|
121
121
|
# check to ensure the input is an array given that the the attribute
|
|
122
122
|
# is documented as an array but the input is not
|
|
123
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
124
|
-
self.
|
|
124
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
125
125
|
end
|
|
126
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
127
|
-
self.
|
|
127
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
128
128
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
129
129
|
end
|
|
130
130
|
|
|
@@ -142,7 +142,7 @@ module OCI
|
|
|
142
142
|
def to_hash
|
|
143
143
|
hash = {}
|
|
144
144
|
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
-
value =
|
|
145
|
+
value = public_method(attr).call
|
|
146
146
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
147
147
|
hash[param] = _to_hash(value)
|
|
148
148
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -67,10 +67,10 @@ module OCI
|
|
|
67
67
|
# check to ensure the input is an array given that the the attribute
|
|
68
68
|
# is documented as an array but the input is not
|
|
69
69
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
70
|
-
self.
|
|
70
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
71
71
|
end
|
|
72
72
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
73
|
-
self.
|
|
73
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
74
74
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
75
75
|
end
|
|
76
76
|
|
|
@@ -88,7 +88,7 @@ module OCI
|
|
|
88
88
|
def to_hash
|
|
89
89
|
hash = {}
|
|
90
90
|
self.class.attribute_map.each_pair do |attr, param|
|
|
91
|
-
value =
|
|
91
|
+
value = public_method(attr).call
|
|
92
92
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
93
93
|
hash[param] = _to_hash(value)
|
|
94
94
|
end
|