Class protos.google.cloud.billing.budgets.v1beta1.BudgetService

Represents a BudgetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.billing.budgets.v1beta1.BudgetService

Package

@google-cloud/billing-budgets

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new BudgetService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): BudgetService;

Creates new BudgetService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
BudgetService

RPC service. Useful where requests and/or responses are streamed.

createBudget(request, callback)

public createBudget(request: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest, callback: google.cloud.billing.budgets.v1beta1.BudgetService.CreateBudgetCallback): void;

Calls CreateBudget.

Parameters
NameDescription
request google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest

CreateBudgetRequest message or plain object

callback google.cloud.billing.budgets.v1beta1.BudgetService.CreateBudgetCallback

Node-style callback called with the error, if any, and Budget

Returns
TypeDescription
void

createBudget(request)

public createBudget(request: google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest): Promise<google.cloud.billing.budgets.v1beta1.Budget>;

Calls CreateBudget.

Parameter
NameDescription
request google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest

CreateBudgetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.budgets.v1beta1.Budget>

Promise

deleteBudget(request, callback)

public deleteBudget(request: google.cloud.billing.budgets.v1beta1.IDeleteBudgetRequest, callback: google.cloud.billing.budgets.v1beta1.BudgetService.DeleteBudgetCallback): void;

Calls DeleteBudget.

Parameters
NameDescription
request IDeleteBudgetRequest

DeleteBudgetRequest message or plain object

callback google.cloud.billing.budgets.v1beta1.BudgetService.DeleteBudgetCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteBudget(request)

public deleteBudget(request: google.cloud.billing.budgets.v1beta1.IDeleteBudgetRequest): Promise<google.protobuf.Empty>;

Calls DeleteBudget.

Parameter
NameDescription
request IDeleteBudgetRequest

DeleteBudgetRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getBudget(request, callback)

public getBudget(request: google.cloud.billing.budgets.v1beta1.IGetBudgetRequest, callback: google.cloud.billing.budgets.v1beta1.BudgetService.GetBudgetCallback): void;

Calls GetBudget.

Parameters
NameDescription
request IGetBudgetRequest

GetBudgetRequest message or plain object

callback google.cloud.billing.budgets.v1beta1.BudgetService.GetBudgetCallback

Node-style callback called with the error, if any, and Budget

Returns
TypeDescription
void

getBudget(request)

public getBudget(request: google.cloud.billing.budgets.v1beta1.IGetBudgetRequest): Promise<google.cloud.billing.budgets.v1beta1.Budget>;

Calls GetBudget.

Parameter
NameDescription
request IGetBudgetRequest

GetBudgetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.budgets.v1beta1.Budget>

Promise

listBudgets(request, callback)

public listBudgets(request: google.cloud.billing.budgets.v1beta1.IListBudgetsRequest, callback: google.cloud.billing.budgets.v1beta1.BudgetService.ListBudgetsCallback): void;

Calls ListBudgets.

Parameters
NameDescription
request IListBudgetsRequest

ListBudgetsRequest message or plain object

callback google.cloud.billing.budgets.v1beta1.BudgetService.ListBudgetsCallback

Node-style callback called with the error, if any, and ListBudgetsResponse

Returns
TypeDescription
void

listBudgets(request)

public listBudgets(request: google.cloud.billing.budgets.v1beta1.IListBudgetsRequest): Promise<google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>;

Calls ListBudgets.

Parameter
NameDescription
request IListBudgetsRequest

ListBudgetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>

Promise

updateBudget(request, callback)

public updateBudget(request: google.cloud.billing.budgets.v1beta1.IUpdateBudgetRequest, callback: google.cloud.billing.budgets.v1beta1.BudgetService.UpdateBudgetCallback): void;

Calls UpdateBudget.

Parameters
NameDescription
request IUpdateBudgetRequest

UpdateBudgetRequest message or plain object

callback google.cloud.billing.budgets.v1beta1.BudgetService.UpdateBudgetCallback

Node-style callback called with the error, if any, and Budget

Returns
TypeDescription
void

updateBudget(request)

public updateBudget(request: google.cloud.billing.budgets.v1beta1.IUpdateBudgetRequest): Promise<google.cloud.billing.budgets.v1beta1.Budget>;

Calls UpdateBudget.

Parameter
NameDescription
request IUpdateBudgetRequest

UpdateBudgetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.budgets.v1beta1.Budget>

Promise