Skip to content

Commit

Permalink
docs: restore undocumented classes after async split.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 15, 2020
1 parent dffc580 commit 9fdad0c
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/batch.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Batches
~~~~~~~

.. automodule:: google.cloud.firestore_v1.base_batch
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.batch
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_batch
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/client.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Client
~~~~~~

.. automodule:: google.cloud.firestore_v1.base_client
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.client
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_client
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/collection.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Collections
~~~~~~~~~~~

.. automodule:: google.cloud.firestore_v1.base_collection
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.collection
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_collection
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/document.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Documents
~~~~~~~~~

.. automodule:: google.cloud.firestore_v1.base_document
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.document
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_document
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/query.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Queries
~~~~~~~

.. automodule:: google.cloud.firestore_v1.base_query
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.query
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_query
:members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/transaction.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
Transactions
~~~~~~~~~~~~

.. automodule:: google.cloud.firestore_v1.base_transaction
:inherited-members:
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.transaction
:inherited-members:
:members:
:show-inheritance:

.. automodule:: google.cloud.firestore_v1.async_transaction
:inherited-members:
:members:
:show-inheritance:
3 changes: 3 additions & 0 deletions google/cloud/firestore_v1/base_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,15 @@ def limit(self, count: int) -> BaseQuery:

def limit_to_last(self, count: int):
"""Create a limited to last query with this collection as parent.
.. note::
`limit` and `limit_to_last` are mutually exclusive.
Setting `limit_to_last` will drop previously set `limit`.
See
:meth:`~google.cloud.firestore_v1.query.Query.limit_to_last`
for more information on this method.
Args:
count (int): Maximum number of documents to return that
match the query.
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/firestore_v1/base_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,11 @@ def limit(self, count: int) -> "BaseQuery":
"""Limit a query to return at most `count` matching results.
If the current query already has a `limit` set, this will override it.
.. note::
`limit` and `limit_to_last` are mutually exclusive.
Setting `limit` will drop previously set `limit_to_last`.
Args:
count (int): Maximum number of documents to return that match
the query.
Expand All @@ -398,9 +400,11 @@ def limit_to_last(self, count: int) -> "BaseQuery":
"""Limit a query to return the last `count` matching results.
If the current query already has a `limit_to_last`
set, this will override it.
.. note::
`limit` and `limit_to_last` are mutually exclusive.
Setting `limit_to_last` will drop previously set `limit`.
Args:
count (int): Maximum number of documents to return that match
the query.
Expand Down

0 comments on commit 9fdad0c

Please sign in to comment.