Class PartnersResource.SubscriptionsResource.SuspendRequest
Suspends a subscription. Contract terms may dictate if a prorated refund will be issued upon suspension. It should be called directly by the partner using service accounts.
Inheritance
PaymentsResellerSubscriptionBaseServiceRequest <GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse >
PartnersResource.SubscriptionsResource.SuspendRequest
Implements
Inherited Members
Namespace: Google.Apis.PaymentsResellerSubscription .v1
Assembly: Google.Apis.PaymentsResellerSubscription.v1.dll
Syntax
public class PartnersResource.SubscriptionsResource.SuspendRequest : PaymentsResellerSubscriptionBaseServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse>, IClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse>, IClientServiceRequest
Constructors
SuspendRequest(IClientService, GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest, string)
Constructs a new Suspend request.
Declaration
public SuspendRequest(IClientService service, GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service | |
Google |
body | |
string | name |
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
Name
Required. The name of the subscription resource to be suspended. It will have the format of "partners/{partner_id}/subscriptions/{subscription_id}"
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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
ClientServiceRequest<GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse>.GetBody()
InitParameters()
Initializes Suspend parameter list.
Declaration
protected override void InitParameters()