lib/oci/identity/identity_client.rb
# Updates the the specified tag namespace. You can't update the namespace name.
#
# Updating `isRetired` to 'true' retires the namespace and all the tag definitions in the namespace. Reactivating a
# namespace (changing `isRetired` from 'true' to 'false') does not reactivate tag definitions.
# To reactivate the tag definitions, you must reactivate each one indvidually *after* you reactivate the namespace,
# using {#update_tag update_tag}. For more information about retiring tag namespaces, see
# [Retiring Key Definitions and Namespace Definitions](https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring).
#
# You can't add a namespace with the same name as a retired namespace in the same tenancy.
#
# @param [String] tag_namespace_id The OCID of the tag namespace.
#
# @param [OCI::Identity::Models::UpdateTagNamespaceDetails] update_tag_namespace_details Request object for updating a namespace.
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @return [Response] A Response object with data of type {OCI::Identity::Models::TagNamespace TagNamespace}
Updates the the specified tag namespace. You can't update the namespace name.
Updating `isRetired` to 'true' retires the namespace and all the tag definitions in the namespace. Reactivating a
namespace (changing `isRetired` from 'true' to 'false') does not reactivate tag definitions.
To reactivate the tag definitions, you must reactivate each one indvidually *after* you reactivate the namespace,
using {#update_tag update_tag}. For more information about retiring tag namespaces, see
[Retiring Key Definitions and Namespace Definitions].

You can't add a namespace with the same name as a retired namespace in the same tenancy.
Updates the the specified tag namespace . You can ' t update the namespace name . Updating ` isRetired ` to ' true ' retires the namespace and all the tag definitions in the namespace . Reactivating a namespace ( changing ` isRetired ` from ' true ' to ' false ' ) does not reactivate tag definitions . To reactivate the tag definitions you must reactivate each one indvidually * after * you reactivate the namespace using { #update_tag update_tag } . For more information about retiring tag namespaces see [ Retiring Key Definitions and Namespace Definitions ] . You can ' t add a namespace with the same name as a retired namespace in the same tenancy .
def update_tag_namespace(tag_namespace_id, update_tag_namespace_details, opts = {})
      logger.debug 'Calling operation IdentityClient#update_tag_namespace.' if logger
      raise "Missing the required parameter 'tag_namespace_id' when calling update_tag_namespace." if tag_namespace_id.nil?
      raise "Missing the required parameter 'update_tag_namespace_details' when calling update_tag_namespace." if update_tag_namespace_details.nil?
      raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI::Internal::Util.blank_string?(tag_namespace_id)
      path = '/tagNamespaces/{tagNamespaceId}'.sub('{tagNamespaceId}', tag_namespace_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = @api_client.object_to_http_body(update_tag_namespace_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#update_tag_namespace') do
        @api_client.call_api(
          :PUT,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::Identity::Models::TagNamespace'
        )
      end
    end
def update_tag_namespace ( tag_namespace_id , update_tag_namespace_details , opts = { } ) logger . debug 'Calling operation IdentityClient#update_tag_namespace.' if logger raise "Missing the required parameter 'tag_namespace_id' when calling update_tag_namespace." if tag_namespace_id . nil? raise "Missing the required parameter 'update_tag_namespace_details' when calling update_tag_namespace." if update_tag_namespace_details . nil? raise "Parameter value for 'tag_namespace_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( tag_namespace_id ) path = '/tagNamespaces/{tagNamespaceId}' . sub ( '{tagNamespaceId}' , tag_namespace_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = @api_client . object_to_http_body ( update_tag_namespace_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#update_tag_namespace' ) do @api_client . call_api ( :PUT , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'OCI::Identity::Models::TagNamespace' ) end end
Updates the the specified tag namespace.
Updates the the specified tag namespace .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type {OCI::Identity::Models::TagNamespace TagNamespace}
A Response object with data of type { OCI :: Identity :: Models :: TagNamespace TagNamespace }
Response
tag_namespace_id
<not_specific>
update_tag_namespace_details
<not_specific>
opts
:retry_config The retry configuration to apply to this operation. If no key is provided then the service-level retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
: retry_config The retry configuration to apply to this operation . If no key is provided then the service - level retry configuration defined by { #retry_config } will be used . If an explicit ` nil ` value is provided then the operation will not retry
<not_specific>
opts the optional parameters
opts the optional parameters