generated/google-apis-cloudtasks_v2beta2/lib/google/apis/cloudtasks_v2beta2/service.rb
# Lists the tasks in a queue. By default, only the BASIC view is retrieved due
# to performance considerations; response_view controls the subset of
# information which is returned. The tasks may be returned in any order. The
# ordering may change at any time.
# @param [String] parent
#   Required. The queue name. For example: `projects/PROJECT_ID/locations/
#   LOCATION_ID/queues/QUEUE_ID`
# @param [Fixnum] page_size
#   Maximum page size. Fewer tasks than requested might be returned, even if more
#   tasks exist; use next_page_token in the response to determine if more tasks
#   exist. The maximum page size is 1000. If unspecified, the page size will be
#   the maximum.
# @param [String] page_token
#   A token identifying the page of results to return. To request the first page
#   results, page_token must be empty. To request the next page of results,
#   page_token must be the value of next_page_token returned from the previous
#   call to ListTasks method. The page token is valid for only 2 hours.
# @param [String] response_view
#   The response_view specifies which subset of the Task will be returned. By
#   default response_view is BASIC; not all information is retrieved by default
#   because some data, such as payloads, might be desirable to return only when
#   needed because of its large size or because of the sensitivity of data that it
#   contains. Authorization for FULL requires `cloudtasks.tasks.fullView` [Google
#   IAM](https://cloud.google.com/iam/) permission on the Task resource.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::CloudtasksV2beta2::ListTasksResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2beta2::ListTasksResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Lists the tasks in a queue. By default, only the BASIC view is retrieved due
to performance considerations; response_view controls the subset of
information which is returned. The tasks may be returned in any order. The
ordering may change at any time.
Lists the tasks in a queue . By default only the BASIC view is retrieved due to performance considerations ; response_view controls the subset of information which is returned . The tasks may be returned in any order . The ordering may change at any time .
def list_project_location_queue_tasks(parent, page_size: nil, page_token: nil, response_view: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v2beta2/{+parent}/tasks', options)
          command.response_representation = Google::Apis::CloudtasksV2beta2::ListTasksResponse::Representation
          command.response_class = Google::Apis::CloudtasksV2beta2::ListTasksResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['responseView'] = response_view unless response_view.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def list_project_location_queue_tasks ( parent , page_size : nil , page_token : nil , response_view : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v2beta2/{+parent}/tasks' , options ) command . response_representation = Google :: Apis :: CloudtasksV2beta2 :: ListTasksResponse :: Representation command . response_class = Google :: Apis :: CloudtasksV2beta2 :: ListTasksResponse command . params [ 'parent' ] = parent unless parent . nil? command . query [ 'pageSize' ] = page_size unless page_size . nil? command . query [ 'pageToken' ] = page_token unless page_token . nil? command . query [ 'responseView' ] = response_view unless response_view . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Lists the tasks in a queue.
Lists the tasks in a queue .
None
Google::Apis::CloudtasksV2beta2::ListTasksResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
parent
page_size
page_token
response_view
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed