Cloud Billing Budget v1beta1 API - Class BudgetService.BudgetServiceBase (2.0.0-beta06)

[BindServiceMethod(typeof(BudgetService), "BindService")]
public abstract class BudgetService.BudgetServiceBase

Reference documentation and code samples for the Cloud Billing Budget v1beta1 API class BudgetService.BudgetServiceBase.

Base class for server-side implementations of BudgetService

Inheritance

object > BudgetService.BudgetServiceBase

Namespace

Google.Cloud.Billing.Budgets.V1Beta1

Assembly

Google.Cloud.Billing.Budgets.V1Beta1.dll

Methods

CreateBudget(CreateBudgetRequest, ServerCallContext)

public virtual Task<Budget> CreateBudget(CreateBudgetRequest request, ServerCallContext context)

Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create.

Parameters
Name Description
request CreateBudgetRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskBudget

The response to send back to the client (wrapped by a task).

DeleteBudget(DeleteBudgetRequest, ServerCallContext)

public virtual Task<Empty> DeleteBudget(DeleteBudgetRequest request, ServerCallContext context)

Deletes a budget. Returns successfully if already deleted.

Parameters
Name Description
request DeleteBudgetRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEmpty

The response to send back to the client (wrapped by a task).

GetBudget(GetBudgetRequest, ServerCallContext)

public virtual Task<Budget> GetBudget(GetBudgetRequest request, ServerCallContext context)

Returns a budget.

WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

Parameters
Name Description
request GetBudgetRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskBudget

The response to send back to the client (wrapped by a task).

ListBudgets(ListBudgetsRequest, ServerCallContext)

public virtual Task<ListBudgetsResponse> ListBudgets(ListBudgetsRequest request, ServerCallContext context)

Returns a list of budgets for a billing account.

WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

Parameters
Name Description
request ListBudgetsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListBudgetsResponse

The response to send back to the client (wrapped by a task).

UpdateBudget(UpdateBudgetRequest, ServerCallContext)

public virtual Task<Budget> UpdateBudget(UpdateBudgetRequest request, ServerCallContext context)

Updates a budget and returns the updated budget.

WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. Budget fields that are not exposed in this API will not be changed by this method.

Parameters
Name Description
request UpdateBudgetRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskBudget

The response to send back to the client (wrapped by a task).