Skip to content

Commit

Permalink
Deprecate the old manual layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sneeringer committed May 9, 2017
1 parent 29ae515 commit 7249a15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vision/google/cloud/vision/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""Client for interacting with the Google Cloud Vision API."""

import os
import warnings

from google.cloud.client import ClientWithProject
from google.cloud.environment_vars import DISABLE_GRPC
Expand Down Expand Up @@ -67,6 +68,14 @@ class Client(ClientWithProject):

def __init__(self, project=None, credentials=None, _http=None,
_use_grpc=None):
warnings.warn(
'This client class and objects that derive from it have been '
'deprecated. Use `google.cloud.vision.ImageAnnotatorClient` '
'(provided by this package) instead. This client will be removed '
'in a future release.',
DeprecationWarning,
)

super(Client, self).__init__(
project=project, credentials=credentials, _http=_http)
if _use_grpc is None:
Expand Down

0 comments on commit 7249a15

Please sign in to comment.