Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(firestore): add v1beta1 deprecation annotation #34

Merged
merged 7 commits into from Jun 25, 2020
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