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

Commit 8e778a3

Browse files
chore: use gapic-generator-python 0.51.2 (#96)
- [ ] 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 9c91ae0 commit 8e778a3

File tree

16 files changed

+68
-68
lines changed

16 files changed

+68
-68
lines changed

google/cloud/workflows/executions_v1/services/executions/client.py

+9-9
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
@@ -371,7 +371,7 @@ def __init__(
371371

372372
def list_executions(
373373
self,
374-
request: executions.ListExecutionsRequest = None,
374+
request: Union[executions.ListExecutionsRequest, dict] = None,
375375
*,
376376
parent: str = None,
377377
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -385,7 +385,7 @@ def list_executions(
385385
first).
386386
387387
Args:
388-
request (google.cloud.workflows.executions_v1.types.ListExecutionsRequest):
388+
request (Union[google.cloud.workflows.executions_v1.types.ListExecutionsRequest, dict]):
389389
The request object. Request for the
390390
[ListExecutions][]
391391
method.
@@ -459,7 +459,7 @@ def list_executions(
459459

460460
def create_execution(
461461
self,
462-
request: executions.CreateExecutionRequest = None,
462+
request: Union[executions.CreateExecutionRequest, dict] = None,
463463
*,
464464
parent: str = None,
465465
execution: executions.Execution = None,
@@ -471,7 +471,7 @@ def create_execution(
471471
the given workflow.
472472
473473
Args:
474-
request (google.cloud.workflows.executions_v1.types.CreateExecutionRequest):
474+
request (Union[google.cloud.workflows.executions_v1.types.CreateExecutionRequest, dict]):
475475
The request object. Request for the
476476
[CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution]
477477
method.
@@ -544,7 +544,7 @@ def create_execution(
544544

545545
def get_execution(
546546
self,
547-
request: executions.GetExecutionRequest = None,
547+
request: Union[executions.GetExecutionRequest, dict] = None,
548548
*,
549549
name: str = None,
550550
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -554,7 +554,7 @@ def get_execution(
554554
r"""Returns an execution of the given name.
555555
556556
Args:
557-
request (google.cloud.workflows.executions_v1.types.GetExecutionRequest):
557+
request (Union[google.cloud.workflows.executions_v1.types.GetExecutionRequest, dict]):
558558
The request object. Request for the
559559
[GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution]
560560
method.
@@ -617,7 +617,7 @@ def get_execution(
617617

618618
def cancel_execution(
619619
self,
620-
request: executions.CancelExecutionRequest = None,
620+
request: Union[executions.CancelExecutionRequest, dict] = None,
621621
*,
622622
name: str = None,
623623
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -627,7 +627,7 @@ def cancel_execution(
627627
r"""Cancels an execution of the given name.
628628
629629
Args:
630-
request (google.cloud.workflows.executions_v1.types.CancelExecutionRequest):
630+
request (Union[google.cloud.workflows.executions_v1.types.CancelExecutionRequest, dict]):
631631
The request object. Request for the
632632
[CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution]
633633
method.

google/cloud/workflows/executions_v1/services/executions/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(
115115
**scopes_kwargs, quota_project_id=quota_project_id
116116
)
117117

118-
# If the credentials is service account credentials, then always try to use self signed JWT.
118+
# If the credentials are service account credentials, then always try to use self signed JWT.
119119
if (
120120
always_use_jwt_access
121121
and isinstance(credentials, service_account.Credentials)

google/cloud/workflows/executions_v1/services/executions/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/workflows/executions_v1/services/executions/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/workflows/executions_v1beta/services/executions/client.py

+9-9
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
@@ -372,7 +372,7 @@ def __init__(
372372

373373
def list_executions(
374374
self,
375-
request: executions.ListExecutionsRequest = None,
375+
request: Union[executions.ListExecutionsRequest, dict] = None,
376376
*,
377377
parent: str = None,
378378
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -386,7 +386,7 @@ def list_executions(
386386
first).
387387
388388
Args:
389-
request (google.cloud.workflows.executions_v1beta.types.ListExecutionsRequest):
389+
request (Union[google.cloud.workflows.executions_v1beta.types.ListExecutionsRequest, dict]):
390390
The request object. Request for the
391391
[ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
392392
method.
@@ -460,7 +460,7 @@ def list_executions(
460460

461461
def create_execution(
462462
self,
463-
request: executions.CreateExecutionRequest = None,
463+
request: Union[executions.CreateExecutionRequest, dict] = None,
464464
*,
465465
parent: str = None,
466466
execution: executions.Execution = None,
@@ -472,7 +472,7 @@ def create_execution(
472472
the given workflow.
473473
474474
Args:
475-
request (google.cloud.workflows.executions_v1beta.types.CreateExecutionRequest):
475+
request (Union[google.cloud.workflows.executions_v1beta.types.CreateExecutionRequest, dict]):
476476
The request object. Request for the
477477
[CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
478478
method.
@@ -545,7 +545,7 @@ def create_execution(
545545

546546
def get_execution(
547547
self,
548-
request: executions.GetExecutionRequest = None,
548+
request: Union[executions.GetExecutionRequest, dict] = None,
549549
*,
550550
name: str = None,
551551
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -555,7 +555,7 @@ def get_execution(
555555
r"""Returns an execution of the given name.
556556
557557
Args:
558-
request (google.cloud.workflows.executions_v1beta.types.GetExecutionRequest):
558+
request (Union[google.cloud.workflows.executions_v1beta.types.GetExecutionRequest, dict]):
559559
The request object. Request for the
560560
[GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution]
561561
method.
@@ -618,7 +618,7 @@ def get_execution(
618618

619619
def cancel_execution(
620620
self,
621-
request: executions.CancelExecutionRequest = None,
621+
request: Union[executions.CancelExecutionRequest, dict] = None,
622622
*,
623623
name: str = None,
624624
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -628,7 +628,7 @@ def cancel_execution(
628628
r"""Cancels an execution of the given name.
629629
630630
Args:
631-
request (google.cloud.workflows.executions_v1beta.types.CancelExecutionRequest):
631+
request (Union[google.cloud.workflows.executions_v1beta.types.CancelExecutionRequest, dict]):
632632
The request object. Request for the
633633
[CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
634634
method.

google/cloud/workflows/executions_v1beta/services/executions/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(
115115
**scopes_kwargs, quota_project_id=quota_project_id
116116
)
117117

118-
# If the credentials is service account credentials, then always try to use self signed JWT.
118+
# If the credentials are service account credentials, then always try to use self signed JWT.
119119
if (
120120
always_use_jwt_access
121121
and isinstance(credentials, service_account.Credentials)

google/cloud/workflows/executions_v1beta/services/executions/transports/grpc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ def __init__(
8282
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8383
If provided, it overrides the ``host`` argument and tries to create
8484
a mutual TLS channel with client SSL credentials from
85-
``client_cert_source`` or applicatin default SSL credentials.
85+
``client_cert_source`` or application default SSL credentials.
8686
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8787
Deprecated. A callback to provide client SSL certificate bytes and
8888
private key bytes, both in PEM format. It is ignored if
8989
``api_mtls_endpoint`` is None.
9090
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
91-
for grpc channel. It is ignored if ``channel`` is provided.
91+
for the grpc channel. It is ignored if ``channel`` is provided.
9292
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9393
A callback to provide client certificate bytes and private key bytes,
94-
both in PEM format. It is used to configure mutual TLS channel. It is
94+
both in PEM format. It is used to configure a mutual TLS channel. It is
9595
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9696
quota_project_id (Optional[str]): An optional project to use for billing
9797
and quota.

google/cloud/workflows/executions_v1beta/services/executions/transports/grpc_asyncio.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@ def __init__(
129129
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
130130
If provided, it overrides the ``host`` argument and tries to create
131131
a mutual TLS channel with client SSL credentials from
132-
``client_cert_source`` or applicatin default SSL credentials.
132+
``client_cert_source`` or application default SSL credentials.
133133
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
134134
Deprecated. A callback to provide client SSL certificate bytes and
135135
private key bytes, both in PEM format. It is ignored if
136136
``api_mtls_endpoint`` is None.
137137
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
138-
for grpc channel. It is ignored if ``channel`` is provided.
138+
for the grpc channel. It is ignored if ``channel`` is provided.
139139
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
140140
A callback to provide client certificate bytes and private key bytes,
141-
both in PEM format. It is used to configure mutual TLS channel. It is
141+
both in PEM format. It is used to configure a mutual TLS channel. It is
142142
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
143143
quota_project_id (Optional[str]): An optional project to use for billing
144144
and quota.

google/cloud/workflows_v1/services/workflows/client.py

+11-11
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
@@ -358,7 +358,7 @@ def __init__(
358358

359359
def list_workflows(
360360
self,
361-
request: workflows.ListWorkflowsRequest = None,
361+
request: Union[workflows.ListWorkflowsRequest, dict] = None,
362362
*,
363363
parent: str = None,
364364
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -369,7 +369,7 @@ def list_workflows(
369369
The default order is not specified.
370370
371371
Args:
372-
request (google.cloud.workflows_v1.types.ListWorkflowsRequest):
372+
request (Union[google.cloud.workflows_v1.types.ListWorkflowsRequest, dict]):
373373
The request object. Request for the
374374
[ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
375375
method.
@@ -443,7 +443,7 @@ def list_workflows(
443443

444444
def get_workflow(
445445
self,
446-
request: workflows.GetWorkflowRequest = None,
446+
request: Union[workflows.GetWorkflowRequest, dict] = None,
447447
*,
448448
name: str = None,
449449
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -453,7 +453,7 @@ def get_workflow(
453453
r"""Gets details of a single Workflow.
454454
455455
Args:
456-
request (google.cloud.workflows_v1.types.GetWorkflowRequest):
456+
request (Union[google.cloud.workflows_v1.types.GetWorkflowRequest, dict]):
457457
The request object. Request for the
458458
[GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow]
459459
method.
@@ -516,7 +516,7 @@ def get_workflow(
516516

517517
def create_workflow(
518518
self,
519-
request: workflows.CreateWorkflowRequest = None,
519+
request: Union[workflows.CreateWorkflowRequest, dict] = None,
520520
*,
521521
parent: str = None,
522522
workflow: workflows.Workflow = None,
@@ -531,7 +531,7 @@ def create_workflow(
531531
[ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
532532
533533
Args:
534-
request (google.cloud.workflows_v1.types.CreateWorkflowRequest):
534+
request (Union[google.cloud.workflows_v1.types.CreateWorkflowRequest, dict]):
535535
The request object. Request for the
536536
[CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
537537
method.
@@ -630,7 +630,7 @@ def create_workflow(
630630

631631
def delete_workflow(
632632
self,
633-
request: workflows.DeleteWorkflowRequest = None,
633+
request: Union[workflows.DeleteWorkflowRequest, dict] = None,
634634
*,
635635
name: str = None,
636636
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -642,7 +642,7 @@ def delete_workflow(
642642
executions of the workflow.
643643
644644
Args:
645-
request (google.cloud.workflows_v1.types.DeleteWorkflowRequest):
645+
request (Union[google.cloud.workflows_v1.types.DeleteWorkflowRequest, dict]):
646646
The request object. Request for the
647647
[DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow]
648648
method.
@@ -726,7 +726,7 @@ def delete_workflow(
726726

727727
def update_workflow(
728728
self,
729-
request: workflows.UpdateWorkflowRequest = None,
729+
request: Union[workflows.UpdateWorkflowRequest, dict] = None,
730730
*,
731731
workflow: workflows.Workflow = None,
732732
update_mask: field_mask_pb2.FieldMask = None,
@@ -742,7 +742,7 @@ def update_workflow(
742742
used in new workflow executions.
743743
744744
Args:
745-
request (google.cloud.workflows_v1.types.UpdateWorkflowRequest):
745+
request (Union[google.cloud.workflows_v1.types.UpdateWorkflowRequest, dict]):
746746
The request object. Request for the
747747
[UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow]
748748
method.

google/cloud/workflows_v1/services/workflows/transports/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
**scopes_kwargs, quota_project_id=quota_project_id
118118
)
119119

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

google/cloud/workflows_v1/services/workflows/transports/grpc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ def __init__(
8484
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8585
If provided, it overrides the ``host`` argument and tries to create
8686
a mutual TLS channel with client SSL credentials from
87-
``client_cert_source`` or applicatin default SSL credentials.
87+
``client_cert_source`` or application default SSL credentials.
8888
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8989
Deprecated. A callback to provide client SSL certificate bytes and
9090
private key bytes, both in PEM format. It is ignored if
9191
``api_mtls_endpoint`` is None.
9292
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
93-
for grpc channel. It is ignored if ``channel`` is provided.
93+
for the grpc channel. It is ignored if ``channel`` is provided.
9494
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9595
A callback to provide client certificate bytes and private key bytes,
96-
both in PEM format. It is used to configure mutual TLS channel. It is
96+
both in PEM format. It is used to configure a mutual TLS channel. It is
9797
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9898
quota_project_id (Optional[str]): An optional project to use for billing
9999
and quota.

0 commit comments

Comments
 (0)