Skip to content

Commit 83f66db

Browse files
chore: use gapic-generator-python 0.51.2 (#39)
- [ ] 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 c40ac24 commit 83f66db

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/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
@@ -341,7 +341,7 @@ def __init__(
341341

342342
def run_pipeline(
343343
self,
344-
request: workflows.RunPipelineRequest = None,
344+
request: Union[workflows.RunPipelineRequest, dict] = None,
345345
*,
346346
retry: retries.Retry = gapic_v1.method.DEFAULT,
347347
timeout: float = None,
@@ -367,7 +367,7 @@ def run_pipeline(
367367
- ``lifesciences.workflows.run``
368368
369369
Args:
370-
request (google.cloud.lifesciences_v2beta.types.RunPipelineRequest):
370+
request (Union[google.cloud.lifesciences_v2beta.types.RunPipelineRequest, dict]):
371371
The request object. The arguments to the `RunPipeline`
372372
method. The requesting user must have the
373373
`iam.serviceAccounts.actAs` permission for the Cloud

packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/base.py

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

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

packages/google-cloud-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/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-life-sciences/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/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-life-sciences/scripts/fixup_lifesciences_v2beta_keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def partition(
3939
class lifesciencesCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'run_pipeline': ('pipeline', 'parent', 'labels', 'pub_sub_topic', ),
42+
'run_pipeline': ('pipeline', 'parent', 'labels', 'pub_sub_topic', ),
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)