generated/google-apis-tasks_v1/lib/google/apis/tasks_v1/service.rb
def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks/{task}/move', options)
          command.response_representation = Google::Apis::TasksV1::Task::Representation
          command.response_class = Google::Apis::TasksV1::Task
          command.params['tasklist'] = tasklist unless tasklist.nil?
          command.params['task'] = task unless task.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['previous'] = previous unless previous.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
# Moves the specified task to another position in the task list. This can
# include putting it as a child task under a new parent and/or move it to a
# different position among its sibling tasks.
# @param [String] tasklist
#   Task list identifier.
# @param [String] task
#   Task identifier.
# @param [String] parent
#   New parent task identifier. If the task is moved to the top level, this
#   parameter is omitted. Optional.
# @param [String] previous
#   New previous sibling task identifier. If the task is moved to the first
#   position among its siblings, this parameter is omitted. Optional.
# @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::TasksV1::Task] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TasksV1::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
Moves the specified task to another position in the task list. This can
include putting it as a child task under a new parent and/or move it to a
different position among its sibling tasks.
Moves the specified task to another position in the task list . This can include putting it as a child task under a new parent and / or move it to a different position among its sibling tasks .
def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks/{task}/move', options)
          command.response_representation = Google::Apis::TasksV1::Task::Representation
          command.response_class = Google::Apis::TasksV1::Task
          command.params['tasklist'] = tasklist unless tasklist.nil?
          command.params['task'] = task unless task.nil?
          command.query['parent'] = parent unless parent.nil?
          command.query['previous'] = previous unless previous.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 move_task ( tasklist , task , parent : nil , previous : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :post , 'tasks/v1/lists/{tasklist}/tasks/{task}/move' , options ) command . response_representation = Google :: Apis :: TasksV1 :: Task :: Representation command . response_class = Google :: Apis :: TasksV1 :: Task command . params [ 'tasklist' ] = tasklist unless tasklist . nil? command . params [ 'task' ] = task unless task . nil? command . query [ 'parent' ] = parent unless parent . nil? command . query [ 'previous' ] = previous unless previous . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Moves the specified task to another position in the task list.
Moves the specified task to another position in the task list .
None
Google::Apis::TasksV1::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
tasklist
task
parent
previous
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