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
|
|
@@ -53,10 +53,10 @@ module OCI
|
|
53
53
|
# check to ensure the input is an array given that the the attribute
|
54
54
|
# is documented as an array but the input is not
|
55
55
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
56
|
-
self.
|
56
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
57
57
|
end
|
58
58
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
59
|
-
self.
|
59
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
60
60
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
61
61
|
end
|
62
62
|
|
@@ -74,7 +74,7 @@ module OCI
|
|
74
74
|
def to_hash
|
75
75
|
hash = {}
|
76
76
|
self.class.attribute_map.each_pair do |attr, param|
|
77
|
-
value =
|
77
|
+
value = public_method(attr).call
|
78
78
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
79
79
|
hash[param] = _to_hash(value)
|
80
80
|
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
|
|
@@ -52,10 +52,10 @@ module OCI
|
|
52
52
|
# check to ensure the input is an array given that the the attribute
|
53
53
|
# is documented as an array but the input is not
|
54
54
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
55
|
-
self.
|
55
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
56
56
|
end
|
57
57
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
58
|
-
self.
|
58
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
59
59
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
60
60
|
end
|
61
61
|
|
@@ -73,7 +73,7 @@ module OCI
|
|
73
73
|
def to_hash
|
74
74
|
hash = {}
|
75
75
|
self.class.attribute_map.each_pair do |attr, param|
|
76
|
-
value =
|
76
|
+
value = public_method(attr).call
|
77
77
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
78
78
|
hash[param] = _to_hash(value)
|
79
79
|
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
|
|
@@ -52,10 +52,10 @@ module OCI
|
|
52
52
|
# check to ensure the input is an array given that the the attribute
|
53
53
|
# is documented as an array but the input is not
|
54
54
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
55
|
-
self.
|
55
|
+
self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } )
|
56
56
|
end
|
57
57
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
58
|
-
self.
|
58
|
+
self.public_method("#{key}=").call(OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]))
|
59
59
|
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
60
60
|
end
|
61
61
|
|
@@ -73,7 +73,7 @@ module OCI
|
|
73
73
|
def to_hash
|
74
74
|
hash = {}
|
75
75
|
self.class.attribute_map.each_pair do |attr, param|
|
76
|
-
value =
|
76
|
+
value = public_method(attr).call
|
77
77
|
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
78
78
|
hash[param] = _to_hash(value)
|
79
79
|
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
|
data/lib/oci/database/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/errors.rb
CHANGED
data/lib/oci/global_context.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 Identity
|
@@ -22,6 +22,8 @@ require 'oci/identity/models/create_policy_details'
|
|
22
22
|
require 'oci/identity/models/create_region_subscription_details'
|
23
23
|
require 'oci/identity/models/create_saml2_identity_provider_details'
|
24
24
|
require 'oci/identity/models/create_swift_password_details'
|
25
|
+
require 'oci/identity/models/create_tag_details'
|
26
|
+
require 'oci/identity/models/create_tag_namespace_details'
|
25
27
|
require 'oci/identity/models/create_user_details'
|
26
28
|
require 'oci/identity/models/customer_secret_key'
|
27
29
|
require 'oci/identity/models/customer_secret_key_summary'
|
@@ -33,6 +35,10 @@ require 'oci/identity/models/region'
|
|
33
35
|
require 'oci/identity/models/region_subscription'
|
34
36
|
require 'oci/identity/models/saml2_identity_provider'
|
35
37
|
require 'oci/identity/models/swift_password'
|
38
|
+
require 'oci/identity/models/tag'
|
39
|
+
require 'oci/identity/models/tag_namespace'
|
40
|
+
require 'oci/identity/models/tag_namespace_summary'
|
41
|
+
require 'oci/identity/models/tag_summary'
|
36
42
|
require 'oci/identity/models/tenancy'
|
37
43
|
require 'oci/identity/models/ui_password'
|
38
44
|
require 'oci/identity/models/update_compartment_details'
|
@@ -44,6 +50,8 @@ require 'oci/identity/models/update_policy_details'
|
|
44
50
|
require 'oci/identity/models/update_saml2_identity_provider_details'
|
45
51
|
require 'oci/identity/models/update_state_details'
|
46
52
|
require 'oci/identity/models/update_swift_password_details'
|
53
|
+
require 'oci/identity/models/update_tag_details'
|
54
|
+
require 'oci/identity/models/update_tag_namespace_details'
|
47
55
|
require 'oci/identity/models/update_user_details'
|
48
56
|
require 'oci/identity/models/user'
|
49
57
|
require 'oci/identity/models/user_group_membership'
|
@@ -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 "uri"
|
4
4
|
require "logger"
|
@@ -560,6 +560,113 @@ module OCI
|
|
560
560
|
:return_type => 'OCI::Identity::Models::SwiftPassword')
|
561
561
|
end
|
562
562
|
|
563
|
+
# Creates a new tag in a given tagNamespace.
|
564
|
+
#
|
565
|
+
# You have to specify either the id or the name of the tagNamespace that will contain this tag definition.
|
566
|
+
#
|
567
|
+
# You must also specify a *name* for the tag, which must be unique across all tags in the tagNamespace
|
568
|
+
# and cannot be changed. All ascii characters are allowed except spaces and dots. Note that names are case
|
569
|
+
# insenstive, that means you can not have two different tags with same name but with different casing in
|
570
|
+
# one tagNamespace.
|
571
|
+
# If you specify a name that's already in use in the tagNamespace, you'll get a 409 error.
|
572
|
+
#
|
573
|
+
# You must also specify a *description* for the tag.
|
574
|
+
# It does not have to be unique, and you can change it anytime with
|
575
|
+
# {#update_tag update_tag}.
|
576
|
+
#
|
577
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
578
|
+
#
|
579
|
+
# @param [CreateTagDetails] create_tag_details Request object for creating a new tag in a given tagNamespace.
|
580
|
+
# @param [Hash] opts the optional parameters
|
581
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
582
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
583
|
+
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
584
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
585
|
+
# may be rejected).
|
586
|
+
#
|
587
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::Tag
|
588
|
+
def create_tag(tag_namespace_id, create_tag_details, opts = {})
|
589
|
+
logger.debug "Calling operation IdentityClient#create_tag." if logger
|
590
|
+
|
591
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling create_tag." if tag_namespace_id.nil?
|
592
|
+
fail "Missing the required parameter 'create_tag_details' when calling create_tag." if create_tag_details.nil?
|
593
|
+
|
594
|
+
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
595
|
+
|
596
|
+
# Query Params
|
597
|
+
query_params = {}
|
598
|
+
|
599
|
+
# Header Params
|
600
|
+
header_params = {}
|
601
|
+
header_params['accept'] = 'application/json'
|
602
|
+
header_params['content-type'] = 'application/json'
|
603
|
+
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
604
|
+
|
605
|
+
post_body = @api_client.object_to_http_body(create_tag_details)
|
606
|
+
|
607
|
+
return @api_client.call_api(
|
608
|
+
:POST,
|
609
|
+
path,
|
610
|
+
endpoint,
|
611
|
+
:header_params => header_params,
|
612
|
+
:query_params => query_params,
|
613
|
+
:body => post_body,
|
614
|
+
:return_type => 'OCI::Identity::Models::Tag')
|
615
|
+
end
|
616
|
+
|
617
|
+
# Creates a new tagNamespace in a given compartment.
|
618
|
+
#
|
619
|
+
# You must specify the compartment ID in the request object (remember that the tenancy is simply the root
|
620
|
+
# compartment).
|
621
|
+
#
|
622
|
+
# You must also specify a *name* for the namespace, which must be unique across all namespaces in your tenancy
|
623
|
+
# and cannot be changed. All ascii characters are allowed except spaces and dots.
|
624
|
+
# Note that names are case insenstive, that means you can not have two different namespaces with same name
|
625
|
+
# but with different casing in one tenancy.
|
626
|
+
# Once you created a namespace, you can not change the name
|
627
|
+
# If you specify a name that's already in use in the tennacy, you'll get a 409 error.
|
628
|
+
#
|
629
|
+
# You must also specify a *description* for the namespace.
|
630
|
+
# It does not have to be unique, and you can change it anytime with
|
631
|
+
# {#update_tag_namespace update_tag_namespace}.
|
632
|
+
#
|
633
|
+
# @param [CreateTagNamespaceDetails] create_tag_namespace_details Request object for creating a new tagNamespace.
|
634
|
+
# @param [Hash] opts the optional parameters
|
635
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
636
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
637
|
+
# hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
|
638
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
639
|
+
# may be rejected).
|
640
|
+
#
|
641
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::TagNamespace
|
642
|
+
def create_tag_namespace(create_tag_namespace_details, opts = {})
|
643
|
+
logger.debug "Calling operation IdentityClient#create_tag_namespace." if logger
|
644
|
+
|
645
|
+
fail "Missing the required parameter 'create_tag_namespace_details' when calling create_tag_namespace." if create_tag_namespace_details.nil?
|
646
|
+
|
647
|
+
path = "/tagNamespaces"
|
648
|
+
|
649
|
+
# Query Params
|
650
|
+
query_params = {}
|
651
|
+
|
652
|
+
# Header Params
|
653
|
+
header_params = {}
|
654
|
+
header_params['accept'] = 'application/json'
|
655
|
+
header_params['content-type'] = 'application/json'
|
656
|
+
header_params[:'opc-retry-token'] = opts[:'opc_retry_token'] if opts[:'opc_retry_token']
|
657
|
+
|
658
|
+
post_body = @api_client.object_to_http_body(create_tag_namespace_details)
|
659
|
+
|
660
|
+
return @api_client.call_api(
|
661
|
+
:POST,
|
662
|
+
path,
|
663
|
+
endpoint,
|
664
|
+
:header_params => header_params,
|
665
|
+
:query_params => query_params,
|
666
|
+
:body => post_body,
|
667
|
+
:return_type => 'OCI::Identity::Models::TagNamespace')
|
668
|
+
end
|
669
|
+
|
563
670
|
# Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other
|
564
671
|
# IAM Service components, see [Overview of the IAM Service](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Concepts/overview.htm).
|
565
672
|
#
|
@@ -1102,6 +1209,74 @@ module OCI
|
|
1102
1209
|
:return_type => 'OCI::Identity::Models::Policy')
|
1103
1210
|
end
|
1104
1211
|
|
1212
|
+
# Gets the specified tag's information.
|
1213
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
1214
|
+
#
|
1215
|
+
# @param [String] tag_name The name of the tag
|
1216
|
+
#
|
1217
|
+
# @param [Hash] opts the optional parameters
|
1218
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::Tag
|
1219
|
+
def get_tag(tag_namespace_id, tag_name, opts = {})
|
1220
|
+
logger.debug "Calling operation IdentityClient#get_tag." if logger
|
1221
|
+
|
1222
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling get_tag." if tag_namespace_id.nil?
|
1223
|
+
fail "Missing the required parameter 'tag_name' when calling get_tag." if tag_name.nil?
|
1224
|
+
|
1225
|
+
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
1226
|
+
|
1227
|
+
# Query Params
|
1228
|
+
query_params = {}
|
1229
|
+
|
1230
|
+
# Header Params
|
1231
|
+
header_params = {}
|
1232
|
+
header_params['accept'] = 'application/json'
|
1233
|
+
header_params['content-type'] = 'application/json'
|
1234
|
+
|
1235
|
+
post_body = nil
|
1236
|
+
|
1237
|
+
return @api_client.call_api(
|
1238
|
+
:GET,
|
1239
|
+
path,
|
1240
|
+
endpoint,
|
1241
|
+
:header_params => header_params,
|
1242
|
+
:query_params => query_params,
|
1243
|
+
:body => post_body,
|
1244
|
+
:return_type => 'OCI::Identity::Models::Tag')
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# Gets the specified tagNamespace's information.
|
1248
|
+
#
|
1249
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
1250
|
+
#
|
1251
|
+
# @param [Hash] opts the optional parameters
|
1252
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::TagNamespace
|
1253
|
+
def get_tag_namespace(tag_namespace_id, opts = {})
|
1254
|
+
logger.debug "Calling operation IdentityClient#get_tag_namespace." if logger
|
1255
|
+
|
1256
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling get_tag_namespace." if tag_namespace_id.nil?
|
1257
|
+
|
1258
|
+
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
1259
|
+
|
1260
|
+
# Query Params
|
1261
|
+
query_params = {}
|
1262
|
+
|
1263
|
+
# Header Params
|
1264
|
+
header_params = {}
|
1265
|
+
header_params['accept'] = 'application/json'
|
1266
|
+
header_params['content-type'] = 'application/json'
|
1267
|
+
|
1268
|
+
post_body = nil
|
1269
|
+
|
1270
|
+
return @api_client.call_api(
|
1271
|
+
:GET,
|
1272
|
+
path,
|
1273
|
+
endpoint,
|
1274
|
+
:header_params => header_params,
|
1275
|
+
:query_params => query_params,
|
1276
|
+
:body => post_body,
|
1277
|
+
:return_type => 'OCI::Identity::Models::TagNamespace')
|
1278
|
+
end
|
1279
|
+
|
1105
1280
|
# Get the specified tenancy's information.
|
1106
1281
|
# @param [String] tenancy_id The OCID of the tenancy.
|
1107
1282
|
# @param [Hash] opts the optional parameters
|
@@ -1608,6 +1783,89 @@ module OCI
|
|
1608
1783
|
:return_type => 'Array<OCI::Identity::Models::SwiftPassword>')
|
1609
1784
|
end
|
1610
1785
|
|
1786
|
+
# List the tagNamespaces in a given compartment.
|
1787
|
+
#
|
1788
|
+
# @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
|
1789
|
+
#
|
1790
|
+
# @param [Hash] opts the optional parameters
|
1791
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1792
|
+
#
|
1793
|
+
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
1794
|
+
#
|
1795
|
+
# @option opts [BOOLEAN] :include_subcompartments An optional boolean parameter for whether or not to retrieve all tagNamespaces in sub compartments. In case
|
1796
|
+
# of absence of this parameter, only tagNamespaces that exist directly in this compartment will be retrieved.
|
1797
|
+
#
|
1798
|
+
# @return [Response] A Response object with data of type Array<OCI::Identity::Models::TagNamespaceSummary>
|
1799
|
+
def list_tag_namespaces(compartment_id, opts = {})
|
1800
|
+
logger.debug "Calling operation IdentityClient#list_tag_namespaces." if logger
|
1801
|
+
|
1802
|
+
fail "Missing the required parameter 'compartment_id' when calling list_tag_namespaces." if compartment_id.nil?
|
1803
|
+
|
1804
|
+
path = "/tagNamespaces"
|
1805
|
+
|
1806
|
+
# Query Params
|
1807
|
+
query_params = {}
|
1808
|
+
query_params[:'compartmentId'] = compartment_id
|
1809
|
+
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
1810
|
+
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
1811
|
+
query_params[:'includeSubcompartments'] = opts[:'include_subcompartments'] if opts[:'include_subcompartments']
|
1812
|
+
|
1813
|
+
# Header Params
|
1814
|
+
header_params = {}
|
1815
|
+
header_params['accept'] = 'application/json'
|
1816
|
+
header_params['content-type'] = 'application/json'
|
1817
|
+
|
1818
|
+
post_body = nil
|
1819
|
+
|
1820
|
+
return @api_client.call_api(
|
1821
|
+
:GET,
|
1822
|
+
path,
|
1823
|
+
endpoint,
|
1824
|
+
:header_params => header_params,
|
1825
|
+
:query_params => query_params,
|
1826
|
+
:body => post_body,
|
1827
|
+
:return_type => 'Array<OCI::Identity::Models::TagNamespaceSummary>')
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
# List the tags that are defined in a given tagNamespace.
|
1831
|
+
#
|
1832
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
1833
|
+
#
|
1834
|
+
# @param [Hash] opts the optional parameters
|
1835
|
+
# @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
|
1836
|
+
#
|
1837
|
+
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
|
1838
|
+
#
|
1839
|
+
# @return [Response] A Response object with data of type Array<OCI::Identity::Models::TagSummary>
|
1840
|
+
def list_tags(tag_namespace_id, opts = {})
|
1841
|
+
logger.debug "Calling operation IdentityClient#list_tags." if logger
|
1842
|
+
|
1843
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling list_tags." if tag_namespace_id.nil?
|
1844
|
+
|
1845
|
+
path = "/tagNamespaces/{tagNamespaceId}/tags".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
1846
|
+
|
1847
|
+
# Query Params
|
1848
|
+
query_params = {}
|
1849
|
+
query_params[:'page'] = opts[:'page'] if opts[:'page']
|
1850
|
+
query_params[:'limit'] = opts[:'limit'] if opts[:'limit']
|
1851
|
+
|
1852
|
+
# Header Params
|
1853
|
+
header_params = {}
|
1854
|
+
header_params['accept'] = 'application/json'
|
1855
|
+
header_params['content-type'] = 'application/json'
|
1856
|
+
|
1857
|
+
post_body = nil
|
1858
|
+
|
1859
|
+
return @api_client.call_api(
|
1860
|
+
:GET,
|
1861
|
+
path,
|
1862
|
+
endpoint,
|
1863
|
+
:header_params => header_params,
|
1864
|
+
:query_params => query_params,
|
1865
|
+
:body => post_body,
|
1866
|
+
:return_type => 'Array<OCI::Identity::Models::TagSummary>')
|
1867
|
+
end
|
1868
|
+
|
1611
1869
|
# Lists the `UserGroupMembership` objects in your tenancy. You must specify your tenancy's OCID
|
1612
1870
|
# as the value for the compartment ID
|
1613
1871
|
# (see [Where to Get the Tenancy's OCID and User's OCID](https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/apisigningkey.htm#five)).
|
@@ -2014,6 +2272,86 @@ module OCI
|
|
2014
2272
|
:return_type => 'OCI::Identity::Models::SwiftPassword')
|
2015
2273
|
end
|
2016
2274
|
|
2275
|
+
# Updates the the specified tag. Only description and isRetired can be updated. Retiring a tag will also retire
|
2276
|
+
# the related rules. You can not a tag with the same name as a retired tag. Tags must be unique within their tag
|
2277
|
+
# namespace but can be repeated across namespaces. You cannot add a tag with the same name as a retired tag in
|
2278
|
+
# the same tag namespace.
|
2279
|
+
#
|
2280
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
2281
|
+
#
|
2282
|
+
# @param [String] tag_name The name of the tag
|
2283
|
+
#
|
2284
|
+
# @param [UpdateTagDetails] update_tag_details Request object for updating a tag.
|
2285
|
+
# @param [Hash] opts the optional parameters
|
2286
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::Tag
|
2287
|
+
def update_tag(tag_namespace_id, tag_name, update_tag_details, opts = {})
|
2288
|
+
logger.debug "Calling operation IdentityClient#update_tag." if logger
|
2289
|
+
|
2290
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling update_tag." if tag_namespace_id.nil?
|
2291
|
+
fail "Missing the required parameter 'tag_name' when calling update_tag." if tag_name.nil?
|
2292
|
+
fail "Missing the required parameter 'update_tag_details' when calling update_tag." if update_tag_details.nil?
|
2293
|
+
|
2294
|
+
path = "/tagNamespaces/{tagNamespaceId}/tags/{tagName}".sub('{tagNamespaceId}', tag_namespace_id.to_s).sub('{tagName}', tag_name.to_s)
|
2295
|
+
|
2296
|
+
# Query Params
|
2297
|
+
query_params = {}
|
2298
|
+
|
2299
|
+
# Header Params
|
2300
|
+
header_params = {}
|
2301
|
+
header_params['accept'] = 'application/json'
|
2302
|
+
header_params['content-type'] = 'application/json'
|
2303
|
+
|
2304
|
+
post_body = @api_client.object_to_http_body(update_tag_details)
|
2305
|
+
|
2306
|
+
return @api_client.call_api(
|
2307
|
+
:PUT,
|
2308
|
+
path,
|
2309
|
+
endpoint,
|
2310
|
+
:header_params => header_params,
|
2311
|
+
:query_params => query_params,
|
2312
|
+
:body => post_body,
|
2313
|
+
:return_type => 'OCI::Identity::Models::Tag')
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
# Updates the the specified tagNamespace. Only description, isRetired and assigned tags can be updated. Updating
|
2317
|
+
# isRetired to be true will retire the namespace, all the contained tags and the related rules. Reactivating a
|
2318
|
+
# namespace will not reactivate any tag definition that was retired when the namespace was retired. They will
|
2319
|
+
# have to be individually reactivated *after* the namespace is reactivated. You can't add a namespace with the
|
2320
|
+
# same name as a retired namespace in the same tenant.
|
2321
|
+
#
|
2322
|
+
# @param [String] tag_namespace_id The OCID of the tagNamespace
|
2323
|
+
#
|
2324
|
+
# @param [UpdateTagNamespaceDetails] update_tag_namespace_details Request object for updating a namespace.
|
2325
|
+
# @param [Hash] opts the optional parameters
|
2326
|
+
# @return [Response] A Response object with data of type OCI::Identity::Models::TagNamespace
|
2327
|
+
def update_tag_namespace(tag_namespace_id, update_tag_namespace_details, opts = {})
|
2328
|
+
logger.debug "Calling operation IdentityClient#update_tag_namespace." if logger
|
2329
|
+
|
2330
|
+
fail "Missing the required parameter 'tag_namespace_id' when calling update_tag_namespace." if tag_namespace_id.nil?
|
2331
|
+
fail "Missing the required parameter 'update_tag_namespace_details' when calling update_tag_namespace." if update_tag_namespace_details.nil?
|
2332
|
+
|
2333
|
+
path = "/tagNamespaces/{tagNamespaceId}".sub('{tagNamespaceId}', tag_namespace_id.to_s)
|
2334
|
+
|
2335
|
+
# Query Params
|
2336
|
+
query_params = {}
|
2337
|
+
|
2338
|
+
# Header Params
|
2339
|
+
header_params = {}
|
2340
|
+
header_params['accept'] = 'application/json'
|
2341
|
+
header_params['content-type'] = 'application/json'
|
2342
|
+
|
2343
|
+
post_body = @api_client.object_to_http_body(update_tag_namespace_details)
|
2344
|
+
|
2345
|
+
return @api_client.call_api(
|
2346
|
+
:PUT,
|
2347
|
+
path,
|
2348
|
+
endpoint,
|
2349
|
+
:header_params => header_params,
|
2350
|
+
:query_params => query_params,
|
2351
|
+
:body => post_body,
|
2352
|
+
:return_type => 'OCI::Identity::Models::TagNamespace')
|
2353
|
+
end
|
2354
|
+
|
2017
2355
|
# Updates the description of the specified user.
|
2018
2356
|
# @param [String] user_id The OCID of the user.
|
2019
2357
|
# @param [UpdateUserDetails] update_user_details Request object for updating a user.
|