Skip to content

Commit 7249a15

Browse files
author
Luke Sneeringer
committed
Deprecate the old manual layer.
1 parent 29ae515 commit 7249a15

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vision/google/cloud/vision/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Client for interacting with the Google Cloud Vision API."""
1616

1717
import os
18+
import warnings
1819

1920
from google.cloud.client import ClientWithProject
2021
from google.cloud.environment_vars import DISABLE_GRPC
@@ -67,6 +68,14 @@ class Client(ClientWithProject):
6768

6869
def __init__(self, project=None, credentials=None, _http=None,
6970
_use_grpc=None):
71+
warnings.warn(
72+
'This client class and objects that derive from it have been '
73+
'deprecated. Use `google.cloud.vision.ImageAnnotatorClient` '
74+
'(provided by this package) instead. This client will be removed '
75+
'in a future release.',
76+
DeprecationWarning,
77+
)
78+
7079
super(Client, self).__init__(
7180
project=project, credentials=credentials, _http=_http)
7281
if _use_grpc is None:

0 commit comments

Comments
 (0)