Skip to content

Commit f5a7a49

Browse files
chore: use gapic-generator-python 0.51.2 (#46)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: googleapis/googleapis-gen@63a1db7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent e9456a7 commit f5a7a49

File tree

9 files changed

+21
-31
lines changed

9 files changed

+21
-31
lines changed

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/client.py

Lines changed: 3 additions & 3 deletions
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
@@ -353,7 +353,7 @@ def __init__(
353353

354354
def list_connections(
355355
self,
356-
request: connection.ListConnectionsRequest = None,
356+
request: Union[connection.ListConnectionsRequest, dict] = None,
357357
*,
358358
parent: str = None,
359359
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -364,7 +364,7 @@ def list_connections(
364364
given Apigee Connect endpoint.
365365
366366
Args:
367-
request (google.cloud.apigeeconnect_v1.types.ListConnectionsRequest):
367+
request (Union[google.cloud.apigeeconnect_v1.types.ListConnectionsRequest, dict]):
368368
The request object. The request for
369369
[ListConnections][Management.ListConnections].
370370
parent (str):

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_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)

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/transports/grpc.py

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

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/transports/grpc_asyncio.py

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

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/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

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/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)

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/transports/grpc.py

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

packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/transports/grpc_asyncio.py

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

packages/google-cloud-apigee-connect/scripts/fixup_apigeeconnect_v1_keywords.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def partition(
3939
class apigeeconnectCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'egress': ('id', 'http_response', 'status', 'project', 'trace_id', 'endpoint', 'name', ),
43-
'list_connections': ('parent', 'page_size', 'page_token', ),
42+
'egress': ('id', 'http_response', 'status', 'project', 'trace_id', 'endpoint', 'name', ),
43+
'list_connections': ('parent', 'page_size', 'page_token', ),
4444
}
4545

4646
def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
@@ -59,7 +59,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
5959
return updated
6060

6161
kwargs, ctrl_kwargs = partition(
62-
lambda a: not a.keyword.value in self.CTRL_PARAMS,
62+
lambda a: a.keyword.value not in self.CTRL_PARAMS,
6363
kwargs
6464
)
6565

0 commit comments

Comments
 (0)