Skip to content

Commit

Permalink
feat(firestore): add v1beta1 deprecation annotation (#34)
Browse files Browse the repository at this point in the history
* Added v1beta1 deprecation annotation

* firestore: add v1beta1 deprecation annotation

Co-authored-by: Christopher Wilcox <crwilcox@google.com>
  • Loading branch information
mf2199 and crwilcox committed Jun 25, 2020
1 parent b1c5987 commit b9e2ab5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions google/cloud/firestore_v1beta1/__init__.py
Expand Up @@ -15,6 +15,7 @@
"""Python idiomatic client for Google Cloud Firestore."""

from pkg_resources import get_distribution
import warnings

__version__ = get_distribution("google-cloud-firestore").version

Expand All @@ -40,6 +41,13 @@
from google.cloud.firestore_v1beta1.watch import Watch


_V1BETA1_DEPRECATED_MESSAGE = (
"The 'v1beta1' API endpoint is deprecated. "
"The client/library which supports it will be removed in a future release."
)
warnings.warn(_V1BETA1_DEPRECATED_MESSAGE, DeprecationWarning)


__all__ = [
"__version__",
"ArrayRemove",
Expand Down

0 comments on commit b9e2ab5

Please sign in to comment.