Show / Hide Table of Contents

Class OrganizationsResource.BillingAccountsResource

The "billingAccounts" collection of methods.

Inheritance
object
OrganizationsResource.BillingAccountsResource
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 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: - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

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

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 organizations/{organization_id}.

string name

Required. The resource name of the billing account to move. Must be of the form billingAccounts/{billing_account_id}. The specified billing account cannot be a subaccount, since a subaccount always belongs to the same organization as its parent account.

Returns
Type Description
OrganizationsResource.BillingAccountsResource.MoveRequest
In this article
Back to top Generated by DocFX