From 8741a7a4808b8ff37d1facf7ff124c9c2e3d7099 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Nov 2022 12:08:44 -0500 Subject: [PATCH] chore: Update gapic-generator-python to v1.6.1 (#154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update to gapic-generator-python 1.5.0 feat: add support for `google.cloud..__version__` PiperOrigin-RevId: 484665853 Source-Link: https://github.com/googleapis/googleapis/commit/8eb249a19db926c2fbc4ecf1dc09c0e521a88b22 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update version in gapic_version.py * add .release-please-manifest.json with correct version * add release-please-config.json * chore: Update to gapic-generator-python 1.6.0 feat(python): Add typing to proto.Message based class attributes feat(python): Snippetgen handling of repeated enum field PiperOrigin-RevId: 487326846 Source-Link: https://github.com/googleapis/googleapis/commit/da380c77bb87ba0f752baf07605dd1db30e1f7e1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/61ef5762ee6731a0cbbfea22fd0eecee51ab1c8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update path to snippet metadata json * chore: Update gapic-generator-python to v1.6.1 PiperOrigin-RevId: 488036204 Source-Link: https://github.com/googleapis/googleapis/commit/08f275f5c1c0d99056e1cb68376323414459ee19 Source-Link: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * use templated owlbot.py and setup.py * configure release-please to use manifest Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .../.github/release-please.yml | 1 + .../.release-please-manifest.json | 3 + .../docs/dataflow_v1beta3/types.rst | 1 - .../google/cloud/dataflow/__init__.py | 4 + .../google/cloud/dataflow/gapic_version.py | 16 + .../google/cloud/dataflow_v1beta3/__init__.py | 4 + .../flex_templates_service/async_client.py | 22 +- .../services/flex_templates_service/client.py | 26 +- .../flex_templates_service/transports/base.py | 2 +- .../flex_templates_service/transports/grpc.py | 20 +- .../transports/grpc_asyncio.py | 16 +- .../flex_templates_service/transports/rest.py | 10 +- .../services/jobs_v1_beta3/async_client.py | 58 +- .../services/jobs_v1_beta3/client.py | 50 +- .../services/jobs_v1_beta3/transports/base.py | 2 +- .../services/jobs_v1_beta3/transports/grpc.py | 20 +- .../jobs_v1_beta3/transports/grpc_asyncio.py | 16 +- .../services/jobs_v1_beta3/transports/rest.py | 22 +- .../messages_v1_beta3/async_client.py | 22 +- .../services/messages_v1_beta3/client.py | 26 +- .../messages_v1_beta3/transports/base.py | 2 +- .../messages_v1_beta3/transports/grpc.py | 20 +- .../transports/grpc_asyncio.py | 16 +- .../messages_v1_beta3/transports/rest.py | 10 +- .../services/metrics_v1_beta3/async_client.py | 34 +- .../services/metrics_v1_beta3/client.py | 34 +- .../metrics_v1_beta3/transports/base.py | 2 +- .../metrics_v1_beta3/transports/grpc.py | 20 +- .../transports/grpc_asyncio.py | 16 +- .../metrics_v1_beta3/transports/rest.py | 14 +- .../snapshots_v1_beta3/async_client.py | 34 +- .../services/snapshots_v1_beta3/client.py | 34 +- .../snapshots_v1_beta3/transports/base.py | 2 +- .../snapshots_v1_beta3/transports/grpc.py | 20 +- .../transports/grpc_asyncio.py | 16 +- .../snapshots_v1_beta3/transports/rest.py | 14 +- .../templates_service/async_client.py | 34 +- .../services/templates_service/client.py | 34 +- .../templates_service/transports/base.py | 2 +- .../templates_service/transports/grpc.py | 20 +- .../transports/grpc_asyncio.py | 16 +- .../templates_service/transports/rest.py | 14 +- .../dataflow_v1beta3/types/environment.py | 174 +- .../cloud/dataflow_v1beta3/types/jobs.py | 314 +-- .../cloud/dataflow_v1beta3/types/messages.py | 60 +- .../cloud/dataflow_v1beta3/types/metrics.py | 130 +- .../cloud/dataflow_v1beta3/types/snapshots.py | 52 +- .../cloud/dataflow_v1beta3/types/streaming.py | 108 +- .../cloud/dataflow_v1beta3/types/templates.py | 234 +- .../google-cloud-dataflow-client/owlbot.py | 25 +- .../release-please-config.json | 23 + ...ates_service_launch_flex_template_sync.py} | 4 +- ...vice_launch_flex_template_sync_a4f75f91.py | 51 - ...obs_v1_beta3_aggregated_list_jobs_sync.py} | 4 +- ...eta3_aggregated_list_jobs_sync_26f07383.py | 52 - ...d_jobs_v1_beta3_check_active_jobs_sync.py} | 4 +- ...1_beta3_check_active_jobs_sync_baed931b.py | 51 - ...enerated_jobs_v1_beta3_create_job_sync.py} | 4 +- ..._jobs_v1_beta3_create_job_sync_ad13d605.py | 51 - ...3_generated_jobs_v1_beta3_get_job_sync.py} | 4 +- ...ted_jobs_v1_beta3_get_job_sync_45212860.py | 51 - ...generated_jobs_v1_beta3_list_jobs_sync.py} | 4 +- ...d_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py | 52 - ...erated_jobs_v1_beta3_snapshot_job_sync.py} | 4 +- ...obs_v1_beta3_snapshot_job_sync_ff3cb8bd.py | 51 - ...enerated_jobs_v1_beta3_update_job_sync.py} | 4 +- ..._jobs_v1_beta3_update_job_sync_e2fa191d.py | 51 - ...ssages_v1_beta3_list_job_messages_sync.py} | 4 +- ...1_beta3_list_job_messages_sync_f19ed68d.py | 52 - ...1_beta3_get_job_execution_details_sync.py} | 4 +- ...get_job_execution_details_sync_b7550163.py | 52 - ..._metrics_v1_beta3_get_job_metrics_sync.py} | 4 +- ..._v1_beta3_get_job_metrics_sync_59dce217.py | 51 - ...beta3_get_stage_execution_details_sync.py} | 4 +- ...t_stage_execution_details_sync_9490a11d.py | 52 - ...napshots_v1_beta3_delete_snapshot_sync.py} | 4 +- ..._v1_beta3_delete_snapshot_sync_567e01e6.py | 51 - ...d_snapshots_v1_beta3_get_snapshot_sync.py} | 4 +- ...ots_v1_beta3_get_snapshot_sync_ba1ca2b6.py | 51 - ...snapshots_v1_beta3_list_snapshots_sync.py} | 4 +- ...s_v1_beta3_list_snapshots_sync_6da08cb9.py | 51 - ..._service_create_job_from_template_sync.py} | 4 +- ..._create_job_from_template_sync_e2cb482f.py | 52 - ...ed_templates_service_get_template_sync.py} | 4 +- ...ates_service_get_template_sync_732e6209.py | 52 - ...templates_service_launch_template_sync.py} | 4 +- ...s_service_launch_template_sync_77764eb9.py | 52 - ...pet_metadata_google.dataflow.v1beta3.json} | 2261 ++++------------- .../google-cloud-dataflow-client/setup.py | 31 +- .../testing/constraints-3.10.txt | 6 + .../testing/constraints-3.11.txt | 6 + .../testing/constraints-3.8.txt | 6 + .../testing/constraints-3.9.txt | 6 + 93 files changed, 1570 insertions(+), 3613 deletions(-) create mode 100644 packages/google-cloud-dataflow-client/.release-please-manifest.json create mode 100644 packages/google-cloud-dataflow-client/google/cloud/dataflow/gapic_version.py create mode 100644 packages/google-cloud-dataflow-client/release-please-config.json rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py => dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py} (97%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py => dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py => dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py => dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py} (92%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py => dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py} (92%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py => dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py} (92%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py => dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py} (95%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py => dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py} (92%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py => dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py => dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py} (97%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py => dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py => dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py} (97%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py => dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py => dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py => dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py => dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py} (97%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py => dataflow_v1beta3_generated_templates_service_get_template_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py => dataflow_v1beta3_generated_templates_service_launch_template_sync.py} (98%) delete mode 100644 packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py rename packages/google-cloud-dataflow-client/samples/generated_samples/{snippet_metadata_dataflow_v1beta3.json => snippet_metadata_google.dataflow.v1beta3.json} (65%) diff --git a/packages/google-cloud-dataflow-client/.github/release-please.yml b/packages/google-cloud-dataflow-client/.github/release-please.yml index 466597e5b196..528b2741a1f7 100644 --- a/packages/google-cloud-dataflow-client/.github/release-please.yml +++ b/packages/google-cloud-dataflow-client/.github/release-please.yml @@ -1,2 +1,3 @@ releaseType: python handleGHRelease: true +manifest: true diff --git a/packages/google-cloud-dataflow-client/.release-please-manifest.json b/packages/google-cloud-dataflow-client/.release-please-manifest.json new file mode 100644 index 000000000000..bf5f1fb272df --- /dev/null +++ b/packages/google-cloud-dataflow-client/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.6.2" +} diff --git a/packages/google-cloud-dataflow-client/docs/dataflow_v1beta3/types.rst b/packages/google-cloud-dataflow-client/docs/dataflow_v1beta3/types.rst index 368642a795bd..a768d4aea361 100644 --- a/packages/google-cloud-dataflow-client/docs/dataflow_v1beta3/types.rst +++ b/packages/google-cloud-dataflow-client/docs/dataflow_v1beta3/types.rst @@ -3,5 +3,4 @@ Types for Google Cloud Dataflow v1beta3 API .. automodule:: google.cloud.dataflow_v1beta3.types :members: - :undoc-members: :show-inheritance: diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow/__init__.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow/__init__.py index 1c7d3b19a4ad..61e91779dfda 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow/__init__.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow/__init__.py @@ -13,6 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from google.cloud.dataflow import gapic_version as package_version + +__version__ = package_version.__version__ + from google.cloud.dataflow_v1beta3.services.flex_templates_service.async_client import ( FlexTemplatesServiceAsyncClient, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow/gapic_version.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow/gapic_version.py new file mode 100644 index 000000000000..944f5ff9a363 --- /dev/null +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow/gapic_version.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +__version__ = "0.6.2" # {x-release-please-version} diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/__init__.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/__init__.py index aa724122526b..db7fb4f96940 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/__init__.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/__init__.py @@ -13,6 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from google.cloud.dataflow import gapic_version as package_version + +__version__ = package_version.__version__ + from .services.flex_templates_service import ( FlexTemplatesServiceAsyncClient, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/async_client.py index a7a4f46998d8..75ffb7df43b5 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -159,9 +169,9 @@ def transport(self) -> FlexTemplatesServiceTransport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, FlexTemplatesServiceTransport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the flex templates service client. @@ -205,10 +215,10 @@ def __init__( async def launch_flex_template( self, - request: Union[templates.LaunchFlexTemplateRequest, dict] = None, + request: Optional[Union[templates.LaunchFlexTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchFlexTemplateResponse: r"""Launch a job with a FlexTemplate. @@ -239,7 +249,7 @@ async def sample_launch_flex_template(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateRequest, dict]]): The request object. A request to launch a Cloud Dataflow job from a FlexTemplate. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/client.py index a443b471573d..e6e8808efc1d 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -59,7 +70,7 @@ class FlexTemplatesServiceClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[FlexTemplatesServiceTransport]: """Returns an appropriate transport class. @@ -314,8 +325,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, FlexTemplatesServiceTransport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, FlexTemplatesServiceTransport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the flex templates service client. @@ -332,7 +343,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -362,6 +373,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -414,10 +426,10 @@ def __init__( def launch_flex_template( self, - request: Union[templates.LaunchFlexTemplateRequest, dict] = None, + request: Optional[Union[templates.LaunchFlexTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchFlexTemplateResponse: r"""Launch a job with a FlexTemplate. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py index 577cc0f39f4e..21a28756d559 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc.py index 4e3b008c1a10..172ea3137b8e 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc.py @@ -47,14 +47,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -181,8 +181,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc_asyncio.py index 719719f36d53..8ed3f3de36cc 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/grpc_asyncio.py @@ -49,7 +49,7 @@ class FlexTemplatesServiceGrpcAsyncIOTransport(FlexTemplatesServiceTransport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -92,15 +92,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/rest.py index 1986e2659003..7e4c6fee6d39 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/flex_templates_service/transports/rest.py @@ -128,10 +128,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -213,7 +213,7 @@ def __call__( request: templates.LaunchFlexTemplateRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchFlexTemplateResponse: r"""Call the launch flex template method over HTTP. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/async_client.py index 19973e71c53d..d2549b47067b 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -159,9 +169,9 @@ def transport(self) -> JobsV1Beta3Transport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, JobsV1Beta3Transport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the jobs v1 beta3 client. @@ -205,10 +215,10 @@ def __init__( async def create_job( self, - request: Union[jobs.CreateJobRequest, dict] = None, + request: Optional[Union[jobs.CreateJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Creates a Cloud Dataflow job. @@ -245,7 +255,7 @@ async def sample_create_job(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.CreateJobRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.CreateJobRequest, dict]]): The request object. Request to create a Cloud Dataflow job. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -295,10 +305,10 @@ async def sample_create_job(): async def get_job( self, - request: Union[jobs.GetJobRequest, dict] = None, + request: Optional[Union[jobs.GetJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Gets the state of the specified Cloud Dataflow job. @@ -335,7 +345,7 @@ async def sample_get_job(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetJobRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetJobRequest, dict]]): The request object. Request to get the state of a Cloud Dataflow job. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -386,10 +396,10 @@ async def sample_get_job(): async def update_job( self, - request: Union[jobs.UpdateJobRequest, dict] = None, + request: Optional[Union[jobs.UpdateJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Updates the state of an existing Cloud Dataflow job. @@ -427,7 +437,7 @@ async def sample_update_job(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.UpdateJobRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.UpdateJobRequest, dict]]): The request object. Request to update a Cloud Dataflow job. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -478,10 +488,10 @@ async def sample_update_job(): async def list_jobs( self, - request: Union[jobs.ListJobsRequest, dict] = None, + request: Optional[Union[jobs.ListJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListJobsAsyncPager: r"""List the jobs of a project. @@ -521,7 +531,7 @@ async def sample_list_jobs(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]]): The request object. Request to list Cloud Dataflow jobs. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -589,10 +599,10 @@ async def sample_list_jobs(): async def aggregated_list_jobs( self, - request: Union[jobs.ListJobsRequest, dict] = None, + request: Optional[Union[jobs.ListJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.AggregatedListJobsAsyncPager: r"""List the jobs of a project across all regions. @@ -624,7 +634,7 @@ async def sample_aggregated_list_jobs(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.ListJobsRequest, dict]]): The request object. Request to list Cloud Dataflow jobs. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -689,10 +699,10 @@ async def sample_aggregated_list_jobs(): async def check_active_jobs( self, - request: Union[jobs.CheckActiveJobsRequest, dict] = None, + request: Optional[Union[jobs.CheckActiveJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.CheckActiveJobsResponse: r"""Check for existence of active jobs in the given @@ -724,7 +734,7 @@ async def sample_check_active_jobs(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest, dict]]): The request object. Request to check is active jobs exists for a project retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -761,10 +771,10 @@ async def sample_check_active_jobs(): async def snapshot_job( self, - request: Union[jobs.SnapshotJobRequest, dict] = None, + request: Optional[Union[jobs.SnapshotJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Snapshot the state of a streaming job. @@ -795,7 +805,7 @@ async def sample_snapshot_job(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.SnapshotJobRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.SnapshotJobRequest, dict]]): The request object. Request to create a snapshot of a job. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/client.py index d21631367a36..7c40ad0bfb95 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -61,7 +72,7 @@ class JobsV1Beta3ClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[JobsV1Beta3Transport]: """Returns an appropriate transport class. @@ -317,8 +328,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, JobsV1Beta3Transport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, JobsV1Beta3Transport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the jobs v1 beta3 client. @@ -335,7 +346,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -365,6 +376,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -417,10 +429,10 @@ def __init__( def create_job( self, - request: Union[jobs.CreateJobRequest, dict] = None, + request: Optional[Union[jobs.CreateJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Creates a Cloud Dataflow job. @@ -508,10 +520,10 @@ def sample_create_job(): def get_job( self, - request: Union[jobs.GetJobRequest, dict] = None, + request: Optional[Union[jobs.GetJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Gets the state of the specified Cloud Dataflow job. @@ -600,10 +612,10 @@ def sample_get_job(): def update_job( self, - request: Union[jobs.UpdateJobRequest, dict] = None, + request: Optional[Union[jobs.UpdateJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Updates the state of an existing Cloud Dataflow job. @@ -693,10 +705,10 @@ def sample_update_job(): def list_jobs( self, - request: Union[jobs.ListJobsRequest, dict] = None, + request: Optional[Union[jobs.ListJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListJobsPager: r"""List the jobs of a project. @@ -805,10 +817,10 @@ def sample_list_jobs(): def aggregated_list_jobs( self, - request: Union[jobs.ListJobsRequest, dict] = None, + request: Optional[Union[jobs.ListJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.AggregatedListJobsPager: r"""List the jobs of a project across all regions. @@ -906,10 +918,10 @@ def sample_aggregated_list_jobs(): def check_active_jobs( self, - request: Union[jobs.CheckActiveJobsRequest, dict] = None, + request: Optional[Union[jobs.CheckActiveJobsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.CheckActiveJobsResponse: r"""Check for existence of active jobs in the given @@ -979,10 +991,10 @@ def sample_check_active_jobs(): def snapshot_job( self, - request: Union[jobs.SnapshotJobRequest, dict] = None, + request: Optional[Union[jobs.SnapshotJobRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Snapshot the state of a streaming job. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/base.py index 453fc1f41433..9942fa12f091 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc.py index 27131eb83539..cbe441f7ee79 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc.py @@ -48,14 +48,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -182,8 +182,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc_asyncio.py index e7856e29af91..094b22b62004 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/grpc_asyncio.py @@ -50,7 +50,7 @@ class JobsV1Beta3GrpcAsyncIOTransport(JobsV1Beta3Transport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -93,15 +93,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/rest.py index 1e8598a0f117..60b3d8581e72 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/jobs_v1_beta3/transports/rest.py @@ -264,10 +264,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -349,7 +349,7 @@ def __call__( request: jobs.ListJobsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.ListJobsResponse: r"""Call the aggregated list jobs method over HTTP. @@ -432,7 +432,7 @@ def __call__( request: jobs.CheckActiveJobsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.CheckActiveJobsResponse: raise RuntimeError( @@ -448,7 +448,7 @@ def __call__( request: jobs.CreateJobRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Call the create job method over HTTP. @@ -539,7 +539,7 @@ def __call__( request: jobs.GetJobRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Call the get job method over HTTP. @@ -620,7 +620,7 @@ def __call__( request: jobs.ListJobsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.ListJobsResponse: r"""Call the list jobs method over HTTP. @@ -705,7 +705,7 @@ def __call__( request: jobs.SnapshotJobRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Call the snapshot job method over HTTP. @@ -794,7 +794,7 @@ def __call__( request: jobs.UpdateJobRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Call the update job method over HTTP. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/async_client.py index 97093997ef1c..660510d759ba 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -159,9 +169,9 @@ def transport(self) -> MessagesV1Beta3Transport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, MessagesV1Beta3Transport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the messages v1 beta3 client. @@ -205,10 +215,10 @@ def __init__( async def list_job_messages( self, - request: Union[messages.ListJobMessagesRequest, dict] = None, + request: Optional[Union[messages.ListJobMessagesRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListJobMessagesAsyncPager: r"""Request the job status. @@ -248,7 +258,7 @@ async def sample_list_job_messages(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest, dict]]): The request object. Request to list job messages. Up to max_results messages will be returned in the time range specified starting with the oldest messages first. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/client.py index 435a92f3ea0e..304ea6d675a4 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -60,7 +71,7 @@ class MessagesV1Beta3ClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[MessagesV1Beta3Transport]: """Returns an appropriate transport class. @@ -315,8 +326,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, MessagesV1Beta3Transport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, MessagesV1Beta3Transport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the messages v1 beta3 client. @@ -333,7 +344,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -363,6 +374,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -415,10 +427,10 @@ def __init__( def list_job_messages( self, - request: Union[messages.ListJobMessagesRequest, dict] = None, + request: Optional[Union[messages.ListJobMessagesRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.ListJobMessagesPager: r"""Request the job status. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/base.py index 32c54f8f2c5d..2735981766ce 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc.py index 1b6be85bac24..c0b98ff35e02 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc.py @@ -47,14 +47,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -181,8 +181,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc_asyncio.py index 8f67459a0d30..bc04c1d93d66 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/grpc_asyncio.py @@ -49,7 +49,7 @@ class MessagesV1Beta3GrpcAsyncIOTransport(MessagesV1Beta3Transport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -92,15 +92,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/rest.py index c08b7dbed11e..574ea04da007 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/messages_v1_beta3/transports/rest.py @@ -128,10 +128,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -213,7 +213,7 @@ def __call__( request: messages.ListJobMessagesRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> messages.ListJobMessagesResponse: r"""Call the list job messages method over HTTP. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/async_client.py index 1709efb6d829..e58a20be2f7b 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -161,9 +171,9 @@ def transport(self) -> MetricsV1Beta3Transport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, MetricsV1Beta3Transport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the metrics v1 beta3 client. @@ -207,10 +217,10 @@ def __init__( async def get_job_metrics( self, - request: Union[metrics.GetJobMetricsRequest, dict] = None, + request: Optional[Union[metrics.GetJobMetricsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> metrics.JobMetrics: r"""Request the job status. @@ -249,7 +259,7 @@ async def sample_get_job_metrics(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest, dict]]): The request object. Request to get job metrics. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -308,10 +318,10 @@ async def sample_get_job_metrics(): async def get_job_execution_details( self, - request: Union[metrics.GetJobExecutionDetailsRequest, dict] = None, + request: Optional[Union[metrics.GetJobExecutionDetailsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.GetJobExecutionDetailsAsyncPager: r"""Request detailed information about the execution @@ -346,7 +356,7 @@ async def sample_get_job_execution_details(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest, dict]]): The request object. Request to get job execution details. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -409,10 +419,10 @@ async def sample_get_job_execution_details(): async def get_stage_execution_details( self, - request: Union[metrics.GetStageExecutionDetailsRequest, dict] = None, + request: Optional[Union[metrics.GetStageExecutionDetailsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.GetStageExecutionDetailsAsyncPager: r"""Request detailed information about the execution @@ -448,7 +458,7 @@ async def sample_get_stage_execution_details(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest, dict]]): The request object. Request to get information about a particular execution stage of a job. Currently only tracked for Batch jobs. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/client.py index b032f51fe5eb..fa0b1ca5150e 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -62,7 +73,7 @@ class MetricsV1Beta3ClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[MetricsV1Beta3Transport]: """Returns an appropriate transport class. @@ -317,8 +328,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, MetricsV1Beta3Transport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, MetricsV1Beta3Transport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the metrics v1 beta3 client. @@ -335,7 +346,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -365,6 +376,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -417,10 +429,10 @@ def __init__( def get_job_metrics( self, - request: Union[metrics.GetJobMetricsRequest, dict] = None, + request: Optional[Union[metrics.GetJobMetricsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> metrics.JobMetrics: r"""Request the job status. @@ -519,10 +531,10 @@ def sample_get_job_metrics(): def get_job_execution_details( self, - request: Union[metrics.GetJobExecutionDetailsRequest, dict] = None, + request: Optional[Union[metrics.GetJobExecutionDetailsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.GetJobExecutionDetailsPager: r"""Request detailed information about the execution @@ -623,10 +635,10 @@ def sample_get_job_execution_details(): def get_stage_execution_details( self, - request: Union[metrics.GetStageExecutionDetailsRequest, dict] = None, + request: Optional[Union[metrics.GetStageExecutionDetailsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.GetStageExecutionDetailsPager: r"""Request detailed information about the execution diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/base.py index 3b0687abde56..535552affd28 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc.py index f48b5556975b..76d8392da5cb 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc.py @@ -47,14 +47,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -181,8 +181,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc_asyncio.py index 112c32058bdc..95e2992ece1d 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/grpc_asyncio.py @@ -49,7 +49,7 @@ class MetricsV1Beta3GrpcAsyncIOTransport(MetricsV1Beta3Transport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -92,15 +92,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/rest.py index f8892766c058..21cbaba87f22 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/metrics_v1_beta3/transports/rest.py @@ -184,10 +184,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -269,7 +269,7 @@ def __call__( request: metrics.GetJobExecutionDetailsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> metrics.JobExecutionDetails: r"""Call the get job execution details method over HTTP. @@ -346,7 +346,7 @@ def __call__( request: metrics.GetJobMetricsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> metrics.JobMetrics: r"""Call the get job metrics method over HTTP. @@ -434,7 +434,7 @@ def __call__( request: metrics.GetStageExecutionDetailsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> metrics.StageExecutionDetails: r"""Call the get stage execution diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/async_client.py index 5af9753189fb..edfd34b839d5 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -161,9 +171,9 @@ def transport(self) -> SnapshotsV1Beta3Transport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, SnapshotsV1Beta3Transport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the snapshots v1 beta3 client. @@ -207,10 +217,10 @@ def __init__( async def get_snapshot( self, - request: Union[snapshots.GetSnapshotRequest, dict] = None, + request: Optional[Union[snapshots.GetSnapshotRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Gets information about a snapshot. @@ -241,7 +251,7 @@ async def sample_get_snapshot(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetSnapshotRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetSnapshotRequest, dict]]): The request object. Request to get information about a snapshot retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -290,10 +300,10 @@ async def sample_get_snapshot(): async def delete_snapshot( self, - request: Union[snapshots.DeleteSnapshotRequest, dict] = None, + request: Optional[Union[snapshots.DeleteSnapshotRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.DeleteSnapshotResponse: r"""Deletes a snapshot. @@ -324,7 +334,7 @@ async def sample_delete_snapshot(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest, dict]]): The request object. Request to delete a snapshot. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -372,10 +382,10 @@ async def sample_delete_snapshot(): async def list_snapshots( self, - request: Union[snapshots.ListSnapshotsRequest, dict] = None, + request: Optional[Union[snapshots.ListSnapshotsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.ListSnapshotsResponse: r"""Lists snapshots. @@ -406,7 +416,7 @@ async def sample_list_snapshots(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest, dict]]): The request object. Request to list snapshots. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/client.py index 015ead35990c..96879908ea88 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -62,7 +73,7 @@ class SnapshotsV1Beta3ClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[SnapshotsV1Beta3Transport]: """Returns an appropriate transport class. @@ -317,8 +328,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, SnapshotsV1Beta3Transport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, SnapshotsV1Beta3Transport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the snapshots v1 beta3 client. @@ -335,7 +346,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -365,6 +376,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -417,10 +429,10 @@ def __init__( def get_snapshot( self, - request: Union[snapshots.GetSnapshotRequest, dict] = None, + request: Optional[Union[snapshots.GetSnapshotRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Gets information about a snapshot. @@ -501,10 +513,10 @@ def sample_get_snapshot(): def delete_snapshot( self, - request: Union[snapshots.DeleteSnapshotRequest, dict] = None, + request: Optional[Union[snapshots.DeleteSnapshotRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.DeleteSnapshotResponse: r"""Deletes a snapshot. @@ -584,10 +596,10 @@ def sample_delete_snapshot(): def list_snapshots( self, - request: Union[snapshots.ListSnapshotsRequest, dict] = None, + request: Optional[Union[snapshots.ListSnapshotsRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.ListSnapshotsResponse: r"""Lists snapshots. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/base.py index 1f6d366e97d1..798ebcf23005 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc.py index 3bd9e3a93b1d..b0a1fb0b635c 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc.py @@ -47,14 +47,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -181,8 +181,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc_asyncio.py index 213741910905..924ca2a2c2cb 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/grpc_asyncio.py @@ -49,7 +49,7 @@ class SnapshotsV1Beta3GrpcAsyncIOTransport(SnapshotsV1Beta3Transport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -92,15 +92,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/rest.py index e92b4df47274..082fea8ec652 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/snapshots_v1_beta3/transports/rest.py @@ -184,10 +184,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -269,7 +269,7 @@ def __call__( request: snapshots.DeleteSnapshotRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.DeleteSnapshotResponse: r"""Call the delete snapshot method over HTTP. @@ -346,7 +346,7 @@ def __call__( request: snapshots.GetSnapshotRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.Snapshot: r"""Call the get snapshot method over HTTP. @@ -425,7 +425,7 @@ def __call__( request: snapshots.ListSnapshotsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> snapshots.ListSnapshotsResponse: r"""Call the list snapshots method over HTTP. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/async_client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/async_client.py index 32af53623e18..dc0a81f0a984 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/async_client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/async_client.py @@ -16,7 +16,17 @@ from collections import OrderedDict import functools import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 @@ -161,9 +171,9 @@ def transport(self) -> TemplatesServiceTransport: def __init__( self, *, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, transport: Union[str, TemplatesServiceTransport] = "grpc_asyncio", - client_options: ClientOptions = None, + client_options: Optional[ClientOptions] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the templates service client. @@ -207,10 +217,10 @@ def __init__( async def create_job_from_template( self, - request: Union[templates.CreateJobFromTemplateRequest, dict] = None, + request: Optional[Union[templates.CreateJobFromTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Creates a Cloud Dataflow job from a template. @@ -242,7 +252,7 @@ async def sample_create_job_from_template(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest, dict]]): The request object. A request to create a Cloud Dataflow job from a template. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -292,10 +302,10 @@ async def sample_create_job_from_template(): async def launch_template( self, - request: Union[templates.LaunchTemplateRequest, dict] = None, + request: Optional[Union[templates.LaunchTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchTemplateResponse: r"""Launch a template. @@ -327,7 +337,7 @@ async def sample_launch_template(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.LaunchTemplateRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.LaunchTemplateRequest, dict]]): The request object. A request to launch a template. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -376,10 +386,10 @@ async def sample_launch_template(): async def get_template( self, - request: Union[templates.GetTemplateRequest, dict] = None, + request: Optional[Union[templates.GetTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.GetTemplateResponse: r"""Get the template associated with a template. @@ -411,7 +421,7 @@ async def sample_get_template(): print(response) Args: - request (Union[google.cloud.dataflow_v1beta3.types.GetTemplateRequest, dict]): + request (Optional[Union[google.cloud.dataflow_v1beta3.types.GetTemplateRequest, dict]]): The request object. A request to retrieve a Cloud Dataflow job template. retry (google.api_core.retry.Retry): Designation of what errors, if any, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/client.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/client.py index ef7eefcc257e..aab05304dfed 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/client.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/client.py @@ -16,7 +16,18 @@ from collections import OrderedDict import os import re -from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as core_exceptions @@ -62,7 +73,7 @@ class TemplatesServiceClientMeta(type): def get_transport_class( cls, - label: str = None, + label: Optional[str] = None, ) -> Type[TemplatesServiceTransport]: """Returns an appropriate transport class. @@ -317,8 +328,8 @@ def __init__( self, *, credentials: Optional[ga_credentials.Credentials] = None, - transport: Union[str, TemplatesServiceTransport, None] = None, - client_options: Optional[client_options_lib.ClientOptions] = None, + transport: Optional[Union[str, TemplatesServiceTransport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, ) -> None: """Instantiates the templates service client. @@ -335,7 +346,7 @@ def __init__( NOTE: "rest" transport functionality is currently in a beta state (preview). We welcome your feedback via an issue in this library's source repository. - client_options (google.api_core.client_options.ClientOptions): Custom options for the + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the client. It won't take effect if a ``transport`` instance is provided. (1) The ``api_endpoint`` property can be used to override the default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT @@ -365,6 +376,7 @@ def __init__( client_options = client_options_lib.from_dict(client_options) if client_options is None: client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( client_options @@ -417,10 +429,10 @@ def __init__( def create_job_from_template( self, - request: Union[templates.CreateJobFromTemplateRequest, dict] = None, + request: Optional[Union[templates.CreateJobFromTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Creates a Cloud Dataflow job from a template. @@ -503,10 +515,10 @@ def sample_create_job_from_template(): def launch_template( self, - request: Union[templates.LaunchTemplateRequest, dict] = None, + request: Optional[Union[templates.LaunchTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchTemplateResponse: r"""Launch a template. @@ -588,10 +600,10 @@ def sample_launch_template(): def get_template( self, - request: Union[templates.GetTemplateRequest, dict] = None, + request: Optional[Union[templates.GetTemplateRequest, dict]] = None, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.GetTemplateResponse: r"""Get the template associated with a template. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/base.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/base.py index f17f49237155..008276b86c8f 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/base.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/base.py @@ -53,7 +53,7 @@ def __init__( self, *, host: str = DEFAULT_HOST, - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc.py index 9d4db0856406..78c210c283a2 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc.py @@ -47,14 +47,14 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - channel: grpc.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -181,8 +181,8 @@ def __init__( def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, **kwargs, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc_asyncio.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc_asyncio.py index 7c249a6c7398..ad99ceba2802 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/grpc_asyncio.py @@ -49,7 +49,7 @@ class TemplatesServiceGrpcAsyncIOTransport(TemplatesServiceTransport): def create_channel( cls, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, @@ -92,15 +92,15 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, + credentials: Optional[ga_credentials.Credentials] = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, - channel: aio.Channel = None, - api_mtls_endpoint: str = None, - client_cert_source: Callable[[], Tuple[bytes, bytes]] = None, - ssl_channel_credentials: grpc.ChannelCredentials = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, - quota_project_id=None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, api_audience: Optional[str] = None, diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/rest.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/rest.py index 64b68b618bb7..c392ef9764bc 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/rest.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/services/templates_service/transports/rest.py @@ -184,10 +184,10 @@ def __init__( self, *, host: str = "dataflow.googleapis.com", - credentials: ga_credentials.Credentials = None, - credentials_file: str = None, - scopes: Sequence[str] = None, - client_cert_source_for_mtls: Callable[[], Tuple[bytes, bytes]] = None, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, @@ -269,7 +269,7 @@ def __call__( request: templates.CreateJobFromTemplateRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> jobs.Job: r"""Call the create job from template method over HTTP. @@ -362,7 +362,7 @@ def __call__( request: templates.GetTemplateRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.GetTemplateResponse: r"""Call the get template method over HTTP. @@ -443,7 +443,7 @@ def __call__( request: templates.LaunchTemplateRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: float = None, + timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = (), ) -> templates.LaunchTemplateResponse: r"""Call the launch template method over HTTP. diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/environment.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/environment.py index 339d23210f97..60d03cbd72b6 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/environment.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/environment.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import any_pb2 # type: ignore from google.protobuf import struct_pb2 # type: ignore import proto # type: ignore @@ -136,12 +138,12 @@ class Environment(proto.Message): to choose a reasonable default. This should be in the form of the API service name, e.g. "compute.googleapis.com". - experiments (Sequence[str]): + experiments (MutableSequence[str]): The list of experiments to enable. This field should be used for SDK related experiments and not for service related experiments. The proper field for service related experiments is service_options. - service_options (Sequence[str]): + service_options (MutableSequence[str]): The list of service options to enable. This field should be used for service related experiments only. These experiments, when @@ -155,7 +157,7 @@ class Environment(proto.Message): Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - worker_pools (Sequence[google.cloud.dataflow_v1beta3.types.WorkerPool]): + worker_pools (MutableSequence[google.cloud.dataflow_v1beta3.types.WorkerPool]): The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers. @@ -211,78 +213,78 @@ class Environment(proto.Message): job. """ - temp_storage_prefix = proto.Field( + temp_storage_prefix: str = proto.Field( proto.STRING, number=1, ) - cluster_manager_api_service = proto.Field( + cluster_manager_api_service: str = proto.Field( proto.STRING, number=2, ) - experiments = proto.RepeatedField( + experiments: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=3, ) - service_options = proto.RepeatedField( + service_options: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=16, ) - service_kms_key_name = proto.Field( + service_kms_key_name: str = proto.Field( proto.STRING, number=12, ) - worker_pools = proto.RepeatedField( + worker_pools: MutableSequence["WorkerPool"] = proto.RepeatedField( proto.MESSAGE, number=4, message="WorkerPool", ) - user_agent = proto.Field( + user_agent: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=5, message=struct_pb2.Struct, ) - version = proto.Field( + version: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=6, message=struct_pb2.Struct, ) - dataset = proto.Field( + dataset: str = proto.Field( proto.STRING, number=7, ) - sdk_pipeline_options = proto.Field( + sdk_pipeline_options: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=8, message=struct_pb2.Struct, ) - internal_experiments = proto.Field( + internal_experiments: any_pb2.Any = proto.Field( proto.MESSAGE, number=9, message=any_pb2.Any, ) - service_account_email = proto.Field( + service_account_email: str = proto.Field( proto.STRING, number=10, ) - flex_resource_scheduling_goal = proto.Field( + flex_resource_scheduling_goal: "FlexResourceSchedulingGoal" = proto.Field( proto.ENUM, number=11, enum="FlexResourceSchedulingGoal", ) - worker_region = proto.Field( + worker_region: str = proto.Field( proto.STRING, number=13, ) - worker_zone = proto.Field( + worker_zone: str = proto.Field( proto.STRING, number=14, ) - shuffle_mode = proto.Field( + shuffle_mode: "ShuffleMode" = proto.Field( proto.ENUM, number=15, enum="ShuffleMode", ) - debug_options = proto.Field( + debug_options: "DebugOptions" = proto.Field( proto.MESSAGE, number=17, message="DebugOptions", @@ -312,11 +314,11 @@ class Package(proto.Message): bucket.storage.googleapis.com/ """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=2, ) @@ -358,15 +360,15 @@ class Disk(proto.Message): Directory in a VM where disk is mounted. """ - size_gb = proto.Field( + size_gb: int = proto.Field( proto.INT32, number=1, ) - disk_type = proto.Field( + disk_type: str = proto.Field( proto.STRING, number=2, ) - mount_point = proto.Field( + mount_point: str = proto.Field( proto.STRING, number=3, ) @@ -411,27 +413,27 @@ class WorkerSettings(proto.Message): bucket.storage.googleapis.com/{object} """ - base_url = proto.Field( + base_url: str = proto.Field( proto.STRING, number=1, ) - reporting_enabled = proto.Field( + reporting_enabled: bool = proto.Field( proto.BOOL, number=2, ) - service_path = proto.Field( + service_path: str = proto.Field( proto.STRING, number=3, ) - shuffle_service_path = proto.Field( + shuffle_service_path: str = proto.Field( proto.STRING, number=4, ) - worker_id = proto.Field( + worker_id: str = proto.Field( proto.STRING, number=5, ) - temp_storage_prefix = proto.Field( + temp_storage_prefix: str = proto.Field( proto.STRING, number=6, ) @@ -447,7 +449,7 @@ class TaskRunnerSettings(proto.Message): task_group (str): The UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel". - oauth_scopes (Sequence[str]): + oauth_scopes (MutableSequence[str]): The OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API. @@ -514,80 +516,80 @@ class TaskRunnerSettings(proto.Message): The streaming worker main class name. """ - task_user = proto.Field( + task_user: str = proto.Field( proto.STRING, number=1, ) - task_group = proto.Field( + task_group: str = proto.Field( proto.STRING, number=2, ) - oauth_scopes = proto.RepeatedField( + oauth_scopes: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=3, ) - base_url = proto.Field( + base_url: str = proto.Field( proto.STRING, number=4, ) - dataflow_api_version = proto.Field( + dataflow_api_version: str = proto.Field( proto.STRING, number=5, ) - parallel_worker_settings = proto.Field( + parallel_worker_settings: "WorkerSettings" = proto.Field( proto.MESSAGE, number=6, message="WorkerSettings", ) - base_task_dir = proto.Field( + base_task_dir: str = proto.Field( proto.STRING, number=7, ) - continue_on_exception = proto.Field( + continue_on_exception: bool = proto.Field( proto.BOOL, number=8, ) - log_to_serialconsole = proto.Field( + log_to_serialconsole: bool = proto.Field( proto.BOOL, number=9, ) - alsologtostderr = proto.Field( + alsologtostderr: bool = proto.Field( proto.BOOL, number=10, ) - log_upload_location = proto.Field( + log_upload_location: str = proto.Field( proto.STRING, number=11, ) - log_dir = proto.Field( + log_dir: str = proto.Field( proto.STRING, number=12, ) - temp_storage_prefix = proto.Field( + temp_storage_prefix: str = proto.Field( proto.STRING, number=13, ) - harness_command = proto.Field( + harness_command: str = proto.Field( proto.STRING, number=14, ) - workflow_file_name = proto.Field( + workflow_file_name: str = proto.Field( proto.STRING, number=15, ) - commandlines_file_name = proto.Field( + commandlines_file_name: str = proto.Field( proto.STRING, number=16, ) - vm_id = proto.Field( + vm_id: str = proto.Field( proto.STRING, number=17, ) - language_hint = proto.Field( + language_hint: str = proto.Field( proto.STRING, number=18, ) - streaming_worker_main_class = proto.Field( + streaming_worker_main_class: str = proto.Field( proto.STRING, number=19, ) @@ -604,12 +606,12 @@ class AutoscalingSettings(proto.Message): at. """ - algorithm = proto.Field( + algorithm: "AutoscalingAlgorithm" = proto.Field( proto.ENUM, number=1, enum="AutoscalingAlgorithm", ) - max_num_workers = proto.Field( + max_num_workers: int = proto.Field( proto.INT32, number=2, ) @@ -635,25 +637,25 @@ class SdkHarnessContainerImage(proto.Message): Environment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness. - capabilities (Sequence[str]): + capabilities (MutableSequence[str]): The set of capabilities enumerated in the above Environment proto. See also https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto """ - container_image = proto.Field( + container_image: str = proto.Field( proto.STRING, number=1, ) - use_single_core_per_container = proto.Field( + use_single_core_per_container: bool = proto.Field( proto.BOOL, number=2, ) - environment_id = proto.Field( + environment_id: str = proto.Field( proto.STRING, number=3, ) - capabilities = proto.RepeatedField( + capabilities: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=4, ) @@ -675,7 +677,7 @@ class WorkerPool(proto.Message): this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default. - packages (Sequence[google.cloud.dataflow_v1beta3.types.Package]): + packages (MutableSequence[google.cloud.dataflow_v1beta3.types.Package]): Packages to be installed on workers. default_package_set (google.cloud.dataflow_v1beta3.types.DefaultPackageSet): The default package set to install. This @@ -726,10 +728,10 @@ class WorkerPool(proto.Message): on_host_maintenance (str): The action to take on host maintenance, as defined by the Google Compute Engine API. - data_disks (Sequence[google.cloud.dataflow_v1beta3.types.Disk]): + data_disks (MutableSequence[google.cloud.dataflow_v1beta3.types.Disk]): Data disks that are used by a VM in this workflow. - metadata (Mapping[str, str]): + metadata (MutableMapping[str, str]): Metadata to set on the Google Compute Engine VMs. autoscaling_settings (google.cloud.dataflow_v1beta3.types.AutoscalingSettings): @@ -759,7 +761,7 @@ class WorkerPool(proto.Message): 1 by convention for streaming). ip_configuration (google.cloud.dataflow_v1beta3.types.WorkerIPAddressConfiguration): Configuration for VM IPs. - sdk_harness_container_images (Sequence[google.cloud.dataflow_v1beta3.types.SdkHarnessContainerImage]): + sdk_harness_container_images (MutableSequence[google.cloud.dataflow_v1beta3.types.SdkHarnessContainerImage]): Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language @@ -768,100 +770,102 @@ class WorkerPool(proto.Message): entries. """ - kind = proto.Field( + kind: str = proto.Field( proto.STRING, number=1, ) - num_workers = proto.Field( + num_workers: int = proto.Field( proto.INT32, number=2, ) - packages = proto.RepeatedField( + packages: MutableSequence["Package"] = proto.RepeatedField( proto.MESSAGE, number=3, message="Package", ) - default_package_set = proto.Field( + default_package_set: "DefaultPackageSet" = proto.Field( proto.ENUM, number=4, enum="DefaultPackageSet", ) - machine_type = proto.Field( + machine_type: str = proto.Field( proto.STRING, number=5, ) - teardown_policy = proto.Field( + teardown_policy: "TeardownPolicy" = proto.Field( proto.ENUM, number=6, enum="TeardownPolicy", ) - disk_size_gb = proto.Field( + disk_size_gb: int = proto.Field( proto.INT32, number=7, ) - disk_type = proto.Field( + disk_type: str = proto.Field( proto.STRING, number=16, ) - disk_source_image = proto.Field( + disk_source_image: str = proto.Field( proto.STRING, number=8, ) - zone = proto.Field( + zone: str = proto.Field( proto.STRING, number=9, ) - taskrunner_settings = proto.Field( + taskrunner_settings: "TaskRunnerSettings" = proto.Field( proto.MESSAGE, number=10, message="TaskRunnerSettings", ) - on_host_maintenance = proto.Field( + on_host_maintenance: str = proto.Field( proto.STRING, number=11, ) - data_disks = proto.RepeatedField( + data_disks: MutableSequence["Disk"] = proto.RepeatedField( proto.MESSAGE, number=12, message="Disk", ) - metadata = proto.MapField( + metadata: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=13, ) - autoscaling_settings = proto.Field( + autoscaling_settings: "AutoscalingSettings" = proto.Field( proto.MESSAGE, number=14, message="AutoscalingSettings", ) - pool_args = proto.Field( + pool_args: any_pb2.Any = proto.Field( proto.MESSAGE, number=15, message=any_pb2.Any, ) - network = proto.Field( + network: str = proto.Field( proto.STRING, number=17, ) - subnetwork = proto.Field( + subnetwork: str = proto.Field( proto.STRING, number=19, ) - worker_harness_container_image = proto.Field( + worker_harness_container_image: str = proto.Field( proto.STRING, number=18, ) - num_threads_per_worker = proto.Field( + num_threads_per_worker: int = proto.Field( proto.INT32, number=20, ) - ip_configuration = proto.Field( + ip_configuration: "WorkerIPAddressConfiguration" = proto.Field( proto.ENUM, number=21, enum="WorkerIPAddressConfiguration", ) - sdk_harness_container_images = proto.RepeatedField( + sdk_harness_container_images: MutableSequence[ + "SdkHarnessContainerImage" + ] = proto.RepeatedField( proto.MESSAGE, number=22, message="SdkHarnessContainerImage", @@ -878,7 +882,7 @@ class DebugOptions(proto.Message): hot key to the user's Cloud Logging. """ - enable_hot_key_logging = proto.Field( + enable_hot_key_logging: bool = proto.Field( proto.BOOL, number=1, ) diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/jobs.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/jobs.py index 07385c395655..0d2e53819f9a 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/jobs.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/jobs.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import duration_pb2 # type: ignore from google.protobuf import struct_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -124,7 +126,7 @@ class Job(proto.Message): The type of Cloud Dataflow job. environment (google.cloud.dataflow_v1beta3.types.Environment): The environment for the job. - steps (Sequence[google.cloud.dataflow_v1beta3.types.Step]): + steps (MutableSequence[google.cloud.dataflow_v1beta3.types.Step]): Exactly one of step or steps_location should be specified. The top-level steps that constitute the entire job. Only @@ -170,7 +172,7 @@ class Job(proto.Message): When sending a ``CreateJobRequest``, you can update a job by specifying it here. The job named here is stopped, and its intermediate state is transferred to this job. - transform_name_mapping (Mapping[str, str]): + transform_name_mapping (MutableMapping[str, str]): The map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. @@ -189,7 +191,7 @@ class Job(proto.Message): If another job is an update of this job (and thus, this job is in ``JOB_STATE_UPDATED``), this field contains the ID of that job. - temp_files (Sequence[str]): + temp_files (MutableSequence[str]): A set of files the system should be aware of that are used for temporary storage. These temporary files will be removed on job @@ -203,7 +205,7 @@ class Job(proto.Message): storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object} - labels (Mapping[str, str]): + labels (MutableMapping[str, str]): User-defined labels for this job. The labels map can contain no more than 64 entries. Entries @@ -225,7 +227,7 @@ class Job(proto.Message): time. A description of the user pipeline and stages through which it is executed. Created by Cloud Dataflow service. Only retrieved with JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - stage_states (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageState]): + stage_states (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageState]): This field may be mutated by the Cloud Dataflow service; callers cannot mutate it. job_metadata (google.cloud.dataflow_v1beta3.types.JobMetadata): @@ -251,117 +253,117 @@ class Job(proto.Message): if it is set in any requests. """ - id = proto.Field( + id: str = proto.Field( proto.STRING, number=1, ) - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=2, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=3, ) - type_ = proto.Field( + type_: gd_environment.JobType = proto.Field( proto.ENUM, number=4, enum=gd_environment.JobType, ) - environment = proto.Field( + environment: gd_environment.Environment = proto.Field( proto.MESSAGE, number=5, message=gd_environment.Environment, ) - steps = proto.RepeatedField( + steps: MutableSequence["Step"] = proto.RepeatedField( proto.MESSAGE, number=6, message="Step", ) - steps_location = proto.Field( + steps_location: str = proto.Field( proto.STRING, number=24, ) - current_state = proto.Field( + current_state: "JobState" = proto.Field( proto.ENUM, number=7, enum="JobState", ) - current_state_time = proto.Field( + current_state_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=8, message=timestamp_pb2.Timestamp, ) - requested_state = proto.Field( + requested_state: "JobState" = proto.Field( proto.ENUM, number=9, enum="JobState", ) - execution_info = proto.Field( + execution_info: "JobExecutionInfo" = proto.Field( proto.MESSAGE, number=10, message="JobExecutionInfo", ) - create_time = proto.Field( + create_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=11, message=timestamp_pb2.Timestamp, ) - replace_job_id = proto.Field( + replace_job_id: str = proto.Field( proto.STRING, number=12, ) - transform_name_mapping = proto.MapField( + transform_name_mapping: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=13, ) - client_request_id = proto.Field( + client_request_id: str = proto.Field( proto.STRING, number=14, ) - replaced_by_job_id = proto.Field( + replaced_by_job_id: str = proto.Field( proto.STRING, number=15, ) - temp_files = proto.RepeatedField( + temp_files: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=16, ) - labels = proto.MapField( + labels: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=17, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=18, ) - pipeline_description = proto.Field( + pipeline_description: "PipelineDescription" = proto.Field( proto.MESSAGE, number=19, message="PipelineDescription", ) - stage_states = proto.RepeatedField( + stage_states: MutableSequence["ExecutionStageState"] = proto.RepeatedField( proto.MESSAGE, number=20, message="ExecutionStageState", ) - job_metadata = proto.Field( + job_metadata: "JobMetadata" = proto.Field( proto.MESSAGE, number=21, message="JobMetadata", ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=22, message=timestamp_pb2.Timestamp, ) - created_from_snapshot_id = proto.Field( + created_from_snapshot_id: str = proto.Field( proto.STRING, number=23, ) - satisfies_pzs = proto.Field( + satisfies_pzs: bool = proto.Field( proto.BOOL, number=25, ) @@ -377,11 +379,11 @@ class DatastoreIODetails(proto.Message): ProjectId accessed in the connection. """ - namespace = proto.Field( + namespace: str = proto.Field( proto.STRING, number=1, ) - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=2, ) @@ -397,11 +399,11 @@ class PubSubIODetails(proto.Message): Subscription used in the connection. """ - topic = proto.Field( + topic: str = proto.Field( proto.STRING, number=1, ) - subscription = proto.Field( + subscription: str = proto.Field( proto.STRING, number=2, ) @@ -416,7 +418,7 @@ class FileIODetails(proto.Message): connector. """ - file_pattern = proto.Field( + file_pattern: str = proto.Field( proto.STRING, number=1, ) @@ -434,15 +436,15 @@ class BigTableIODetails(proto.Message): TableId accessed in the connection. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - instance_id = proto.Field( + instance_id: str = proto.Field( proto.STRING, number=2, ) - table_id = proto.Field( + table_id: str = proto.Field( proto.STRING, number=3, ) @@ -462,19 +464,19 @@ class BigQueryIODetails(proto.Message): Query used to access data in the connection. """ - table = proto.Field( + table: str = proto.Field( proto.STRING, number=1, ) - dataset = proto.Field( + dataset: str = proto.Field( proto.STRING, number=2, ) - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=3, ) - query = proto.Field( + query: str = proto.Field( proto.STRING, number=4, ) @@ -492,15 +494,15 @@ class SpannerIODetails(proto.Message): DatabaseId accessed in the connection. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - instance_id = proto.Field( + instance_id: str = proto.Field( proto.STRING, number=2, ) - database_id = proto.Field( + database_id: str = proto.Field( proto.STRING, number=3, ) @@ -527,15 +529,15 @@ class SdkSupportStatus(proto.Enum): DEPRECATED = 3 UNSUPPORTED = 4 - version = proto.Field( + version: str = proto.Field( proto.STRING, number=1, ) - version_display_name = proto.Field( + version_display_name: str = proto.Field( proto.STRING, number=2, ) - sdk_support_status = proto.Field( + sdk_support_status: SdkSupportStatus = proto.Field( proto.ENUM, number=3, enum=SdkSupportStatus, @@ -549,57 +551,57 @@ class JobMetadata(proto.Message): Attributes: sdk_version (google.cloud.dataflow_v1beta3.types.SdkVersion): The SDK version used to run the job. - spanner_details (Sequence[google.cloud.dataflow_v1beta3.types.SpannerIODetails]): + spanner_details (MutableSequence[google.cloud.dataflow_v1beta3.types.SpannerIODetails]): Identification of a Spanner source used in the Dataflow job. - bigquery_details (Sequence[google.cloud.dataflow_v1beta3.types.BigQueryIODetails]): + bigquery_details (MutableSequence[google.cloud.dataflow_v1beta3.types.BigQueryIODetails]): Identification of a BigQuery source used in the Dataflow job. - big_table_details (Sequence[google.cloud.dataflow_v1beta3.types.BigTableIODetails]): + big_table_details (MutableSequence[google.cloud.dataflow_v1beta3.types.BigTableIODetails]): Identification of a Cloud Bigtable source used in the Dataflow job. - pubsub_details (Sequence[google.cloud.dataflow_v1beta3.types.PubSubIODetails]): + pubsub_details (MutableSequence[google.cloud.dataflow_v1beta3.types.PubSubIODetails]): Identification of a Pub/Sub source used in the Dataflow job. - file_details (Sequence[google.cloud.dataflow_v1beta3.types.FileIODetails]): + file_details (MutableSequence[google.cloud.dataflow_v1beta3.types.FileIODetails]): Identification of a File source used in the Dataflow job. - datastore_details (Sequence[google.cloud.dataflow_v1beta3.types.DatastoreIODetails]): + datastore_details (MutableSequence[google.cloud.dataflow_v1beta3.types.DatastoreIODetails]): Identification of a Datastore source used in the Dataflow job. """ - sdk_version = proto.Field( + sdk_version: "SdkVersion" = proto.Field( proto.MESSAGE, number=1, message="SdkVersion", ) - spanner_details = proto.RepeatedField( + spanner_details: MutableSequence["SpannerIODetails"] = proto.RepeatedField( proto.MESSAGE, number=2, message="SpannerIODetails", ) - bigquery_details = proto.RepeatedField( + bigquery_details: MutableSequence["BigQueryIODetails"] = proto.RepeatedField( proto.MESSAGE, number=3, message="BigQueryIODetails", ) - big_table_details = proto.RepeatedField( + big_table_details: MutableSequence["BigTableIODetails"] = proto.RepeatedField( proto.MESSAGE, number=4, message="BigTableIODetails", ) - pubsub_details = proto.RepeatedField( + pubsub_details: MutableSequence["PubSubIODetails"] = proto.RepeatedField( proto.MESSAGE, number=5, message="PubSubIODetails", ) - file_details = proto.RepeatedField( + file_details: MutableSequence["FileIODetails"] = proto.RepeatedField( proto.MESSAGE, number=6, message="FileIODetails", ) - datastore_details = proto.RepeatedField( + datastore_details: MutableSequence["DatastoreIODetails"] = proto.RepeatedField( proto.MESSAGE, number=7, message="DatastoreIODetails", @@ -621,16 +623,16 @@ class ExecutionStageState(proto.Message): this state. """ - execution_stage_name = proto.Field( + execution_stage_name: str = proto.Field( proto.STRING, number=1, ) - execution_stage_state = proto.Field( + execution_stage_state: "JobState" = proto.Field( proto.ENUM, number=2, enum="JobState", ) - current_state_time = proto.Field( + current_state_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, @@ -644,27 +646,31 @@ class PipelineDescription(proto.Message): Dataflow provided metrics. Attributes: - original_pipeline_transform (Sequence[google.cloud.dataflow_v1beta3.types.TransformSummary]): + original_pipeline_transform (MutableSequence[google.cloud.dataflow_v1beta3.types.TransformSummary]): Description of each transform in the pipeline and collections between them. - execution_pipeline_stage (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary]): + execution_pipeline_stage (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary]): Description of each stage of execution of the pipeline. - display_data (Sequence[google.cloud.dataflow_v1beta3.types.DisplayData]): + display_data (MutableSequence[google.cloud.dataflow_v1beta3.types.DisplayData]): Pipeline level display data. """ - original_pipeline_transform = proto.RepeatedField( + original_pipeline_transform: MutableSequence[ + "TransformSummary" + ] = proto.RepeatedField( proto.MESSAGE, number=1, message="TransformSummary", ) - execution_pipeline_stage = proto.RepeatedField( + execution_pipeline_stage: MutableSequence[ + "ExecutionStageSummary" + ] = proto.RepeatedField( proto.MESSAGE, number=2, message="ExecutionStageSummary", ) - display_data = proto.RepeatedField( + display_data: MutableSequence["DisplayData"] = proto.RepeatedField( proto.MESSAGE, number=3, message="DisplayData", @@ -683,39 +689,39 @@ class TransformSummary(proto.Message): name (str): User provided name for this transform instance. - display_data (Sequence[google.cloud.dataflow_v1beta3.types.DisplayData]): + display_data (MutableSequence[google.cloud.dataflow_v1beta3.types.DisplayData]): Transform-specific display data. - output_collection_name (Sequence[str]): + output_collection_name (MutableSequence[str]): User names for all collection outputs to this transform. - input_collection_name (Sequence[str]): + input_collection_name (MutableSequence[str]): User names for all collection inputs to this transform. """ - kind = proto.Field( + kind: "KindType" = proto.Field( proto.ENUM, number=1, enum="KindType", ) - id = proto.Field( + id: str = proto.Field( proto.STRING, number=2, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=3, ) - display_data = proto.RepeatedField( + display_data: MutableSequence["DisplayData"] = proto.RepeatedField( proto.MESSAGE, number=4, message="DisplayData", ) - output_collection_name = proto.RepeatedField( + output_collection_name: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=5, ) - input_collection_name = proto.RepeatedField( + input_collection_name: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=6, ) @@ -735,17 +741,17 @@ class ExecutionStageSummary(proto.Message): Dataflow service generated id for this stage. kind (google.cloud.dataflow_v1beta3.types.KindType): Type of transform this stage is executing. - input_source (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.StageSource]): + input_source (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.StageSource]): Input sources for this stage. - output_source (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.StageSource]): + output_source (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.StageSource]): Output sources for this stage. - prerequisite_stage (Sequence[str]): + prerequisite_stage (MutableSequence[str]): Other stages that must complete before this stage can run. - component_transform (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.ComponentTransform]): + component_transform (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.ComponentTransform]): Transforms that comprise this execution stage. - component_source (Sequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.ComponentSource]): + component_source (MutableSequence[google.cloud.dataflow_v1beta3.types.ExecutionStageSummary.ComponentSource]): Collections produced and consumed by component transforms of this stage. """ @@ -768,19 +774,19 @@ class StageSource(proto.Message): Size of the source, if measurable. """ - user_name = proto.Field( + user_name: str = proto.Field( proto.STRING, number=1, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=2, ) - original_transform_or_collection = proto.Field( + original_transform_or_collection: str = proto.Field( proto.STRING, number=3, ) - size_bytes = proto.Field( + size_bytes: int = proto.Field( proto.INT64, number=4, ) @@ -802,15 +808,15 @@ class ComponentTransform(proto.Message): associated. """ - user_name = proto.Field( + user_name: str = proto.Field( proto.STRING, number=1, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=2, ) - original_transform = proto.Field( + original_transform: str = proto.Field( proto.STRING, number=3, ) @@ -832,52 +838,52 @@ class ComponentSource(proto.Message): closely associated. """ - user_name = proto.Field( + user_name: str = proto.Field( proto.STRING, number=1, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=2, ) - original_transform_or_collection = proto.Field( + original_transform_or_collection: str = proto.Field( proto.STRING, number=3, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - id = proto.Field( + id: str = proto.Field( proto.STRING, number=2, ) - kind = proto.Field( + kind: "KindType" = proto.Field( proto.ENUM, number=3, enum="KindType", ) - input_source = proto.RepeatedField( + input_source: MutableSequence[StageSource] = proto.RepeatedField( proto.MESSAGE, number=4, message=StageSource, ) - output_source = proto.RepeatedField( + output_source: MutableSequence[StageSource] = proto.RepeatedField( proto.MESSAGE, number=5, message=StageSource, ) - prerequisite_stage = proto.RepeatedField( + prerequisite_stage: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=8, ) - component_transform = proto.RepeatedField( + component_transform: MutableSequence[ComponentTransform] = proto.RepeatedField( proto.MESSAGE, number=6, message=ComponentTransform, ) - component_source = proto.RepeatedField( + component_source: MutableSequence[ComponentSource] = proto.RepeatedField( proto.MESSAGE, number=7, message=ComponentSource, @@ -954,60 +960,60 @@ class name or programming language namespace the element. """ - key = proto.Field( + key: str = proto.Field( proto.STRING, number=1, ) - namespace = proto.Field( + namespace: str = proto.Field( proto.STRING, number=2, ) - str_value = proto.Field( + str_value: str = proto.Field( proto.STRING, number=4, oneof="Value", ) - int64_value = proto.Field( + int64_value: int = proto.Field( proto.INT64, number=5, oneof="Value", ) - float_value = proto.Field( + float_value: float = proto.Field( proto.FLOAT, number=6, oneof="Value", ) - java_class_value = proto.Field( + java_class_value: str = proto.Field( proto.STRING, number=7, oneof="Value", ) - timestamp_value = proto.Field( + timestamp_value: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=8, oneof="Value", message=timestamp_pb2.Timestamp, ) - duration_value = proto.Field( + duration_value: duration_pb2.Duration = proto.Field( proto.MESSAGE, number=9, oneof="Value", message=duration_pb2.Duration, ) - bool_value = proto.Field( + bool_value: bool = proto.Field( proto.BOOL, number=10, oneof="Value", ) - short_str_value = proto.Field( + short_str_value: str = proto.Field( proto.STRING, number=11, ) - url = proto.Field( + url: str = proto.Field( proto.STRING, number=12, ) - label = proto.Field( + label: str = proto.Field( proto.STRING, number=13, ) @@ -1053,15 +1059,15 @@ class Step(proto.Message): be provided on Create. Only retrieved with JOB_VIEW_ALL. """ - kind = proto.Field( + kind: str = proto.Field( proto.STRING, number=1, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=2, ) - properties = proto.Field( + properties: struct_pb2.Struct = proto.Field( proto.MESSAGE, number=3, message=struct_pb2.Struct, @@ -1073,12 +1079,12 @@ class JobExecutionInfo(proto.Message): executed that isn't contained in the submitted job. Attributes: - stages (Mapping[str, google.cloud.dataflow_v1beta3.types.JobExecutionStageInfo]): + stages (MutableMapping[str, google.cloud.dataflow_v1beta3.types.JobExecutionStageInfo]): A mapping from each stage to the information about that stage. """ - stages = proto.MapField( + stages: MutableMapping[str, "JobExecutionStageInfo"] = proto.MapField( proto.STRING, proto.MESSAGE, number=1, @@ -1092,14 +1098,14 @@ class JobExecutionStageInfo(proto.Message): executed. Attributes: - step_name (Sequence[str]): + step_name (MutableSequence[str]): The steps associated with the execution stage. Note that stages may have several steps, and that a given step might be run by more than one stage. """ - step_name = proto.RepeatedField( + step_name: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=1, ) @@ -1126,25 +1132,25 @@ class CreateJobRequest(proto.Message): that contains this job. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job = proto.Field( + job: "Job" = proto.Field( proto.MESSAGE, number=2, message="Job", ) - view = proto.Field( + view: "JobView" = proto.Field( proto.ENUM, number=3, enum="JobView", ) - replace_job_id = proto.Field( + replace_job_id: str = proto.Field( proto.STRING, number=4, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=5, ) @@ -1168,20 +1174,20 @@ class GetJobRequest(proto.Message): that contains this job. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - view = proto.Field( + view: "JobView" = proto.Field( proto.ENUM, number=3, enum="JobView", ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=4, ) @@ -1206,20 +1212,20 @@ class UpdateJobRequest(proto.Message): that contains this job. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - job = proto.Field( + job: "Job" = proto.Field( proto.MESSAGE, number=3, message="Job", ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=4, ) @@ -1259,29 +1265,29 @@ class Filter(proto.Enum): TERMINATED = 2 ACTIVE = 3 - filter = proto.Field( + filter: Filter = proto.Field( proto.ENUM, number=5, enum=Filter, ) - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - view = proto.Field( + view: "JobView" = proto.Field( proto.ENUM, number=2, enum="JobView", ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=3, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=4, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=17, ) @@ -1299,7 +1305,7 @@ class FailedLocation(proto.Message): that failed to respond. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) @@ -1313,12 +1319,12 @@ class ListJobsResponse(proto.Message): and the requests's response body is empty {}. Attributes: - jobs (Sequence[google.cloud.dataflow_v1beta3.types.Job]): + jobs (MutableSequence[google.cloud.dataflow_v1beta3.types.Job]): A subset of the requested job information. next_page_token (str): Set if there may be more results than fit in this response. - failed_location (Sequence[google.cloud.dataflow_v1beta3.types.FailedLocation]): + failed_location (MutableSequence[google.cloud.dataflow_v1beta3.types.FailedLocation]): Zero or more messages describing the [regional endpoints] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that failed to respond. @@ -1328,16 +1334,16 @@ class ListJobsResponse(proto.Message): def raw_page(self): return self - jobs = proto.RepeatedField( + jobs: MutableSequence["Job"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Job", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) - failed_location = proto.RepeatedField( + failed_location: MutableSequence["FailedLocation"] = proto.RepeatedField( proto.MESSAGE, number=3, message="FailedLocation", @@ -1365,28 +1371,28 @@ class SnapshotJobRequest(proto.Message): Maybe empty. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - ttl = proto.Field( + ttl: duration_pb2.Duration = proto.Field( proto.MESSAGE, number=3, message=duration_pb2.Duration, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=4, ) - snapshot_sources = proto.Field( + snapshot_sources: bool = proto.Field( proto.BOOL, number=5, ) - description = proto.Field( + description: str = proto.Field( proto.STRING, number=6, ) @@ -1400,7 +1406,7 @@ class CheckActiveJobsRequest(proto.Message): The project which owns the jobs. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) @@ -1415,7 +1421,7 @@ class CheckActiveJobsResponse(proto.Message): False otherwise. """ - active_jobs_exist = proto.Field( + active_jobs_exist: bool = proto.Field( proto.BOOL, number=1, ) diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/messages.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/messages.py index b46a5d0a49ad..e3da0837f7b7 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/messages.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/messages.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import struct_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore @@ -54,20 +56,20 @@ class JobMessage(proto.Message): Importance level of the message. """ - id = proto.Field( + id: str = proto.Field( proto.STRING, number=1, ) - time = proto.Field( + time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=2, message=timestamp_pb2.Timestamp, ) - message_text = proto.Field( + message_text: str = proto.Field( proto.STRING, number=3, ) - message_importance = proto.Field( + message_importance: "JobMessageImportance" = proto.Field( proto.ENUM, number=4, enum="JobMessageImportance", @@ -86,7 +88,7 @@ class StructuredMessage(proto.Message): Identifier for this message type. Used by external systems to internationalize or personalize message. - parameters (Sequence[google.cloud.dataflow_v1beta3.types.StructuredMessage.Parameter]): + parameters (MutableSequence[google.cloud.dataflow_v1beta3.types.StructuredMessage.Parameter]): The structured data associated with this message. """ @@ -101,25 +103,25 @@ class Parameter(proto.Message): Value for this parameter. """ - key = proto.Field( + key: str = proto.Field( proto.STRING, number=1, ) - value = proto.Field( + value: struct_pb2.Value = proto.Field( proto.MESSAGE, number=2, message=struct_pb2.Value, ) - message_text = proto.Field( + message_text: str = proto.Field( proto.STRING, number=1, ) - message_key = proto.Field( + message_key: str = proto.Field( proto.STRING, number=2, ) - parameters = proto.RepeatedField( + parameters: MutableSequence[Parameter] = proto.RepeatedField( proto.MESSAGE, number=3, message=Parameter, @@ -159,30 +161,30 @@ class AutoscalingEventType(proto.Enum): ACTUATION_FAILURE = 3 NO_CHANGE = 4 - current_num_workers = proto.Field( + current_num_workers: int = proto.Field( proto.INT64, number=1, ) - target_num_workers = proto.Field( + target_num_workers: int = proto.Field( proto.INT64, number=2, ) - event_type = proto.Field( + event_type: AutoscalingEventType = proto.Field( proto.ENUM, number=3, enum=AutoscalingEventType, ) - description = proto.Field( + description: "StructuredMessage" = proto.Field( proto.MESSAGE, number=4, message="StructuredMessage", ) - time = proto.Field( + time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp, ) - worker_pool = proto.Field( + worker_pool: str = proto.Field( proto.STRING, number=7, ) @@ -225,38 +227,38 @@ class ListJobMessagesRequest(proto.Message): that contains the job specified by job_id. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - minimum_importance = proto.Field( + minimum_importance: "JobMessageImportance" = proto.Field( proto.ENUM, number=3, enum="JobMessageImportance", ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=4, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=5, ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=6, message=timestamp_pb2.Timestamp, ) - end_time = proto.Field( + end_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=7, message=timestamp_pb2.Timestamp, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=8, ) @@ -266,12 +268,12 @@ class ListJobMessagesResponse(proto.Message): r"""Response to a request to list job messages. Attributes: - job_messages (Sequence[google.cloud.dataflow_v1beta3.types.JobMessage]): + job_messages (MutableSequence[google.cloud.dataflow_v1beta3.types.JobMessage]): Messages in ascending timestamp order. next_page_token (str): The token to obtain the next page of results if there are more. - autoscaling_events (Sequence[google.cloud.dataflow_v1beta3.types.AutoscalingEvent]): + autoscaling_events (MutableSequence[google.cloud.dataflow_v1beta3.types.AutoscalingEvent]): Autoscaling events in ascending timestamp order. """ @@ -280,16 +282,16 @@ class ListJobMessagesResponse(proto.Message): def raw_page(self): return self - job_messages = proto.RepeatedField( + job_messages: MutableSequence["JobMessage"] = proto.RepeatedField( proto.MESSAGE, number=1, message="JobMessage", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) - autoscaling_events = proto.RepeatedField( + autoscaling_events: MutableSequence["AutoscalingEvent"] = proto.RepeatedField( proto.MESSAGE, number=3, message="AutoscalingEvent", diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/metrics.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/metrics.py index ef1aa20a8658..c52f0ad7a77c 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/metrics.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/metrics.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import struct_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore @@ -59,7 +61,7 @@ class MetricStructuredName(proto.Message): service or SDK. name (str): Worker-defined metric name. - context (Mapping[str, str]): + context (MutableMapping[str, str]): Zero or more labeled fields which identify the part of the job this metric is associated with, such as the name of a step or collection. @@ -69,15 +71,15 @@ class MetricStructuredName(proto.Message): PCollections in the SDK will have context['pcollection'] = . """ - origin = proto.Field( + origin: str = proto.Field( proto.STRING, number=1, ) - name = proto.Field( + name: str = proto.Field( proto.STRING, number=2, ) - context = proto.MapField( + context: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=3, @@ -146,55 +148,55 @@ class MetricUpdate(proto.Message): the metrics API. """ - name = proto.Field( + name: "MetricStructuredName" = proto.Field( proto.MESSAGE, number=1, message="MetricStructuredName", ) - kind = proto.Field( + kind: str = proto.Field( proto.STRING, number=2, ) - cumulative = proto.Field( + cumulative: bool = proto.Field( proto.BOOL, number=3, ) - scalar = proto.Field( + scalar: struct_pb2.Value = proto.Field( proto.MESSAGE, number=4, message=struct_pb2.Value, ) - mean_sum = proto.Field( + mean_sum: struct_pb2.Value = proto.Field( proto.MESSAGE, number=5, message=struct_pb2.Value, ) - mean_count = proto.Field( + mean_count: struct_pb2.Value = proto.Field( proto.MESSAGE, number=6, message=struct_pb2.Value, ) - set_ = proto.Field( + set_: struct_pb2.Value = proto.Field( proto.MESSAGE, number=7, message=struct_pb2.Value, ) - distribution = proto.Field( + distribution: struct_pb2.Value = proto.Field( proto.MESSAGE, number=11, message=struct_pb2.Value, ) - gauge = proto.Field( + gauge: struct_pb2.Value = proto.Field( proto.MESSAGE, number=12, message=struct_pb2.Value, ) - internal = proto.Field( + internal: struct_pb2.Value = proto.Field( proto.MESSAGE, number=8, message=struct_pb2.Value, ) - update_time = proto.Field( + update_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=9, message=timestamp_pb2.Timestamp, @@ -219,20 +221,20 @@ class GetJobMetricsRequest(proto.Message): that contains the job specified by job_id. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=4, ) @@ -251,16 +253,16 @@ class JobMetrics(proto.Message): metric_time (google.protobuf.timestamp_pb2.Timestamp): Timestamp as of which metric values are current. - metrics (Sequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): + metrics (MutableSequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): All metrics for this job. """ - metric_time = proto.Field( + metric_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=1, message=timestamp_pb2.Timestamp, ) - metrics = proto.RepeatedField( + metrics: MutableSequence["MetricUpdate"] = proto.RepeatedField( proto.MESSAGE, number=2, message="MetricUpdate", @@ -291,23 +293,23 @@ class GetJobExecutionDetailsRequest(proto.Message): of results to be returned. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=3, ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=4, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=5, ) @@ -320,7 +322,7 @@ class ProgressTimeseries(proto.Message): Attributes: current_progress (float): The current progress of the component, in the range [0,1]. - data_points (Sequence[google.cloud.dataflow_v1beta3.types.ProgressTimeseries.Point]): + data_points (MutableSequence[google.cloud.dataflow_v1beta3.types.ProgressTimeseries.Point]): History of progress for the component. Points are sorted by time. """ @@ -335,21 +337,21 @@ class Point(proto.Message): The value of the point. """ - time = proto.Field( + time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=1, message=timestamp_pb2.Timestamp, ) - value = proto.Field( + value: float = proto.Field( proto.DOUBLE, number=2, ) - current_progress = proto.Field( + current_progress: float = proto.Field( proto.DOUBLE, number=1, ) - data_points = proto.RepeatedField( + data_points: MutableSequence[Point] = proto.RepeatedField( proto.MESSAGE, number=2, message=Point, @@ -374,35 +376,35 @@ class StageSummary(proto.Message): progress (google.cloud.dataflow_v1beta3.types.ProgressTimeseries): Progress for this stage. Only applicable to Batch jobs. - metrics (Sequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): + metrics (MutableSequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): Metrics for this stage. """ - stage_id = proto.Field( + stage_id: str = proto.Field( proto.STRING, number=1, ) - state = proto.Field( + state: "ExecutionState" = proto.Field( proto.ENUM, number=2, enum="ExecutionState", ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, ) - end_time = proto.Field( + end_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=4, message=timestamp_pb2.Timestamp, ) - progress = proto.Field( + progress: "ProgressTimeseries" = proto.Field( proto.MESSAGE, number=5, message="ProgressTimeseries", ) - metrics = proto.RepeatedField( + metrics: MutableSequence["MetricUpdate"] = proto.RepeatedField( proto.MESSAGE, number=6, message="MetricUpdate", @@ -413,7 +415,7 @@ class JobExecutionDetails(proto.Message): r"""Information about the execution of a job. Attributes: - stages (Sequence[google.cloud.dataflow_v1beta3.types.StageSummary]): + stages (MutableSequence[google.cloud.dataflow_v1beta3.types.StageSummary]): The stages of the job execution. next_page_token (str): If present, this response does not contain all requested @@ -425,12 +427,12 @@ class JobExecutionDetails(proto.Message): def raw_page(self): return self - stages = proto.RepeatedField( + stages: MutableSequence["StageSummary"] = proto.RepeatedField( proto.MESSAGE, number=1, message="StageSummary", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) @@ -469,36 +471,36 @@ class GetStageExecutionDetailsRequest(proto.Message): start time. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=2, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=3, ) - stage_id = proto.Field( + stage_id: str = proto.Field( proto.STRING, number=4, ) - page_size = proto.Field( + page_size: int = proto.Field( proto.INT32, number=5, ) - page_token = proto.Field( + page_token: str = proto.Field( proto.STRING, number=6, ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=7, message=timestamp_pb2.Timestamp, ) - end_time = proto.Field( + end_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=8, message=timestamp_pb2.Timestamp, @@ -524,39 +526,39 @@ class WorkItemDetails(proto.Message): State of this work item. progress (google.cloud.dataflow_v1beta3.types.ProgressTimeseries): Progress of this work item. - metrics (Sequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): + metrics (MutableSequence[google.cloud.dataflow_v1beta3.types.MetricUpdate]): Metrics for this work item. """ - task_id = proto.Field( + task_id: str = proto.Field( proto.STRING, number=1, ) - attempt_id = proto.Field( + attempt_id: str = proto.Field( proto.STRING, number=2, ) - start_time = proto.Field( + start_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, ) - end_time = proto.Field( + end_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=4, message=timestamp_pb2.Timestamp, ) - state = proto.Field( + state: "ExecutionState" = proto.Field( proto.ENUM, number=5, enum="ExecutionState", ) - progress = proto.Field( + progress: "ProgressTimeseries" = proto.Field( proto.MESSAGE, number=6, message="ProgressTimeseries", ) - metrics = proto.RepeatedField( + metrics: MutableSequence["MetricUpdate"] = proto.RepeatedField( proto.MESSAGE, number=7, message="MetricUpdate", @@ -569,16 +571,16 @@ class WorkerDetails(proto.Message): Attributes: worker_name (str): Name of this worker - work_items (Sequence[google.cloud.dataflow_v1beta3.types.WorkItemDetails]): + work_items (MutableSequence[google.cloud.dataflow_v1beta3.types.WorkItemDetails]): Work items processed by this worker, sorted by time. """ - worker_name = proto.Field( + worker_name: str = proto.Field( proto.STRING, number=1, ) - work_items = proto.RepeatedField( + work_items: MutableSequence["WorkItemDetails"] = proto.RepeatedField( proto.MESSAGE, number=2, message="WorkItemDetails", @@ -589,7 +591,7 @@ class StageExecutionDetails(proto.Message): r"""Information about the workers and work items within a stage. Attributes: - workers (Sequence[google.cloud.dataflow_v1beta3.types.WorkerDetails]): + workers (MutableSequence[google.cloud.dataflow_v1beta3.types.WorkerDetails]): Workers that have done work on the stage. next_page_token (str): If present, this response does not contain all requested @@ -601,12 +603,12 @@ class StageExecutionDetails(proto.Message): def raw_page(self): return self - workers = proto.RepeatedField( + workers: MutableSequence["WorkerDetails"] = proto.RepeatedField( proto.MESSAGE, number=1, message="WorkerDetails", ) - next_page_token = proto.Field( + next_page_token: str = proto.Field( proto.STRING, number=2, ) diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/snapshots.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/snapshots.py index 8f01fefa5fa7..926e44b0e3ae 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/snapshots.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/snapshots.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.protobuf import duration_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore @@ -54,15 +56,15 @@ class PubsubSnapshotMetadata(proto.Message): The expire time of the Pubsub snapshot. """ - topic_name = proto.Field( + topic_name: str = proto.Field( proto.STRING, number=1, ) - snapshot_name = proto.Field( + snapshot_name: str = proto.Field( proto.STRING, number=2, ) - expire_time = proto.Field( + expire_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=3, message=timestamp_pb2.Timestamp, @@ -86,7 +88,7 @@ class Snapshot(proto.Message): automatically deleted. state (google.cloud.dataflow_v1beta3.types.SnapshotState): State of the snapshot. - pubsub_metadata (Sequence[google.cloud.dataflow_v1beta3.types.PubsubSnapshotMetadata]): + pubsub_metadata (MutableSequence[google.cloud.dataflow_v1beta3.types.PubsubSnapshotMetadata]): Pub/Sub snapshot metadata. description (str): User specified description of the snapshot. @@ -99,47 +101,47 @@ class Snapshot(proto.Message): e.g., "us-central1". """ - id = proto.Field( + id: str = proto.Field( proto.STRING, number=1, ) - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=2, ) - source_job_id = proto.Field( + source_job_id: str = proto.Field( proto.STRING, number=3, ) - creation_time = proto.Field( + creation_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=4, message=timestamp_pb2.Timestamp, ) - ttl = proto.Field( + ttl: duration_pb2.Duration = proto.Field( proto.MESSAGE, number=5, message=duration_pb2.Duration, ) - state = proto.Field( + state: "SnapshotState" = proto.Field( proto.ENUM, number=6, enum="SnapshotState", ) - pubsub_metadata = proto.RepeatedField( + pubsub_metadata: MutableSequence["PubsubSnapshotMetadata"] = proto.RepeatedField( proto.MESSAGE, number=7, message="PubsubSnapshotMetadata", ) - description = proto.Field( + description: str = proto.Field( proto.STRING, number=8, ) - disk_size_bytes = proto.Field( + disk_size_bytes: int = proto.Field( proto.INT64, number=9, ) - region = proto.Field( + region: str = proto.Field( proto.STRING, number=10, ) @@ -158,15 +160,15 @@ class GetSnapshotRequest(proto.Message): The location that contains this snapshot. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - snapshot_id = proto.Field( + snapshot_id: str = proto.Field( proto.STRING, number=2, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=3, ) @@ -185,15 +187,15 @@ class DeleteSnapshotRequest(proto.Message): The location that contains this snapshot. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - snapshot_id = proto.Field( + snapshot_id: str = proto.Field( proto.STRING, number=2, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=3, ) @@ -216,15 +218,15 @@ class ListSnapshotsRequest(proto.Message): The location to list snapshots in. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_id = proto.Field( + job_id: str = proto.Field( proto.STRING, number=3, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=2, ) @@ -234,11 +236,11 @@ class ListSnapshotsResponse(proto.Message): r"""List of snapshots. Attributes: - snapshots (Sequence[google.cloud.dataflow_v1beta3.types.Snapshot]): + snapshots (MutableSequence[google.cloud.dataflow_v1beta3.types.Snapshot]): Returned snapshots. """ - snapshots = proto.RepeatedField( + snapshots: MutableSequence["Snapshot"] = proto.RepeatedField( proto.MESSAGE, number=1, message="Snapshot", diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/streaming.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/streaming.py index 8c2244be920f..f698d77a3d05 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/streaming.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/streaming.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + import proto # type: ignore __protobuf__ = proto.module( @@ -41,13 +43,13 @@ class TopologyConfig(proto.Message): computations and their sharded locations. Attributes: - computations (Sequence[google.cloud.dataflow_v1beta3.types.ComputationTopology]): + computations (MutableSequence[google.cloud.dataflow_v1beta3.types.ComputationTopology]): The computations associated with a streaming Dataflow job. - data_disk_assignments (Sequence[google.cloud.dataflow_v1beta3.types.DataDiskAssignment]): + data_disk_assignments (MutableSequence[google.cloud.dataflow_v1beta3.types.DataDiskAssignment]): The disks assigned to a streaming Dataflow job. - user_stage_to_computation_name_map (Mapping[str, str]): + user_stage_to_computation_name_map (MutableMapping[str, str]): Maps user stage names to stable computation names. forwarding_key_bits (int): @@ -57,26 +59,26 @@ class TopologyConfig(proto.Message): Version number for persistent state. """ - computations = proto.RepeatedField( + computations: MutableSequence["ComputationTopology"] = proto.RepeatedField( proto.MESSAGE, number=1, message="ComputationTopology", ) - data_disk_assignments = proto.RepeatedField( + data_disk_assignments: MutableSequence["DataDiskAssignment"] = proto.RepeatedField( proto.MESSAGE, number=2, message="DataDiskAssignment", ) - user_stage_to_computation_name_map = proto.MapField( + user_stage_to_computation_name_map: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=3, ) - forwarding_key_bits = proto.Field( + forwarding_key_bits: int = proto.Field( proto.INT32, number=4, ) - persistent_state_version = proto.Field( + persistent_state_version: int = proto.Field( proto.INT32, number=5, ) @@ -113,31 +115,31 @@ class PubsubLocation(proto.Message): pubsub attributes. """ - topic = proto.Field( + topic: str = proto.Field( proto.STRING, number=1, ) - subscription = proto.Field( + subscription: str = proto.Field( proto.STRING, number=2, ) - timestamp_label = proto.Field( + timestamp_label: str = proto.Field( proto.STRING, number=3, ) - id_label = proto.Field( + id_label: str = proto.Field( proto.STRING, number=4, ) - drop_late_data = proto.Field( + drop_late_data: bool = proto.Field( proto.BOOL, number=5, ) - tracking_subscription = proto.Field( + tracking_subscription: str = proto.Field( proto.STRING, number=6, ) - with_attributes = proto.Field( + with_attributes: bool = proto.Field( proto.BOOL, number=7, ) @@ -153,7 +155,7 @@ class StreamingStageLocation(proto.Message): streaming Dataflow job. """ - stream_id = proto.Field( + stream_id: str = proto.Field( proto.STRING, number=1, ) @@ -171,11 +173,11 @@ class StreamingSideInputLocation(proto.Message): input is stored. """ - tag = proto.Field( + tag: str = proto.Field( proto.STRING, number=1, ) - state_family = proto.Field( + state_family: str = proto.Field( proto.STRING, number=2, ) @@ -189,7 +191,7 @@ class CustomSourceLocation(proto.Message): Whether this source is stateful. """ - stateful = proto.Field( + stateful: bool = proto.Field( proto.BOOL, number=1, ) @@ -226,25 +228,25 @@ class StreamLocation(proto.Message): This field is a member of `oneof`_ ``location``. """ - streaming_stage_location = proto.Field( + streaming_stage_location: "StreamingStageLocation" = proto.Field( proto.MESSAGE, number=1, oneof="location", message="StreamingStageLocation", ) - pubsub_location = proto.Field( + pubsub_location: "PubsubLocation" = proto.Field( proto.MESSAGE, number=2, oneof="location", message="PubsubLocation", ) - side_input_location = proto.Field( + side_input_location: "StreamingSideInputLocation" = proto.Field( proto.MESSAGE, number=3, oneof="location", message="StreamingSideInputLocation", ) - custom_source_location = proto.Field( + custom_source_location: "CustomSourceLocation" = proto.Field( proto.MESSAGE, number=4, oneof="location", @@ -263,11 +265,11 @@ class StateFamilyConfig(proto.Message): operation. """ - state_family = proto.Field( + state_family: str = proto.Field( proto.STRING, number=1, ) - is_read = proto.Field( + is_read: bool = proto.Field( proto.BOOL, number=2, ) @@ -281,40 +283,40 @@ class ComputationTopology(proto.Message): The system stage name. computation_id (str): The ID of the computation. - key_ranges (Sequence[google.cloud.dataflow_v1beta3.types.KeyRangeLocation]): + key_ranges (MutableSequence[google.cloud.dataflow_v1beta3.types.KeyRangeLocation]): The key ranges processed by the computation. - inputs (Sequence[google.cloud.dataflow_v1beta3.types.StreamLocation]): + inputs (MutableSequence[google.cloud.dataflow_v1beta3.types.StreamLocation]): The inputs to the computation. - outputs (Sequence[google.cloud.dataflow_v1beta3.types.StreamLocation]): + outputs (MutableSequence[google.cloud.dataflow_v1beta3.types.StreamLocation]): The outputs from the computation. - state_families (Sequence[google.cloud.dataflow_v1beta3.types.StateFamilyConfig]): + state_families (MutableSequence[google.cloud.dataflow_v1beta3.types.StateFamilyConfig]): The state family values. """ - system_stage_name = proto.Field( + system_stage_name: str = proto.Field( proto.STRING, number=1, ) - computation_id = proto.Field( + computation_id: str = proto.Field( proto.STRING, number=5, ) - key_ranges = proto.RepeatedField( + key_ranges: MutableSequence["KeyRangeLocation"] = proto.RepeatedField( proto.MESSAGE, number=2, message="KeyRangeLocation", ) - inputs = proto.RepeatedField( + inputs: MutableSequence["StreamLocation"] = proto.RepeatedField( proto.MESSAGE, number=3, message="StreamLocation", ) - outputs = proto.RepeatedField( + outputs: MutableSequence["StreamLocation"] = proto.RepeatedField( proto.MESSAGE, number=4, message="StreamLocation", ) - state_families = proto.RepeatedField( + state_families: MutableSequence["StateFamilyConfig"] = proto.RepeatedField( proto.MESSAGE, number=7, message="StateFamilyConfig", @@ -348,23 +350,23 @@ class KeyRangeLocation(proto.Message): in the worker local filesystem. """ - start = proto.Field( + start: str = proto.Field( proto.STRING, number=1, ) - end = proto.Field( + end: str = proto.Field( proto.STRING, number=2, ) - delivery_endpoint = proto.Field( + delivery_endpoint: str = proto.Field( proto.STRING, number=3, ) - data_disk = proto.Field( + data_disk: str = proto.Field( proto.STRING, number=5, ) - deprecated_persistent_directory = proto.Field( + deprecated_persistent_directory: str = proto.Field( proto.STRING, number=4, ) @@ -382,7 +384,7 @@ class MountedDataDisk(proto.Message): "myproject-1014-104817-4c2-harness-0-disk-1". """ - data_disk = proto.Field( + data_disk: str = proto.Field( proto.STRING, number=1, ) @@ -396,7 +398,7 @@ class DataDiskAssignment(proto.Message): VM instance name the data disks mounted to, for example "myproject-1014-104817-4c2-harness-0". - data_disks (Sequence[str]): + data_disks (MutableSequence[str]): Mounted data disks. The order is important a data disk's 0-based index in this list defines which persistent directory the disk is mounted @@ -406,11 +408,11 @@ class DataDiskAssignment(proto.Message): }. """ - vm_instance = proto.Field( + vm_instance: str = proto.Field( proto.STRING, number=1, ) - data_disks = proto.RepeatedField( + data_disks: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=2, ) @@ -436,15 +438,15 @@ class KeyRangeDataDiskAssignment(proto.Message): "myproject-1014-104817-4c2-harness-0-disk-1". """ - start = proto.Field( + start: str = proto.Field( proto.STRING, number=1, ) - end = proto.Field( + end: str = proto.Field( proto.STRING, number=2, ) - data_disk = proto.Field( + data_disk: str = proto.Field( proto.STRING, number=3, ) @@ -457,16 +459,18 @@ class StreamingComputationRanges(proto.Message): Attributes: computation_id (str): The ID of the computation. - range_assignments (Sequence[google.cloud.dataflow_v1beta3.types.KeyRangeDataDiskAssignment]): + range_assignments (MutableSequence[google.cloud.dataflow_v1beta3.types.KeyRangeDataDiskAssignment]): Data disk assignments for ranges from this computation. """ - computation_id = proto.Field( + computation_id: str = proto.Field( proto.STRING, number=1, ) - range_assignments = proto.RepeatedField( + range_assignments: MutableSequence[ + "KeyRangeDataDiskAssignment" + ] = proto.RepeatedField( proto.MESSAGE, number=2, message="KeyRangeDataDiskAssignment", @@ -485,11 +489,11 @@ class StreamingApplianceSnapshotConfig(proto.Message): appliance state. """ - snapshot_id = proto.Field( + snapshot_id: str = proto.Field( proto.STRING, number=1, ) - import_state_endpoint = proto.Field( + import_state_endpoint: str = proto.Field( proto.STRING, number=2, ) diff --git a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/templates.py b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/templates.py index e0ec0b8546c8..1f01262bbf2c 100644 --- a/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/templates.py +++ b/packages/google-cloud-dataflow-client/google/cloud/dataflow_v1beta3/types/templates.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +from typing import MutableMapping, MutableSequence + from google.rpc import status_pb2 # type: ignore import proto # type: ignore @@ -71,7 +73,7 @@ class LaunchFlexTemplateResponse(proto.Message): launched. """ - job = proto.Field( + job: jobs.Job = proto.Field( proto.MESSAGE, number=1, message=jobs.Job, @@ -94,21 +96,21 @@ class ContainerSpec(proto.Message): Default runtime environment for the job. """ - image = proto.Field( + image: str = proto.Field( proto.STRING, number=1, ) - metadata = proto.Field( + metadata: "TemplateMetadata" = proto.Field( proto.MESSAGE, number=2, message="TemplateMetadata", ) - sdk_info = proto.Field( + sdk_info: "SDKInfo" = proto.Field( proto.MESSAGE, number=3, message="SDKInfo", ) - default_environment = proto.Field( + default_environment: "FlexTemplateRuntimeEnvironment" = proto.Field( proto.MESSAGE, number=4, message="FlexTemplateRuntimeEnvironment", @@ -139,9 +141,9 @@ class LaunchFlexTemplateParameter(proto.Message): serialized ContainerSpec as content. This field is a member of `oneof`_ ``template``. - parameters (Mapping[str, str]): + parameters (MutableMapping[str, str]): The parameters for FlexTemplate. Ex. {"num_workers":"5"} - launch_options (Mapping[str, str]): + launch_options (MutableMapping[str, str]): Launch options for this flex template job. This is a common set of options across languages and templates. This should not be used to pass @@ -153,46 +155,46 @@ class LaunchFlexTemplateParameter(proto.Message): Set this to true if you are sending a request to update a running streaming job. When set, the job name should be the same as the running job. - transform_name_mappings (Mapping[str, str]): + transform_name_mappings (MutableMapping[str, str]): Use this to pass transform_name_mappings for streaming update jobs. Ex:{"oldTransformName":"newTransformName",...}' """ - job_name = proto.Field( + job_name: str = proto.Field( proto.STRING, number=1, ) - container_spec = proto.Field( + container_spec: "ContainerSpec" = proto.Field( proto.MESSAGE, number=4, oneof="template", message="ContainerSpec", ) - container_spec_gcs_path = proto.Field( + container_spec_gcs_path: str = proto.Field( proto.STRING, number=5, oneof="template", ) - parameters = proto.MapField( + parameters: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=2, ) - launch_options = proto.MapField( + launch_options: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=6, ) - environment = proto.Field( + environment: "FlexTemplateRuntimeEnvironment" = proto.Field( proto.MESSAGE, number=7, message="FlexTemplateRuntimeEnvironment", ) - update = proto.Field( + update: bool = proto.Field( proto.BOOL, number=8, ) - transform_name_mappings = proto.MapField( + transform_name_mappings: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=9, @@ -225,7 +227,7 @@ class FlexTemplateRuntimeEnvironment(proto.Message): machine_type (str): The machine type to use for the job. Defaults to the value from the template if not specified. - additional_experiments (Sequence[str]): + additional_experiments (MutableSequence[str]): Additional experiment flags for the job. network (str): Network to which VMs will be assigned. If @@ -239,7 +241,7 @@ class FlexTemplateRuntimeEnvironment(proto.Message): or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. - additional_user_labels (Mapping[str, str]): + additional_user_labels (MutableMapping[str, str]): Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the `labeling @@ -302,99 +304,99 @@ class FlexTemplateRuntimeEnvironment(proto.Message): job. The default is n1-standard-1. """ - num_workers = proto.Field( + num_workers: int = proto.Field( proto.INT32, number=1, ) - max_workers = proto.Field( + max_workers: int = proto.Field( proto.INT32, number=2, ) - zone = proto.Field( + zone: str = proto.Field( proto.STRING, number=3, ) - service_account_email = proto.Field( + service_account_email: str = proto.Field( proto.STRING, number=4, ) - temp_location = proto.Field( + temp_location: str = proto.Field( proto.STRING, number=5, ) - machine_type = proto.Field( + machine_type: str = proto.Field( proto.STRING, number=6, ) - additional_experiments = proto.RepeatedField( + additional_experiments: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=7, ) - network = proto.Field( + network: str = proto.Field( proto.STRING, number=8, ) - subnetwork = proto.Field( + subnetwork: str = proto.Field( proto.STRING, number=9, ) - additional_user_labels = proto.MapField( + additional_user_labels: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=10, ) - kms_key_name = proto.Field( + kms_key_name: str = proto.Field( proto.STRING, number=11, ) - ip_configuration = proto.Field( + ip_configuration: gd_environment.WorkerIPAddressConfiguration = proto.Field( proto.ENUM, number=12, enum=gd_environment.WorkerIPAddressConfiguration, ) - worker_region = proto.Field( + worker_region: str = proto.Field( proto.STRING, number=13, ) - worker_zone = proto.Field( + worker_zone: str = proto.Field( proto.STRING, number=14, ) - enable_streaming_engine = proto.Field( + enable_streaming_engine: bool = proto.Field( proto.BOOL, number=15, ) - flexrs_goal = proto.Field( + flexrs_goal: gd_environment.FlexResourceSchedulingGoal = proto.Field( proto.ENUM, number=16, enum=gd_environment.FlexResourceSchedulingGoal, ) - staging_location = proto.Field( + staging_location: str = proto.Field( proto.STRING, number=17, ) - sdk_container_image = proto.Field( + sdk_container_image: str = proto.Field( proto.STRING, number=18, ) - disk_size_gb = proto.Field( + disk_size_gb: int = proto.Field( proto.INT32, number=20, ) - autoscaling_algorithm = proto.Field( + autoscaling_algorithm: gd_environment.AutoscalingAlgorithm = proto.Field( proto.ENUM, number=21, enum=gd_environment.AutoscalingAlgorithm, ) - dump_heap_on_oom = proto.Field( + dump_heap_on_oom: bool = proto.Field( proto.BOOL, number=22, ) - save_heap_dumps_to_gcs_path = proto.Field( + save_heap_dumps_to_gcs_path: str = proto.Field( proto.STRING, number=23, ) - launcher_machine_type = proto.Field( + launcher_machine_type: str = proto.Field( proto.STRING, number=24, ) @@ -419,20 +421,20 @@ class LaunchFlexTemplateRequest(proto.Message): actually executed. Defaults to false. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - launch_parameter = proto.Field( + launch_parameter: "LaunchFlexTemplateParameter" = proto.Field( proto.MESSAGE, number=2, message="LaunchFlexTemplateParameter", ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=3, ) - validate_only = proto.Field( + validate_only: bool = proto.Field( proto.BOOL, number=4, ) @@ -466,7 +468,7 @@ class RuntimeEnvironment(proto.Message): machine_type (str): The machine type to use for the job. Defaults to the value from the template if not specified. - additional_experiments (Sequence[str]): + additional_experiments (MutableSequence[str]): Additional experiment flags for the job, specified with the ``--experiments`` option. network (str): @@ -481,7 +483,7 @@ class RuntimeEnvironment(proto.Message): or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. - additional_user_labels (Mapping[str, str]): + additional_user_labels (MutableMapping[str, str]): Additional user labels to be specified for the job. Keys and values should follow the restrictions specified in the `labeling @@ -515,69 +517,69 @@ class RuntimeEnvironment(proto.Message): job. """ - num_workers = proto.Field( + num_workers: int = proto.Field( proto.INT32, number=11, ) - max_workers = proto.Field( + max_workers: int = proto.Field( proto.INT32, number=1, ) - zone = proto.Field( + zone: str = proto.Field( proto.STRING, number=2, ) - service_account_email = proto.Field( + service_account_email: str = proto.Field( proto.STRING, number=3, ) - temp_location = proto.Field( + temp_location: str = proto.Field( proto.STRING, number=4, ) - bypass_temp_dir_validation = proto.Field( + bypass_temp_dir_validation: bool = proto.Field( proto.BOOL, number=5, ) - machine_type = proto.Field( + machine_type: str = proto.Field( proto.STRING, number=6, ) - additional_experiments = proto.RepeatedField( + additional_experiments: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=7, ) - network = proto.Field( + network: str = proto.Field( proto.STRING, number=8, ) - subnetwork = proto.Field( + subnetwork: str = proto.Field( proto.STRING, number=9, ) - additional_user_labels = proto.MapField( + additional_user_labels: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=10, ) - kms_key_name = proto.Field( + kms_key_name: str = proto.Field( proto.STRING, number=12, ) - ip_configuration = proto.Field( + ip_configuration: gd_environment.WorkerIPAddressConfiguration = proto.Field( proto.ENUM, number=14, enum=gd_environment.WorkerIPAddressConfiguration, ) - worker_region = proto.Field( + worker_region: str = proto.Field( proto.STRING, number=15, ) - worker_zone = proto.Field( + worker_zone: str = proto.Field( proto.STRING, number=16, ) - enable_streaming_engine = proto.Field( + enable_streaming_engine: bool = proto.Field( proto.BOOL, number=17, ) @@ -598,43 +600,43 @@ class ParameterMetadata(proto.Message): is_optional (bool): Optional. Whether the parameter is optional. Defaults to false. - regexes (Sequence[str]): + regexes (MutableSequence[str]): Optional. Regexes that the parameter must match. param_type (google.cloud.dataflow_v1beta3.types.ParameterType): Optional. The type of the parameter. Used for selecting input picker. - custom_metadata (Mapping[str, str]): + custom_metadata (MutableMapping[str, str]): Optional. Additional metadata for describing this parameter. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - label = proto.Field( + label: str = proto.Field( proto.STRING, number=2, ) - help_text = proto.Field( + help_text: str = proto.Field( proto.STRING, number=3, ) - is_optional = proto.Field( + is_optional: bool = proto.Field( proto.BOOL, number=4, ) - regexes = proto.RepeatedField( + regexes: MutableSequence[str] = proto.RepeatedField( proto.STRING, number=5, ) - param_type = proto.Field( + param_type: "ParameterType" = proto.Field( proto.ENUM, number=6, enum="ParameterType", ) - custom_metadata = proto.MapField( + custom_metadata: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=7, @@ -649,19 +651,19 @@ class TemplateMetadata(proto.Message): Required. The name of the template. description (str): Optional. A description of the template. - parameters (Sequence[google.cloud.dataflow_v1beta3.types.ParameterMetadata]): + parameters (MutableSequence[google.cloud.dataflow_v1beta3.types.ParameterMetadata]): The parameters for the template. """ - name = proto.Field( + name: str = proto.Field( proto.STRING, number=1, ) - description = proto.Field( + description: str = proto.Field( proto.STRING, number=2, ) - parameters = proto.RepeatedField( + parameters: MutableSequence["ParameterMetadata"] = proto.RepeatedField( proto.MESSAGE, number=3, message="ParameterMetadata", @@ -684,12 +686,12 @@ class Language(proto.Enum): JAVA = 1 PYTHON = 2 - language = proto.Field( + language: Language = proto.Field( proto.ENUM, number=1, enum=Language, ) - version = proto.Field( + version: str = proto.Field( proto.STRING, number=2, ) @@ -701,16 +703,16 @@ class RuntimeMetadata(proto.Message): Attributes: sdk_info (google.cloud.dataflow_v1beta3.types.SDKInfo): SDK Info for the template. - parameters (Sequence[google.cloud.dataflow_v1beta3.types.ParameterMetadata]): + parameters (MutableSequence[google.cloud.dataflow_v1beta3.types.ParameterMetadata]): The parameters for the template. """ - sdk_info = proto.Field( + sdk_info: "SDKInfo" = proto.Field( proto.MESSAGE, number=1, message="SDKInfo", ) - parameters = proto.RepeatedField( + parameters: MutableSequence["ParameterMetadata"] = proto.RepeatedField( proto.MESSAGE, number=2, message="ParameterMetadata", @@ -735,7 +737,7 @@ class CreateJobFromTemplateRequest(proto.Message): with ``gs://``. This field is a member of `oneof`_ ``template``. - parameters (Mapping[str, str]): + parameters (MutableMapping[str, str]): The runtime parameters to pass to the job. environment (google.cloud.dataflow_v1beta3.types.RuntimeEnvironment): The runtime environment for the job. @@ -745,30 +747,30 @@ class CreateJobFromTemplateRequest(proto.Message): to which to direct the request. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - job_name = proto.Field( + job_name: str = proto.Field( proto.STRING, number=4, ) - gcs_path = proto.Field( + gcs_path: str = proto.Field( proto.STRING, number=2, oneof="template", ) - parameters = proto.MapField( + parameters: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=3, ) - environment = proto.Field( + environment: "RuntimeEnvironment" = proto.Field( proto.MESSAGE, number=5, message="RuntimeEnvironment", ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=6, ) @@ -802,21 +804,21 @@ class TemplateView(proto.Enum): r"""The various views of a template that may be retrieved.""" METADATA_ONLY = 0 - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - gcs_path = proto.Field( + gcs_path: str = proto.Field( proto.STRING, number=2, oneof="template", ) - view = proto.Field( + view: TemplateView = proto.Field( proto.ENUM, number=3, enum=TemplateView, ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=4, ) @@ -845,22 +847,22 @@ class TemplateType(proto.Enum): LEGACY = 1 FLEX = 2 - status = proto.Field( + status: status_pb2.Status = proto.Field( proto.MESSAGE, number=1, message=status_pb2.Status, ) - metadata = proto.Field( + metadata: "TemplateMetadata" = proto.Field( proto.MESSAGE, number=2, message="TemplateMetadata", ) - template_type = proto.Field( + template_type: TemplateType = proto.Field( proto.ENUM, number=3, enum=TemplateType, ) - runtime_metadata = proto.Field( + runtime_metadata: "RuntimeMetadata" = proto.Field( proto.MESSAGE, number=4, message="RuntimeMetadata", @@ -874,7 +876,7 @@ class LaunchTemplateParameters(proto.Message): job_name (str): Required. The job name to use for the created job. - parameters (Mapping[str, str]): + parameters (MutableMapping[str, str]): The runtime parameters to pass to the job. environment (google.cloud.dataflow_v1beta3.types.RuntimeEnvironment): The runtime environment for the job. @@ -882,32 +884,32 @@ class LaunchTemplateParameters(proto.Message): If set, replace the existing pipeline with the name specified by jobName with this pipeline, preserving state. - transform_name_mapping (Mapping[str, str]): + transform_name_mapping (MutableMapping[str, str]): Only applicable when updating a pipeline. Map of transform name prefixes of the job to be replaced to the corresponding name prefixes of the new job. """ - job_name = proto.Field( + job_name: str = proto.Field( proto.STRING, number=1, ) - parameters = proto.MapField( + parameters: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=2, ) - environment = proto.Field( + environment: "RuntimeEnvironment" = proto.Field( proto.MESSAGE, number=3, message="RuntimeEnvironment", ) - update = proto.Field( + update: bool = proto.Field( proto.BOOL, number=4, ) - transform_name_mapping = proto.MapField( + transform_name_mapping: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, number=5, @@ -952,31 +954,31 @@ class LaunchTemplateRequest(proto.Message): to which to direct the request. """ - project_id = proto.Field( + project_id: str = proto.Field( proto.STRING, number=1, ) - validate_only = proto.Field( + validate_only: bool = proto.Field( proto.BOOL, number=2, ) - gcs_path = proto.Field( + gcs_path: str = proto.Field( proto.STRING, number=3, oneof="template", ) - dynamic_template = proto.Field( + dynamic_template: "DynamicTemplateLaunchParams" = proto.Field( proto.MESSAGE, number=6, oneof="template", message="DynamicTemplateLaunchParams", ) - launch_parameters = proto.Field( + launch_parameters: "LaunchTemplateParameters" = proto.Field( proto.MESSAGE, number=4, message="LaunchTemplateParameters", ) - location = proto.Field( + location: str = proto.Field( proto.STRING, number=5, ) @@ -992,7 +994,7 @@ class LaunchTemplateResponse(proto.Message): launched. """ - job = proto.Field( + job: jobs.Job = proto.Field( proto.MESSAGE, number=1, message=jobs.Job, @@ -1004,7 +1006,7 @@ class InvalidTemplateParameters(proto.Message): indicates problems with the template parameter. Attributes: - parameter_violations (Sequence[google.cloud.dataflow_v1beta3.types.InvalidTemplateParameters.ParameterViolation]): + parameter_violations (MutableSequence[google.cloud.dataflow_v1beta3.types.InvalidTemplateParameters.ParameterViolation]): Describes all parameter violations in a template request. """ @@ -1020,16 +1022,16 @@ class ParameterViolation(proto.Message): validate. """ - parameter = proto.Field( + parameter: str = proto.Field( proto.STRING, number=1, ) - description = proto.Field( + description: str = proto.Field( proto.STRING, number=2, ) - parameter_violations = proto.RepeatedField( + parameter_violations: MutableSequence[ParameterViolation] = proto.RepeatedField( proto.MESSAGE, number=1, message=ParameterViolation, @@ -1050,11 +1052,11 @@ class DynamicTemplateLaunchParams(proto.Message): Cloud Storage URL, beginning with ``gs://``. """ - gcs_path = proto.Field( + gcs_path: str = proto.Field( proto.STRING, number=1, ) - staging_location = proto.Field( + staging_location: str = proto.Field( proto.STRING, number=2, ) diff --git a/packages/google-cloud-dataflow-client/owlbot.py b/packages/google-cloud-dataflow-client/owlbot.py index 9fedcf19e7c0..98913019b6ed 100644 --- a/packages/google-cloud-dataflow-client/owlbot.py +++ b/packages/google-cloud-dataflow-client/owlbot.py @@ -12,7 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json from pathlib import Path +import shutil import synthtool as s import synthtool.gcp as gcp @@ -22,9 +24,18 @@ # Copy the generated client from the owl-bot staging directory # ---------------------------------------------------------------------------- -default_version = "v1beta3" +clean_up_generated_samples = True + +# Load the default version defined in .repo-metadata.json. +default_version = json.load(open(".repo-metadata.json", "rt")).get( + "default_version" +) for library in s.get_staging_dirs(default_version): + if clean_up_generated_samples: + shutil.rmtree("samples/generated_samples", ignore_errors=True) + clean_up_generated_samples = False + # Work around to avoid a breaking change # Replace `set` with `set_` s.replace( @@ -35,10 +46,11 @@ s.replace( library / "google/cloud/dataflow_v1beta3/types/metrics.py", - "set = proto.Field", - "set_ = proto.Field", + "set: struct_pb2.Value = proto.Field", + "set_: struct_pb2.Value = proto.Field", ) - s.move(library, excludes=["setup.py"]) + + s.move([library], excludes=["**/gapic_version.py"]) s.remove_staging_dirs() # ---------------------------------------------------------------------------- @@ -50,11 +62,10 @@ microgenerator=True, versions=gcp.common.detect_versions(path="./google", default_first=True), ) -s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file +s.move(templated_files, excludes=[".coveragerc", ".github/release-please.yml"]) python.py_samples(skip_readmes=True) - -# run blacken session for all directories which have a noxfile +# run format session for all directories which have a noxfile for noxfile in Path(".").glob("**/noxfile.py"): s.shell.run(["nox", "-s", "format"], cwd=noxfile.parent, hide_output=False) \ No newline at end of file diff --git a/packages/google-cloud-dataflow-client/release-please-config.json b/packages/google-cloud-dataflow-client/release-please-config.json new file mode 100644 index 000000000000..64ed5007fbec --- /dev/null +++ b/packages/google-cloud-dataflow-client/release-please-config.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "python", + "extra-files": [ + "google/cloud/dataflow/gapic_version.py", + { + "type": "json", + "path": "samples/generated_samples/snippet_metadata_google.dataflow.v1beta3.json", + "jsonpath": "$.clientLibrary.version" + } + ] + } + }, + "release-type": "python", + "plugins": [ + { + "type": "sentence-case" + } + ], + "initial-version": "0.1.0" +} diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py similarity index 97% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py index 9fb332dfe26b..8f236ed5773d 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync_4148a07f] +# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_launch_flex_template(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync_4148a07f] +# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py deleted file mode 100644 index 2cc8a428ae86..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LaunchFlexTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync_a4f75f91] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_launch_flex_template(): - # Create a client - client = dataflow_v1beta3.FlexTemplatesServiceClient() - - # Initialize request argument(s) - request = dataflow_v1beta3.LaunchFlexTemplateRequest( - ) - - # Make the request - response = client.launch_flex_template(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync_a4f75f91] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py index a45077e17366..7b9946ed8894 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync_0d901b38] +# [START dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_aggregated_list_jobs(): for response in page_result: print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync_0d901b38] +# [END dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py deleted file mode 100644 index 778a4f197d88..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for AggregatedListJobs -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync_26f07383] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_aggregated_list_jobs(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.ListJobsRequest( - ) - - # Make the request - page_result = client.aggregated_list_jobs(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync_26f07383] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py index d6c5c9a77e1a..591caa0200f8 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync_aab49b35] +# [START dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_check_active_jobs(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync_aab49b35] +# [END dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py deleted file mode 100644 index dc9691c298ac..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CheckActiveJobs -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync_baed931b] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_check_active_jobs(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.CheckActiveJobsRequest( - ) - - # Make the request - response = client.check_active_jobs(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync_baed931b] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py similarity index 92% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py index 406ead7f259f..b91dc912e047 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync_2a1b0208] +# [START dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_create_job(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync_2a1b0208] +# [END dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py deleted file mode 100644 index 93aadf8f43ef..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateJob -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync_ad13d605] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_create_job(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.CreateJobRequest( - ) - - # Make the request - response = client.create_job(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync_ad13d605] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py similarity index 92% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py index 998087965380..c4bef41e0c76 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync_3e418026] +# [START dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_get_job(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync_3e418026] +# [END dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py deleted file mode 100644 index 364e642071a6..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetJob -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync_45212860] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_job(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetJobRequest( - ) - - # Make the request - response = client.get_job(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync_45212860] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py similarity index 92% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py index 8ebfabf09177..a97567240509 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync_97a60855] +# [START dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_list_jobs(): for response in page_result: print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync_97a60855] +# [END dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py deleted file mode 100644 index 633ac930be54..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListJobs -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync_bfb75b4c] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_list_jobs(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.ListJobsRequest( - ) - - # Make the request - page_result = client.list_jobs(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync_bfb75b4c] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py similarity index 95% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py index 49a364541dcf..db5e822f7857 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync_60f4d8fe] +# [START dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_snapshot_job(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync_60f4d8fe] +# [END dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py deleted file mode 100644 index a767e86c71aa..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SnapshotJob -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync_ff3cb8bd] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_snapshot_job(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.SnapshotJobRequest( - ) - - # Make the request - response = client.snapshot_job(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync_ff3cb8bd] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py similarity index 92% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py index 0eba295d071f..9fff7edb8b16 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync_8db1fd08] +# [START dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_update_job(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync_8db1fd08] +# [END dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py deleted file mode 100644 index c3dac7172ca5..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateJob -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync_e2fa191d] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_update_job(): - # Create a client - client = dataflow_v1beta3.JobsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.UpdateJobRequest( - ) - - # Make the request - response = client.update_job(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync_e2fa191d] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py index 82358ede5525..256bde8de7cb 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync_04dec136] +# [START dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_list_job_messages(): for response in page_result: print(response) -# [END dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync_04dec136] +# [END dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py deleted file mode 100644 index 1aa793d0c36a..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListJobMessages -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync_f19ed68d] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_list_job_messages(): - # Create a client - client = dataflow_v1beta3.MessagesV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.ListJobMessagesRequest( - ) - - # Make the request - page_result = client.list_job_messages(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync_f19ed68d] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py similarity index 97% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py index a1e521e47000..9268495bbb81 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync_a4ff4d57] +# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_get_job_execution_details(): for response in page_result: print(response) -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync_a4ff4d57] +# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py deleted file mode 100644 index 211b983f29ea..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetJobExecutionDetails -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync_b7550163] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_job_execution_details(): - # Create a client - client = dataflow_v1beta3.MetricsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetJobExecutionDetailsRequest( - ) - - # Make the request - page_result = client.get_job_execution_details(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync_b7550163] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py index 54a22ec20a68..bbe96221f9a2 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync_02835968] +# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_get_job_metrics(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync_02835968] +# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py deleted file mode 100644 index ffc68c4beb1b..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetJobMetrics -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync_59dce217] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_job_metrics(): - # Create a client - client = dataflow_v1beta3.MetricsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetJobMetricsRequest( - ) - - # Make the request - response = client.get_job_metrics(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync_59dce217] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py similarity index 97% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py index 76af1fd2b53e..c9e9729d6e28 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync_4acb3ded] +# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_get_stage_execution_details(): for response in page_result: print(response) -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync_4acb3ded] +# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py deleted file mode 100644 index f88599e19071..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetStageExecutionDetails -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync_9490a11d] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_stage_execution_details(): - # Create a client - client = dataflow_v1beta3.MetricsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetStageExecutionDetailsRequest( - ) - - # Make the request - page_result = client.get_stage_execution_details(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync_9490a11d] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py index cc7f9e505a69..59a50f5f1cc2 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync_34b1dfd7] +# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_delete_snapshot(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync_34b1dfd7] +# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py deleted file mode 100644 index 938c6e9100e3..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteSnapshot -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync_567e01e6] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_delete_snapshot(): - # Create a client - client = dataflow_v1beta3.SnapshotsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.DeleteSnapshotRequest( - ) - - # Make the request - response = client.delete_snapshot(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync_567e01e6] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py index 9eb621af82a4..f1861f65484f 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync_846de01f] +# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_get_snapshot(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync_846de01f] +# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py deleted file mode 100644 index f4ef41fad8f5..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetSnapshot -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync_ba1ca2b6] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_snapshot(): - # Create a client - client = dataflow_v1beta3.SnapshotsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetSnapshotRequest( - ) - - # Make the request - response = client.get_snapshot(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync_ba1ca2b6] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py index d6955d24699d..bdd2529e333f 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync_425e5024] +# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -48,4 +48,4 @@ def sample_list_snapshots(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync_425e5024] +# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py deleted file mode 100644 index a8fdc15b7433..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListSnapshots -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync_6da08cb9] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_list_snapshots(): - # Create a client - client = dataflow_v1beta3.SnapshotsV1Beta3Client() - - # Initialize request argument(s) - request = dataflow_v1beta3.ListSnapshotsRequest( - ) - - # Make the request - response = client.list_snapshots(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync_6da08cb9] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py similarity index 97% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py index 3c0a699a987d..175c180eed37 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync_9e26a4bf] +# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_create_job_from_template(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync_9e26a4bf] +# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py deleted file mode 100644 index 2470a8723ad7..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateJobFromTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync_e2cb482f] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_create_job_from_template(): - # Create a client - client = dataflow_v1beta3.TemplatesServiceClient() - - # Initialize request argument(s) - request = dataflow_v1beta3.CreateJobFromTemplateRequest( - gcs_path="gcs_path_value", - ) - - # Make the request - response = client.create_job_from_template(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync_e2cb482f] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync.py index 969190863e59..c7f9caeb2d8e 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync_07cd261a] +# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_get_template(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync_07cd261a] +# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py deleted file mode 100644 index 88cf60574862..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync_732e6209] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_get_template(): - # Create a client - client = dataflow_v1beta3.TemplatesServiceClient() - - # Initialize request argument(s) - request = dataflow_v1beta3.GetTemplateRequest( - gcs_path="gcs_path_value", - ) - - # Make the request - response = client.get_template(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync_732e6209] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync.py similarity index 98% rename from packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py rename to packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync.py index 98b969f6ceca..7f1f81d3f520 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-dataflow-client -# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync_140179ca] +# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -49,4 +49,4 @@ def sample_launch_template(): # Handle the response print(response) -# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync_140179ca] +# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py b/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py deleted file mode 100644 index 74d62b9c5f65..000000000000 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LaunchTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-dataflow-client - - -# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync_77764eb9] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import dataflow_v1beta3 - - -def sample_launch_template(): - # Create a client - client = dataflow_v1beta3.TemplatesServiceClient() - - # Initialize request argument(s) - request = dataflow_v1beta3.LaunchTemplateRequest( - gcs_path="gcs_path_value", - ) - - # Make the request - response = client.launch_template(request=request) - - # Handle the response - print(response) - -# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync_77764eb9] diff --git a/packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_dataflow_v1beta3.json b/packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_google.dataflow.v1beta3.json similarity index 65% rename from packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_dataflow_v1beta3.json rename to packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_google.dataflow.v1beta3.json index a96a7a26712f..07ae5fac5096 100644 --- a/packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_dataflow_v1beta3.json +++ b/packages/google-cloud-dataflow-client/samples/generated_samples/snippet_metadata_google.dataflow.v1beta3.json @@ -7,7 +7,8 @@ } ], "language": "PYTHON", - "name": "google-cloud-dataflow-client" + "name": "google-cloud-dataflow-client", + "version": "0.1.0" }, "snippets": [ { @@ -125,7 +126,7 @@ "shortName": "launch_flex_template" }, "description": "Sample for LaunchFlexTemplate", - "file": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py", + "file": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", @@ -161,28 +162,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_a4f75f91.py" + "title": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.FlexTemplatesServiceClient", - "shortName": "FlexTemplatesServiceClient" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", + "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.FlexTemplatesServiceClient.launch_flex_template", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.aggregated_list_jobs", "method": { - "fullName": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", "service": { - "fullName": "google.dataflow.v1beta3.FlexTemplatesService", - "shortName": "FlexTemplatesService" + "fullName": "google.dataflow.v1beta3.JobsV1Beta3", + "shortName": "JobsV1Beta3" }, - "shortName": "LaunchFlexTemplate" + "shortName": "AggregatedListJobs" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" }, { "name": "retry", @@ -197,22 +199,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.LaunchFlexTemplateResponse", - "shortName": "launch_flex_template" + "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.AggregatedListJobsAsyncPager", + "shortName": "aggregated_list_jobs" }, - "description": "Sample for LaunchFlexTemplate", - "file": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py", + "description": "Sample for AggregatedListJobs", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_async", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -232,22 +234,21 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_flex_templates_service_launch_flex_template_sync_4148a07f.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", - "shortName": "JobsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", + "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.aggregated_list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.aggregated_list_jobs", "method": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", "service": { @@ -274,14 +275,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.AggregatedListJobsAsyncPager", + "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.AggregatedListJobsPager", "shortName": "aggregated_list_jobs" }, "description": "Sample for AggregatedListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_async.py", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_async", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync", "segments": [ { "end": 51, @@ -314,28 +315,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_async.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", + "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.aggregated_list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.check_active_jobs", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "AggregatedListJobs" + "shortName": "CheckActiveJobs" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest" }, { "name": "retry", @@ -350,22 +352,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.AggregatedListJobsPager", - "shortName": "aggregated_list_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsResponse", + "shortName": "check_active_jobs" }, - "description": "Sample for AggregatedListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py", + "description": "Sample for CheckActiveJobs", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_async", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -385,12 +387,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 51, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_0d901b38.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_async.py" }, { "canonical": true, @@ -399,19 +401,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.aggregated_list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.check_active_jobs", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "AggregatedListJobs" + "shortName": "CheckActiveJobs" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest" }, { "name": "retry", @@ -426,22 +428,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.AggregatedListJobsPager", - "shortName": "aggregated_list_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsResponse", + "shortName": "check_active_jobs" }, - "description": "Sample for AggregatedListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py", + "description": "Sample for CheckActiveJobs", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -461,12 +463,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 51, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_aggregated_list_jobs_sync_26f07383.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync.py" }, { "canonical": true, @@ -476,19 +478,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.check_active_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.create_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CheckActiveJobs" + "shortName": "CreateJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.CreateJobRequest" }, { "name": "retry", @@ -503,14 +505,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsResponse", - "shortName": "check_active_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "create_job" }, - "description": "Sample for CheckActiveJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_async.py", + "description": "Sample for CreateJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_async", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_async", "segments": [ { "end": 50, @@ -543,7 +545,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_async.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_async.py" }, { "canonical": true, @@ -552,19 +554,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.check_active_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.create_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CheckActiveJobs" + "shortName": "CreateJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.CreateJobRequest" }, { "name": "retry", @@ -579,14 +581,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsResponse", - "shortName": "check_active_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "create_job" }, - "description": "Sample for CheckActiveJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py", + "description": "Sample for CreateJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync", "segments": [ { "end": 50, @@ -619,28 +621,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_aab49b35.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", + "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.check_active_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.get_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CheckActiveJobs" + "shortName": "GetJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobRequest" }, { "name": "retry", @@ -655,14 +658,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.CheckActiveJobsResponse", - "shortName": "check_active_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "get_job" }, - "description": "Sample for CheckActiveJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py", + "description": "Sample for GetJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_async", "segments": [ { "end": 50, @@ -695,29 +698,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_check_active_jobs_sync_baed931b.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", - "shortName": "JobsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", + "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.create_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.get_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CreateJob" + "shortName": "GetJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobRequest" }, { "name": "retry", @@ -733,13 +735,13 @@ } ], "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job" + "shortName": "get_job" }, - "description": "Sample for CreateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_async.py", + "description": "Sample for GetJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_async", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync", "segments": [ { "end": 50, @@ -772,28 +774,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_async.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", + "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.create_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.list_jobs", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CreateJob" + "shortName": "ListJobs" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" }, { "name": "retry", @@ -808,22 +811,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job" + "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.ListJobsAsyncPager", + "shortName": "list_jobs" }, - "description": "Sample for CreateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py", + "description": "Sample for ListJobs", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_async", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -843,12 +846,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_ad13d605.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_async.py" }, { "canonical": true, @@ -857,19 +860,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.create_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.list_jobs", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "CreateJob" + "shortName": "ListJobs" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" }, { "name": "retry", @@ -884,22 +887,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job" + "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.ListJobsPager", + "shortName": "list_jobs" }, - "description": "Sample for CreateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py", + "description": "Sample for ListJobs", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -919,12 +922,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_create_job_sync_2a1b0208.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync.py" }, { "canonical": true, @@ -934,19 +937,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.get_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.snapshot_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "GetJob" + "shortName": "SnapshotJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.SnapshotJobRequest" }, { "name": "retry", @@ -961,14 +964,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "get_job" + "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", + "shortName": "snapshot_job" }, - "description": "Sample for GetJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_async.py", + "description": "Sample for SnapshotJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_async", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_async", "segments": [ { "end": 50, @@ -1001,7 +1004,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_async.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_async.py" }, { "canonical": true, @@ -1010,19 +1013,19 @@ "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.get_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.snapshot_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "GetJob" + "shortName": "SnapshotJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.SnapshotJobRequest" }, { "name": "retry", @@ -1037,14 +1040,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "get_job" + "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", + "shortName": "snapshot_job" }, - "description": "Sample for GetJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py", + "description": "Sample for SnapshotJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync", "segments": [ { "end": 50, @@ -1077,28 +1080,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_3e418026.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", + "shortName": "JobsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.get_job", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.update_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "GetJob" + "shortName": "UpdateJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.UpdateJobRequest" }, { "name": "retry", @@ -1114,13 +1118,13 @@ } ], "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "get_job" + "shortName": "update_job" }, - "description": "Sample for GetJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py", + "description": "Sample for UpdateJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_async", "segments": [ { "end": 50, @@ -1153,29 +1157,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_get_job_sync_45212860.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", - "shortName": "JobsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", + "shortName": "JobsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.update_job", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", + "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", "service": { "fullName": "google.dataflow.v1beta3.JobsV1Beta3", "shortName": "JobsV1Beta3" }, - "shortName": "ListJobs" + "shortName": "UpdateJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.UpdateJobRequest" }, { "name": "retry", @@ -1190,22 +1193,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.ListJobsAsyncPager", - "shortName": "list_jobs" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "update_job" }, - "description": "Sample for ListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_async.py", + "description": "Sample for UpdateJob", + "file": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_async", + "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -1225,33 +1228,34 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 51, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_async.py" + "title": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3AsyncClient", + "shortName": "MessagesV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3AsyncClient.list_job_messages", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", + "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MessagesV1Beta3", + "shortName": "MessagesV1Beta3" }, - "shortName": "ListJobs" + "shortName": "ListJobMessages" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest" }, { "name": "retry", @@ -1266,14 +1270,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.ListJobsPager", - "shortName": "list_jobs" + "resultType": "google.cloud.dataflow_v1beta3.services.messages_v1_beta3.pagers.ListJobMessagesAsyncPager", + "shortName": "list_job_messages" }, - "description": "Sample for ListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py", + "description": "Sample for ListJobMessages", + "file": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync", + "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_async", "segments": [ { "end": 51, @@ -1306,28 +1310,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_97a60855.py" + "title": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client", + "shortName": "MessagesV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.list_jobs", + "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client.list_job_messages", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", + "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MessagesV1Beta3", + "shortName": "MessagesV1Beta3" }, - "shortName": "ListJobs" + "shortName": "ListJobMessages" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobsRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest" }, { "name": "retry", @@ -1342,14 +1346,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.services.jobs_v1_beta3.pagers.ListJobsPager", - "shortName": "list_jobs" + "resultType": "google.cloud.dataflow_v1beta3.services.messages_v1_beta3.pagers.ListJobMessagesPager", + "shortName": "list_job_messages" }, - "description": "Sample for ListJobs", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py", + "description": "Sample for ListJobMessages", + "file": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync", + "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync", "segments": [ { "end": 51, @@ -1382,29 +1386,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_list_jobs_sync_bfb75b4c.py" + "title": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync.py" }, { "canonical": true, "clientMethod": { "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", - "shortName": "JobsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", + "shortName": "MetricsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.snapshot_job", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_job_execution_details", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "SnapshotJob" + "shortName": "GetJobExecutionDetails" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.SnapshotJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest" }, { "name": "retry", @@ -1419,22 +1423,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "snapshot_job" + "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetJobExecutionDetailsAsyncPager", + "shortName": "get_job_execution_details" }, - "description": "Sample for SnapshotJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_async.py", + "description": "Sample for GetJobExecutionDetails", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_async", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_async", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -1454,33 +1458,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_async.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", + "shortName": "MetricsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.snapshot_job", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_execution_details", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "SnapshotJob" + "shortName": "GetJobExecutionDetails" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.SnapshotJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest" }, { "name": "retry", @@ -1495,22 +1499,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "snapshot_job" + "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetJobExecutionDetailsPager", + "shortName": "get_job_execution_details" }, - "description": "Sample for SnapshotJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py", + "description": "Sample for GetJobExecutionDetails", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 50, + "end": 51, "start": 27, "type": "SHORT" }, @@ -1530,33 +1534,34 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_60f4d8fe.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", + "shortName": "MetricsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.snapshot_job", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_job_metrics", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "SnapshotJob" + "shortName": "GetJobMetrics" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.SnapshotJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest" }, { "name": "retry", @@ -1571,14 +1576,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "snapshot_job" + "resultType": "google.cloud.dataflow_v1beta3.types.JobMetrics", + "shortName": "get_job_metrics" }, - "description": "Sample for SnapshotJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py", + "description": "Sample for GetJobMetrics", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_async", "segments": [ { "end": 50, @@ -1611,29 +1616,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_snapshot_job_sync_ff3cb8bd.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient", - "shortName": "JobsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", + "shortName": "MetricsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3AsyncClient.update_job", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_metrics", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "UpdateJob" + "shortName": "GetJobMetrics" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.UpdateJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest" }, { "name": "retry", @@ -1648,14 +1652,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "update_job" + "resultType": "google.cloud.dataflow_v1beta3.types.JobMetrics", + "shortName": "get_job_metrics" }, - "description": "Sample for UpdateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_async.py", + "description": "Sample for GetJobMetrics", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_async", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync", "segments": [ { "end": 50, @@ -1688,28 +1692,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_async.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", + "shortName": "MetricsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.update_job", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_stage_execution_details", "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "UpdateJob" + "shortName": "GetStageExecutionDetails" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.UpdateJobRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest" }, { "name": "retry", @@ -1724,1243 +1729,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "update_job" + "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetStageExecutionDetailsAsyncPager", + "shortName": "get_stage_execution_details" }, - "description": "Sample for UpdateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py", + "description": "Sample for GetStageExecutionDetails", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_async", "segments": [ { - "end": 50, + "end": 51, "start": 27, "type": "FULL" }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_8db1fd08.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client", - "shortName": "JobsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.JobsV1Beta3Client.update_job", - "method": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", - "service": { - "fullName": "google.dataflow.v1beta3.JobsV1Beta3", - "shortName": "JobsV1Beta3" - }, - "shortName": "UpdateJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.UpdateJobRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "update_job" - }, - "description": "Sample for UpdateJob", - "file": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_jobs_v1_beta3_update_job_sync_e2fa191d.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3AsyncClient", - "shortName": "MessagesV1Beta3AsyncClient" - }, - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3AsyncClient.list_job_messages", - "method": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3", - "shortName": "MessagesV1Beta3" - }, - "shortName": "ListJobMessages" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.messages_v1_beta3.pagers.ListJobMessagesAsyncPager", - "shortName": "list_job_messages" - }, - "description": "Sample for ListJobMessages", - "file": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client", - "shortName": "MessagesV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client.list_job_messages", - "method": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3", - "shortName": "MessagesV1Beta3" - }, - "shortName": "ListJobMessages" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.messages_v1_beta3.pagers.ListJobMessagesPager", - "shortName": "list_job_messages" - }, - "description": "Sample for ListJobMessages", - "file": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_f19ed68d.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client", - "shortName": "MessagesV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MessagesV1Beta3Client.list_job_messages", - "method": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3", - "shortName": "MessagesV1Beta3" - }, - "shortName": "ListJobMessages" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListJobMessagesRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.messages_v1_beta3.pagers.ListJobMessagesPager", - "shortName": "list_job_messages" - }, - "description": "Sample for ListJobMessages", - "file": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_messages_v1_beta3_list_job_messages_sync_04dec136.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", - "shortName": "MetricsV1Beta3AsyncClient" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_job_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetJobExecutionDetailsAsyncPager", - "shortName": "get_job_execution_details" - }, - "description": "Sample for GetJobExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetJobExecutionDetailsPager", - "shortName": "get_job_execution_details" - }, - "description": "Sample for GetJobExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_b7550163.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetJobExecutionDetailsPager", - "shortName": "get_job_execution_details" - }, - "description": "Sample for GetJobExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_execution_details_sync_a4ff4d57.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", - "shortName": "MetricsV1Beta3AsyncClient" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_job_metrics", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobMetrics" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.JobMetrics", - "shortName": "get_job_metrics" - }, - "description": "Sample for GetJobMetrics", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_metrics", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobMetrics" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.JobMetrics", - "shortName": "get_job_metrics" - }, - "description": "Sample for GetJobMetrics", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_02835968.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_job_metrics", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetJobMetrics" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetJobMetricsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.JobMetrics", - "shortName": "get_job_metrics" - }, - "description": "Sample for GetJobMetrics", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_job_metrics_sync_59dce217.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient", - "shortName": "MetricsV1Beta3AsyncClient" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3AsyncClient.get_stage_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetStageExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetStageExecutionDetailsAsyncPager", - "shortName": "get_stage_execution_details" - }, - "description": "Sample for GetStageExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_stage_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetStageExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetStageExecutionDetailsPager", - "shortName": "get_stage_execution_details" - }, - "description": "Sample for GetStageExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_4acb3ded.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", - "shortName": "MetricsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_stage_execution_details", - "method": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", - "shortName": "MetricsV1Beta3" - }, - "shortName": "GetStageExecutionDetails" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetStageExecutionDetailsPager", - "shortName": "get_stage_execution_details" - }, - "description": "Sample for GetStageExecutionDetails", - "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync_9490a11d.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient", - "shortName": "SnapshotsV1Beta3AsyncClient" - }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.delete_snapshot", - "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" - }, - "shortName": "DeleteSnapshot" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotResponse", - "shortName": "delete_snapshot" - }, - "description": "Sample for DeleteSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", - "shortName": "SnapshotsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.delete_snapshot", - "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" - }, - "shortName": "DeleteSnapshot" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotResponse", - "shortName": "delete_snapshot" - }, - "description": "Sample for DeleteSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, { "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_34b1dfd7.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", - "shortName": "SnapshotsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.delete_snapshot", - "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" - }, - "shortName": "DeleteSnapshot" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotResponse", - "shortName": "delete_snapshot" - }, - "description": "Sample for DeleteSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, "start": 27, "type": "SHORT" }, @@ -2980,34 +1764,33 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync_567e01e6.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient", - "shortName": "SnapshotsV1Beta3AsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client", + "shortName": "MetricsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.get_snapshot", + "fullName": "google.cloud.dataflow_v1beta3.MetricsV1Beta3Client.get_stage_execution_details", "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" + "fullName": "google.dataflow.v1beta3.MetricsV1Beta3", + "shortName": "MetricsV1Beta3" }, - "shortName": "GetSnapshot" + "shortName": "GetStageExecutionDetails" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetSnapshotRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetStageExecutionDetailsRequest" }, { "name": "retry", @@ -3022,174 +1805,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "get_snapshot" + "resultType": "google.cloud.dataflow_v1beta3.services.metrics_v1_beta3.pagers.GetStageExecutionDetailsPager", + "shortName": "get_stage_execution_details" }, - "description": "Sample for GetSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_async.py", + "description": "Sample for GetStageExecutionDetails", + "file": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_async", + "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync", "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, { "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", - "shortName": "SnapshotsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.get_snapshot", - "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" - }, - "shortName": "GetSnapshot" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetSnapshotRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "get_snapshot" - }, - "description": "Sample for GetSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync", - "segments": [ - { - "end": 50, "start": 27, "type": "FULL" }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, { "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_846de01f.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", - "shortName": "SnapshotsV1Beta3Client" - }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.get_snapshot", - "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "service": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", - "shortName": "SnapshotsV1Beta3" - }, - "shortName": "GetSnapshot" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetSnapshotRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", - "shortName": "get_snapshot" - }, - "description": "Sample for GetSnapshot", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, "start": 27, "type": "SHORT" }, @@ -3209,12 +1840,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 51, + "end": 52, "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync_ba1ca2b6.py" + "title": "dataflow_v1beta3_generated_metrics_v1_beta3_get_stage_execution_details_sync.py" }, { "canonical": true, @@ -3224,19 +1855,19 @@ "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient", "shortName": "SnapshotsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.list_snapshots", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.delete_snapshot", "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", "service": { "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", "shortName": "SnapshotsV1Beta3" }, - "shortName": "ListSnapshots" + "shortName": "DeleteSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest" + "type": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest" }, { "name": "retry", @@ -3251,14 +1882,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.ListSnapshotsResponse", - "shortName": "list_snapshots" + "resultType": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotResponse", + "shortName": "delete_snapshot" }, - "description": "Sample for ListSnapshots", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_async.py", + "description": "Sample for DeleteSnapshot", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_async", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_async", "segments": [ { "end": 50, @@ -3291,7 +1922,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_async.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_async.py" }, { "canonical": true, @@ -3300,19 +1931,19 @@ "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", "shortName": "SnapshotsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.list_snapshots", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.delete_snapshot", "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", "service": { "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", "shortName": "SnapshotsV1Beta3" }, - "shortName": "ListSnapshots" + "shortName": "DeleteSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest" + "type": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotRequest" }, { "name": "retry", @@ -3327,14 +1958,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.ListSnapshotsResponse", - "shortName": "list_snapshots" + "resultType": "google.cloud.dataflow_v1beta3.types.DeleteSnapshotResponse", + "shortName": "delete_snapshot" }, - "description": "Sample for ListSnapshots", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py", + "description": "Sample for DeleteSnapshot", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync", "segments": [ { "end": 50, @@ -3367,28 +1998,29 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_6da08cb9.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_delete_snapshot_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", - "shortName": "SnapshotsV1Beta3Client" + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient", + "shortName": "SnapshotsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.list_snapshots", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.get_snapshot", "method": { - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", "service": { "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", "shortName": "SnapshotsV1Beta3" }, - "shortName": "ListSnapshots" + "shortName": "GetSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetSnapshotRequest" }, { "name": "retry", @@ -3403,14 +2035,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.ListSnapshotsResponse", - "shortName": "list_snapshots" + "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", + "shortName": "get_snapshot" }, - "description": "Sample for ListSnapshots", - "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py", + "description": "Sample for GetSnapshot", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_async", "segments": [ { "end": 50, @@ -3443,29 +2075,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync_425e5024.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient", - "shortName": "TemplatesServiceAsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", + "shortName": "SnapshotsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.create_job_from_template", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.get_snapshot", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", "service": { - "fullName": "google.dataflow.v1beta3.TemplatesService", - "shortName": "TemplatesService" + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", + "shortName": "SnapshotsV1Beta3" }, - "shortName": "CreateJobFromTemplate" + "shortName": "GetSnapshot" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetSnapshotRequest" }, { "name": "retry", @@ -3480,22 +2111,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job_from_template" + "resultType": "google.cloud.dataflow_v1beta3.types.Snapshot", + "shortName": "get_snapshot" }, - "description": "Sample for CreateJobFromTemplate", - "file": "dataflow_v1beta3_generated_templates_service_create_job_from_template_async.py", + "description": "Sample for GetSnapshot", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_async", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -3505,43 +2136,44 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_create_job_from_template_async.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_get_snapshot_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", - "shortName": "TemplatesServiceClient" + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient", + "shortName": "SnapshotsV1Beta3AsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.create_job_from_template", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3AsyncClient.list_snapshots", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", "service": { - "fullName": "google.dataflow.v1beta3.TemplatesService", - "shortName": "TemplatesService" + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", + "shortName": "SnapshotsV1Beta3" }, - "shortName": "CreateJobFromTemplate" + "shortName": "ListSnapshots" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest" }, { "name": "retry", @@ -3556,22 +2188,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job_from_template" + "resultType": "google.cloud.dataflow_v1beta3.types.ListSnapshotsResponse", + "shortName": "list_snapshots" }, - "description": "Sample for CreateJobFromTemplate", - "file": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py", + "description": "Sample for ListSnapshots", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_async", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -3581,43 +2213,43 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_9e26a4bf.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", - "shortName": "TemplatesServiceClient" + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client", + "shortName": "SnapshotsV1Beta3Client" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.create_job_from_template", + "fullName": "google.cloud.dataflow_v1beta3.SnapshotsV1Beta3Client.list_snapshots", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", "service": { - "fullName": "google.dataflow.v1beta3.TemplatesService", - "shortName": "TemplatesService" + "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3", + "shortName": "SnapshotsV1Beta3" }, - "shortName": "CreateJobFromTemplate" + "shortName": "ListSnapshots" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.ListSnapshotsRequest" }, { "name": "retry", @@ -3632,22 +2264,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.Job", - "shortName": "create_job_from_template" + "resultType": "google.cloud.dataflow_v1beta3.types.ListSnapshotsResponse", + "shortName": "list_snapshots" }, - "description": "Sample for CreateJobFromTemplate", - "file": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py", + "description": "Sample for ListSnapshots", + "file": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync", "segments": [ { - "end": 51, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 50, "start": 27, "type": "SHORT" }, @@ -3657,22 +2289,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 44, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync_e2cb482f.py" + "title": "dataflow_v1beta3_generated_snapshots_v1_beta3_list_snapshots_sync.py" }, { "canonical": true, @@ -3682,19 +2314,19 @@ "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient", "shortName": "TemplatesServiceAsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.get_template", + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.create_job_from_template", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", + "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", "service": { "fullName": "google.dataflow.v1beta3.TemplatesService", "shortName": "TemplatesService" }, - "shortName": "GetTemplate" + "shortName": "CreateJobFromTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest" }, { "name": "retry", @@ -3709,14 +2341,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.GetTemplateResponse", - "shortName": "get_template" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "create_job_from_template" }, - "description": "Sample for GetTemplate", - "file": "dataflow_v1beta3_generated_templates_service_get_template_async.py", + "description": "Sample for CreateJobFromTemplate", + "file": "dataflow_v1beta3_generated_templates_service_create_job_from_template_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_async", + "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_async", "segments": [ { "end": 51, @@ -3749,7 +2381,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_get_template_async.py" + "title": "dataflow_v1beta3_generated_templates_service_create_job_from_template_async.py" }, { "canonical": true, @@ -3758,19 +2390,19 @@ "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", "shortName": "TemplatesServiceClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.get_template", + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.create_job_from_template", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", + "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", "service": { "fullName": "google.dataflow.v1beta3.TemplatesService", "shortName": "TemplatesService" }, - "shortName": "GetTemplate" + "shortName": "CreateJobFromTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.GetTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.CreateJobFromTemplateRequest" }, { "name": "retry", @@ -3785,14 +2417,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.GetTemplateResponse", - "shortName": "get_template" + "resultType": "google.cloud.dataflow_v1beta3.types.Job", + "shortName": "create_job_from_template" }, - "description": "Sample for GetTemplate", - "file": "dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py", + "description": "Sample for CreateJobFromTemplate", + "file": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", "segments": [ { "end": 51, @@ -3825,16 +2457,17 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_get_template_sync_732e6209.py" + "title": "dataflow_v1beta3_generated_templates_service_create_job_from_template_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", - "shortName": "TemplatesServiceClient" + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient", + "shortName": "TemplatesServiceAsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.get_template", + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.get_template", "method": { "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", "service": { @@ -3865,10 +2498,10 @@ "shortName": "get_template" }, "description": "Sample for GetTemplate", - "file": "dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py", + "file": "dataflow_v1beta3_generated_templates_service_get_template_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_async", "segments": [ { "end": 51, @@ -3901,29 +2534,28 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_get_template_sync_07cd261a.py" + "title": "dataflow_v1beta3_generated_templates_service_get_template_async.py" }, { "canonical": true, "clientMethod": { - "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient", - "shortName": "TemplatesServiceAsyncClient" + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", + "shortName": "TemplatesServiceClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.launch_template", + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.get_template", "method": { - "fullName": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", + "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", "service": { "fullName": "google.dataflow.v1beta3.TemplatesService", "shortName": "TemplatesService" }, - "shortName": "LaunchTemplate" + "shortName": "GetTemplate" }, "parameters": [ { "name": "request", - "type": "google.cloud.dataflow_v1beta3.types.LaunchTemplateRequest" + "type": "google.cloud.dataflow_v1beta3.types.GetTemplateRequest" }, { "name": "retry", @@ -3938,14 +2570,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.dataflow_v1beta3.types.LaunchTemplateResponse", - "shortName": "launch_template" + "resultType": "google.cloud.dataflow_v1beta3.types.GetTemplateResponse", + "shortName": "get_template" }, - "description": "Sample for LaunchTemplate", - "file": "dataflow_v1beta3_generated_templates_service_launch_template_async.py", + "description": "Sample for GetTemplate", + "file": "dataflow_v1beta3_generated_templates_service_get_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_async", + "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", "segments": [ { "end": 51, @@ -3978,16 +2610,17 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_launch_template_async.py" + "title": "dataflow_v1beta3_generated_templates_service_get_template_sync.py" }, { "canonical": true, "clientMethod": { + "async": true, "client": { - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient", - "shortName": "TemplatesServiceClient" + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient", + "shortName": "TemplatesServiceAsyncClient" }, - "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceClient.launch_template", + "fullName": "google.cloud.dataflow_v1beta3.TemplatesServiceAsyncClient.launch_template", "method": { "fullName": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", "service": { @@ -4018,10 +2651,10 @@ "shortName": "launch_template" }, "description": "Sample for LaunchTemplate", - "file": "dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py", + "file": "dataflow_v1beta3_generated_templates_service_launch_template_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", + "regionTag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_async", "segments": [ { "end": 51, @@ -4054,7 +2687,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_launch_template_sync_77764eb9.py" + "title": "dataflow_v1beta3_generated_templates_service_launch_template_async.py" }, { "canonical": true, @@ -4094,7 +2727,7 @@ "shortName": "launch_template" }, "description": "Sample for LaunchTemplate", - "file": "dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py", + "file": "dataflow_v1beta3_generated_templates_service_launch_template_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", "regionTag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", @@ -4130,7 +2763,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "dataflow_v1beta3_generated_templates_service_launch_template_sync_140179ca.py" + "title": "dataflow_v1beta3_generated_templates_service_launch_template_sync.py" } ] } diff --git a/packages/google-cloud-dataflow-client/setup.py b/packages/google-cloud-dataflow-client/setup.py index ac10bd57feb6..640e85f0d438 100644 --- a/packages/google-cloud-dataflow-client/setup.py +++ b/packages/google-cloud-dataflow-client/setup.py @@ -1,34 +1,46 @@ # -*- coding: utf-8 -*- -# -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# https://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - +# import io import os -import setuptools +import setuptools # type: ignore + +package_root = os.path.abspath(os.path.dirname(__file__)) name = "google-cloud-dataflow-client" -description = "Cloud Dataflow API client library" -version = "0.6.2" -release_status = "Development Status :: 4 - Beta" -url = "https://github.com/googleapis/python-dataflow-client" + + +description = "Google Cloud Dataflow Client API client library" + +version = {} +with open(os.path.join(package_root, "google/cloud/dataflow/gapic_version.py")) as fp: + exec(fp.read(), version) +version = version["__version__"] + +if version[0] == "0": + release_status = "Development Status :: 4 - Beta" +else: + release_status = "Development Status :: 5 - Production/Stable" + dependencies = [ "google-api-core[grpc] >= 1.33.2, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*", "proto-plus >= 1.22.0, <2.0.0dev", "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5", ] +url = "https://github.com/googleapis/python-dataflow-client" package_root = os.path.abspath(os.path.dirname(__file__)) @@ -46,7 +58,6 @@ if "google.cloud" in packages: namespaces.append("google.cloud") - setuptools.setup( name=name, version=version, diff --git a/packages/google-cloud-dataflow-client/testing/constraints-3.10.txt b/packages/google-cloud-dataflow-client/testing/constraints-3.10.txt index e69de29bb2d1..ed7f9aed2559 100644 --- a/packages/google-cloud-dataflow-client/testing/constraints-3.10.txt +++ b/packages/google-cloud-dataflow-client/testing/constraints-3.10.txt @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf diff --git a/packages/google-cloud-dataflow-client/testing/constraints-3.11.txt b/packages/google-cloud-dataflow-client/testing/constraints-3.11.txt index e69de29bb2d1..ed7f9aed2559 100644 --- a/packages/google-cloud-dataflow-client/testing/constraints-3.11.txt +++ b/packages/google-cloud-dataflow-client/testing/constraints-3.11.txt @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf diff --git a/packages/google-cloud-dataflow-client/testing/constraints-3.8.txt b/packages/google-cloud-dataflow-client/testing/constraints-3.8.txt index e69de29bb2d1..ed7f9aed2559 100644 --- a/packages/google-cloud-dataflow-client/testing/constraints-3.8.txt +++ b/packages/google-cloud-dataflow-client/testing/constraints-3.8.txt @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf diff --git a/packages/google-cloud-dataflow-client/testing/constraints-3.9.txt b/packages/google-cloud-dataflow-client/testing/constraints-3.9.txt index e69de29bb2d1..ed7f9aed2559 100644 --- a/packages/google-cloud-dataflow-client/testing/constraints-3.9.txt +++ b/packages/google-cloud-dataflow-client/testing/constraints-3.9.txt @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# This constraints file is required for unit tests. +# List all library dependencies and extras in this file. +google-api-core +proto-plus +protobuf