Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#158)
Browse files Browse the repository at this point in the history
fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

feat: support self-signed JWT flow for service accounts

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py

fix(deps): add packaging requirement
  • Loading branch information
gcf-owl-bot[bot] committed May 20, 2021
1 parent 0e8059e commit 959a35c
Show file tree
Hide file tree
Showing 40 changed files with 1,682 additions and 1,276 deletions.
1 change: 0 additions & 1 deletion docs/translate_v3/translation_service.rst
Expand Up @@ -5,7 +5,6 @@ TranslationService
:members:
:inherited-members:


.. automodule:: google.cloud.translate_v3.services.translation_service.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/translate_v3beta1/translation_service.rst
Expand Up @@ -5,7 +5,6 @@ TranslationService
:members:
:inherited-members:


.. automodule:: google.cloud.translate_v3beta1.services.translation_service.pagers
:members:
:inherited-members:
16 changes: 8 additions & 8 deletions google/cloud/translate/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.translate_v3.services.translation_service.async_client import (
TranslationServiceAsyncClient,
)
from google.cloud.translate_v3.services.translation_service.client import (
TranslationServiceClient,
)
from google.cloud.translate_v3.services.translation_service.async_client import (
TranslationServiceAsyncClient,
)

from google.cloud.translate_v3.types.translation_service import BatchTranslateMetadata
from google.cloud.translate_v3.types.translation_service import BatchTranslateResponse
from google.cloud.translate_v3.types.translation_service import (
Expand All @@ -31,9 +31,9 @@
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryMetadata
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryRequest
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryResponse
from google.cloud.translate_v3.types.translation_service import DetectedLanguage
from google.cloud.translate_v3.types.translation_service import DetectLanguageRequest
from google.cloud.translate_v3.types.translation_service import DetectLanguageResponse
from google.cloud.translate_v3.types.translation_service import DetectedLanguage
from google.cloud.translate_v3.types.translation_service import GcsDestination
from google.cloud.translate_v3.types.translation_service import GcsSource
from google.cloud.translate_v3.types.translation_service import GetGlossaryRequest
Expand All @@ -56,6 +56,8 @@
from google.cloud.translate_v3.types.translation_service import Translation

__all__ = (
"TranslationServiceClient",
"TranslationServiceAsyncClient",
"BatchTranslateMetadata",
"BatchTranslateResponse",
"BatchTranslateTextRequest",
Expand All @@ -64,9 +66,9 @@
"DeleteGlossaryMetadata",
"DeleteGlossaryRequest",
"DeleteGlossaryResponse",
"DetectedLanguage",
"DetectLanguageRequest",
"DetectLanguageResponse",
"DetectedLanguage",
"GcsDestination",
"GcsSource",
"GetGlossaryRequest",
Expand All @@ -83,6 +85,4 @@
"TranslateTextRequest",
"TranslateTextResponse",
"Translation",
"TranslationServiceAsyncClient",
"TranslationServiceClient",
)
7 changes: 4 additions & 3 deletions google/cloud/translate_v3/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.translation_service import TranslationServiceClient
from .services.translation_service import TranslationServiceAsyncClient

from .types.translation_service import BatchTranslateMetadata
from .types.translation_service import BatchTranslateResponse
from .types.translation_service import BatchTranslateTextRequest
Expand All @@ -24,9 +25,9 @@
from .types.translation_service import DeleteGlossaryMetadata
from .types.translation_service import DeleteGlossaryRequest
from .types.translation_service import DeleteGlossaryResponse
from .types.translation_service import DetectedLanguage
from .types.translation_service import DetectLanguageRequest
from .types.translation_service import DetectLanguageResponse
from .types.translation_service import DetectedLanguage
from .types.translation_service import GcsDestination
from .types.translation_service import GcsSource
from .types.translation_service import GetGlossaryRequest
Expand All @@ -44,8 +45,8 @@
from .types.translation_service import TranslateTextResponse
from .types.translation_service import Translation


__all__ = (
"TranslationServiceAsyncClient",
"BatchTranslateMetadata",
"BatchTranslateResponse",
"BatchTranslateTextRequest",
Expand Down
103 changes: 103 additions & 0 deletions google/cloud/translate_v3/gapic_metadata.json
@@ -0,0 +1,103 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.translate_v3",
"protoPackage": "google.cloud.translation.v3",
"schema": "1.0",
"services": {
"TranslationService": {
"clients": {
"grpc": {
"libraryClient": "TranslationServiceClient",
"rpcs": {
"BatchTranslateText": {
"methods": [
"batch_translate_text"
]
},
"CreateGlossary": {
"methods": [
"create_glossary"
]
},
"DeleteGlossary": {
"methods": [
"delete_glossary"
]
},
"DetectLanguage": {
"methods": [
"detect_language"
]
},
"GetGlossary": {
"methods": [
"get_glossary"
]
},
"GetSupportedLanguages": {
"methods": [
"get_supported_languages"
]
},
"ListGlossaries": {
"methods": [
"list_glossaries"
]
},
"TranslateText": {
"methods": [
"translate_text"
]
}
}
},
"grpc-async": {
"libraryClient": "TranslationServiceAsyncClient",
"rpcs": {
"BatchTranslateText": {
"methods": [
"batch_translate_text"
]
},
"CreateGlossary": {
"methods": [
"create_glossary"
]
},
"DeleteGlossary": {
"methods": [
"delete_glossary"
]
},
"DetectLanguage": {
"methods": [
"detect_language"
]
},
"GetGlossary": {
"methods": [
"get_glossary"
]
},
"GetSupportedLanguages": {
"methods": [
"get_supported_languages"
]
},
"ListGlossaries": {
"methods": [
"list_glossaries"
]
},
"TranslateText": {
"methods": [
"translate_text"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/translate_v3/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import TranslationServiceClient
from .async_client import TranslationServiceAsyncClient

Expand Down

0 comments on commit 959a35c

Please sign in to comment.