oci 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +3 -3
- data/README.md +72 -6
- data/lib/oci.rb +1 -1
- data/lib/oci/api_client.rb +1 -1
- data/lib/oci/audit/audit.rb +1 -1
- data/lib/oci/audit/audit_client.rb +1 -1
- data/lib/oci/audit/models/audit_event.rb +4 -4
- data/lib/oci/audit/models/configuration.rb +4 -4
- data/lib/oci/audit/models/update_configuration_details.rb +4 -4
- data/lib/oci/audit/util.rb +2 -1
- data/lib/oci/config.rb +1 -1
- data/lib/oci/config_file_loader.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +4 -2
- data/lib/oci/core/core.rb +2 -1
- data/lib/oci/core/models/attach_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_vnic_details.rb +4 -4
- data/lib/oci/core/models/attach_volume_details.rb +4 -4
- data/lib/oci/core/models/boot_volume.rb +4 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +4 -4
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/capture_console_history_details.rb +36 -5
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +4 -4
- data/lib/oci/core/models/console_history.rb +36 -6
- data/lib/oci/core/models/cpe.rb +4 -4
- data/lib/oci/core/models/create_cpe_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/create_dhcp_details.rb +36 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/create_drg_details.rb +4 -4
- data/lib/oci/core/models/create_image_details.rb +69 -8
- data/lib/oci/core/models/create_instance_console_connection_details.rb +36 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_private_ip_details.rb +36 -5
- data/lib/oci/core/models/create_route_table_details.rb +36 -5
- data/lib/oci/core/models/create_security_list_details.rb +36 -5
- data/lib/oci/core/models/create_subnet_details.rb +36 -5
- data/lib/oci/core/models/create_vcn_details.rb +39 -8
- data/lib/oci/core/models/create_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/create_vnic_details.rb +4 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +36 -5
- data/lib/oci/core/models/create_volume_details.rb +36 -5
- data/lib/oci/core/models/cross_connect.rb +4 -4
- data/lib/oci/core/models/cross_connect_group.rb +4 -4
- data/lib/oci/core/models/cross_connect_location.rb +4 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +4 -4
- data/lib/oci/core/models/cross_connect_status.rb +4 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/dhcp_dns_option.rb +4 -4
- data/lib/oci/core/models/dhcp_option.rb +4 -4
- data/lib/oci/core/models/dhcp_options.rb +36 -5
- data/lib/oci/core/models/dhcp_search_domain_option.rb +4 -4
- data/lib/oci/core/models/drg.rb +4 -4
- data/lib/oci/core/models/drg_attachment.rb +4 -4
- data/lib/oci/core/models/egress_security_rule.rb +4 -4
- data/lib/oci/core/models/export_image_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +4 -4
- data/lib/oci/core/models/fast_connect_provider_service.rb +4 -4
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +4 -4
- data/lib/oci/core/models/icmp_options.rb +4 -4
- data/lib/oci/core/models/image.rb +77 -6
- data/lib/oci/core/models/image_source_details.rb +32 -5
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +8 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -5
- data/lib/oci/core/models/ingress_security_rule.rb +4 -4
- data/lib/oci/core/models/instance.rb +77 -5
- data/lib/oci/core/models/instance_console_connection.rb +52 -8
- data/lib/oci/core/models/instance_credentials.rb +4 -4
- data/lib/oci/core/models/instance_source_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_image_details.rb +4 -4
- data/lib/oci/core/models/internet_gateway.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +4 -4
- data/lib/oci/core/models/launch_instance_details.rb +39 -6
- data/lib/oci/core/models/launch_options.rb +239 -0
- data/lib/oci/core/models/letter_of_authority.rb +4 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -4
- data/lib/oci/core/models/port_range.rb +4 -4
- data/lib/oci/core/models/private_ip.rb +36 -5
- data/lib/oci/core/models/route_rule.rb +4 -4
- data/lib/oci/core/models/route_table.rb +36 -5
- data/lib/oci/core/models/security_list.rb +36 -5
- data/lib/oci/core/models/shape.rb +4 -4
- data/lib/oci/core/models/subnet.rb +36 -5
- data/lib/oci/core/models/tcp_options.rb +4 -4
- data/lib/oci/core/models/tunnel_config.rb +4 -4
- data/lib/oci/core/models/tunnel_status.rb +4 -4
- data/lib/oci/core/models/udp_options.rb +4 -4
- data/lib/oci/core/models/update_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/update_console_history_details.rb +39 -8
- data/lib/oci/core/models/update_cpe_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/update_dhcp_details.rb +36 -5
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/update_drg_details.rb +4 -4
- data/lib/oci/core/models/update_image_details.rb +39 -8
- data/lib/oci/core/models/update_instance_details.rb +39 -8
- data/lib/oci/core/models/update_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_private_ip_details.rb +36 -5
- data/lib/oci/core/models/update_route_table_details.rb +36 -5
- data/lib/oci/core/models/update_security_list_details.rb +36 -5
- data/lib/oci/core/models/update_subnet_details.rb +39 -8
- data/lib/oci/core/models/update_vcn_details.rb +39 -8
- data/lib/oci/core/models/update_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/update_vnic_details.rb +4 -4
- data/lib/oci/core/models/update_volume_backup_details.rb +39 -8
- data/lib/oci/core/models/update_volume_details.rb +39 -8
- data/lib/oci/core/models/vcn.rb +36 -5
- data/lib/oci/core/models/virtual_circuit.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +4 -4
- data/lib/oci/core/models/vnic.rb +4 -4
- data/lib/oci/core/models/vnic_attachment.rb +4 -4
- data/lib/oci/core/models/volume.rb +36 -5
- data/lib/oci/core/models/volume_attachment.rb +4 -4
- data/lib/oci/core/models/volume_backup.rb +36 -5
- data/lib/oci/core/models/volume_source_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_details.rb +4 -4
- data/lib/oci/core/util.rb +2 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -1
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +4 -4
- data/lib/oci/database/models/backup_summary.rb +4 -4
- data/lib/oci/database/models/create_backup_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +4 -4
- data/lib/oci/database/models/create_database_details.rb +4 -4
- data/lib/oci/database/models/create_database_from_backup_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -4
- data/lib/oci/database/models/data_guard_association.rb +4 -4
- data/lib/oci/database/models/data_guard_association_summary.rb +4 -4
- data/lib/oci/database/models/database.rb +4 -4
- data/lib/oci/database/models/database_summary.rb +4 -4
- data/lib/oci/database/models/db_backup_config.rb +4 -4
- data/lib/oci/database/models/db_home.rb +4 -4
- data/lib/oci/database/models/db_home_summary.rb +4 -4
- data/lib/oci/database/models/db_node.rb +4 -4
- data/lib/oci/database/models/db_node_summary.rb +4 -4
- data/lib/oci/database/models/db_system.rb +4 -4
- data/lib/oci/database/models/db_system_shape_summary.rb +4 -4
- data/lib/oci/database/models/db_system_summary.rb +4 -4
- data/lib/oci/database/models/db_version_summary.rb +4 -4
- data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/launch_db_system_details.rb +4 -4
- data/lib/oci/database/models/patch.rb +4 -4
- data/lib/oci/database/models/patch_details.rb +4 -4
- data/lib/oci/database/models/patch_history_entry.rb +4 -4
- data/lib/oci/database/models/patch_history_entry_summary.rb +4 -4
- data/lib/oci/database/models/patch_summary.rb +4 -4
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/restore_database_details.rb +4 -4
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/update_database_details.rb +4 -4
- data/lib/oci/database/models/update_db_home_details.rb +4 -4
- data/lib/oci/database/models/update_db_system_details.rb +4 -4
- data/lib/oci/database/util.rb +2 -1
- data/lib/oci/errors.rb +1 -1
- data/lib/oci/global_context.rb +1 -1
- data/lib/oci/identity/identity.rb +9 -1
- data/lib/oci/identity/identity_client.rb +339 -1
- data/lib/oci/identity/models/add_user_to_group_details.rb +4 -4
- data/lib/oci/identity/models/api_key.rb +4 -4
- data/lib/oci/identity/models/availability_domain.rb +4 -4
- data/lib/oci/identity/models/compartment.rb +34 -8
- data/lib/oci/identity/models/create_api_key_details.rb +4 -4
- data/lib/oci/identity/models/create_compartment_details.rb +34 -8
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/create_group_details.rb +34 -8
- data/lib/oci/identity/models/create_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/create_policy_details.rb +34 -8
- data/lib/oci/identity/models/create_region_subscription_details.rb +4 -4
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/create_tag_details.rb +158 -0
- data/lib/oci/identity/models/create_tag_namespace_details.rb +169 -0
- data/lib/oci/identity/models/create_user_details.rb +34 -8
- data/lib/oci/identity/models/customer_secret_key.rb +4 -4
- data/lib/oci/identity/models/customer_secret_key_summary.rb +4 -4
- data/lib/oci/identity/models/group.rb +35 -8
- data/lib/oci/identity/models/identity_provider.rb +34 -8
- data/lib/oci/identity/models/idp_group_mapping.rb +4 -4
- data/lib/oci/identity/models/policy.rb +34 -8
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +11 -5
- data/lib/oci/identity/models/swift_password.rb +4 -4
- data/lib/oci/identity/models/tag.rb +228 -0
- data/lib/oci/identity/models/tag_namespace.rb +205 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +205 -0
- data/lib/oci/identity/models/tag_summary.rb +205 -0
- data/lib/oci/identity/models/tenancy.rb +34 -8
- data/lib/oci/identity/models/ui_password.rb +4 -4
- data/lib/oci/identity/models/update_compartment_details.rb +34 -8
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/update_group_details.rb +34 -8
- data/lib/oci/identity/models/update_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/update_policy_details.rb +34 -8
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/update_state_details.rb +4 -4
- data/lib/oci/identity/models/update_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/update_tag_details.rb +157 -0
- data/lib/oci/identity/models/update_tag_namespace_details.rb +157 -0
- data/lib/oci/identity/models/update_user_details.rb +34 -8
- data/lib/oci/identity/models/user.rb +35 -8
- data/lib/oci/identity/models/user_group_membership.rb +4 -4
- data/lib/oci/identity/util.rb +2 -1
- data/lib/oci/internal/internal.rb +1 -1
- data/lib/oci/internal/util.rb +2 -2
- data/lib/oci/load_balancer/load_balancer.rb +1 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +4 -4
- data/lib/oci/load_balancer/models/backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
- data/lib/oci/load_balancer/models/certificate.rb +4 -4
- data/lib/oci/load_balancer/models/certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/ip_address.rb +4 -4
- data/lib/oci/load_balancer/models/listener.rb +4 -4
- data/lib/oci/load_balancer/models/listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +4 -4
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/work_request.rb +4 -4
- data/lib/oci/load_balancer/models/work_request_error.rb +4 -4
- data/lib/oci/load_balancer/util.rb +1 -1
- data/lib/oci/object_storage/models/bucket.rb +4 -4
- data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +4 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +4 -4
- data/lib/oci/object_storage/models/list_objects.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +4 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
- data/lib/oci/object_storage/models/object_summary.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +4 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +4 -4
- data/lib/oci/object_storage/models/restore_objects_details.rb +4 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
- data/lib/oci/object_storage/object_storage.rb +1 -1
- data/lib/oci/object_storage/object_storage_client.rb +1 -1
- data/lib/oci/object_storage/util.rb +2 -1
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/response.rb +1 -1
- data/lib/oci/response_headers.rb +1 -1
- data/lib/oci/signer.rb +1 -1
- data/lib/oci/version.rb +2 -2
- data/lib/oci/waiter.rb +21 -5
- data/lib/oraclebmc.rb +1 -1
- metadata +11 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
require_relative 'export_image_details'
|
@@ -77,10 +77,10 @@ module OCI
|
|
77
77
|
# check to ensure the input is an array given that the the attribute
|
78
78
|
# is documented as an array but the input is not
|
79
79
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
-
self.
|
80
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
81
81
|
end
|
82
82
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
-
self.
|
83
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
84
84
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
85
|
end
|
86
86
|
|
@@ -98,7 +98,7 @@ module OCI
|
|
98
98
|
def to_hash
|
99
99
|
hash = {}
|
100
100
|
self.class.attribute_map.each_pair do |attr, param|
|
101
|
-
value =
|
101
|
+
value = public_method(attr).call
|
102
102
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
103
103
|
hash[param] = _to_hash(value)
|
104
104
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
require_relative 'export_image_details'
|
@@ -61,10 +61,10 @@ module OCI
|
|
61
61
|
# check to ensure the input is an array given that the the attribute
|
62
62
|
# is documented as an array but the input is not
|
63
63
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
64
|
-
self.
|
64
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
65
65
|
end
|
66
66
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
67
|
-
self.
|
67
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
68
68
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
69
69
|
end
|
70
70
|
|
@@ -82,7 +82,7 @@ module OCI
|
|
82
82
|
def to_hash
|
83
83
|
hash = {}
|
84
84
|
self.class.attribute_map.each_pair do |attr, param|
|
85
|
-
value =
|
85
|
+
value = public_method(attr).call
|
86
86
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
87
87
|
hash[param] = _to_hash(value)
|
88
88
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
@@ -189,10 +189,10 @@ module OCI
|
|
189
189
|
# check to ensure the input is an array given that the the attribute
|
190
190
|
# is documented as an array but the input is not
|
191
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
|
-
self.
|
192
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
193
193
|
end
|
194
194
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
195
|
-
self.
|
195
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
196
196
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
197
197
|
end
|
198
198
|
|
@@ -210,7 +210,7 @@ module OCI
|
|
210
210
|
def to_hash
|
211
211
|
hash = {}
|
212
212
|
self.class.attribute_map.each_pair do |attr, param|
|
213
|
-
value =
|
213
|
+
value = public_method(attr).call
|
214
214
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
215
215
|
hash[param] = _to_hash(value)
|
216
216
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
require_relative 'volume_attachment'
|
@@ -119,10 +119,10 @@ module OCI
|
|
119
119
|
# check to ensure the input is an array given that the the attribute
|
120
120
|
# is documented as an array but the input is not
|
121
121
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
-
self.
|
122
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
123
123
|
end
|
124
124
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
-
self.
|
125
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
126
126
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
127
127
|
end
|
128
128
|
|
@@ -140,7 +140,7 @@ module OCI
|
|
140
140
|
def to_hash
|
141
141
|
hash = {}
|
142
142
|
self.class.attribute_map.each_pair do |attr, param|
|
143
|
-
value =
|
143
|
+
value = public_method(attr).call
|
144
144
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
145
145
|
hash[param] = _to_hash(value)
|
146
146
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
@@ -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_method("#{key}=").call(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_method("#{key}=").call(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_method(attr).call
|
87
87
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
88
88
|
hash[param] = _to_hash(value)
|
89
89
|
end
|
@@ -1,10 +1,16 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
6
|
class Core::Models::Image
|
7
7
|
|
8
|
+
LAUNCH_MODE_ENUM = [LAUNCH_MODE_NATIVE = 'NATIVE',
|
9
|
+
LAUNCH_MODE_EMULATED = 'EMULATED',
|
10
|
+
LAUNCH_MODE_CUSTOM = 'CUSTOM',
|
11
|
+
LAUNCH_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
|
12
|
+
|
13
|
+
|
8
14
|
LIFECYCLE_STATE_ENUM = [LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING',
|
9
15
|
LIFECYCLE_STATE_IMPORTING = 'IMPORTING',
|
10
16
|
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE',
|
@@ -24,12 +30,19 @@ module OCI
|
|
24
30
|
|
25
31
|
# Whether instances launched with this image can be used to create new images.
|
26
32
|
# For example, you cannot create an image of an Oracle Database instance.
|
27
|
-
#
|
28
33
|
# Example: `true`
|
29
34
|
#
|
30
35
|
# @return [BOOLEAN]
|
31
36
|
attr_accessor :create_image_allowed
|
32
37
|
|
38
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
39
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
40
|
+
#
|
41
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
42
|
+
#
|
43
|
+
# @return [Hash<String, Hash<String, Object>>]
|
44
|
+
attr_accessor :defined_tags
|
45
|
+
|
33
46
|
# A user-friendly name for the image. It does not have to be unique, and it's changeable.
|
34
47
|
# Avoid entering confidential information.
|
35
48
|
# You cannot use an Oracle-provided image name as a custom image name.
|
@@ -39,10 +52,30 @@ module OCI
|
|
39
52
|
# @return [String]
|
40
53
|
attr_accessor :display_name
|
41
54
|
|
55
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
56
|
+
# predefined name, type, or namespace. For more information, see
|
57
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
58
|
+
#
|
59
|
+
# Example: `{\"Department\": \"Finance\"}`
|
60
|
+
#
|
61
|
+
# @return [Hash<String, String>]
|
62
|
+
attr_accessor :freeform_tags
|
63
|
+
|
42
64
|
# The OCID of the image.
|
43
65
|
# @return [String]
|
44
66
|
attr_accessor :id
|
45
67
|
|
68
|
+
# Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
|
69
|
+
# * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
|
70
|
+
# * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
|
71
|
+
# * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
|
72
|
+
#
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :launch_mode
|
75
|
+
|
76
|
+
# @return [OCI::Core::Models::LaunchOptions]
|
77
|
+
attr_accessor :launch_options
|
78
|
+
|
46
79
|
# @return [String]
|
47
80
|
attr_accessor :lifecycle_state
|
48
81
|
|
@@ -88,14 +121,30 @@ module OCI
|
|
88
121
|
self.create_image_allowed = attributes[:'createImageAllowed']
|
89
122
|
end
|
90
123
|
|
124
|
+
if attributes[:'definedTags']
|
125
|
+
self.defined_tags = attributes[:'definedTags']
|
126
|
+
end
|
127
|
+
|
91
128
|
if attributes[:'displayName']
|
92
129
|
self.display_name = attributes[:'displayName']
|
93
130
|
end
|
94
131
|
|
132
|
+
if attributes[:'freeformTags']
|
133
|
+
self.freeform_tags = attributes[:'freeformTags']
|
134
|
+
end
|
135
|
+
|
95
136
|
if attributes[:'id']
|
96
137
|
self.id = attributes[:'id']
|
97
138
|
end
|
98
139
|
|
140
|
+
if attributes[:'launchMode']
|
141
|
+
self.launch_mode = attributes[:'launchMode']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes[:'launchOptions']
|
145
|
+
self.launch_options = attributes[:'launchOptions']
|
146
|
+
end
|
147
|
+
|
99
148
|
if attributes[:'lifecycleState']
|
100
149
|
self.lifecycle_state = attributes[:'lifecycleState']
|
101
150
|
end
|
@@ -114,6 +163,16 @@ module OCI
|
|
114
163
|
|
115
164
|
end
|
116
165
|
|
166
|
+
# Custom attribute writer method checking allowed values (enum).
|
167
|
+
# @param [Object] launch_mode Object to be assigned
|
168
|
+
def launch_mode=(launch_mode)
|
169
|
+
if launch_mode && !LAUNCH_MODE_ENUM.include?(launch_mode)
|
170
|
+
@launch_mode = LAUNCH_MODE_UNKNOWN_ENUM_VALUE
|
171
|
+
else
|
172
|
+
@launch_mode = launch_mode
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
117
176
|
# Custom attribute writer method checking allowed values (enum).
|
118
177
|
# @param [Object] lifecycle_state Object to be assigned
|
119
178
|
def lifecycle_state=(lifecycle_state)
|
@@ -132,8 +191,12 @@ module OCI
|
|
132
191
|
base_image_id == other_object.base_image_id &&
|
133
192
|
compartment_id == other_object.compartment_id &&
|
134
193
|
create_image_allowed == other_object.create_image_allowed &&
|
194
|
+
defined_tags == other_object.defined_tags &&
|
135
195
|
display_name == other_object.display_name &&
|
196
|
+
freeform_tags == other_object.freeform_tags &&
|
136
197
|
id == other_object.id &&
|
198
|
+
launch_mode == other_object.launch_mode &&
|
199
|
+
launch_options == other_object.launch_options &&
|
137
200
|
lifecycle_state == other_object.lifecycle_state &&
|
138
201
|
operating_system == other_object.operating_system &&
|
139
202
|
operating_system_version == other_object.operating_system_version &&
|
@@ -149,7 +212,7 @@ module OCI
|
|
149
212
|
# Calculates hash code according to all attributes.
|
150
213
|
# @return [Fixnum] Hash code
|
151
214
|
def hash
|
152
|
-
[base_image_id, compartment_id, create_image_allowed, display_name, id, lifecycle_state, operating_system, operating_system_version, time_created].hash
|
215
|
+
[base_image_id, compartment_id, create_image_allowed, defined_tags, display_name, freeform_tags, id, launch_mode, launch_options, lifecycle_state, operating_system, operating_system_version, time_created].hash
|
153
216
|
end
|
154
217
|
|
155
218
|
# Builds the object from hash
|
@@ -162,10 +225,10 @@ module OCI
|
|
162
225
|
# check to ensure the input is an array given that the the attribute
|
163
226
|
# is documented as an array but the input is not
|
164
227
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
165
|
-
self.
|
228
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
166
229
|
end
|
167
230
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
|
-
self.
|
231
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
169
232
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
170
233
|
end
|
171
234
|
|
@@ -183,7 +246,7 @@ module OCI
|
|
183
246
|
def to_hash
|
184
247
|
hash = {}
|
185
248
|
self.class.attribute_map.each_pair do |attr, param|
|
186
|
-
value =
|
249
|
+
value = public_method(attr).call
|
187
250
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
188
251
|
hash[param] = _to_hash(value)
|
189
252
|
end
|
@@ -218,8 +281,12 @@ module OCI
|
|
218
281
|
:'base_image_id' => :'baseImageId',
|
219
282
|
:'compartment_id' => :'compartmentId',
|
220
283
|
:'create_image_allowed' => :'createImageAllowed',
|
284
|
+
:'defined_tags' => :'definedTags',
|
221
285
|
:'display_name' => :'displayName',
|
286
|
+
:'freeform_tags' => :'freeformTags',
|
222
287
|
:'id' => :'id',
|
288
|
+
:'launch_mode' => :'launchMode',
|
289
|
+
:'launch_options' => :'launchOptions',
|
223
290
|
:'lifecycle_state' => :'lifecycleState',
|
224
291
|
:'operating_system' => :'operatingSystem',
|
225
292
|
:'operating_system_version' => :'operatingSystemVersion',
|
@@ -233,8 +300,12 @@ module OCI
|
|
233
300
|
:'base_image_id' => :'String',
|
234
301
|
:'compartment_id' => :'String',
|
235
302
|
:'create_image_allowed' => :'BOOLEAN',
|
303
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
236
304
|
:'display_name' => :'String',
|
305
|
+
:'freeform_tags' => :'Hash<String, String>',
|
237
306
|
:'id' => :'String',
|
307
|
+
:'launch_mode' => :'String',
|
308
|
+
:'launch_options' => :'OCI::Core::Models::LaunchOptions',
|
238
309
|
:'lifecycle_state' => :'String',
|
239
310
|
:'operating_system' => :'String',
|
240
311
|
:'operating_system_version' => :'String',
|
@@ -1,9 +1,19 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
5
5
|
module OCI
|
6
6
|
class Core::Models::ImageSourceDetails
|
7
|
+
|
8
|
+
SOURCE_IMAGE_TYPE_ENUM = [SOURCE_IMAGE_TYPE_QCOW2 = 'QCOW2',
|
9
|
+
SOURCE_IMAGE_TYPE_VMDK = 'VMDK']
|
10
|
+
|
11
|
+
# The format of the image to be imported. Exported Oracle images are QCOW2. Only monolithic
|
12
|
+
# images are supported.
|
13
|
+
#
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :source_image_type
|
16
|
+
|
7
17
|
# The source type for the image. Use `objectStorageTuple` when specifying the namespace,
|
8
18
|
# bucket name, and object name. Use `objectStorageUri` when specifying the Object Storage URL.
|
9
19
|
#
|
@@ -31,17 +41,32 @@ module OCI
|
|
31
41
|
# convert string to symbol for hash key
|
32
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
33
43
|
|
44
|
+
if attributes[:'sourceImageType']
|
45
|
+
self.source_image_type = attributes[:'sourceImageType']
|
46
|
+
end
|
47
|
+
|
34
48
|
if attributes[:'sourceType']
|
35
49
|
self.source_type = attributes[:'sourceType']
|
36
50
|
end
|
37
51
|
|
38
52
|
end
|
39
53
|
|
54
|
+
# Custom attribute writer method checking allowed values (enum).
|
55
|
+
# @param [Object] source_image_type Object to be assigned
|
56
|
+
def source_image_type=(source_image_type)
|
57
|
+
if source_image_type && !SOURCE_IMAGE_TYPE_ENUM.include?(source_image_type)
|
58
|
+
fail "Invalid value for 'source_image_type': this must be one of the values in SOURCE_IMAGE_TYPE_ENUM."
|
59
|
+
else
|
60
|
+
@source_image_type = source_image_type
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
40
64
|
# Checks equality by comparing each attribute.
|
41
65
|
# @param [Object] other_object to be compared
|
42
66
|
def ==(other_object)
|
43
67
|
return true if self.equal?(other_object)
|
44
68
|
self.class == other_object.class &&
|
69
|
+
source_image_type == other_object.source_image_type &&
|
45
70
|
source_type == other_object.source_type
|
46
71
|
end
|
47
72
|
|
@@ -54,7 +79,7 @@ module OCI
|
|
54
79
|
# Calculates hash code according to all attributes.
|
55
80
|
# @return [Fixnum] Hash code
|
56
81
|
def hash
|
57
|
-
[source_type].hash
|
82
|
+
[source_image_type, source_type].hash
|
58
83
|
end
|
59
84
|
|
60
85
|
# Builds the object from hash
|
@@ -67,10 +92,10 @@ module OCI
|
|
67
92
|
# check to ensure the input is an array given that the the attribute
|
68
93
|
# is documented as an array but the input is not
|
69
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
70
|
-
self.
|
95
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
71
96
|
end
|
72
97
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
73
|
-
self.
|
98
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
74
99
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
75
100
|
end
|
76
101
|
|
@@ -88,7 +113,7 @@ module OCI
|
|
88
113
|
def to_hash
|
89
114
|
hash = {}
|
90
115
|
self.class.attribute_map.each_pair do |attr, param|
|
91
|
-
value =
|
116
|
+
value = public_method(attr).call
|
92
117
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
93
118
|
hash[param] = _to_hash(value)
|
94
119
|
end
|
@@ -120,6 +145,7 @@ module OCI
|
|
120
145
|
# Attribute mapping from ruby-style variable name to JSON key.
|
121
146
|
def self.attribute_map
|
122
147
|
{
|
148
|
+
:'source_image_type' => :'sourceImageType',
|
123
149
|
:'source_type' => :'sourceType'
|
124
150
|
}
|
125
151
|
end
|
@@ -127,6 +153,7 @@ module OCI
|
|
127
153
|
# Attribute type mapping.
|
128
154
|
def self.swagger_types
|
129
155
|
{
|
156
|
+
:'source_image_type' => :'String',
|
130
157
|
:'source_type' => :'String'
|
131
158
|
}
|
132
159
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
require_relative 'image_source_details'
|
@@ -49,6 +49,7 @@ module OCI
|
|
49
49
|
def ==(other_object)
|
50
50
|
return true if self.equal?(other_object)
|
51
51
|
self.class == other_object.class &&
|
52
|
+
source_image_type == other_object.source_image_type &&
|
52
53
|
source_type == other_object.source_type &&
|
53
54
|
bucket_name == other_object.bucket_name &&
|
54
55
|
namespace_name == other_object.namespace_name &&
|
@@ -64,7 +65,7 @@ module OCI
|
|
64
65
|
# Calculates hash code according to all attributes.
|
65
66
|
# @return [Fixnum] Hash code
|
66
67
|
def hash
|
67
|
-
[source_type, bucket_name, namespace_name, object_name].hash
|
68
|
+
[source_image_type, source_type, bucket_name, namespace_name, object_name].hash
|
68
69
|
end
|
69
70
|
|
70
71
|
# Builds the object from hash
|
@@ -77,10 +78,10 @@ module OCI
|
|
77
78
|
# check to ensure the input is an array given that the the attribute
|
78
79
|
# is documented as an array but the input is not
|
79
80
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
-
self.
|
81
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
81
82
|
end
|
82
83
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
-
self.
|
84
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
84
85
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
86
|
end
|
86
87
|
|
@@ -98,7 +99,7 @@ module OCI
|
|
98
99
|
def to_hash
|
99
100
|
hash = {}
|
100
101
|
self.class.attribute_map.each_pair do |attr, param|
|
101
|
-
value =
|
102
|
+
value = public_method(attr).call
|
102
103
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
103
104
|
hash[param] = _to_hash(value)
|
104
105
|
end
|
@@ -130,6 +131,7 @@ module OCI
|
|
130
131
|
# Attribute mapping from ruby-style variable name to JSON key.
|
131
132
|
def self.attribute_map
|
132
133
|
{
|
134
|
+
:'source_image_type' => :'sourceImageType',
|
133
135
|
:'source_type' => :'sourceType',
|
134
136
|
:'bucket_name' => :'bucketName',
|
135
137
|
:'namespace_name' => :'namespaceName',
|
@@ -140,6 +142,7 @@ module OCI
|
|
140
142
|
# Attribute type mapping.
|
141
143
|
def self.swagger_types
|
142
144
|
{
|
145
|
+
:'source_image_type' => :'String',
|
143
146
|
:'source_type' => :'String',
|
144
147
|
:'bucket_name' => :'String',
|
145
148
|
:'namespace_name' => :'String',
|