BillingAccounts
class BillingAccounts extends Resource (View source)
The "billingAccounts" collection of methods.
Typical usage is:
$cloudbillingService = new Google\Service\Cloudbilling(...);
$billingAccounts = $cloudbillingService->billingAccounts;
Methods
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
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. (billingAccounts.getIamPolicy)
Lists the billing accounts that the current authenticated user has permission to view.
Changes which parent organization a billing account belongs to.
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. (billingAccounts.patch)
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. (billingAccounts.setIamPolicy)
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.
Details
BillingAccount
create(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. (billingAccounts.create)
BillingAccount
get(string $name, array $optParams = [])
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
(billingAccounts.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
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. (billingAccounts.getIamPolicy)
ListBillingAccountsResponse
listBillingAccounts(array $optParams = [])
Lists the billing accounts that the current authenticated user has permission to view.
(billingAccounts.listBillingAccounts)
BillingAccount
move(string $name, MoveBillingAccountRequest $postBody, array $optParams = [])
Changes which parent organization a billing account belongs to.
(billingAccounts.move)
BillingAccount
patch(string $name, BillingAccount $postBody, array $optParams = [])
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. (billingAccounts.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
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. (billingAccounts.setIamPolicy)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
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.
(billingAccounts.testIamPermissions)