Class BillingAccountsResource.SubAccountsResource
The "subAccounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Cloudbilling.v1
Assembly: Google.Apis.Cloudbilling.v1.dll
Syntax
public class BillingAccountsResource.SubAccountsResource
Constructors
SubAccountsResource(IClientService)
Constructs a new resource.
Declaration
public SubAccountsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(BillingAccount, string)
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.
Declaration
public virtual BillingAccountsResource.SubAccountsResource.CreateRequest Create(BillingAccount body, string parent)
Parameters
Type | Name | Description |
---|---|---|
BillingAccount | body | The body of the request. |
string | parent | Optional. The parent to create a billing account from. Format: - |
Returns
Type | Description |
---|---|
BillingAccountsResource.SubAccountsResource.CreateRequest |
List(string)
Lists the billing accounts that the current authenticated user has permission to view.
Declaration
public virtual BillingAccountsResource.SubAccountsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Optional. The parent resource to list billing accounts from. Format: -
|
Returns
Type | Description |
---|---|
BillingAccountsResource.SubAccountsResource.ListRequest |