BudgetService

google.cloud.billing.budgets.v1beta1. BudgetService

Represents a BudgetService

Constructor

new BudgetService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new BudgetService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {BudgetService}

Creates new BudgetService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

createBudget(request, callback) → {undefined}

Calls CreateBudget.

Parameters:
Name Type Description
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

createBudget(request) → {Promise.<google.cloud.billing.budgets.v1beta1.Budget>}

Calls CreateBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.ICreateBudgetRequest

CreateBudgetRequest message or plain object

deleteBudget(request, callback) → {undefined}

Calls DeleteBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.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

deleteBudget(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.IDeleteBudgetRequest

DeleteBudgetRequest message or plain object

getBudget(request, callback) → {undefined}

Calls GetBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.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

getBudget(request) → {Promise.<google.cloud.billing.budgets.v1beta1.Budget>}

Calls GetBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.IGetBudgetRequest

GetBudgetRequest message or plain object

listBudgets(request, callback) → {undefined}

Calls ListBudgets.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.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

listBudgets(request) → {Promise.<google.cloud.billing.budgets.v1beta1.ListBudgetsResponse>}

Calls ListBudgets.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.IListBudgetsRequest

ListBudgetsRequest message or plain object

updateBudget(request, callback) → {undefined}

Calls UpdateBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.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

updateBudget(request) → {Promise.<google.cloud.billing.budgets.v1beta1.Budget>}

Calls UpdateBudget.

Parameters:
Name Type Description
request google.cloud.billing.budgets.v1beta1.IUpdateBudgetRequest

UpdateBudgetRequest message or plain object

Type Definitions

CreateBudgetCallback(error, responseopt)

Callback as used by google.cloud.billing.budgets.v1beta1.BudgetService#createBudget.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.budgets.v1beta1.Budget <optional>

Budget

DeleteBudgetCallback(error, responseopt)

Callback as used by google.cloud.billing.budgets.v1beta1.BudgetService#deleteBudget.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetBudgetCallback(error, responseopt)

Callback as used by google.cloud.billing.budgets.v1beta1.BudgetService#getBudget.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.budgets.v1beta1.Budget <optional>

Budget

ListBudgetsCallback(error, responseopt)

Callback as used by google.cloud.billing.budgets.v1beta1.BudgetService#listBudgets.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.budgets.v1beta1.ListBudgetsResponse <optional>

ListBudgetsResponse

UpdateBudgetCallback(error, responseopt)

Callback as used by google.cloud.billing.budgets.v1beta1.BudgetService#updateBudget.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.budgets.v1beta1.Budget <optional>

Budget