Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit db5d966

Browse files
chore: use gapic-generator-python 0.51.2 (#34)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 584e58c commit db5d966

File tree

25 files changed

+103
-103
lines changed

25 files changed

+103
-103
lines changed

google/cloud/dataflow_v1beta3/services/flex_templates_service/client.py

+3-3
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
@@ -340,7 +340,7 @@ def __init__(
340340

341341
def launch_flex_template(
342342
self,
343-
request: templates.LaunchFlexTemplateRequest = None,
343+
request: Union[templates.LaunchFlexTemplateRequest, dict] = None,
344344
*,
345345
retry: retries.Retry = gapic_v1.method.DEFAULT,
346346
timeout: float = None,
@@ -349,7 +349,7 @@ def launch_flex_template(
349349
r"""Launch a job with a FlexTemplate.
350350
351351
Args:
352-
request (google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateRequest):
352+
request (Union[google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateRequest, dict]):
353353
The request object. A request to launch a Cloud Dataflow
354354
job from a FlexTemplate.
355355
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __init__(
122122
**scopes_kwargs, quota_project_id=quota_project_id
123123
)
124124

125-
# If the credentials is service account credentials, then always try to use self signed JWT.
125+
# If the credentials are service account credentials, then always try to use self signed JWT.
126126
if (
127127
always_use_jwt_access
128128
and isinstance(credentials, service_account.Credentials)

google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc.py

+3-3
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.

google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc_asyncio.py

+3-3
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.

google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/client.py

+15-15
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 create_job(
343343
self,
344-
request: jobs.CreateJobRequest = None,
344+
request: Union[jobs.CreateJobRequest, dict] = None,
345345
*,
346346
retry: retries.Retry = gapic_v1.method.DEFAULT,
347347
timeout: float = None,
@@ -356,7 +356,7 @@ def create_job(
356356
will always start in ``us-central1``.
357357
358358
Args:
359-
request (google.cloud.dataflow_v1beta3.types.CreateJobRequest):
359+
request (Union[google.cloud.dataflow_v1beta3.types.CreateJobRequest, dict]):
360360
The request object. Request to create a Cloud Dataflow
361361
job.
362362
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -391,7 +391,7 @@ def create_job(
391391

392392
def get_job(
393393
self,
394-
request: jobs.GetJobRequest = None,
394+
request: Union[jobs.GetJobRequest, dict] = None,
395395
*,
396396
retry: retries.Retry = gapic_v1.method.DEFAULT,
397397
timeout: float = None,
@@ -406,7 +406,7 @@ def get_job(
406406
get the state of jobs that are running in ``us-central1``.
407407
408408
Args:
409-
request (google.cloud.dataflow_v1beta3.types.GetJobRequest):
409+
request (Union[google.cloud.dataflow_v1beta3.types.GetJobRequest, dict]):
410410
The request object. Request to get the state of a Cloud
411411
Dataflow job.
412412
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -441,7 +441,7 @@ def get_job(
441441

442442
def update_job(
443443
self,
444-
request: jobs.UpdateJobRequest = None,
444+
request: Union[jobs.UpdateJobRequest, dict] = None,
445445
*,
446446
retry: retries.Retry = gapic_v1.method.DEFAULT,
447447
timeout: float = None,
@@ -457,7 +457,7 @@ def update_job(
457457
``us-central1``.
458458
459459
Args:
460-
request (google.cloud.dataflow_v1beta3.types.UpdateJobRequest):
460+
request (Union[google.cloud.dataflow_v1beta3.types.UpdateJobRequest, dict]):
461461
The request object. Request to update a Cloud Dataflow
462462
job.
463463
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -492,7 +492,7 @@ def update_job(
492492

493493
def list_jobs(
494494
self,
495-
request: jobs.ListJobsRequest = None,
495+
request: Union[jobs.ListJobsRequest, dict] = None,
496496
*,
497497
retry: retries.Retry = gapic_v1.method.DEFAULT,
498498
timeout: float = None,
@@ -509,7 +509,7 @@ def list_jobs(
509509
running in ``us-central1``.
510510
511511
Args:
512-
request (google.cloud.dataflow_v1beta3.types.ListJobsRequest):
512+
request (Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]):
513513
The request object. Request to list Cloud Dataflow jobs.
514514
retry (google.api_core.retry.Retry): Designation of what errors, if any,
515515
should be retried.
@@ -559,7 +559,7 @@ def list_jobs(
559559

560560
def aggregated_list_jobs(
561561
self,
562-
request: jobs.ListJobsRequest = None,
562+
request: Union[jobs.ListJobsRequest, dict] = None,
563563
*,
564564
retry: retries.Retry = gapic_v1.method.DEFAULT,
565565
timeout: float = None,
@@ -568,7 +568,7 @@ def aggregated_list_jobs(
568568
r"""List the jobs of a project across all regions.
569569
570570
Args:
571-
request (google.cloud.dataflow_v1beta3.types.ListJobsRequest):
571+
request (Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]):
572572
The request object. Request to list Cloud Dataflow jobs.
573573
retry (google.api_core.retry.Retry): Designation of what errors, if any,
574574
should be retried.
@@ -618,7 +618,7 @@ def aggregated_list_jobs(
618618

619619
def check_active_jobs(
620620
self,
621-
request: jobs.CheckActiveJobsRequest = None,
621+
request: Union[jobs.CheckActiveJobsRequest, dict] = None,
622622
*,
623623
retry: retries.Retry = gapic_v1.method.DEFAULT,
624624
timeout: float = None,
@@ -628,7 +628,7 @@ def check_active_jobs(
628628
project across all regions.
629629
630630
Args:
631-
request (google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest):
631+
request (Union[google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest, dict]):
632632
The request object. Request to check is active jobs
633633
exists for a project
634634
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -661,7 +661,7 @@ def check_active_jobs(
661661

662662
def snapshot_job(
663663
self,
664-
request: jobs.SnapshotJobRequest = None,
664+
request: Union[jobs.SnapshotJobRequest, dict] = None,
665665
*,
666666
retry: retries.Retry = gapic_v1.method.DEFAULT,
667667
timeout: float = None,
@@ -670,7 +670,7 @@ def snapshot_job(
670670
r"""Snapshot the state of a streaming job.
671671
672672
Args:
673-
request (google.cloud.dataflow_v1beta3.types.SnapshotJobRequest):
673+
request (Union[google.cloud.dataflow_v1beta3.types.SnapshotJobRequest, dict]):
674674
The request object. Request to create a snapshot of a
675675
job.
676676
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(
123123
**scopes_kwargs, quota_project_id=quota_project_id
124124
)
125125

126-
# If the credentials is service account credentials, then always try to use self signed JWT.
126+
# If the credentials are service account credentials, then always try to use self signed JWT.
127127
if (
128128
always_use_jwt_access
129129
and isinstance(credentials, service_account.Credentials)

google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc.py

+3-3
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.

google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc_asyncio.py

+3-3
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.

google/cloud/dataflow_v1beta3/services/messages_v1_beta3/client.py

+3-3
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
@@ -338,7 +338,7 @@ def __init__(
338338

339339
def list_job_messages(
340340
self,
341-
request: messages.ListJobMessagesRequest = None,
341+
request: Union[messages.ListJobMessagesRequest, dict] = None,
342342
*,
343343
retry: retries.Retry = gapic_v1.method.DEFAULT,
344344
timeout: float = None,
@@ -355,7 +355,7 @@ def list_job_messages(
355355
``us-central1``.
356356
357357
Args:
358-
request (google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest):
358+
request (Union[google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest, dict]):
359359
The request object. Request to list job messages.
360360
Up to max_results messages will be returned in the time
361361
range specified starting with the oldest messages first.

google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __init__(
122122
**scopes_kwargs, quota_project_id=quota_project_id
123123
)
124124

125-
# If the credentials is service account credentials, then always try to use self signed JWT.
125+
# If the credentials are service account credentials, then always try to use self signed JWT.
126126
if (
127127
always_use_jwt_access
128128
and isinstance(credentials, service_account.Credentials)

google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc.py

+3-3
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.

google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc_asyncio.py

+3-3
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.

0 commit comments

Comments
 (0)