From 38bd5bbc19b5ed8468adfdf7a88f5f3a7b620449 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 19 Nov 2019 10:12:57 -0800 Subject: [PATCH] fix(billingbudgets): deprecate resource name helper methods (via synth) (#9830) --- .../gapic/budget_service_client.py | 14 ++++++++++++-- billingbudgets/synth.metadata | 10 +++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py b/billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py index 4b813afb49b7..304fe49ea11e 100644 --- a/billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py +++ b/billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py @@ -83,14 +83,24 @@ def from_service_account_file(cls, filename, *args, **kwargs): @classmethod def billing_account_path(cls, billing_account): - """Return a fully-qualified billing_account string.""" + """DEPRECATED. Return a fully-qualified billing_account string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "billingAccounts/{billing_account}", billing_account=billing_account ) @classmethod def budget_path(cls, billing_account, budget): - """Return a fully-qualified budget string.""" + """DEPRECATED. Return a fully-qualified budget string.""" + warnings.warn( + "Resource name helper functions are deprecated.", + PendingDeprecationWarning, + stacklevel=1, + ) return google.api_core.path_template.expand( "billingAccounts/{billing_account}/budgets/{budget}", billing_account=billing_account, diff --git a/billingbudgets/synth.metadata b/billingbudgets/synth.metadata index f09cac262c29..e2e162a0b8cf 100644 --- a/billingbudgets/synth.metadata +++ b/billingbudgets/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-15T13:16:37.374488Z", + "updateTime": "2019-11-19T13:16:42.779546Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.1", - "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e" + "version": "0.42.1", + "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f6808ff4e8b966cd571e99279d4a2780ed97dff2", - "internalRef": "280581337" + "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", + "internalRef": "281088257" } }, {