@Generated("by gapic-generator-java")
Package com.google.cloud.billing.budgets.v1beta1
A client to Cloud Billing Budget API
The interfaces provided are listed below, along with usage samples.
======================= BudgetServiceClient =======================
Service Description: BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.
Sample for BudgetServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
CreateBudgetRequest request =
CreateBudgetRequest.newBuilder()
.setParent(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
.setBudget(Budget.newBuilder().build())
.build();
Budget response = budgetServiceClient.createBudget(request);
}
-
Interface Summary Interface Description AllUpdatesRuleOrBuilder BudgetAmountOrBuilder BudgetOrBuilder BudgetServiceGrpc.AsyncService BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.CreateBudgetRequestOrBuilder CustomPeriodOrBuilder DeleteBudgetRequestOrBuilder FilterOrBuilder GetBudgetRequestOrBuilder LastPeriodAmountOrBuilder ListBudgetsRequestOrBuilder ListBudgetsResponseOrBuilder ThresholdRuleOrBuilder UpdateBudgetRequestOrBuilder -
Class Summary Class Description AllUpdatesRule AllUpdatesRule defines notifications that are sent based on budget spend and thresholds.AllUpdatesRule.Builder AllUpdatesRule defines notifications that are sent based on budget spend and thresholds.Budget A budget is a plan that describes what you expect to spend on Cloud projects, plus the rules to execute as spend is tracked against that plan, (for example, send an alert when 90% of the target spend is met).Budget.Builder A budget is a plan that describes what you expect to spend on Cloud projects, plus the rules to execute as spend is tracked against that plan, (for example, send an alert when 90% of the target spend is met).BudgetAmount The budgeted amount for each usage period.BudgetAmount.Builder The budgeted amount for each usage period.BudgetModel BudgetName BudgetName.Builder Builder for billingAccounts/{billing_account}/budgets/{budget}.BudgetServiceClient Service Description: BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.BudgetServiceClient.ListBudgetsFixedSizeCollection BudgetServiceClient.ListBudgetsPage BudgetServiceClient.ListBudgetsPagedResponse BudgetServiceGrpc BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.BudgetServiceGrpc.BudgetServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service BudgetService.BudgetServiceGrpc.BudgetServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service BudgetService.BudgetServiceGrpc.BudgetServiceImplBase Base class for the server implementation of the service BudgetService.BudgetServiceGrpc.BudgetServiceStub A stub to allow clients to do asynchronous rpc calls to service BudgetService.BudgetServiceOuterClass BudgetServiceSettings Settings class to configure an instance ofBudgetServiceClient
.BudgetServiceSettings.Builder Builder for BudgetServiceSettings.CreateBudgetRequest Request for CreateBudgetCreateBudgetRequest.Builder Request for CreateBudgetCustomPeriod All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).CustomPeriod.Builder All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).DeleteBudgetRequest Request for DeleteBudgetDeleteBudgetRequest.Builder Request for DeleteBudgetFilter A filter for a budget, limiting the scope of the cost to calculate.Filter.Builder A filter for a budget, limiting the scope of the cost to calculate.GetBudgetRequest Request for GetBudgetGetBudgetRequest.Builder Request for GetBudgetLastPeriodAmount Describes a budget amount targeted to the last [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period] spend.LastPeriodAmount.Builder Describes a budget amount targeted to the last [Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period] spend.ListBudgetsRequest Request for ListBudgetsListBudgetsRequest.Builder Request for ListBudgetsListBudgetsResponse Response for ListBudgetsListBudgetsResponse.Builder Response for ListBudgetsThresholdRule ThresholdRule contains the definition of a threshold.ThresholdRule.Builder ThresholdRule contains the definition of a threshold.UpdateBudgetRequest Request for UpdateBudgetUpdateBudgetRequest.Builder Request for UpdateBudget -
Enum Summary Enum Description BudgetAmount.BudgetAmountCase CalendarPeriod A `CalendarPeriod` represents the abstract concept of a time period that has a canonical start.Filter.CreditTypesTreatment Specifies how credits are applied when determining the spend for threshold calculations.Filter.UsagePeriodCase ThresholdRule.Basis The type of basis used to determine if spend has passed the threshold.