Skip to content

Commit 64720a4

Browse files
[CHANGE ME] Re-generated billingbudgets to pick up changes in the API or client library generator.
1 parent c6d953b commit 64720a4

File tree

3 files changed

+3431
-17
lines changed

3 files changed

+3431
-17
lines changed

billingbudgets/google/cloud/billing_budgets_v1beta1/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616

1717

1818
from __future__ import absolute_import
19+
import sys
20+
import warnings
1921

2022
from google.cloud.billing_budgets_v1beta1 import types
2123
from google.cloud.billing_budgets_v1beta1.gapic import budget_service_client
2224
from google.cloud.billing_budgets_v1beta1.gapic import enums
2325

2426

27+
if sys.version_info[:2] == (2, 7):
28+
message = (
29+
"A future version of this library will drop support for Python 2.7."
30+
"More details about Python 2 support for Google Cloud Client Libraries"
31+
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
32+
)
33+
warnings.warn(message, DeprecationWarning)
34+
35+
2536
class BudgetServiceClient(budget_service_client.BudgetServiceClient):
2637
__doc__ = budget_service_client.BudgetServiceClient.__doc__
2738
enums = enums

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

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

8484
@classmethod
8585
def billing_account_path(cls, billing_account):
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-
)
86+
"""Return a fully-qualified billing_account string."""
9287
return google.api_core.path_template.expand(
9388
"billingAccounts/{billing_account}", billing_account=billing_account
9489
)
9590

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

0 commit comments

Comments
 (0)