oci 2.0.2 → 2.0.3
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/README.md +1 -1
- data/lib/oci/audit/models/audit_event.rb +3 -3
- data/lib/oci/audit/models/configuration.rb +3 -3
- data/lib/oci/audit/models/update_configuration_details.rb +3 -3
- data/lib/oci/core/blockstorage_client.rb +155 -0
- data/lib/oci/core/compute_client.rb +176 -12
- data/lib/oci/core/core.rb +11 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +143 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +3 -3
- data/lib/oci/core/models/attach_vnic_details.rb +23 -7
- data/lib/oci/core/models/attach_volume_details.rb +3 -3
- data/lib/oci/core/models/boot_volume.rb +234 -0
- data/lib/oci/core/models/boot_volume_attachment.rb +224 -0
- data/lib/oci/core/models/capture_console_history_details.rb +3 -3
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +120 -0
- data/lib/oci/core/models/console_history.rb +3 -3
- data/lib/oci/core/models/cpe.rb +3 -3
- data/lib/oci/core/models/create_cpe_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/create_dhcp_details.rb +3 -3
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/create_drg_details.rb +3 -3
- data/lib/oci/core/models/create_image_details.rb +3 -3
- data/lib/oci/core/models/create_instance_console_connection_details.rb +5 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +144 -0
- data/lib/oci/core/models/create_private_ip_details.rb +3 -3
- data/lib/oci/core/models/create_route_table_details.rb +3 -3
- data/lib/oci/core/models/create_security_list_details.rb +3 -3
- data/lib/oci/core/models/create_subnet_details.rb +3 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -3
- data/lib/oci/core/models/create_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/create_vnic_details.rb +3 -3
- data/lib/oci/core/models/create_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/create_volume_details.rb +3 -3
- data/lib/oci/core/models/cross_connect.rb +3 -3
- data/lib/oci/core/models/cross_connect_group.rb +3 -3
- data/lib/oci/core/models/cross_connect_location.rb +3 -3
- data/lib/oci/core/models/cross_connect_mapping.rb +3 -3
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +3 -3
- data/lib/oci/core/models/cross_connect_status.rb +3 -3
- data/lib/oci/core/models/dhcp_dns_option.rb +3 -3
- data/lib/oci/core/models/dhcp_option.rb +3 -3
- data/lib/oci/core/models/dhcp_options.rb +3 -3
- data/lib/oci/core/models/dhcp_search_domain_option.rb +3 -3
- data/lib/oci/core/models/drg.rb +3 -3
- data/lib/oci/core/models/drg_attachment.rb +3 -3
- data/lib/oci/core/models/egress_security_rule.rb +3 -3
- data/lib/oci/core/models/export_image_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/fast_connect_provider_service.rb +3 -3
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +3 -3
- data/lib/oci/core/models/icmp_options.rb +3 -3
- data/lib/oci/core/models/image.rb +3 -3
- data/lib/oci/core/models/image_source_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/ingress_security_rule.rb +3 -3
- data/lib/oci/core/models/instance.rb +16 -6
- data/lib/oci/core/models/instance_console_connection.rb +9 -9
- data/lib/oci/core/models/instance_credentials.rb +3 -3
- data/lib/oci/core/models/instance_source_details.rb +135 -0
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +128 -0
- data/lib/oci/core/models/instance_source_via_image_details.rb +128 -0
- data/lib/oci/core/models/internet_gateway.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +3 -3
- data/lib/oci/core/models/launch_instance_details.rb +19 -6
- data/lib/oci/core/models/letter_of_authority.rb +3 -3
- data/lib/oci/core/models/local_peering_gateway.rb +271 -0
- data/lib/oci/core/models/port_range.rb +3 -3
- data/lib/oci/core/models/private_ip.rb +3 -3
- data/lib/oci/core/models/route_rule.rb +3 -3
- data/lib/oci/core/models/route_table.rb +3 -3
- data/lib/oci/core/models/security_list.rb +3 -3
- data/lib/oci/core/models/shape.rb +3 -3
- data/lib/oci/core/models/subnet.rb +3 -3
- data/lib/oci/core/models/tcp_options.rb +3 -3
- data/lib/oci/core/models/tunnel_config.rb +3 -3
- data/lib/oci/core/models/tunnel_status.rb +3 -3
- data/lib/oci/core/models/udp_options.rb +3 -3
- data/lib/oci/core/models/update_boot_volume_details.rb +122 -0
- data/lib/oci/core/models/update_console_history_details.rb +3 -3
- data/lib/oci/core/models/update_cpe_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/update_dhcp_details.rb +3 -3
- data/lib/oci/core/models/update_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/update_drg_details.rb +3 -3
- data/lib/oci/core/models/update_image_details.rb +3 -3
- data/lib/oci/core/models/update_instance_details.rb +3 -3
- data/lib/oci/core/models/update_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +122 -0
- data/lib/oci/core/models/update_private_ip_details.rb +3 -3
- data/lib/oci/core/models/update_route_table_details.rb +3 -3
- data/lib/oci/core/models/update_security_list_details.rb +3 -3
- data/lib/oci/core/models/update_subnet_details.rb +3 -3
- data/lib/oci/core/models/update_vcn_details.rb +3 -3
- data/lib/oci/core/models/update_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/update_vnic_details.rb +3 -3
- data/lib/oci/core/models/update_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/update_volume_details.rb +3 -3
- data/lib/oci/core/models/vcn.rb +3 -3
- data/lib/oci/core/models/virtual_circuit.rb +3 -3
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +3 -3
- data/lib/oci/core/models/vnic.rb +3 -3
- data/lib/oci/core/models/vnic_attachment.rb +20 -4
- data/lib/oci/core/models/volume.rb +3 -3
- data/lib/oci/core/models/volume_attachment.rb +3 -3
- data/lib/oci/core/models/volume_backup.rb +3 -3
- data/lib/oci/core/models/volume_source_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -3
- data/lib/oci/core/virtual_network_client.rb +233 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +3 -3
- data/lib/oci/database/models/backup_summary.rb +3 -3
- data/lib/oci/database/models/create_backup_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +3 -3
- data/lib/oci/database/models/create_database_details.rb +3 -3
- data/lib/oci/database/models/create_database_from_backup_details.rb +142 -0
- data/lib/oci/database/models/create_db_home_details.rb +3 -3
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +173 -0
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +22 -30
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +133 -0
- data/lib/oci/database/models/data_guard_association.rb +3 -3
- data/lib/oci/database/models/data_guard_association_summary.rb +3 -3
- data/lib/oci/database/models/database.rb +3 -3
- data/lib/oci/database/models/database_summary.rb +3 -3
- data/lib/oci/database/models/db_backup_config.rb +3 -3
- data/lib/oci/database/models/db_home.rb +3 -3
- data/lib/oci/database/models/db_home_summary.rb +3 -3
- data/lib/oci/database/models/db_node.rb +3 -3
- data/lib/oci/database/models/db_node_summary.rb +3 -3
- data/lib/oci/database/models/db_system.rb +3 -3
- data/lib/oci/database/models/db_system_shape_summary.rb +3 -3
- data/lib/oci/database/models/db_system_summary.rb +3 -3
- data/lib/oci/database/models/db_version_summary.rb +3 -3
- data/lib/oci/database/models/failover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/launch_db_system_details.rb +3 -3
- data/lib/oci/database/models/patch.rb +3 -3
- data/lib/oci/database/models/patch_details.rb +3 -3
- data/lib/oci/database/models/patch_history_entry.rb +3 -3
- data/lib/oci/database/models/patch_history_entry_summary.rb +3 -3
- data/lib/oci/database/models/patch_summary.rb +3 -3
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/restore_database_details.rb +3 -3
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/update_database_details.rb +3 -3
- data/lib/oci/database/models/update_db_home_details.rb +3 -3
- data/lib/oci/database/models/update_db_system_details.rb +3 -3
- data/lib/oci/identity/models/add_user_to_group_details.rb +3 -3
- data/lib/oci/identity/models/api_key.rb +3 -3
- data/lib/oci/identity/models/availability_domain.rb +3 -3
- data/lib/oci/identity/models/compartment.rb +3 -3
- data/lib/oci/identity/models/create_api_key_details.rb +3 -3
- data/lib/oci/identity/models/create_compartment_details.rb +3 -3
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/create_group_details.rb +3 -3
- data/lib/oci/identity/models/create_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/create_policy_details.rb +3 -3
- data/lib/oci/identity/models/create_region_subscription_details.rb +3 -3
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/create_user_details.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key_summary.rb +3 -3
- data/lib/oci/identity/models/group.rb +3 -3
- data/lib/oci/identity/models/identity_provider.rb +3 -3
- data/lib/oci/identity/models/idp_group_mapping.rb +3 -3
- data/lib/oci/identity/models/policy.rb +3 -3
- data/lib/oci/identity/models/region.rb +3 -3
- data/lib/oci/identity/models/region_subscription.rb +3 -3
- data/lib/oci/identity/models/saml2_identity_provider.rb +3 -3
- data/lib/oci/identity/models/swift_password.rb +3 -3
- data/lib/oci/identity/models/tenancy.rb +3 -3
- data/lib/oci/identity/models/ui_password.rb +3 -3
- data/lib/oci/identity/models/update_compartment_details.rb +3 -3
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/update_group_details.rb +3 -3
- data/lib/oci/identity/models/update_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/update_policy_details.rb +3 -3
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_state_details.rb +3 -3
- data/lib/oci/identity/models/update_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/update_user_details.rb +3 -3
- data/lib/oci/identity/models/user.rb +3 -3
- data/lib/oci/identity/models/user_group_membership.rb +3 -3
- data/lib/oci/load_balancer/load_balancer_client.rb +27 -1
- data/lib/oci/load_balancer/models/backend.rb +3 -3
- data/lib/oci/load_balancer/models/backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_health.rb +3 -3
- data/lib/oci/load_balancer/models/certificate.rb +3 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +5 -5
- data/lib/oci/load_balancer/models/create_certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/ip_address.rb +3 -3
- data/lib/oci/load_balancer/models/listener.rb +3 -3
- data/lib/oci/load_balancer/models/listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer.rb +6 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +5 -5
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -3
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -3
- data/lib/oci/load_balancer/models/work_request.rb +5 -3
- data/lib/oci/load_balancer/models/work_request_error.rb +3 -3
- data/lib/oci/object_storage/models/bucket.rb +3 -3
- data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +3 -3
- data/lib/oci/object_storage/models/create_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +3 -3
- data/lib/oci/object_storage/models/list_objects.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +3 -3
- data/lib/oci/object_storage/models/namespace_metadata.rb +3 -3
- data/lib/oci/object_storage/models/object_summary.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -3
- data/lib/oci/object_storage/models/rename_object_details.rb +3 -3
- data/lib/oci/object_storage/models/restore_objects_details.rb +3 -3
- data/lib/oci/object_storage/models/update_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +3 -3
- data/lib/oci/version.rb +1 -1
- metadata +16 -2
|
@@ -63,10 +63,10 @@ module OCI
|
|
|
63
63
|
# check to ensure the input is an array given that the the attribute
|
|
64
64
|
# is documented as an array but the input is not
|
|
65
65
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
66
|
-
self.
|
|
66
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
67
67
|
end
|
|
68
68
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
69
|
-
self.
|
|
69
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
70
70
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -84,7 +84,7 @@ module OCI
|
|
|
84
84
|
def to_hash
|
|
85
85
|
hash = {}
|
|
86
86
|
self.class.attribute_map.each_pair do |attr, param|
|
|
87
|
-
value =
|
|
87
|
+
value = public_send(attr)
|
|
88
88
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
89
89
|
hash[param] = _to_hash(value)
|
|
90
90
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -57,10 +57,10 @@ module OCI
|
|
|
57
57
|
# check to ensure the input is an array given that the the attribute
|
|
58
58
|
# is documented as an array but the input is not
|
|
59
59
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
60
|
-
self.
|
|
60
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
61
61
|
end
|
|
62
62
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
63
|
-
self.
|
|
63
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
64
64
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -78,7 +78,7 @@ module OCI
|
|
|
78
78
|
def to_hash
|
|
79
79
|
hash = {}
|
|
80
80
|
self.class.attribute_map.each_pair do |attr, param|
|
|
81
|
-
value =
|
|
81
|
+
value = public_send(attr)
|
|
82
82
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
83
83
|
hash[param] = _to_hash(value)
|
|
84
84
|
end
|
|
@@ -57,10 +57,10 @@ module OCI
|
|
|
57
57
|
# check to ensure the input is an array given that the the attribute
|
|
58
58
|
# is documented as an array but the input is not
|
|
59
59
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
60
|
-
self.
|
|
60
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
61
61
|
end
|
|
62
62
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
63
|
-
self.
|
|
63
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
64
64
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -78,7 +78,7 @@ module OCI
|
|
|
78
78
|
def to_hash
|
|
79
79
|
hash = {}
|
|
80
80
|
self.class.attribute_map.each_pair do |attr, param|
|
|
81
|
-
value =
|
|
81
|
+
value = public_send(attr)
|
|
82
82
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
83
83
|
hash[param] = _to_hash(value)
|
|
84
84
|
end
|
|
@@ -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.
|
|
67
|
+
self.public_send("#{key}=", 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.
|
|
70
|
+
self.public_send("#{key}=", 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 =
|
|
88
|
+
value = public_send(attr)
|
|
89
89
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
90
90
|
hash[param] = _to_hash(value)
|
|
91
91
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
module OCI
|
|
6
|
+
class Core::Models::UpdateLocalPeeringGatewayDetails
|
|
7
|
+
# A user-friendly name. Does not have to be unique, and it's changeable. Avoid
|
|
8
|
+
# entering confidential information.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
attr_accessor :display_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# Initializes the object
|
|
15
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
16
|
+
def initialize(attributes = {})
|
|
17
|
+
return unless attributes.is_a?(Hash)
|
|
18
|
+
|
|
19
|
+
# convert string to symbol for hash key
|
|
20
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
21
|
+
|
|
22
|
+
if attributes[:'displayName']
|
|
23
|
+
self.display_name = attributes[:'displayName']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Checks equality by comparing each attribute.
|
|
29
|
+
# @param [Object] other_object to be compared
|
|
30
|
+
def ==(other_object)
|
|
31
|
+
return true if self.equal?(other_object)
|
|
32
|
+
self.class == other_object.class &&
|
|
33
|
+
display_name == other_object.display_name
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @see the `==` method
|
|
37
|
+
# @param [Object] other_object to be compared
|
|
38
|
+
def eql?(other_object)
|
|
39
|
+
self == other_object
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Calculates hash code according to all attributes.
|
|
43
|
+
# @return [Fixnum] Hash code
|
|
44
|
+
def hash
|
|
45
|
+
[display_name].hash
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Builds the object from hash
|
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
+
# @return [Object] Returns the model itself
|
|
51
|
+
def build_from_hash(attributes)
|
|
52
|
+
return nil unless attributes.is_a?(Hash)
|
|
53
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
54
|
+
if type =~ /^Array<(.*)>/i
|
|
55
|
+
# check to ensure the input is an array given that the the attribute
|
|
56
|
+
# is documented as an array but the input is not
|
|
57
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
|
+
end
|
|
60
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
self
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the string representation of the object
|
|
69
|
+
# @return [String] String presentation of the object
|
|
70
|
+
def to_s
|
|
71
|
+
to_hash.to_s
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Returns the object in the form of hash
|
|
75
|
+
# @return [Hash] Returns the object in the form of hash
|
|
76
|
+
def to_hash
|
|
77
|
+
hash = {}
|
|
78
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
+
value = public_send(attr)
|
|
80
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
|
+
hash[param] = _to_hash(value)
|
|
82
|
+
end
|
|
83
|
+
hash
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
private
|
|
87
|
+
|
|
88
|
+
# Outputs non-array value in the form of hash
|
|
89
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
90
|
+
# @param [Object] value Any valid value
|
|
91
|
+
# @return [Hash] Returns the value in the form of hash
|
|
92
|
+
def _to_hash(value)
|
|
93
|
+
if value.is_a?(Array)
|
|
94
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
95
|
+
elsif value.is_a?(Hash)
|
|
96
|
+
{}.tap do |hash|
|
|
97
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
98
|
+
end
|
|
99
|
+
elsif value.respond_to? :to_hash
|
|
100
|
+
value.to_hash
|
|
101
|
+
else
|
|
102
|
+
value
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
109
|
+
def self.attribute_map
|
|
110
|
+
{
|
|
111
|
+
:'display_name' => :'displayName'
|
|
112
|
+
}
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Attribute type mapping.
|
|
116
|
+
def self.swagger_types
|
|
117
|
+
{
|
|
118
|
+
:'display_name' => :'String'
|
|
119
|
+
}
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -86,10 +86,10 @@ module OCI
|
|
|
86
86
|
# check to ensure the input is an array given that the the attribute
|
|
87
87
|
# is documented as an array but the input is not
|
|
88
88
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
89
|
-
self.
|
|
89
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
90
90
|
end
|
|
91
91
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
92
|
-
self.
|
|
92
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
93
93
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -107,7 +107,7 @@ module OCI
|
|
|
107
107
|
def to_hash
|
|
108
108
|
hash = {}
|
|
109
109
|
self.class.attribute_map.each_pair do |attr, param|
|
|
110
|
-
value =
|
|
110
|
+
value = public_send(attr)
|
|
111
111
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
112
112
|
hash[param] = _to_hash(value)
|
|
113
113
|
end
|
|
@@ -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.
|
|
67
|
+
self.public_send("#{key}=", 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.
|
|
70
|
+
self.public_send("#{key}=", 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 =
|
|
88
|
+
value = public_send(attr)
|
|
89
89
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
90
90
|
hash[param] = _to_hash(value)
|
|
91
91
|
end
|
|
@@ -73,10 +73,10 @@ module OCI
|
|
|
73
73
|
# check to ensure the input is an array given that the the attribute
|
|
74
74
|
# is documented as an array but the input is not
|
|
75
75
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
76
|
-
self.
|
|
76
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
77
77
|
end
|
|
78
78
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
79
|
-
self.
|
|
79
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
80
80
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -94,7 +94,7 @@ module OCI
|
|
|
94
94
|
def to_hash
|
|
95
95
|
hash = {}
|
|
96
96
|
self.class.attribute_map.each_pair do |attr, param|
|
|
97
|
-
value =
|
|
97
|
+
value = public_send(attr)
|
|
98
98
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
99
99
|
hash[param] = _to_hash(value)
|
|
100
100
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -160,10 +160,10 @@ module OCI
|
|
|
160
160
|
# check to ensure the input is an array given that the the attribute
|
|
161
161
|
# is documented as an array but the input is not
|
|
162
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
163
|
-
self.
|
|
163
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
164
164
|
end
|
|
165
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
166
|
-
self.
|
|
166
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
167
167
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -181,7 +181,7 @@ module OCI
|
|
|
181
181
|
def to_hash
|
|
182
182
|
hash = {}
|
|
183
183
|
self.class.attribute_map.each_pair do |attr, param|
|
|
184
|
-
value =
|
|
184
|
+
value = public_send(attr)
|
|
185
185
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
186
186
|
hash[param] = _to_hash(value)
|
|
187
187
|
end
|
|
@@ -90,10 +90,10 @@ module OCI
|
|
|
90
90
|
# check to ensure the input is an array given that the the attribute
|
|
91
91
|
# is documented as an array but the input is not
|
|
92
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
93
|
-
self.
|
|
93
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
94
94
|
end
|
|
95
95
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
96
|
-
self.
|
|
96
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
97
97
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
98
98
|
end
|
|
99
99
|
|
|
@@ -111,7 +111,7 @@ module OCI
|
|
|
111
111
|
def to_hash
|
|
112
112
|
hash = {}
|
|
113
113
|
self.class.attribute_map.each_pair do |attr, param|
|
|
114
|
-
value =
|
|
114
|
+
value = public_send(attr)
|
|
115
115
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
116
116
|
hash[param] = _to_hash(value)
|
|
117
117
|
end
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_send(attr)
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|