lib/oci/identity/identity_client.rb
# Updates the specified tag default. If you specify that a value is required, a value is set
# during resource creation (either by the user creating the resource or another tag defualt).
# If no value is set, resource creation is blocked.
#
# * If the `isRequired` flag is set to \"true\", the value is set during resource creation.
# * If the `isRequired` flag is set to \"false\", the value you enter is set during resource creation.
#
# @param [String] tag_default_id The OCID of the tag default.
# @param [OCI::Identity::Models::UpdateTagDefaultDetails] update_tag_default_details Request object for updating a tag default.
# @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
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
#   parameter to the value of the etag from a previous GET or POST response for that resource.  The resource
#   will be updated or deleted only if the etag you provide matches the resource's current etag value.
#
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
#   particular request, please provide the request ID.
#
# @return [Response] A Response object with data of type {OCI::Identity::Models::TagDefault TagDefault}
Updates the specified tag default. If you specify that a value is required, a value is set
during resource creation (either by the user creating the resource or another tag defualt).
If no value is set, resource creation is blocked.

If the `isRequired` flag is set to \"true\", the value is set during resource creation.
If the `isRequired` flag is set to \"false\", the value you enter is set during resource creation.
Updates the specified tag default . If you specify that a value is required a value is set during resource creation ( either by the user creating the resource or another tag defualt ) . If no value is set resource creation is blocked . If the ` isRequired ` flag is set to \ " true \ " the value is set during resource creation . If the ` isRequired ` flag is set to \ " false \ " the value you enter is set during resource creation .
def update_tag_default(tag_default_id, update_tag_default_details, opts = {})
      logger.debug 'Calling operation IdentityClient#update_tag_default.' if logger
      raise "Missing the required parameter 'tag_default_id' when calling update_tag_default." if tag_default_id.nil?
      raise "Missing the required parameter 'update_tag_default_details' when calling update_tag_default." if update_tag_default_details.nil?
      raise "Parameter value for 'tag_default_id' must not be blank" if OCI::Internal::Util.blank_string?(tag_default_id)
      path = '/tagDefaults/{tagDefaultId}'.sub('{tagDefaultId}', tag_default_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = @api_client.object_to_http_body(update_tag_default_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#update_tag_default') 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::TagDefault'
        )
      end
    end
def update_tag_default ( tag_default_id , update_tag_default_details , opts = { } ) logger . debug 'Calling operation IdentityClient#update_tag_default.' if logger raise "Missing the required parameter 'tag_default_id' when calling update_tag_default." if tag_default_id . nil? raise "Missing the required parameter 'update_tag_default_details' when calling update_tag_default." if update_tag_default_details . nil? raise "Parameter value for 'tag_default_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( tag_default_id ) path = '/tagDefaults/{tagDefaultId}' . sub ( '{tagDefaultId}' , tag_default_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = @api_client . object_to_http_body ( update_tag_default_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#update_tag_default' ) 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::TagDefault' ) end end
Updates the specified tag default.
Updates the specified tag default .
# 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::TagDefault TagDefault}
A Response object with data of type { OCI :: Identity :: Models :: TagDefault TagDefault }
Response
tag_default_id
<not_specific>
update_tag_default_details
<not_specific>
opts
:opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
: opc_request_id Unique Oracle - assigned identifier for the request . If you need to contact Oracle about a particular request please provide the request ID .
<not_specific>
opts the optional parameters
opts the optional parameters