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
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 |
Returns:
Type | Description |
---|---|
undefined |
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 |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.billing.budgets.v1beta1.Budget> |
Promise |
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 |
Returns:
Type | Description |
---|---|
undefined |
deleteBudget(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteBudget.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.billing.budgets.v1beta1.IDeleteBudgetRequest |
DeleteBudgetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
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 |
Returns:
Type | Description |
---|---|
undefined |
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 |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.billing.budgets.v1beta1.Budget> |
Promise |
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 |
Returns:
Type | Description |
---|---|
undefined |
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 |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.billing.budgets.v1beta1.ListBudgetsResponse> |
Promise |
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 |
Returns:
Type | Description |
---|---|
undefined |
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 |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.billing.budgets.v1beta1.Budget> |
Promise |
(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 |
Returns:
Type | Description |
---|---|
BudgetService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateBudgetCallback(error, responseopt)
Callback as used by 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 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 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 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 updateBudget.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.billing.budgets.v1beta1.Budget |
<optional> |
Budget |