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
|
|
|
@@ -53,6 +53,19 @@ module OCI
|
|
|
53
53
|
# @return [Integer]
|
|
54
54
|
attr_accessor :inactive_status
|
|
55
55
|
|
|
56
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists solely for
|
|
57
|
+
# compatibility with other cloud provider tagging schemes.
|
|
58
|
+
# Example: `{\"bar-key\": \"value\"}`
|
|
59
|
+
#
|
|
60
|
+
# @return [Hash<String, String>]
|
|
61
|
+
attr_accessor :freeform_tags
|
|
62
|
+
|
|
63
|
+
# Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
|
64
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
|
|
65
|
+
#
|
|
66
|
+
# @return [Hash<String, Hash<String, Object>>]
|
|
67
|
+
attr_accessor :defined_tags
|
|
68
|
+
|
|
56
69
|
|
|
57
70
|
# Initializes the object
|
|
58
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
@@ -90,6 +103,14 @@ module OCI
|
|
|
90
103
|
self.inactive_status = attributes[:'inactiveStatus']
|
|
91
104
|
end
|
|
92
105
|
|
|
106
|
+
if attributes[:'freeformTags']
|
|
107
|
+
self.freeform_tags = attributes[:'freeformTags']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes[:'definedTags']
|
|
111
|
+
self.defined_tags = attributes[:'definedTags']
|
|
112
|
+
end
|
|
113
|
+
|
|
93
114
|
end
|
|
94
115
|
|
|
95
116
|
# Custom attribute writer method checking allowed values (enum).
|
|
@@ -113,7 +134,9 @@ module OCI
|
|
|
113
134
|
description == other_object.description &&
|
|
114
135
|
time_created == other_object.time_created &&
|
|
115
136
|
lifecycle_state == other_object.lifecycle_state &&
|
|
116
|
-
inactive_status == other_object.inactive_status
|
|
137
|
+
inactive_status == other_object.inactive_status &&
|
|
138
|
+
freeform_tags == other_object.freeform_tags &&
|
|
139
|
+
defined_tags == other_object.defined_tags
|
|
117
140
|
end
|
|
118
141
|
|
|
119
142
|
# @see the `==` method
|
|
@@ -125,7 +148,7 @@ module OCI
|
|
|
125
148
|
# Calculates hash code according to all attributes.
|
|
126
149
|
# @return [Fixnum] Hash code
|
|
127
150
|
def hash
|
|
128
|
-
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status].hash
|
|
151
|
+
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
|
|
129
152
|
end
|
|
130
153
|
|
|
131
154
|
# Builds the object from hash
|
|
@@ -138,10 +161,10 @@ module OCI
|
|
|
138
161
|
# check to ensure the input is an array given that the the attribute
|
|
139
162
|
# is documented as an array but the input is not
|
|
140
163
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
141
|
-
self.
|
|
164
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
142
165
|
end
|
|
143
166
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
144
|
-
self.
|
|
167
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
145
168
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
146
169
|
end
|
|
147
170
|
|
|
@@ -159,7 +182,7 @@ module OCI
|
|
|
159
182
|
def to_hash
|
|
160
183
|
hash = {}
|
|
161
184
|
self.class.attribute_map.each_pair do |attr, param|
|
|
162
|
-
value =
|
|
185
|
+
value = public_method(attr).call
|
|
163
186
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
164
187
|
hash[param] = _to_hash(value)
|
|
165
188
|
end
|
|
@@ -197,7 +220,9 @@ module OCI
|
|
|
197
220
|
:'description' => :'description',
|
|
198
221
|
:'time_created' => :'timeCreated',
|
|
199
222
|
:'lifecycle_state' => :'lifecycleState',
|
|
200
|
-
:'inactive_status' => :'inactiveStatus'
|
|
223
|
+
:'inactive_status' => :'inactiveStatus',
|
|
224
|
+
:'freeform_tags' => :'freeformTags',
|
|
225
|
+
:'defined_tags' => :'definedTags'
|
|
201
226
|
}
|
|
202
227
|
end
|
|
203
228
|
|
|
@@ -210,7 +235,9 @@ module OCI
|
|
|
210
235
|
:'description' => :'String',
|
|
211
236
|
:'time_created' => :'DateTime',
|
|
212
237
|
:'lifecycle_state' => :'String',
|
|
213
|
-
:'inactive_status' => :'Integer'
|
|
238
|
+
:'inactive_status' => :'Integer',
|
|
239
|
+
:'freeform_tags' => :'Hash<String, String>',
|
|
240
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
|
214
241
|
}
|
|
215
242
|
end
|
|
216
243
|
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
|
|
|
@@ -130,10 +130,10 @@ module OCI
|
|
|
130
130
|
# check to ensure the input is an array given that the the attribute
|
|
131
131
|
# is documented as an array but the input is not
|
|
132
132
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
133
|
-
self.
|
|
133
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
134
134
|
end
|
|
135
135
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
|
-
self.
|
|
136
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
137
137
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
138
138
|
end
|
|
139
139
|
|
|
@@ -151,7 +151,7 @@ module OCI
|
|
|
151
151
|
def to_hash
|
|
152
152
|
hash = {}
|
|
153
153
|
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
-
value =
|
|
154
|
+
value = public_method(attr).call
|
|
155
155
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
156
156
|
hash[param] = _to_hash(value)
|
|
157
157
|
end
|
data/lib/oci/identity/util.rb
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
data/lib/oci/internal/util.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
|
module OCI
|
|
4
4
|
module Internal
|
|
@@ -40,7 +40,7 @@ module OCI
|
|
|
40
40
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
41
|
inner_type = Regexp.last_match[:inner_type]
|
|
42
42
|
data.map { |v| convert_to_type(inner_type, v) }
|
|
43
|
-
when /\AHash<(?<k_type
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+?)>\z/
|
|
44
44
|
k_type = Regexp.last_match[:k_type]
|
|
45
45
|
v_type = Regexp.last_match[:v_type]
|
|
46
46
|
{}.tap do |hash|
|
|
@@ -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
|
|
|
@@ -141,10 +141,10 @@ module OCI
|
|
|
141
141
|
# check to ensure the input is an array given that the the attribute
|
|
142
142
|
# is documented as an array but the input is not
|
|
143
143
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
144
|
-
self.
|
|
144
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
145
145
|
end
|
|
146
146
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
147
|
-
self.
|
|
147
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
148
148
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
149
149
|
end
|
|
150
150
|
|
|
@@ -162,7 +162,7 @@ module OCI
|
|
|
162
162
|
def to_hash
|
|
163
163
|
hash = {}
|
|
164
164
|
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
-
value =
|
|
165
|
+
value = public_method(attr).call
|
|
166
166
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
167
167
|
hash[param] = _to_hash(value)
|
|
168
168
|
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
|
|
|
@@ -129,10 +129,10 @@ module OCI
|
|
|
129
129
|
# check to ensure the input is an array given that the the attribute
|
|
130
130
|
# is documented as an array but the input is not
|
|
131
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
132
|
-
self.
|
|
132
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
133
133
|
end
|
|
134
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
135
|
-
self.
|
|
135
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
136
136
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
137
137
|
end
|
|
138
138
|
|
|
@@ -150,7 +150,7 @@ module OCI
|
|
|
150
150
|
def to_hash
|
|
151
151
|
hash = {}
|
|
152
152
|
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
-
value =
|
|
153
|
+
value = public_method(attr).call
|
|
154
154
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
155
155
|
hash[param] = _to_hash(value)
|
|
156
156
|
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
|
|
|
@@ -89,10 +89,10 @@ module OCI
|
|
|
89
89
|
# check to ensure the input is an array given that the the attribute
|
|
90
90
|
# is documented as an array but the input is not
|
|
91
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
92
|
-
self.
|
|
92
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
93
93
|
end
|
|
94
94
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
95
|
-
self.
|
|
95
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
96
96
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
97
97
|
end
|
|
98
98
|
|
|
@@ -110,7 +110,7 @@ module OCI
|
|
|
110
110
|
def to_hash
|
|
111
111
|
hash = {}
|
|
112
112
|
self.class.attribute_map.each_pair do |attr, param|
|
|
113
|
-
value =
|
|
113
|
+
value = public_method(attr).call
|
|
114
114
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
115
115
|
hash[param] = _to_hash(value)
|
|
116
116
|
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
|
|
|
@@ -104,10 +104,10 @@ module OCI
|
|
|
104
104
|
# check to ensure the input is an array given that the the attribute
|
|
105
105
|
# is documented as an array but the input is not
|
|
106
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
-
self.
|
|
107
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
108
108
|
end
|
|
109
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
|
-
self.
|
|
110
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
111
111
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -125,7 +125,7 @@ module OCI
|
|
|
125
125
|
def to_hash
|
|
126
126
|
hash = {}
|
|
127
127
|
self.class.attribute_map.each_pair do |attr, param|
|
|
128
|
-
value =
|
|
128
|
+
value = public_method(attr).call
|
|
129
129
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
130
130
|
hash[param] = _to_hash(value)
|
|
131
131
|
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
|
|
|
@@ -89,10 +89,10 @@ module OCI
|
|
|
89
89
|
# check to ensure the input is an array given that the the attribute
|
|
90
90
|
# is documented as an array but the input is not
|
|
91
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
92
|
-
self.
|
|
92
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
93
93
|
end
|
|
94
94
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
95
|
-
self.
|
|
95
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
96
96
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
97
97
|
end
|
|
98
98
|
|
|
@@ -110,7 +110,7 @@ module OCI
|
|
|
110
110
|
def to_hash
|
|
111
111
|
hash = {}
|
|
112
112
|
self.class.attribute_map.each_pair do |attr, param|
|
|
113
|
-
value =
|
|
113
|
+
value = public_method(attr).call
|
|
114
114
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
115
115
|
hash[param] = _to_hash(value)
|
|
116
116
|
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
|
|
|
@@ -132,10 +132,10 @@ module OCI
|
|
|
132
132
|
# check to ensure the input is an array given that the the attribute
|
|
133
133
|
# is documented as an array but the input is not
|
|
134
134
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
135
|
-
self.
|
|
135
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
136
136
|
end
|
|
137
137
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
138
|
-
self.
|
|
138
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
139
139
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
140
140
|
end
|
|
141
141
|
|
|
@@ -153,7 +153,7 @@ module OCI
|
|
|
153
153
|
def to_hash
|
|
154
154
|
hash = {}
|
|
155
155
|
self.class.attribute_map.each_pair do |attr, param|
|
|
156
|
-
value =
|
|
156
|
+
value = public_method(attr).call
|
|
157
157
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
158
158
|
hash[param] = _to_hash(value)
|
|
159
159
|
end
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016,
|
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
|
|
@@ -98,10 +98,10 @@ module OCI
|
|
|
98
98
|
# check to ensure the input is an array given that the the attribute
|
|
99
99
|
# is documented as an array but the input is not
|
|
100
100
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
101
|
-
self.
|
|
101
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
102
102
|
end
|
|
103
103
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
104
|
-
self.
|
|
104
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
105
105
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
106
106
|
end
|
|
107
107
|
|
|
@@ -119,7 +119,7 @@ module OCI
|
|
|
119
119
|
def to_hash
|
|
120
120
|
hash = {}
|
|
121
121
|
self.class.attribute_map.each_pair do |attr, param|
|
|
122
|
-
value =
|
|
122
|
+
value = public_method(attr).call
|
|
123
123
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
124
124
|
hash[param] = _to_hash(value)
|
|
125
125
|
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
|
|
|
@@ -130,10 +130,10 @@ module OCI
|
|
|
130
130
|
# check to ensure the input is an array given that the the attribute
|
|
131
131
|
# is documented as an array but the input is not
|
|
132
132
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
133
|
-
self.
|
|
133
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
134
134
|
end
|
|
135
135
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
|
-
self.
|
|
136
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
137
137
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
138
138
|
end
|
|
139
139
|
|
|
@@ -151,7 +151,7 @@ module OCI
|
|
|
151
151
|
def to_hash
|
|
152
152
|
hash = {}
|
|
153
153
|
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
-
value =
|
|
154
|
+
value = public_method(attr).call
|
|
155
155
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
156
156
|
hash[param] = _to_hash(value)
|
|
157
157
|
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
|
|
|
@@ -129,10 +129,10 @@ module OCI
|
|
|
129
129
|
# check to ensure the input is an array given that the the attribute
|
|
130
130
|
# is documented as an array but the input is not
|
|
131
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
132
|
-
self.
|
|
132
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
133
133
|
end
|
|
134
134
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
135
|
-
self.
|
|
135
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
136
136
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
137
137
|
end
|
|
138
138
|
|
|
@@ -150,7 +150,7 @@ module OCI
|
|
|
150
150
|
def to_hash
|
|
151
151
|
hash = {}
|
|
152
152
|
self.class.attribute_map.each_pair do |attr, param|
|
|
153
|
-
value =
|
|
153
|
+
value = public_method(attr).call
|
|
154
154
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
155
155
|
hash[param] = _to_hash(value)
|
|
156
156
|
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
|
|
|
@@ -104,10 +104,10 @@ module OCI
|
|
|
104
104
|
# check to ensure the input is an array given that the the attribute
|
|
105
105
|
# is documented as an array but the input is not
|
|
106
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
-
self.
|
|
107
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
108
108
|
end
|
|
109
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
|
-
self.
|
|
110
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
111
111
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -125,7 +125,7 @@ module OCI
|
|
|
125
125
|
def to_hash
|
|
126
126
|
hash = {}
|
|
127
127
|
self.class.attribute_map.each_pair do |attr, param|
|
|
128
|
-
value =
|
|
128
|
+
value = public_method(attr).call
|
|
129
129
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
130
130
|
hash[param] = _to_hash(value)
|
|
131
131
|
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
|
|
|
@@ -130,10 +130,10 @@ module OCI
|
|
|
130
130
|
# check to ensure the input is an array given that the the attribute
|
|
131
131
|
# is documented as an array but the input is not
|
|
132
132
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
133
|
-
self.
|
|
133
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
|
134
134
|
end
|
|
135
135
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
136
|
-
self.
|
|
136
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
|
137
137
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
138
138
|
end
|
|
139
139
|
|
|
@@ -151,7 +151,7 @@ module OCI
|
|
|
151
151
|
def to_hash
|
|
152
152
|
hash = {}
|
|
153
153
|
self.class.attribute_map.each_pair do |attr, param|
|
|
154
|
-
value =
|
|
154
|
+
value = public_method(attr).call
|
|
155
155
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
156
156
|
hash[param] = _to_hash(value)
|
|
157
157
|
end
|