public sealed class BudgetServiceClientImpl : BudgetServiceClient
BudgetService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Billing.Budgets.V1Beta1Assembly
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(BudgetService.BudgetServiceClient, BudgetServiceSettings)
public BudgetServiceClientImpl(BudgetService.BudgetServiceClient grpcClient, BudgetServiceSettings settings)
Constructs a client wrapper for the BudgetService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | BudgetService.BudgetServiceClient The underlying gRPC client. |
settings | BudgetServiceSettings The base BudgetServiceSettings used within this client. |
Properties
GrpcClient
public override BudgetService.BudgetServiceClient GrpcClient { get; }
The underlying gRPC BudgetService client
Property Value | |
---|---|
Type | Description |
BudgetService.BudgetServiceClient |
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. |
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 |
Task<Budget> | A Task containing the RPC response. |
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. |
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. |
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. |
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 |
Task<Budget> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListBudgetsResponse, Budget> | A pageable sequence of Budget resources. |
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 |
PagedAsyncEnumerable<ListBudgetsResponse, Budget> | A pageable asynchronous sequence of Budget resources. |
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. |
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 |
Task<Budget> | A Task containing the RPC response. |