Cloud Billing Budget v1beta1 API - Class BudgetServiceClientImpl (2.0.0-beta06)

public sealed class BudgetServiceClientImpl : BudgetServiceClient

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

BudgetService client wrapper implementation, for convenient use.

Inheritance

object > BudgetServiceClient > BudgetServiceClientImpl

Namespace

Google.Cloud.Billing.Budgets.V1Beta1

Assembly

Google.Cloud.Billing.Budgets.V1Beta1.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(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
Name Description
grpcClient BudgetServiceBudgetServiceClient

The underlying gRPC client.

settings BudgetServiceSettings

The base BudgetServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override BudgetService.BudgetServiceClient GrpcClient { get; }

The underlying gRPC BudgetService client

Property Value
Type Description
BudgetServiceBudgetServiceClient
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
Name Description
request CreateBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request CreateBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBudget

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
Name Description
request DeleteBudgetRequest

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

callSettings CallSettings

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
Name Description
request DeleteBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request GetBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request GetBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBudget

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
Name Description
request ListBudgetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListBudgetsResponseBudget

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
Name Description
request ListBudgetsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListBudgetsResponseBudget

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
Name Description
request UpdateBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
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
Name Description
request UpdateBudgetRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskBudget

A Task containing the RPC response.

Overrides