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
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
|
+
require_relative 'create_db_home_with_db_system_id_base'
|
|
4
5
|
|
|
5
6
|
module OCI
|
|
6
|
-
class Database::Models::CreateDbHomeWithDbSystemIdDetails
|
|
7
|
+
class Database::Models::CreateDbHomeWithDbSystemIdDetails < Database::Models::CreateDbHomeWithDbSystemIdBase
|
|
7
8
|
# @return [OCI::Database::Models::CreateDatabaseDetails]
|
|
8
9
|
attr_accessor :database
|
|
9
10
|
|
|
10
|
-
# The OCID of the DB System.
|
|
11
|
-
# @return [String]
|
|
12
|
-
attr_accessor :db_system_id
|
|
13
|
-
|
|
14
11
|
# A valid Oracle database version. To get a list of supported versions, use the {#list_db_versions list_db_versions} operation.
|
|
15
12
|
# @return [String]
|
|
16
13
|
attr_accessor :db_version
|
|
17
14
|
|
|
18
|
-
# The user-provided name of the database home.
|
|
19
|
-
# @return [String]
|
|
20
|
-
attr_accessor :display_name
|
|
21
|
-
|
|
22
15
|
|
|
23
16
|
# Initializes the object
|
|
24
17
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
25
18
|
def initialize(attributes = {})
|
|
26
19
|
return unless attributes.is_a?(Hash)
|
|
27
20
|
|
|
21
|
+
attributes['source'] = 'NONE'
|
|
22
|
+
|
|
23
|
+
super(attributes)
|
|
24
|
+
|
|
28
25
|
# convert string to symbol for hash key
|
|
29
26
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
30
27
|
|
|
@@ -32,18 +29,10 @@ module OCI
|
|
|
32
29
|
self.database = attributes[:'database']
|
|
33
30
|
end
|
|
34
31
|
|
|
35
|
-
if attributes[:'dbSystemId']
|
|
36
|
-
self.db_system_id = attributes[:'dbSystemId']
|
|
37
|
-
end
|
|
38
|
-
|
|
39
32
|
if attributes[:'dbVersion']
|
|
40
33
|
self.db_version = attributes[:'dbVersion']
|
|
41
34
|
end
|
|
42
35
|
|
|
43
|
-
if attributes[:'displayName']
|
|
44
|
-
self.display_name = attributes[:'displayName']
|
|
45
|
-
end
|
|
46
|
-
|
|
47
36
|
end
|
|
48
37
|
|
|
49
38
|
# Checks equality by comparing each attribute.
|
|
@@ -51,10 +40,11 @@ module OCI
|
|
|
51
40
|
def ==(other_object)
|
|
52
41
|
return true if self.equal?(other_object)
|
|
53
42
|
self.class == other_object.class &&
|
|
54
|
-
database == other_object.database &&
|
|
55
43
|
db_system_id == other_object.db_system_id &&
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
display_name == other_object.display_name &&
|
|
45
|
+
source == other_object.source &&
|
|
46
|
+
database == other_object.database &&
|
|
47
|
+
db_version == other_object.db_version
|
|
58
48
|
end
|
|
59
49
|
|
|
60
50
|
# @see the `==` method
|
|
@@ -66,7 +56,7 @@ module OCI
|
|
|
66
56
|
# Calculates hash code according to all attributes.
|
|
67
57
|
# @return [Fixnum] Hash code
|
|
68
58
|
def hash
|
|
69
|
-
[
|
|
59
|
+
[db_system_id, display_name, source, database, db_version].hash
|
|
70
60
|
end
|
|
71
61
|
|
|
72
62
|
# Builds the object from hash
|
|
@@ -79,10 +69,10 @@ module OCI
|
|
|
79
69
|
# check to ensure the input is an array given that the the attribute
|
|
80
70
|
# is documented as an array but the input is not
|
|
81
71
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
82
|
-
self.
|
|
72
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
83
73
|
end
|
|
84
74
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
85
|
-
self.
|
|
75
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
86
76
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
87
77
|
end
|
|
88
78
|
|
|
@@ -100,7 +90,7 @@ module OCI
|
|
|
100
90
|
def to_hash
|
|
101
91
|
hash = {}
|
|
102
92
|
self.class.attribute_map.each_pair do |attr, param|
|
|
103
|
-
value =
|
|
93
|
+
value = public_send(attr)
|
|
104
94
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
105
95
|
hash[param] = _to_hash(value)
|
|
106
96
|
end
|
|
@@ -132,20 +122,22 @@ module OCI
|
|
|
132
122
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
133
123
|
def self.attribute_map
|
|
134
124
|
{
|
|
135
|
-
:'database' => :'database',
|
|
136
125
|
:'db_system_id' => :'dbSystemId',
|
|
137
|
-
:'
|
|
138
|
-
:'
|
|
126
|
+
:'display_name' => :'displayName',
|
|
127
|
+
:'source' => :'source',
|
|
128
|
+
:'database' => :'database',
|
|
129
|
+
:'db_version' => :'dbVersion'
|
|
139
130
|
}
|
|
140
131
|
end
|
|
141
132
|
|
|
142
133
|
# Attribute type mapping.
|
|
143
134
|
def self.swagger_types
|
|
144
135
|
{
|
|
145
|
-
:'database' => :'OCI::Database::Models::CreateDatabaseDetails',
|
|
146
136
|
:'db_system_id' => :'String',
|
|
147
|
-
:'
|
|
148
|
-
:'
|
|
137
|
+
:'display_name' => :'String',
|
|
138
|
+
:'source' => :'String',
|
|
139
|
+
:'database' => :'OCI::Database::Models::CreateDatabaseDetails',
|
|
140
|
+
:'db_version' => :'String'
|
|
149
141
|
}
|
|
150
142
|
end
|
|
151
143
|
end
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
require_relative 'create_db_home_with_db_system_id_base'
|
|
5
|
+
|
|
6
|
+
module OCI
|
|
7
|
+
class Database::Models::CreateDbHomeWithDbSystemIdFromBackupDetails < Database::Models::CreateDbHomeWithDbSystemIdBase
|
|
8
|
+
# @return [OCI::Database::Models::CreateDatabaseFromBackupDetails]
|
|
9
|
+
attr_accessor :database
|
|
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
|
+
attributes['source'] = 'DB_BACKUP'
|
|
18
|
+
|
|
19
|
+
super(attributes)
|
|
20
|
+
|
|
21
|
+
# convert string to symbol for hash key
|
|
22
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
23
|
+
|
|
24
|
+
if attributes[:'database']
|
|
25
|
+
self.database = attributes[:'database']
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Checks equality by comparing each attribute.
|
|
31
|
+
# @param [Object] other_object to be compared
|
|
32
|
+
def ==(other_object)
|
|
33
|
+
return true if self.equal?(other_object)
|
|
34
|
+
self.class == other_object.class &&
|
|
35
|
+
db_system_id == other_object.db_system_id &&
|
|
36
|
+
display_name == other_object.display_name &&
|
|
37
|
+
source == other_object.source &&
|
|
38
|
+
database == other_object.database
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @see the `==` method
|
|
42
|
+
# @param [Object] other_object to be compared
|
|
43
|
+
def eql?(other_object)
|
|
44
|
+
self == other_object
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Calculates hash code according to all attributes.
|
|
48
|
+
# @return [Fixnum] Hash code
|
|
49
|
+
def hash
|
|
50
|
+
[db_system_id, display_name, source, database].hash
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Builds the object from hash
|
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
55
|
+
# @return [Object] Returns the model itself
|
|
56
|
+
def build_from_hash(attributes)
|
|
57
|
+
return nil unless attributes.is_a?(Hash)
|
|
58
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
59
|
+
if type =~ /^Array<(.*)>/i
|
|
60
|
+
# check to ensure the input is an array given that the the attribute
|
|
61
|
+
# is documented as an array but the input is not
|
|
62
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
63
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
64
|
+
end
|
|
65
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
66
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
67
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
self
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns the string representation of the object
|
|
74
|
+
# @return [String] String presentation of the object
|
|
75
|
+
def to_s
|
|
76
|
+
to_hash.to_s
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Returns the object in the form of hash
|
|
80
|
+
# @return [Hash] Returns the object in the form of hash
|
|
81
|
+
def to_hash
|
|
82
|
+
hash = {}
|
|
83
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
84
|
+
value = public_send(attr)
|
|
85
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
86
|
+
hash[param] = _to_hash(value)
|
|
87
|
+
end
|
|
88
|
+
hash
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
private
|
|
92
|
+
|
|
93
|
+
# Outputs non-array value in the form of hash
|
|
94
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
95
|
+
# @param [Object] value Any valid value
|
|
96
|
+
# @return [Hash] Returns the value in the form of hash
|
|
97
|
+
def _to_hash(value)
|
|
98
|
+
if value.is_a?(Array)
|
|
99
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
100
|
+
elsif value.is_a?(Hash)
|
|
101
|
+
{}.tap do |hash|
|
|
102
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
103
|
+
end
|
|
104
|
+
elsif value.respond_to? :to_hash
|
|
105
|
+
value.to_hash
|
|
106
|
+
else
|
|
107
|
+
value
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
114
|
+
def self.attribute_map
|
|
115
|
+
{
|
|
116
|
+
:'db_system_id' => :'dbSystemId',
|
|
117
|
+
:'display_name' => :'displayName',
|
|
118
|
+
:'source' => :'source',
|
|
119
|
+
:'database' => :'database'
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Attribute type mapping.
|
|
124
|
+
def self.swagger_types
|
|
125
|
+
{
|
|
126
|
+
:'db_system_id' => :'String',
|
|
127
|
+
:'display_name' => :'String',
|
|
128
|
+
:'source' => :'String',
|
|
129
|
+
:'database' => :'OCI::Database::Models::CreateDatabaseFromBackupDetails'
|
|
130
|
+
}
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
@@ -279,10 +279,10 @@ module OCI
|
|
|
279
279
|
# check to ensure the input is an array given that the the attribute
|
|
280
280
|
# is documented as an array but the input is not
|
|
281
281
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
282
|
-
self.
|
|
282
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
283
283
|
end
|
|
284
284
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
285
|
-
self.
|
|
285
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
286
286
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
287
287
|
end
|
|
288
288
|
|
|
@@ -300,7 +300,7 @@ module OCI
|
|
|
300
300
|
def to_hash
|
|
301
301
|
hash = {}
|
|
302
302
|
self.class.attribute_map.each_pair do |attr, param|
|
|
303
|
-
value =
|
|
303
|
+
value = public_send(attr)
|
|
304
304
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
305
305
|
hash[param] = _to_hash(value)
|
|
306
306
|
end
|
|
@@ -279,10 +279,10 @@ module OCI
|
|
|
279
279
|
# check to ensure the input is an array given that the the attribute
|
|
280
280
|
# is documented as an array but the input is not
|
|
281
281
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
282
|
-
self.
|
|
282
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
283
283
|
end
|
|
284
284
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
285
|
-
self.
|
|
285
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
286
286
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
287
287
|
end
|
|
288
288
|
|
|
@@ -300,7 +300,7 @@ module OCI
|
|
|
300
300
|
def to_hash
|
|
301
301
|
hash = {}
|
|
302
302
|
self.class.attribute_map.each_pair do |attr, param|
|
|
303
|
-
value =
|
|
303
|
+
value = public_send(attr)
|
|
304
304
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
305
305
|
hash[param] = _to_hash(value)
|
|
306
306
|
end
|
|
@@ -182,10 +182,10 @@ module OCI
|
|
|
182
182
|
# check to ensure the input is an array given that the the attribute
|
|
183
183
|
# is documented as an array but the input is not
|
|
184
184
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
185
|
-
self.
|
|
185
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
186
186
|
end
|
|
187
187
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
188
|
-
self.
|
|
188
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
189
189
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
190
190
|
end
|
|
191
191
|
|
|
@@ -203,7 +203,7 @@ module OCI
|
|
|
203
203
|
def to_hash
|
|
204
204
|
hash = {}
|
|
205
205
|
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
-
value =
|
|
206
|
+
value = public_send(attr)
|
|
207
207
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
208
208
|
hash[param] = _to_hash(value)
|
|
209
209
|
end
|
|
@@ -182,10 +182,10 @@ module OCI
|
|
|
182
182
|
# check to ensure the input is an array given that the the attribute
|
|
183
183
|
# is documented as an array but the input is not
|
|
184
184
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
185
|
-
self.
|
|
185
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
186
186
|
end
|
|
187
187
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
188
|
-
self.
|
|
188
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
189
189
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
190
190
|
end
|
|
191
191
|
|
|
@@ -203,7 +203,7 @@ module OCI
|
|
|
203
203
|
def to_hash
|
|
204
204
|
hash = {}
|
|
205
205
|
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
-
value =
|
|
206
|
+
value = public_send(attr)
|
|
207
207
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
208
208
|
hash[param] = _to_hash(value)
|
|
209
209
|
end
|
|
@@ -53,10 +53,10 @@ module OCI
|
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
|
54
54
|
# is documented as an array but the input is not
|
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
56
|
-
self.
|
|
56
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
57
57
|
end
|
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
59
|
-
self.
|
|
59
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
|
74
74
|
def to_hash
|
|
75
75
|
hash = {}
|
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
|
77
|
-
value =
|
|
77
|
+
value = public_send(attr)
|
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
79
79
|
hash[param] = _to_hash(value)
|
|
80
80
|
end
|
|
@@ -135,10 +135,10 @@ module OCI
|
|
|
135
135
|
# check to ensure the input is an array given that the the attribute
|
|
136
136
|
# is documented as an array but the input is not
|
|
137
137
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
138
|
-
self.
|
|
138
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
139
139
|
end
|
|
140
140
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
141
|
-
self.
|
|
141
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
142
142
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
143
143
|
end
|
|
144
144
|
|
|
@@ -156,7 +156,7 @@ module OCI
|
|
|
156
156
|
def to_hash
|
|
157
157
|
hash = {}
|
|
158
158
|
self.class.attribute_map.each_pair do |attr, param|
|
|
159
|
-
value =
|
|
159
|
+
value = public_send(attr)
|
|
160
160
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
161
161
|
hash[param] = _to_hash(value)
|
|
162
162
|
end
|
|
@@ -135,10 +135,10 @@ module OCI
|
|
|
135
135
|
# check to ensure the input is an array given that the the attribute
|
|
136
136
|
# is documented as an array but the input is not
|
|
137
137
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
138
|
-
self.
|
|
138
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
139
139
|
end
|
|
140
140
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
141
|
-
self.
|
|
141
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
142
142
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
143
143
|
end
|
|
144
144
|
|
|
@@ -156,7 +156,7 @@ module OCI
|
|
|
156
156
|
def to_hash
|
|
157
157
|
hash = {}
|
|
158
158
|
self.class.attribute_map.each_pair do |attr, param|
|
|
159
|
-
value =
|
|
159
|
+
value = public_send(attr)
|
|
160
160
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
161
161
|
hash[param] = _to_hash(value)
|
|
162
162
|
end
|
|
@@ -139,10 +139,10 @@ module OCI
|
|
|
139
139
|
# check to ensure the input is an array given that the the attribute
|
|
140
140
|
# is documented as an array but the input is not
|
|
141
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
142
|
-
self.
|
|
142
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
143
143
|
end
|
|
144
144
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
145
|
-
self.
|
|
145
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
146
146
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
147
147
|
end
|
|
148
148
|
|
|
@@ -160,7 +160,7 @@ module OCI
|
|
|
160
160
|
def to_hash
|
|
161
161
|
hash = {}
|
|
162
162
|
self.class.attribute_map.each_pair do |attr, param|
|
|
163
|
-
value =
|
|
163
|
+
value = public_send(attr)
|
|
164
164
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
165
165
|
hash[param] = _to_hash(value)
|
|
166
166
|
end
|
|
@@ -139,10 +139,10 @@ module OCI
|
|
|
139
139
|
# check to ensure the input is an array given that the the attribute
|
|
140
140
|
# is documented as an array but the input is not
|
|
141
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
142
|
-
self.
|
|
142
|
+
self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
143
143
|
end
|
|
144
144
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
145
|
-
self.
|
|
145
|
+
self.public_send("#{key}=", OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
146
146
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
147
147
|
end
|
|
148
148
|
|
|
@@ -160,7 +160,7 @@ module OCI
|
|
|
160
160
|
def to_hash
|
|
161
161
|
hash = {}
|
|
162
162
|
self.class.attribute_map.each_pair do |attr, param|
|
|
163
|
-
value =
|
|
163
|
+
value = public_send(attr)
|
|
164
164
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
165
165
|
hash[param] = _to_hash(value)
|
|
166
166
|
end
|