From 0889d4bfbd9f29648e294cb156c5e6ac9f59a49b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:10:36 +0000 Subject: [PATCH] chore: use gapic-generator-python 0.51.2 (#95) - [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: https://github.com/googleapis/googleapis/commit/b224dfa52642a733ea64849d4e06d15c274bc08f Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9 --- .../services/transcoder_service/client.py | 34 +++++++++---------- .../transcoder_service/transports/base.py | 2 +- .../transcoder_service/transports/grpc.py | 6 ++-- .../transports/grpc_asyncio.py | 6 ++-- .../services/transcoder_service/client.py | 34 +++++++++---------- .../transcoder_service/transports/base.py | 2 +- .../transcoder_service/transports/grpc.py | 6 ++-- .../transports/grpc_asyncio.py | 6 ++-- 8 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/client.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/client.py index 022748937efb..f2c66a9f6cca 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/client.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/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 @@ -380,7 +380,7 @@ def __init__( def create_job( self, - request: services.CreateJobRequest = None, + request: Union[services.CreateJobRequest, dict] = None, *, parent: str = None, job: resources.Job = None, @@ -391,7 +391,7 @@ def create_job( r"""Creates a job in the specified region. Args: - request (google.cloud.video.transcoder_v1.types.CreateJobRequest): + request (Union[google.cloud.video.transcoder_v1.types.CreateJobRequest, dict]): The request object. Request message for `TranscoderService.CreateJob`. parent (str): @@ -459,7 +459,7 @@ def create_job( def list_jobs( self, - request: services.ListJobsRequest = None, + request: Union[services.ListJobsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -469,7 +469,7 @@ def list_jobs( r"""Lists jobs in the specified region. Args: - request (google.cloud.video.transcoder_v1.types.ListJobsRequest): + request (Union[google.cloud.video.transcoder_v1.types.ListJobsRequest, dict]): The request object. Request message for `TranscoderService.ListJobs`. The parent location from which to retrieve the collection of jobs. @@ -539,7 +539,7 @@ def list_jobs( def get_job( self, - request: services.GetJobRequest = None, + request: Union[services.GetJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -549,7 +549,7 @@ def get_job( r"""Returns the job data. Args: - request (google.cloud.video.transcoder_v1.types.GetJobRequest): + request (Union[google.cloud.video.transcoder_v1.types.GetJobRequest, dict]): The request object. Request message for `TranscoderService.GetJob`. name (str): @@ -608,7 +608,7 @@ def get_job( def delete_job( self, - request: services.DeleteJobRequest = None, + request: Union[services.DeleteJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -618,7 +618,7 @@ def delete_job( r"""Deletes a job. Args: - request (google.cloud.video.transcoder_v1.types.DeleteJobRequest): + request (Union[google.cloud.video.transcoder_v1.types.DeleteJobRequest, dict]): The request object. Request message for `TranscoderService.DeleteJob`. name (str): @@ -672,7 +672,7 @@ def delete_job( def create_job_template( self, - request: services.CreateJobTemplateRequest = None, + request: Union[services.CreateJobTemplateRequest, dict] = None, *, parent: str = None, job_template: resources.JobTemplate = None, @@ -684,7 +684,7 @@ def create_job_template( r"""Creates a job template in the specified region. Args: - request (google.cloud.video.transcoder_v1.types.CreateJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1.types.CreateJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.CreateJobTemplate`. parent (str): @@ -767,7 +767,7 @@ def create_job_template( def list_job_templates( self, - request: services.ListJobTemplatesRequest = None, + request: Union[services.ListJobTemplatesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -777,7 +777,7 @@ def list_job_templates( r"""Lists job templates in the specified region. Args: - request (google.cloud.video.transcoder_v1.types.ListJobTemplatesRequest): + request (Union[google.cloud.video.transcoder_v1.types.ListJobTemplatesRequest, dict]): The request object. Request message for `TranscoderService.ListJobTemplates`. parent (str): @@ -847,7 +847,7 @@ def list_job_templates( def get_job_template( self, - request: services.GetJobTemplateRequest = None, + request: Union[services.GetJobTemplateRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -857,7 +857,7 @@ def get_job_template( r"""Returns the job template data. Args: - request (google.cloud.video.transcoder_v1.types.GetJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1.types.GetJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.GetJobTemplate`. name (str): @@ -917,7 +917,7 @@ def get_job_template( def delete_job_template( self, - request: services.DeleteJobTemplateRequest = None, + request: Union[services.DeleteJobTemplateRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -927,7 +927,7 @@ def delete_job_template( r"""Deletes a job template. Args: - request (google.cloud.video.transcoder_v1.types.DeleteJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1.types.DeleteJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.DeleteJobTemplate`. name (str): diff --git a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/base.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/base.py index 4cc020cc958e..c7755d7fac8a 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/base.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/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/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py index eab5ac277571..4853aaceab8f 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py @@ -88,16 +88,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/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py index 972e4e4e1755..ae4830b6aec1 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py @@ -135,16 +135,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/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/client.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/client.py index 78e17fcaaa20..96e7c28e3b33 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/client.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/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 @@ -379,7 +379,7 @@ def __init__( def create_job( self, - request: services.CreateJobRequest = None, + request: Union[services.CreateJobRequest, dict] = None, *, parent: str = None, job: resources.Job = None, @@ -390,7 +390,7 @@ def create_job( r"""Creates a job in the specified region. Args: - request (google.cloud.video.transcoder_v1beta1.types.CreateJobRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.CreateJobRequest, dict]): The request object. Request message for `TranscoderService.CreateJob`. parent (str): @@ -458,7 +458,7 @@ def create_job( def list_jobs( self, - request: services.ListJobsRequest = None, + request: Union[services.ListJobsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -468,7 +468,7 @@ def list_jobs( r"""Lists jobs in the specified region. Args: - request (google.cloud.video.transcoder_v1beta1.types.ListJobsRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.ListJobsRequest, dict]): The request object. Request message for `TranscoderService.ListJobs`. The parent location from which to retrieve the collection of jobs. @@ -538,7 +538,7 @@ def list_jobs( def get_job( self, - request: services.GetJobRequest = None, + request: Union[services.GetJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -548,7 +548,7 @@ def get_job( r"""Returns the job data. Args: - request (google.cloud.video.transcoder_v1beta1.types.GetJobRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.GetJobRequest, dict]): The request object. Request message for `TranscoderService.GetJob`. name (str): @@ -607,7 +607,7 @@ def get_job( def delete_job( self, - request: services.DeleteJobRequest = None, + request: Union[services.DeleteJobRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -617,7 +617,7 @@ def delete_job( r"""Deletes a job. Args: - request (google.cloud.video.transcoder_v1beta1.types.DeleteJobRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.DeleteJobRequest, dict]): The request object. Request message for `TranscoderService.DeleteJob`. name (str): @@ -671,7 +671,7 @@ def delete_job( def create_job_template( self, - request: services.CreateJobTemplateRequest = None, + request: Union[services.CreateJobTemplateRequest, dict] = None, *, parent: str = None, job_template: resources.JobTemplate = None, @@ -683,7 +683,7 @@ def create_job_template( r"""Creates a job template in the specified region. Args: - request (google.cloud.video.transcoder_v1beta1.types.CreateJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.CreateJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.CreateJobTemplate`. parent (str): @@ -766,7 +766,7 @@ def create_job_template( def list_job_templates( self, - request: services.ListJobTemplatesRequest = None, + request: Union[services.ListJobTemplatesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -776,7 +776,7 @@ def list_job_templates( r"""Lists job templates in the specified region. Args: - request (google.cloud.video.transcoder_v1beta1.types.ListJobTemplatesRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.ListJobTemplatesRequest, dict]): The request object. Request message for `TranscoderService.ListJobTemplates`. parent (str): @@ -846,7 +846,7 @@ def list_job_templates( def get_job_template( self, - request: services.GetJobTemplateRequest = None, + request: Union[services.GetJobTemplateRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -856,7 +856,7 @@ def get_job_template( r"""Returns the job template data. Args: - request (google.cloud.video.transcoder_v1beta1.types.GetJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.GetJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.GetJobTemplate`. name (str): @@ -916,7 +916,7 @@ def get_job_template( def delete_job_template( self, - request: services.DeleteJobTemplateRequest = None, + request: Union[services.DeleteJobTemplateRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -926,7 +926,7 @@ def delete_job_template( r"""Deletes a job template. Args: - request (google.cloud.video.transcoder_v1beta1.types.DeleteJobTemplateRequest): + request (Union[google.cloud.video.transcoder_v1beta1.types.DeleteJobTemplateRequest, dict]): The request object. Request message for `TranscoderService.DeleteJobTemplate`. name (str): diff --git a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/base.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/base.py index 101865ec4f77..c938e19c68ea 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/base.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/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/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc.py index fe89feb23957..ef8e5c78f860 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc.py @@ -88,16 +88,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/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc_asyncio.py b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc_asyncio.py index 06a48af388a3..b66a617475d8 100644 --- a/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-video-transcoder/google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc_asyncio.py @@ -135,16 +135,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.