17
17
from distutils import util
18
18
import os
19
19
import re
20
- from typing import Callable , Dict , Optional , Sequence , Tuple , Type , Union
20
+ from typing import Dict , Optional , Sequence , Tuple , Type , Union
21
21
import pkg_resources
22
22
23
23
from google .api_core import client_options as client_options_lib # type: ignore
@@ -341,7 +341,7 @@ def __init__(
341
341
342
342
def create_job (
343
343
self ,
344
- request : jobs .CreateJobRequest = None ,
344
+ request : Union [ jobs .CreateJobRequest , dict ] = None ,
345
345
* ,
346
346
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
347
347
timeout : float = None ,
@@ -356,7 +356,7 @@ def create_job(
356
356
will always start in ``us-central1``.
357
357
358
358
Args:
359
- request (google.cloud.dataflow_v1beta3.types.CreateJobRequest):
359
+ request (Union[ google.cloud.dataflow_v1beta3.types.CreateJobRequest, dict] ):
360
360
The request object. Request to create a Cloud Dataflow
361
361
job.
362
362
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -391,7 +391,7 @@ def create_job(
391
391
392
392
def get_job (
393
393
self ,
394
- request : jobs .GetJobRequest = None ,
394
+ request : Union [ jobs .GetJobRequest , dict ] = None ,
395
395
* ,
396
396
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
397
397
timeout : float = None ,
@@ -406,7 +406,7 @@ def get_job(
406
406
get the state of jobs that are running in ``us-central1``.
407
407
408
408
Args:
409
- request (google.cloud.dataflow_v1beta3.types.GetJobRequest):
409
+ request (Union[ google.cloud.dataflow_v1beta3.types.GetJobRequest, dict] ):
410
410
The request object. Request to get the state of a Cloud
411
411
Dataflow job.
412
412
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -441,7 +441,7 @@ def get_job(
441
441
442
442
def update_job (
443
443
self ,
444
- request : jobs .UpdateJobRequest = None ,
444
+ request : Union [ jobs .UpdateJobRequest , dict ] = None ,
445
445
* ,
446
446
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
447
447
timeout : float = None ,
@@ -457,7 +457,7 @@ def update_job(
457
457
``us-central1``.
458
458
459
459
Args:
460
- request (google.cloud.dataflow_v1beta3.types.UpdateJobRequest):
460
+ request (Union[ google.cloud.dataflow_v1beta3.types.UpdateJobRequest, dict] ):
461
461
The request object. Request to update a Cloud Dataflow
462
462
job.
463
463
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -492,7 +492,7 @@ def update_job(
492
492
493
493
def list_jobs (
494
494
self ,
495
- request : jobs .ListJobsRequest = None ,
495
+ request : Union [ jobs .ListJobsRequest , dict ] = None ,
496
496
* ,
497
497
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
498
498
timeout : float = None ,
@@ -509,7 +509,7 @@ def list_jobs(
509
509
running in ``us-central1``.
510
510
511
511
Args:
512
- request (google.cloud.dataflow_v1beta3.types.ListJobsRequest):
512
+ request (Union[ google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict] ):
513
513
The request object. Request to list Cloud Dataflow jobs.
514
514
retry (google.api_core.retry.Retry): Designation of what errors, if any,
515
515
should be retried.
@@ -559,7 +559,7 @@ def list_jobs(
559
559
560
560
def aggregated_list_jobs (
561
561
self ,
562
- request : jobs .ListJobsRequest = None ,
562
+ request : Union [ jobs .ListJobsRequest , dict ] = None ,
563
563
* ,
564
564
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
565
565
timeout : float = None ,
@@ -568,7 +568,7 @@ def aggregated_list_jobs(
568
568
r"""List the jobs of a project across all regions.
569
569
570
570
Args:
571
- request (google.cloud.dataflow_v1beta3.types.ListJobsRequest):
571
+ request (Union[ google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict] ):
572
572
The request object. Request to list Cloud Dataflow jobs.
573
573
retry (google.api_core.retry.Retry): Designation of what errors, if any,
574
574
should be retried.
@@ -618,7 +618,7 @@ def aggregated_list_jobs(
618
618
619
619
def check_active_jobs (
620
620
self ,
621
- request : jobs .CheckActiveJobsRequest = None ,
621
+ request : Union [ jobs .CheckActiveJobsRequest , dict ] = None ,
622
622
* ,
623
623
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
624
624
timeout : float = None ,
@@ -628,7 +628,7 @@ def check_active_jobs(
628
628
project across all regions.
629
629
630
630
Args:
631
- request (google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest):
631
+ request (Union[ google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest, dict] ):
632
632
The request object. Request to check is active jobs
633
633
exists for a project
634
634
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -661,7 +661,7 @@ def check_active_jobs(
661
661
662
662
def snapshot_job (
663
663
self ,
664
- request : jobs .SnapshotJobRequest = None ,
664
+ request : Union [ jobs .SnapshotJobRequest , dict ] = None ,
665
665
* ,
666
666
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
667
667
timeout : float = None ,
@@ -670,7 +670,7 @@ def snapshot_job(
670
670
r"""Snapshot the state of a streaming job.
671
671
672
672
Args:
673
- request (google.cloud.dataflow_v1beta3.types.SnapshotJobRequest):
673
+ request (Union[ google.cloud.dataflow_v1beta3.types.SnapshotJobRequest, dict] ):
674
674
The request object. Request to create a snapshot of a
675
675
job.
676
676
retry (google.api_core.retry.Retry): Designation of what errors, if any,
0 commit comments