Class MonetizationResource.SubscriptionsResource.CreateRequest
Creates a new subscription. Newly added base plans will remain in draft state until activated.
Inheritance
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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. A string representing the version of available regions being used for the specified resource. Regional prices for the resource have to be specified according to the information published in this article. Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region's version and set of regional prices and currencies will succeed even though a new version is available. 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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()