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 WrappedBudgetWithStatus
create(Budget budget, String budgetId)
WrappedBudgetWithStatus
create(WrappedBudget request)
Create a new budget.void
delete(DeleteBudgetRequest request)
Delete budget.void
delete(String budgetId)
WrappedBudgetWithStatus
get(GetBudgetRequest request)
Get budget and its status.WrappedBudgetWithStatus
get(String budgetId)
BudgetsService
impl()
Iterable<BudgetWithStatus>
list()
Get all budgets.void
update(Budget budget, String budgetId)
void
update(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, String budgetId)
-
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()
-
-