Skip to content

Commit e0009be

Browse files
authored
chore: fix typos in templated files (#962)
1 parent 36aaee7 commit e0009be

File tree

30 files changed

+58
-58
lines changed

30 files changed

+58
-58
lines changed

packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/transports/grpc.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class {{ service.name }}GrpcTransport({{ service.name }}Transport):
7070
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
7171
If provided, it overrides the ``host`` argument and tries to create
7272
a mutual TLS channel with client SSL credentials from
73-
``client_cert_source`` or applicatin default SSL credentials.
73+
``client_cert_source`` or application default SSL credentials.
7474
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
7575
Deprecated. A callback to provide client SSL certificate bytes and
7676
private key bytes, both in PEM format. It is ignored if

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/client.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from collections import OrderedDict
66
from distutils import util
77
import os
88
import re
9-
from typing import Callable, Dict, Optional, {% if service.any_server_streaming %}Iterable, {% endif %}{% if service.any_client_streaming %}Iterator, {% endif %}Sequence, Tuple, Type, Union
9+
from typing import Dict, Optional, {% if service.any_server_streaming %}Iterable, {% endif %}{% if service.any_client_streaming %}Iterator, {% endif %}Sequence, Tuple, Type, Union
1010
import pkg_resources
1111
{% if service.any_deprecated %}
1212
import warnings

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class {{ service.name }}Transport(abc.ABC):
128128
elif credentials is None:
129129
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
130130

131-
# If the credentials is service account credentials, then always try to use self signed JWT.
131+
# If the credentials are service account credentials, then always try to use self signed JWT.
132132
if always_use_jwt_access and isinstance(credentials, service_account.Credentials) and hasattr(service_account.Credentials, "with_always_use_jwt_access"):
133133
credentials = credentials.with_always_use_jwt_access(True)
134134

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc.py.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ class {{ service.name }}GrpcTransport({{ service.name }}Transport):
7878
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
7979
If provided, it overrides the ``host`` argument and tries to create
8080
a mutual TLS channel with client SSL credentials from
81-
``client_cert_source`` or applicatin default SSL credentials.
81+
``client_cert_source`` or application default SSL credentials.
8282
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8383
Deprecated. A callback to provide client SSL certificate bytes and
8484
private key bytes, both in PEM format. It is ignored if
8585
``api_mtls_endpoint`` is None.
8686
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
87-
for grpc channel. It is ignored if ``channel`` is provided.
87+
for the grpc channel. It is ignored if ``channel`` is provided.
8888
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
8989
A callback to provide client certificate bytes and private key bytes,
90-
both in PEM format. It is used to configure mutual TLS channel. It is
90+
both in PEM format. It is used to configure a mutual TLS channel. It is
9191
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9292
quota_project_id (Optional[str]): An optional project to use for billing
9393
and quota.

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/grpc_asyncio.py.j2

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

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
190190
{# TODO(yon-mg): move all query param logic out of wrappers into here to handle
191191
nested fields correctly (can't just use set of top level fields
192192
#}
193-
# TODO(yon-mg): handle nested fields corerctly rather than using only top level fields
193+
# TODO(yon-mg): handle nested fields correctly rather than using only top level fields
194194
# not required for GCE
195195
query_params = {}
196196
{% for field in method.query_params | sort%}

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

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

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(
118118
elif credentials is None:
119119
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
120120

121-
# If the credentials is service account credentials, then always try to use self signed JWT.
121+
# If the credentials are service account credentials, then always try to use self signed JWT.
122122
if always_use_jwt_access and isinstance(credentials, service_account.Credentials) and hasattr(service_account.Credentials, "with_always_use_jwt_access"):
123123
credentials = credentials.with_always_use_jwt_access(True)
124124

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ def __init__(self, *,
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.

packages/gapic-generator/tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc_asyncio.py

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

0 commit comments

Comments
 (0)