Skip to content

Commit

Permalink
Delineate 'None', show example of using page token.
Browse files Browse the repository at this point in the history
Addresses:
#1137 (comment)
  • Loading branch information
tseaver committed Sep 15, 2015
1 parent aea55fe commit 8ce29a8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/dns-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,16 @@ Each managed zone exposes a read-only set of resource records:
an opaque string if there are more resources than can be returned in a
single request. To enumerate them all, repeat calling
``zone.list_resources()``, passing the ``page_token``, until the token
is None.
is ``None``. E.g.

.. doctest::

>>> records, page_token = zone.list_resources() # API request
>>> while page_token is not None:
... next_batch, page_token = zone.list_resources(
... page_token=page_token) # API request
... records.extend(next_batch)


Change requests
---------------
Expand Down

0 comments on commit 8ce29a8

Please sign in to comment.