Class BudgetService.BudgetServiceBase (1.0.0-beta05)

[BindServiceMethod(typeof(BudgetService), "BindService")]
public abstract class 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
NameDescription
requestCreateBudgetRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Budget>

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
NameDescription
requestDeleteBudgetRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Empty>

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
NameDescription
requestGetBudgetRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Budget>

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
NameDescription
requestListBudgetsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListBudgetsResponse>

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
NameDescription
requestUpdateBudgetRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Budget>

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