Show / Hide Table of Contents

Class BillingAccountsResource.SubAccountsResource

The "subAccounts" collection of methods.

Inheritance
object
BillingAccountsResource.SubAccountsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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: - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

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: - organizations/{organization_id}, for example, organizations/12345678 - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

Returns
Type Description
BillingAccountsResource.SubAccountsResource.ListRequest
In this article
Back to top Generated by DocFX