Class BillingAccountsResource.SubAccountsResource.CreateRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Cloudbilling.v1
Assembly: Google.Apis.Cloudbilling.v1.dll
Syntax
public class BillingAccountsResource.SubAccountsResource.CreateRequest : CloudbillingBaseServiceRequest<BillingAccount>, IClientServiceRequest<BillingAccount>, IClientServiceRequest
Constructors
CreateRequest(IClientService, BillingAccount, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, BillingAccount body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BillingAccount | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Optional. The parent to create a billing account from. Format: -
billingAccounts/{billing_account_id}
, for example, billingAccounts/012345-567890-ABCDEF
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()