generated/google-apis-keep_v1/lib/google/apis/keep_v1/service.rb
# Lists notes. Every list call returns a page of results with `page_size` as the
# upper bound of returned items. A `page_size` of zero allows the server to
# choose the upper bound. The ListNotesResponse contains at most `page_size`
# entries. If there are more things left to list, it provides a `next_page_token`
# value. (Page tokens are opaque values.) To get the next page of results, copy
# the result's `next_page_token` into the next request's `page_token`. Repeat
# until the `next_page_token` returned with a page of results is empty.
# ListNotes return consistent results in the face of concurrent changes, or
# signals that it cannot with an ABORTED error.
# @param [String] filter
#   Filter for list results. If no filter is supplied, the `trashed` filter is
#   applied by default. Valid fields to filter by are: `create_time`, `update_time`
#   , `trash_time`, and `trashed`. Filter syntax follows the [Google AIP filtering
#   spec](https://aip.dev/160).
# @param [Fixnum] page_size
#   The maximum number of results to return.
# @param [String] page_token
#   The previous page's `next_page_token` field.
# @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::KeepV1::ListNotesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::KeepV1::ListNotesResponse]
#
# @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 notes. Every list call returns a page of results with `page_size` as the
upper bound of returned items. A `page_size` of zero allows the server to
choose the upper bound. The ListNotesResponse contains at most `page_size`
entries. If there are more things left to list, it provides a `next_page_token`
value. (Page tokens are opaque values.) To get the next page of results, copy
the result's `next_page_token` into the next request's `page_token`. Repeat
until the `next_page_token` returned with a page of results is empty.
ListNotes return consistent results in the face of concurrent changes, or
signals that it cannot with an ABORTED error.
Lists notes . Every list call returns a page of results with ` page_size ` as the upper bound of returned items . A ` page_size ` of zero allows the server to choose the upper bound . The ListNotesResponse contains at most ` page_size ` entries . If there are more things left to list it provides a ` next_page_token ` value . ( Page tokens are opaque values . ) To get the next page of results copy the result ' s ` next_page_token ` into the next request ' s ` page_token ` . Repeat until the ` next_page_token ` returned with a page of results is empty . ListNotes return consistent results in the face of concurrent changes or signals that it cannot with an ABORTED error .
def list_notes(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v1/notes', options)
          command.response_representation = Google::Apis::KeepV1::ListNotesResponse::Representation
          command.response_class = Google::Apis::KeepV1::ListNotesResponse
          command.query['filter'] = filter unless filter.nil?
          command.query['pageSize'] = page_size unless page_size.nil?
          command.query['pageToken'] = page_token unless page_token.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_notes ( filter : nil , page_size : nil , page_token : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v1/notes' , options ) command . response_representation = Google :: Apis :: KeepV1 :: ListNotesResponse :: Representation command . response_class = Google :: Apis :: KeepV1 :: ListNotesResponse command . query [ 'filter' ] = filter unless filter . nil? command . query [ 'pageSize' ] = page_size unless page_size . nil? command . query [ 'pageToken' ] = page_token unless page_token . 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 notes.
Lists notes .
None
Google::Apis::KeepV1::ListNotesResponse
[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
filter
page_size
page_token
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