oci 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +3 -3
- data/README.md +72 -6
- data/lib/oci.rb +1 -1
- data/lib/oci/api_client.rb +1 -1
- data/lib/oci/audit/audit.rb +1 -1
- data/lib/oci/audit/audit_client.rb +1 -1
- data/lib/oci/audit/models/audit_event.rb +4 -4
- data/lib/oci/audit/models/configuration.rb +4 -4
- data/lib/oci/audit/models/update_configuration_details.rb +4 -4
- data/lib/oci/audit/util.rb +2 -1
- data/lib/oci/config.rb +1 -1
- data/lib/oci/config_file_loader.rb +1 -1
- data/lib/oci/core/blockstorage_client.rb +1 -1
- data/lib/oci/core/compute_client.rb +4 -2
- data/lib/oci/core/core.rb +2 -1
- data/lib/oci/core/models/attach_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_i_scsi_volume_details.rb +4 -4
- data/lib/oci/core/models/attach_vnic_details.rb +4 -4
- data/lib/oci/core/models/attach_volume_details.rb +4 -4
- data/lib/oci/core/models/boot_volume.rb +4 -4
- data/lib/oci/core/models/boot_volume_attachment.rb +4 -4
- data/lib/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.rb +4 -4
- data/lib/oci/core/models/capture_console_history_details.rb +36 -5
- data/lib/oci/core/models/connect_local_peering_gateways_details.rb +4 -4
- data/lib/oci/core/models/console_history.rb +36 -6
- data/lib/oci/core/models/cpe.rb +4 -4
- data/lib/oci/core/models/create_cpe_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/create_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/create_dhcp_details.rb +36 -5
- data/lib/oci/core/models/create_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/create_drg_details.rb +4 -4
- data/lib/oci/core/models/create_image_details.rb +69 -8
- data/lib/oci/core/models/create_instance_console_connection_details.rb +36 -5
- data/lib/oci/core/models/create_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/create_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/create_private_ip_details.rb +36 -5
- data/lib/oci/core/models/create_route_table_details.rb +36 -5
- data/lib/oci/core/models/create_security_list_details.rb +36 -5
- data/lib/oci/core/models/create_subnet_details.rb +36 -5
- data/lib/oci/core/models/create_vcn_details.rb +39 -8
- data/lib/oci/core/models/create_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/create_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/create_vnic_details.rb +4 -4
- data/lib/oci/core/models/create_volume_backup_details.rb +36 -5
- data/lib/oci/core/models/create_volume_details.rb +36 -5
- data/lib/oci/core/models/cross_connect.rb +4 -4
- data/lib/oci/core/models/cross_connect_group.rb +4 -4
- data/lib/oci/core/models/cross_connect_location.rb +4 -4
- data/lib/oci/core/models/cross_connect_mapping.rb +4 -4
- data/lib/oci/core/models/cross_connect_port_speed_shape.rb +4 -4
- data/lib/oci/core/models/cross_connect_status.rb +4 -4
- data/lib/oci/core/models/delete_virtual_circuit_public_prefix_details.rb +4 -4
- data/lib/oci/core/models/dhcp_dns_option.rb +4 -4
- data/lib/oci/core/models/dhcp_option.rb +4 -4
- data/lib/oci/core/models/dhcp_options.rb +36 -5
- data/lib/oci/core/models/dhcp_search_domain_option.rb +4 -4
- data/lib/oci/core/models/drg.rb +4 -4
- data/lib/oci/core/models/drg_attachment.rb +4 -4
- data/lib/oci/core/models/egress_security_rule.rb +4 -4
- data/lib/oci/core/models/export_image_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_tuple_details.rb +4 -4
- data/lib/oci/core/models/export_image_via_object_storage_uri_details.rb +4 -4
- data/lib/oci/core/models/fast_connect_provider_service.rb +4 -4
- data/lib/oci/core/models/i_scsi_volume_attachment.rb +4 -4
- data/lib/oci/core/models/icmp_options.rb +4 -4
- data/lib/oci/core/models/image.rb +77 -6
- data/lib/oci/core/models/image_source_details.rb +32 -5
- data/lib/oci/core/models/image_source_via_object_storage_tuple_details.rb +8 -5
- data/lib/oci/core/models/image_source_via_object_storage_uri_details.rb +8 -5
- data/lib/oci/core/models/ingress_security_rule.rb +4 -4
- data/lib/oci/core/models/instance.rb +77 -5
- data/lib/oci/core/models/instance_console_connection.rb +52 -8
- data/lib/oci/core/models/instance_credentials.rb +4 -4
- data/lib/oci/core/models/instance_source_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/instance_source_via_image_details.rb +4 -4
- data/lib/oci/core/models/internet_gateway.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_config.rb +4 -4
- data/lib/oci/core/models/ip_sec_connection_device_status.rb +4 -4
- data/lib/oci/core/models/launch_instance_details.rb +39 -6
- data/lib/oci/core/models/launch_options.rb +239 -0
- data/lib/oci/core/models/letter_of_authority.rb +4 -4
- data/lib/oci/core/models/local_peering_gateway.rb +4 -4
- data/lib/oci/core/models/port_range.rb +4 -4
- data/lib/oci/core/models/private_ip.rb +36 -5
- data/lib/oci/core/models/route_rule.rb +4 -4
- data/lib/oci/core/models/route_table.rb +36 -5
- data/lib/oci/core/models/security_list.rb +36 -5
- data/lib/oci/core/models/shape.rb +4 -4
- data/lib/oci/core/models/subnet.rb +36 -5
- data/lib/oci/core/models/tcp_options.rb +4 -4
- data/lib/oci/core/models/tunnel_config.rb +4 -4
- data/lib/oci/core/models/tunnel_status.rb +4 -4
- data/lib/oci/core/models/udp_options.rb +4 -4
- data/lib/oci/core/models/update_boot_volume_details.rb +4 -4
- data/lib/oci/core/models/update_console_history_details.rb +39 -8
- data/lib/oci/core/models/update_cpe_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_details.rb +4 -4
- data/lib/oci/core/models/update_cross_connect_group_details.rb +4 -4
- data/lib/oci/core/models/update_dhcp_details.rb +36 -5
- data/lib/oci/core/models/update_drg_attachment_details.rb +4 -4
- data/lib/oci/core/models/update_drg_details.rb +4 -4
- data/lib/oci/core/models/update_image_details.rb +39 -8
- data/lib/oci/core/models/update_instance_details.rb +39 -8
- data/lib/oci/core/models/update_internet_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_ip_sec_connection_details.rb +4 -4
- data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -4
- data/lib/oci/core/models/update_private_ip_details.rb +36 -5
- data/lib/oci/core/models/update_route_table_details.rb +36 -5
- data/lib/oci/core/models/update_security_list_details.rb +36 -5
- data/lib/oci/core/models/update_subnet_details.rb +39 -8
- data/lib/oci/core/models/update_vcn_details.rb +39 -8
- data/lib/oci/core/models/update_virtual_circuit_details.rb +4 -4
- data/lib/oci/core/models/update_vnic_details.rb +4 -4
- data/lib/oci/core/models/update_volume_backup_details.rb +39 -8
- data/lib/oci/core/models/update_volume_details.rb +39 -8
- data/lib/oci/core/models/vcn.rb +36 -5
- data/lib/oci/core/models/virtual_circuit.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_bandwidth_shape.rb +4 -4
- data/lib/oci/core/models/virtual_circuit_public_prefix.rb +4 -4
- data/lib/oci/core/models/vnic.rb +4 -4
- data/lib/oci/core/models/vnic_attachment.rb +4 -4
- data/lib/oci/core/models/volume.rb +36 -5
- data/lib/oci/core/models/volume_attachment.rb +4 -4
- data/lib/oci/core/models/volume_backup.rb +36 -5
- data/lib/oci/core/models/volume_source_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_backup_details.rb +4 -4
- data/lib/oci/core/models/volume_source_from_volume_details.rb +4 -4
- data/lib/oci/core/util.rb +2 -1
- data/lib/oci/core/virtual_network_client.rb +1 -1
- data/lib/oci/database/database.rb +1 -1
- data/lib/oci/database/database_client.rb +1 -1
- data/lib/oci/database/models/backup.rb +4 -4
- data/lib/oci/database/models/backup_summary.rb +4 -4
- data/lib/oci/database/models/create_backup_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +4 -4
- data/lib/oci/database/models/create_database_details.rb +4 -4
- data/lib/oci/database/models/create_database_from_backup_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_base.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +4 -4
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +4 -4
- data/lib/oci/database/models/data_guard_association.rb +4 -4
- data/lib/oci/database/models/data_guard_association_summary.rb +4 -4
- data/lib/oci/database/models/database.rb +4 -4
- data/lib/oci/database/models/database_summary.rb +4 -4
- data/lib/oci/database/models/db_backup_config.rb +4 -4
- data/lib/oci/database/models/db_home.rb +4 -4
- data/lib/oci/database/models/db_home_summary.rb +4 -4
- data/lib/oci/database/models/db_node.rb +4 -4
- data/lib/oci/database/models/db_node_summary.rb +4 -4
- data/lib/oci/database/models/db_system.rb +4 -4
- data/lib/oci/database/models/db_system_shape_summary.rb +4 -4
- data/lib/oci/database/models/db_system_summary.rb +4 -4
- data/lib/oci/database/models/db_version_summary.rb +4 -4
- data/lib/oci/database/models/failover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/launch_db_system_details.rb +4 -4
- data/lib/oci/database/models/patch.rb +4 -4
- data/lib/oci/database/models/patch_details.rb +4 -4
- data/lib/oci/database/models/patch_history_entry.rb +4 -4
- data/lib/oci/database/models/patch_history_entry_summary.rb +4 -4
- data/lib/oci/database/models/patch_summary.rb +4 -4
- data/lib/oci/database/models/reinstate_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/restore_database_details.rb +4 -4
- data/lib/oci/database/models/switchover_data_guard_association_details.rb +4 -4
- data/lib/oci/database/models/update_database_details.rb +4 -4
- data/lib/oci/database/models/update_db_home_details.rb +4 -4
- data/lib/oci/database/models/update_db_system_details.rb +4 -4
- data/lib/oci/database/util.rb +2 -1
- data/lib/oci/errors.rb +1 -1
- data/lib/oci/global_context.rb +1 -1
- data/lib/oci/identity/identity.rb +9 -1
- data/lib/oci/identity/identity_client.rb +339 -1
- data/lib/oci/identity/models/add_user_to_group_details.rb +4 -4
- data/lib/oci/identity/models/api_key.rb +4 -4
- data/lib/oci/identity/models/availability_domain.rb +4 -4
- data/lib/oci/identity/models/compartment.rb +34 -8
- data/lib/oci/identity/models/create_api_key_details.rb +4 -4
- data/lib/oci/identity/models/create_compartment_details.rb +34 -8
- data/lib/oci/identity/models/create_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/create_group_details.rb +34 -8
- data/lib/oci/identity/models/create_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/create_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/create_policy_details.rb +34 -8
- data/lib/oci/identity/models/create_region_subscription_details.rb +4 -4
- data/lib/oci/identity/models/create_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/create_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/create_tag_details.rb +158 -0
- data/lib/oci/identity/models/create_tag_namespace_details.rb +169 -0
- data/lib/oci/identity/models/create_user_details.rb +34 -8
- data/lib/oci/identity/models/customer_secret_key.rb +4 -4
- data/lib/oci/identity/models/customer_secret_key_summary.rb +4 -4
- data/lib/oci/identity/models/group.rb +35 -8
- data/lib/oci/identity/models/identity_provider.rb +34 -8
- data/lib/oci/identity/models/idp_group_mapping.rb +4 -4
- data/lib/oci/identity/models/policy.rb +34 -8
- data/lib/oci/identity/models/region.rb +4 -4
- data/lib/oci/identity/models/region_subscription.rb +4 -4
- data/lib/oci/identity/models/saml2_identity_provider.rb +11 -5
- data/lib/oci/identity/models/swift_password.rb +4 -4
- data/lib/oci/identity/models/tag.rb +228 -0
- data/lib/oci/identity/models/tag_namespace.rb +205 -0
- data/lib/oci/identity/models/tag_namespace_summary.rb +205 -0
- data/lib/oci/identity/models/tag_summary.rb +205 -0
- data/lib/oci/identity/models/tenancy.rb +34 -8
- data/lib/oci/identity/models/ui_password.rb +4 -4
- data/lib/oci/identity/models/update_compartment_details.rb +34 -8
- data/lib/oci/identity/models/update_customer_secret_key_details.rb +4 -4
- data/lib/oci/identity/models/update_group_details.rb +34 -8
- data/lib/oci/identity/models/update_identity_provider_details.rb +34 -8
- data/lib/oci/identity/models/update_idp_group_mapping_details.rb +4 -4
- data/lib/oci/identity/models/update_policy_details.rb +34 -8
- data/lib/oci/identity/models/update_saml2_identity_provider_details.rb +11 -5
- data/lib/oci/identity/models/update_state_details.rb +4 -4
- data/lib/oci/identity/models/update_swift_password_details.rb +4 -4
- data/lib/oci/identity/models/update_tag_details.rb +157 -0
- data/lib/oci/identity/models/update_tag_namespace_details.rb +157 -0
- data/lib/oci/identity/models/update_user_details.rb +34 -8
- data/lib/oci/identity/models/user.rb +35 -8
- data/lib/oci/identity/models/user_group_membership.rb +4 -4
- data/lib/oci/identity/util.rb +2 -1
- data/lib/oci/internal/internal.rb +1 -1
- data/lib/oci/internal/util.rb +2 -2
- data/lib/oci/load_balancer/load_balancer.rb +1 -1
- data/lib/oci/load_balancer/load_balancer_client.rb +1 -1
- data/lib/oci/load_balancer/models/backend.rb +4 -4
- data/lib/oci/load_balancer/models/backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_health.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/backend_set_health.rb +4 -4
- data/lib/oci/load_balancer/models/certificate.rb +4 -4
- data/lib/oci/load_balancer/models/certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_certificate_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/health_check_result.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker.rb +4 -4
- data/lib/oci/load_balancer/models/health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/ip_address.rb +4 -4
- data/lib/oci/load_balancer/models/listener.rb +4 -4
- data/lib/oci/load_balancer/models/listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_health_summary.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_policy.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_protocol.rb +4 -4
- data/lib/oci/load_balancer/models/load_balancer_shape.rb +4 -4
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration.rb +4 -4
- data/lib/oci/load_balancer/models/ssl_configuration_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_health_checker_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_listener_details.rb +4 -4
- data/lib/oci/load_balancer/models/update_load_balancer_details.rb +4 -4
- data/lib/oci/load_balancer/models/work_request.rb +4 -4
- data/lib/oci/load_balancer/models/work_request_error.rb +4 -4
- data/lib/oci/load_balancer/util.rb +1 -1
- data/lib/oci/object_storage/models/bucket.rb +4 -4
- data/lib/oci/object_storage/models/bucket_summary.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/commit_multipart_upload_part_details.rb +4 -4
- data/lib/oci/object_storage/models/create_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/create_multipart_upload_details.rb +4 -4
- data/lib/oci/object_storage/models/create_preauthenticated_request_details.rb +4 -4
- data/lib/oci/object_storage/models/list_objects.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload.rb +4 -4
- data/lib/oci/object_storage/models/multipart_upload_part_summary.rb +4 -4
- data/lib/oci/object_storage/models/namespace_metadata.rb +4 -4
- data/lib/oci/object_storage/models/object_summary.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request.rb +4 -4
- data/lib/oci/object_storage/models/preauthenticated_request_summary.rb +4 -4
- data/lib/oci/object_storage/models/rename_object_details.rb +4 -4
- data/lib/oci/object_storage/models/restore_objects_details.rb +4 -4
- data/lib/oci/object_storage/models/update_bucket_details.rb +4 -4
- data/lib/oci/object_storage/models/update_namespace_metadata_details.rb +4 -4
- data/lib/oci/object_storage/object_storage.rb +1 -1
- data/lib/oci/object_storage/object_storage_client.rb +1 -1
- data/lib/oci/object_storage/util.rb +2 -1
- data/lib/oci/regions.rb +1 -1
- data/lib/oci/response.rb +1 -1
- data/lib/oci/response_headers.rb +1 -1
- data/lib/oci/signer.rb +1 -1
- data/lib/oci/version.rb +2 -2
- data/lib/oci/waiter.rb +21 -5
- data/lib/oraclebmc.rb +1 -1
- metadata +11 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2016,
|
1
|
+
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
|
2
2
|
|
3
3
|
require 'date'
|
4
4
|
|
@@ -18,6 +18,18 @@ module OCI
|
|
18
18
|
# @return [String]
|
19
19
|
attr_accessor :description
|
20
20
|
|
21
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
22
|
+
# Example: `{\"bar-key\": \"value\"}`
|
23
|
+
#
|
24
|
+
# @return [Hash<String, String>]
|
25
|
+
attr_accessor :freeform_tags
|
26
|
+
|
27
|
+
# Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
28
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
|
29
|
+
#
|
30
|
+
# @return [Hash<String, Hash<String, Object>>]
|
31
|
+
attr_accessor :defined_tags
|
32
|
+
|
21
33
|
|
22
34
|
# Initializes the object
|
23
35
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -39,6 +51,14 @@ module OCI
|
|
39
51
|
self.description = attributes[:'description']
|
40
52
|
end
|
41
53
|
|
54
|
+
if attributes[:'freeformTags']
|
55
|
+
self.freeform_tags = attributes[:'freeformTags']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'definedTags']
|
59
|
+
self.defined_tags = attributes[:'definedTags']
|
60
|
+
end
|
61
|
+
|
42
62
|
end
|
43
63
|
|
44
64
|
# Checks equality by comparing each attribute.
|
@@ -48,7 +68,9 @@ module OCI
|
|
48
68
|
self.class == other_object.class &&
|
49
69
|
compartment_id == other_object.compartment_id &&
|
50
70
|
name == other_object.name &&
|
51
|
-
description == other_object.description
|
71
|
+
description == other_object.description &&
|
72
|
+
freeform_tags == other_object.freeform_tags &&
|
73
|
+
defined_tags == other_object.defined_tags
|
52
74
|
end
|
53
75
|
|
54
76
|
# @see the `==` method
|
@@ -60,7 +82,7 @@ module OCI
|
|
60
82
|
# Calculates hash code according to all attributes.
|
61
83
|
# @return [Fixnum] Hash code
|
62
84
|
def hash
|
63
|
-
[compartment_id, name, description].hash
|
85
|
+
[compartment_id, name, description, freeform_tags, defined_tags].hash
|
64
86
|
end
|
65
87
|
|
66
88
|
# Builds the object from hash
|
@@ -73,10 +95,10 @@ module OCI
|
|
73
95
|
# check to ensure the input is an array given that the the attribute
|
74
96
|
# is documented as an array but the input is not
|
75
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
76
|
-
self.
|
98
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
77
99
|
end
|
78
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
79
|
-
self.
|
101
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
80
102
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
81
103
|
end
|
82
104
|
|
@@ -94,7 +116,7 @@ module OCI
|
|
94
116
|
def to_hash
|
95
117
|
hash = {}
|
96
118
|
self.class.attribute_map.each_pair do |attr, param|
|
97
|
-
value =
|
119
|
+
value = public_method(attr).call
|
98
120
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
99
121
|
hash[param] = _to_hash(value)
|
100
122
|
end
|
@@ -128,7 +150,9 @@ module OCI
|
|
128
150
|
{
|
129
151
|
:'compartment_id' => :'compartmentId',
|
130
152
|
:'name' => :'name',
|
131
|
-
:'description' => :'description'
|
153
|
+
:'description' => :'description',
|
154
|
+
:'freeform_tags' => :'freeformTags',
|
155
|
+
:'defined_tags' => :'definedTags'
|
132
156
|
}
|
133
157
|
end
|
134
158
|
|
@@ -137,7 +161,9 @@ module OCI
|
|
137
161
|
{
|
138
162
|
:'compartment_id' => :'String',
|
139
163
|
:'name' => :'String',
|
140
|
-
:'description' => :'String'
|
164
|
+
:'description' => :'String',
|
165
|
+
:'freeform_tags' => :'Hash<String, String>',
|
166
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
141
167
|
}
|
142
168
|
end
|
143
169
|
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
|
|
@@ -144,10 +144,10 @@ module OCI
|
|
144
144
|
# check to ensure the input is an array given that the the attribute
|
145
145
|
# is documented as an array but the input is not
|
146
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
-
self.
|
147
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
148
148
|
end
|
149
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
-
self.
|
150
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
151
151
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
152
152
|
end
|
153
153
|
|
@@ -165,7 +165,7 @@ module OCI
|
|
165
165
|
def to_hash
|
166
166
|
hash = {}
|
167
167
|
self.class.attribute_map.each_pair do |attr, param|
|
168
|
-
value =
|
168
|
+
value = public_method(attr).call
|
169
169
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
170
170
|
hash[param] = _to_hash(value)
|
171
171
|
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
|
|
@@ -134,10 +134,10 @@ module OCI
|
|
134
134
|
# check to ensure the input is an array given that the the attribute
|
135
135
|
# is documented as an array but the input is not
|
136
136
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
-
self.
|
137
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
138
138
|
end
|
139
139
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
|
-
self.
|
140
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
141
141
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
142
142
|
end
|
143
143
|
|
@@ -155,7 +155,7 @@ module OCI
|
|
155
155
|
def to_hash
|
156
156
|
hash = {}
|
157
157
|
self.class.attribute_map.each_pair do |attr, param|
|
158
|
-
value =
|
158
|
+
value = public_method(attr).call
|
159
159
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
160
160
|
hash[param] = _to_hash(value)
|
161
161
|
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
|
|
@@ -47,6 +47,19 @@ module OCI
|
|
47
47
|
# @return [Integer]
|
48
48
|
attr_accessor :inactive_status
|
49
49
|
|
50
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists solely for
|
51
|
+
# compatibility with other cloud provider tagging schemes.
|
52
|
+
# Example: `{\"bar-key\": \"value\"}`
|
53
|
+
#
|
54
|
+
# @return [Hash<String, String>]
|
55
|
+
attr_accessor :freeform_tags
|
56
|
+
|
57
|
+
# Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
58
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
|
59
|
+
#
|
60
|
+
# @return [Hash<String, Hash<String, Object>>]
|
61
|
+
attr_accessor :defined_tags
|
62
|
+
|
50
63
|
|
51
64
|
# Initializes the object
|
52
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -84,6 +97,14 @@ module OCI
|
|
84
97
|
self.inactive_status = attributes[:'inactiveStatus']
|
85
98
|
end
|
86
99
|
|
100
|
+
if attributes[:'freeformTags']
|
101
|
+
self.freeform_tags = attributes[:'freeformTags']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes[:'definedTags']
|
105
|
+
self.defined_tags = attributes[:'definedTags']
|
106
|
+
end
|
107
|
+
|
87
108
|
end
|
88
109
|
|
89
110
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -107,7 +128,9 @@ module OCI
|
|
107
128
|
description == other_object.description &&
|
108
129
|
time_created == other_object.time_created &&
|
109
130
|
lifecycle_state == other_object.lifecycle_state &&
|
110
|
-
inactive_status == other_object.inactive_status
|
131
|
+
inactive_status == other_object.inactive_status &&
|
132
|
+
freeform_tags == other_object.freeform_tags &&
|
133
|
+
defined_tags == other_object.defined_tags
|
111
134
|
end
|
112
135
|
|
113
136
|
# @see the `==` method
|
@@ -119,7 +142,7 @@ module OCI
|
|
119
142
|
# Calculates hash code according to all attributes.
|
120
143
|
# @return [Fixnum] Hash code
|
121
144
|
def hash
|
122
|
-
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status].hash
|
145
|
+
[id, compartment_id, name, description, time_created, lifecycle_state, inactive_status, freeform_tags, defined_tags].hash
|
123
146
|
end
|
124
147
|
|
125
148
|
# Builds the object from hash
|
@@ -132,10 +155,10 @@ module OCI
|
|
132
155
|
# check to ensure the input is an array given that the the attribute
|
133
156
|
# is documented as an array but the input is not
|
134
157
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
-
self.
|
158
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
136
159
|
end
|
137
160
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
|
-
self.
|
161
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
139
162
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
140
163
|
end
|
141
164
|
|
@@ -153,7 +176,7 @@ module OCI
|
|
153
176
|
def to_hash
|
154
177
|
hash = {}
|
155
178
|
self.class.attribute_map.each_pair do |attr, param|
|
156
|
-
value =
|
179
|
+
value = public_method(attr).call
|
157
180
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
158
181
|
hash[param] = _to_hash(value)
|
159
182
|
end
|
@@ -191,7 +214,9 @@ module OCI
|
|
191
214
|
:'description' => :'description',
|
192
215
|
:'time_created' => :'timeCreated',
|
193
216
|
:'lifecycle_state' => :'lifecycleState',
|
194
|
-
:'inactive_status' => :'inactiveStatus'
|
217
|
+
:'inactive_status' => :'inactiveStatus',
|
218
|
+
:'freeform_tags' => :'freeformTags',
|
219
|
+
:'defined_tags' => :'definedTags'
|
195
220
|
}
|
196
221
|
end
|
197
222
|
|
@@ -204,7 +229,9 @@ module OCI
|
|
204
229
|
:'description' => :'String',
|
205
230
|
:'time_created' => :'DateTime',
|
206
231
|
:'lifecycle_state' => :'String',
|
207
|
-
:'inactive_status' => :'Integer'
|
232
|
+
:'inactive_status' => :'Integer',
|
233
|
+
:'freeform_tags' => :'Hash<String, String>',
|
234
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
208
235
|
}
|
209
236
|
end
|
210
237
|
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
|
|
@@ -72,6 +72,18 @@ module OCI
|
|
72
72
|
# @return [String]
|
73
73
|
attr_accessor :protocol
|
74
74
|
|
75
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
76
|
+
# Example: `{\"bar-key\": \"value\"}`
|
77
|
+
#
|
78
|
+
# @return [Hash<String, String>]
|
79
|
+
attr_accessor :freeform_tags
|
80
|
+
|
81
|
+
# Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
82
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
|
83
|
+
#
|
84
|
+
# @return [Hash<String, Hash<String, Object>>]
|
85
|
+
attr_accessor :defined_tags
|
86
|
+
|
75
87
|
|
76
88
|
# Given the hash representation of a subtype of this class,
|
77
89
|
# use the info in the hash to return the class of the subtype.
|
@@ -128,6 +140,14 @@ module OCI
|
|
128
140
|
self.protocol = attributes[:'protocol']
|
129
141
|
end
|
130
142
|
|
143
|
+
if attributes[:'freeformTags']
|
144
|
+
self.freeform_tags = attributes[:'freeformTags']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes[:'definedTags']
|
148
|
+
self.defined_tags = attributes[:'definedTags']
|
149
|
+
end
|
150
|
+
|
131
151
|
end
|
132
152
|
|
133
153
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -153,7 +173,9 @@ module OCI
|
|
153
173
|
time_created == other_object.time_created &&
|
154
174
|
lifecycle_state == other_object.lifecycle_state &&
|
155
175
|
inactive_status == other_object.inactive_status &&
|
156
|
-
protocol == other_object.protocol
|
176
|
+
protocol == other_object.protocol &&
|
177
|
+
freeform_tags == other_object.freeform_tags &&
|
178
|
+
defined_tags == other_object.defined_tags
|
157
179
|
end
|
158
180
|
|
159
181
|
# @see the `==` method
|
@@ -165,7 +187,7 @@ module OCI
|
|
165
187
|
# Calculates hash code according to all attributes.
|
166
188
|
# @return [Fixnum] Hash code
|
167
189
|
def hash
|
168
|
-
[id, compartment_id, name, description, product_type, time_created, lifecycle_state, inactive_status, protocol].hash
|
190
|
+
[id, compartment_id, name, description, product_type, time_created, lifecycle_state, inactive_status, protocol, freeform_tags, defined_tags].hash
|
169
191
|
end
|
170
192
|
|
171
193
|
# Builds the object from hash
|
@@ -178,10 +200,10 @@ module OCI
|
|
178
200
|
# check to ensure the input is an array given that the the attribute
|
179
201
|
# is documented as an array but the input is not
|
180
202
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
-
self.
|
203
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
182
204
|
end
|
183
205
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
-
self.
|
206
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
185
207
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
186
208
|
end
|
187
209
|
|
@@ -199,7 +221,7 @@ module OCI
|
|
199
221
|
def to_hash
|
200
222
|
hash = {}
|
201
223
|
self.class.attribute_map.each_pair do |attr, param|
|
202
|
-
value =
|
224
|
+
value = public_method(attr).call
|
203
225
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
204
226
|
hash[param] = _to_hash(value)
|
205
227
|
end
|
@@ -239,7 +261,9 @@ module OCI
|
|
239
261
|
:'time_created' => :'timeCreated',
|
240
262
|
:'lifecycle_state' => :'lifecycleState',
|
241
263
|
:'inactive_status' => :'inactiveStatus',
|
242
|
-
:'protocol' => :'protocol'
|
264
|
+
:'protocol' => :'protocol',
|
265
|
+
:'freeform_tags' => :'freeformTags',
|
266
|
+
:'defined_tags' => :'definedTags'
|
243
267
|
}
|
244
268
|
end
|
245
269
|
|
@@ -254,7 +278,9 @@ module OCI
|
|
254
278
|
:'time_created' => :'DateTime',
|
255
279
|
:'lifecycle_state' => :'String',
|
256
280
|
:'inactive_status' => :'Integer',
|
257
|
-
:'protocol' => :'String'
|
281
|
+
:'protocol' => :'String',
|
282
|
+
:'freeform_tags' => :'Hash<String, String>',
|
283
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
258
284
|
}
|
259
285
|
end
|
260
286
|
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
|
|
@@ -139,10 +139,10 @@ module OCI
|
|
139
139
|
# check to ensure the input is an array given that the the attribute
|
140
140
|
# is documented as an array but the input is not
|
141
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
-
self.
|
142
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
143
143
|
end
|
144
144
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
-
self.
|
145
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
146
146
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
147
147
|
end
|
148
148
|
|
@@ -160,7 +160,7 @@ module OCI
|
|
160
160
|
def to_hash
|
161
161
|
hash = {}
|
162
162
|
self.class.attribute_map.each_pair do |attr, param|
|
163
|
-
value =
|
163
|
+
value = public_method(attr).call
|
164
164
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
165
165
|
hash[param] = _to_hash(value)
|
166
166
|
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
|
|
@@ -59,6 +59,18 @@ module OCI
|
|
59
59
|
# @return [DateTime]
|
60
60
|
attr_accessor :version_date
|
61
61
|
|
62
|
+
# Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
63
|
+
# Example: `{\"bar-key\": \"value\"}`
|
64
|
+
#
|
65
|
+
# @return [Hash<String, String>]
|
66
|
+
attr_accessor :freeform_tags
|
67
|
+
|
68
|
+
# Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
69
|
+
# Example: `{\"foo-namespace\": {\"bar-key\": \"foo-value\"}}`
|
70
|
+
#
|
71
|
+
# @return [Hash<String, Hash<String, Object>>]
|
72
|
+
attr_accessor :defined_tags
|
73
|
+
|
62
74
|
|
63
75
|
# Initializes the object
|
64
76
|
# @param [Hash] attributes Model attributes in the form of hash
|
@@ -104,6 +116,14 @@ module OCI
|
|
104
116
|
self.version_date = attributes[:'versionDate']
|
105
117
|
end
|
106
118
|
|
119
|
+
if attributes[:'freeformTags']
|
120
|
+
self.freeform_tags = attributes[:'freeformTags']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes[:'definedTags']
|
124
|
+
self.defined_tags = attributes[:'definedTags']
|
125
|
+
end
|
126
|
+
|
107
127
|
end
|
108
128
|
|
109
129
|
# Custom attribute writer method checking allowed values (enum).
|
@@ -129,7 +149,9 @@ module OCI
|
|
129
149
|
time_created == other_object.time_created &&
|
130
150
|
lifecycle_state == other_object.lifecycle_state &&
|
131
151
|
inactive_status == other_object.inactive_status &&
|
132
|
-
version_date == other_object.version_date
|
152
|
+
version_date == other_object.version_date &&
|
153
|
+
freeform_tags == other_object.freeform_tags &&
|
154
|
+
defined_tags == other_object.defined_tags
|
133
155
|
end
|
134
156
|
|
135
157
|
# @see the `==` method
|
@@ -141,7 +163,7 @@ module OCI
|
|
141
163
|
# Calculates hash code according to all attributes.
|
142
164
|
# @return [Fixnum] Hash code
|
143
165
|
def hash
|
144
|
-
[id, compartment_id, name, statements, description, time_created, lifecycle_state, inactive_status, version_date].hash
|
166
|
+
[id, compartment_id, name, statements, description, time_created, lifecycle_state, inactive_status, version_date, freeform_tags, defined_tags].hash
|
145
167
|
end
|
146
168
|
|
147
169
|
# Builds the object from hash
|
@@ -154,10 +176,10 @@ module OCI
|
|
154
176
|
# check to ensure the input is an array given that the the attribute
|
155
177
|
# is documented as an array but the input is not
|
156
178
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
157
|
-
self.
|
179
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
158
180
|
end
|
159
181
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
160
|
-
self.
|
182
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
161
183
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
162
184
|
end
|
163
185
|
|
@@ -175,7 +197,7 @@ module OCI
|
|
175
197
|
def to_hash
|
176
198
|
hash = {}
|
177
199
|
self.class.attribute_map.each_pair do |attr, param|
|
178
|
-
value =
|
200
|
+
value = public_method(attr).call
|
179
201
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
180
202
|
hash[param] = _to_hash(value)
|
181
203
|
end
|
@@ -215,7 +237,9 @@ module OCI
|
|
215
237
|
:'time_created' => :'timeCreated',
|
216
238
|
:'lifecycle_state' => :'lifecycleState',
|
217
239
|
:'inactive_status' => :'inactiveStatus',
|
218
|
-
:'version_date' => :'versionDate'
|
240
|
+
:'version_date' => :'versionDate',
|
241
|
+
:'freeform_tags' => :'freeformTags',
|
242
|
+
:'defined_tags' => :'definedTags'
|
219
243
|
}
|
220
244
|
end
|
221
245
|
|
@@ -230,7 +254,9 @@ module OCI
|
|
230
254
|
:'time_created' => :'DateTime',
|
231
255
|
:'lifecycle_state' => :'String',
|
232
256
|
:'inactive_status' => :'Integer',
|
233
|
-
:'version_date' => :'DateTime'
|
257
|
+
:'version_date' => :'DateTime',
|
258
|
+
:'freeform_tags' => :'Hash<String, String>',
|
259
|
+
:'defined_tags' => :'Hash<String, Hash<String, Object>>'
|
234
260
|
}
|
235
261
|
end
|
236
262
|
end
|