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
|
|
@@ -368,10 +368,10 @@ module OCI
|
|
368
368
|
# check to ensure the input is an array given that the the attribute
|
369
369
|
# is documented as an array but the input is not
|
370
370
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
371
|
-
self.
|
371
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
372
372
|
end
|
373
373
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
374
|
-
self.
|
374
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
375
375
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
376
376
|
end
|
377
377
|
|
@@ -389,7 +389,7 @@ module OCI
|
|
389
389
|
def to_hash
|
390
390
|
hash = {}
|
391
391
|
self.class.attribute_map.each_pair do |attr, param|
|
392
|
-
value =
|
392
|
+
value = public_method(attr).call
|
393
393
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
394
394
|
hash[param] = _to_hash(value)
|
395
395
|
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
|
|
@@ -68,10 +68,10 @@ module OCI
|
|
68
68
|
# check to ensure the input is an array given that the the attribute
|
69
69
|
# is documented as an array but the input is not
|
70
70
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
71
|
-
self.
|
71
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
72
72
|
end
|
73
73
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
74
|
-
self.
|
74
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
75
75
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
76
76
|
end
|
77
77
|
|
@@ -89,7 +89,7 @@ module OCI
|
|
89
89
|
def to_hash
|
90
90
|
hash = {}
|
91
91
|
self.class.attribute_map.each_pair do |attr, param|
|
92
|
-
value =
|
92
|
+
value = public_method(attr).call
|
93
93
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
94
94
|
hash[param] = _to_hash(value)
|
95
95
|
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
|
|
@@ -83,10 +83,10 @@ module OCI
|
|
83
83
|
# check to ensure the input is an array given that the the attribute
|
84
84
|
# is documented as an array but the input is not
|
85
85
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
86
|
-
self.
|
86
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
87
87
|
end
|
88
88
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
89
|
-
self.
|
89
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
90
90
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
91
91
|
end
|
92
92
|
|
@@ -104,7 +104,7 @@ module OCI
|
|
104
104
|
def to_hash
|
105
105
|
hash = {}
|
106
106
|
self.class.attribute_map.each_pair do |attr, param|
|
107
|
-
value =
|
107
|
+
value = public_method(attr).call
|
108
108
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
109
109
|
hash[param] = _to_hash(value)
|
110
110
|
end
|
data/lib/oci/core/models/vnic.rb
CHANGED
@@ -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
|
|
@@ -213,10 +213,10 @@ module OCI
|
|
213
213
|
# check to ensure the input is an array given that the the attribute
|
214
214
|
# is documented as an array but the input is not
|
215
215
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
216
|
-
self.
|
216
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
217
217
|
end
|
218
218
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
219
|
-
self.
|
219
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
220
220
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
221
221
|
end
|
222
222
|
|
@@ -234,7 +234,7 @@ module OCI
|
|
234
234
|
def to_hash
|
235
235
|
hash = {}
|
236
236
|
self.class.attribute_map.each_pair do |attr, param|
|
237
|
-
value =
|
237
|
+
value = public_method(attr).call
|
238
238
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
239
239
|
hash[param] = _to_hash(value)
|
240
240
|
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
|
|
@@ -179,10 +179,10 @@ module OCI
|
|
179
179
|
# check to ensure the input is an array given that the the attribute
|
180
180
|
# is documented as an array but the input is not
|
181
181
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
182
|
-
self.
|
182
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
183
183
|
end
|
184
184
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
|
-
self.
|
185
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
186
186
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
187
187
|
end
|
188
188
|
|
@@ -200,7 +200,7 @@ module OCI
|
|
200
200
|
def to_hash
|
201
201
|
hash = {}
|
202
202
|
self.class.attribute_map.each_pair do |attr, param|
|
203
|
-
value =
|
203
|
+
value = public_method(attr).call
|
204
204
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
205
205
|
hash[param] = _to_hash(value)
|
206
206
|
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
|
|
@@ -24,12 +24,29 @@ module OCI
|
|
24
24
|
# @return [String]
|
25
25
|
attr_accessor :compartment_id
|
26
26
|
|
27
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
28
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
29
|
+
#
|
30
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
31
|
+
#
|
32
|
+
# @return [Hash<String, Hash<String, Object>>]
|
33
|
+
attr_accessor :defined_tags
|
34
|
+
|
27
35
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
28
36
|
# Avoid entering confidential information.
|
29
37
|
#
|
30
38
|
# @return [String]
|
31
39
|
attr_accessor :display_name
|
32
40
|
|
41
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
42
|
+
# predefined name, type, or namespace. For more information, see
|
43
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
44
|
+
#
|
45
|
+
# Example: `{\"Department\": \"Finance\"}`
|
46
|
+
#
|
47
|
+
# @return [Hash<String, String>]
|
48
|
+
attr_accessor :freeform_tags
|
49
|
+
|
33
50
|
# The OCID of the volume.
|
34
51
|
# @return [String]
|
35
52
|
attr_accessor :id
|
@@ -77,10 +94,18 @@ module OCI
|
|
77
94
|
self.compartment_id = attributes[:'compartmentId']
|
78
95
|
end
|
79
96
|
|
97
|
+
if attributes[:'definedTags']
|
98
|
+
self.defined_tags = attributes[:'definedTags']
|
99
|
+
end
|
100
|
+
|
80
101
|
if attributes[:'displayName']
|
81
102
|
self.display_name = attributes[:'displayName']
|
82
103
|
end
|
83
104
|
|
105
|
+
if attributes[:'freeformTags']
|
106
|
+
self.freeform_tags = attributes[:'freeformTags']
|
107
|
+
end
|
108
|
+
|
84
109
|
if attributes[:'id']
|
85
110
|
self.id = attributes[:'id']
|
86
111
|
end
|
@@ -128,7 +153,9 @@ module OCI
|
|
128
153
|
self.class == other_object.class &&
|
129
154
|
availability_domain == other_object.availability_domain &&
|
130
155
|
compartment_id == other_object.compartment_id &&
|
156
|
+
defined_tags == other_object.defined_tags &&
|
131
157
|
display_name == other_object.display_name &&
|
158
|
+
freeform_tags == other_object.freeform_tags &&
|
132
159
|
id == other_object.id &&
|
133
160
|
is_hydrated == other_object.is_hydrated &&
|
134
161
|
lifecycle_state == other_object.lifecycle_state &&
|
@@ -147,7 +174,7 @@ module OCI
|
|
147
174
|
# Calculates hash code according to all attributes.
|
148
175
|
# @return [Fixnum] Hash code
|
149
176
|
def hash
|
150
|
-
[availability_domain, compartment_id, display_name, id, is_hydrated, lifecycle_state, size_in_gbs, size_in_mbs, source_details, time_created].hash
|
177
|
+
[availability_domain, compartment_id, defined_tags, display_name, freeform_tags, id, is_hydrated, lifecycle_state, size_in_gbs, size_in_mbs, source_details, time_created].hash
|
151
178
|
end
|
152
179
|
|
153
180
|
# Builds the object from hash
|
@@ -160,10 +187,10 @@ module OCI
|
|
160
187
|
# check to ensure the input is an array given that the the attribute
|
161
188
|
# is documented as an array but the input is not
|
162
189
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
-
self.
|
190
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
164
191
|
end
|
165
192
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
-
self.
|
193
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
167
194
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
168
195
|
end
|
169
196
|
|
@@ -181,7 +208,7 @@ module OCI
|
|
181
208
|
def to_hash
|
182
209
|
hash = {}
|
183
210
|
self.class.attribute_map.each_pair do |attr, param|
|
184
|
-
value =
|
211
|
+
value = public_method(attr).call
|
185
212
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
186
213
|
hash[param] = _to_hash(value)
|
187
214
|
end
|
@@ -215,7 +242,9 @@ module OCI
|
|
215
242
|
{
|
216
243
|
:'availability_domain' => :'availabilityDomain',
|
217
244
|
:'compartment_id' => :'compartmentId',
|
245
|
+
:'defined_tags' => :'definedTags',
|
218
246
|
:'display_name' => :'displayName',
|
247
|
+
:'freeform_tags' => :'freeformTags',
|
219
248
|
:'id' => :'id',
|
220
249
|
:'is_hydrated' => :'isHydrated',
|
221
250
|
:'lifecycle_state' => :'lifecycleState',
|
@@ -231,7 +260,9 @@ module OCI
|
|
231
260
|
{
|
232
261
|
:'availability_domain' => :'String',
|
233
262
|
:'compartment_id' => :'String',
|
263
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
234
264
|
:'display_name' => :'String',
|
265
|
+
:'freeform_tags' => :'Hash<String, String>',
|
235
266
|
:'id' => :'String',
|
236
267
|
:'is_hydrated' => :'BOOLEAN',
|
237
268
|
:'lifecycle_state' => :'String',
|
@@ -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
|
|
@@ -163,10 +163,10 @@ module OCI
|
|
163
163
|
# check to ensure the input is an array given that the the attribute
|
164
164
|
# is documented as an array but the input is not
|
165
165
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
166
|
-
self.
|
166
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
167
167
|
end
|
168
168
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
169
|
-
self.
|
169
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
170
170
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
171
171
|
end
|
172
172
|
|
@@ -184,7 +184,7 @@ module OCI
|
|
184
184
|
def to_hash
|
185
185
|
hash = {}
|
186
186
|
self.class.attribute_map.each_pair do |attr, param|
|
187
|
-
value =
|
187
|
+
value = public_method(attr).call
|
188
188
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
189
189
|
hash[param] = _to_hash(value)
|
190
190
|
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
|
|
@@ -17,12 +17,29 @@ module OCI
|
|
17
17
|
# @return [String]
|
18
18
|
attr_accessor :compartment_id
|
19
19
|
|
20
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
21
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
22
|
+
#
|
23
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
24
|
+
#
|
25
|
+
# @return [Hash<String, Hash<String, Object>>]
|
26
|
+
attr_accessor :defined_tags
|
27
|
+
|
20
28
|
# A user-friendly name for the volume backup. Does not have to be unique and it's changeable.
|
21
29
|
# Avoid entering confidential information.
|
22
30
|
#
|
23
31
|
# @return [String]
|
24
32
|
attr_accessor :display_name
|
25
33
|
|
34
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
35
|
+
# predefined name, type, or namespace. For more information, see
|
36
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
37
|
+
#
|
38
|
+
# Example: `{\"Department\": \"Finance\"}`
|
39
|
+
#
|
40
|
+
# @return [Hash<String, String>]
|
41
|
+
attr_accessor :freeform_tags
|
42
|
+
|
26
43
|
# The OCID of the volume backup.
|
27
44
|
# @return [String]
|
28
45
|
attr_accessor :id
|
@@ -83,10 +100,18 @@ module OCI
|
|
83
100
|
self.compartment_id = attributes[:'compartmentId']
|
84
101
|
end
|
85
102
|
|
103
|
+
if attributes[:'definedTags']
|
104
|
+
self.defined_tags = attributes[:'definedTags']
|
105
|
+
end
|
106
|
+
|
86
107
|
if attributes[:'displayName']
|
87
108
|
self.display_name = attributes[:'displayName']
|
88
109
|
end
|
89
110
|
|
111
|
+
if attributes[:'freeformTags']
|
112
|
+
self.freeform_tags = attributes[:'freeformTags']
|
113
|
+
end
|
114
|
+
|
90
115
|
if attributes[:'id']
|
91
116
|
self.id = attributes[:'id']
|
92
117
|
end
|
@@ -141,7 +166,9 @@ module OCI
|
|
141
166
|
return true if self.equal?(other_object)
|
142
167
|
self.class == other_object.class &&
|
143
168
|
compartment_id == other_object.compartment_id &&
|
169
|
+
defined_tags == other_object.defined_tags &&
|
144
170
|
display_name == other_object.display_name &&
|
171
|
+
freeform_tags == other_object.freeform_tags &&
|
145
172
|
id == other_object.id &&
|
146
173
|
lifecycle_state == other_object.lifecycle_state &&
|
147
174
|
size_in_gbs == other_object.size_in_gbs &&
|
@@ -162,7 +189,7 @@ module OCI
|
|
162
189
|
# Calculates hash code according to all attributes.
|
163
190
|
# @return [Fixnum] Hash code
|
164
191
|
def hash
|
165
|
-
[compartment_id, display_name, id, lifecycle_state, size_in_gbs, size_in_mbs, time_created, time_request_received, unique_size_in_gbs, unique_size_in_mbs, volume_id].hash
|
192
|
+
[compartment_id, defined_tags, display_name, freeform_tags, id, lifecycle_state, size_in_gbs, size_in_mbs, time_created, time_request_received, unique_size_in_gbs, unique_size_in_mbs, volume_id].hash
|
166
193
|
end
|
167
194
|
|
168
195
|
# Builds the object from hash
|
@@ -175,10 +202,10 @@ module OCI
|
|
175
202
|
# check to ensure the input is an array given that the the attribute
|
176
203
|
# is documented as an array but the input is not
|
177
204
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
178
|
-
self.
|
205
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
179
206
|
end
|
180
207
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
-
self.
|
208
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
182
209
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
183
210
|
end
|
184
211
|
|
@@ -196,7 +223,7 @@ module OCI
|
|
196
223
|
def to_hash
|
197
224
|
hash = {}
|
198
225
|
self.class.attribute_map.each_pair do |attr, param|
|
199
|
-
value =
|
226
|
+
value = public_method(attr).call
|
200
227
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
201
228
|
hash[param] = _to_hash(value)
|
202
229
|
end
|
@@ -229,7 +256,9 @@ module OCI
|
|
229
256
|
def self.attribute_map
|
230
257
|
{
|
231
258
|
:'compartment_id' => :'compartmentId',
|
259
|
+
:'defined_tags' => :'definedTags',
|
232
260
|
:'display_name' => :'displayName',
|
261
|
+
:'freeform_tags' => :'freeformTags',
|
233
262
|
:'id' => :'id',
|
234
263
|
:'lifecycle_state' => :'lifecycleState',
|
235
264
|
:'size_in_gbs' => :'sizeInGBs',
|
@@ -246,7 +275,9 @@ module OCI
|
|
246
275
|
def self.swagger_types
|
247
276
|
{
|
248
277
|
:'compartment_id' => :'String',
|
278
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
249
279
|
:'display_name' => :'String',
|
280
|
+
:'freeform_tags' => :'Hash<String, String>',
|
250
281
|
:'id' => :'String',
|
251
282
|
:'lifecycle_state' => :'String',
|
252
283
|
:'size_in_gbs' => :'Integer',
|
@@ -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
|
|
@@ -64,10 +64,10 @@ module OCI
|
|
64
64
|
# check to ensure the input is an array given that the the attribute
|
65
65
|
# is documented as an array but the input is not
|
66
66
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
67
|
-
self.
|
67
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
68
68
|
end
|
69
69
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
70
|
-
self.
|
70
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
71
71
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
72
72
|
end
|
73
73
|
|
@@ -85,7 +85,7 @@ module OCI
|
|
85
85
|
def to_hash
|
86
86
|
hash = {}
|
87
87
|
self.class.attribute_map.each_pair do |attr, param|
|
88
|
-
value =
|
88
|
+
value = public_method(attr).call
|
89
89
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
90
90
|
hash[param] = _to_hash(value)
|
91
91
|
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_source_details'
|
@@ -59,10 +59,10 @@ module OCI
|
|
59
59
|
# check to ensure the input is an array given that the the attribute
|
60
60
|
# is documented as an array but the input is not
|
61
61
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
62
|
-
self.
|
62
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
63
63
|
end
|
64
64
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
65
|
-
self.
|
65
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
66
66
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
67
67
|
end
|
68
68
|
|
@@ -80,7 +80,7 @@ module OCI
|
|
80
80
|
def to_hash
|
81
81
|
hash = {}
|
82
82
|
self.class.attribute_map.each_pair do |attr, param|
|
83
|
-
value =
|
83
|
+
value = public_method(attr).call
|
84
84
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
85
85
|
hash[param] = _to_hash(value)
|
86
86
|
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_source_details'
|
@@ -59,10 +59,10 @@ module OCI
|
|
59
59
|
# check to ensure the input is an array given that the the attribute
|
60
60
|
# is documented as an array but the input is not
|
61
61
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
62
|
-
self.
|
62
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
63
63
|
end
|
64
64
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
65
|
-
self.
|
65
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
66
66
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
67
67
|
end
|
68
68
|
|
@@ -80,7 +80,7 @@ module OCI
|
|
80
80
|
def to_hash
|
81
81
|
hash = {}
|
82
82
|
self.class.attribute_map.each_pair do |attr, param|
|
83
|
-
value =
|
83
|
+
value = public_method(attr).call
|
84
84
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
85
85
|
hash[param] = _to_hash(value)
|
86
86
|
end
|