Skip to content

Commit

Permalink
fix(billingbudgets): deprecate resource name helper methods (via synt…
Browse files Browse the repository at this point in the history
…h) (#9830)
  • Loading branch information
yoshi-automation authored and busunkim96 committed Nov 19, 2019
1 parent 111635f commit 38bd5bb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions 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"
}
},
{
Expand Down

0 comments on commit 38bd5bb

Please sign in to comment.