Class BudgetServiceClientImpl (2.0.0)

public sealed class BudgetServiceClientImpl : BudgetServiceClient

BudgetService client wrapper implementation, for convenient use.

Inheritance

Object > BudgetServiceClient > BudgetServiceClientImpl

Namespace

Google.Cloud.Billing.Budgets.V1

Assembly

Google.Cloud.Billing.Budgets.V1.dll

Remarks

BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.

Constructors

BudgetServiceClientImpl(BudgetService.BudgetServiceClient, BudgetServiceSettings, ILogger)

public BudgetServiceClientImpl(BudgetService.BudgetServiceClient grpcClient, BudgetServiceSettings settings, ILogger logger)

Constructs a client wrapper for the BudgetService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientBudgetService.BudgetServiceClient

The underlying gRPC client.

settingsBudgetServiceSettings

The base BudgetServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override BudgetService.BudgetServiceClient GrpcClient { get; }

The underlying gRPC BudgetService client

Property Value
TypeDescription
BudgetService.BudgetServiceClient
Overrides

Methods

CreateBudget(CreateBudgetRequest, CallSettings)

public override Budget CreateBudget(CreateBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Budget

The RPC response.

Overrides

CreateBudgetAsync(CreateBudgetRequest, CallSettings)

public override Task<Budget> CreateBudgetAsync(CreateBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Budget>

A Task containing the RPC response.

Overrides

DeleteBudget(DeleteBudgetRequest, CallSettings)

public override void DeleteBudget(DeleteBudgetRequest request, CallSettings callSettings = null)

Deletes a budget. Returns successfully if already deleted.

Parameters
NameDescription
requestDeleteBudgetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteBudgetAsync(DeleteBudgetRequest, CallSettings)

public override Task DeleteBudgetAsync(DeleteBudgetRequest request, CallSettings callSettings = null)

Deletes a budget. Returns successfully if already deleted.

Parameters
NameDescription
requestDeleteBudgetRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetBudget(GetBudgetRequest, CallSettings)

public override Budget GetBudget(GetBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Budget

The RPC response.

Overrides

GetBudgetAsync(GetBudgetRequest, CallSettings)

public override Task<Budget> GetBudgetAsync(GetBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Budget>

A Task containing the RPC response.

Overrides

ListBudgets(ListBudgetsRequest, CallSettings)

public override PagedEnumerable<ListBudgetsResponse, Budget> ListBudgets(ListBudgetsRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListBudgetsResponse, Budget>

A pageable sequence of Budget resources.

Overrides

ListBudgetsAsync(ListBudgetsRequest, CallSettings)

public override PagedAsyncEnumerable<ListBudgetsResponse, Budget> ListBudgetsAsync(ListBudgetsRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListBudgetsResponse, Budget>

A pageable asynchronous sequence of Budget resources.

Overrides

UpdateBudget(UpdateBudgetRequest, CallSettings)

public override Budget UpdateBudget(UpdateBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Budget

The RPC response.

Overrides

UpdateBudgetAsync(UpdateBudgetRequest, CallSettings)

public override Task<Budget> UpdateBudgetAsync(UpdateBudgetRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Budget>

A Task containing the RPC response.

Overrides