|
1 | | -# Copyright 2017 Google LLC |
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# |
| 3 | +# Copyright 2019 Google LLC |
2 | 4 | # |
3 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 6 | # you may not use this file except in compliance with the License. |
5 | 7 | # You may obtain a copy of the License at |
6 | 8 | # |
7 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# https://www.apache.org/licenses/LICENSE-2.0 |
8 | 10 | # |
9 | 11 | # Unless required by applicable law or agreed to in writing, software |
10 | 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
11 | 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | 14 | # See the License for the specific language governing permissions and |
13 | 15 | # limitations under the License. |
14 | 16 |
|
15 | | -"""Google Cloud Translation API wrapper.""" |
16 | | - |
17 | 17 |
|
18 | | -from google.cloud.translate_v2 import __version__ |
19 | | -from google.cloud.translate_v2.client import Client |
| 18 | +from __future__ import absolute_import |
20 | 19 |
|
21 | | -# These constants are essentially deprecated; strings should be used instead. |
22 | | -# They are imported here for backwards compatibility. |
23 | | -from google.cloud.translate_v2.client import BASE |
24 | | -from google.cloud.translate_v2.client import NMT |
| 20 | +from google.cloud.translate_v3 import TranslationServiceClient |
| 21 | +from google.cloud.translate_v3 import types |
25 | 22 |
|
26 | 23 |
|
27 | | -__all__ = ("__version__", "BASE", "Client", "NMT") |
| 24 | +__all__ = ("types", "TranslationServiceClient") |
0 commit comments