Class BudgetsAPI
- java.lang.Object
-
- com.databricks.sdk.service.billing.BudgetsAPI
-
@Generated public class BudgetsAPI extends Object
These APIs manage budget configuration including notifications for exceeding a budget for a period. They can also retrieve the status of each budget.
-
-
Constructor Summary
Constructors Constructor Description BudgetsAPI(ApiClient apiClient)Regular-use constructorBudgetsAPI(BudgetsService mock)Constructor for mocks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WrappedBudgetWithStatuscreate(Budget budget)WrappedBudgetWithStatuscreate(WrappedBudget request)Create a new budget.voiddelete(DeleteBudgetRequest request)Delete budget.voiddelete(String budgetId)WrappedBudgetWithStatusget(GetBudgetRequest request)Get budget and its status.WrappedBudgetWithStatusget(String budgetId)BudgetsServiceimpl()Iterable<BudgetWithStatus>list()Get all budgets.voidupdate(Budget budget, String budgetId)voidupdate(WrappedBudget request)Modify budget.
-
-
-
Constructor Detail
-
BudgetsAPI
public BudgetsAPI(ApiClient apiClient)
Regular-use constructor
-
BudgetsAPI
public BudgetsAPI(BudgetsService mock)
Constructor for mocks
-
-
Method Detail
-
create
public WrappedBudgetWithStatus create(Budget budget)
-
create
public WrappedBudgetWithStatus create(WrappedBudget request)
Create a new budget.Creates a new budget in the specified account.
-
delete
public void delete(String budgetId)
-
delete
public void delete(DeleteBudgetRequest request)
Delete budget.Deletes the budget specified by its UUID.
-
get
public WrappedBudgetWithStatus get(String budgetId)
-
get
public WrappedBudgetWithStatus get(GetBudgetRequest request)
Get budget and its status.Gets the budget specified by its UUID, including noncumulative status for each day that the budget is configured to include.
-
list
public Iterable<BudgetWithStatus> list()
Get all budgets.Gets all budgets associated with this account, including noncumulative status for each day that the budget is configured to include.
-
update
public void update(WrappedBudget request)
Modify budget.Modifies a budget in this account. Budget properties are completely overwritten.
-
impl
public BudgetsService impl()
-
-