class BillingAccountsSubAccounts extends Resource (View source)

The "subAccounts" collection of methods.

Typical usage is:

 $cloudbillingService = new Google\Service\Cloudbilling(...);
 $subAccounts = $cloudbillingService->billingAccounts_subAccounts;

Methods

create(string $parent, BillingAccount $postBody, array $optParams = [])

This method creates billing subaccounts.

listBillingAccountsSubAccounts(string $parent, array $optParams = [])

Lists the billing accounts that the current authenticated user has permission to view.

Details

BillingAccount create(string $parent, BillingAccount $postBody, array $optParams = [])

This method creates billing subaccounts.

Google Cloud resellers should use the Channel Services APIs, accounts.custom ers.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. (subAccounts.create)

Parameters

string $parent

Optional. The parent to create a billing account from. Format: - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

BillingAccount $postBody
array $optParams

Optional parameters.

Return Value

BillingAccount

Exceptions

Exception

ListBillingAccountsResponse listBillingAccountsSubAccounts(string $parent, array $optParams = [])

Lists the billing accounts that the current authenticated user has permission to view.

(subAccounts.listBillingAccountsSubAccounts)

Parameters

string $parent

Optional. The parent resource to list billing accounts from. Format: - organizations/{organization_id}, for example, organizations/12345678 - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

array $optParams

Optional parameters.

Return Value

ListBillingAccountsResponse

Exceptions

Exception