generated/google-apis-tasks_v1/lib/google/apis/tasks_v1/service.rb
# Returns all tasks in the specified task list.
# @param [String] tasklist
#   Task list identifier.
# @param [String] completed_max
#   Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter
#   by. Optional. The default is not to filter by completion date.
# @param [String] completed_min
#   Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter
#   by. Optional. The default is not to filter by completion date.
# @param [String] due_max
#   Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by.
#   Optional. The default is not to filter by due date.
# @param [String] due_min
#   Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by.
#   Optional. The default is not to filter by due date.
# @param [Fixnum] max_results
#   Maximum number of task lists returned on one page. Optional. The default is 20
#   (max allowed: 100).
# @param [String] page_token
#   Token specifying the result page to return. Optional.
# @param [Boolean] show_completed
#   Flag indicating whether completed tasks are returned in the result. Optional.
#   The default is True. Note that showHidden must also be True to show tasks
#   completed in first party clients, such as the web UI and Google's mobile apps.
# @param [Boolean] show_deleted
#   Flag indicating whether deleted tasks are returned in the result. Optional.
#   The default is False.
# @param [Boolean] show_hidden
#   Flag indicating whether hidden tasks are returned in the result. Optional. The
#   default is False.
# @param [String] updated_min
#   Lower bound for a task's last modification time (as a RFC 3339 timestamp) to
#   filter by. Optional. The default is not to filter by last modification time.
# @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::Tasks] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::TasksV1::Tasks]
#
# @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
Returns all tasks in the specified task list.
Returns all tasks in the specified task list .
def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'tasks/v1/lists/{tasklist}/tasks', options)
          command.response_representation = Google::Apis::TasksV1::Tasks::Representation
          command.response_class = Google::Apis::TasksV1::Tasks
          command.params['tasklist'] = tasklist unless tasklist.nil?
          command.query['completedMax'] = completed_max unless completed_max.nil?
          command.query['completedMin'] = completed_min unless completed_min.nil?
          command.query['dueMax'] = due_max unless due_max.nil?
          command.query['dueMin'] = due_min unless due_min.nil?
          command.query['maxResults'] = max_results unless max_results.nil?
          command.query['pageToken'] = page_token unless page_token.nil?
          command.query['showCompleted'] = show_completed unless show_completed.nil?
          command.query['showDeleted'] = show_deleted unless show_deleted.nil?
          command.query['showHidden'] = show_hidden unless show_hidden.nil?
          command.query['updatedMin'] = updated_min unless updated_min.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_tasks ( tasklist , completed_max : nil , completed_min : nil , due_max : nil , due_min : nil , max_results : nil , page_token : nil , show_completed : nil , show_deleted : nil , show_hidden : nil , updated_min : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'tasks/v1/lists/{tasklist}/tasks' , options ) command . response_representation = Google :: Apis :: TasksV1 :: Tasks :: Representation command . response_class = Google :: Apis :: TasksV1 :: Tasks command . params [ 'tasklist' ] = tasklist unless tasklist . nil? command . query [ 'completedMax' ] = completed_max unless completed_max . nil? command . query [ 'completedMin' ] = completed_min unless completed_min . nil? command . query [ 'dueMax' ] = due_max unless due_max . nil? command . query [ 'dueMin' ] = due_min unless due_min . nil? command . query [ 'maxResults' ] = max_results unless max_results . nil? command . query [ 'pageToken' ] = page_token unless page_token . nil? command . query [ 'showCompleted' ] = show_completed unless show_completed . nil? command . query [ 'showDeleted' ] = show_deleted unless show_deleted . nil? command . query [ 'showHidden' ] = show_hidden unless show_hidden . nil? command . query [ 'updatedMin' ] = updated_min unless updated_min . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Returns all tasks in the specified task list.
Returns all tasks in the specified task list .
None
Google::Apis::TasksV1::Tasks
[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
completed_max
completed_min
due_max
due_min
max_results
page_token
show_completed
show_deleted
show_hidden
updated_min
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