Show / Hide Table of Contents

Class SubscriptionsResource.InsertRequest

Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the Order a new customer account method. For more information about creating a subscription for different payment plans, see manage subscriptions.
If you did not order the customer's account using the customer insert method, use the customer's customerAuthToken when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the batch operation to transfer all of these subscriptions. For more information, see how to transfer subscriptions.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Subscription>
ResellerBaseServiceRequest<Subscription>
SubscriptionsResource.InsertRequest
Implements
IClientServiceRequest<Subscription>
IClientServiceRequest
Inherited Members
ResellerBaseServiceRequest<Subscription>.Xgafv
ResellerBaseServiceRequest<Subscription>.AccessToken
ResellerBaseServiceRequest<Subscription>.Alt
ResellerBaseServiceRequest<Subscription>.Callback
ResellerBaseServiceRequest<Subscription>.Fields
ResellerBaseServiceRequest<Subscription>.Key
ResellerBaseServiceRequest<Subscription>.OauthToken
ResellerBaseServiceRequest<Subscription>.PrettyPrint
ResellerBaseServiceRequest<Subscription>.QuotaUser
ResellerBaseServiceRequest<Subscription>.UploadType
ResellerBaseServiceRequest<Subscription>.UploadProtocol
ClientServiceRequest<Subscription>.Execute()
ClientServiceRequest<Subscription>.ExecuteAsStream()
ClientServiceRequest<Subscription>.ExecuteAsync()
ClientServiceRequest<Subscription>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Subscription>.ExecuteAsStreamAsync()
ClientServiceRequest<Subscription>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Subscription>.CreateRequest(bool?)
ClientServiceRequest<Subscription>.GenerateRequestUri()
ClientServiceRequest<Subscription>.GetDefaultETagAction(string)
ClientServiceRequest<Subscription>.ETagAction
ClientServiceRequest<Subscription>.ModifyRequest
ClientServiceRequest<Subscription>.ValidateParameters
ClientServiceRequest<Subscription>.ApiVersion
ClientServiceRequest<Subscription>.RequestParameters
ClientServiceRequest<Subscription>.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.Reseller.v1
Assembly: Google.Apis.Reseller.v1.dll
Syntax
public class SubscriptionsResource.InsertRequest : ResellerBaseServiceRequest<Subscription>, IClientServiceRequest<Subscription>, IClientServiceRequest

Constructors

InsertRequest(IClientService, Subscription, string)

Constructs a new Insert request.

Declaration
public InsertRequest(IClientService service, Subscription body, string customerId)
Parameters
Type Name Description
IClientService service
Subscription body
string customerId

Properties

Action

The intented insert action. The usage of this field is governed by certain policies which are being developed &amp; tested currently. Hence, these might not work as intended. Once this is fully tested &amp; available to consume, we will share more information about its usage, limitations and policy documentation.

Declaration
[RequestParameter("action", RequestParameterType.Query)]
public virtual SubscriptionsResource.InsertRequest.ActionEnum? Action { get; set; }
Property Value
Type Description
SubscriptionsResource.InsertRequest.ActionEnum?

CustomerAuthToken

The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.

Declaration
[RequestParameter("customerAuthToken", RequestParameterType.Query)]
public virtual string CustomerAuthToken { get; set; }
Property Value
Type Description
string

CustomerId

This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable.

Declaration
[RequestParameter("customerId", RequestParameterType.Path)]
public virtual string CustomerId { get; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

RestPath

Gets the REST path.

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

SourceSkuId

The sku_id of the existing subscription to be upgraded or downgraded. This is required when action is SWITCH. The usage of this field is governed by certain policies which are being developed &amp; tested currently. Hence, these might not work as intended. Once this is fully tested &amp; available to consume, we will share more information about its usage, limitations and policy documentation.

Declaration
[RequestParameter("sourceSkuId", RequestParameterType.Query)]
public virtual string SourceSkuId { get; set; }
Property Value
Type Description
string

Methods

GetBody()

Returns the body of the request.

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

InitParameters()

Initializes Insert parameter list.

Declaration
protected override void InitParameters()
Overrides
ResellerBaseServiceRequest<Subscription>.InitParameters()

Implements

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