Skip to content

Commit 38bd5bb

Browse files
yoshi-automationbusunkim96
authored andcommitted
fix(billingbudgets): deprecate resource name helper methods (via synth) (#9830)
1 parent 111635f commit 38bd5bb

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

billingbudgets/google/cloud/billing_budgets_v1beta1/gapic/budget_service_client.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,24 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8383

8484
@classmethod
8585
def billing_account_path(cls, billing_account):
86-
"""Return a fully-qualified billing_account string."""
86+
"""DEPRECATED. Return a fully-qualified billing_account string."""
87+
warnings.warn(
88+
"Resource name helper functions are deprecated.",
89+
PendingDeprecationWarning,
90+
stacklevel=1,
91+
)
8792
return google.api_core.path_template.expand(
8893
"billingAccounts/{billing_account}", billing_account=billing_account
8994
)
9095

9196
@classmethod
9297
def budget_path(cls, billing_account, budget):
93-
"""Return a fully-qualified budget string."""
98+
"""DEPRECATED. Return a fully-qualified budget string."""
99+
warnings.warn(
100+
"Resource name helper functions are deprecated.",
101+
PendingDeprecationWarning,
102+
stacklevel=1,
103+
)
94104
return google.api_core.path_template.expand(
95105
"billingAccounts/{billing_account}/budgets/{budget}",
96106
billing_account=billing_account,

billingbudgets/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-11-15T13:16:37.374488Z",
2+
"updateTime": "2019-11-19T13:16:42.779546Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.41.1",
8-
"dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
7+
"version": "0.42.1",
8+
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "f6808ff4e8b966cd571e99279d4a2780ed97dff2",
16-
"internalRef": "280581337"
15+
"sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a",
16+
"internalRef": "281088257"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)