Class OrganizationsResource.BillingAccountsResource
The "billingAccounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Cloudbilling.v1
Assembly: Google.Apis.Cloudbilling.v1.dll
Syntax
public class OrganizationsResource.BillingAccountsResource
Constructors
BillingAccountsResource(IClientService)
Constructs a new resource.
Declaration
public BillingAccountsResource(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 OrganizationsResource.BillingAccountsResource.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 |
|---|---|
| OrganizationsResource.BillingAccountsResource.CreateRequest |
List(string)
Lists the billing accounts that the current authenticated user has permission to view.
Declaration
public virtual OrganizationsResource.BillingAccountsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Optional. The parent resource to list billing accounts from. Format: -
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.BillingAccountsResource.ListRequest |
Move(string, string)
Changes which parent organization a billing account belongs to.
Declaration
public virtual OrganizationsResource.BillingAccountsResource.MoveRequest Move(string destinationParent, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | destinationParent | Required. The resource name of the Organization to move the billing account under. Must be of the form
|
| string | name | Required. The resource name of the billing account to move. Must be of the form
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.BillingAccountsResource.MoveRequest |