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

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.BillingAccount>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.BillingAccount>

Promise

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

Returns:
Type Description
undefined

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

Calls GetIamPolicy.

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

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.ProjectBillingInfo>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.ListBillingAccountsResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.ListProjectBillingInfoResponse>

Promise

moveBillingAccount(request, callback) → {undefined}

Calls MoveBillingAccount.

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

MoveBillingAccountRequest message or plain object

callback google.cloud.billing.v1.CloudBilling.MoveBillingAccountCallback

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

Returns:
Type Description
undefined

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

Calls MoveBillingAccount.

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

MoveBillingAccountRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.billing.v1.BillingAccount>

Promise

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

Returns:
Type Description
undefined

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

Calls SetIamPolicy.

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

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

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

Returns:
Type Description
undefined

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

Calls TestIamPermissions.

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

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.BillingAccount>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.billing.v1.ProjectBillingInfo>

Promise

(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

Returns:
Type Description
CloudBilling

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

Type Definitions

CreateBillingAccountCallback(error, responseopt)

Callback as used by 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 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 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 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 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 listProjectBillingInfo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListProjectBillingInfoResponse

MoveBillingAccountCallback(error, responseopt)

Callback as used by moveBillingAccount.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

BillingAccount

SetIamPolicyCallback(error, responseopt)

Callback as used by 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 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 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 updateProjectBillingInfo.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ProjectBillingInfo