From cb108b280ac3b2cd66bf77ba734498d4982e653e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 Aug 2021 15:26:24 +0000 Subject: [PATCH 01/12] chore(python): disable dependency dashboard (#209) --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a9fcd07c..b75186cf 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803 + digest: sha256:d6761eec279244e57fe9d21f8343381a01d3632c034811a72f68b83119e58c69 diff --git a/renovate.json b/renovate.json index c0489556..9fa8816f 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,8 @@ { "extends": [ - "config:base", ":preserveSemverRanges" + "config:base", + ":preserveSemverRanges", + ":disableDependencyDashboard" ], "ignorePaths": [".pre-commit-config.yaml"], "pip_requirements": { From 8b924daf02a4b5130d2fed55f7480c590ce061a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Aug 2021 22:31:07 +0200 Subject: [PATCH 02/12] chore(deps): update dependency pytest to v6.2.5 (#210) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 64a590b8..1544ef10 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-cloud-bigquery==2.25.1 google-cloud-pubsub==2.7.1 -pytest==6.2.4 +pytest==6.2.5 mock==4.0.3 From ed19dd7e0a5c9860de35ea3a3d3a237e4991052b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 16:47:36 +0200 Subject: [PATCH 03/12] chore(deps): update dependency google-cloud-bigquery-datatransfer to v3.3.2 (#212) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 4266eefc..5ab939b4 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-bigquery-datatransfer==3.3.1 +google-cloud-bigquery-datatransfer==3.3.2 From 4fa56c1f242db1dae645fc7c211511977fb01e6a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 16:52:05 +0200 Subject: [PATCH 04/12] chore(deps): update dependency google-cloud-bigquery to v2.25.2 (#213) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 1544ef10..f297edf2 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==2.25.1 +google-cloud-bigquery==2.25.2 google-cloud-pubsub==2.7.1 pytest==6.2.5 mock==4.0.3 From 9c6191c85925b93806d2f2d52df214df1429c8a0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 15:42:32 +0000 Subject: [PATCH 05/12] chore(python): group renovate prs (#214) --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b75186cf..ef3cb34f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:d6761eec279244e57fe9d21f8343381a01d3632c034811a72f68b83119e58c69 + digest: sha256:1456ea2b3b523ccff5e13030acef56d1de28f21249c62aa0f196265880338fa7 diff --git a/renovate.json b/renovate.json index 9fa8816f..c21036d3 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,7 @@ { "extends": [ "config:base", + "group:all", ":preserveSemverRanges", ":disableDependencyDashboard" ], From b5df60d5cf08a7fc1ee518aec9b769b3e3648dd2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 2 Sep 2021 02:29:58 +0200 Subject: [PATCH 06/12] chore(deps): update dependency google-cloud-bigquery to v2.26.0 (#216) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index f297edf2..dbc9f78e 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,4 +1,4 @@ -google-cloud-bigquery==2.25.2 +google-cloud-bigquery==2.26.0 google-cloud-pubsub==2.7.1 pytest==6.2.5 mock==4.0.3 From 3d7f691530fc24f42c487a83548c695b2a11cd8e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 2 Sep 2021 23:18:12 +0000 Subject: [PATCH 07/12] chore(python): rename default branch to main (#215) --- .github/.OwlBot.lock.yaml | 2 +- CONTRIBUTING.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index ef3cb34f..c07f148f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:1456ea2b3b523ccff5e13030acef56d1de28f21249c62aa0f196265880338fa7 + digest: sha256:0ffe3bdd6c7159692df5f7744da74e5ef19966288a6bf76023e8e04e0c424d7d diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 1498226b..c098a7b5 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -113,9 +113,9 @@ Coding Style export GOOGLE_CLOUD_TESTING_BRANCH="main" By doing this, you are specifying the location of the most up-to-date - version of ``python-bigquery-datatransfer``. The the suggested remote name ``upstream`` - should point to the official ``googleapis`` checkout and the - the branch should be the main branch on that remote (``main``). + version of ``python-bigquery-datatransfer``. The + remote name ``upstream`` should point to the official ``googleapis`` + checkout and the branch should be the default branch on that remote (``main``). - This repository contains configuration for the `pre-commit `__ tool, which automates checking From e1665cf15e9595120a1568e4b3ee06a5f2fffcde Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Tue, 7 Sep 2021 10:10:18 -0600 Subject: [PATCH 08/12] chore: reference main branch of google-cloud-python (#219) --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index c0d4feeb..f0717387 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ SaaS applications to Google BigQuery on a scheduled, managed basis. - `Product Documentation`_ .. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#general-availability + :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-bigquery-datatransfer.svg :target: https://pypi.org/project/google-cloud-bigquery-datatransfer/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-bigquery-datatransfer.svg From b2eca00c0efe5539c3a6d20aa67170fc4627ef02 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Sep 2021 00:18:23 +0200 Subject: [PATCH 09/12] chore(deps): update dependency google-cloud-pubsub to v2.8.0 (#218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | `==2.7.1` -> `==2.8.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.8.0/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.8.0/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-pubsub ### [`v2.8.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#​280-httpswwwgithubcomgoogleapispython-pubsubcomparev271v280-2021-09-02) [Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v2.7.1...v2.8.0) ##### Features - closed subscriber as context manager raises ([#​488](https://www.togithub.com/googleapis/python-pubsub/issues/488)) ([a05a3f2](https://www.github.com/googleapis/python-pubsub/commit/a05a3f250cf8567ffe0d2eb3ecc45856a2bcd07c)) ##### Documentation - clarify the types of Message parameters ([#​486](https://www.togithub.com/googleapis/python-pubsub/issues/486)) ([633e91b](https://www.github.com/googleapis/python-pubsub/commit/633e91bbfc0a8f4f484089acff6812b754f40c75)) ##### [2.7.1](https://www.github.com/googleapis/python-pubsub/compare/v2.7.0...v2.7.1) (2021-08-13) ##### Bug Fixes - remove dependency on pytz ([#​472](https://www.togithub.com/googleapis/python-pubsub/issues/472)) ([972cc16](https://www.github.com/googleapis/python-pubsub/commit/972cc163f5a1477b37a5ab7e329faf1468637fa2))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-bigquery-datatransfer). --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index dbc9f78e..fa06d96a 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1,4 +1,4 @@ google-cloud-bigquery==2.26.0 -google-cloud-pubsub==2.7.1 +google-cloud-pubsub==2.8.0 pytest==6.2.5 mock==4.0.3 From 390b16db1457bc48c6f3a0844ca2ccebfb0de867 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Tue, 21 Sep 2021 12:36:22 -0700 Subject: [PATCH 10/12] chore: relocate owl bot post processor (#221) chore: relocate owl bot post processor --- .github/.OwlBot.lock.yaml | 4 ++-- .github/.OwlBot.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index c07f148f..2567653c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - image: gcr.io/repo-automation-bots/owlbot-python:latest - digest: sha256:0ffe3bdd6c7159692df5f7744da74e5ef19966288a6bf76023e8e04e0c424d7d + image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest + digest: sha256:87eee22d276554e4e52863ec9b1cb6a7245815dfae20439712bf644348215a5a diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index 99839dbe..34fb29da 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -13,7 +13,7 @@ # limitations under the License. docker: - image: gcr.io/repo-automation-bots/owlbot-python:latest + image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest deep-remove-regex: - /owl-bot-staging From fe024dbcc3075fd779358d434f37ec3ee3a0adf9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:14:27 +0000 Subject: [PATCH 11/12] chore: use gapic-generator-python 0.51.2 (#222) - [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: https://github.com/googleapis/googleapis/commit/b224dfa52642a733ea64849d4e06d15c274bc08f Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9 --- .../services/data_transfer_service/client.py | 58 +++++++++---------- .../data_transfer_service/transports/base.py | 2 +- .../data_transfer_service/transports/grpc.py | 6 +- .../transports/grpc_asyncio.py | 6 +- ...fixup_bigquery_datatransfer_v1_keywords.py | 30 +++++----- 5 files changed, 51 insertions(+), 51 deletions(-) diff --git a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py index e735a19d..3f86cb3a 100644 --- a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py +++ b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/client.py @@ -17,7 +17,7 @@ from distutils import util import os import re -from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union +from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources import warnings @@ -396,7 +396,7 @@ def __init__( def get_data_source( self, - request: datatransfer.GetDataSourceRequest = None, + request: Union[datatransfer.GetDataSourceRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -407,7 +407,7 @@ def get_data_source( settings, which can be used for UI rendering. Args: - request (google.cloud.bigquery_datatransfer_v1.types.GetDataSourceRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.GetDataSourceRequest, dict]): The request object. A request to get data source info. name (str): Required. The field will contain name of the resource @@ -471,7 +471,7 @@ def get_data_source( def list_data_sources( self, - request: datatransfer.ListDataSourcesRequest = None, + request: Union[datatransfer.ListDataSourcesRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -482,7 +482,7 @@ def list_data_sources( settings, which can be used for UI rendering. Args: - request (google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.ListDataSourcesRequest, dict]): The request object. Request to list supported data sources and their data transfer settings. parent (str): @@ -554,7 +554,7 @@ def list_data_sources( def create_transfer_config( self, - request: datatransfer.CreateTransferConfigRequest = None, + request: Union[datatransfer.CreateTransferConfigRequest, dict] = None, *, parent: str = None, transfer_config: transfer.TransferConfig = None, @@ -565,7 +565,7 @@ def create_transfer_config( r"""Creates a new data transfer configuration. Args: - request (google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.CreateTransferConfigRequest, dict]): The request object. A request to create a data transfer configuration. If new credentials are needed for this transfer configuration, an authorization code must be @@ -651,7 +651,7 @@ def create_transfer_config( def update_transfer_config( self, - request: datatransfer.UpdateTransferConfigRequest = None, + request: Union[datatransfer.UpdateTransferConfigRequest, dict] = None, *, transfer_config: transfer.TransferConfig = None, update_mask: field_mask_pb2.FieldMask = None, @@ -663,7 +663,7 @@ def update_transfer_config( All fields must be set, even if they are not updated. Args: - request (google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.UpdateTransferConfigRequest, dict]): The request object. A request to update a transfer configuration. To update the user id of the transfer configuration, an authorization code needs to be @@ -743,7 +743,7 @@ def update_transfer_config( def delete_transfer_config( self, - request: datatransfer.DeleteTransferConfigRequest = None, + request: Union[datatransfer.DeleteTransferConfigRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -754,7 +754,7 @@ def delete_transfer_config( including any associated transfer runs and logs. Args: - request (google.cloud.bigquery_datatransfer_v1.types.DeleteTransferConfigRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferConfigRequest, dict]): The request object. A request to delete data transfer information. All associated transfer runs and log messages will be deleted as well. @@ -811,7 +811,7 @@ def delete_transfer_config( def get_transfer_config( self, - request: datatransfer.GetTransferConfigRequest = None, + request: Union[datatransfer.GetTransferConfigRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -821,7 +821,7 @@ def get_transfer_config( r"""Returns information about a data transfer config. Args: - request (google.cloud.bigquery_datatransfer_v1.types.GetTransferConfigRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferConfigRequest, dict]): The request object. A request to get data transfer information. name (str): @@ -890,7 +890,7 @@ def get_transfer_config( def list_transfer_configs( self, - request: datatransfer.ListTransferConfigsRequest = None, + request: Union[datatransfer.ListTransferConfigsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -901,7 +901,7 @@ def list_transfer_configs( by a project in the specified location. Args: - request (google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferConfigsRequest, dict]): The request object. A request to list data transfers configured for a BigQuery project. parent (str): @@ -972,7 +972,7 @@ def list_transfer_configs( def schedule_transfer_runs( self, - request: datatransfer.ScheduleTransferRunsRequest = None, + request: Union[datatransfer.ScheduleTransferRunsRequest, dict] = None, *, parent: str = None, start_time: timestamp_pb2.Timestamp = None, @@ -988,7 +988,7 @@ def schedule_transfer_runs( StartManualTransferRuns instead. Args: - request (google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.ScheduleTransferRunsRequest, dict]): The request object. A request to schedule transfer runs for a time range. parent (str): @@ -1073,7 +1073,7 @@ def schedule_transfer_runs( def start_manual_transfer_runs( self, - request: datatransfer.StartManualTransferRunsRequest = None, + request: Union[datatransfer.StartManualTransferRunsRequest, dict] = None, *, retry: retries.Retry = gapic_v1.method.DEFAULT, timeout: float = None, @@ -1085,7 +1085,7 @@ def start_manual_transfer_runs( and end_time (exclusive), or for a specific run_time. Args: - request (google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.StartManualTransferRunsRequest, dict]): The request object. A request to start manual transfer runs. retry (google.api_core.retry.Retry): Designation of what errors, if any, @@ -1128,7 +1128,7 @@ def start_manual_transfer_runs( def get_transfer_run( self, - request: datatransfer.GetTransferRunRequest = None, + request: Union[datatransfer.GetTransferRunRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1139,7 +1139,7 @@ def get_transfer_run( run. Args: - request (google.cloud.bigquery_datatransfer_v1.types.GetTransferRunRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.GetTransferRunRequest, dict]): The request object. A request to get data transfer run information. name (str): @@ -1201,7 +1201,7 @@ def get_transfer_run( def delete_transfer_run( self, - request: datatransfer.DeleteTransferRunRequest = None, + request: Union[datatransfer.DeleteTransferRunRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1211,7 +1211,7 @@ def delete_transfer_run( r"""Deletes the specified transfer run. Args: - request (google.cloud.bigquery_datatransfer_v1.types.DeleteTransferRunRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.DeleteTransferRunRequest, dict]): The request object. A request to delete data transfer run information. name (str): @@ -1268,7 +1268,7 @@ def delete_transfer_run( def list_transfer_runs( self, - request: datatransfer.ListTransferRunsRequest = None, + request: Union[datatransfer.ListTransferRunsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1278,7 +1278,7 @@ def list_transfer_runs( r"""Returns information about running and completed jobs. Args: - request (google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferRunsRequest, dict]): The request object. A request to list data transfer runs. UI can use this method to show/filter specific data transfer runs. The data source can use this method @@ -1353,7 +1353,7 @@ def list_transfer_runs( def list_transfer_logs( self, - request: datatransfer.ListTransferLogsRequest = None, + request: Union[datatransfer.ListTransferLogsRequest, dict] = None, *, parent: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1364,7 +1364,7 @@ def list_transfer_logs( transfer run. Args: - request (google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.ListTransferLogsRequest, dict]): The request object. A request to get user facing log messages associated with data transfer run. parent (str): @@ -1436,7 +1436,7 @@ def list_transfer_logs( def check_valid_creds( self, - request: datatransfer.CheckValidCredsRequest = None, + request: Union[datatransfer.CheckValidCredsRequest, dict] = None, *, name: str = None, retry: retries.Retry = gapic_v1.method.DEFAULT, @@ -1452,7 +1452,7 @@ def check_valid_creds( can create a transfer config. Args: - request (google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsRequest): + request (Union[google.cloud.bigquery_datatransfer_v1.types.CheckValidCredsRequest, dict]): The request object. A request to determine whether the user has valid credentials. This method is used to limit the number of OAuth popups in the user interface. The diff --git a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py index d4a0ff10..b74eab8e 100644 --- a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py +++ b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/base.py @@ -119,7 +119,7 @@ def __init__( **scopes_kwargs, quota_project_id=quota_project_id ) - # If the credentials is service account credentials, then always try to use self signed JWT. + # If the credentials are service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) diff --git a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py index b0041dff..fb8ae0b5 100644 --- a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py +++ b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc.py @@ -85,16 +85,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc_asyncio.py b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc_asyncio.py index b7c0d612..65a51fba 100644 --- a/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc_asyncio.py +++ b/google/cloud/bigquery_datatransfer_v1/services/data_transfer_service/transports/grpc_asyncio.py @@ -132,16 +132,16 @@ def __init__( api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. If provided, it overrides the ``host`` argument and tries to create a mutual TLS channel with client SSL credentials from - ``client_cert_source`` or applicatin default SSL credentials. + ``client_cert_source`` or application default SSL credentials. client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): Deprecated. A callback to provide client SSL certificate bytes and private key bytes, both in PEM format. It is ignored if ``api_mtls_endpoint`` is None. ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials - for grpc channel. It is ignored if ``channel`` is provided. + for the grpc channel. It is ignored if ``channel`` is provided. client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): A callback to provide client certificate bytes and private key bytes, - both in PEM format. It is used to configure mutual TLS channel. It is + both in PEM format. It is used to configure a mutual TLS channel. It is ignored if ``channel`` or ``ssl_channel_credentials`` is provided. quota_project_id (Optional[str]): An optional project to use for billing and quota. diff --git a/scripts/fixup_bigquery_datatransfer_v1_keywords.py b/scripts/fixup_bigquery_datatransfer_v1_keywords.py index f7746ab5..0db416f0 100644 --- a/scripts/fixup_bigquery_datatransfer_v1_keywords.py +++ b/scripts/fixup_bigquery_datatransfer_v1_keywords.py @@ -39,20 +39,20 @@ def partition( class bigquery_datatransferCallTransformer(cst.CSTTransformer): CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata') METHOD_TO_PARAMS: Dict[str, Tuple[str]] = { - 'check_valid_creds': ('name', ), - 'create_transfer_config': ('parent', 'transfer_config', 'authorization_code', 'version_info', 'service_account_name', ), - 'delete_transfer_config': ('name', ), - 'delete_transfer_run': ('name', ), - 'get_data_source': ('name', ), - 'get_transfer_config': ('name', ), - 'get_transfer_run': ('name', ), - 'list_data_sources': ('parent', 'page_token', 'page_size', ), - 'list_transfer_configs': ('parent', 'data_source_ids', 'page_token', 'page_size', ), - 'list_transfer_logs': ('parent', 'page_token', 'page_size', 'message_types', ), - 'list_transfer_runs': ('parent', 'states', 'page_token', 'page_size', 'run_attempt', ), - 'schedule_transfer_runs': ('parent', 'start_time', 'end_time', ), - 'start_manual_transfer_runs': ('parent', 'requested_time_range', 'requested_run_time', ), - 'update_transfer_config': ('transfer_config', 'update_mask', 'authorization_code', 'version_info', 'service_account_name', ), + 'check_valid_creds': ('name', ), + 'create_transfer_config': ('parent', 'transfer_config', 'authorization_code', 'version_info', 'service_account_name', ), + 'delete_transfer_config': ('name', ), + 'delete_transfer_run': ('name', ), + 'get_data_source': ('name', ), + 'get_transfer_config': ('name', ), + 'get_transfer_run': ('name', ), + 'list_data_sources': ('parent', 'page_token', 'page_size', ), + 'list_transfer_configs': ('parent', 'data_source_ids', 'page_token', 'page_size', ), + 'list_transfer_logs': ('parent', 'page_token', 'page_size', 'message_types', ), + 'list_transfer_runs': ('parent', 'states', 'page_token', 'page_size', 'run_attempt', ), + 'schedule_transfer_runs': ('parent', 'start_time', 'end_time', ), + 'start_manual_transfer_runs': ('parent', 'requested_time_range', 'requested_run_time', ), + 'update_transfer_config': ('transfer_config', 'update_mask', 'authorization_code', 'version_info', 'service_account_name', ), } def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: @@ -71,7 +71,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode: return updated kwargs, ctrl_kwargs = partition( - lambda a: not a.keyword.value in self.CTRL_PARAMS, + lambda a: a.keyword.value not in self.CTRL_PARAMS, kwargs ) From 29385c80a40a14ed5245b120944ff9c0ca243b07 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 14:56:29 +0000 Subject: [PATCH 12/12] chore: release 3.3.3 (#223) :robot: I have created a release \*beep\* \*boop\* --- ### [3.3.3](https://www.github.com/googleapis/python-bigquery-datatransfer/compare/v3.3.2...v3.3.3) (2021-09-24) ### Bug Fixes * add 'dict' annotation type to 'request' ([fe024db](https://www.github.com/googleapis/python-bigquery-datatransfer/commit/fe024dbcc3075fd779358d434f37ec3ee3a0adf9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e37b900..506449e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-cloud-bigquery-datatransfer/#history +### [3.3.3](https://www.github.com/googleapis/python-bigquery-datatransfer/compare/v3.3.2...v3.3.3) (2021-09-24) + + +### Bug Fixes + +* add 'dict' annotation type to 'request' ([fe024db](https://www.github.com/googleapis/python-bigquery-datatransfer/commit/fe024dbcc3075fd779358d434f37ec3ee3a0adf9)) + ### [3.3.2](https://www.github.com/googleapis/python-bigquery-datatransfer/compare/v3.3.1...v3.3.2) (2021-08-27) diff --git a/setup.py b/setup.py index 273688ce..fee8dee9 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-bigquery-datatransfer" description = "BigQuery Data Transfer API client library" -version = "3.3.2" +version = "3.3.3" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta'