Represents a CloudBilling
Inheritance
$protobuf.rpc.Service > protos.google.cloud.billing.v1.CloudBillingPackage
@google-cloud/billingConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new CloudBilling service.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ICreateBillingAccountRequest
CreateBillingAccountRequest message or plain object |
callback |
CreateBillingAccountCallback
Node-style callback called with the error, if any, and BillingAccount |
| Returns | |
|---|---|
| Type | Description |
void |
|
createBillingAccount(request)
public createBillingAccount(request: google.cloud.billing.v1.ICreateBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;Calls CreateBillingAccount.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateBillingAccountRequest
CreateBillingAccountRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetBillingAccountRequest
GetBillingAccountRequest message or plain object |
callback |
GetBillingAccountCallback
Node-style callback called with the error, if any, and BillingAccount |
| Returns | |
|---|---|
| Type | Description |
void |
|
getBillingAccount(request)
public getBillingAccount(request: google.cloud.billing.v1.IGetBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;Calls GetBillingAccount.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetBillingAccountRequest
GetBillingAccountRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
callback |
GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;Calls GetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IGetProjectBillingInfoRequest
GetProjectBillingInfoRequest message or plain object |
callback |
GetProjectBillingInfoCallback
Node-style callback called with the error, if any, and ProjectBillingInfo |
| Returns | |
|---|---|
| Type | Description |
void |
|
getProjectBillingInfo(request)
public getProjectBillingInfo(request: google.cloud.billing.v1.IGetProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ProjectBillingInfo>;Calls GetProjectBillingInfo.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetProjectBillingInfoRequest
GetProjectBillingInfoRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListBillingAccountsRequest
ListBillingAccountsRequest message or plain object |
callback |
ListBillingAccountsCallback
Node-style callback called with the error, if any, and ListBillingAccountsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listBillingAccounts(request)
public listBillingAccounts(request: google.cloud.billing.v1.IListBillingAccountsRequest): Promise<google.cloud.billing.v1.ListBillingAccountsResponse>;Calls ListBillingAccounts.
| Parameter | |
|---|---|
| Name | Description |
request |
IListBillingAccountsRequest
ListBillingAccountsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IListProjectBillingInfoRequest
ListProjectBillingInfoRequest message or plain object |
callback |
ListProjectBillingInfoCallback
Node-style callback called with the error, if any, and ListProjectBillingInfoResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listProjectBillingInfo(request)
public listProjectBillingInfo(request: google.cloud.billing.v1.IListProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ListProjectBillingInfoResponse>;Calls ListProjectBillingInfo.
| Parameter | |
|---|---|
| Name | Description |
request |
IListProjectBillingInfoRequest
ListProjectBillingInfoRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IMoveBillingAccountRequest
MoveBillingAccountRequest message or plain object |
callback |
MoveBillingAccountCallback
Node-style callback called with the error, if any, and BillingAccount |
| Returns | |
|---|---|
| Type | Description |
void |
|
moveBillingAccount(request)
public moveBillingAccount(request: google.cloud.billing.v1.IMoveBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;Calls MoveBillingAccount.
| Parameter | |
|---|---|
| Name | Description |
request |
IMoveBillingAccountRequest
MoveBillingAccountRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
callback |
SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
| Returns | |
|---|---|
| Type | Description |
void |
|
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;Calls SetIamPolicy.
| Parameter | |
|---|---|
| Name | Description |
request |
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestIamPermissionsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;Calls TestIamPermissions.
| Parameter | |
|---|---|
| Name | Description |
request |
ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IUpdateBillingAccountRequest
UpdateBillingAccountRequest message or plain object |
callback |
UpdateBillingAccountCallback
Node-style callback called with the error, if any, and BillingAccount |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateBillingAccount(request)
public updateBillingAccount(request: google.cloud.billing.v1.IUpdateBillingAccountRequest): Promise<google.cloud.billing.v1.BillingAccount>;Calls UpdateBillingAccount.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateBillingAccountRequest
UpdateBillingAccountRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
IUpdateProjectBillingInfoRequest
UpdateProjectBillingInfoRequest message or plain object |
callback |
UpdateProjectBillingInfoCallback
Node-style callback called with the error, if any, and ProjectBillingInfo |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateProjectBillingInfo(request)
public updateProjectBillingInfo(request: google.cloud.billing.v1.IUpdateProjectBillingInfoRequest): Promise<google.cloud.billing.v1.ProjectBillingInfo>;Calls UpdateProjectBillingInfo.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateProjectBillingInfoRequest
UpdateProjectBillingInfoRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.billing.v1.ProjectBillingInfo> |
Promise |