Index
CloudBilling
(interface)BillingAccount
(message)CreateBillingAccountRequest
(message)GetBillingAccountRequest
(message)GetProjectBillingInfoRequest
(message)ListBillingAccountsRequest
(message)ListBillingAccountsResponse
(message)ListProjectBillingInfoRequest
(message)ListProjectBillingInfoResponse
(message)MoveBillingAccountRequest
(message)ProjectBillingInfo
(message)UpdateBillingAccountRequest
(message)UpdateProjectBillingInfoRequest
(message)
CloudBilling
Retrieves the Trusted Cloud Console billing accounts and associates them with projects.
CreateBillingAccount |
---|
This method creates billing subaccounts. Trusted 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
|
GetBillingAccount |
---|
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
|
GetIamPolicy |
---|
Gets the access control policy for a billing account. The caller must have the
|
GetProjectBillingInfo |
---|
Gets the billing information for a project. The current authenticated user must have the
|
ListBillingAccounts |
---|
Lists the billing accounts that the current authenticated user has permission to view.
|
ListProjectBillingInfo |
---|
Lists the projects associated with a billing account. The current authenticated user must have the
|
MoveBillingAccount |
---|
Changes which parent organization a billing account belongs to.
|
SetIamPolicy |
---|
Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the
|
TestIamPermissions |
---|
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.
|
UpdateBillingAccount |
---|
Updates a billing account's fields. Currently the only field that can be edited is
|
UpdateProjectBillingInfo |
---|
Sets or updates the billing account associated with a project. You specify the new billing account by setting the Note: Incurred charges that have not yet been reported in the transaction history of the Trusted 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 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.
|
BillingAccount
A billing account in the Trusted Cloud Console. You can assign a billing account to one or more projects.
Fields | |
---|---|
name |
Output only. The resource name of the billing account. The resource name has the form |
open |
Output only. True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it are unable to use paid services. |
display_name |
The display name given to the billing account, such as |
master_billing_account |
If this account is a subaccount, then this will be the resource name of the parent billing account that it is being resold through. Otherwise this will be empty. |
parent |
Output only. The billing account's parent resource identifier. Use the |
currency_code |
Optional. The currency in which the billing account is billed and charged, represented as an ISO 4217 code such as Billing account currency is determined at the time of billing account creation and cannot be updated subsequently, so this field should not be set on update requests. In addition, a subaccount always matches the currency of its parent billing account, so this field should not be set on subaccount creation requests. Clients can read this field to determine the currency of an existing billing account. |
CreateBillingAccountRequest
Request message for CreateBillingAccount
.
Fields | |
---|---|
billing_account |
Required. The billing account resource to create. Currently CreateBillingAccount only supports subaccount creation, so any created billing accounts must be under a provided parent billing account. |
parent |
Optional. The parent to create a billing account from. Format: - |
GetBillingAccountRequest
Request message for GetBillingAccount
.
Fields | |
---|---|
name |
Required. The resource name of the billing account to retrieve. For example, |
GetProjectBillingInfoRequest
Request message for GetProjectBillingInfo
.
Fields | |
---|---|
name |
Required. The resource name of the project for which billing information is retrieved. For example, |
ListBillingAccountsRequest
Request message for ListBillingAccounts
.
Fields | |
---|---|
page_size |
Requested page size. The maximum page size is 100; this is also the default. |
page_token |
A token identifying a page of results to return. This should be a |
filter |
Options for how to filter the returned billing accounts. This only supports filtering for subaccounts under a single provided parent billing account. (for example, |
parent |
Optional. The parent resource to list billing accounts from. Format: - |
ListBillingAccountsResponse
Response message for ListBillingAccounts
.
Fields | |
---|---|
billing_accounts[] |
A list of billing accounts. |
next_page_token |
A token to retrieve the next page of results. To retrieve the next page, call |
ListProjectBillingInfoRequest
Request message for ListProjectBillingInfo
.
Fields | |
---|---|
name |
Required. The resource name of the billing account associated with the projects that you want to list. For example, |
page_size |
Requested page size. The maximum page size is 100; this is also the default. |
page_token |
A token identifying a page of results to be returned. This should be a |
ListProjectBillingInfoResponse
Request message for ListProjectBillingInfoResponse
.
Fields | |
---|---|
project_billing_info[] |
A list of |
next_page_token |
A token to retrieve the next page of results. To retrieve the next page, call |
MoveBillingAccountRequest
Request message for MoveBillingAccount
RPC.
Fields | |
---|---|
name |
Required. The resource name of the billing account to move. Must be of the form |
destination_parent |
Required. The resource name of the Organization to move the billing account under. Must be of the form |
ProjectBillingInfo
Encapsulation of billing information for a Trusted Cloud Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).
Fields | |
---|---|
name |
Output only. The resource name for the |
project_id |
Output only. The ID of the project that this |
billing_account_name |
The resource name of the billing account associated with the project, if any. For example, |
billing_enabled |
Output only. True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. |
UpdateBillingAccountRequest
Request message for UpdateBillingAccount
.
Fields | |
---|---|
name |
Required. The name of the billing account resource to be updated. |
account |
Required. The billing account resource to replace the resource on the server. |
update_mask |
The update mask applied to the resource. Only "display_name" is currently supported. |
UpdateProjectBillingInfoRequest
Request message for UpdateProjectBillingInfo
.
Fields | |
---|---|
name |
Required. The resource name of the project associated with the billing information that you want to update. For example, |
project_billing_info |
The new billing information for the project. Output-only fields are ignored; thus, you can leave empty all fields except |