CloudBilling

google.cloud.billing.v1. CloudBilling

Represents a CloudBilling

Constructor

new CloudBilling(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new CloudBilling 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) → {CloudBilling}

Creates new CloudBilling 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

createBillingAccount(request, callback) → {undefined}

Calls CreateBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.ICreateBillingAccountRequest

CreateBillingAccountRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.CreateBillingAccountCallback

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

createBillingAccount(request) → {Promise.<google.cloud.billing.v1.BillingAccount>}

Calls CreateBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.ICreateBillingAccountRequest

CreateBillingAccountRequest message or plain object

getBillingAccount(request, callback) → {undefined}

Calls GetBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.IGetBillingAccountRequest

GetBillingAccountRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.GetBillingAccountCallback

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

getBillingAccount(request) → {Promise.<google.cloud.billing.v1.BillingAccount>}

Calls GetBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.IGetBillingAccountRequest

GetBillingAccountRequest message or plain object

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.GetIamPolicyCallback

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

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

getProjectBillingInfo(request, callback) → {undefined}

Calls GetProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IGetProjectBillingInfoRequest

GetProjectBillingInfoRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.GetProjectBillingInfoCallback

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

getProjectBillingInfo(request) → {Promise.<google.cloud.billing.v1.ProjectBillingInfo>}

Calls GetProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IGetProjectBillingInfoRequest

GetProjectBillingInfoRequest message or plain object

listBillingAccounts(request, callback) → {undefined}

Calls ListBillingAccounts.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListBillingAccountsRequest

ListBillingAccountsRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.ListBillingAccountsCallback

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

listBillingAccounts(request) → {Promise.<google.cloud.billing.v1.ListBillingAccountsResponse>}

Calls ListBillingAccounts.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListBillingAccountsRequest

ListBillingAccountsRequest message or plain object

listProjectBillingInfo(request, callback) → {undefined}

Calls ListProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListProjectBillingInfoRequest

ListProjectBillingInfoRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.ListProjectBillingInfoCallback

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

listProjectBillingInfo(request) → {Promise.<google.cloud.billing.v1.ListProjectBillingInfoResponse>}

Calls ListProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IListProjectBillingInfoRequest

ListProjectBillingInfoRequest message or plain object

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.SetIamPolicyCallback

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

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.TestIamPermissionsCallback

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

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

updateBillingAccount(request, callback) → {undefined}

Calls UpdateBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.IUpdateBillingAccountRequest

UpdateBillingAccountRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.UpdateBillingAccountCallback

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

updateBillingAccount(request) → {Promise.<google.cloud.billing.v1.BillingAccount>}

Calls UpdateBillingAccount.

Parameters:
Name Type Description
request google.cloud.billing.v1.IUpdateBillingAccountRequest

UpdateBillingAccountRequest message or plain object

updateProjectBillingInfo(request, callback) → {undefined}

Calls UpdateProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IUpdateProjectBillingInfoRequest

UpdateProjectBillingInfoRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.UpdateProjectBillingInfoCallback

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

updateProjectBillingInfo(request) → {Promise.<google.cloud.billing.v1.ProjectBillingInfo>}

Calls UpdateProjectBillingInfo.

Parameters:
Name Type Description
request google.cloud.billing.v1.IUpdateProjectBillingInfoRequest

UpdateProjectBillingInfoRequest message or plain object

Type Definitions

CreateBillingAccountCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#createBillingAccount.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.BillingAccount <optional>

BillingAccount

GetBillingAccountCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#getBillingAccount.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.BillingAccount <optional>

BillingAccount

GetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetProjectBillingInfoCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#getProjectBillingInfo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ProjectBillingInfo <optional>

ProjectBillingInfo

ListBillingAccountsCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#listBillingAccounts.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ListBillingAccountsResponse <optional>

ListBillingAccountsResponse

ListProjectBillingInfoCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#listProjectBillingInfo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ListProjectBillingInfoResponse <optional>

ListProjectBillingInfoResponse

SetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UpdateBillingAccountCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#updateBillingAccount.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.BillingAccount <optional>

BillingAccount

UpdateProjectBillingInfoCallback(error, responseopt)

Callback as used by google.cloud.billing.v1.CloudBilling#updateProjectBillingInfo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.billing.v1.ProjectBillingInfo <optional>

ProjectBillingInfo