oci 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/oci.rb +1 -0
- data/lib/oci/api_client.rb +21 -11
- data/lib/oci/audit/models/audit_event.rb +133 -19
- data/lib/oci/audit/models/configuration.rb +7 -1
- data/lib/oci/audit/models/update_configuration_details.rb +7 -1
- data/lib/oci/base_signer.rb +1 -2
- data/lib/oci/core/models/attach_boot_volume_details.rb +21 -3
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +11 -5
- data/lib/oci/core/models/attach_vnic_details.rb +28 -4
- data/lib/oci/core/models/attach_volume_details.rb +28 -4
- data/lib/oci/core/models/boot_volume.rb +56 -8
- data/lib/oci/core/models/boot_volume_attachment.rb +49 -7
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +7 -1
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +7 -1
- data/lib/oci/core/models/capture_console_history_details.rb +28 -4
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +7 -1
- data/lib/oci/core/models/console_history.rb +56 -8
- data/lib/oci/core/models/cpe.rb +28 -4
- data/lib/oci/core/models/create_cpe_details.rb +21 -3
- data/lib/oci/core/models/create_cross_connect_details.rb +49 -7
- data/lib/oci/core/models/create_cross_connect_group_details.rb +14 -2
- data/lib/oci/core/models/create_dhcp_details.rb +35 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +21 -3
- data/lib/oci/core/models/create_drg_details.rb +14 -2
- data/lib/oci/core/models/create_image_details.rb +49 -7
- data/lib/oci/core/models/create_instance_console_connection_details.rb +28 -4
- data/lib/oci/core/models/create_internet_gateway_details.rb +28 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +35 -5
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +21 -3
- data/lib/oci/core/models/create_private_ip_details.rb +42 -6
- data/lib/oci/core/models/create_public_ip_details.rb +21 -3
- data/lib/oci/core/models/create_route_table_details.rb +42 -6
- data/lib/oci/core/models/create_security_list_details.rb +49 -7
- data/lib/oci/core/models/create_subnet_details.rb +84 -12
- data/lib/oci/core/models/create_vcn_details.rb +42 -6
- data/lib/oci/core/models/create_virtual_circuit_details.rb +70 -10
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +7 -1
- data/lib/oci/core/models/create_vnic_details.rb +42 -6
- data/lib/oci/core/models/create_volume_backup_details.rb +28 -4
- data/lib/oci/core/models/create_volume_backup_policy_assignment_details.rb +14 -2
- data/lib/oci/core/models/create_volume_details.rb +70 -10
- data/lib/oci/core/models/cross_connect.rb +56 -8
- data/lib/oci/core/models/cross_connect_group.rb +28 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +28 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +7 -1
- data/lib/oci/core/models/cross_connect_status.rb +28 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +7 -1
- data/lib/oci/core/models/dhcp_dns_option.rb +14 -2
- data/lib/oci/core/models/dhcp_options.rb +49 -7
- data/lib/oci/core/models/dhcp_search_domain_option.rb +7 -1
- data/lib/oci/core/models/drg.rb +28 -4
- data/lib/oci/core/models/drg_attachment.rb +42 -6
- data/lib/oci/core/models/egress_security_rule.rb +28 -4
- data/lib/oci/core/models/export_image_details.rb +7 -1
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +21 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +7 -1
- data/lib/oci/core/models/fast_connect_provider_service.rb +35 -5
- data/lib/oci/core/models/get_public_ip_by_ip_address_details.rb +7 -1
- data/lib/oci/core/models/get_public_ip_by_private_ip_id_details.rb +7 -1
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +22 -10
- data/lib/oci/core/models/image.rb +84 -12
- data/lib/oci/core/models/image_source_details.rb +14 -2
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +22 -4
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -2
- data/lib/oci/core/models/ingress_security_rule.rb +28 -4
- data/lib/oci/core/models/instance.rb +91 -13
- data/lib/oci/core/models/instance_console_connection.rb +49 -7
- data/lib/oci/core/models/instance_source_details.rb +7 -1
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +7 -1
- data/lib/oci/core/models/instance_source_via_image_details.rb +7 -1
- data/lib/oci/core/models/internet_gateway.rb +42 -6
- data/lib/oci/core/models/ip_sec_connection.rb +49 -7
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +14 -2
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +14 -2
- data/lib/oci/core/models/launch_instance_details.rb +84 -12
- data/lib/oci/core/models/launch_options.rb +21 -3
- data/lib/oci/core/models/letter_of_authority.rb +49 -7
- data/lib/oci/core/models/local_peering_gateway.rb +63 -9
- data/lib/oci/core/models/private_ip.rb +77 -11
- data/lib/oci/core/models/public_ip.rb +49 -7
- data/lib/oci/core/models/route_rule.rb +14 -2
- data/lib/oci/core/models/route_table.rb +56 -8
- data/lib/oci/core/models/security_list.rb +63 -9
- data/lib/oci/core/models/subnet.rb +119 -17
- data/lib/oci/core/models/tcp_options.rb +14 -2
- data/lib/oci/core/models/tunnel_config.rb +21 -3
- data/lib/oci/core/models/tunnel_status.rb +28 -4
- data/lib/oci/core/models/udp_options.rb +14 -2
- data/lib/oci/core/models/update_boot_volume_details.rb +7 -1
- data/lib/oci/core/models/update_console_history_details.rb +21 -3
- data/lib/oci/core/models/update_cpe_details.rb +7 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +14 -2
- data/lib/oci/core/models/update_cross_connect_group_details.rb +7 -1
- data/lib/oci/core/models/update_dhcp_details.rb +21 -3
- data/lib/oci/core/models/update_drg_attachment_details.rb +7 -1
- data/lib/oci/core/models/update_drg_details.rb +7 -1
- data/lib/oci/core/models/update_image_details.rb +21 -3
- data/lib/oci/core/models/update_instance_details.rb +21 -3
- data/lib/oci/core/models/update_internet_gateway_details.rb +14 -2
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +7 -1
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +7 -1
- data/lib/oci/core/models/update_private_ip_details.rb +35 -5
- data/lib/oci/core/models/update_public_ip_details.rb +14 -2
- data/lib/oci/core/models/update_route_table_details.rb +28 -4
- data/lib/oci/core/models/update_security_list_details.rb +35 -5
- data/lib/oci/core/models/update_subnet_details.rb +21 -3
- data/lib/oci/core/models/update_vcn_details.rb +21 -3
- data/lib/oci/core/models/update_virtual_circuit_details.rb +49 -7
- data/lib/oci/core/models/update_vnic_details.rb +21 -3
- data/lib/oci/core/models/update_volume_backup_details.rb +21 -3
- data/lib/oci/core/models/update_volume_details.rb +21 -3
- data/lib/oci/core/models/vcn.rb +84 -12
- data/lib/oci/core/models/virtual_circuit.rb +126 -18
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +7 -1
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +14 -2
- data/lib/oci/core/models/vnic.rb +84 -12
- data/lib/oci/core/models/vnic_attachment.rb +70 -10
- data/lib/oci/core/models/volume.rb +77 -11
- data/lib/oci/core/models/volume_attachment.rb +63 -9
- data/lib/oci/core/models/volume_backup.rb +98 -14
- data/lib/oci/core/models/volume_backup_policy.rb +14 -2
- data/lib/oci/core/models/volume_backup_policy_assignment.rb +21 -3
- data/lib/oci/core/models/volume_backup_schedule.rb +21 -3
- data/lib/oci/database/database_client.rb +2 -2
- data/lib/oci/database/models/backup.rb +56 -8
- data/lib/oci/database/models/backup_summary.rb +56 -8
- data/lib/oci/database/models/create_backup_details.rb +14 -2
- data/lib/oci/database/models/create_data_guard_association_details.rb +28 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +10 -4
- data/lib/oci/database/models/create_database_details.rb +49 -7
- data/lib/oci/database/models/create_database_from_backup_details.rb +21 -3
- data/lib/oci/database/models/create_db_home_details.rb +14 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +14 -2
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +9 -3
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -2
- data/lib/oci/database/models/data_guard_association.rb +91 -13
- data/lib/oci/database/models/data_guard_association_summary.rb +91 -13
- data/lib/oci/database/models/database.rb +84 -12
- data/lib/oci/database/models/database_summary.rb +84 -12
- data/lib/oci/database/models/db_backup_config.rb +7 -1
- data/lib/oci/database/models/db_home.rb +49 -7
- data/lib/oci/database/models/db_home_summary.rb +49 -7
- data/lib/oci/database/models/db_node.rb +42 -6
- data/lib/oci/database/models/db_node_summary.rb +42 -6
- data/lib/oci/database/models/db_system.rb +161 -23
- data/lib/oci/database/models/db_system_shape_summary.rb +7 -1
- data/lib/oci/database/models/db_system_summary.rb +161 -23
- data/lib/oci/database/models/db_version_summary.rb +7 -1
- data/lib/oci/database/models/failover_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/launch_db_system_details.rb +105 -15
- data/lib/oci/database/models/patch.rb +35 -5
- data/lib/oci/database/models/patch_details.rb +7 -1
- data/lib/oci/database/models/patch_history_entry.rb +35 -5
- data/lib/oci/database/models/patch_history_entry_summary.rb +35 -5
- data/lib/oci/database/models/patch_summary.rb +35 -5
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/restore_database_details.rb +7 -1
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +7 -1
- data/lib/oci/database/models/update_database_details.rb +7 -1
- data/lib/oci/database/models/update_db_home_details.rb +7 -1
- data/lib/oci/database/models/update_db_system_details.rb +21 -3
- data/lib/oci/dns/models/create_zone_details.rb +21 -3
- data/lib/oci/dns/models/record.rb +21 -3
- data/lib/oci/dns/models/record_details.rb +21 -3
- data/lib/oci/dns/models/record_operation.rb +21 -3
- data/lib/oci/dns/models/update_zone_details.rb +7 -1
- data/lib/oci/dns/models/zone.rb +42 -6
- data/lib/oci/dns/models/zone_summary.rb +28 -4
- data/lib/oci/file_storage/file_storage.rb +33 -0
- data/lib/oci/file_storage/file_storage_client.rb +1117 -0
- data/lib/oci/file_storage/models/create_export_details.rb +162 -0
- data/lib/oci/file_storage/models/create_file_system_details.rb +170 -0
- data/lib/oci/file_storage/models/create_mount_target_details.rb +242 -0
- data/lib/oci/file_storage/models/create_snapshot_details.rb +146 -0
- data/lib/oci/file_storage/models/export.rb +261 -0
- data/lib/oci/file_storage/models/export_set.rb +315 -0
- data/lib/oci/file_storage/models/export_set_summary.rb +260 -0
- data/lib/oci/file_storage/models/export_summary.rb +233 -0
- data/lib/oci/file_storage/models/file_system.rb +273 -0
- data/lib/oci/file_storage/models/file_system_summary.rb +265 -0
- data/lib/oci/file_storage/models/mount_target.rb +320 -0
- data/lib/oci/file_storage/models/mount_target_summary.rb +300 -0
- data/lib/oci/file_storage/models/snapshot.rb +217 -0
- data/lib/oci/file_storage/models/snapshot_summary.rb +217 -0
- data/lib/oci/file_storage/models/update_export_set_details.rb +185 -0
- data/lib/oci/file_storage/models/update_file_system_details.rb +131 -0
- data/lib/oci/file_storage/models/update_mount_target_details.rb +131 -0
- data/lib/oci/file_storage/util.rb +2 -0
- data/lib/oci/identity/models/add_user_to_group_details.rb +14 -2
- data/lib/oci/identity/models/api_key.rb +42 -6
- data/lib/oci/identity/models/availability_domain.rb +7 -1
- data/lib/oci/identity/models/compartment.rb +42 -6
- data/lib/oci/identity/models/create_compartment_details.rb +21 -3
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +7 -1
- data/lib/oci/identity/models/create_dynamic_group_details.rb +14 -2
- data/lib/oci/identity/models/create_group_details.rb +21 -3
- data/lib/oci/identity/models/create_identity_provider_details.rb +28 -4
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +14 -2
- data/lib/oci/identity/models/create_policy_details.rb +28 -4
- data/lib/oci/identity/models/create_region_subscription_details.rb +7 -1
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_tag_details.rb +14 -2
- data/lib/oci/identity/models/create_tag_namespace_details.rb +21 -3
- data/lib/oci/identity/models/create_user_details.rb +21 -3
- data/lib/oci/identity/models/customer_secret_key.rb +42 -6
- data/lib/oci/identity/models/customer_secret_key_summary.rb +42 -6
- data/lib/oci/identity/models/dynamic_group.rb +35 -5
- data/lib/oci/identity/models/group.rb +42 -6
- data/lib/oci/identity/models/identity_provider.rb +49 -7
- data/lib/oci/identity/models/idp_group_mapping.rb +49 -7
- data/lib/oci/identity/models/policy.rb +49 -7
- data/lib/oci/identity/models/region_subscription.rb +21 -3
- data/lib/oci/identity/models/saml2_identity_provider.rb +28 -10
- data/lib/oci/identity/models/swift_password.rb +35 -5
- data/lib/oci/identity/models/tag.rb +49 -7
- data/lib/oci/identity/models/tag_namespace.rb +35 -5
- data/lib/oci/identity/models/tag_namespace_summary.rb +35 -5
- data/lib/oci/identity/models/tag_summary.rb +35 -5
- data/lib/oci/identity/models/tenancy.rb +21 -3
- data/lib/oci/identity/models/ui_password.rb +28 -4
- data/lib/oci/identity/models/update_compartment_details.rb +14 -2
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +7 -1
- data/lib/oci/identity/models/update_dynamic_group_details.rb +7 -1
- data/lib/oci/identity/models/update_group_details.rb +14 -2
- data/lib/oci/identity/models/update_identity_provider_details.rb +14 -2
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +14 -2
- data/lib/oci/identity/models/update_policy_details.rb +21 -3
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +9 -3
- data/lib/oci/identity/models/update_tag_details.rb +21 -3
- data/lib/oci/identity/models/update_tag_namespace_details.rb +21 -3
- data/lib/oci/identity/models/update_user_details.rb +14 -2
- data/lib/oci/identity/models/user.rb +42 -6
- data/lib/oci/identity/models/user_group_membership.rb +42 -6
- data/lib/oci/load_balancer/models/backend.rb +7 -1
- data/lib/oci/load_balancer/models/backend_details.rb +7 -1
- data/lib/oci/load_balancer/models/backend_health.rb +7 -1
- data/lib/oci/load_balancer/models/backend_set.rb +21 -3
- data/lib/oci/load_balancer/models/backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/backend_set_health.rb +28 -4
- data/lib/oci/load_balancer/models/certificate.rb +21 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +28 -4
- data/lib/oci/load_balancer/models/connection_configuration.rb +7 -1
- data/lib/oci/load_balancer/models/create_backend_details.rb +7 -1
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/create_certificate_details.rb +28 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +51 -7
- data/lib/oci/load_balancer/models/create_path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/health_check_result.rb +21 -3
- data/lib/oci/load_balancer/models/health_checker.rb +35 -5
- data/lib/oci/load_balancer/models/health_checker_details.rb +35 -5
- data/lib/oci/load_balancer/models/ip_address.rb +14 -2
- data/lib/oci/load_balancer/models/listener.rb +28 -4
- data/lib/oci/load_balancer/models/listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +70 -10
- data/lib/oci/load_balancer/models/load_balancer_health.rb +28 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +7 -1
- data/lib/oci/load_balancer/models/path_match_type.rb +7 -1
- data/lib/oci/load_balancer/models/path_route.rb +14 -2
- data/lib/oci/load_balancer/models/path_route_set.rb +7 -1
- data/lib/oci/load_balancer/models/path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +16 -2
- data/lib/oci/load_balancer/models/ssl_configuration.rb +23 -3
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +23 -3
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -3
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +35 -5
- data/lib/oci/load_balancer/models/update_listener_details.rb +28 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +7 -1
- data/lib/oci/load_balancer/models/update_path_route_set_details.rb +7 -1
- data/lib/oci/load_balancer/models/work_request.rb +35 -5
- data/lib/oci/load_balancer/models/work_request_error.rb +7 -1
- data/lib/oci/object_storage/models/bucket.rb +83 -11
- data/lib/oci/object_storage/models/bucket_summary.rb +67 -7
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +14 -2
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +7 -1
- data/lib/oci/object_storage/models/create_bucket_details.rb +67 -7
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +21 -3
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +21 -3
- data/lib/oci/object_storage/models/list_objects.rb +7 -1
- data/lib/oci/object_storage/models/multipart_upload.rb +14 -2
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +7 -1
- data/lib/oci/object_storage/models/namespace_metadata.rb +14 -2
- data/lib/oci/object_storage/models/object_summary.rb +7 -1
- data/lib/oci/object_storage/models/preauthenticated_request.rb +35 -5
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +28 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +35 -5
- data/lib/oci/object_storage/models/restore_objects_details.rb +25 -5
- data/lib/oci/object_storage/models/update_bucket_details.rb +60 -6
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +14 -2
- data/lib/oci/object_storage/object_storage_client.rb +17 -5
- data/lib/oci/object_storage/transfer/multipart/multipart_object_assembler.rb +11 -3
- data/lib/oci/signer.rb +0 -8
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waiter.rb +1 -0
- metadata +22 -2
@@ -0,0 +1,131 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
class FileStorage::Models::UpdateFileSystemDetails
|
7
|
+
# A user-friendly name. It does not have to be unique, and it is changeable.
|
8
|
+
# Avoid entering confidential information.
|
9
|
+
#
|
10
|
+
# Example: `My file system`
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :display_name
|
14
|
+
|
15
|
+
|
16
|
+
# Initializes the object
|
17
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
18
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
19
|
+
def initialize(attributes = {})
|
20
|
+
return unless attributes.is_a?(Hash)
|
21
|
+
|
22
|
+
# convert string to symbol for hash key
|
23
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
24
|
+
|
25
|
+
if attributes[:'displayName']
|
26
|
+
self.display_name = attributes[:'displayName']
|
27
|
+
end
|
28
|
+
|
29
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
30
|
+
|
31
|
+
if attributes[:'display_name']
|
32
|
+
self.display_name = attributes[:'display_name']
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
# Checks equality by comparing each attribute.
|
38
|
+
# @param [Object] other_object to be compared
|
39
|
+
def ==(other_object)
|
40
|
+
return true if self.equal?(other_object)
|
41
|
+
self.class == other_object.class &&
|
42
|
+
display_name == other_object.display_name
|
43
|
+
end
|
44
|
+
|
45
|
+
# @see the `==` method
|
46
|
+
# @param [Object] other_object to be compared
|
47
|
+
def eql?(other_object)
|
48
|
+
self == other_object
|
49
|
+
end
|
50
|
+
|
51
|
+
# Calculates hash code according to all attributes.
|
52
|
+
# @return [Fixnum] Hash code
|
53
|
+
def hash
|
54
|
+
[display_name].hash
|
55
|
+
end
|
56
|
+
|
57
|
+
# Builds the object from hash
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
# @return [Object] Returns the model itself
|
60
|
+
def build_from_hash(attributes)
|
61
|
+
return nil unless attributes.is_a?(Hash)
|
62
|
+
self.class.swagger_types.each_pair do |key, type|
|
63
|
+
if type =~ /^Array<(.*)>/i
|
64
|
+
# check to ensure the input is an array given that the the attribute
|
65
|
+
# is documented as an array but the input is not
|
66
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
67
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
68
|
+
end
|
69
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
70
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
71
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
72
|
+
end
|
73
|
+
|
74
|
+
self
|
75
|
+
end
|
76
|
+
|
77
|
+
# Returns the string representation of the object
|
78
|
+
# @return [String] String presentation of the object
|
79
|
+
def to_s
|
80
|
+
to_hash.to_s
|
81
|
+
end
|
82
|
+
|
83
|
+
# Returns the object in the form of hash
|
84
|
+
# @return [Hash] Returns the object in the form of hash
|
85
|
+
def to_hash
|
86
|
+
hash = {}
|
87
|
+
self.class.attribute_map.each_pair do |attr, param|
|
88
|
+
value = public_method(attr).call
|
89
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
90
|
+
hash[param] = _to_hash(value)
|
91
|
+
end
|
92
|
+
hash
|
93
|
+
end
|
94
|
+
|
95
|
+
private
|
96
|
+
|
97
|
+
# Outputs non-array value in the form of hash
|
98
|
+
# For object, use to_hash. Otherwise, just return the value
|
99
|
+
# @param [Object] value Any valid value
|
100
|
+
# @return [Hash] Returns the value in the form of hash
|
101
|
+
def _to_hash(value)
|
102
|
+
if value.is_a?(Array)
|
103
|
+
value.compact.map{ |v| _to_hash(v) }
|
104
|
+
elsif value.is_a?(Hash)
|
105
|
+
{}.tap do |hash|
|
106
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
107
|
+
end
|
108
|
+
elsif value.respond_to? :to_hash
|
109
|
+
value.to_hash
|
110
|
+
else
|
111
|
+
value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
118
|
+
def self.attribute_map
|
119
|
+
{
|
120
|
+
:'display_name' => :'displayName'
|
121
|
+
}
|
122
|
+
end
|
123
|
+
|
124
|
+
# Attribute type mapping.
|
125
|
+
def self.swagger_types
|
126
|
+
{
|
127
|
+
:'display_name' => :'String'
|
128
|
+
}
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
class FileStorage::Models::UpdateMountTargetDetails
|
7
|
+
# A user-friendly name. Does not have to be unique, and it is changeable.
|
8
|
+
# Avoid entering confidential information.
|
9
|
+
#
|
10
|
+
# Example: `My mount target`
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :display_name
|
14
|
+
|
15
|
+
|
16
|
+
# Initializes the object
|
17
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
18
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
19
|
+
def initialize(attributes = {})
|
20
|
+
return unless attributes.is_a?(Hash)
|
21
|
+
|
22
|
+
# convert string to symbol for hash key
|
23
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
24
|
+
|
25
|
+
if attributes[:'displayName']
|
26
|
+
self.display_name = attributes[:'displayName']
|
27
|
+
end
|
28
|
+
|
29
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
30
|
+
|
31
|
+
if attributes[:'display_name']
|
32
|
+
self.display_name = attributes[:'display_name']
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
# Checks equality by comparing each attribute.
|
38
|
+
# @param [Object] other_object to be compared
|
39
|
+
def ==(other_object)
|
40
|
+
return true if self.equal?(other_object)
|
41
|
+
self.class == other_object.class &&
|
42
|
+
display_name == other_object.display_name
|
43
|
+
end
|
44
|
+
|
45
|
+
# @see the `==` method
|
46
|
+
# @param [Object] other_object to be compared
|
47
|
+
def eql?(other_object)
|
48
|
+
self == other_object
|
49
|
+
end
|
50
|
+
|
51
|
+
# Calculates hash code according to all attributes.
|
52
|
+
# @return [Fixnum] Hash code
|
53
|
+
def hash
|
54
|
+
[display_name].hash
|
55
|
+
end
|
56
|
+
|
57
|
+
# Builds the object from hash
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
# @return [Object] Returns the model itself
|
60
|
+
def build_from_hash(attributes)
|
61
|
+
return nil unless attributes.is_a?(Hash)
|
62
|
+
self.class.swagger_types.each_pair do |key, type|
|
63
|
+
if type =~ /^Array<(.*)>/i
|
64
|
+
# check to ensure the input is an array given that the the attribute
|
65
|
+
# is documented as an array but the input is not
|
66
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
67
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
68
|
+
end
|
69
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
70
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
71
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
72
|
+
end
|
73
|
+
|
74
|
+
self
|
75
|
+
end
|
76
|
+
|
77
|
+
# Returns the string representation of the object
|
78
|
+
# @return [String] String presentation of the object
|
79
|
+
def to_s
|
80
|
+
to_hash.to_s
|
81
|
+
end
|
82
|
+
|
83
|
+
# Returns the object in the form of hash
|
84
|
+
# @return [Hash] Returns the object in the form of hash
|
85
|
+
def to_hash
|
86
|
+
hash = {}
|
87
|
+
self.class.attribute_map.each_pair do |attr, param|
|
88
|
+
value = public_method(attr).call
|
89
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
90
|
+
hash[param] = _to_hash(value)
|
91
|
+
end
|
92
|
+
hash
|
93
|
+
end
|
94
|
+
|
95
|
+
private
|
96
|
+
|
97
|
+
# Outputs non-array value in the form of hash
|
98
|
+
# For object, use to_hash. Otherwise, just return the value
|
99
|
+
# @param [Object] value Any valid value
|
100
|
+
# @return [Hash] Returns the value in the form of hash
|
101
|
+
def _to_hash(value)
|
102
|
+
if value.is_a?(Array)
|
103
|
+
value.compact.map{ |v| _to_hash(v) }
|
104
|
+
elsif value.is_a?(Hash)
|
105
|
+
{}.tap do |hash|
|
106
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
107
|
+
end
|
108
|
+
elsif value.respond_to? :to_hash
|
109
|
+
value.to_hash
|
110
|
+
else
|
111
|
+
value
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
118
|
+
def self.attribute_map
|
119
|
+
{
|
120
|
+
:'display_name' => :'displayName'
|
121
|
+
}
|
122
|
+
end
|
123
|
+
|
124
|
+
# Attribute type mapping.
|
125
|
+
def self.swagger_types
|
126
|
+
{
|
127
|
+
:'display_name' => :'String'
|
128
|
+
}
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -15,8 +15,8 @@ module OCI
|
|
15
15
|
|
16
16
|
# Initializes the object
|
17
17
|
# @param [Hash] attributes Model attributes in the form of hash
|
18
|
-
# @option attributes [String] :
|
19
|
-
# @option attributes [String] :
|
18
|
+
# @option attributes [String] :user_id The value to assign to the {#user_id} property
|
19
|
+
# @option attributes [String] :group_id The value to assign to the {#group_id} property
|
20
20
|
def initialize(attributes = {})
|
21
21
|
return unless attributes.is_a?(Hash)
|
22
22
|
|
@@ -27,10 +27,22 @@ module OCI
|
|
27
27
|
self.user_id = attributes[:'userId']
|
28
28
|
end
|
29
29
|
|
30
|
+
raise 'You cannot provide both :userId and :user_id' if attributes.key?(:'userId') && attributes.key?(:'user_id')
|
31
|
+
|
32
|
+
if attributes[:'user_id']
|
33
|
+
self.user_id = attributes[:'user_id']
|
34
|
+
end
|
35
|
+
|
30
36
|
if attributes[:'groupId']
|
31
37
|
self.group_id = attributes[:'groupId']
|
32
38
|
end
|
33
39
|
|
40
|
+
raise 'You cannot provide both :groupId and :group_id' if attributes.key?(:'groupId') && attributes.key?(:'group_id')
|
41
|
+
|
42
|
+
if attributes[:'group_id']
|
43
|
+
self.group_id = attributes[:'group_id']
|
44
|
+
end
|
45
|
+
|
34
46
|
end
|
35
47
|
|
36
48
|
# Checks equality by comparing each attribute.
|
@@ -61,13 +61,13 @@ module OCI
|
|
61
61
|
|
62
62
|
# Initializes the object
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
-
# @option attributes [String] :
|
65
|
-
# @option attributes [String] :
|
64
|
+
# @option attributes [String] :key_id The value to assign to the {#key_id} property
|
65
|
+
# @option attributes [String] :key_value The value to assign to the {#key_value} property
|
66
66
|
# @option attributes [String] :fingerprint The value to assign to the {#fingerprint} property
|
67
|
-
# @option attributes [String] :
|
68
|
-
# @option attributes [DateTime] :
|
69
|
-
# @option attributes [String] :
|
70
|
-
# @option attributes [Integer] :
|
67
|
+
# @option attributes [String] :user_id The value to assign to the {#user_id} property
|
68
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
69
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
70
|
+
# @option attributes [Integer] :inactive_status The value to assign to the {#inactive_status} property
|
71
71
|
def initialize(attributes = {})
|
72
72
|
return unless attributes.is_a?(Hash)
|
73
73
|
|
@@ -78,10 +78,22 @@ module OCI
|
|
78
78
|
self.key_id = attributes[:'keyId']
|
79
79
|
end
|
80
80
|
|
81
|
+
raise 'You cannot provide both :keyId and :key_id' if attributes.key?(:'keyId') && attributes.key?(:'key_id')
|
82
|
+
|
83
|
+
if attributes[:'key_id']
|
84
|
+
self.key_id = attributes[:'key_id']
|
85
|
+
end
|
86
|
+
|
81
87
|
if attributes[:'keyValue']
|
82
88
|
self.key_value = attributes[:'keyValue']
|
83
89
|
end
|
84
90
|
|
91
|
+
raise 'You cannot provide both :keyValue and :key_value' if attributes.key?(:'keyValue') && attributes.key?(:'key_value')
|
92
|
+
|
93
|
+
if attributes[:'key_value']
|
94
|
+
self.key_value = attributes[:'key_value']
|
95
|
+
end
|
96
|
+
|
85
97
|
if attributes[:'fingerprint']
|
86
98
|
self.fingerprint = attributes[:'fingerprint']
|
87
99
|
end
|
@@ -90,18 +102,42 @@ module OCI
|
|
90
102
|
self.user_id = attributes[:'userId']
|
91
103
|
end
|
92
104
|
|
105
|
+
raise 'You cannot provide both :userId and :user_id' if attributes.key?(:'userId') && attributes.key?(:'user_id')
|
106
|
+
|
107
|
+
if attributes[:'user_id']
|
108
|
+
self.user_id = attributes[:'user_id']
|
109
|
+
end
|
110
|
+
|
93
111
|
if attributes[:'timeCreated']
|
94
112
|
self.time_created = attributes[:'timeCreated']
|
95
113
|
end
|
96
114
|
|
115
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
116
|
+
|
117
|
+
if attributes[:'time_created']
|
118
|
+
self.time_created = attributes[:'time_created']
|
119
|
+
end
|
120
|
+
|
97
121
|
if attributes[:'lifecycleState']
|
98
122
|
self.lifecycle_state = attributes[:'lifecycleState']
|
99
123
|
end
|
100
124
|
|
125
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
126
|
+
|
127
|
+
if attributes[:'lifecycle_state']
|
128
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
129
|
+
end
|
130
|
+
|
101
131
|
if attributes[:'inactiveStatus']
|
102
132
|
self.inactive_status = attributes[:'inactiveStatus']
|
103
133
|
end
|
104
134
|
|
135
|
+
raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
|
136
|
+
|
137
|
+
if attributes[:'inactive_status']
|
138
|
+
self.inactive_status = attributes[:'inactive_status']
|
139
|
+
end
|
140
|
+
|
105
141
|
end
|
106
142
|
|
107
143
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -20,7 +20,7 @@ module OCI
|
|
20
20
|
# Initializes the object
|
21
21
|
# @param [Hash] attributes Model attributes in the form of hash
|
22
22
|
# @option attributes [String] :name The value to assign to the {#name} property
|
23
|
-
# @option attributes [String] :
|
23
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
24
24
|
def initialize(attributes = {})
|
25
25
|
return unless attributes.is_a?(Hash)
|
26
26
|
|
@@ -35,6 +35,12 @@ module OCI
|
|
35
35
|
self.compartment_id = attributes[:'compartmentId']
|
36
36
|
end
|
37
37
|
|
38
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
39
|
+
|
40
|
+
if attributes[:'compartment_id']
|
41
|
+
self.compartment_id = attributes[:'compartment_id']
|
42
|
+
end
|
43
|
+
|
38
44
|
end
|
39
45
|
|
40
46
|
# Checks equality by comparing each attribute.
|
@@ -82,14 +82,14 @@ module OCI
|
|
82
82
|
# Initializes the object
|
83
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
84
84
|
# @option attributes [String] :id The value to assign to the {#id} property
|
85
|
-
# @option attributes [String] :
|
85
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
86
86
|
# @option attributes [String] :name The value to assign to the {#name} property
|
87
87
|
# @option attributes [String] :description The value to assign to the {#description} property
|
88
|
-
# @option attributes [DateTime] :
|
89
|
-
# @option attributes [String] :
|
90
|
-
# @option attributes [Integer] :
|
91
|
-
# @option attributes [Hash<String, String>] :
|
92
|
-
# @option attributes [Hash<String, Hash<String, Object>>] :
|
88
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
89
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
90
|
+
# @option attributes [Integer] :inactive_status The value to assign to the {#inactive_status} property
|
91
|
+
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
92
|
+
# @option attributes [Hash<String, Hash<String, Object>>] :defined_tags The value to assign to the {#defined_tags} property
|
93
93
|
def initialize(attributes = {})
|
94
94
|
return unless attributes.is_a?(Hash)
|
95
95
|
|
@@ -104,6 +104,12 @@ module OCI
|
|
104
104
|
self.compartment_id = attributes[:'compartmentId']
|
105
105
|
end
|
106
106
|
|
107
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
108
|
+
|
109
|
+
if attributes[:'compartment_id']
|
110
|
+
self.compartment_id = attributes[:'compartment_id']
|
111
|
+
end
|
112
|
+
|
107
113
|
if attributes[:'name']
|
108
114
|
self.name = attributes[:'name']
|
109
115
|
end
|
@@ -116,22 +122,52 @@ module OCI
|
|
116
122
|
self.time_created = attributes[:'timeCreated']
|
117
123
|
end
|
118
124
|
|
125
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
126
|
+
|
127
|
+
if attributes[:'time_created']
|
128
|
+
self.time_created = attributes[:'time_created']
|
129
|
+
end
|
130
|
+
|
119
131
|
if attributes[:'lifecycleState']
|
120
132
|
self.lifecycle_state = attributes[:'lifecycleState']
|
121
133
|
end
|
122
134
|
|
135
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
136
|
+
|
137
|
+
if attributes[:'lifecycle_state']
|
138
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
139
|
+
end
|
140
|
+
|
123
141
|
if attributes[:'inactiveStatus']
|
124
142
|
self.inactive_status = attributes[:'inactiveStatus']
|
125
143
|
end
|
126
144
|
|
145
|
+
raise 'You cannot provide both :inactiveStatus and :inactive_status' if attributes.key?(:'inactiveStatus') && attributes.key?(:'inactive_status')
|
146
|
+
|
147
|
+
if attributes[:'inactive_status']
|
148
|
+
self.inactive_status = attributes[:'inactive_status']
|
149
|
+
end
|
150
|
+
|
127
151
|
if attributes[:'freeformTags']
|
128
152
|
self.freeform_tags = attributes[:'freeformTags']
|
129
153
|
end
|
130
154
|
|
155
|
+
raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')
|
156
|
+
|
157
|
+
if attributes[:'freeform_tags']
|
158
|
+
self.freeform_tags = attributes[:'freeform_tags']
|
159
|
+
end
|
160
|
+
|
131
161
|
if attributes[:'definedTags']
|
132
162
|
self.defined_tags = attributes[:'definedTags']
|
133
163
|
end
|
134
164
|
|
165
|
+
raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')
|
166
|
+
|
167
|
+
if attributes[:'defined_tags']
|
168
|
+
self.defined_tags = attributes[:'defined_tags']
|
169
|
+
end
|
170
|
+
|
135
171
|
end
|
136
172
|
|
137
173
|
# Custom attribute writer method checking allowed values (enum).
|