Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<BillingAccount>
CloudbillingBaseServiceRequest<BillingAccount>
BillingAccountsResource.SubAccountsResource.CreateRequest
Implements
IClientServiceRequest<BillingAccount>
IClientServiceRequest
Inherited Members
CloudbillingBaseServiceRequest<BillingAccount>.Xgafv
CloudbillingBaseServiceRequest<BillingAccount>.AccessToken
CloudbillingBaseServiceRequest<BillingAccount>.Alt
CloudbillingBaseServiceRequest<BillingAccount>.Callback
CloudbillingBaseServiceRequest<BillingAccount>.Fields
CloudbillingBaseServiceRequest<BillingAccount>.Key
CloudbillingBaseServiceRequest<BillingAccount>.OauthToken
CloudbillingBaseServiceRequest<BillingAccount>.PrettyPrint
CloudbillingBaseServiceRequest<BillingAccount>.QuotaUser
CloudbillingBaseServiceRequest<BillingAccount>.UploadType
CloudbillingBaseServiceRequest<BillingAccount>.UploadProtocol
ClientServiceRequest<BillingAccount>.Execute()
ClientServiceRequest<BillingAccount>.ExecuteAsStream()
ClientServiceRequest<BillingAccount>.ExecuteAsync()
ClientServiceRequest<BillingAccount>.ExecuteAsync(CancellationToken)
ClientServiceRequest<BillingAccount>.ExecuteAsStreamAsync()
ClientServiceRequest<BillingAccount>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<BillingAccount>.CreateRequest(bool?)
ClientServiceRequest<BillingAccount>.GenerateRequestUri()
ClientServiceRequest<BillingAccount>.GetDefaultETagAction(string)
ClientServiceRequest<BillingAccount>.ETagAction
ClientServiceRequest<BillingAccount>.ModifyRequest
ClientServiceRequest<BillingAccount>.ValidateParameters
ClientServiceRequest<BillingAccount>.ApiVersion
ClientServiceRequest<BillingAccount>.RequestParameters
ClientServiceRequest<BillingAccount>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.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
ClientServiceRequest<BillingAccount>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<BillingAccount>.MethodName

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
ClientServiceRequest<BillingAccount>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<BillingAccount>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudbillingBaseServiceRequest<BillingAccount>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX