diff --git a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py index c828a30..ecdb4fc 100644 --- a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py +++ b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py @@ -17,7 +17,7 @@ from distutils import util import os import re -from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union +from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources from google.api_core import client_options as client_options_lib # type: ignore @@ -341,7 +341,7 @@ def __init__( def run_pipeline( self, - request: workflows.RunPipelineRequest = None, + request: Union[workflows.RunPipelineRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -367,7 +367,7 @@ def run_pipeline( - ``lifesciences.workflows.run`` Args: - request (google.cloud.lifesciences_v2beta.types.RunPipelineRequest): + request (Union[google.cloud.lifesciences_v2beta.types.RunPipelineRequest, dict]): The request object. The arguments to the `RunPipeline` method. The requesting user must have the `iam.serviceAccounts.actAs` permission for the Cloud diff --git a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/base.py b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/base.py index 28f31ee..0289ff5 100644 --- a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/base.py +++ b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/base.py @@ -119,7 +119,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc.py b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc.py index 358d917..c89c1bf 100644 --- a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc.py +++ b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc.py @@ -83,16 +83,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc_asyncio.py b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc_asyncio.py index ccc5a78..35b5edc 100644 --- a/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc_asyncio.py +++ b/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/transports/grpc_asyncio.py @@ -130,16 +130,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/scripts/fixup_lifesciences_v2beta_keywords.py b/scripts/fixup_lifesciences_v2beta_keywords.py index 9d8c959..8dd19c4 100644 --- a/scripts/fixup_lifesciences_v2beta_keywords.py +++ b/scripts/fixup_lifesciences_v2beta_keywords.py @@ -39,7 +39,7 @@ def partition( class lifesciencesCallTransformer(cst.CSTTransformer): CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata') METHOD_TO_PARAMS: Dict[str, Tuple[str]] = { - 'run_pipeline': ('pipeline', 'parent', 'labels', 'pub_sub_topic', ), + 'run_pipeline': ('pipeline', 'parent', 'labels', 'pub_sub_topic', ), } 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: return updated kwargs, ctrl_kwargs = partition( - lambda a: not a.keyword.value in self.CTRL_PARAMS, + lambda a: a.keyword.value not in self.CTRL_PARAMS, kwargs )