Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

feat: Added support for configurable budget time period. #91

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/budgets_v1/budget_service.rst
Expand Up @@ -5,7 +5,6 @@ BudgetService
:members:
:inherited-members:


.. automodule:: google.cloud.billing.budgets_v1.services.budget_service.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/budgets_v1beta1/budget_service.rst
Expand Up @@ -5,7 +5,6 @@ BudgetService
:members:
:inherited-members:


.. automodule:: google.cloud.billing.budgets_v1beta1.services.budget_service.pagers
:members:
:inherited-members:
24 changes: 14 additions & 10 deletions google/cloud/billing/budgets/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,18 +14,21 @@
# limitations under the License.
#

from google.cloud.billing.budgets_v1.services.budget_service.async_client import (
BudgetServiceAsyncClient,
)
from google.cloud.billing.budgets_v1.services.budget_service.client import (
BudgetServiceClient,
)
from google.cloud.billing.budgets_v1.services.budget_service.async_client import (
BudgetServiceAsyncClient,
)

from google.cloud.billing.budgets_v1.types.budget_model import Budget
from google.cloud.billing.budgets_v1.types.budget_model import BudgetAmount
from google.cloud.billing.budgets_v1.types.budget_model import CustomPeriod
from google.cloud.billing.budgets_v1.types.budget_model import Filter
from google.cloud.billing.budgets_v1.types.budget_model import LastPeriodAmount
from google.cloud.billing.budgets_v1.types.budget_model import NotificationsRule
from google.cloud.billing.budgets_v1.types.budget_model import ThresholdRule
from google.cloud.billing.budgets_v1.types.budget_model import CalendarPeriod
from google.cloud.billing.budgets_v1.types.budget_service import CreateBudgetRequest
from google.cloud.billing.budgets_v1.types.budget_service import DeleteBudgetRequest
from google.cloud.billing.budgets_v1.types.budget_service import GetBudgetRequest
Expand All @@ -35,18 +37,20 @@
from google.cloud.billing.budgets_v1.types.budget_service import UpdateBudgetRequest

__all__ = (
"BudgetServiceClient",
"BudgetServiceAsyncClient",
"Budget",
"BudgetAmount",
"BudgetServiceAsyncClient",
"BudgetServiceClient",
"CustomPeriod",
"Filter",
"LastPeriodAmount",
"NotificationsRule",
"ThresholdRule",
"CalendarPeriod",
"CreateBudgetRequest",
"DeleteBudgetRequest",
"Filter",
"GetBudgetRequest",
"LastPeriodAmount",
"ListBudgetsRequest",
"ListBudgetsResponse",
"NotificationsRule",
"ThresholdRule",
"UpdateBudgetRequest",
)
11 changes: 8 additions & 3 deletions google/cloud/billing/budgets_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,24 +15,31 @@
#

from .services.budget_service import BudgetServiceClient
from .services.budget_service import BudgetServiceAsyncClient

from .types.budget_model import Budget
from .types.budget_model import BudgetAmount
from .types.budget_model import CustomPeriod
from .types.budget_model import Filter
from .types.budget_model import LastPeriodAmount
from .types.budget_model import NotificationsRule
from .types.budget_model import ThresholdRule
from .types.budget_model import CalendarPeriod
from .types.budget_service import CreateBudgetRequest
from .types.budget_service import DeleteBudgetRequest
from .types.budget_service import GetBudgetRequest
from .types.budget_service import ListBudgetsRequest
from .types.budget_service import ListBudgetsResponse
from .types.budget_service import UpdateBudgetRequest


__all__ = (
"BudgetServiceAsyncClient",
"Budget",
"BudgetAmount",
"BudgetServiceClient",
"CalendarPeriod",
"CreateBudgetRequest",
"CustomPeriod",
"DeleteBudgetRequest",
"Filter",
"GetBudgetRequest",
Expand All @@ -43,5 +49,4 @@
"NotificationsRule",
"ThresholdRule",
"UpdateBudgetRequest",
"BudgetServiceClient",
)
73 changes: 73 additions & 0 deletions google/cloud/billing/budgets_v1/gapic_metadata.json
@@ -0,0 +1,73 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.billing.budgets_v1",
"protoPackage": "google.cloud.billing.budgets.v1",
"schema": "1.0",
"services": {
"BudgetService": {
"clients": {
"grpc": {
"libraryClient": "BudgetServiceClient",
"rpcs": {
"CreateBudget": {
"methods": [
"create_budget"
]
},
"DeleteBudget": {
"methods": [
"delete_budget"
]
},
"GetBudget": {
"methods": [
"get_budget"
]
},
"ListBudgets": {
"methods": [
"list_budgets"
]
},
"UpdateBudget": {
"methods": [
"update_budget"
]
}
}
},
"grpc-async": {
"libraryClient": "BudgetServiceAsyncClient",
"rpcs": {
"CreateBudget": {
"methods": [
"create_budget"
]
},
"DeleteBudget": {
"methods": [
"delete_budget"
]
},
"GetBudget": {
"methods": [
"get_budget"
]
},
"ListBudgets": {
"methods": [
"list_budgets"
]
},
"UpdateBudget": {
"methods": [
"update_budget"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/billing/budgets_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import BudgetServiceClient
from .async_client import BudgetServiceAsyncClient

Expand Down