Class MonetizationResource.OnetimeproductsResource.PatchRequest
Creates or updates a one-time product.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class MonetizationResource.OnetimeproductsResource.PatchRequest : AndroidPublisherBaseServiceRequest<OneTimeProduct>, IClientServiceRequest<OneTimeProduct>, IClientServiceRequest
Constructors
PatchRequest(IClientService, OneTimeProduct, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, OneTimeProduct body, string packageName, string productId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| OneTimeProduct | body | |
| string | packageName | |
| string | productId |
Properties
AllowMissing
Optional. If set to true, and the one-time product with the given package_name and product_id doesn't exist, the one-time product will be created. If a new one-time product is created, update_mask is ignored.
Declaration
[RequestParameter("allowMissing", RequestParameterType.Query)]
public virtual bool? AllowMissing { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
LatencyTolerance
Optional. The latency tolerance for the propagation of this product upsert. Defaults to latency-sensitive.
Declaration
[RequestParameter("latencyTolerance", RequestParameterType.Query)]
public virtual MonetizationResource.OnetimeproductsResource.PatchRequest.LatencyToleranceEnum? LatencyTolerance { get; set; }
Property Value
| Type | Description |
|---|---|
| MonetizationResource.OnetimeproductsResource.PatchRequest.LatencyToleranceEnum? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
PackageName
Required. Immutable. Package name of the parent app.
Declaration
[RequestParameter("packageName", RequestParameterType.Path)]
public virtual string PackageName { get; }
Property Value
| Type | Description |
|---|---|
| string |
ProductId
Required. Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must start with a number or lowercase letter, and can contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.).
Declaration
[RequestParameter("productId", RequestParameterType.Path)]
public virtual string ProductId { get; }
Property Value
| Type | Description |
|---|---|
| string |
RegionsVersionVersion
Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version 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.
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
UpdateMask
Required. The list of fields to be updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()