Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit b6d9e03

Browse files
chore: use gapic-generator-python 0.51.2 (#110)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 637f11d commit b6d9e03

5 files changed

Lines changed: 10 additions & 20 deletions

File tree

google/cloud/mediatranslation_v1beta1/services/speech_translation_service/client.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import (
21-
Callable,
22-
Dict,
23-
Optional,
24-
Iterable,
25-
Iterator,
26-
Sequence,
27-
Tuple,
28-
Type,
29-
Union,
30-
)
20+
from typing import Dict, Optional, Iterable, Iterator, Sequence, Tuple, Type, Union
3121
import pkg_resources
3222

3323
from google.api_core import client_options as client_options_lib # type: ignore

google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
**scopes_kwargs, quota_project_id=quota_project_id
118118
)
119119

120-
# If the credentials is service account credentials, then always try to use self signed JWT.
120+
# If the credentials are service account credentials, then always try to use self signed JWT.
121121
if (
122122
always_use_jwt_access
123123
and isinstance(credentials, service_account.Credentials)

google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def __init__(
8080
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8181
If provided, it overrides the ``host`` argument and tries to create
8282
a mutual TLS channel with client SSL credentials from
83-
``client_cert_source`` or applicatin default SSL credentials.
83+
``client_cert_source`` or application default SSL credentials.
8484
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8585
Deprecated. A callback to provide client SSL certificate bytes and
8686
private key bytes, both in PEM format. It is ignored if
8787
``api_mtls_endpoint`` is None.
8888
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
89-
for grpc channel. It is ignored if ``channel`` is provided.
89+
for the grpc channel. It is ignored if ``channel`` is provided.
9090
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9191
A callback to provide client certificate bytes and private key bytes,
92-
both in PEM format. It is used to configure mutual TLS channel. It is
92+
both in PEM format. It is used to configure a mutual TLS channel. It is
9393
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9494
quota_project_id (Optional[str]): An optional project to use for billing
9595
and quota.

google/cloud/mediatranslation_v1beta1/services/speech_translation_service/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ def __init__(
127127
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
128128
If provided, it overrides the ``host`` argument and tries to create
129129
a mutual TLS channel with client SSL credentials from
130-
``client_cert_source`` or applicatin default SSL credentials.
130+
``client_cert_source`` or application default SSL credentials.
131131
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
132132
Deprecated. A callback to provide client SSL certificate bytes and
133133
private key bytes, both in PEM format. It is ignored if
134134
``api_mtls_endpoint`` is None.
135135
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
136-
for grpc channel. It is ignored if ``channel`` is provided.
136+
for the grpc channel. It is ignored if ``channel`` is provided.
137137
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
138138
A callback to provide client certificate bytes and private key bytes,
139-
both in PEM format. It is used to configure mutual TLS channel. It is
139+
both in PEM format. It is used to configure a mutual TLS channel. It is
140140
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
141141
quota_project_id (Optional[str]): An optional project to use for billing
142142
and quota.

scripts/fixup_mediatranslation_v1beta1_keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def partition(
3939
class mediatranslationCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'streaming_translate_speech': ('streaming_config', 'audio_content', ),
42+
'streaming_translate_speech': ('streaming_config', 'audio_content', ),
4343
}
4444

4545
def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
@@ -58,7 +58,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
5858
return updated
5959

6060
kwargs, ctrl_kwargs = partition(
61-
lambda a: not a.keyword.value in self.CTRL_PARAMS,
61+
lambda a: a.keyword.value not in self.CTRL_PARAMS,
6262
kwargs
6363
)
6464

0 commit comments

Comments
 (0)