lib/oci/identity/identity_client.rb
# Lists the tagging work requests in compartment.
#
# @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
#
# @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] :page The value of the `opc-next-page` response header from the previous \"List\" call.
#
# @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
#    (default to 20)
# @option opts [String] :resource_identifier The identifier of the resource the work request affects.
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::TaggingWorkRequestSummary TaggingWorkRequestSummary}>
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/identity/list_tagging_work_requests.rb.html) to see an example of how to use list_tagging_work_requests API.
Lists the tagging work requests in compartment.
Lists the tagging work requests in compartment .
def list_tagging_work_requests(compartment_id, opts = {})
      logger.debug 'Calling operation IdentityClient#list_tagging_work_requests.' if logger
      raise "Missing the required parameter 'compartment_id' when calling list_tagging_work_requests." if compartment_id.nil?
      path = '/taggingWorkRequests/'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:page] = opts[:page] if opts[:page]
      query_params[:limit] = opts[:limit] if opts[:limit]
      query_params[:resourceIdentifier] = opts[:resource_identifier] if opts[:resource_identifier]
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#list_tagging_work_requests') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::Identity::Models::TaggingWorkRequestSummary>'
        )
      end
    end
def list_tagging_work_requests ( compartment_id , opts = { } ) logger . debug 'Calling operation IdentityClient#list_tagging_work_requests.' if logger raise "Missing the required parameter 'compartment_id' when calling list_tagging_work_requests." if compartment_id . nil? path = '/taggingWorkRequests/' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id query_params [ :page ] = opts [ :page ] if opts [ :page ] query_params [ :limit ] = opts [ :limit ] if opts [ :limit ] query_params [ :resourceIdentifier ] = opts [ :resource_identifier ] if opts [ :resource_identifier ] header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#list_tagging_work_requests' ) do @api_client . call_api ( :GET , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'Array<OCI::Identity::Models::TaggingWorkRequestSummary>' ) end end
Lists the tagging work requests in compartment.
Lists the tagging work requests in compartment .
# 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 Array<{OCI::Identity::Models::TaggingWorkRequestSummary TaggingWorkRequestSummary}>
A Response object with data of type Array< { OCI :: Identity :: Models :: TaggingWorkRequestSummary TaggingWorkRequestSummary } >
Response
compartment_id
<not_specific>
opts
:resource_identifier The identifier of the resource the work request affects.
: resource_identifier The identifier of the resource the work request affects .
<not_specific>
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use list_tagging_work_requests API.
Click [ here ] to see an example of how to use list_tagging_work_requests API .