oci 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/oci/audit/models/audit_event.rb +3 -3
- data/lib/oci/audit/models/configuration.rb +3 -3
- data/lib/oci/audit/models/update_configuration_details.rb +3 -3
- data/lib/oci/core/blockstorage_client.rb +155 -0
- data/lib/oci/core/compute_client.rb +176 -12
- data/lib/oci/core/core.rb +11 -0
- data/lib/oci/core/models/attach_boot_volume_details.rb +143 -0
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +3 -3
- data/lib/oci/core/models/attach_vnic_details.rb +23 -7
- data/lib/oci/core/models/attach_volume_details.rb +3 -3
- data/lib/oci/core/models/boot_volume.rb +234 -0
- data/lib/oci/core/models/boot_volume_attachment.rb +224 -0
- data/lib/oci/core/models/capture_console_history_details.rb +3 -3
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +120 -0
- data/lib/oci/core/models/console_history.rb +3 -3
- data/lib/oci/core/models/cpe.rb +3 -3
- data/lib/oci/core/models/create_cpe_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/create_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/create_dhcp_details.rb +3 -3
- data/lib/oci/core/models/create_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/create_drg_details.rb +3 -3
- data/lib/oci/core/models/create_image_details.rb +3 -3
- data/lib/oci/core/models/create_instance_console_connection_details.rb +5 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +144 -0
- data/lib/oci/core/models/create_private_ip_details.rb +3 -3
- data/lib/oci/core/models/create_route_table_details.rb +3 -3
- data/lib/oci/core/models/create_security_list_details.rb +3 -3
- data/lib/oci/core/models/create_subnet_details.rb +3 -3
- data/lib/oci/core/models/create_vcn_details.rb +3 -3
- data/lib/oci/core/models/create_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/create_vnic_details.rb +3 -3
- data/lib/oci/core/models/create_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/create_volume_details.rb +3 -3
- data/lib/oci/core/models/cross_connect.rb +3 -3
- data/lib/oci/core/models/cross_connect_group.rb +3 -3
- data/lib/oci/core/models/cross_connect_location.rb +3 -3
- data/lib/oci/core/models/cross_connect_mapping.rb +3 -3
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +3 -3
- data/lib/oci/core/models/cross_connect_status.rb +3 -3
- data/lib/oci/core/models/dhcp_dns_option.rb +3 -3
- data/lib/oci/core/models/dhcp_option.rb +3 -3
- data/lib/oci/core/models/dhcp_options.rb +3 -3
- data/lib/oci/core/models/dhcp_search_domain_option.rb +3 -3
- data/lib/oci/core/models/drg.rb +3 -3
- data/lib/oci/core/models/drg_attachment.rb +3 -3
- data/lib/oci/core/models/egress_security_rule.rb +3 -3
- data/lib/oci/core/models/export_image_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/fast_connect_provider_service.rb +3 -3
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +3 -3
- data/lib/oci/core/models/icmp_options.rb +3 -3
- data/lib/oci/core/models/image.rb +3 -3
- data/lib/oci/core/models/image_source_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +3 -3
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +3 -3
- data/lib/oci/core/models/ingress_security_rule.rb +3 -3
- data/lib/oci/core/models/instance.rb +16 -6
- data/lib/oci/core/models/instance_console_connection.rb +9 -9
- data/lib/oci/core/models/instance_credentials.rb +3 -3
- data/lib/oci/core/models/instance_source_details.rb +135 -0
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +128 -0
- data/lib/oci/core/models/instance_source_via_image_details.rb +128 -0
- data/lib/oci/core/models/internet_gateway.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +3 -3
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +3 -3
- data/lib/oci/core/models/launch_instance_details.rb +19 -6
- data/lib/oci/core/models/letter_of_authority.rb +3 -3
- data/lib/oci/core/models/local_peering_gateway.rb +271 -0
- data/lib/oci/core/models/port_range.rb +3 -3
- data/lib/oci/core/models/private_ip.rb +3 -3
- data/lib/oci/core/models/route_rule.rb +3 -3
- data/lib/oci/core/models/route_table.rb +3 -3
- data/lib/oci/core/models/security_list.rb +3 -3
- data/lib/oci/core/models/shape.rb +3 -3
- data/lib/oci/core/models/subnet.rb +3 -3
- data/lib/oci/core/models/tcp_options.rb +3 -3
- data/lib/oci/core/models/tunnel_config.rb +3 -3
- data/lib/oci/core/models/tunnel_status.rb +3 -3
- data/lib/oci/core/models/udp_options.rb +3 -3
- data/lib/oci/core/models/update_boot_volume_details.rb +122 -0
- data/lib/oci/core/models/update_console_history_details.rb +3 -3
- data/lib/oci/core/models/update_cpe_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_details.rb +3 -3
- data/lib/oci/core/models/update_cross_connect_group_details.rb +3 -3
- data/lib/oci/core/models/update_dhcp_details.rb +3 -3
- data/lib/oci/core/models/update_drg_attachment_details.rb +3 -3
- data/lib/oci/core/models/update_drg_details.rb +3 -3
- data/lib/oci/core/models/update_image_details.rb +3 -3
- data/lib/oci/core/models/update_instance_details.rb +3 -3
- data/lib/oci/core/models/update_internet_gateway_details.rb +3 -3
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +3 -3
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +122 -0
- data/lib/oci/core/models/update_private_ip_details.rb +3 -3
- data/lib/oci/core/models/update_route_table_details.rb +3 -3
- data/lib/oci/core/models/update_security_list_details.rb +3 -3
- data/lib/oci/core/models/update_subnet_details.rb +3 -3
- data/lib/oci/core/models/update_vcn_details.rb +3 -3
- data/lib/oci/core/models/update_virtual_circuit_details.rb +3 -3
- data/lib/oci/core/models/update_vnic_details.rb +3 -3
- data/lib/oci/core/models/update_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/update_volume_details.rb +3 -3
- data/lib/oci/core/models/vcn.rb +3 -3
- data/lib/oci/core/models/virtual_circuit.rb +3 -3
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +3 -3
- data/lib/oci/core/models/vnic.rb +3 -3
- data/lib/oci/core/models/vnic_attachment.rb +20 -4
- data/lib/oci/core/models/volume.rb +3 -3
- data/lib/oci/core/models/volume_attachment.rb +3 -3
- data/lib/oci/core/models/volume_backup.rb +3 -3
- data/lib/oci/core/models/volume_source_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +3 -3
- data/lib/oci/core/models/volume_source_from_volume_details.rb +3 -3
- data/lib/oci/core/virtual_network_client.rb +233 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +3 -3
- data/lib/oci/database/models/backup_summary.rb +3 -3
- data/lib/oci/database/models/create_backup_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +3 -3
- data/lib/oci/database/models/create_database_details.rb +3 -3
- data/lib/oci/database/models/create_database_from_backup_details.rb +142 -0
- data/lib/oci/database/models/create_db_home_details.rb +3 -3
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +173 -0
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +22 -30
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +133 -0
- data/lib/oci/database/models/data_guard_association.rb +3 -3
- data/lib/oci/database/models/data_guard_association_summary.rb +3 -3
- data/lib/oci/database/models/database.rb +3 -3
- data/lib/oci/database/models/database_summary.rb +3 -3
- data/lib/oci/database/models/db_backup_config.rb +3 -3
- data/lib/oci/database/models/db_home.rb +3 -3
- data/lib/oci/database/models/db_home_summary.rb +3 -3
- data/lib/oci/database/models/db_node.rb +3 -3
- data/lib/oci/database/models/db_node_summary.rb +3 -3
- data/lib/oci/database/models/db_system.rb +3 -3
- data/lib/oci/database/models/db_system_shape_summary.rb +3 -3
- data/lib/oci/database/models/db_system_summary.rb +3 -3
- data/lib/oci/database/models/db_version_summary.rb +3 -3
- data/lib/oci/database/models/failover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/launch_db_system_details.rb +3 -3
- data/lib/oci/database/models/patch.rb +3 -3
- data/lib/oci/database/models/patch_details.rb +3 -3
- data/lib/oci/database/models/patch_history_entry.rb +3 -3
- data/lib/oci/database/models/patch_history_entry_summary.rb +3 -3
- data/lib/oci/database/models/patch_summary.rb +3 -3
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/restore_database_details.rb +3 -3
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +3 -3
- data/lib/oci/database/models/update_database_details.rb +3 -3
- data/lib/oci/database/models/update_db_home_details.rb +3 -3
- data/lib/oci/database/models/update_db_system_details.rb +3 -3
- data/lib/oci/identity/models/add_user_to_group_details.rb +3 -3
- data/lib/oci/identity/models/api_key.rb +3 -3
- data/lib/oci/identity/models/availability_domain.rb +3 -3
- data/lib/oci/identity/models/compartment.rb +3 -3
- data/lib/oci/identity/models/create_api_key_details.rb +3 -3
- data/lib/oci/identity/models/create_compartment_details.rb +3 -3
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/create_group_details.rb +3 -3
- data/lib/oci/identity/models/create_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/create_policy_details.rb +3 -3
- data/lib/oci/identity/models/create_region_subscription_details.rb +3 -3
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/create_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/create_user_details.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key.rb +3 -3
- data/lib/oci/identity/models/customer_secret_key_summary.rb +3 -3
- data/lib/oci/identity/models/group.rb +3 -3
- data/lib/oci/identity/models/identity_provider.rb +3 -3
- data/lib/oci/identity/models/idp_group_mapping.rb +3 -3
- data/lib/oci/identity/models/policy.rb +3 -3
- data/lib/oci/identity/models/region.rb +3 -3
- data/lib/oci/identity/models/region_subscription.rb +3 -3
- data/lib/oci/identity/models/saml2_identity_provider.rb +3 -3
- data/lib/oci/identity/models/swift_password.rb +3 -3
- data/lib/oci/identity/models/tenancy.rb +3 -3
- data/lib/oci/identity/models/ui_password.rb +3 -3
- data/lib/oci/identity/models/update_compartment_details.rb +3 -3
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +3 -3
- data/lib/oci/identity/models/update_group_details.rb +3 -3
- data/lib/oci/identity/models/update_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +3 -3
- data/lib/oci/identity/models/update_policy_details.rb +3 -3
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +3 -3
- data/lib/oci/identity/models/update_state_details.rb +3 -3
- data/lib/oci/identity/models/update_swift_password_details.rb +3 -3
- data/lib/oci/identity/models/update_user_details.rb +3 -3
- data/lib/oci/identity/models/user.rb +3 -3
- data/lib/oci/identity/models/user_group_membership.rb +3 -3
- data/lib/oci/load_balancer/load_balancer_client.rb +27 -1
- data/lib/oci/load_balancer/models/backend.rb +3 -3
- data/lib/oci/load_balancer/models/backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/backend_set_health.rb +3 -3
- data/lib/oci/load_balancer/models/certificate.rb +3 -3
- data/lib/oci/load_balancer/models/certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +5 -5
- data/lib/oci/load_balancer/models/create_certificate_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker.rb +3 -3
- data/lib/oci/load_balancer/models/health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/ip_address.rb +3 -3
- data/lib/oci/load_balancer/models/listener.rb +3 -3
- data/lib/oci/load_balancer/models/listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer.rb +6 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +5 -5
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +3 -3
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +3 -3
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration.rb +3 -3
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +5 -6
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_listener_details.rb +3 -3
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +3 -3
- data/lib/oci/load_balancer/models/work_request.rb +5 -3
- data/lib/oci/load_balancer/models/work_request_error.rb +3 -3
- data/lib/oci/object_storage/models/bucket.rb +3 -3
- data/lib/oci/object_storage/models/bucket_summary.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +3 -3
- data/lib/oci/object_storage/models/create_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +3 -3
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +3 -3
- data/lib/oci/object_storage/models/list_objects.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload.rb +3 -3
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +3 -3
- data/lib/oci/object_storage/models/namespace_metadata.rb +3 -3
- data/lib/oci/object_storage/models/object_summary.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request.rb +3 -3
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +3 -3
- data/lib/oci/object_storage/models/rename_object_details.rb +3 -3
- data/lib/oci/object_storage/models/restore_objects_details.rb +3 -3
- data/lib/oci/object_storage/models/update_bucket_details.rb +3 -3
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +3 -3
- data/lib/oci/version.rb +1 -1
- metadata +16 -2
data/lib/oci/core/core.rb
CHANGED
@@ -8,10 +8,14 @@ module OCI
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Require models
|
11
|
+
require 'oci/core/models/attach_boot_volume_details'
|
11
12
|
require 'oci/core/models/attach_i_scsi_volume_details'
|
12
13
|
require 'oci/core/models/attach_vnic_details'
|
13
14
|
require 'oci/core/models/attach_volume_details'
|
15
|
+
require 'oci/core/models/boot_volume'
|
16
|
+
require 'oci/core/models/boot_volume_attachment'
|
14
17
|
require 'oci/core/models/capture_console_history_details'
|
18
|
+
require 'oci/core/models/connect_local_peering_gateways_details'
|
15
19
|
require 'oci/core/models/console_history'
|
16
20
|
require 'oci/core/models/cpe'
|
17
21
|
require 'oci/core/models/create_cpe_details'
|
@@ -24,6 +28,7 @@ require 'oci/core/models/create_ip_sec_connection_details'
|
|
24
28
|
require 'oci/core/models/create_image_details'
|
25
29
|
require 'oci/core/models/create_instance_console_connection_details'
|
26
30
|
require 'oci/core/models/create_internet_gateway_details'
|
31
|
+
require 'oci/core/models/create_local_peering_gateway_details'
|
27
32
|
require 'oci/core/models/create_private_ip_details'
|
28
33
|
require 'oci/core/models/create_route_table_details'
|
29
34
|
require 'oci/core/models/create_security_list_details'
|
@@ -63,9 +68,13 @@ require 'oci/core/models/ingress_security_rule'
|
|
63
68
|
require 'oci/core/models/instance'
|
64
69
|
require 'oci/core/models/instance_console_connection'
|
65
70
|
require 'oci/core/models/instance_credentials'
|
71
|
+
require 'oci/core/models/instance_source_details'
|
72
|
+
require 'oci/core/models/instance_source_via_boot_volume_details'
|
73
|
+
require 'oci/core/models/instance_source_via_image_details'
|
66
74
|
require 'oci/core/models/internet_gateway'
|
67
75
|
require 'oci/core/models/launch_instance_details'
|
68
76
|
require 'oci/core/models/letter_of_authority'
|
77
|
+
require 'oci/core/models/local_peering_gateway'
|
69
78
|
require 'oci/core/models/port_range'
|
70
79
|
require 'oci/core/models/private_ip'
|
71
80
|
require 'oci/core/models/route_rule'
|
@@ -77,6 +86,7 @@ require 'oci/core/models/tcp_options'
|
|
77
86
|
require 'oci/core/models/tunnel_config'
|
78
87
|
require 'oci/core/models/tunnel_status'
|
79
88
|
require 'oci/core/models/udp_options'
|
89
|
+
require 'oci/core/models/update_boot_volume_details'
|
80
90
|
require 'oci/core/models/update_console_history_details'
|
81
91
|
require 'oci/core/models/update_cpe_details'
|
82
92
|
require 'oci/core/models/update_cross_connect_details'
|
@@ -88,6 +98,7 @@ require 'oci/core/models/update_ip_sec_connection_details'
|
|
88
98
|
require 'oci/core/models/update_image_details'
|
89
99
|
require 'oci/core/models/update_instance_details'
|
90
100
|
require 'oci/core/models/update_internet_gateway_details'
|
101
|
+
require 'oci/core/models/update_local_peering_gateway_details'
|
91
102
|
require 'oci/core/models/update_private_ip_details'
|
92
103
|
require 'oci/core/models/update_route_table_details'
|
93
104
|
require 'oci/core/models/update_security_list_details'
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
class Core::Models::AttachBootVolumeDetails
|
7
|
+
# The OCID of the boot volume.
|
8
|
+
# @return [String]
|
9
|
+
attr_accessor :boot_volume_id
|
10
|
+
|
11
|
+
# A user-friendly name. Does not have to be unique, and it cannot be changed. Avoid entering confidential information.
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
attr_accessor :display_name
|
15
|
+
|
16
|
+
# The OCID of the instance.
|
17
|
+
# @return [String]
|
18
|
+
attr_accessor :instance_id
|
19
|
+
|
20
|
+
|
21
|
+
# Initializes the object
|
22
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
23
|
+
def initialize(attributes = {})
|
24
|
+
return unless attributes.is_a?(Hash)
|
25
|
+
|
26
|
+
# convert string to symbol for hash key
|
27
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
28
|
+
|
29
|
+
if attributes[:'bootVolumeId']
|
30
|
+
self.boot_volume_id = attributes[:'bootVolumeId']
|
31
|
+
end
|
32
|
+
|
33
|
+
if attributes[:'displayName']
|
34
|
+
self.display_name = attributes[:'displayName']
|
35
|
+
end
|
36
|
+
|
37
|
+
if attributes[:'instanceId']
|
38
|
+
self.instance_id = attributes[:'instanceId']
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
# Checks equality by comparing each attribute.
|
44
|
+
# @param [Object] other_object to be compared
|
45
|
+
def ==(other_object)
|
46
|
+
return true if self.equal?(other_object)
|
47
|
+
self.class == other_object.class &&
|
48
|
+
boot_volume_id == other_object.boot_volume_id &&
|
49
|
+
display_name == other_object.display_name &&
|
50
|
+
instance_id == other_object.instance_id
|
51
|
+
end
|
52
|
+
|
53
|
+
# @see the `==` method
|
54
|
+
# @param [Object] other_object to be compared
|
55
|
+
def eql?(other_object)
|
56
|
+
self == other_object
|
57
|
+
end
|
58
|
+
|
59
|
+
# Calculates hash code according to all attributes.
|
60
|
+
# @return [Fixnum] Hash code
|
61
|
+
def hash
|
62
|
+
[boot_volume_id, display_name, instance_id].hash
|
63
|
+
end
|
64
|
+
|
65
|
+
# Builds the object from hash
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
# @return [Object] Returns the model itself
|
68
|
+
def build_from_hash(attributes)
|
69
|
+
return nil unless attributes.is_a?(Hash)
|
70
|
+
self.class.swagger_types.each_pair do |key, type|
|
71
|
+
if type =~ /^Array<(.*)>/i
|
72
|
+
# check to ensure the input is an array given that the the attribute
|
73
|
+
# is documented as an array but the input is not
|
74
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
75
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
76
|
+
end
|
77
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
78
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
79
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
80
|
+
end
|
81
|
+
|
82
|
+
self
|
83
|
+
end
|
84
|
+
|
85
|
+
# Returns the string representation of the object
|
86
|
+
# @return [String] String presentation of the object
|
87
|
+
def to_s
|
88
|
+
to_hash.to_s
|
89
|
+
end
|
90
|
+
|
91
|
+
# Returns the object in the form of hash
|
92
|
+
# @return [Hash] Returns the object in the form of hash
|
93
|
+
def to_hash
|
94
|
+
hash = {}
|
95
|
+
self.class.attribute_map.each_pair do |attr, param|
|
96
|
+
value = public_send(attr)
|
97
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
98
|
+
hash[param] = _to_hash(value)
|
99
|
+
end
|
100
|
+
hash
|
101
|
+
end
|
102
|
+
|
103
|
+
private
|
104
|
+
|
105
|
+
# Outputs non-array value in the form of hash
|
106
|
+
# For object, use to_hash. Otherwise, just return the value
|
107
|
+
# @param [Object] value Any valid value
|
108
|
+
# @return [Hash] Returns the value in the form of hash
|
109
|
+
def _to_hash(value)
|
110
|
+
if value.is_a?(Array)
|
111
|
+
value.compact.map{ |v| _to_hash(v) }
|
112
|
+
elsif value.is_a?(Hash)
|
113
|
+
{}.tap do |hash|
|
114
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
115
|
+
end
|
116
|
+
elsif value.respond_to? :to_hash
|
117
|
+
value.to_hash
|
118
|
+
else
|
119
|
+
value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
126
|
+
def self.attribute_map
|
127
|
+
{
|
128
|
+
:'boot_volume_id' => :'bootVolumeId',
|
129
|
+
:'display_name' => :'displayName',
|
130
|
+
:'instance_id' => :'instanceId'
|
131
|
+
}
|
132
|
+
end
|
133
|
+
|
134
|
+
# Attribute type mapping.
|
135
|
+
def self.swagger_types
|
136
|
+
{
|
137
|
+
:'boot_volume_id' => :'String',
|
138
|
+
:'display_name' => :'String',
|
139
|
+
:'instance_id' => :'String'
|
140
|
+
}
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -62,10 +62,10 @@ module OCI
|
|
62
62
|
# check to ensure the input is an array given that the the attribute
|
63
63
|
# is documented as an array but the input is not
|
64
64
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
65
|
-
self.
|
65
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
66
66
|
end
|
67
67
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
68
|
-
self.
|
68
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
69
69
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
70
70
|
end
|
71
71
|
|
@@ -83,7 +83,7 @@ module OCI
|
|
83
83
|
def to_hash
|
84
84
|
hash = {}
|
85
85
|
self.class.attribute_map.each_pair do |attr, param|
|
86
|
-
value =
|
86
|
+
value = public_send(attr)
|
87
87
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
88
88
|
hash[param] = _to_hash(value)
|
89
89
|
end
|
@@ -18,6 +18,15 @@ module OCI
|
|
18
18
|
# @return [String]
|
19
19
|
attr_accessor :instance_id
|
20
20
|
|
21
|
+
# Which physical network interface card (NIC) the VNIC will use. Defaults to 0.
|
22
|
+
# Certain bare metal instance shapes have two active physical NICs (0 and 1). If
|
23
|
+
# you add a secondary VNIC to one of these instances, you can specify which NIC
|
24
|
+
# the VNIC will use. For more information, see
|
25
|
+
# [Virtual Network Interface Cards (VNICs)](https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingVNICs.htm).
|
26
|
+
#
|
27
|
+
# @return [Integer]
|
28
|
+
attr_accessor :nic_index
|
29
|
+
|
21
30
|
|
22
31
|
# Initializes the object
|
23
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -39,6 +48,10 @@ module OCI
|
|
39
48
|
self.instance_id = attributes[:'instanceId']
|
40
49
|
end
|
41
50
|
|
51
|
+
if attributes[:'nicIndex']
|
52
|
+
self.nic_index = attributes[:'nicIndex']
|
53
|
+
end
|
54
|
+
|
42
55
|
end
|
43
56
|
|
44
57
|
# Checks equality by comparing each attribute.
|
@@ -48,7 +61,8 @@ module OCI
|
|
48
61
|
self.class == other_object.class &&
|
49
62
|
create_vnic_details == other_object.create_vnic_details &&
|
50
63
|
display_name == other_object.display_name &&
|
51
|
-
instance_id == other_object.instance_id
|
64
|
+
instance_id == other_object.instance_id &&
|
65
|
+
nic_index == other_object.nic_index
|
52
66
|
end
|
53
67
|
|
54
68
|
# @see the `==` method
|
@@ -60,7 +74,7 @@ module OCI
|
|
60
74
|
# Calculates hash code according to all attributes.
|
61
75
|
# @return [Fixnum] Hash code
|
62
76
|
def hash
|
63
|
-
[create_vnic_details, display_name, instance_id].hash
|
77
|
+
[create_vnic_details, display_name, instance_id, nic_index].hash
|
64
78
|
end
|
65
79
|
|
66
80
|
# Builds the object from hash
|
@@ -73,10 +87,10 @@ module OCI
|
|
73
87
|
# check to ensure the input is an array given that the the attribute
|
74
88
|
# is documented as an array but the input is not
|
75
89
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
76
|
-
self.
|
90
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
77
91
|
end
|
78
92
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
79
|
-
self.
|
93
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
80
94
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
81
95
|
end
|
82
96
|
|
@@ -94,7 +108,7 @@ module OCI
|
|
94
108
|
def to_hash
|
95
109
|
hash = {}
|
96
110
|
self.class.attribute_map.each_pair do |attr, param|
|
97
|
-
value =
|
111
|
+
value = public_send(attr)
|
98
112
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
99
113
|
hash[param] = _to_hash(value)
|
100
114
|
end
|
@@ -128,7 +142,8 @@ module OCI
|
|
128
142
|
{
|
129
143
|
:'create_vnic_details' => :'createVnicDetails',
|
130
144
|
:'display_name' => :'displayName',
|
131
|
-
:'instance_id' => :'instanceId'
|
145
|
+
:'instance_id' => :'instanceId',
|
146
|
+
:'nic_index' => :'nicIndex'
|
132
147
|
}
|
133
148
|
end
|
134
149
|
|
@@ -137,7 +152,8 @@ module OCI
|
|
137
152
|
{
|
138
153
|
:'create_vnic_details' => :'OCI::Core::Models::CreateVnicDetails',
|
139
154
|
:'display_name' => :'String',
|
140
|
-
:'instance_id' => :'String'
|
155
|
+
:'instance_id' => :'String',
|
156
|
+
:'nic_index' => :'Integer'
|
141
157
|
}
|
142
158
|
end
|
143
159
|
end
|
@@ -92,10 +92,10 @@ module OCI
|
|
92
92
|
# check to ensure the input is an array given that the the attribute
|
93
93
|
# is documented as an array but the input is not
|
94
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
95
|
-
self.
|
95
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
96
96
|
end
|
97
97
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
98
|
-
self.
|
98
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
99
99
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
100
100
|
end
|
101
101
|
|
@@ -113,7 +113,7 @@ module OCI
|
|
113
113
|
def to_hash
|
114
114
|
hash = {}
|
115
115
|
self.class.attribute_map.each_pair do |attr, param|
|
116
|
-
value =
|
116
|
+
value = public_send(attr)
|
117
117
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
118
118
|
hash[param] = _to_hash(value)
|
119
119
|
end
|
@@ -0,0 +1,234 @@
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
|
5
|
+
module OCI
|
6
|
+
class Core::Models::BootVolume
|
7
|
+
|
8
|
+
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING',
|
9
|
+
LIFECYCLE_STATE_RESTORING = 'RESTORING',
|
10
|
+
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE',
|
11
|
+
LIFECYCLE_STATE_TERMINATING = 'TERMINATING',
|
12
|
+
LIFECYCLE_STATE_TERMINATED = 'TERMINATED',
|
13
|
+
LIFECYCLE_STATE_FAULTY = 'FAULTY',
|
14
|
+
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
15
|
+
|
16
|
+
# The Availability Domain of the boot volume.
|
17
|
+
#
|
18
|
+
# Example: `Uocm:PHX-AD-1`
|
19
|
+
#
|
20
|
+
# @return [String]
|
21
|
+
attr_accessor :availability_domain
|
22
|
+
|
23
|
+
# The OCID of the compartment that contains the boot volume.
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :compartment_id
|
26
|
+
|
27
|
+
# A user-friendly name. Does not have to be unique, and it's changeable.
|
28
|
+
# Avoid entering confidential information.
|
29
|
+
#
|
30
|
+
# @return [String]
|
31
|
+
attr_accessor :display_name
|
32
|
+
|
33
|
+
# The boot volume's Oracle ID (OCID).
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :id
|
36
|
+
|
37
|
+
# The image OCID used to create the boot volume.
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :image_id
|
40
|
+
|
41
|
+
# The current state of a boot volume.
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :lifecycle_state
|
44
|
+
|
45
|
+
# The size of the boot volume in GBs.
|
46
|
+
# @return [Integer]
|
47
|
+
attr_accessor :size_in_gbs
|
48
|
+
|
49
|
+
# The size of the volume in MBs. The value must be a multiple of 1024.
|
50
|
+
# This field is deprecated. Please use sizeInGBs.
|
51
|
+
#
|
52
|
+
# @return [Integer]
|
53
|
+
attr_accessor :size_in_mbs
|
54
|
+
|
55
|
+
# The date and time the boot volume was created. Format defined by RFC3339.
|
56
|
+
# @return [DateTime]
|
57
|
+
attr_accessor :time_created
|
58
|
+
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
67
|
+
|
68
|
+
if attributes[:'availabilityDomain']
|
69
|
+
self.availability_domain = attributes[:'availabilityDomain']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes[:'compartmentId']
|
73
|
+
self.compartment_id = attributes[:'compartmentId']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes[:'displayName']
|
77
|
+
self.display_name = attributes[:'displayName']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes[:'id']
|
81
|
+
self.id = attributes[:'id']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes[:'imageId']
|
85
|
+
self.image_id = attributes[:'imageId']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes[:'lifecycleState']
|
89
|
+
self.lifecycle_state = attributes[:'lifecycleState']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes[:'sizeInGBs']
|
93
|
+
self.size_in_gbs = attributes[:'sizeInGBs']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes[:'sizeInMBs']
|
97
|
+
self.size_in_mbs = attributes[:'sizeInMBs']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes[:'timeCreated']
|
101
|
+
self.time_created = attributes[:'timeCreated']
|
102
|
+
end
|
103
|
+
|
104
|
+
end
|
105
|
+
|
106
|
+
# Custom attribute writer method checking allowed values (enum).
|
107
|
+
# @param [Object] lifecycle_state Object to be assigned
|
108
|
+
def lifecycle_state=(lifecycle_state)
|
109
|
+
if lifecycle_state && !LIFECYCLE_STATE_ENUM.include?(lifecycle_state)
|
110
|
+
@lifecycle_state = LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE
|
111
|
+
else
|
112
|
+
@lifecycle_state = lifecycle_state
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] other_object to be compared
|
118
|
+
def ==(other_object)
|
119
|
+
return true if self.equal?(other_object)
|
120
|
+
self.class == other_object.class &&
|
121
|
+
availability_domain == other_object.availability_domain &&
|
122
|
+
compartment_id == other_object.compartment_id &&
|
123
|
+
display_name == other_object.display_name &&
|
124
|
+
id == other_object.id &&
|
125
|
+
image_id == other_object.image_id &&
|
126
|
+
lifecycle_state == other_object.lifecycle_state &&
|
127
|
+
size_in_gbs == other_object.size_in_gbs &&
|
128
|
+
size_in_mbs == other_object.size_in_mbs &&
|
129
|
+
time_created == other_object.time_created
|
130
|
+
end
|
131
|
+
|
132
|
+
# @see the `==` method
|
133
|
+
# @param [Object] other_object to be compared
|
134
|
+
def eql?(other_object)
|
135
|
+
self == other_object
|
136
|
+
end
|
137
|
+
|
138
|
+
# Calculates hash code according to all attributes.
|
139
|
+
# @return [Fixnum] Hash code
|
140
|
+
def hash
|
141
|
+
[availability_domain, compartment_id, display_name, id, image_id, lifecycle_state, size_in_gbs, size_in_mbs, time_created].hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
self.class.swagger_types.each_pair do |key, type|
|
150
|
+
if type =~ /^Array<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
154
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
155
|
+
end
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
158
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
159
|
+
end
|
160
|
+
|
161
|
+
self
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the string representation of the object
|
165
|
+
# @return [String] String presentation of the object
|
166
|
+
def to_s
|
167
|
+
to_hash.to_s
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the object in the form of hash
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_hash
|
173
|
+
hash = {}
|
174
|
+
self.class.attribute_map.each_pair do |attr, param|
|
175
|
+
value = public_send(attr)
|
176
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
177
|
+
hash[param] = _to_hash(value)
|
178
|
+
end
|
179
|
+
hash
|
180
|
+
end
|
181
|
+
|
182
|
+
private
|
183
|
+
|
184
|
+
# Outputs non-array value in the form of hash
|
185
|
+
# For object, use to_hash. Otherwise, just return the value
|
186
|
+
# @param [Object] value Any valid value
|
187
|
+
# @return [Hash] Returns the value in the form of hash
|
188
|
+
def _to_hash(value)
|
189
|
+
if value.is_a?(Array)
|
190
|
+
value.compact.map{ |v| _to_hash(v) }
|
191
|
+
elsif value.is_a?(Hash)
|
192
|
+
{}.tap do |hash|
|
193
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
194
|
+
end
|
195
|
+
elsif value.respond_to? :to_hash
|
196
|
+
value.to_hash
|
197
|
+
else
|
198
|
+
value
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
205
|
+
def self.attribute_map
|
206
|
+
{
|
207
|
+
:'availability_domain' => :'availabilityDomain',
|
208
|
+
:'compartment_id' => :'compartmentId',
|
209
|
+
:'display_name' => :'displayName',
|
210
|
+
:'id' => :'id',
|
211
|
+
:'image_id' => :'imageId',
|
212
|
+
:'lifecycle_state' => :'lifecycleState',
|
213
|
+
:'size_in_gbs' => :'sizeInGBs',
|
214
|
+
:'size_in_mbs' => :'sizeInMBs',
|
215
|
+
:'time_created' => :'timeCreated'
|
216
|
+
}
|
217
|
+
end
|
218
|
+
|
219
|
+
# Attribute type mapping.
|
220
|
+
def self.swagger_types
|
221
|
+
{
|
222
|
+
:'availability_domain' => :'String',
|
223
|
+
:'compartment_id' => :'String',
|
224
|
+
:'display_name' => :'String',
|
225
|
+
:'id' => :'String',
|
226
|
+
:'image_id' => :'String',
|
227
|
+
:'lifecycle_state' => :'String',
|
228
|
+
:'size_in_gbs' => :'Integer',
|
229
|
+
:'size_in_mbs' => :'Integer',
|
230
|
+
:'time_created' => :'DateTime'
|
231
|
+
}
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|