Class MonetizationResource.SubscriptionsResource.CreateRequest
Creates a new subscription. Newly added base plans will remain in draft state until activated.
Inheritance
MonetizationResource.SubscriptionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class MonetizationResource.SubscriptionsResource.CreateRequest : AndroidPublisherBaseServiceRequest<Subscription>, IClientServiceRequest<Subscription>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Subscription, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Subscription body, string packageName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Subscription | body | |
string | packageName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.Subscription>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.Subscription>.MethodName
PackageName
Required. The parent app (package name) for which the subscription should be created. Must be equal to the package_name field on the Subscription resource.
Declaration
[RequestParameter("packageName", RequestParameterType.Path)]
public virtual string PackageName { get; }
Property Value
Type | Description |
---|---|
string |
ProductId
Required. The ID to use for the subscription. For the requirements on this format, see the documentation of the product_id field on the Subscription resource.
Declaration
[RequestParameter("productId", RequestParameterType.Query)]
public virtual string ProductId { get; set; }
Property Value
Type | Description |
---|---|
string |
RegionsVersionVersion
Required. The latest version is 2022/02.
Declaration
[RequestParameter("regionsVersion.version", RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.Subscription>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.AndroidPublisher.v3.Data.Subscription>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()