oci 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
|
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_method(attr).call
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
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
|
|
|
@@ -29,6 +29,14 @@ module OCI
|
|
|
29
29
|
# @return [String]
|
|
30
30
|
attr_accessor :compartment_id
|
|
31
31
|
|
|
32
|
+
# Defined tags for this resource. Each key is predefined and scoped to a namespace.
|
|
33
|
+
# For more information, see [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
34
|
+
#
|
|
35
|
+
# Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
|
|
36
|
+
#
|
|
37
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
38
|
+
attr_accessor :defined_tags
|
|
39
|
+
|
|
32
40
|
# The OCID of the set of DHCP options associated with the subnet.
|
|
33
41
|
#
|
|
34
42
|
# @return [String]
|
|
@@ -57,6 +65,15 @@ module OCI
|
|
|
57
65
|
# @return [String]
|
|
58
66
|
attr_accessor :dns_label
|
|
59
67
|
|
|
68
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
69
|
+
# predefined name, type, or namespace. For more information, see
|
|
70
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
71
|
+
#
|
|
72
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
73
|
+
#
|
|
74
|
+
# @return [Hash<String, String>]
|
|
75
|
+
attr_accessor :freeform_tags
|
|
76
|
+
|
|
60
77
|
# The subnet's Oracle ID (OCID).
|
|
61
78
|
# @return [String]
|
|
62
79
|
attr_accessor :id
|
|
@@ -145,6 +162,10 @@ module OCI
|
|
|
145
162
|
self.compartment_id = attributes[:'compartmentId']
|
|
146
163
|
end
|
|
147
164
|
|
|
165
|
+
if attributes[:'definedTags']
|
|
166
|
+
self.defined_tags = attributes[:'definedTags']
|
|
167
|
+
end
|
|
168
|
+
|
|
148
169
|
if attributes[:'dhcpOptionsId']
|
|
149
170
|
self.dhcp_options_id = attributes[:'dhcpOptionsId']
|
|
150
171
|
end
|
|
@@ -157,6 +178,10 @@ module OCI
|
|
|
157
178
|
self.dns_label = attributes[:'dnsLabel']
|
|
158
179
|
end
|
|
159
180
|
|
|
181
|
+
if attributes[:'freeformTags']
|
|
182
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
183
|
+
end
|
|
184
|
+
|
|
160
185
|
if attributes[:'id']
|
|
161
186
|
self.id = attributes[:'id']
|
|
162
187
|
end
|
|
@@ -217,9 +242,11 @@ module OCI
|
|
|
217
242
|
availability_domain == other_object.availability_domain &&
|
|
218
243
|
cidr_block == other_object.cidr_block &&
|
|
219
244
|
compartment_id == other_object.compartment_id &&
|
|
245
|
+
defined_tags == other_object.defined_tags &&
|
|
220
246
|
dhcp_options_id == other_object.dhcp_options_id &&
|
|
221
247
|
display_name == other_object.display_name &&
|
|
222
248
|
dns_label == other_object.dns_label &&
|
|
249
|
+
freeform_tags == other_object.freeform_tags &&
|
|
223
250
|
id == other_object.id &&
|
|
224
251
|
lifecycle_state == other_object.lifecycle_state &&
|
|
225
252
|
prohibit_public_ip_on_vnic == other_object.prohibit_public_ip_on_vnic &&
|
|
@@ -241,7 +268,7 @@ module OCI
|
|
|
241
268
|
# Calculates hash code according to all attributes.
|
|
242
269
|
# @return [Fixnum] Hash code
|
|
243
270
|
def hash
|
|
244
|
-
[availability_domain, cidr_block, compartment_id, dhcp_options_id, display_name, dns_label, id, lifecycle_state, prohibit_public_ip_on_vnic, route_table_id, security_list_ids, subnet_domain_name, time_created, vcn_id, virtual_router_ip, virtual_router_mac].hash
|
|
271
|
+
[availability_domain, cidr_block, compartment_id, defined_tags, dhcp_options_id, display_name, dns_label, freeform_tags, id, lifecycle_state, prohibit_public_ip_on_vnic, route_table_id, security_list_ids, subnet_domain_name, time_created, vcn_id, virtual_router_ip, virtual_router_mac].hash
|
|
245
272
|
end
|
|
246
273
|
|
|
247
274
|
# Builds the object from hash
|
|
@@ -254,10 +281,10 @@ module OCI
|
|
|
254
281
|
# check to ensure the input is an array given that the the attribute
|
|
255
282
|
# is documented as an array but the input is not
|
|
256
283
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
257
|
-
self.
|
|
284
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
258
285
|
end
|
|
259
286
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
260
|
-
self.
|
|
287
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
261
288
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
262
289
|
end
|
|
263
290
|
|
|
@@ -275,7 +302,7 @@ module OCI
|
|
|
275
302
|
def to_hash
|
|
276
303
|
hash = {}
|
|
277
304
|
self.class.attribute_map.each_pair do |attr, param|
|
|
278
|
-
value =
|
|
305
|
+
value = public_method(attr).call
|
|
279
306
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
280
307
|
hash[param] = _to_hash(value)
|
|
281
308
|
end
|
|
@@ -310,9 +337,11 @@ module OCI
|
|
|
310
337
|
:'availability_domain' => :'availabilityDomain',
|
|
311
338
|
:'cidr_block' => :'cidrBlock',
|
|
312
339
|
:'compartment_id' => :'compartmentId',
|
|
340
|
+
:'defined_tags' => :'definedTags',
|
|
313
341
|
:'dhcp_options_id' => :'dhcpOptionsId',
|
|
314
342
|
:'display_name' => :'displayName',
|
|
315
343
|
:'dns_label' => :'dnsLabel',
|
|
344
|
+
:'freeform_tags' => :'freeformTags',
|
|
316
345
|
:'id' => :'id',
|
|
317
346
|
:'lifecycle_state' => :'lifecycleState',
|
|
318
347
|
:'prohibit_public_ip_on_vnic' => :'prohibitPublicIpOnVnic',
|
|
@@ -332,9 +361,11 @@ module OCI
|
|
|
332
361
|
:'availability_domain' => :'String',
|
|
333
362
|
:'cidr_block' => :'String',
|
|
334
363
|
:'compartment_id' => :'String',
|
|
364
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
335
365
|
:'dhcp_options_id' => :'String',
|
|
336
366
|
:'display_name' => :'String',
|
|
337
367
|
:'dns_label' => :'String',
|
|
368
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
338
369
|
:'id' => :'String',
|
|
339
370
|
:'lifecycle_state' => :'String',
|
|
340
371
|
:'prohibit_public_ip_on_vnic' => :'BOOLEAN',
|
|
@@ -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
|
|
|
@@ -66,10 +66,10 @@ module OCI
|
|
|
66
66
|
# check to ensure the input is an array given that the the attribute
|
|
67
67
|
# is documented as an array but the input is not
|
|
68
68
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
69
|
-
self.
|
|
69
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
70
70
|
end
|
|
71
71
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
72
|
-
self.
|
|
72
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
73
73
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -87,7 +87,7 @@ module OCI
|
|
|
87
87
|
def to_hash
|
|
88
88
|
hash = {}
|
|
89
89
|
self.class.attribute_map.each_pair do |attr, param|
|
|
90
|
-
value =
|
|
90
|
+
value = public_method(attr).call
|
|
91
91
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
92
92
|
hash[param] = _to_hash(value)
|
|
93
93
|
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
|
|
|
@@ -80,10 +80,10 @@ module OCI
|
|
|
80
80
|
# check to ensure the input is an array given that the the attribute
|
|
81
81
|
# is documented as an array but the input is not
|
|
82
82
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
83
|
-
self.
|
|
83
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
84
84
|
end
|
|
85
85
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
86
|
-
self.
|
|
86
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
87
87
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
88
88
|
end
|
|
89
89
|
|
|
@@ -101,7 +101,7 @@ module OCI
|
|
|
101
101
|
def to_hash
|
|
102
102
|
hash = {}
|
|
103
103
|
self.class.attribute_map.each_pair do |attr, param|
|
|
104
|
-
value =
|
|
104
|
+
value = public_method(attr).call
|
|
105
105
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
106
106
|
hash[param] = _to_hash(value)
|
|
107
107
|
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
|
|
|
@@ -105,10 +105,10 @@ module OCI
|
|
|
105
105
|
# check to ensure the input is an array given that the the attribute
|
|
106
106
|
# is documented as an array but the input is not
|
|
107
107
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
108
|
-
self.
|
|
108
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
109
109
|
end
|
|
110
110
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
111
|
-
self.
|
|
111
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
112
112
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
113
113
|
end
|
|
114
114
|
|
|
@@ -126,7 +126,7 @@ module OCI
|
|
|
126
126
|
def to_hash
|
|
127
127
|
hash = {}
|
|
128
128
|
self.class.attribute_map.each_pair do |attr, param|
|
|
129
|
-
value =
|
|
129
|
+
value = public_method(attr).call
|
|
130
130
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
131
131
|
hash[param] = _to_hash(value)
|
|
132
132
|
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
|
|
|
@@ -66,10 +66,10 @@ module OCI
|
|
|
66
66
|
# check to ensure the input is an array given that the the attribute
|
|
67
67
|
# is documented as an array but the input is not
|
|
68
68
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
69
|
-
self.
|
|
69
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
70
70
|
end
|
|
71
71
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
72
|
-
self.
|
|
72
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
73
73
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -87,7 +87,7 @@ module OCI
|
|
|
87
87
|
def to_hash
|
|
88
88
|
hash = {}
|
|
89
89
|
self.class.attribute_map.each_pair do |attr, param|
|
|
90
|
-
value =
|
|
90
|
+
value = public_method(attr).call
|
|
91
91
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
92
92
|
hash[param] = _to_hash(value)
|
|
93
93
|
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
|
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_method(attr).call
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
end
|
|
@@ -1,14 +1,31 @@
|
|
|
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::UpdateConsoleHistoryDetails
|
|
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
|
#
|
|
9
17
|
# @return [String]
|
|
10
18
|
attr_accessor :display_name
|
|
11
19
|
|
|
20
|
+
# Free-form tags for this resource. Each tag is a simple key-value pair with no
|
|
21
|
+
# predefined name, type, or namespace. For more information, see
|
|
22
|
+
# [Resource Tags](https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
|
|
23
|
+
#
|
|
24
|
+
# Example: `{\"Department\": \"Finance\"}`
|
|
25
|
+
#
|
|
26
|
+
# @return [Hash<String, String>]
|
|
27
|
+
attr_accessor :freeform_tags
|
|
28
|
+
|
|
12
29
|
|
|
13
30
|
# Initializes the object
|
|
14
31
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -18,10 +35,18 @@ module OCI
|
|
|
18
35
|
# convert string to symbol for hash key
|
|
19
36
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
20
37
|
|
|
38
|
+
if attributes[:'definedTags']
|
|
39
|
+
self.defined_tags = attributes[:'definedTags']
|
|
40
|
+
end
|
|
41
|
+
|
|
21
42
|
if attributes[:'displayName']
|
|
22
43
|
self.display_name = attributes[:'displayName']
|
|
23
44
|
end
|
|
24
45
|
|
|
46
|
+
if attributes[:'freeformTags']
|
|
47
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
48
|
+
end
|
|
49
|
+
|
|
25
50
|
end
|
|
26
51
|
|
|
27
52
|
# Checks equality by comparing each attribute.
|
|
@@ -29,7 +54,9 @@ module OCI
|
|
|
29
54
|
def ==(other_object)
|
|
30
55
|
return true if self.equal?(other_object)
|
|
31
56
|
self.class == other_object.class &&
|
|
32
|
-
|
|
57
|
+
defined_tags == other_object.defined_tags &&
|
|
58
|
+
display_name == other_object.display_name &&
|
|
59
|
+
freeform_tags == other_object.freeform_tags
|
|
33
60
|
end
|
|
34
61
|
|
|
35
62
|
# @see the `==` method
|
|
@@ -41,7 +68,7 @@ module OCI
|
|
|
41
68
|
# Calculates hash code according to all attributes.
|
|
42
69
|
# @return [Fixnum] Hash code
|
|
43
70
|
def hash
|
|
44
|
-
[display_name].hash
|
|
71
|
+
[defined_tags, display_name, freeform_tags].hash
|
|
45
72
|
end
|
|
46
73
|
|
|
47
74
|
# Builds the object from hash
|
|
@@ -54,10 +81,10 @@ module OCI
|
|
|
54
81
|
# check to ensure the input is an array given that the the attribute
|
|
55
82
|
# is documented as an array but the input is not
|
|
56
83
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
57
|
-
self.
|
|
84
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
58
85
|
end
|
|
59
86
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
60
|
-
self.
|
|
87
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
61
88
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
62
89
|
end
|
|
63
90
|
|
|
@@ -75,7 +102,7 @@ module OCI
|
|
|
75
102
|
def to_hash
|
|
76
103
|
hash = {}
|
|
77
104
|
self.class.attribute_map.each_pair do |attr, param|
|
|
78
|
-
value =
|
|
105
|
+
value = public_method(attr).call
|
|
79
106
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
80
107
|
hash[param] = _to_hash(value)
|
|
81
108
|
end
|
|
@@ -107,14 +134,18 @@ module OCI
|
|
|
107
134
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
108
135
|
def self.attribute_map
|
|
109
136
|
{
|
|
110
|
-
:'
|
|
137
|
+
:'defined_tags' => :'definedTags',
|
|
138
|
+
:'display_name' => :'displayName',
|
|
139
|
+
:'freeform_tags' => :'freeformTags'
|
|
111
140
|
}
|
|
112
141
|
end
|
|
113
142
|
|
|
114
143
|
# Attribute type mapping.
|
|
115
144
|
def self.swagger_types
|
|
116
145
|
{
|
|
117
|
-
:'
|
|
146
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>',
|
|
147
|
+
:'display_name' => :'String',
|
|
148
|
+
:'freeform_tags' => :'Hash<String, String>'
|
|
118
149
|
}
|
|
119
150
|
end
|
|
120
151
|
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
|
|
|
@@ -55,10 +55,10 @@ module OCI
|
|
|
55
55
|
# check to ensure the input is an array given that the the attribute
|
|
56
56
|
# is documented as an array but the input is not
|
|
57
57
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
58
|
-
self.
|
|
58
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
59
59
|
end
|
|
60
60
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
61
|
-
self.
|
|
61
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
62
62
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -76,7 +76,7 @@ module OCI
|
|
|
76
76
|
def to_hash
|
|
77
77
|
hash = {}
|
|
78
78
|
self.class.attribute_map.each_pair do |attr, param|
|
|
79
|
-
value =
|
|
79
|
+
value = public_method(attr).call
|
|
80
80
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
81
81
|
hash[param] = _to_hash(value)
|
|
82
82
|
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
|
|
|
@@ -69,10 +69,10 @@ module OCI
|
|
|
69
69
|
# check to ensure the input is an array given that the the attribute
|
|
70
70
|
# is documented as an array but the input is not
|
|
71
71
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
72
|
-
self.
|
|
72
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
73
73
|
end
|
|
74
74
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
75
|
-
self.
|
|
75
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
76
76
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -90,7 +90,7 @@ module OCI
|
|
|
90
90
|
def to_hash
|
|
91
91
|
hash = {}
|
|
92
92
|
self.class.attribute_map.each_pair do |attr, param|
|
|
93
|
-
value =
|
|
93
|
+
value = public_method(attr).call
|
|
94
94
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
95
95
|
hash[param] = _to_hash(value)
|
|
96
96
|
end
|