Class protos.google.cloud.billing.v1.CloudBilling (4.2.0)

Represents a CloudBilling

Inheritance

$protobuf.rpc.Service > protos.google.cloud.billing.v1.CloudBilling

Package

@google-cloud/billing

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CloudBilling 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): CloudBilling;

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

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

createBillingAccount(request, callback)

public createBillingAccount(request: google.cloud.billing.v1.ICreateBillingAccountRequest, callback: google.cloud.billing.v1.CloudBilling.CreateBillingAccountCallback): void;

Calls CreateBillingAccount.

Parameters
NameDescription
request ICreateBillingAccountRequest

CreateBillingAccountRequest message or plain object

callback CreateBillingAccountCallback

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

Returns
TypeDescription
void

createBillingAccount(request)

public createBillingAccount(request: google.cloud.billing.v1.ICreateBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;

Calls CreateBillingAccount.

Parameter
NameDescription
request ICreateBillingAccountRequest

CreateBillingAccountRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.BillingAccount>

Promise

getBillingAccount(request, callback)

public getBillingAccount(request: google.cloud.billing.v1.IGetBillingAccountRequest, callback: google.cloud.billing.v1.CloudBilling.GetBillingAccountCallback): void;

Calls GetBillingAccount.

Parameters
NameDescription
request IGetBillingAccountRequest

GetBillingAccountRequest message or plain object

callback GetBillingAccountCallback

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

Returns
TypeDescription
void

getBillingAccount(request)

public getBillingAccount(request: google.cloud.billing.v1.IGetBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;

Calls GetBillingAccount.

Parameter
NameDescription
request IGetBillingAccountRequest

GetBillingAccountRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.BillingAccount>

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.billing.v1.CloudBilling.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getProjectBillingInfo(request, callback)

public getProjectBillingInfo(request: google.cloud.billing.v1.IGetProjectBillingInfoRequest, callback: google.cloud.billing.v1.CloudBilling.GetProjectBillingInfoCallback): void;

Calls GetProjectBillingInfo.

Parameters
NameDescription
request IGetProjectBillingInfoRequest

GetProjectBillingInfoRequest message or plain object

callback GetProjectBillingInfoCallback

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

Returns
TypeDescription
void

getProjectBillingInfo(request)

public getProjectBillingInfo(request: google.cloud.billing.v1.IGetProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ProjectBillingInfo>;

Calls GetProjectBillingInfo.

Parameter
NameDescription
request IGetProjectBillingInfoRequest

GetProjectBillingInfoRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.ProjectBillingInfo>

Promise

listBillingAccounts(request, callback)

public listBillingAccounts(request: google.cloud.billing.v1.IListBillingAccountsRequest, callback: google.cloud.billing.v1.CloudBilling.ListBillingAccountsCallback): void;

Calls ListBillingAccounts.

Parameters
NameDescription
request IListBillingAccountsRequest

ListBillingAccountsRequest message or plain object

callback ListBillingAccountsCallback

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

Returns
TypeDescription
void

listBillingAccounts(request)

public listBillingAccounts(request: google.cloud.billing.v1.IListBillingAccountsRequest): Promise<google.cloud.billing.v1.ListBillingAccountsResponse>;

Calls ListBillingAccounts.

Parameter
NameDescription
request IListBillingAccountsRequest

ListBillingAccountsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.ListBillingAccountsResponse>

Promise

listProjectBillingInfo(request, callback)

public listProjectBillingInfo(request: google.cloud.billing.v1.IListProjectBillingInfoRequest, callback: google.cloud.billing.v1.CloudBilling.ListProjectBillingInfoCallback): void;

Calls ListProjectBillingInfo.

Parameters
NameDescription
request IListProjectBillingInfoRequest

ListProjectBillingInfoRequest message or plain object

callback ListProjectBillingInfoCallback

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

Returns
TypeDescription
void

listProjectBillingInfo(request)

public listProjectBillingInfo(request: google.cloud.billing.v1.IListProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ListProjectBillingInfoResponse>;

Calls ListProjectBillingInfo.

Parameter
NameDescription
request IListProjectBillingInfoRequest

ListProjectBillingInfoRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.ListProjectBillingInfoResponse>

Promise

moveBillingAccount(request, callback)

public moveBillingAccount(request: google.cloud.billing.v1.IMoveBillingAccountRequest, callback: google.cloud.billing.v1.CloudBilling.MoveBillingAccountCallback): void;

Calls MoveBillingAccount.

Parameters
NameDescription
request IMoveBillingAccountRequest

MoveBillingAccountRequest message or plain object

callback MoveBillingAccountCallback

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

Returns
TypeDescription
void

moveBillingAccount(request)

public moveBillingAccount(request: google.cloud.billing.v1.IMoveBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;

Calls MoveBillingAccount.

Parameter
NameDescription
request IMoveBillingAccountRequest

MoveBillingAccountRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.BillingAccount>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.billing.v1.CloudBilling.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.billing.v1.CloudBilling.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise

updateBillingAccount(request, callback)

public updateBillingAccount(request: google.cloud.billing.v1.IUpdateBillingAccountRequest, callback: google.cloud.billing.v1.CloudBilling.UpdateBillingAccountCallback): void;

Calls UpdateBillingAccount.

Parameters
NameDescription
request IUpdateBillingAccountRequest

UpdateBillingAccountRequest message or plain object

callback UpdateBillingAccountCallback

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

Returns
TypeDescription
void

updateBillingAccount(request)

public updateBillingAccount(request: google.cloud.billing.v1.IUpdateBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;

Calls UpdateBillingAccount.

Parameter
NameDescription
request IUpdateBillingAccountRequest

UpdateBillingAccountRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.BillingAccount>

Promise

updateProjectBillingInfo(request, callback)

public updateProjectBillingInfo(request: google.cloud.billing.v1.IUpdateProjectBillingInfoRequest, callback: google.cloud.billing.v1.CloudBilling.UpdateProjectBillingInfoCallback): void;

Calls UpdateProjectBillingInfo.

Parameters
NameDescription
request IUpdateProjectBillingInfoRequest

UpdateProjectBillingInfoRequest message or plain object

callback UpdateProjectBillingInfoCallback

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

Returns
TypeDescription
void

updateProjectBillingInfo(request)

public updateProjectBillingInfo(request: google.cloud.billing.v1.IUpdateProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ProjectBillingInfo>;

Calls UpdateProjectBillingInfo.

Parameter
NameDescription
request IUpdateProjectBillingInfoRequest

UpdateProjectBillingInfoRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.billing.v1.ProjectBillingInfo>

Promise