oci 2.0.7 → 2.0.8
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 +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,273 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
module OCI
|
|
6
|
+
# An NFS file system. To allow access to a file system, add it
|
|
7
|
+
# to an export set and associate the export set with a mount
|
|
8
|
+
# target. The same file system can be in multiple export sets and
|
|
9
|
+
# associated with multiple mount targets.
|
|
10
|
+
#
|
|
11
|
+
# To use any of the API operations, you must be authorized in an
|
|
12
|
+
# IAM policy. If you're not authorized, talk to an
|
|
13
|
+
# administrator. If you're an administrator who needs to write
|
|
14
|
+
# policies to give users access, see [Getting Started with
|
|
15
|
+
# Policies](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/policygetstarted.htm).
|
|
16
|
+
#
|
|
17
|
+
class FileStorage::Models::FileSystem
|
|
18
|
+
|
|
19
|
+
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
|
|
20
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
|
|
21
|
+
LIFECYCLE_STATE_DELETING = 'DELETING',
|
|
22
|
+
LIFECYCLE_STATE_DELETED = 'DELETED',
|
|
23
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
|
24
|
+
|
|
25
|
+
# The availability domain the file system is in. May be unset
|
|
26
|
+
# as a blank or NULL value.
|
|
27
|
+
#
|
|
28
|
+
# Example: `Uocm:PHX-AD-1`
|
|
29
|
+
#
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :availability_domain
|
|
32
|
+
|
|
33
|
+
# **[Required]** The number of bytes consumed by the file system, including
|
|
34
|
+
# any snapshots. This number reflects the metered size of the file
|
|
35
|
+
# system and is updated asynchronously with respect to
|
|
36
|
+
# updates to the file system.
|
|
37
|
+
#
|
|
38
|
+
# @return [Integer]
|
|
39
|
+
attr_accessor :metered_bytes
|
|
40
|
+
|
|
41
|
+
# **[Required]** The OCID of the compartment that contains the file system.
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :compartment_id
|
|
44
|
+
|
|
45
|
+
# **[Required]** A user-friendly name. It does not have to be unique, and it is changeable.
|
|
46
|
+
# Avoid entering confidential information.
|
|
47
|
+
#
|
|
48
|
+
# Example: `My file system`
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :display_name
|
|
52
|
+
|
|
53
|
+
# **[Required]** The OCID of the file system.
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :id
|
|
56
|
+
|
|
57
|
+
# **[Required]** The current state of the file system.
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :lifecycle_state
|
|
60
|
+
|
|
61
|
+
# **[Required]** The date and time the file system was created, expressed in
|
|
62
|
+
# [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.
|
|
63
|
+
#
|
|
64
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
65
|
+
#
|
|
66
|
+
# @return [DateTime]
|
|
67
|
+
attr_accessor :time_created
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
|
73
|
+
# @option attributes [Integer] :metered_bytes The value to assign to the {#metered_bytes} property
|
|
74
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
75
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
76
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
77
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
78
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
return unless attributes.is_a?(Hash)
|
|
81
|
+
|
|
82
|
+
# convert string to symbol for hash key
|
|
83
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
84
|
+
|
|
85
|
+
if attributes[:'availabilityDomain']
|
|
86
|
+
self.availability_domain = attributes[:'availabilityDomain']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
|
90
|
+
|
|
91
|
+
if attributes[:'availability_domain']
|
|
92
|
+
self.availability_domain = attributes[:'availability_domain']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes[:'meteredBytes']
|
|
96
|
+
self.metered_bytes = attributes[:'meteredBytes']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
raise 'You cannot provide both :meteredBytes and :metered_bytes' if attributes.key?(:'meteredBytes') && attributes.key?(:'metered_bytes')
|
|
100
|
+
|
|
101
|
+
if attributes[:'metered_bytes']
|
|
102
|
+
self.metered_bytes = attributes[:'metered_bytes']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes[:'compartmentId']
|
|
106
|
+
self.compartment_id = attributes[:'compartmentId']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
110
|
+
|
|
111
|
+
if attributes[:'compartment_id']
|
|
112
|
+
self.compartment_id = attributes[:'compartment_id']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes[:'displayName']
|
|
116
|
+
self.display_name = attributes[:'displayName']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
120
|
+
|
|
121
|
+
if attributes[:'display_name']
|
|
122
|
+
self.display_name = attributes[:'display_name']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes[:'id']
|
|
126
|
+
self.id = attributes[:'id']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes[:'lifecycleState']
|
|
130
|
+
self.lifecycle_state = attributes[:'lifecycleState']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
134
|
+
|
|
135
|
+
if attributes[:'lifecycle_state']
|
|
136
|
+
self.lifecycle_state = attributes[:'lifecycle_state']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes[:'timeCreated']
|
|
140
|
+
self.time_created = attributes[:'timeCreated']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
144
|
+
|
|
145
|
+
if attributes[:'time_created']
|
|
146
|
+
self.time_created = attributes[:'time_created']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
152
|
+
# @param [Object] lifecycle_state Object to be assigned
|
|
153
|
+
def lifecycle_state=(lifecycle_state)
|
|
154
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
155
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
156
|
+
else
|
|
157
|
+
@lifecycle_state = lifecycle_state
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Checks equality by comparing each attribute.
|
|
162
|
+
# @param [Object] other_object to be compared
|
|
163
|
+
def ==(other_object)
|
|
164
|
+
return true if self.equal?(other_object)
|
|
165
|
+
self.class == other_object.class &&
|
|
166
|
+
availability_domain == other_object.availability_domain &&
|
|
167
|
+
metered_bytes == other_object.metered_bytes &&
|
|
168
|
+
compartment_id == other_object.compartment_id &&
|
|
169
|
+
display_name == other_object.display_name &&
|
|
170
|
+
id == other_object.id &&
|
|
171
|
+
lifecycle_state == other_object.lifecycle_state &&
|
|
172
|
+
time_created == other_object.time_created
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# @see the `==` method
|
|
176
|
+
# @param [Object] other_object to be compared
|
|
177
|
+
def eql?(other_object)
|
|
178
|
+
self == other_object
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Calculates hash code according to all attributes.
|
|
182
|
+
# @return [Fixnum] Hash code
|
|
183
|
+
def hash
|
|
184
|
+
[availability_domain, metered_bytes, compartment_id, display_name, id, lifecycle_state, time_created].hash
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Builds the object from hash
|
|
188
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
189
|
+
# @return [Object] Returns the model itself
|
|
190
|
+
def build_from_hash(attributes)
|
|
191
|
+
return nil unless attributes.is_a?(Hash)
|
|
192
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
193
|
+
if type =~ /^Array<(.*)>/i
|
|
194
|
+
# check to ensure the input is an array given that the the attribute
|
|
195
|
+
# is documented as an array but the input is not
|
|
196
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
197
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
198
|
+
end
|
|
199
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
200
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
201
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
self
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Returns the string representation of the object
|
|
208
|
+
# @return [String] String presentation of the object
|
|
209
|
+
def to_s
|
|
210
|
+
to_hash.to_s
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the object in the form of hash
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_hash
|
|
216
|
+
hash = {}
|
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
218
|
+
value = public_method(attr).call
|
|
219
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
220
|
+
hash[param] = _to_hash(value)
|
|
221
|
+
end
|
|
222
|
+
hash
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
private
|
|
226
|
+
|
|
227
|
+
# Outputs non-array value in the form of hash
|
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
229
|
+
# @param [Object] value Any valid value
|
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
|
231
|
+
def _to_hash(value)
|
|
232
|
+
if value.is_a?(Array)
|
|
233
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
234
|
+
elsif value.is_a?(Hash)
|
|
235
|
+
{}.tap do |hash|
|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
237
|
+
end
|
|
238
|
+
elsif value.respond_to? :to_hash
|
|
239
|
+
value.to_hash
|
|
240
|
+
else
|
|
241
|
+
value
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
248
|
+
def self.attribute_map
|
|
249
|
+
{
|
|
250
|
+
:'availability_domain' => :'availabilityDomain',
|
|
251
|
+
:'metered_bytes' => :'meteredBytes',
|
|
252
|
+
:'compartment_id' => :'compartmentId',
|
|
253
|
+
:'display_name' => :'displayName',
|
|
254
|
+
:'id' => :'id',
|
|
255
|
+
:'lifecycle_state' => :'lifecycleState',
|
|
256
|
+
:'time_created' => :'timeCreated'
|
|
257
|
+
}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Attribute type mapping.
|
|
261
|
+
def self.swagger_types
|
|
262
|
+
{
|
|
263
|
+
:'availability_domain' => :'String',
|
|
264
|
+
:'metered_bytes' => :'Integer',
|
|
265
|
+
:'compartment_id' => :'String',
|
|
266
|
+
:'display_name' => :'String',
|
|
267
|
+
:'id' => :'String',
|
|
268
|
+
:'lifecycle_state' => :'String',
|
|
269
|
+
:'time_created' => :'DateTime'
|
|
270
|
+
}
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
module OCI
|
|
6
|
+
# Summary information for a file system.
|
|
7
|
+
#
|
|
8
|
+
class FileStorage::Models::FileSystemSummary
|
|
9
|
+
|
|
10
|
+
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_CREATING = 'CREATING',
|
|
11
|
+
LIFECYCLE_STATE_ACTIVE = 'ACTIVE',
|
|
12
|
+
LIFECYCLE_STATE_DELETING = 'DELETING',
|
|
13
|
+
LIFECYCLE_STATE_DELETED = 'DELETED',
|
|
14
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
|
15
|
+
|
|
16
|
+
# The availability domain the file system is in. May be unset
|
|
17
|
+
# as a blank or NULL value.
|
|
18
|
+
#
|
|
19
|
+
# Example: `Uocm:PHX-AD-1`
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :availability_domain
|
|
23
|
+
|
|
24
|
+
# **[Required]** The number of bytes consumed by the file system, including
|
|
25
|
+
# any snapshots. This number reflects the metered size of the file
|
|
26
|
+
# system and is updated asynchronously with respect to
|
|
27
|
+
# updates to the file system. For details on file system
|
|
28
|
+
# metering see [File System Metering](https://docs.us-phoenix-1.oraclecloud.com/Content/File/Concepts/metering.htm).
|
|
29
|
+
#
|
|
30
|
+
# @return [Integer]
|
|
31
|
+
attr_accessor :metered_bytes
|
|
32
|
+
|
|
33
|
+
# **[Required]** The OCID of the compartment that contains the file system.
|
|
34
|
+
# @return [String]
|
|
35
|
+
attr_accessor :compartment_id
|
|
36
|
+
|
|
37
|
+
# **[Required]** A user-friendly name. It does not have to be unique, and it is changeable.
|
|
38
|
+
# Avoid entering confidential information.
|
|
39
|
+
#
|
|
40
|
+
# Example: `My file system`
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :display_name
|
|
44
|
+
|
|
45
|
+
# **[Required]** The OCID of the file system.
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :id
|
|
48
|
+
|
|
49
|
+
# **[Required]** The current state of the file system.
|
|
50
|
+
# @return [String]
|
|
51
|
+
attr_accessor :lifecycle_state
|
|
52
|
+
|
|
53
|
+
# **[Required]** The date and time the file system was created, expressed
|
|
54
|
+
# in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format.
|
|
55
|
+
#
|
|
56
|
+
# Example: `2016-08-25T21:10:29.600Z`
|
|
57
|
+
#
|
|
58
|
+
# @return [DateTime]
|
|
59
|
+
attr_accessor :time_created
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
# @option attributes [String] :availability_domain The value to assign to the {#availability_domain} property
|
|
65
|
+
# @option attributes [Integer] :metered_bytes The value to assign to the {#metered_bytes} property
|
|
66
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
67
|
+
# @option attributes [String] :display_name The value to assign to the {#display_name} property
|
|
68
|
+
# @option attributes [String] :id The value to assign to the {#id} property
|
|
69
|
+
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
70
|
+
# @option attributes [DateTime] :time_created The value to assign to the {#time_created} property
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
return unless attributes.is_a?(Hash)
|
|
73
|
+
|
|
74
|
+
# convert string to symbol for hash key
|
|
75
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
76
|
+
|
|
77
|
+
if attributes[:'availabilityDomain']
|
|
78
|
+
self.availability_domain = attributes[:'availabilityDomain']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain')
|
|
82
|
+
|
|
83
|
+
if attributes[:'availability_domain']
|
|
84
|
+
self.availability_domain = attributes[:'availability_domain']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes[:'meteredBytes']
|
|
88
|
+
self.metered_bytes = attributes[:'meteredBytes']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
raise 'You cannot provide both :meteredBytes and :metered_bytes' if attributes.key?(:'meteredBytes') && attributes.key?(:'metered_bytes')
|
|
92
|
+
|
|
93
|
+
if attributes[:'metered_bytes']
|
|
94
|
+
self.metered_bytes = attributes[:'metered_bytes']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes[:'compartmentId']
|
|
98
|
+
self.compartment_id = attributes[:'compartmentId']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
102
|
+
|
|
103
|
+
if attributes[:'compartment_id']
|
|
104
|
+
self.compartment_id = attributes[:'compartment_id']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes[:'displayName']
|
|
108
|
+
self.display_name = attributes[:'displayName']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')
|
|
112
|
+
|
|
113
|
+
if attributes[:'display_name']
|
|
114
|
+
self.display_name = attributes[:'display_name']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes[:'id']
|
|
118
|
+
self.id = attributes[:'id']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes[:'lifecycleState']
|
|
122
|
+
self.lifecycle_state = attributes[:'lifecycleState']
|
|
123
|
+
end
|
|
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
|
+
|
|
131
|
+
if attributes[:'timeCreated']
|
|
132
|
+
self.time_created = attributes[:'timeCreated']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')
|
|
136
|
+
|
|
137
|
+
if attributes[:'time_created']
|
|
138
|
+
self.time_created = attributes[:'time_created']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
144
|
+
# @param [Object] lifecycle_state Object to be assigned
|
|
145
|
+
def lifecycle_state=(lifecycle_state)
|
|
146
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
|
147
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
|
148
|
+
else
|
|
149
|
+
@lifecycle_state = lifecycle_state
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Checks equality by comparing each attribute.
|
|
154
|
+
# @param [Object] other_object to be compared
|
|
155
|
+
def ==(other_object)
|
|
156
|
+
return true if self.equal?(other_object)
|
|
157
|
+
self.class == other_object.class &&
|
|
158
|
+
availability_domain == other_object.availability_domain &&
|
|
159
|
+
metered_bytes == other_object.metered_bytes &&
|
|
160
|
+
compartment_id == other_object.compartment_id &&
|
|
161
|
+
display_name == other_object.display_name &&
|
|
162
|
+
id == other_object.id &&
|
|
163
|
+
lifecycle_state == other_object.lifecycle_state &&
|
|
164
|
+
time_created == other_object.time_created
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# @see the `==` method
|
|
168
|
+
# @param [Object] other_object to be compared
|
|
169
|
+
def eql?(other_object)
|
|
170
|
+
self == other_object
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Calculates hash code according to all attributes.
|
|
174
|
+
# @return [Fixnum] Hash code
|
|
175
|
+
def hash
|
|
176
|
+
[availability_domain, metered_bytes, compartment_id, display_name, id, lifecycle_state, time_created].hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Builds the object from hash
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
# @return [Object] Returns the model itself
|
|
182
|
+
def build_from_hash(attributes)
|
|
183
|
+
return nil unless attributes.is_a?(Hash)
|
|
184
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
185
|
+
if type =~ /^Array<(.*)>/i
|
|
186
|
+
# check to ensure the input is an array given that the the attribute
|
|
187
|
+
# is documented as an array but the input is not
|
|
188
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
189
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
190
|
+
end
|
|
191
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
192
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
193
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
self
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the string representation of the object
|
|
200
|
+
# @return [String] String presentation of the object
|
|
201
|
+
def to_s
|
|
202
|
+
to_hash.to_s
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = public_method(attr).call
|
|
211
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
private
|
|
218
|
+
|
|
219
|
+
# Outputs non-array value in the form of hash
|
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
+
# @param [Object] value Any valid value
|
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
|
223
|
+
def _to_hash(value)
|
|
224
|
+
if value.is_a?(Array)
|
|
225
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
226
|
+
elsif value.is_a?(Hash)
|
|
227
|
+
{}.tap do |hash|
|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
+
end
|
|
230
|
+
elsif value.respond_to? :to_hash
|
|
231
|
+
value.to_hash
|
|
232
|
+
else
|
|
233
|
+
value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
240
|
+
def self.attribute_map
|
|
241
|
+
{
|
|
242
|
+
:'availability_domain' => :'availabilityDomain',
|
|
243
|
+
:'metered_bytes' => :'meteredBytes',
|
|
244
|
+
:'compartment_id' => :'compartmentId',
|
|
245
|
+
:'display_name' => :'displayName',
|
|
246
|
+
:'id' => :'id',
|
|
247
|
+
:'lifecycle_state' => :'lifecycleState',
|
|
248
|
+
:'time_created' => :'timeCreated'
|
|
249
|
+
}
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Attribute type mapping.
|
|
253
|
+
def self.swagger_types
|
|
254
|
+
{
|
|
255
|
+
:'availability_domain' => :'String',
|
|
256
|
+
:'metered_bytes' => :'Integer',
|
|
257
|
+
:'compartment_id' => :'String',
|
|
258
|
+
:'display_name' => :'String',
|
|
259
|
+
:'id' => :'String',
|
|
260
|
+
:'lifecycle_state' => :'String',
|
|
261
|
+
:'time_created' => :'DateTime'
|
|
262
|
+
}
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|