Class PartnersResource.SubscriptionsResource.ProvisionRequest
Used by partners to provision a subscription for their customers. This creates a subscription without associating it with the end user account. EntitleSubscription must be called separately using OAuth in order for the end user account to be associated with the subscription. It should be called directly by the partner using service accounts.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.PaymentsResellerSubscription.v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.SubscriptionsResource.ProvisionRequest : PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1Subscription>, IClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1Subscription>, IClientServiceRequest
Constructors
ProvisionRequest(IClientService, GoogleCloudPaymentsResellerSubscriptionV1Subscription, string)
Constructs a new Provision request.
Declaration
public ProvisionRequest(IClientService service, GoogleCloudPaymentsResellerSubscriptionV1Subscription body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudPaymentsResellerSubscriptionV1Subscription | 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
Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id}".
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
SubscriptionId
Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
Declaration
[RequestParameter("subscriptionId", RequestParameterType.Query)]
public virtual string SubscriptionId { 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
InitParameters()
Initializes Provision parameter list.
Declaration
protected override void InitParameters()