- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.1
- 2.1.12
public static final class CloudBillingGrpc.CloudBillingStub extends AbstractAsyncStub<CloudBillingGrpc.CloudBillingStub>
A stub to allow clients to do asynchronous rpc calls to service CloudBilling.
Retrieves the Google Cloud Console billing accounts and associates them with projects.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > CloudBillingGrpc.CloudBillingStubMethods
build(Channel channel, CallOptions callOptions)
protected CloudBillingGrpc.CloudBillingStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel | io.grpc.Channel |
callOptions | io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
CloudBillingGrpc.CloudBillingStub |
createBillingAccount(CreateBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
public void createBillingAccount(CreateBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
This method creates billing
subaccounts.
Google Cloud resellers should use the
Channel Services APIs,
accounts.customers.create
and
accounts.customers.entitlements.create.
When creating a subaccount, the current authenticated user must have the
billing.accounts.update
IAM permission on the parent account, which is
typically given to billing account
administrators.
This method will return an error if the parent account has not been
provisioned for subaccounts.
Parameters | |
---|---|
Name | Description |
request | CreateBillingAccountRequest |
responseObserver | io.grpc.stub.StreamObserver<BillingAccount> |
getBillingAccount(GetBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
public void getBillingAccount(GetBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
Parameters | |
---|---|
Name | Description |
request | GetBillingAccountRequest |
responseObserver | io.grpc.stub.StreamObserver<BillingAccount> |
getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)
public void getIamPolicy(GetIamPolicyRequest request, StreamObserver<Policy> responseObserver)
Gets the access control policy for a billing account.
The caller must have the billing.accounts.getIamPolicy
permission on the
account, which is often given to billing account
viewers.
Parameters | |
---|---|
Name | Description |
request | com.google.iam.v1.GetIamPolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> |
getProjectBillingInfo(GetProjectBillingInfoRequest request, StreamObserver<ProjectBillingInfo> responseObserver)
public void getProjectBillingInfo(GetProjectBillingInfoRequest request, StreamObserver<ProjectBillingInfo> responseObserver)
Gets the billing information for a project. The current authenticated user
must have the resourcemanager.projects.get
permission for the project,
which can be granted by assigning the Project
Viewer
role.
Parameters | |
---|---|
Name | Description |
request | GetProjectBillingInfoRequest |
responseObserver | io.grpc.stub.StreamObserver<ProjectBillingInfo> |
listBillingAccounts(ListBillingAccountsRequest request, StreamObserver<ListBillingAccountsResponse> responseObserver)
public void listBillingAccounts(ListBillingAccountsRequest request, StreamObserver<ListBillingAccountsResponse> responseObserver)
Lists the billing accounts that the current authenticated user has permission to view.
Parameters | |
---|---|
Name | Description |
request | ListBillingAccountsRequest |
responseObserver | io.grpc.stub.StreamObserver<ListBillingAccountsResponse> |
listProjectBillingInfo(ListProjectBillingInfoRequest request, StreamObserver<ListProjectBillingInfoResponse> responseObserver)
public void listProjectBillingInfo(ListProjectBillingInfoRequest request, StreamObserver<ListProjectBillingInfoResponse> responseObserver)
Lists the projects associated with a billing account. The current
authenticated user must have the billing.resourceAssociations.list
IAM
permission, which is often given to billing account
viewers.
Parameters | |
---|---|
Name | Description |
request | ListProjectBillingInfoRequest |
responseObserver | io.grpc.stub.StreamObserver<ListProjectBillingInfoResponse> |
setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)
public void setIamPolicy(SetIamPolicyRequest request, StreamObserver<Policy> responseObserver)
Sets the access control policy for a billing account. Replaces any existing
policy.
The caller must have the billing.accounts.setIamPolicy
permission on the
account, which is often given to billing account
administrators.
Parameters | |
---|---|
Name | Description |
request | com.google.iam.v1.SetIamPolicyRequest |
responseObserver | io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> |
testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)
public void testIamPermissions(TestIamPermissionsRequest request, StreamObserver<TestIamPermissionsResponse> responseObserver)
Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
Parameters | |
---|---|
Name | Description |
request | com.google.iam.v1.TestIamPermissionsRequest |
responseObserver | io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> |
updateBillingAccount(UpdateBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
public void updateBillingAccount(UpdateBillingAccountRequest request, StreamObserver<BillingAccount> responseObserver)
Updates a billing account's fields.
Currently the only field that can be edited is display_name
.
The current authenticated user must have the billing.accounts.update
IAM permission, which is typically given to the
administrator
of the billing account.
Parameters | |
---|---|
Name | Description |
request | UpdateBillingAccountRequest |
responseObserver | io.grpc.stub.StreamObserver<BillingAccount> |
updateProjectBillingInfo(UpdateProjectBillingInfoRequest request, StreamObserver<ProjectBillingInfo> responseObserver)
public void updateProjectBillingInfo(UpdateProjectBillingInfoRequest request, StreamObserver<ProjectBillingInfo> responseObserver)
Sets or updates the billing account associated with a project. You specify
the new billing account by setting the billing_account_name
in the
ProjectBillingInfo
resource to the resource name of a billing account.
Associating a project with an open billing account enables billing on the
project and allows charges for resource usage. If the project already had a
billing account, this method changes the billing account used for resource
usage charges.
Note: Incurred charges that have not yet been reported in the transaction
history of the Google Cloud Console might be billed to the new billing
account, even if the charge occurred before the new billing account was
assigned to the project.
The current authenticated user must have ownership privileges for both the
project and the billing
account.
You can disable billing on the project by setting the
billing_account_name
field to empty. This action disassociates the
current billing account from the project. Any billable activity of your
in-use services will stop, and your application could stop functioning as
expected. Any unbilled charges to date will be billed to the previously
associated account. The current authenticated user must be either an owner
of the project or an owner of the billing account for the project.
Note that associating a project with a closed billing account will have
much the same effect as disabling billing on the project: any paid
resources used by the project will be shut down. Thus, unless you wish to
disable billing, you should always call this method with the name of an
open billing account.
Parameters | |
---|---|
Name | Description |
request | UpdateProjectBillingInfoRequest |
responseObserver | io.grpc.stub.StreamObserver<ProjectBillingInfo> |