From d3807720f6c50a9bb38036744d66f4dd77ebe430 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 12 Jul 2021 09:58:22 +0000 Subject: [PATCH] chore: use gapic-generator-python 0.50.4 (#174) PiperOrigin-RevId: 383929493 Source-Link: https://github.com/googleapis/googleapis/commit/dd1ef2849564ed64028b5c6ab0d098f5158a9165 Source-Link: https://github.com/googleapis/googleapis-gen/commit/507440292af237802f032d66830ed9c4f3435355 --- .../samples/snippets/manage_transfer_configs.py | 4 +++- .../samples/snippets/noxfile.py | 2 +- .../samples/snippets/run_notification_test.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-bigquery-datatransfer/samples/snippets/manage_transfer_configs.py b/packages/google-cloud-bigquery-datatransfer/samples/snippets/manage_transfer_configs.py index 5f775f100bc2..6b4abd7814e0 100644 --- a/packages/google-cloud-bigquery-datatransfer/samples/snippets/manage_transfer_configs.py +++ b/packages/google-cloud-bigquery-datatransfer/samples/snippets/manage_transfer_configs.py @@ -135,7 +135,9 @@ def schedule_backfill(override_values={}): ) response = transfer_client.schedule_transfer_runs( - parent=transfer_config_name, start_time=start_time, end_time=end_time, + parent=transfer_config_name, + start_time=start_time, + end_time=end_time, ) print("Started transfer runs:") diff --git a/packages/google-cloud-bigquery-datatransfer/samples/snippets/noxfile.py b/packages/google-cloud-bigquery-datatransfer/samples/snippets/noxfile.py index 160fe728648f..b3c8658a3a72 100644 --- a/packages/google-cloud-bigquery-datatransfer/samples/snippets/noxfile.py +++ b/packages/google-cloud-bigquery-datatransfer/samples/snippets/noxfile.py @@ -226,7 +226,7 @@ def py(session: nox.sessions.Session) -> None: def _get_repo_root() -> Optional[str]: - """ Returns the root folder of the project. """ + """Returns the root folder of the project.""" # Get root of this repository. Assume we don't have directories nested deeper than 10 items. p = Path(os.getcwd()) for i in range(10): diff --git a/packages/google-cloud-bigquery-datatransfer/samples/snippets/run_notification_test.py b/packages/google-cloud-bigquery-datatransfer/samples/snippets/run_notification_test.py index 4c41e6890fe5..02f24266cdf6 100644 --- a/packages/google-cloud-bigquery-datatransfer/samples/snippets/run_notification_test.py +++ b/packages/google-cloud-bigquery-datatransfer/samples/snippets/run_notification_test.py @@ -17,7 +17,8 @@ def test_run_notification(capsys, transfer_config_name, pubsub_topic): run_notification.run_notification( - transfer_config_name=transfer_config_name, pubsub_topic=pubsub_topic, + transfer_config_name=transfer_config_name, + pubsub_topic=pubsub_topic, ) out, _ = capsys.readouterr() assert "Updated config:" in out