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,15 +1,32 @@
|
|
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::UpdateVcnDetails
|
7
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
8
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
9
|
+
#
|
10
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
11
|
+
#
|
12
|
+
# @return [Hash<String, Hash<String, Object>>]
|
13
|
+
attr_accessor :defined_tags
|
14
|
+
|
7
15
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
16
|
# Avoid entering confidential information.
|
9
17
|
#
|
10
18
|
# @return [String]
|
11
19
|
attr_accessor :display_name
|
12
20
|
|
21
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
22
|
+
# predefined name, type, or namespace. For more information, see
|
23
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
24
|
+
#
|
25
|
+
# Example: `{\"Department\": \"Finance\"}`
|
26
|
+
#
|
27
|
+
# @return [Hash<String, String>]
|
28
|
+
attr_accessor :freeform_tags
|
29
|
+
|
13
30
|
|
14
31
|
# Initializes the object
|
15
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -19,10 +36,18 @@ module OCI
|
|
19
36
|
# convert string to symbol for hash key
|
20
37
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
38
|
|
39
|
+
if attributes[:'definedTags']
|
40
|
+
self.defined_tags = attributes[:'definedTags']
|
41
|
+
end
|
42
|
+
|
22
43
|
if attributes[:'displayName']
|
23
44
|
self.display_name = attributes[:'displayName']
|
24
45
|
end
|
25
46
|
|
47
|
+
if attributes[:'freeformTags']
|
48
|
+
self.freeform_tags = attributes[:'freeformTags']
|
49
|
+
end
|
50
|
+
|
26
51
|
end
|
27
52
|
|
28
53
|
# Checks equality by comparing each attribute.
|
@@ -30,7 +55,9 @@ module OCI
|
|
30
55
|
def ==(other_object)
|
31
56
|
return true if self.equal?(other_object)
|
32
57
|
self.class == other_object.class &&
|
33
|
-
|
58
|
+
defined_tags == other_object.defined_tags &&
|
59
|
+
display_name == other_object.display_name &&
|
60
|
+
freeform_tags == other_object.freeform_tags
|
34
61
|
end
|
35
62
|
|
36
63
|
# @see the `==` method
|
@@ -42,7 +69,7 @@ module OCI
|
|
42
69
|
# Calculates hash code according to all attributes.
|
43
70
|
# @return [Fixnum] Hash code
|
44
71
|
def hash
|
45
|
-
[display_name].hash
|
72
|
+
[defined_tags, display_name, freeform_tags].hash
|
46
73
|
end
|
47
74
|
|
48
75
|
# Builds the object from hash
|
@@ -55,10 +82,10 @@ module OCI
|
|
55
82
|
# check to ensure the input is an array given that the the attribute
|
56
83
|
# is documented as an array but the input is not
|
57
84
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
-
self.
|
85
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
59
86
|
end
|
60
87
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
-
self.
|
88
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
89
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
90
|
end
|
64
91
|
|
@@ -76,7 +103,7 @@ module OCI
|
|
76
103
|
def to_hash
|
77
104
|
hash = {}
|
78
105
|
self.class.attribute_map.each_pair do |attr, param|
|
79
|
-
value =
|
106
|
+
value = public_method(attr).call
|
80
107
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
81
108
|
hash[param] = _to_hash(value)
|
82
109
|
end
|
@@ -108,14 +135,18 @@ module OCI
|
|
108
135
|
# Attribute mapping from ruby-style variable name to JSON key.
|
109
136
|
def self.attribute_map
|
110
137
|
{
|
111
|
-
:'
|
138
|
+
:'defined_tags' => :'definedTags',
|
139
|
+
:'display_name' => :'displayName',
|
140
|
+
:'freeform_tags' => :'freeformTags'
|
112
141
|
}
|
113
142
|
end
|
114
143
|
|
115
144
|
# Attribute type mapping.
|
116
145
|
def self.swagger_types
|
117
146
|
{
|
118
|
-
:'
|
147
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
148
|
+
:'display_name' => :'String',
|
149
|
+
:'freeform_tags' => :'Hash<String, String>'
|
119
150
|
}
|
120
151
|
end
|
121
152
|
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
|
|
@@ -160,10 +160,10 @@ module OCI
|
|
160
160
|
# check to ensure the input is an array given that the the attribute
|
161
161
|
# is documented as an array but the input is not
|
162
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
-
self.
|
163
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
164
164
|
end
|
165
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
|
-
self.
|
166
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
167
167
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
168
168
|
end
|
169
169
|
|
@@ -181,7 +181,7 @@ module OCI
|
|
181
181
|
def to_hash
|
182
182
|
hash = {}
|
183
183
|
self.class.attribute_map.each_pair do |attr, param|
|
184
|
-
value =
|
184
|
+
value = public_method(attr).call
|
185
185
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
186
186
|
hash[param] = _to_hash(value)
|
187
187
|
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
|
|
@@ -90,10 +90,10 @@ module OCI
|
|
90
90
|
# check to ensure the input is an array given that the the attribute
|
91
91
|
# is documented as an array but the input is not
|
92
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
-
self.
|
93
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
94
94
|
end
|
95
95
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
|
-
self.
|
96
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
97
97
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
98
98
|
end
|
99
99
|
|
@@ -111,7 +111,7 @@ module OCI
|
|
111
111
|
def to_hash
|
112
112
|
hash = {}
|
113
113
|
self.class.attribute_map.each_pair do |attr, param|
|
114
|
-
value =
|
114
|
+
value = public_method(attr).call
|
115
115
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
116
116
|
hash[param] = _to_hash(value)
|
117
117
|
end
|
@@ -1,15 +1,32 @@
|
|
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::UpdateVolumeBackupDetails
|
7
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
8
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
9
|
+
#
|
10
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
11
|
+
#
|
12
|
+
# @return [Hash<String, Hash<String, Object>>]
|
13
|
+
attr_accessor :defined_tags
|
14
|
+
|
7
15
|
# A friendly user-specified name for the volume backup.
|
8
16
|
# Avoid entering confidential information.
|
9
17
|
#
|
10
18
|
# @return [String]
|
11
19
|
attr_accessor :display_name
|
12
20
|
|
21
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
22
|
+
# predefined name, type, or namespace. For more information, see
|
23
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
24
|
+
#
|
25
|
+
# Example: `{\"Department\": \"Finance\"}`
|
26
|
+
#
|
27
|
+
# @return [Hash<String, String>]
|
28
|
+
attr_accessor :freeform_tags
|
29
|
+
|
13
30
|
|
14
31
|
# Initializes the object
|
15
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -19,10 +36,18 @@ module OCI
|
|
19
36
|
# convert string to symbol for hash key
|
20
37
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
38
|
|
39
|
+
if attributes[:'definedTags']
|
40
|
+
self.defined_tags = attributes[:'definedTags']
|
41
|
+
end
|
42
|
+
|
22
43
|
if attributes[:'displayName']
|
23
44
|
self.display_name = attributes[:'displayName']
|
24
45
|
end
|
25
46
|
|
47
|
+
if attributes[:'freeformTags']
|
48
|
+
self.freeform_tags = attributes[:'freeformTags']
|
49
|
+
end
|
50
|
+
|
26
51
|
end
|
27
52
|
|
28
53
|
# Checks equality by comparing each attribute.
|
@@ -30,7 +55,9 @@ module OCI
|
|
30
55
|
def ==(other_object)
|
31
56
|
return true if self.equal?(other_object)
|
32
57
|
self.class == other_object.class &&
|
33
|
-
|
58
|
+
defined_tags == other_object.defined_tags &&
|
59
|
+
display_name == other_object.display_name &&
|
60
|
+
freeform_tags == other_object.freeform_tags
|
34
61
|
end
|
35
62
|
|
36
63
|
# @see the `==` method
|
@@ -42,7 +69,7 @@ module OCI
|
|
42
69
|
# Calculates hash code according to all attributes.
|
43
70
|
# @return [Fixnum] Hash code
|
44
71
|
def hash
|
45
|
-
[display_name].hash
|
72
|
+
[defined_tags, display_name, freeform_tags].hash
|
46
73
|
end
|
47
74
|
|
48
75
|
# Builds the object from hash
|
@@ -55,10 +82,10 @@ module OCI
|
|
55
82
|
# check to ensure the input is an array given that the the attribute
|
56
83
|
# is documented as an array but the input is not
|
57
84
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
-
self.
|
85
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
59
86
|
end
|
60
87
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
-
self.
|
88
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
89
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
90
|
end
|
64
91
|
|
@@ -76,7 +103,7 @@ module OCI
|
|
76
103
|
def to_hash
|
77
104
|
hash = {}
|
78
105
|
self.class.attribute_map.each_pair do |attr, param|
|
79
|
-
value =
|
106
|
+
value = public_method(attr).call
|
80
107
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
81
108
|
hash[param] = _to_hash(value)
|
82
109
|
end
|
@@ -108,14 +135,18 @@ module OCI
|
|
108
135
|
# Attribute mapping from ruby-style variable name to JSON key.
|
109
136
|
def self.attribute_map
|
110
137
|
{
|
111
|
-
:'
|
138
|
+
:'defined_tags' => :'definedTags',
|
139
|
+
:'display_name' => :'displayName',
|
140
|
+
:'freeform_tags' => :'freeformTags'
|
112
141
|
}
|
113
142
|
end
|
114
143
|
|
115
144
|
# Attribute type mapping.
|
116
145
|
def self.swagger_types
|
117
146
|
{
|
118
|
-
:'
|
147
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
148
|
+
:'display_name' => :'String',
|
149
|
+
:'freeform_tags' => :'Hash<String, String>'
|
119
150
|
}
|
120
151
|
end
|
121
152
|
end
|
@@ -1,15 +1,32 @@
|
|
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::UpdateVolumeDetails
|
7
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
8
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
9
|
+
#
|
10
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
11
|
+
#
|
12
|
+
# @return [Hash<String, Hash<String, Object>>]
|
13
|
+
attr_accessor :defined_tags
|
14
|
+
|
7
15
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
8
16
|
# Avoid entering confidential information.
|
9
17
|
#
|
10
18
|
# @return [String]
|
11
19
|
attr_accessor :display_name
|
12
20
|
|
21
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
22
|
+
# predefined name, type, or namespace. For more information, see
|
23
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
24
|
+
#
|
25
|
+
# Example: `{\"Department\": \"Finance\"}`
|
26
|
+
#
|
27
|
+
# @return [Hash<String, String>]
|
28
|
+
attr_accessor :freeform_tags
|
29
|
+
|
13
30
|
|
14
31
|
# Initializes the object
|
15
32
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -19,10 +36,18 @@ module OCI
|
|
19
36
|
# convert string to symbol for hash key
|
20
37
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
21
38
|
|
39
|
+
if attributes[:'definedTags']
|
40
|
+
self.defined_tags = attributes[:'definedTags']
|
41
|
+
end
|
42
|
+
|
22
43
|
if attributes[:'displayName']
|
23
44
|
self.display_name = attributes[:'displayName']
|
24
45
|
end
|
25
46
|
|
47
|
+
if attributes[:'freeformTags']
|
48
|
+
self.freeform_tags = attributes[:'freeformTags']
|
49
|
+
end
|
50
|
+
|
26
51
|
end
|
27
52
|
|
28
53
|
# Checks equality by comparing each attribute.
|
@@ -30,7 +55,9 @@ module OCI
|
|
30
55
|
def ==(other_object)
|
31
56
|
return true if self.equal?(other_object)
|
32
57
|
self.class == other_object.class &&
|
33
|
-
|
58
|
+
defined_tags == other_object.defined_tags &&
|
59
|
+
display_name == other_object.display_name &&
|
60
|
+
freeform_tags == other_object.freeform_tags
|
34
61
|
end
|
35
62
|
|
36
63
|
# @see the `==` method
|
@@ -42,7 +69,7 @@ module OCI
|
|
42
69
|
# Calculates hash code according to all attributes.
|
43
70
|
# @return [Fixnum] Hash code
|
44
71
|
def hash
|
45
|
-
[display_name].hash
|
72
|
+
[defined_tags, display_name, freeform_tags].hash
|
46
73
|
end
|
47
74
|
|
48
75
|
# Builds the object from hash
|
@@ -55,10 +82,10 @@ module OCI
|
|
55
82
|
# check to ensure the input is an array given that the the attribute
|
56
83
|
# is documented as an array but the input is not
|
57
84
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
58
|
-
self.
|
85
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
59
86
|
end
|
60
87
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
61
|
-
self.
|
88
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
62
89
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
63
90
|
end
|
64
91
|
|
@@ -76,7 +103,7 @@ module OCI
|
|
76
103
|
def to_hash
|
77
104
|
hash = {}
|
78
105
|
self.class.attribute_map.each_pair do |attr, param|
|
79
|
-
value =
|
106
|
+
value = public_method(attr).call
|
80
107
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
81
108
|
hash[param] = _to_hash(value)
|
82
109
|
end
|
@@ -108,14 +135,18 @@ module OCI
|
|
108
135
|
# Attribute mapping from ruby-style variable name to JSON key.
|
109
136
|
def self.attribute_map
|
110
137
|
{
|
111
|
-
:'
|
138
|
+
:'defined_tags' => :'definedTags',
|
139
|
+
:'display_name' => :'displayName',
|
140
|
+
:'freeform_tags' => :'freeformTags'
|
112
141
|
}
|
113
142
|
end
|
114
143
|
|
115
144
|
# Attribute type mapping.
|
116
145
|
def self.swagger_types
|
117
146
|
{
|
118
|
-
:'
|
147
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
148
|
+
:'display_name' => :'String',
|
149
|
+
:'freeform_tags' => :'Hash<String, String>'
|
119
150
|
}
|
120
151
|
end
|
121
152
|
end
|
data/lib/oci/core/models/vcn.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
|
|
@@ -35,6 +35,14 @@ module OCI
|
|
35
35
|
# @return [String]
|
36
36
|
attr_accessor :default_security_list_id
|
37
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
|
+
|
38
46
|
# A user-friendly name. Does not have to be unique, and it's changeable.
|
39
47
|
# Avoid entering confidential information.
|
40
48
|
#
|
@@ -58,6 +66,15 @@ module OCI
|
|
58
66
|
# @return [String]
|
59
67
|
attr_accessor :dns_label
|
60
68
|
|
69
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
70
|
+
# predefined name, type, or namespace. For more information, see
|
71
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
72
|
+
#
|
73
|
+
# Example: `{\"Department\": \"Finance\"}`
|
74
|
+
#
|
75
|
+
# @return [Hash<String, String>]
|
76
|
+
attr_accessor :freeform_tags
|
77
|
+
|
61
78
|
# The VCN's Oracle ID (OCID).
|
62
79
|
# @return [String]
|
63
80
|
attr_accessor :id
|
@@ -113,6 +130,10 @@ module OCI
|
|
113
130
|
self.default_security_list_id = attributes[:'defaultSecurityListId']
|
114
131
|
end
|
115
132
|
|
133
|
+
if attributes[:'definedTags']
|
134
|
+
self.defined_tags = attributes[:'definedTags']
|
135
|
+
end
|
136
|
+
|
116
137
|
if attributes[:'displayName']
|
117
138
|
self.display_name = attributes[:'displayName']
|
118
139
|
end
|
@@ -121,6 +142,10 @@ module OCI
|
|
121
142
|
self.dns_label = attributes[:'dnsLabel']
|
122
143
|
end
|
123
144
|
|
145
|
+
if attributes[:'freeformTags']
|
146
|
+
self.freeform_tags = attributes[:'freeformTags']
|
147
|
+
end
|
148
|
+
|
124
149
|
if attributes[:'id']
|
125
150
|
self.id = attributes[:'id']
|
126
151
|
end
|
@@ -159,8 +184,10 @@ module OCI
|
|
159
184
|
default_dhcp_options_id == other_object.default_dhcp_options_id &&
|
160
185
|
default_route_table_id == other_object.default_route_table_id &&
|
161
186
|
default_security_list_id == other_object.default_security_list_id &&
|
187
|
+
defined_tags == other_object.defined_tags &&
|
162
188
|
display_name == other_object.display_name &&
|
163
189
|
dns_label == other_object.dns_label &&
|
190
|
+
freeform_tags == other_object.freeform_tags &&
|
164
191
|
id == other_object.id &&
|
165
192
|
lifecycle_state == other_object.lifecycle_state &&
|
166
193
|
time_created == other_object.time_created &&
|
@@ -176,7 +203,7 @@ module OCI
|
|
176
203
|
# Calculates hash code according to all attributes.
|
177
204
|
# @return [Fixnum] Hash code
|
178
205
|
def hash
|
179
|
-
[cidr_block, compartment_id, default_dhcp_options_id, default_route_table_id, default_security_list_id, display_name, dns_label, id, lifecycle_state, time_created, vcn_domain_name].hash
|
206
|
+
[cidr_block, compartment_id, default_dhcp_options_id, default_route_table_id, default_security_list_id, defined_tags, display_name, dns_label, freeform_tags, id, lifecycle_state, time_created, vcn_domain_name].hash
|
180
207
|
end
|
181
208
|
|
182
209
|
# Builds the object from hash
|
@@ -189,10 +216,10 @@ module OCI
|
|
189
216
|
# check to ensure the input is an array given that the the attribute
|
190
217
|
# is documented as an array but the input is not
|
191
218
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
|
-
self.
|
219
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
193
220
|
end
|
194
221
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
195
|
-
self.
|
222
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
196
223
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
197
224
|
end
|
198
225
|
|
@@ -210,7 +237,7 @@ module OCI
|
|
210
237
|
def to_hash
|
211
238
|
hash = {}
|
212
239
|
self.class.attribute_map.each_pair do |attr, param|
|
213
|
-
value =
|
240
|
+
value = public_method(attr).call
|
214
241
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
215
242
|
hash[param] = _to_hash(value)
|
216
243
|
end
|
@@ -247,8 +274,10 @@ module OCI
|
|
247
274
|
:'default_dhcp_options_id' => :'defaultDhcpOptionsId',
|
248
275
|
:'default_route_table_id' => :'defaultRouteTableId',
|
249
276
|
:'default_security_list_id' => :'defaultSecurityListId',
|
277
|
+
:'defined_tags' => :'definedTags',
|
250
278
|
:'display_name' => :'displayName',
|
251
279
|
:'dns_label' => :'dnsLabel',
|
280
|
+
:'freeform_tags' => :'freeformTags',
|
252
281
|
:'id' => :'id',
|
253
282
|
:'lifecycle_state' => :'lifecycleState',
|
254
283
|
:'time_created' => :'timeCreated',
|
@@ -264,8 +293,10 @@ module OCI
|
|
264
293
|
:'default_dhcp_options_id' => :'String',
|
265
294
|
:'default_route_table_id' => :'String',
|
266
295
|
:'default_security_list_id' => :'String',
|
296
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
267
297
|
:'display_name' => :'String',
|
268
298
|
:'dns_label' => :'String',
|
299
|
+
:'freeform_tags' => :'Hash<String, String>',
|
269
300
|
:'id' => :'String',
|
270
301
|
:'lifecycle_state' => :'String',
|
271
302
|
:'time_created' => :'DateTime',
|