Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit b9e2ab5

Browse files
mf2199crwilcox
andauthored
feat(firestore): add v1beta1 deprecation annotation (#34)
* Added v1beta1 deprecation annotation * firestore: add v1beta1 deprecation annotation Co-authored-by: Christopher Wilcox <crwilcox@google.com>
1 parent b1c5987 commit b9e2ab5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

google/cloud/firestore_v1beta1/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Python idiomatic client for Google Cloud Firestore."""
1616

1717
from pkg_resources import get_distribution
18+
import warnings
1819

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

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

4243

44+
_V1BETA1_DEPRECATED_MESSAGE = (
45+
"The 'v1beta1' API endpoint is deprecated. "
46+
"The client/library which supports it will be removed in a future release."
47+
)
48+
warnings.warn(_V1BETA1_DEPRECATED_MESSAGE, DeprecationWarning)
49+
50+
4351
__all__ = [
4452
"__version__",
4553
"ArrayRemove",

0 commit comments

Comments
 (0)