lib/oci/identity/identity_client.rb
# Edits the specified list of tag key definitions for the selected resources.
# This operation triggers a process that edits the tags on all selected resources. The possible actions are:
#
#   * Add a defined tag when the tag does not already exist on the resource.
#   * Update the value for a defined tag when the tag is present on the resource.
#   * Add a defined tag when it does not already exist on the resource or update the value for a defined tag when the tag is present on the resource.
#   * Remove a defined tag from a resource. The tag is removed from the resource regardless of the tag value.
#
# See {#bulk_edit_operation_details bulk_edit_operation_details} for more information.
#
# The edits can include a combination of operations and tag sets.
# However, multiple operations cannot apply to one key definition in the same request.
# For example, if one request adds `tag set-1` to a resource and sets a tag value to `tag set-2`,
# `tag set-1` and `tag set-2` cannot have any common tag definitions.
#
# @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] :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.
#
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
#   server error without risk of executing that same action again. Retry tokens expire after 24
#   hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
#   has been deleted and purged from the system, then a retry of the original creation request
#   may be rejected).
#
# @option opts [OCI::Identity::Models::BulkEditTagsDetails] :bulk_edit_tags_details The request object for bulk editing tags on resources in the compartment.
# @return [Response] A Response object with data of type nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/identity/bulk_edit_tags.rb.html) to see an example of how to use bulk_edit_tags API.
Edits the specified list of tag key definitions for the selected resources.
This operation triggers a process that edits the tags on all selected resources. The possible actions are.

Add a defined tag when the tag does not already exist on the resource.
Update the value for a defined tag when the tag is present on the resource.
Add a defined tag when it does not already exist on the resource or update the value for a defined tag when the tag is present on the resource.
Remove a defined tag from a resource. The tag is removed from the resource regardless of the tag value.



The edits can include a combination of operations and tag sets.
However, multiple operations cannot apply to one key definition in the same request.
Edits the specified list of tag key definitions for the selected resources . This operation triggers a process that edits the tags on all selected resources . The possible actions are . Add a defined tag when the tag does not already exist on the resource . Update the value for a defined tag when the tag is present on the resource . Add a defined tag when it does not already exist on the resource or update the value for a defined tag when the tag is present on the resource . Remove a defined tag from a resource . The tag is removed from the resource regardless of the tag value . The edits can include a combination of operations and tag sets . However multiple operations cannot apply to one key definition in the same request .
def bulk_edit_tags(opts = {})
      logger.debug 'Calling operation IdentityClient#bulk_edit_tags.' if logger
      path = '/tags/actions/bulkEdit'
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
      header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
      post_body = @api_client.object_to_http_body(opts[:bulk_edit_tags_details])
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#bulk_edit_tags') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def bulk_edit_tags ( opts = { } ) logger . debug 'Calling operation IdentityClient#bulk_edit_tags.' if logger path = '/tags/actions/bulkEdit' operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] header_params [ :' opc-retry-token ' ] = opts [ :opc_retry_token ] if opts [ :opc_retry_token ] header_params [ :' opc-retry-token ' ] ||= OCI :: Retry . generate_opc_retry_token post_body = @api_client . object_to_http_body ( opts [ :bulk_edit_tags_details ] ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#bulk_edit_tags' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Edits the specified list of tag key definitions for the selected resources.
Edits the specified list of tag key definitions for the selected resources .
# 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 nil
A Response object with data of type nil
Response
opts
:bulk_edit_tags_details The request object for bulk editing tags on resources in the compartment.
: bulk_edit_tags_details The request object for bulk editing tags on resources in the compartment .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use bulk_edit_tags API.
Click [ here ] to see an example of how to use bulk_edit_tags API .