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