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,162 @@
|
|
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::CreateExportDetails
|
7
|
+
# **[Required]** The OCID of this export's export set.
|
8
|
+
# @return [String]
|
9
|
+
attr_accessor :export_set_id
|
10
|
+
|
11
|
+
# **[Required]** The OCID of this export's file system.
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :file_system_id
|
14
|
+
|
15
|
+
# **[Required]** Path used to access the associated file system.
|
16
|
+
#
|
17
|
+
# Avoid entering confidential information.
|
18
|
+
#
|
19
|
+
# Example: `/mediafiles`
|
20
|
+
#
|
21
|
+
# @return [String]
|
22
|
+
attr_accessor :path
|
23
|
+
|
24
|
+
|
25
|
+
# Initializes the object
|
26
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
27
|
+
# @option attributes [String] :export_set_id The value to assign to the {#export_set_id} property
|
28
|
+
# @option attributes [String] :file_system_id The value to assign to the {#file_system_id} property
|
29
|
+
# @option attributes [String] :path The value to assign to the {#path} property
|
30
|
+
def initialize(attributes = {})
|
31
|
+
return unless attributes.is_a?(Hash)
|
32
|
+
|
33
|
+
# convert string to symbol for hash key
|
34
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
35
|
+
|
36
|
+
if attributes[:'exportSetId']
|
37
|
+
self.export_set_id = attributes[:'exportSetId']
|
38
|
+
end
|
39
|
+
|
40
|
+
raise 'You cannot provide both :exportSetId and :export_set_id' if attributes.key?(:'exportSetId') && attributes.key?(:'export_set_id')
|
41
|
+
|
42
|
+
if attributes[:'export_set_id']
|
43
|
+
self.export_set_id = attributes[:'export_set_id']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'fileSystemId']
|
47
|
+
self.file_system_id = attributes[:'fileSystemId']
|
48
|
+
end
|
49
|
+
|
50
|
+
raise 'You cannot provide both :fileSystemId and :file_system_id' if attributes.key?(:'fileSystemId') && attributes.key?(:'file_system_id')
|
51
|
+
|
52
|
+
if attributes[:'file_system_id']
|
53
|
+
self.file_system_id = attributes[:'file_system_id']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'path']
|
57
|
+
self.path = attributes[:'path']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] other_object to be compared
|
64
|
+
def ==(other_object)
|
65
|
+
return true if self.equal?(other_object)
|
66
|
+
self.class == other_object.class &&
|
67
|
+
export_set_id == other_object.export_set_id &&
|
68
|
+
file_system_id == other_object.file_system_id &&
|
69
|
+
path == other_object.path
|
70
|
+
end
|
71
|
+
|
72
|
+
# @see the `==` method
|
73
|
+
# @param [Object] other_object to be compared
|
74
|
+
def eql?(other_object)
|
75
|
+
self == other_object
|
76
|
+
end
|
77
|
+
|
78
|
+
# Calculates hash code according to all attributes.
|
79
|
+
# @return [Fixnum] Hash code
|
80
|
+
def hash
|
81
|
+
[export_set_id, file_system_id, path].hash
|
82
|
+
end
|
83
|
+
|
84
|
+
# Builds the object from hash
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
# @return [Object] Returns the model itself
|
87
|
+
def build_from_hash(attributes)
|
88
|
+
return nil unless attributes.is_a?(Hash)
|
89
|
+
self.class.swagger_types.each_pair do |key, type|
|
90
|
+
if type =~ /^Array<(.*)>/i
|
91
|
+
# check to ensure the input is an array given that the the attribute
|
92
|
+
# is documented as an array but the input is not
|
93
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
95
|
+
end
|
96
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
98
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
99
|
+
end
|
100
|
+
|
101
|
+
self
|
102
|
+
end
|
103
|
+
|
104
|
+
# Returns the string representation of the object
|
105
|
+
# @return [String] String presentation of the object
|
106
|
+
def to_s
|
107
|
+
to_hash.to_s
|
108
|
+
end
|
109
|
+
|
110
|
+
# Returns the object in the form of hash
|
111
|
+
# @return [Hash] Returns the object in the form of hash
|
112
|
+
def to_hash
|
113
|
+
hash = {}
|
114
|
+
self.class.attribute_map.each_pair do |attr, param|
|
115
|
+
value = public_method(attr).call
|
116
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
117
|
+
hash[param] = _to_hash(value)
|
118
|
+
end
|
119
|
+
hash
|
120
|
+
end
|
121
|
+
|
122
|
+
private
|
123
|
+
|
124
|
+
# Outputs non-array value in the form of hash
|
125
|
+
# For object, use to_hash. Otherwise, just return the value
|
126
|
+
# @param [Object] value Any valid value
|
127
|
+
# @return [Hash] Returns the value in the form of hash
|
128
|
+
def _to_hash(value)
|
129
|
+
if value.is_a?(Array)
|
130
|
+
value.compact.map{ |v| _to_hash(v) }
|
131
|
+
elsif value.is_a?(Hash)
|
132
|
+
{}.tap do |hash|
|
133
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
134
|
+
end
|
135
|
+
elsif value.respond_to? :to_hash
|
136
|
+
value.to_hash
|
137
|
+
else
|
138
|
+
value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
145
|
+
def self.attribute_map
|
146
|
+
{
|
147
|
+
:'export_set_id' => :'exportSetId',
|
148
|
+
:'file_system_id' => :'fileSystemId',
|
149
|
+
:'path' => :'path'
|
150
|
+
}
|
151
|
+
end
|
152
|
+
|
153
|
+
# Attribute type mapping.
|
154
|
+
def self.swagger_types
|
155
|
+
{
|
156
|
+
:'export_set_id' => :'String',
|
157
|
+
:'file_system_id' => :'String',
|
158
|
+
:'path' => :'String'
|
159
|
+
}
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
@@ -0,0 +1,170 @@
|
|
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::CreateFileSystemDetails
|
7
|
+
# **[Required]** The availability domain to create the file system in.
|
8
|
+
#
|
9
|
+
# Example: `Uocm:PHX-AD-1`
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :availability_domain
|
13
|
+
|
14
|
+
# **[Required]** The OCID of the compartment to create the file system in.
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :compartment_id
|
17
|
+
|
18
|
+
# A user-friendly name. It does not have to be unique, and it is changeable.
|
19
|
+
# Avoid entering confidential information.
|
20
|
+
#
|
21
|
+
# Example: `My file system`
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :display_name
|
25
|
+
|
26
|
+
|
27
|
+
# Initializes the object
|
28
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
29
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
30
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
31
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
32
|
+
def initialize(attributes = {})
|
33
|
+
return unless attributes.is_a?(Hash)
|
34
|
+
|
35
|
+
# convert string to symbol for hash key
|
36
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
37
|
+
|
38
|
+
if attributes[:'availabilityDomain']
|
39
|
+
self.availability_domain = attributes[:'availabilityDomain']
|
40
|
+
end
|
41
|
+
|
42
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
43
|
+
|
44
|
+
if attributes[:'availability_domain']
|
45
|
+
self.availability_domain = attributes[:'availability_domain']
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'compartmentId']
|
49
|
+
self.compartment_id = attributes[:'compartmentId']
|
50
|
+
end
|
51
|
+
|
52
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
53
|
+
|
54
|
+
if attributes[:'compartment_id']
|
55
|
+
self.compartment_id = attributes[:'compartment_id']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'displayName']
|
59
|
+
self.display_name = attributes[:'displayName']
|
60
|
+
end
|
61
|
+
|
62
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
63
|
+
|
64
|
+
if attributes[:'display_name']
|
65
|
+
self.display_name = attributes[:'display_name']
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|
70
|
+
# Checks equality by comparing each attribute.
|
71
|
+
# @param [Object] other_object to be compared
|
72
|
+
def ==(other_object)
|
73
|
+
return true if self.equal?(other_object)
|
74
|
+
self.class == other_object.class &&
|
75
|
+
availability_domain == other_object.availability_domain &&
|
76
|
+
compartment_id == other_object.compartment_id &&
|
77
|
+
display_name == other_object.display_name
|
78
|
+
end
|
79
|
+
|
80
|
+
# @see the `==` method
|
81
|
+
# @param [Object] other_object to be compared
|
82
|
+
def eql?(other_object)
|
83
|
+
self == other_object
|
84
|
+
end
|
85
|
+
|
86
|
+
# Calculates hash code according to all attributes.
|
87
|
+
# @return [Fixnum] Hash code
|
88
|
+
def hash
|
89
|
+
[availability_domain, compartment_id, display_name].hash
|
90
|
+
end
|
91
|
+
|
92
|
+
# Builds the object from hash
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
# @return [Object] Returns the model itself
|
95
|
+
def build_from_hash(attributes)
|
96
|
+
return nil unless attributes.is_a?(Hash)
|
97
|
+
self.class.swagger_types.each_pair do |key, type|
|
98
|
+
if type =~ /^Array<(.*)>/i
|
99
|
+
# check to ensure the input is an array given that the the attribute
|
100
|
+
# is documented as an array but the input is not
|
101
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
102
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
103
|
+
end
|
104
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
105
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
106
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
107
|
+
end
|
108
|
+
|
109
|
+
self
|
110
|
+
end
|
111
|
+
|
112
|
+
# Returns the string representation of the object
|
113
|
+
# @return [String] String presentation of the object
|
114
|
+
def to_s
|
115
|
+
to_hash.to_s
|
116
|
+
end
|
117
|
+
|
118
|
+
# Returns the object in the form of hash
|
119
|
+
# @return [Hash] Returns the object in the form of hash
|
120
|
+
def to_hash
|
121
|
+
hash = {}
|
122
|
+
self.class.attribute_map.each_pair do |attr, param|
|
123
|
+
value = public_method(attr).call
|
124
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
125
|
+
hash[param] = _to_hash(value)
|
126
|
+
end
|
127
|
+
hash
|
128
|
+
end
|
129
|
+
|
130
|
+
private
|
131
|
+
|
132
|
+
# Outputs non-array value in the form of hash
|
133
|
+
# For object, use to_hash. Otherwise, just return the value
|
134
|
+
# @param [Object] value Any valid value
|
135
|
+
# @return [Hash] Returns the value in the form of hash
|
136
|
+
def _to_hash(value)
|
137
|
+
if value.is_a?(Array)
|
138
|
+
value.compact.map{ |v| _to_hash(v) }
|
139
|
+
elsif value.is_a?(Hash)
|
140
|
+
{}.tap do |hash|
|
141
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
142
|
+
end
|
143
|
+
elsif value.respond_to? :to_hash
|
144
|
+
value.to_hash
|
145
|
+
else
|
146
|
+
value
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
153
|
+
def self.attribute_map
|
154
|
+
{
|
155
|
+
:'availability_domain' => :'availabilityDomain',
|
156
|
+
:'compartment_id' => :'compartmentId',
|
157
|
+
:'display_name' => :'displayName'
|
158
|
+
}
|
159
|
+
end
|
160
|
+
|
161
|
+
# Attribute type mapping.
|
162
|
+
def self.swagger_types
|
163
|
+
{
|
164
|
+
:'availability_domain' => :'String',
|
165
|
+
:'compartment_id' => :'String',
|
166
|
+
:'display_name' => :'String'
|
167
|
+
}
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
@@ -0,0 +1,242 @@
|
|
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::CreateMountTargetDetails
|
7
|
+
# **[Required]** The availability domain in which to create the mount target.
|
8
|
+
#
|
9
|
+
# Example: `Uocm:PHX-AD-1`
|
10
|
+
#
|
11
|
+
# @return [String]
|
12
|
+
attr_accessor :availability_domain
|
13
|
+
|
14
|
+
# **[Required]** The OCID of the compartment in which to create the mount target.
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :compartment_id
|
17
|
+
|
18
|
+
# A user-friendly name. It does not have to be unique, and it is changeable.
|
19
|
+
# Avoid entering confidential information.
|
20
|
+
#
|
21
|
+
# Example: `My mount target`
|
22
|
+
#
|
23
|
+
# @return [String]
|
24
|
+
attr_accessor :display_name
|
25
|
+
|
26
|
+
# The hostname for the mount target's IP address, used for
|
27
|
+
# DNS resolution. The value is the hostname portion of the private IP
|
28
|
+
# address's fully qualified domain name (FQDN). For example,
|
29
|
+
# `files-1` in the FQDN `files-1.subnet123.vcn1.oraclevcn.com`.
|
30
|
+
# Must be unique across all VNICs in the subnet and comply
|
31
|
+
# with [RFC 952](https://tools.ietf.org/html/rfc952)
|
32
|
+
# and [RFC 1123](https://tools.ietf.org/html/rfc1123).
|
33
|
+
#
|
34
|
+
# For more information, see
|
35
|
+
# [DNS in Your Virtual Cloud Network](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm).
|
36
|
+
#
|
37
|
+
# Example: `files-1`
|
38
|
+
#
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :hostname_label
|
41
|
+
|
42
|
+
# A private IP address of your choice. Must be an available IP address within
|
43
|
+
# the subnet's CIDR. If you don't specify a value, Oracle automatically
|
44
|
+
# assigns a private IP address from the subnet.
|
45
|
+
#
|
46
|
+
# Example: `10.0.3.3`
|
47
|
+
#
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :ip_address
|
50
|
+
|
51
|
+
# **[Required]** The OCID of the subnet in which to create the mount target.
|
52
|
+
#
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :subnet_id
|
55
|
+
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
60
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
61
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
62
|
+
# @option attributes [String] :hostname_label The value to assign to the {#hostname_label} property
|
63
|
+
# @option attributes [String] :ip_address The value to assign to the {#ip_address} property
|
64
|
+
# @option attributes [String] :subnet_id The value to assign to the {#subnet_id} property
|
65
|
+
def initialize(attributes = {})
|
66
|
+
return unless attributes.is_a?(Hash)
|
67
|
+
|
68
|
+
# convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
70
|
+
|
71
|
+
if attributes[:'availabilityDomain']
|
72
|
+
self.availability_domain = attributes[:'availabilityDomain']
|
73
|
+
end
|
74
|
+
|
75
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
76
|
+
|
77
|
+
if attributes[:'availability_domain']
|
78
|
+
self.availability_domain = attributes[:'availability_domain']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes[:'compartmentId']
|
82
|
+
self.compartment_id = attributes[:'compartmentId']
|
83
|
+
end
|
84
|
+
|
85
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
86
|
+
|
87
|
+
if attributes[:'compartment_id']
|
88
|
+
self.compartment_id = attributes[:'compartment_id']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes[:'displayName']
|
92
|
+
self.display_name = attributes[:'displayName']
|
93
|
+
end
|
94
|
+
|
95
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
96
|
+
|
97
|
+
if attributes[:'display_name']
|
98
|
+
self.display_name = attributes[:'display_name']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes[:'hostnameLabel']
|
102
|
+
self.hostname_label = attributes[:'hostnameLabel']
|
103
|
+
end
|
104
|
+
|
105
|
+
raise 'You cannot provide both :hostnameLabel and :hostname_label' if attributes.key?(:'hostnameLabel') && attributes.key?(:'hostname_label')
|
106
|
+
|
107
|
+
if attributes[:'hostname_label']
|
108
|
+
self.hostname_label = attributes[:'hostname_label']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes[:'ipAddress']
|
112
|
+
self.ip_address = attributes[:'ipAddress']
|
113
|
+
end
|
114
|
+
|
115
|
+
raise 'You cannot provide both :ipAddress and :ip_address' if attributes.key?(:'ipAddress') && attributes.key?(:'ip_address')
|
116
|
+
|
117
|
+
if attributes[:'ip_address']
|
118
|
+
self.ip_address = attributes[:'ip_address']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes[:'subnetId']
|
122
|
+
self.subnet_id = attributes[:'subnetId']
|
123
|
+
end
|
124
|
+
|
125
|
+
raise 'You cannot provide both :subnetId and :subnet_id' if attributes.key?(:'subnetId') && attributes.key?(:'subnet_id')
|
126
|
+
|
127
|
+
if attributes[:'subnet_id']
|
128
|
+
self.subnet_id = attributes[:'subnet_id']
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
|
133
|
+
# Checks equality by comparing each attribute.
|
134
|
+
# @param [Object] other_object to be compared
|
135
|
+
def ==(other_object)
|
136
|
+
return true if self.equal?(other_object)
|
137
|
+
self.class == other_object.class &&
|
138
|
+
availability_domain == other_object.availability_domain &&
|
139
|
+
compartment_id == other_object.compartment_id &&
|
140
|
+
display_name == other_object.display_name &&
|
141
|
+
hostname_label == other_object.hostname_label &&
|
142
|
+
ip_address == other_object.ip_address &&
|
143
|
+
subnet_id == other_object.subnet_id
|
144
|
+
end
|
145
|
+
|
146
|
+
# @see the `==` method
|
147
|
+
# @param [Object] other_object to be compared
|
148
|
+
def eql?(other_object)
|
149
|
+
self == other_object
|
150
|
+
end
|
151
|
+
|
152
|
+
# Calculates hash code according to all attributes.
|
153
|
+
# @return [Fixnum] Hash code
|
154
|
+
def hash
|
155
|
+
[availability_domain, compartment_id, display_name, hostname_label, ip_address, subnet_id].hash
|
156
|
+
end
|
157
|
+
|
158
|
+
# Builds the object from hash
|
159
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
160
|
+
# @return [Object] Returns the model itself
|
161
|
+
def build_from_hash(attributes)
|
162
|
+
return nil unless attributes.is_a?(Hash)
|
163
|
+
self.class.swagger_types.each_pair do |key, type|
|
164
|
+
if type =~ /^Array<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
168
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
169
|
+
end
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
172
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
173
|
+
end
|
174
|
+
|
175
|
+
self
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = public_method(attr).call
|
190
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
private
|
197
|
+
|
198
|
+
# Outputs non-array value in the form of hash
|
199
|
+
# For object, use to_hash. Otherwise, just return the value
|
200
|
+
# @param [Object] value Any valid value
|
201
|
+
# @return [Hash] Returns the value in the form of hash
|
202
|
+
def _to_hash(value)
|
203
|
+
if value.is_a?(Array)
|
204
|
+
value.compact.map{ |v| _to_hash(v) }
|
205
|
+
elsif value.is_a?(Hash)
|
206
|
+
{}.tap do |hash|
|
207
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
208
|
+
end
|
209
|
+
elsif value.respond_to? :to_hash
|
210
|
+
value.to_hash
|
211
|
+
else
|
212
|
+
value
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
219
|
+
def self.attribute_map
|
220
|
+
{
|
221
|
+
:'availability_domain' => :'availabilityDomain',
|
222
|
+
:'compartment_id' => :'compartmentId',
|
223
|
+
:'display_name' => :'displayName',
|
224
|
+
:'hostname_label' => :'hostnameLabel',
|
225
|
+
:'ip_address' => :'ipAddress',
|
226
|
+
:'subnet_id' => :'subnetId'
|
227
|
+
}
|
228
|
+
end
|
229
|
+
|
230
|
+
# Attribute type mapping.
|
231
|
+
def self.swagger_types
|
232
|
+
{
|
233
|
+
:'availability_domain' => :'String',
|
234
|
+
:'compartment_id' => :'String',
|
235
|
+
:'display_name' => :'String',
|
236
|
+
:'hostname_label' => :'String',
|
237
|
+
:'ip_address' => :'String',
|
238
|
+
:'subnet_id' => :'String'
|
239
|
+
}
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|