Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
chore: use gapic-generator-python 0.51.2 (#95)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] committed Sep 24, 2021
1 parent 361af4b commit 81b1273
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 48 deletions.
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down Expand Up @@ -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,
Expand All @@ -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):
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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.
Expand Down

0 comments on commit 81b1273

Please sign in to comment.