generated/google-apis-cloudtasks_v2beta2/lib/google/apis/cloudtasks_v2beta2/service.rb
def run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v2beta2/{+name}:run', options)
          command.request_representation = Google::Apis::CloudtasksV2beta2::RunTaskRequest::Representation
          command.request_object = run_task_request_object
          command.response_representation = Google::Apis::CloudtasksV2beta2::Task::Representation
          command.response_class = Google::Apis::CloudtasksV2beta2::Task
          command.params['name'] = name unless name.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
# Forces a task to run now. When this method is called, Cloud Tasks will
# dispatch the task, even if the task is already running, the queue has reached
# its RateLimits or is PAUSED. This command is meant to be used for manual
# debugging. For example, RunTask can be used to retry a failed task after a fix
# has been made or to manually force a task to be dispatched now. The dispatched
# task is returned. That is, the task that is returned contains the status after
# the task is dispatched but before the task is received by its target. If Cloud
# Tasks receives a successful response from the task's target, then the task
# will be deleted; otherwise the task's schedule_time will be reset to the time
# that RunTask was called plus the retry delay specified in the queue's
# RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has
# already succeeded or permanently failed. RunTask cannot be called on a pull
# task.
# @param [String] name
#   Required. The task name. For example: `projects/PROJECT_ID/locations/
#   LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
# @param [Google::Apis::CloudtasksV2beta2::RunTaskRequest] run_task_request_object
# @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::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudtasksV2beta2::Task]
#
# @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
Forces a task to run now. When this method is called, Cloud Tasks will
dispatch the task, even if the task is already running, the queue has reached
its RateLimits or is PAUSED. This command is meant to be used for manual
debugging. For example, RunTask can be used to retry a failed task after a fix
has been made or to manually force a task to be dispatched now. The dispatched
task is returned. That is, the task that is returned contains the status after
the task is dispatched but before the task is received by its target. If Cloud
Tasks receives a successful response from the task's target, then the task
will be deleted; otherwise the task's schedule_time will be reset to the time
that RunTask was called plus the retry delay specified in the queue's
RetryConfig. RunTask returns NOT_FOUND when it is called on a task that has
already succeeded or permanently failed. RunTask cannot be called on a pull
task.
Forces a task to run now . When this method is called Cloud Tasks will dispatch the task even if the task is already running the queue has reached its RateLimits or is PAUSED . This command is meant to be used for manual debugging . For example RunTask can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now . The dispatched task is returned . That is the task that is returned contains the status after the task is dispatched but before the task is received by its target . If Cloud Tasks receives a successful response from the task ' s target then the task will be deleted ; otherwise the task ' s schedule_time will be reset to the time that RunTask was called plus the retry delay specified in the queue ' s RetryConfig . RunTask returns NOT_FOUND when it is called on a task that has already succeeded or permanently failed . RunTask cannot be called on a pull task .
def run_task(name, run_task_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'v2beta2/{+name}:run', options)
          command.request_representation = Google::Apis::CloudtasksV2beta2::RunTaskRequest::Representation
          command.request_object = run_task_request_object
          command.response_representation = Google::Apis::CloudtasksV2beta2::Task::Representation
          command.response_class = Google::Apis::CloudtasksV2beta2::Task
          command.params['name'] = name unless name.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 run_task ( name , run_task_request_object = nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'v2beta2/{+name}:run' , options ) command . request_representation = Google :: Apis :: CloudtasksV2beta2 :: RunTaskRequest :: Representation command . request_object = run_task_request_object command . response_representation = Google :: Apis :: CloudtasksV2beta2 :: Task :: Representation command . response_class = Google :: Apis :: CloudtasksV2beta2 :: Task command . params [ 'name' ] = name unless name . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Forces a task to run now.
Forces a task to run now .
None
Google::Apis::CloudtasksV2beta2::Task
[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
name
run_task_request_object
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