// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Generated code. DO NOT EDIT!
namespace Google.Apis.AndroidPublisher.v3
{
/// The AndroidPublisher Service.
public class AndroidPublisherService : Google.Apis.Services.BaseClientService
{
/// The API version.
public const string Version = "v3";
/// The discovery version used to generate this service.
public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0;
/// Constructs a new service.
public AndroidPublisherService() : this(new Google.Apis.Services.BaseClientService.Initializer())
{
}
/// Constructs a new service.
/// The service initializer.
public AndroidPublisherService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer)
{
Applications = new ApplicationsResource(this);
Apprecovery = new ApprecoveryResource(this);
Edits = new EditsResource(this);
Externaltransactions = new ExternaltransactionsResource(this);
Generatedapks = new GeneratedapksResource(this);
Grants = new GrantsResource(this);
Inappproducts = new InappproductsResource(this);
Internalappsharingartifacts = new InternalappsharingartifactsResource(this);
Monetization = new MonetizationResource(this);
Orders = new OrdersResource(this);
Purchases = new PurchasesResource(this);
Reviews = new ReviewsResource(this);
Systemapks = new SystemapksResource(this);
Users = new UsersResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://androidpublisher.googleapis.com/");
BatchUri = GetEffectiveUri(null, "https://androidpublisher.googleapis.com/batch");
}
/// Gets the service supported features.
public override System.Collections.Generic.IList Features => new string[0];
/// Gets the service name.
public override string Name => "androidpublisher";
/// Gets the service base URI.
public override string BaseUri { get; }
/// Gets the service base path.
public override string BasePath => "";
/// Gets the batch base URI; null if unspecified.
public override string BatchUri { get; }
/// Gets the batch base path; null if unspecified.
public override string BatchPath => "batch";
/// Available OAuth 2.0 scopes for use with the Google Play Android Developer API.
public class Scope
{
/// View and manage your Google Play Developer account
public static string Androidpublisher = "https://www.googleapis.com/auth/androidpublisher";
}
/// Available OAuth 2.0 scope constants for use with the Google Play Android Developer API.
public static class ScopeConstants
{
/// View and manage your Google Play Developer account
public const string Androidpublisher = "https://www.googleapis.com/auth/androidpublisher";
}
/// Gets the Applications resource.
public virtual ApplicationsResource Applications { get; }
/// Gets the Apprecovery resource.
public virtual ApprecoveryResource Apprecovery { get; }
/// Gets the Edits resource.
public virtual EditsResource Edits { get; }
/// Gets the Externaltransactions resource.
public virtual ExternaltransactionsResource Externaltransactions { get; }
/// Gets the Generatedapks resource.
public virtual GeneratedapksResource Generatedapks { get; }
/// Gets the Grants resource.
public virtual GrantsResource Grants { get; }
/// Gets the Inappproducts resource.
public virtual InappproductsResource Inappproducts { get; }
/// Gets the Internalappsharingartifacts resource.
public virtual InternalappsharingartifactsResource Internalappsharingartifacts { get; }
/// Gets the Monetization resource.
public virtual MonetizationResource Monetization { get; }
/// Gets the Orders resource.
public virtual OrdersResource Orders { get; }
/// Gets the Purchases resource.
public virtual PurchasesResource Purchases { get; }
/// Gets the Reviews resource.
public virtual ReviewsResource Reviews { get; }
/// Gets the Systemapks resource.
public virtual SystemapksResource Systemapks { get; }
/// Gets the Users resource.
public virtual UsersResource Users { get; }
}
/// A base abstract class for AndroidPublisher requests.
public abstract class AndroidPublisherBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest
{
/// Constructs a new AndroidPublisherBaseServiceRequest instance.
protected AndroidPublisherBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service)
{
}
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required
/// unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a
/// user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Initializes AndroidPublisher parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter
{
Name = "$.xgafv",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter
{
Name = "access_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter
{
Name = "alt",
IsRequired = false,
ParameterType = "query",
DefaultValue = "json",
Pattern = null,
});
RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter
{
Name = "callback",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter
{
Name = "fields",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("key", new Google.Apis.Discovery.Parameter
{
Name = "key",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter
{
Name = "oauth_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter
{
Name = "prettyPrint",
IsRequired = false,
ParameterType = "query",
DefaultValue = "true",
Pattern = null,
});
RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter
{
Name = "quotaUser",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter
{
Name = "uploadType",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter
{
Name = "upload_protocol",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// The "applications" collection of methods.
public class ApplicationsResource
{
private const string Resource = "applications";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ApplicationsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
DeviceTierConfigs = new DeviceTierConfigsResource(service);
}
/// Gets the DeviceTierConfigs resource.
public virtual DeviceTierConfigsResource DeviceTierConfigs { get; }
/// The "deviceTierConfigs" collection of methods.
public class DeviceTierConfigsResource
{
private const string Resource = "deviceTierConfigs";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DeviceTierConfigsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Creates a new device tier config for an app.
/// The body of the request.
/// Package name of the app.
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig body, string packageName)
{
return new CreateRequest(this.service, body, packageName);
}
/// Creates a new device tier config for an app.
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Whether the service should accept device IDs that are unknown to Play's device catalog.
///
[Google.Apis.Util.RequestParameterAttribute("allowUnknownDevices", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AllowUnknownDevices { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.DeviceTierConfig Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("allowUnknownDevices", new Google.Apis.Discovery.Parameter
{
Name = "allowUnknownDevices",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns a particular device tier config.
/// Package name of the app.
/// Required. Id of an existing device tier config.
public virtual GetRequest Get(string packageName, long deviceTierConfigId)
{
return new GetRequest(this.service, packageName, deviceTierConfigId);
}
/// Returns a particular device tier config.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, long deviceTierConfigId) : base(service)
{
PackageName = packageName;
DeviceTierConfigId = deviceTierConfigId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. Id of an existing device tier config.
[Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long DeviceTierConfigId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("deviceTierConfigId", new Google.Apis.Discovery.Parameter
{
Name = "deviceTierConfigId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns created device tier configs, ordered by descending creation time.
/// Package name of the app.
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
/// Returns created device tier configs, ordered by descending creation time.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// The maximum number of device tier configs to return. The service may return fewer than this value.
/// If unspecified, at most 10 device tier configs will be returned. The maximum value for this field is
/// 100; values above 100 will be coerced to 100. Device tier configs will be ordered by descending
/// creation time.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// A page token, received from a previous `ListDeviceTierConfigs` call. Provide this to retrieve the
/// subsequent page.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/deviceTierConfigs";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Writes the Safety Labels declaration of an app.
/// The body of the request.
/// Required. Package name of the app.
public virtual DataSafetyRequest DataSafety(Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest body, string packageName)
{
return new DataSafetyRequest(this.service, body, packageName);
}
/// Writes the Safety Labels declaration of an app.
public class DataSafetyRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new DataSafety request.
public DataSafetyRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Required. Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.SafetyLabelsUpdateRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "dataSafety";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/dataSafety";
/// Initializes DataSafety parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "apprecovery" collection of methods.
public class ApprecoveryResource
{
private const string Resource = "apprecovery";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ApprecoveryResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Incrementally update targeting for a recovery action. Note that only the criteria selected during the
/// creation of recovery action can be expanded.
///
/// The body of the request.
///
/// Required. Package name of the app for which recovery action is to be updated.
///
/// Required. ID corresponding to the app recovery action.
public virtual AddTargetingRequest AddTargeting(Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest body, string packageName, long appRecoveryId)
{
return new AddTargetingRequest(this.service, body, packageName, appRecoveryId);
}
///
/// Incrementally update targeting for a recovery action. Note that only the criteria selected during the
/// creation of recovery action can be expanded.
///
public class AddTargetingRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new AddTargeting request.
public AddTargetingRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest body, string packageName, long appRecoveryId) : base(service)
{
PackageName = packageName;
AppRecoveryId = appRecoveryId;
Body = body;
InitParameters();
}
/// Required. Package name of the app for which recovery action is to be updated.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. ID corresponding to the app recovery action.
[Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long AppRecoveryId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.AddTargetingRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "addTargeting";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting";
/// Initializes AddTargeting parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter
{
Name = "appRecoveryId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Cancel an already executing app recovery action. Note that this action changes status of the recovery action
/// to CANCELED.
///
/// The body of the request.
///
/// Required. Package name of the app for which recovery action cancellation is requested.
///
/// Required. ID corresponding to the app recovery action.
public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest body, string packageName, long appRecoveryId)
{
return new CancelRequest(this.service, body, packageName, appRecoveryId);
}
///
/// Cancel an already executing app recovery action. Note that this action changes status of the recovery action
/// to CANCELED.
///
public class CancelRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Cancel request.
public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest body, string packageName, long appRecoveryId) : base(service)
{
PackageName = packageName;
AppRecoveryId = appRecoveryId;
Body = body;
InitParameters();
}
///
/// Required. Package name of the app for which recovery action cancellation is requested.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. ID corresponding to the app recovery action.
[Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long AppRecoveryId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.CancelAppRecoveryRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "cancel";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel";
/// Initializes Cancel parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter
{
Name = "appRecoveryId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the
/// recovery action.
///
/// The body of the request.
/// Required. Package name of the app on which recovery action is performed.
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest body, string packageName)
{
return new CreateRequest(this.service, body, packageName);
}
///
/// Create an app recovery action with recovery status as DRAFT. Note that this action does not execute the
/// recovery action.
///
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Required. Package name of the app on which recovery action is performed.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.CreateDraftAppRecoveryRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates
/// the recovery action for all targeted users and changes its status to ACTIVE.
///
/// The body of the request.
/// Required. Package name of the app for which recovery action is deployed.
/// Required. ID corresponding to the app recovery action to deploy.
public virtual DeployRequest Deploy(Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest body, string packageName, long appRecoveryId)
{
return new DeployRequest(this.service, body, packageName, appRecoveryId);
}
///
/// Deploy an already created app recovery action with recovery status DRAFT. Note that this action activates
/// the recovery action for all targeted users and changes its status to ACTIVE.
///
public class DeployRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deploy request.
public DeployRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest body, string packageName, long appRecoveryId) : base(service)
{
PackageName = packageName;
AppRecoveryId = appRecoveryId;
Body = body;
InitParameters();
}
/// Required. Package name of the app for which recovery action is deployed.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. ID corresponding to the app recovery action to deploy.
[Google.Apis.Util.RequestParameterAttribute("appRecoveryId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long AppRecoveryId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.DeployAppRecoveryRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "deploy";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy";
/// Initializes Deploy parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("appRecoveryId", new Google.Apis.Discovery.Parameter
{
Name = "appRecoveryId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// List all app recovery action resources associated with a particular package name and app version.
///
///
/// Required. Package name of the app for which list of recovery actions is requested.
///
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
///
/// List all app recovery action resources associated with a particular package name and app version.
///
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Required. Package name of the app for which list of recovery actions is requested.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. Version code targeted by the list of recovery actions.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable VersionCode { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/appRecoveries";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "edits" collection of methods.
public class EditsResource
{
private const string Resource = "edits";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public EditsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Apks = new ApksResource(service);
Bundles = new BundlesResource(service);
Countryavailability = new CountryavailabilityResource(service);
Deobfuscationfiles = new DeobfuscationfilesResource(service);
Details = new DetailsResource(service);
Expansionfiles = new ExpansionfilesResource(service);
Images = new ImagesResource(service);
Listings = new ListingsResource(service);
Testers = new TestersResource(service);
Tracks = new TracksResource(service);
}
/// Gets the Apks resource.
public virtual ApksResource Apks { get; }
/// The "apks" collection of methods.
public class ApksResource
{
private const string Resource = "apks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ApksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a
/// specified URL. This function is only available to organizations using Managed Play whose application is
/// configured to restrict distribution to the organizations.
///
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
public virtual AddexternallyhostedRequest Addexternallyhosted(Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest body, string packageName, string editId)
{
return new AddexternallyhostedRequest(this.service, body, packageName, editId);
}
///
/// Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a
/// specified URL. This function is only available to organizations using Managed Play whose application is
/// configured to restrict distribution to the organizations.
///
public class AddexternallyhostedRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Addexternallyhosted request.
public AddexternallyhostedRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest body, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ApksAddExternallyHostedRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "addexternallyhosted";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted";
/// Initializes Addexternallyhosted parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all current APKs of the app and edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual ListRequest List(string packageName, string editId)
{
return new ListRequest(this.service, packageName, editId);
}
/// Lists all current APKs of the app and edit.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads an APK and adds to the current edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual UploadRequest Upload(string packageName, string editId)
{
return new UploadRequest(this.service, packageName, editId);
}
/// Uploads an APK and adds to the current edit.
public class UploadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Upload request.
public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "upload";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks";
/// Initializes Upload parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads an APK and adds to the current edit.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// Identifier of the edit.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadMediaUpload Upload(string packageName, string editId, System.IO.Stream stream, string contentType)
{
return new UploadMediaUpload(service, packageName, editId, stream, contentType);
}
/// Upload media upload which supports resumable upload.
public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Constructs a new Upload media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks"), "POST", stream, contentType)
{
PackageName = packageName;
EditId = editId;
}
}
}
/// Gets the Bundles resource.
public virtual BundlesResource Bundles { get; }
/// The "bundles" collection of methods.
public class BundlesResource
{
private const string Resource = "bundles";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public BundlesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Lists all current Android App Bundles of the app and edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual ListRequest List(string packageName, string editId)
{
return new ListRequest(this.service, packageName, editId);
}
/// Lists all current Android App Bundles of the app and edit.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an
/// example in java.
///
/// Package name of the app.
/// Identifier of the edit.
public virtual UploadRequest Upload(string packageName, string editId)
{
return new UploadRequest(this.service, packageName, editId);
}
///
/// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an
/// example in java.
///
public class UploadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Upload request.
public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Deprecated. The installation warning has been removed, it's not necessary to set this field anymore.
///
[Google.Apis.Util.RequestParameterAttribute("ackBundleInstallationWarning", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AckBundleInstallationWarning { get; set; }
///
/// Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or
/// "LATEST" for last uploaded DTC.
///
[Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string DeviceTierConfigId { get; set; }
/// Gets the method name.
public override string MethodName => "upload";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles";
/// Initializes Upload parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("ackBundleInstallationWarning", new Google.Apis.Discovery.Parameter
{
Name = "ackBundleInstallationWarning",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("deviceTierConfigId", new Google.Apis.Discovery.Parameter
{
Name = "deviceTierConfigId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an
/// example in java.
///
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// Identifier of the edit.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadMediaUpload Upload(string packageName, string editId, System.IO.Stream stream, string contentType)
{
return new UploadMediaUpload(service, packageName, editId, stream, contentType);
}
/// Upload media upload which supports resumable upload.
public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Deprecated. The installation warning has been removed, it's not necessary to set this field anymore.
///
[Google.Apis.Util.RequestParameterAttribute("ackBundleInstallationWarning", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AckBundleInstallationWarning { get; set; }
///
/// Device tier config (DTC) to be used for generating deliverables (APKs). Contains id of the DTC or
/// "LATEST" for last uploaded DTC.
///
[Google.Apis.Util.RequestParameterAttribute("deviceTierConfigId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string DeviceTierConfigId { get; set; }
/// Constructs a new Upload media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles"), "POST", stream, contentType)
{
PackageName = packageName;
EditId = editId;
}
}
}
/// Gets the Countryavailability resource.
public virtual CountryavailabilityResource Countryavailability { get; }
/// The "countryavailability" collection of methods.
public class CountryavailabilityResource
{
private const string Resource = "countryavailability";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public CountryavailabilityResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets country availability.
/// Package name of the app.
/// Identifier of the edit.
/// The track to read from.
public virtual GetRequest Get(string packageName, string editId, string track)
{
return new GetRequest(this.service, packageName, editId, track);
}
/// Gets country availability.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The track to read from.
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Deobfuscationfiles resource.
public virtual DeobfuscationfilesResource Deobfuscationfiles { get; }
/// The "deobfuscationfiles" collection of methods.
public class DeobfuscationfilesResource
{
private const string Resource = "deobfuscationfiles";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DeobfuscationfilesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Uploads a new deobfuscation file and attaches to the specified APK.
/// Unique identifier for the Android app.
/// Unique identifier for this edit.
///
/// The version code of the APK whose Deobfuscation File is being uploaded.
///
/// The type of the deobfuscation file.
public virtual UploadRequest Upload(string packageName, string editId, int apkVersionCode, UploadRequest.DeobfuscationFileTypeEnum deobfuscationFileType)
{
return new UploadRequest(this.service, packageName, editId, apkVersionCode, deobfuscationFileType);
}
/// Uploads a new deobfuscation file and attaches to the specified APK.
public class UploadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Upload request.
public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, DeobfuscationFileTypeEnum deobfuscationFileType) : base(service)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
DeobfuscationFileType = deobfuscationFileType;
InitParameters();
}
/// Unique identifier for the Android app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for this edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The version code of the APK whose Deobfuscation File is being uploaded.
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The type of the deobfuscation file.
[Google.Apis.Util.RequestParameterAttribute("deobfuscationFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual DeobfuscationFileTypeEnum DeobfuscationFileType { get; private set; }
/// The type of the deobfuscation file.
public enum DeobfuscationFileTypeEnum
{
/// Unspecified deobfuscation file type.
[Google.Apis.Util.StringValueAttribute("deobfuscationFileTypeUnspecified")]
DeobfuscationFileTypeUnspecified = 0,
/// Proguard deobfuscation file type.
[Google.Apis.Util.StringValueAttribute("proguard")]
Proguard = 1,
/// Native debugging symbols file type.
[Google.Apis.Util.StringValueAttribute("nativeCode")]
NativeCode = 2,
}
/// Gets the method name.
public override string MethodName => "upload";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}";
/// Initializes Upload parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter
{
Name = "apkVersionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("deobfuscationFileType", new Google.Apis.Discovery.Parameter
{
Name = "deobfuscationFileType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads a new deobfuscation file and attaches to the specified APK.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Unique identifier for the Android app.
/// Unique identifier for this edit.
///
/// The version code of the APK whose Deobfuscation File is being uploaded.
///
/// The type of the deobfuscation file.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadMediaUpload Upload(string packageName, string editId, int apkVersionCode, UploadMediaUpload.DeobfuscationFileTypeEnum deobfuscationFileType, System.IO.Stream stream, string contentType)
{
return new UploadMediaUpload(service, packageName, editId, apkVersionCode, deobfuscationFileType, stream, contentType);
}
/// Upload media upload which supports resumable upload.
public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Unique identifier for the Android app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for this edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The version code of the APK whose Deobfuscation File is being uploaded.
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The type of the deobfuscation file.
[Google.Apis.Util.RequestParameterAttribute("deobfuscationFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual DeobfuscationFileTypeEnum DeobfuscationFileType { get; private set; }
/// The type of the deobfuscation file.
public enum DeobfuscationFileTypeEnum
{
/// Unspecified deobfuscation file type.
[Google.Apis.Util.StringValueAttribute("deobfuscationFileTypeUnspecified")]
DeobfuscationFileTypeUnspecified = 0,
/// Proguard deobfuscation file type.
[Google.Apis.Util.StringValueAttribute("proguard")]
Proguard = 1,
/// Native debugging symbols file type.
[Google.Apis.Util.StringValueAttribute("nativeCode")]
NativeCode = 2,
}
/// Constructs a new Upload media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, UploadMediaUpload.DeobfuscationFileTypeEnum deobfuscationFileType, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}"), "POST", stream, contentType)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
DeobfuscationFileType = deobfuscationFileType;
}
}
}
/// Gets the Details resource.
public virtual DetailsResource Details { get; }
/// The "details" collection of methods.
public class DetailsResource
{
private const string Resource = "details";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DetailsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets details of an app.
/// Package name of the app.
/// Identifier of the edit.
public virtual GetRequest Get(string packageName, string editId)
{
return new GetRequest(this.service, packageName, editId);
}
/// Gets details of an app.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Patches details of an app.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId)
{
return new PatchRequest(this.service, body, packageName, editId);
}
/// Patches details of an app.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.AppDetails Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates details of an app.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId)
{
return new UpdateRequest(this.service, body, packageName, editId);
}
/// Updates details of an app.
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppDetails body, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.AppDetails Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/details";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Expansionfiles resource.
public virtual ExpansionfilesResource Expansionfiles { get; }
/// The "expansionfiles" collection of methods.
public class ExpansionfilesResource
{
private const string Resource = "expansionfiles";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ExpansionfilesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Fetches the expansion file configuration for the specified APK.
/// Package name of the app.
/// Identifier of the edit.
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
///
/// The file type of the file configuration which is being read or modified.
///
public virtual GetRequest Get(string packageName, string editId, int apkVersionCode, GetRequest.ExpansionFileTypeEnum expansionFileType)
{
return new GetRequest(this.service, packageName, editId, apkVersionCode, expansionFileType);
}
/// Fetches the expansion file configuration for the specified APK.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
ExpansionFileType = expansionFileType;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The file type of the file configuration which is being read or modified.
[Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; }
/// The file type of the file configuration which is being read or modified.
public enum ExpansionFileTypeEnum
{
/// Unspecified expansion file type.
[Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")]
ExpansionFileTypeUnspecified = 0,
/// Main expansion file.
[Google.Apis.Util.StringValueAttribute("main")]
Main = 1,
/// Patch expansion file.
[Google.Apis.Util.StringValueAttribute("patch")]
Patch = 2,
}
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter
{
Name = "apkVersionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter
{
Name = "expansionFileType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new
/// expansion file use the Upload method.
///
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
///
/// The file type of the expansion file configuration which is being updated.
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, PatchRequest.ExpansionFileTypeEnum expansionFileType)
{
return new PatchRequest(this.service, body, packageName, editId, apkVersionCode, expansionFileType);
}
///
/// Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new
/// expansion file use the Upload method.
///
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
ExpansionFileType = expansionFileType;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The file type of the expansion file configuration which is being updated.
[Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; }
/// The file type of the expansion file configuration which is being updated.
public enum ExpansionFileTypeEnum
{
/// Unspecified expansion file type.
[Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")]
ExpansionFileTypeUnspecified = 0,
/// Main expansion file.
[Google.Apis.Util.StringValueAttribute("main")]
Main = 1,
/// Patch expansion file.
[Google.Apis.Util.StringValueAttribute("patch")]
Patch = 2,
}
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ExpansionFile Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter
{
Name = "apkVersionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter
{
Name = "expansionFileType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new
/// expansion file use the Upload method.
///
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
///
/// The file type of the file configuration which is being read or modified.
///
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, UpdateRequest.ExpansionFileTypeEnum expansionFileType)
{
return new UpdateRequest(this.service, body, packageName, editId, apkVersionCode, expansionFileType);
}
///
/// Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new
/// expansion file use the Upload method.
///
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExpansionFile body, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
ExpansionFileType = expansionFileType;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The file type of the file configuration which is being read or modified.
[Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; }
/// The file type of the file configuration which is being read or modified.
public enum ExpansionFileTypeEnum
{
/// Unspecified expansion file type.
[Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")]
ExpansionFileTypeUnspecified = 0,
/// Main expansion file.
[Google.Apis.Util.StringValueAttribute("main")]
Main = 1,
/// Patch expansion file.
[Google.Apis.Util.StringValueAttribute("patch")]
Patch = 2,
}
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ExpansionFile Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter
{
Name = "apkVersionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter
{
Name = "expansionFileType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads a new expansion file and attaches to the specified APK.
/// Package name of the app.
/// Identifier of the edit.
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
///
/// The file type of the expansion file configuration which is being updated.
///
public virtual UploadRequest Upload(string packageName, string editId, int apkVersionCode, UploadRequest.ExpansionFileTypeEnum expansionFileType)
{
return new UploadRequest(this.service, packageName, editId, apkVersionCode, expansionFileType);
}
/// Uploads a new expansion file and attaches to the specified APK.
public class UploadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Upload request.
public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, ExpansionFileTypeEnum expansionFileType) : base(service)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
ExpansionFileType = expansionFileType;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The file type of the expansion file configuration which is being updated.
[Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; }
/// The file type of the expansion file configuration which is being updated.
public enum ExpansionFileTypeEnum
{
/// Unspecified expansion file type.
[Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")]
ExpansionFileTypeUnspecified = 0,
/// Main expansion file.
[Google.Apis.Util.StringValueAttribute("main")]
Main = 1,
/// Patch expansion file.
[Google.Apis.Util.StringValueAttribute("patch")]
Patch = 2,
}
/// Gets the method name.
public override string MethodName => "upload";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}";
/// Initializes Upload parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("apkVersionCode", new Google.Apis.Discovery.Parameter
{
Name = "apkVersionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("expansionFileType", new Google.Apis.Discovery.Parameter
{
Name = "expansionFileType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads a new expansion file and attaches to the specified APK.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// Identifier of the edit.
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
///
/// The file type of the expansion file configuration which is being updated.
///
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadMediaUpload Upload(string packageName, string editId, int apkVersionCode, UploadMediaUpload.ExpansionFileTypeEnum expansionFileType, System.IO.Stream stream, string contentType)
{
return new UploadMediaUpload(service, packageName, editId, apkVersionCode, expansionFileType, stream, contentType);
}
/// Upload media upload which supports resumable upload.
public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// The version code of the APK whose expansion file configuration is being read or modified.
///
[Google.Apis.Util.RequestParameterAttribute("apkVersionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int ApkVersionCode { get; private set; }
/// The file type of the expansion file configuration which is being updated.
[Google.Apis.Util.RequestParameterAttribute("expansionFileType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ExpansionFileTypeEnum ExpansionFileType { get; private set; }
/// The file type of the expansion file configuration which is being updated.
public enum ExpansionFileTypeEnum
{
/// Unspecified expansion file type.
[Google.Apis.Util.StringValueAttribute("expansionFileTypeUnspecified")]
ExpansionFileTypeUnspecified = 0,
/// Main expansion file.
[Google.Apis.Util.StringValueAttribute("main")]
Main = 1,
/// Patch expansion file.
[Google.Apis.Util.StringValueAttribute("patch")]
Patch = 2,
}
/// Constructs a new Upload media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, int apkVersionCode, UploadMediaUpload.ExpansionFileTypeEnum expansionFileType, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}"), "POST", stream, contentType)
{
PackageName = packageName;
EditId = editId;
ApkVersionCode = apkVersionCode;
ExpansionFileType = expansionFileType;
}
}
}
/// Gets the Images resource.
public virtual ImagesResource Images { get; }
/// The "images" collection of methods.
public class ImagesResource
{
private const string Resource = "images";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ImagesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Deletes the image (specified by id) from the edit.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
/// Type of the Image.
/// Unique identifier an image within the set of images attached to this edit.
public virtual DeleteRequest Delete(string packageName, string editId, string language, DeleteRequest.ImageTypeEnum imageType, string imageId)
{
return new DeleteRequest(this.service, packageName, editId, language, imageType, imageId);
}
/// Deletes the image (specified by id) from the edit.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType, string imageId) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
ImageType = imageType;
ImageId = imageId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Type of the Image.
[Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ImageTypeEnum ImageType { get; private set; }
/// Type of the Image.
public enum ImageTypeEnum
{
/// Unspecified type. Do not use.
[Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")]
AppImageTypeUnspecified = 0,
/// Phone screenshot.
[Google.Apis.Util.StringValueAttribute("phoneScreenshots")]
PhoneScreenshots = 1,
/// Seven inch screenshot.
[Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")]
SevenInchScreenshots = 2,
/// Ten inch screenshot.
[Google.Apis.Util.StringValueAttribute("tenInchScreenshots")]
TenInchScreenshots = 3,
/// TV screenshot.
[Google.Apis.Util.StringValueAttribute("tvScreenshots")]
TvScreenshots = 4,
/// Wear screenshot.
[Google.Apis.Util.StringValueAttribute("wearScreenshots")]
WearScreenshots = 5,
/// Icon.
[Google.Apis.Util.StringValueAttribute("icon")]
Icon = 6,
/// Feature graphic.
[Google.Apis.Util.StringValueAttribute("featureGraphic")]
FeatureGraphic = 7,
/// TV banner.
[Google.Apis.Util.StringValueAttribute("tvBanner")]
TvBanner = 8,
}
/// Unique identifier an image within the set of images attached to this edit.
[Google.Apis.Util.RequestParameterAttribute("imageId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ImageId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter
{
Name = "imageType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("imageId", new Google.Apis.Discovery.Parameter
{
Name = "imageId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes all images for the specified language and image type. Returns an empty response if no images are
/// found.
///
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing
/// a language that is not supported by the App is a no-op.
///
///
/// Type of the Image. Providing an image type that refers to no images is a no-op.
///
public virtual DeleteallRequest Deleteall(string packageName, string editId, string language, DeleteallRequest.ImageTypeEnum imageType)
{
return new DeleteallRequest(this.service, packageName, editId, language, imageType);
}
///
/// Deletes all images for the specified language and image type. Returns an empty response if no images are
/// found.
///
public class DeleteallRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deleteall request.
public DeleteallRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
ImageType = imageType;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
/// Providing a language that is not supported by the App is a no-op.
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Type of the Image. Providing an image type that refers to no images is a no-op.
[Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ImageTypeEnum ImageType { get; private set; }
/// Type of the Image. Providing an image type that refers to no images is a no-op.
public enum ImageTypeEnum
{
/// Unspecified type. Do not use.
[Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")]
AppImageTypeUnspecified = 0,
/// Phone screenshot.
[Google.Apis.Util.StringValueAttribute("phoneScreenshots")]
PhoneScreenshots = 1,
/// Seven inch screenshot.
[Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")]
SevenInchScreenshots = 2,
/// Ten inch screenshot.
[Google.Apis.Util.StringValueAttribute("tenInchScreenshots")]
TenInchScreenshots = 3,
/// TV screenshot.
[Google.Apis.Util.StringValueAttribute("tvScreenshots")]
TvScreenshots = 4,
/// Wear screenshot.
[Google.Apis.Util.StringValueAttribute("wearScreenshots")]
WearScreenshots = 5,
/// Icon.
[Google.Apis.Util.StringValueAttribute("icon")]
Icon = 6,
/// Feature graphic.
[Google.Apis.Util.StringValueAttribute("featureGraphic")]
FeatureGraphic = 7,
/// TV banner.
[Google.Apis.Util.StringValueAttribute("tvBanner")]
TvBanner = 8,
}
/// Gets the method name.
public override string MethodName => "deleteall";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}";
/// Initializes Deleteall parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter
{
Name = "imageType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all images. The response may be empty.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There must
/// be a store listing for the specified language.
///
///
/// Type of the Image. Providing an image type that refers to no images will return an empty response.
///
public virtual ListRequest List(string packageName, string editId, string language, ListRequest.ImageTypeEnum imageType)
{
return new ListRequest(this.service, packageName, editId, language, imageType);
}
/// Lists all images. The response may be empty.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
ImageType = imageType;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There
/// must be a store listing for the specified language.
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
///
/// Type of the Image. Providing an image type that refers to no images will return an empty response.
///
[Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ImageTypeEnum ImageType { get; private set; }
///
/// Type of the Image. Providing an image type that refers to no images will return an empty response.
///
public enum ImageTypeEnum
{
/// Unspecified type. Do not use.
[Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")]
AppImageTypeUnspecified = 0,
/// Phone screenshot.
[Google.Apis.Util.StringValueAttribute("phoneScreenshots")]
PhoneScreenshots = 1,
/// Seven inch screenshot.
[Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")]
SevenInchScreenshots = 2,
/// Ten inch screenshot.
[Google.Apis.Util.StringValueAttribute("tenInchScreenshots")]
TenInchScreenshots = 3,
/// TV screenshot.
[Google.Apis.Util.StringValueAttribute("tvScreenshots")]
TvScreenshots = 4,
/// Wear screenshot.
[Google.Apis.Util.StringValueAttribute("wearScreenshots")]
WearScreenshots = 5,
/// Icon.
[Google.Apis.Util.StringValueAttribute("icon")]
Icon = 6,
/// Feature graphic.
[Google.Apis.Util.StringValueAttribute("featureGraphic")]
FeatureGraphic = 7,
/// TV banner.
[Google.Apis.Util.StringValueAttribute("tvBanner")]
TvBanner = 8,
}
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter
{
Name = "imageType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads an image of the specified language and image type, and adds to the edit.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing
/// a language that is not supported by the App is a no-op.
///
/// Type of the Image.
public virtual UploadRequest Upload(string packageName, string editId, string language, UploadRequest.ImageTypeEnum imageType)
{
return new UploadRequest(this.service, packageName, editId, language, imageType);
}
/// Uploads an image of the specified language and image type, and adds to the edit.
public class UploadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Upload request.
public UploadRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language, ImageTypeEnum imageType) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
ImageType = imageType;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
/// Providing a language that is not supported by the App is a no-op.
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Type of the Image.
[Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ImageTypeEnum ImageType { get; private set; }
/// Type of the Image.
public enum ImageTypeEnum
{
/// Unspecified type. Do not use.
[Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")]
AppImageTypeUnspecified = 0,
/// Phone screenshot.
[Google.Apis.Util.StringValueAttribute("phoneScreenshots")]
PhoneScreenshots = 1,
/// Seven inch screenshot.
[Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")]
SevenInchScreenshots = 2,
/// Ten inch screenshot.
[Google.Apis.Util.StringValueAttribute("tenInchScreenshots")]
TenInchScreenshots = 3,
/// TV screenshot.
[Google.Apis.Util.StringValueAttribute("tvScreenshots")]
TvScreenshots = 4,
/// Wear screenshot.
[Google.Apis.Util.StringValueAttribute("wearScreenshots")]
WearScreenshots = 5,
/// Icon.
[Google.Apis.Util.StringValueAttribute("icon")]
Icon = 6,
/// Feature graphic.
[Google.Apis.Util.StringValueAttribute("featureGraphic")]
FeatureGraphic = 7,
/// TV banner.
[Google.Apis.Util.StringValueAttribute("tvBanner")]
TvBanner = 8,
}
/// Gets the method name.
public override string MethodName => "upload";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}";
/// Initializes Upload parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("imageType", new Google.Apis.Discovery.Parameter
{
Name = "imageType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Uploads an image of the specified language and image type, and adds to the edit.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). Providing
/// a language that is not supported by the App is a no-op.
///
/// Type of the Image.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadMediaUpload Upload(string packageName, string editId, string language, UploadMediaUpload.ImageTypeEnum imageType, System.IO.Stream stream, string contentType)
{
return new UploadMediaUpload(service, packageName, editId, language, imageType, stream, contentType);
}
/// Upload media upload which supports resumable upload.
public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string
/// assigned to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
/// Providing a language that is not supported by the App is a no-op.
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Type of the Image.
[Google.Apis.Util.RequestParameterAttribute("imageType", Google.Apis.Util.RequestParameterType.Path)]
public virtual ImageTypeEnum ImageType { get; private set; }
/// Type of the Image.
public enum ImageTypeEnum
{
/// Unspecified type. Do not use.
[Google.Apis.Util.StringValueAttribute("appImageTypeUnspecified")]
AppImageTypeUnspecified = 0,
/// Phone screenshot.
[Google.Apis.Util.StringValueAttribute("phoneScreenshots")]
PhoneScreenshots = 1,
/// Seven inch screenshot.
[Google.Apis.Util.StringValueAttribute("sevenInchScreenshots")]
SevenInchScreenshots = 2,
/// Ten inch screenshot.
[Google.Apis.Util.StringValueAttribute("tenInchScreenshots")]
TenInchScreenshots = 3,
/// TV screenshot.
[Google.Apis.Util.StringValueAttribute("tvScreenshots")]
TvScreenshots = 4,
/// Wear screenshot.
[Google.Apis.Util.StringValueAttribute("wearScreenshots")]
WearScreenshots = 5,
/// Icon.
[Google.Apis.Util.StringValueAttribute("icon")]
Icon = 6,
/// Feature graphic.
[Google.Apis.Util.StringValueAttribute("featureGraphic")]
FeatureGraphic = 7,
/// TV banner.
[Google.Apis.Util.StringValueAttribute("tvBanner")]
TvBanner = 8,
}
/// Constructs a new Upload media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadMediaUpload(Google.Apis.Services.IClientService service, string packageName, string editId, string language, UploadMediaUpload.ImageTypeEnum imageType, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}"), "POST", stream, contentType)
{
PackageName = packageName;
EditId = editId;
Language = language;
ImageType = imageType;
}
}
}
/// Gets the Listings resource.
public virtual ListingsResource Listings { get; }
/// The "listings" collection of methods.
public class ListingsResource
{
private const string Resource = "listings";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ListingsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Deletes a localized store listing.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
public virtual DeleteRequest Delete(string packageName, string editId, string language)
{
return new DeleteRequest(this.service, packageName, editId, language);
}
/// Deletes a localized store listing.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deletes all store listings.
/// Package name of the app.
/// Identifier of the edit.
public virtual DeleteallRequest Deleteall(string packageName, string editId)
{
return new DeleteallRequest(this.service, packageName, editId);
}
/// Deletes all store listings.
public class DeleteallRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deleteall request.
public DeleteallRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "deleteall";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings";
/// Initializes Deleteall parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets a localized store listing.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
public virtual GetRequest Get(string packageName, string editId, string language)
{
return new GetRequest(this.service, packageName, editId, language);
}
/// Gets a localized store listing.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string language) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all localized store listings.
/// Package name of the app.
/// Identifier of the edit.
public virtual ListRequest List(string packageName, string editId)
{
return new ListRequest(this.service, packageName, editId);
}
/// Lists all localized store listings.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Patches a localized store listing.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language)
{
return new PatchRequest(this.service, body, packageName, editId, language);
}
/// Patches a localized store listing.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Listing Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates or updates a localized store listing.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language)
{
return new UpdateRequest(this.service, body, packageName, editId, language);
}
/// Creates or updates a localized store listing.
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Listing body, string packageName, string editId, string language) : base(service)
{
PackageName = packageName;
EditId = editId;
Language = language;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
///
[Google.Apis.Util.RequestParameterAttribute("language", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Language { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Listing Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("language", new Google.Apis.Discovery.Parameter
{
Name = "language",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Testers resource.
public virtual TestersResource Testers { get; }
/// The "testers" collection of methods.
public class TestersResource
{
private const string Resource = "testers";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public TestersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets testers. Note: Testers resource does not support email lists.
/// Package name of the app.
/// Identifier of the edit.
/// The track to read from.
public virtual GetRequest Get(string packageName, string editId, string track)
{
return new GetRequest(this.service, packageName, editId, track);
}
/// Gets testers. Note: Testers resource does not support email lists.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The track to read from.
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Patches testers. Note: Testers resource does not support email lists.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
/// The track to update.
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track)
{
return new PatchRequest(this.service, body, packageName, editId, track);
}
/// Patches testers. Note: Testers resource does not support email lists.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The track to update.
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Testers Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates testers. Note: Testers resource does not support email lists.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
/// The track to update.
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track)
{
return new UpdateRequest(this.service, body, packageName, editId, track);
}
/// Updates testers. Note: Testers resource does not support email lists.
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Testers body, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// The track to update.
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Testers Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Tracks resource.
public virtual TracksResource Tracks { get; }
/// The "tracks" collection of methods.
public class TracksResource
{
private const string Resource = "tracks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public TracksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Creates a new track.
/// The body of the request.
/// Required. Package name of the app.
/// Required. Identifier of the edit.
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.TrackConfig body, string packageName, string editId)
{
return new CreateRequest(this.service, body, packageName, editId);
}
/// Creates a new track.
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.TrackConfig body, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
Body = body;
InitParameters();
}
/// Required. Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.TrackConfig Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets a track.
/// Package name of the app.
/// Identifier of the edit.
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
public virtual GetRequest Get(string packageName, string editId, string track)
{
return new GetRequest(this.service, packageName, editId, track);
}
/// Gets a track.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all tracks.
/// Package name of the app.
/// Identifier of the edit.
public virtual ListRequest List(string packageName, string editId)
{
return new ListRequest(this.service, packageName, editId);
}
/// Lists all tracks.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Patches a track.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track)
{
return new PatchRequest(this.service, body, packageName, editId, track);
}
/// Patches a track.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Track Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates a track.
/// The body of the request.
/// Package name of the app.
/// Identifier of the edit.
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track)
{
return new UpdateRequest(this.service, body, packageName, editId, track);
}
/// Updates a track.
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Track body, string packageName, string editId, string track) : base(service)
{
PackageName = packageName;
EditId = editId;
Track = track;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// Identifier of the track. [More on track
/// name](https://developers.google.com/android-publisher/tracks#ff-track-name)
///
[Google.Apis.Util.RequestParameterAttribute("track", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Track { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Track Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("track", new Google.Apis.Discovery.Parameter
{
Name = "track",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Commits an app edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual CommitRequest Commit(string packageName, string editId)
{
return new CommitRequest(this.service, packageName, editId);
}
/// Commits an app edit.
public class CommitRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Commit request.
public CommitRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
///
/// When a rejection happens, the parameter will make sure that the changes in this edit won't be reviewed
/// until they are explicitly sent for review from within the Google Play Console UI. These changes will be
/// added to any other changes that are not yet sent for review.
///
[Google.Apis.Util.RequestParameterAttribute("changesNotSentForReview", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable ChangesNotSentForReview { get; set; }
/// Gets the method name.
public override string MethodName => "commit";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}:commit";
/// Initializes Commit parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("changesNotSentForReview", new Google.Apis.Discovery.Parameter
{
Name = "changesNotSentForReview",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deletes an app edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual DeleteRequest Delete(string packageName, string editId)
{
return new DeleteRequest(this.service, packageName, editId);
}
/// Deletes an app edit.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets an app edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual GetRequest Get(string packageName, string editId)
{
return new GetRequest(this.service, packageName, editId);
}
/// Gets an app edit.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates a new edit for an app.
/// The body of the request.
/// Package name of the app.
public virtual InsertRequest Insert(Google.Apis.AndroidPublisher.v3.Data.AppEdit body, string packageName)
{
return new InsertRequest(this.service, body, packageName);
}
/// Creates a new edit for an app.
public class InsertRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.AppEdit body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.AppEdit Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Validates an app edit.
/// Package name of the app.
/// Identifier of the edit.
public virtual ValidateRequest Validate(string packageName, string editId)
{
return new ValidateRequest(this.service, packageName, editId);
}
/// Validates an app edit.
public class ValidateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Validate request.
public ValidateRequest(Google.Apis.Services.IClientService service, string packageName, string editId) : base(service)
{
PackageName = packageName;
EditId = editId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Identifier of the edit.
[Google.Apis.Util.RequestParameterAttribute("editId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string EditId { get; private set; }
/// Gets the method name.
public override string MethodName => "validate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/edits/{editId}:validate";
/// Initializes Validate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("editId", new Google.Apis.Discovery.Parameter
{
Name = "editId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "externaltransactions" collection of methods.
public class ExternaltransactionsResource
{
private const string Resource = "externaltransactions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ExternaltransactionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Creates a new external transaction.
/// The body of the request.
///
/// Required. The parent resource where this external transaction will be created. Format:
/// applications/{package_name}
///
public virtual CreateexternaltransactionRequest Createexternaltransaction(Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction body, string parent)
{
return new CreateexternaltransactionRequest(this.service, body, parent);
}
/// Creates a new external transaction.
public class CreateexternaltransactionRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Createexternaltransaction request.
public CreateexternaltransactionRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The parent resource where this external transaction will be created. Format:
/// applications/{package_name}
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// Required. The id to use for the external transaction. Must be unique across all other transactions for
/// the app. This value should be 1-63 characters and valid characters are /a-zA-Z0-9_-/. Do not use this
/// field to store any Personally Identifiable Information (PII) such as emails. Attempting to store PII in
/// this field may result in requests being blocked.
///
[Google.Apis.Util.RequestParameterAttribute("externalTransactionId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ExternalTransactionId { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ExternalTransaction Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "createexternaltransaction";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+parent}/externalTransactions";
/// Initializes Createexternaltransaction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^applications/[^/]+$",
});
RequestParameters.Add("externalTransactionId", new Google.Apis.Discovery.Parameter
{
Name = "externalTransactionId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets an existing external transaction.
///
/// Required. The name of the external transaction to retrieve. Format:
/// applications/{package_name}/externalTransactions/{external_transaction}
///
public virtual GetexternaltransactionRequest Getexternaltransaction(string name)
{
return new GetexternaltransactionRequest(this.service, name);
}
/// Gets an existing external transaction.
public class GetexternaltransactionRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Getexternaltransaction request.
public GetexternaltransactionRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the external transaction to retrieve. Format:
/// applications/{package_name}/externalTransactions/{external_transaction}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "getexternaltransaction";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}";
/// Initializes Getexternaltransaction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^applications/[^/]+/externalTransactions/[^/]+$",
});
}
}
/// Refunds or partially refunds an existing external transaction.
/// The body of the request.
///
/// Required. The name of the external transaction that will be refunded. Format:
/// applications/{package_name}/externalTransactions/{external_transaction}
///
public virtual RefundexternaltransactionRequest Refundexternaltransaction(Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest body, string name)
{
return new RefundexternaltransactionRequest(this.service, body, name);
}
/// Refunds or partially refunds an existing external transaction.
public class RefundexternaltransactionRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Refundexternaltransaction request.
public RefundexternaltransactionRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. The name of the external transaction that will be refunded. Format:
/// applications/{package_name}/externalTransactions/{external_transaction}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.RefundExternalTransactionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "refundexternaltransaction";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}:refund";
/// Initializes Refundexternaltransaction parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^applications/[^/]+/externalTransactions/[^/]+$",
});
}
}
}
/// The "generatedapks" collection of methods.
public class GeneratedapksResource
{
private const string Resource = "generatedapks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GeneratedapksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Downloads a single signed APK generated from an app bundle.
/// Package name of the app.
/// Version code of the app bundle.
///
/// Download ID, which uniquely identifies the APK to download. Can be obtained from the response of
/// `generatedapks.list` method.
///
public virtual DownloadRequest Download(string packageName, int versionCode, string downloadId)
{
return new DownloadRequest(this.service, packageName, versionCode, downloadId);
}
/// Downloads a single signed APK generated from an app bundle.
public class DownloadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Download request.
public DownloadRequest(Google.Apis.Services.IClientService service, string packageName, int versionCode, string downloadId) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
DownloadId = downloadId;
MediaDownloader = new Google.Apis.Download.MediaDownloader(service);
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Version code of the app bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int VersionCode { get; private set; }
///
/// Download ID, which uniquely identifies the APK to download. Can be obtained from the response of
/// `generatedapks.list` method.
///
[Google.Apis.Util.RequestParameterAttribute("downloadId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string DownloadId { get; private set; }
/// Gets the method name.
public override string MethodName => "download";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download";
/// Initializes Download parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("downloadId", new Google.Apis.Discovery.Parameter
{
Name = "downloadId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
/// Gets the media downloader.
public Google.Apis.Download.IMediaDownloader MediaDownloader { get; private set; }
///
/// Synchronously download the media into the given stream.
///
/// Warning: This method hides download errors; use
/// instead.
///
///
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual void Download(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Synchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
/// The final status of the download; including whether the download succeeded or failed.
public virtual Google.Apis.Download.IDownloadProgress DownloadWithStatus(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Asynchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream);
}
/// Asynchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream,
System.Threading.CancellationToken cancellationToken)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken);
}
/// Synchronously download a range of the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual Google.Apis.Download.IDownloadProgress DownloadRange(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = range;
return mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Asynchronously download a range of the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadRangeAsync(System.IO.Stream stream,
System.Net.Http.Headers.RangeHeaderValue range,
System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = range;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken);
}
}
/// Returns download metadata for all APKs that were generated from a given app bundle.
/// Package name of the app.
/// Version code of the app bundle.
public virtual ListRequest List(string packageName, int versionCode)
{
return new ListRequest(this.service, packageName, versionCode);
}
/// Returns download metadata for all APKs that were generated from a given app bundle.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, int versionCode) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Version code of the app bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual int VersionCode { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "grants" collection of methods.
public class GrantsResource
{
private const string Resource = "grants";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GrantsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Grant access for a user to the given package.
/// The body of the request.
///
/// Required. The user which needs permission. Format: developers/{developer}/users/{user}
///
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Grant body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Grant access for a user to the given package.
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Grant body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
///
/// Required. The user which needs permission. Format: developers/{developer}/users/{user}
///
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Grant Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+parent}/grants";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+/users/[^/]+$",
});
}
}
/// Removes all access for the user to the given package or developer account.
///
/// Required. The name of the grant to delete. Format:
/// developers/{developer}/users/{email}/grants/{package_name}
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Removes all access for the user to the given package or developer account.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the grant to delete. Format:
/// developers/{developer}/users/{email}/grants/{package_name}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+/users/[^/]+/grants/[^/]+$",
});
}
}
/// Updates access for the user to the given package.
/// The body of the request.
///
/// Required. Resource name for this grant, following the pattern
/// "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID
/// will be used in this resource name instead of the package name.
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Grant body, string name)
{
return new PatchRequest(this.service, body, name);
}
/// Updates access for the user to the given package.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Grant body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. Resource name for this grant, following the pattern
/// "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app
/// ID will be used in this resource name instead of the package name.
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The list of fields to be updated.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Grant Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+/users/[^/]+/grants/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "inappproducts" collection of methods.
public class InappproductsResource
{
private const string Resource = "inappproducts";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public InappproductsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested
/// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This
/// method should not be used to delete subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// The body of the request.
/// Package name of the app.
public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest body, string packageName)
{
return new BatchDeleteRequest(this.service, body, packageName);
}
///
/// Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested
/// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This
/// method should not be used to delete subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchDelete request.
public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchDeleteRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchDelete";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete";
/// Initializes BatchDelete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Reads multiple in-app products, which can be managed products or subscriptions. This method should not be
/// used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// Package name of the app.
public virtual BatchGetRequest BatchGet(string packageName)
{
return new BatchGetRequest(this.service, packageName);
}
///
/// Reads multiple in-app products, which can be managed products or subscriptions. This method should not be
/// used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class BatchGetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchGet request.
public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for the in-app products.
[Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Query)]
public virtual Google.Apis.Util.Repeatable Sku { get; set; }
/// Gets the method name.
public override string MethodName => "batchGet";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchGet";
/// Initializes BatchGet parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter
{
Name = "sku",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance
/// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
/// throughput. This method should no longer be used to update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// The body of the request.
/// Package name of the app.
public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest body, string packageName)
{
return new BatchUpdateRequest(this.service, body, packageName);
}
///
/// Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance
/// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
/// throughput. This method should no longer be used to update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdate request.
public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.InappproductsBatchUpdateRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate";
/// Initializes BatchUpdate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes an in-app product (a managed product or a subscription). This method should no longer be used to
/// delete subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// Package name of the app.
/// Unique identifier for the in-app product.
public virtual DeleteRequest Delete(string packageName, string sku)
{
return new DeleteRequest(this.service, packageName, sku);
}
///
/// Deletes an in-app product (a managed product or a subscription). This method should no longer be used to
/// delete subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string sku) : base(service)
{
PackageName = packageName;
Sku = sku;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for the in-app product.
[Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Sku { get; private set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in rare
/// cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter
{
Name = "sku",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Gets an in-app product, which can be a managed product or a subscription. This method should no longer be
/// used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// Package name of the app.
/// Unique identifier for the in-app product.
public virtual GetRequest Get(string packageName, string sku)
{
return new GetRequest(this.service, packageName, sku);
}
///
/// Gets an in-app product, which can be a managed product or a subscription. This method should no longer be
/// used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string sku) : base(service)
{
PackageName = packageName;
Sku = sku;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for the in-app product.
[Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Sku { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter
{
Name = "sku",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Creates an in-app product (a managed product or a subscription). This method should no longer be used to
/// create subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// The body of the request.
/// Package name of the app.
public virtual InsertRequest Insert(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName)
{
return new InsertRequest(this.service, body, packageName);
}
///
/// Creates an in-app product (a managed product or a subscription). This method should no longer be used to
/// create subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class InsertRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// If true the prices for all regions targeted by the parent app that don't have a price specified for this
/// in-app product will be auto converted to the target currency based on the default price. Defaults to
/// false.
///
[Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AutoConvertMissingPrices { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter
{
Name = "autoConvertMissingPrices",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app
/// products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken`
/// will be set and the caller should provide its value as a `token` request parameter to retrieve the next
/// page. This method should no longer be used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// Package name of the app.
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
///
/// Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app
/// products, the response may be paginated. In this case the response field `tokenPagination.nextPageToken`
/// will be set and the caller should provide its value as a `token` request parameter to retrieve the next
/// page. This method should no longer be used to retrieve subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Deprecated and ignored. The page size is determined by the server.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
/// Deprecated and ignored. Set the `token` parameter to retrieve the next page.
[Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Pagination token. If empty, list starts at the first product.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter
{
Name = "startIndex",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Patches an in-app product (a managed product or a subscription). This method should no longer be used to
/// update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// The body of the request.
/// Package name of the app.
/// Unique identifier for the in-app product.
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku)
{
return new PatchRequest(this.service, body, packageName, sku);
}
///
/// Patches an in-app product (a managed product or a subscription). This method should no longer be used to
/// update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) : base(service)
{
PackageName = packageName;
Sku = sku;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for the in-app product.
[Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Sku { get; private set; }
///
/// If true the prices for all regions targeted by the parent app that don't have a price specified for this
/// in-app product will be auto converted to the target currency based on the default price. Defaults to
/// false.
///
[Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AutoConvertMissingPrices { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in rare
/// cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter
{
Name = "sku",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter
{
Name = "autoConvertMissingPrices",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates an in-app product (a managed product or a subscription). This method should no longer be used to
/// update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
/// The body of the request.
/// Package name of the app.
/// Unique identifier for the in-app product.
public virtual UpdateRequest Update(Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku)
{
return new UpdateRequest(this.service, body, packageName, sku);
}
///
/// Updates an in-app product (a managed product or a subscription). This method should no longer be used to
/// update subscriptions. See [this
/// article](https://android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-june-2023.html)
/// for more information.
///
public class UpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.InAppProduct body, string packageName, string sku) : base(service)
{
PackageName = packageName;
Sku = sku;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for the in-app product.
[Google.Apis.Util.RequestParameterAttribute("sku", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Sku { get; private set; }
///
/// If set to true, and the in-app product with the given package_name and sku doesn't exist, the in-app
/// product will be created.
///
[Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AllowMissing { get; set; }
///
/// If true the prices for all regions targeted by the parent app that don't have a price specified for this
/// in-app product will be auto converted to the target currency based on the default price. Defaults to
/// false.
///
[Google.Apis.Util.RequestParameterAttribute("autoConvertMissingPrices", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AutoConvertMissingPrices { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in rare
/// cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.InAppProduct Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/inappproducts/{sku}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sku", new Google.Apis.Discovery.Parameter
{
Name = "sku",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter
{
Name = "allowMissing",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("autoConvertMissingPrices", new Google.Apis.Discovery.Parameter
{
Name = "autoConvertMissingPrices",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "internalappsharingartifacts" collection of methods.
public class InternalappsharingartifactsResource
{
private const string Resource = "internalappsharingartifacts";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public InternalappsharingartifactsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase
/// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See
/// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors)
/// for an example in java.
///
/// Package name of the app.
public virtual UploadapkRequest Uploadapk(string packageName)
{
return new UploadapkRequest(this.service, packageName);
}
///
/// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase
/// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See
/// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors)
/// for an example in java.
///
public class UploadapkRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Uploadapk request.
public UploadapkRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets the method name.
public override string MethodName => "uploadapk";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk";
/// Initializes Uploadapk parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase
/// the timeout of the http request before calling this endpoint (a timeout of 2 minutes is recommended). See
/// [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors)
/// for an example in java.
///
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before reading
/// commences. If is not seekable, then it will be read from its current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadapkMediaUpload Uploadapk(string packageName, System.IO.Stream stream, string contentType)
{
return new UploadapkMediaUpload(service, packageName, stream, contentType);
}
/// Uploadapk media upload which supports resumable upload.
public class UploadapkMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
/// to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Constructs a new Uploadapk media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
public UploadapkMediaUpload(Google.Apis.Services.IClientService service, string packageName, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"), "POST", stream, contentType)
{
PackageName = packageName;
}
}
///
/// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example
/// in java.
///
/// Package name of the app.
public virtual UploadbundleRequest Uploadbundle(string packageName)
{
return new UploadbundleRequest(this.service, packageName);
}
///
/// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example
/// in java.
///
public class UploadbundleRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Uploadbundle request.
public UploadbundleRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets the method name.
public override string MethodName => "uploadbundle";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle";
/// Initializes Uploadbundle parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please
/// increase the timeout of the http request before calling this endpoint (a timeout of 2 minutes is
/// recommended). See [Timeouts and
/// Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example
/// in java.
///
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before reading
/// commences. If is not seekable, then it will be read from its current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Package name of the app.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadbundleMediaUpload Uploadbundle(string packageName, System.IO.Stream stream, string contentType)
{
return new UploadbundleMediaUpload(service, packageName, stream, contentType);
}
/// Uploadbundle media upload which supports resumable upload.
public class UploadbundleMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// V1 error format.
[Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Xgafv { get; set; }
/// V1 error format.
public enum XgafvEnum
{
/// v1 error format
[Google.Apis.Util.StringValueAttribute("1")]
Value1 = 0,
/// v2 error format
[Google.Apis.Util.StringValueAttribute("2")]
Value2 = 1,
}
/// OAuth access token.
[Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string AccessToken { get; set; }
/// Data format for response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
/// Media download with context-dependent Content-Type
[Google.Apis.Util.StringValueAttribute("media")]
Media = 1,
/// Responses with Content-Type of application/x-protobuf
[Google.Apis.Util.StringValueAttribute("proto")]
Proto = 2,
}
/// JSONP
[Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Callback { get; set; }
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned
/// to a user, but should not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Legacy upload protocol for media (e.g. "media", "multipart").
[Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadType { get; set; }
/// Upload protocol for media (e.g. "raw", "multipart").
[Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UploadProtocol { get; set; }
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Constructs a new Uploadbundle media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
public UploadbundleMediaUpload(Google.Apis.Services.IClientService service, string packageName, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"), "POST", stream, contentType)
{
PackageName = packageName;
}
}
}
/// The "monetization" collection of methods.
public class MonetizationResource
{
private const string Resource = "monetization";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public MonetizationResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Onetimeproducts = new OnetimeproductsResource(service);
Subscriptions = new SubscriptionsResource(service);
}
/// Gets the Onetimeproducts resource.
public virtual OnetimeproductsResource Onetimeproducts { get; }
/// The "onetimeproducts" collection of methods.
public class OnetimeproductsResource
{
private const string Resource = "onetimeproducts";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OnetimeproductsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
PurchaseOptions = new PurchaseOptionsResource(service);
}
/// Gets the PurchaseOptions resource.
public virtual PurchaseOptionsResource PurchaseOptions { get; }
/// The "purchaseOptions" collection of methods.
public class PurchaseOptionsResource
{
private const string Resource = "purchaseOptions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public PurchaseOptionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Offers = new OffersResource(service);
}
/// Gets the Offers resource.
public virtual OffersResource Offers { get; }
/// The "offers" collection of methods.
public class OffersResource
{
private const string Resource = "offers";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OffersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Activates a one-time product offer.
/// The body of the request.
///
/// Required. The parent app (package name) of the offer to activate.
///
///
/// Required. The parent one-time product (ID) of the offer to activate.
///
///
/// Required. The parent purchase option (ID) of the offer to activate.
///
/// Required. The offer ID of the offer to activate.
public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
{
return new ActivateRequest(this.service, body, packageName, productId, purchaseOptionId, offerId);
}
/// Activates a one-time product offer.
public class ActivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Activate request.
public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
OfferId = offerId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent one-time product (ID) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent purchase option (ID) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Required. The offer ID of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ActivateOneTimeProductOfferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "activate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:activate";
/// Initializes Activate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deletes one or more one-time product offers.
/// The body of the request.
///
/// Required. The parent app (package name) of the offers to delete. Must be equal to the
/// package_name field on all the OneTimeProductOffer resources.
///
///
/// Required. The product ID of the parent one-time product, if all offers to delete belong to the
/// same product. If this request spans multiple one-time products, set this field to "-".
///
///
/// Required. The parent purchase option (ID) for which the offers should be deleted. May be
/// specified as '-' to update offers from multiple purchase options.
///
public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
{
return new BatchDeleteRequest(this.service, body, packageName, productId, purchaseOptionId);
}
/// Deletes one or more one-time product offers.
public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchDelete request.
public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the offers to delete. Must be equal to the
/// package_name field on all the OneTimeProductOffer resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all offers to delete belong to
/// the same product. If this request spans multiple one-time products, set this field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent purchase option (ID) for which the offers should be deleted. May be
/// specified as '-' to update offers from multiple purchase options.
///
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductOffersRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchDelete";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchDelete";
/// Initializes BatchDelete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads one or more one-time product offers.
/// The body of the request.
///
/// Required. The parent app (package name) of the updated offers. Must be equal to the package_name
/// field on all the updated OneTimeProductOffer resources.
///
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same product. If this request spans multiple one-time products, set this field to "-".
///
///
/// Required. The parent purchase option (ID) for which the offers should be updated. May be
/// specified as '-' to update offers from multiple purchase options.
///
public virtual BatchGetRequest BatchGet(Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
{
return new BatchGetRequest(this.service, body, packageName, productId, purchaseOptionId);
}
/// Reads one or more one-time product offers.
public class BatchGetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchGet request.
public BatchGetRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the updated offers. Must be equal to the
/// package_name field on all the updated OneTimeProductOffer resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same product. If this request spans multiple one-time products, set this field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent purchase option (ID) for which the offers should be updated. May be
/// specified as '-' to update offers from multiple purchase options.
///
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchGetOneTimeProductOffersRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchGet";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchGet";
/// Initializes BatchGet parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates or updates one or more one-time product offers.
/// The body of the request.
///
/// Required. The parent app (package name) of the updated offers. Must be equal to the package_name
/// field on all the updated OneTimeProductOffer resources.
///
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same product. If this request spans multiple one-time products, set this field to "-".
///
///
/// Required. The parent purchase option (ID) for which the offers should be updated. May be
/// specified as '-' to update offers from multiple purchase options.
///
public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId)
{
return new BatchUpdateRequest(this.service, body, packageName, productId, purchaseOptionId);
}
/// Creates or updates one or more one-time product offers.
public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdate request.
public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest body, string packageName, string productId, string purchaseOptionId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the updated offers. Must be equal to the
/// package_name field on all the updated OneTimeProductOffer resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same product. If this request spans multiple one-time products, set this field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent purchase option (ID) for which the offers should be updated. May be
/// specified as '-' to update offers from multiple purchase options.
///
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOffersRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdate";
/// Initializes BatchUpdate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates a batch of one-time product offer states.
/// The body of the request.
///
/// Required. The parent app (package name) of the updated one-time product offers.
///
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same one-time product. If this batch update spans multiple one-time products, set this field to
/// "-".
///
///
/// Required. The purchase option ID of the parent purchase option, if all updated offers belong to
/// the same purchase option. If this batch update spans multiple purchase options, set this field
/// to "-".
///
public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest body, string packageName, string productId, string purchaseOptionId)
{
return new BatchUpdateStatesRequest(this.service, body, packageName, productId, purchaseOptionId);
}
/// Updates a batch of one-time product offer states.
public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdateStates request.
public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest body, string packageName, string productId, string purchaseOptionId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the updated one-time product offers.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all updated offers belong to the
/// same one-time product. If this batch update spans multiple one-time products, set this field
/// to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The purchase option ID of the parent purchase option, if all updated offers belong
/// to the same purchase option. If this batch update spans multiple purchase options, set this
/// field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductOfferStatesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdateStates";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers:batchUpdateStates";
/// Initializes BatchUpdateStates parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Cancels a one-time product offer.
/// The body of the request.
///
/// Required. The parent app (package name) of the offer to cancel.
///
///
/// Required. The parent one-time product (ID) of the offer to cancel.
///
///
/// Required. The parent purchase option (ID) of the offer to cancel.
///
/// Required. The offer ID of the offer to cancel.
public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
{
return new CancelRequest(this.service, body, packageName, productId, purchaseOptionId, offerId);
}
/// Cancels a one-time product offer.
public class CancelRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Cancel request.
public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
OfferId = offerId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the offer to cancel.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent one-time product (ID) of the offer to cancel.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent purchase option (ID) of the offer to cancel.
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Required. The offer ID of the offer to cancel.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.CancelOneTimeProductOfferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "cancel";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:cancel";
/// Initializes Cancel parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deactivates a one-time product offer.
/// The body of the request.
///
/// Required. The parent app (package name) of the offer to deactivate.
///
///
/// Required. The parent one-time product (ID) of the offer to deactivate.
///
///
/// Required. The parent purchase option (ID) of the offer to deactivate.
///
/// Required. The offer ID of the offer to deactivate.
public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId)
{
return new DeactivateRequest(this.service, body, packageName, productId, purchaseOptionId, offerId);
}
/// Deactivates a one-time product offer.
public class DeactivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deactivate request.
public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest body, string packageName, string productId, string purchaseOptionId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
OfferId = offerId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent one-time product (ID) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent purchase option (ID) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
/// Required. The offer ID of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.DeactivateOneTimeProductOfferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "deactivate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers/{offerId}:deactivate";
/// Initializes Deactivate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all offers under a given app, product, or purchase option.
///
/// Required. The parent app (package name) for which the offers should be read.
///
///
/// Required. The parent one-time product (ID) for which the offers should be read. May be specified
/// as '-' to read all offers under an app.
///
///
/// Required. The parent purchase option (ID) for which the offers should be read. May be specified
/// as '-' to read all offers under a one-time product or an app. Must be specified as '-' if
/// product_id is specified as '-'.
///
public virtual ListRequest List(string packageName, string productId, string purchaseOptionId)
{
return new ListRequest(this.service, packageName, productId, purchaseOptionId);
}
/// Lists all offers under a given app, product, or purchase option.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string purchaseOptionId) : base(service)
{
PackageName = packageName;
ProductId = productId;
PurchaseOptionId = purchaseOptionId;
InitParameters();
}
///
/// Required. The parent app (package name) for which the offers should be read.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The parent one-time product (ID) for which the offers should be read. May be
/// specified as '-' to read all offers under an app.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent purchase option (ID) for which the offers should be read. May be
/// specified as '-' to read all offers under a one-time product or an app. Must be specified as
/// '-' if product_id is specified as '-'.
///
[Google.Apis.Util.RequestParameterAttribute("purchaseOptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PurchaseOptionId { get; private set; }
///
/// Optional. The maximum number of offers to return. The service may return fewer than this
/// value. If unspecified, at most 50 offers will be returned. The maximum value is 1000; values
/// above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListOneTimeProductsOffers` call. Provide
/// this to retrieve the subsequent page. When paginating, product_id, package_name and
/// purchase_option_id provided to `ListOneTimeProductsOffersRequest` must match the call that
/// provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions/{purchaseOptionId}/offers";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("purchaseOptionId", new Google.Apis.Discovery.Parameter
{
Name = "purchaseOptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
///
/// Deletes purchase options across one or multiple one-time products. By default this operation will
/// fail if there are any existing offers under the deleted purchase options. Use the force parameter to
/// override the default behavior.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the purchase options to delete.
///
///
/// Required. The product ID of the parent one-time product, if all purchase options to delete belong to
/// the same one-time product. If this batch delete spans multiple one-time products, set this field to
/// "-".
///
public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest body, string packageName, string productId)
{
return new BatchDeleteRequest(this.service, body, packageName, productId);
}
///
/// Deletes purchase options across one or multiple one-time products. By default this operation will
/// fail if there are any existing offers under the deleted purchase options. Use the force parameter to
/// override the default behavior.
///
public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchDelete request.
public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the purchase options to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all purchase options to delete
/// belong to the same one-time product. If this batch delete spans multiple one-time products, set
/// this field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchDeletePurchaseOptionsRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchDelete";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchDelete";
/// Initializes BatchDelete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Activates or deactivates purchase options across one or multiple one-time products.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the updated purchase options.
///
///
/// Required. The product ID of the parent one-time product, if all updated purchase options belong to
/// the same one-time product. If this batch update spans multiple one-time products, set this field to
/// "-".
///
public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest body, string packageName, string productId)
{
return new BatchUpdateStatesRequest(this.service, body, packageName, productId);
}
///
/// Activates or deactivates purchase options across one or multiple one-time products.
///
public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdateStates request.
public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the updated purchase options.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent one-time product, if all updated purchase options belong
/// to the same one-time product. If this batch update spans multiple one-time products, set this
/// field to "-".
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdatePurchaseOptionStatesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdateStates";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}/purchaseOptions:batchUpdateStates";
/// Initializes BatchUpdateStates parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Deletes one or more one-time products.
/// The body of the request.
///
/// Required. The parent app (package name) for which the one-time products should be deleted. Must be equal
/// to the package_name field on all the OneTimeProduct resources.
///
public virtual BatchDeleteRequest BatchDelete(Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest body, string packageName)
{
return new BatchDeleteRequest(this.service, body, packageName);
}
/// Deletes one or more one-time products.
public class BatchDeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchDelete request.
public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the one-time products should be deleted. Must be
/// equal to the package_name field on all the OneTimeProduct resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchDeleteOneTimeProductsRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchDelete";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchDelete";
/// Initializes BatchDelete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads one or more one-time products.
///
/// Required. The parent app (package name) for which the products should be retrieved. Must be equal to the
/// package_name field on all requests.
///
public virtual BatchGetRequest BatchGet(string packageName)
{
return new BatchGetRequest(this.service, packageName);
}
/// Reads one or more one-time products.
public class BatchGetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchGet request.
public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// Required. The parent app (package name) for which the products should be retrieved. Must be equal to
/// the package_name field on all requests.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. A list of up to 100 product IDs to retrieve. All IDs must be different.
[Google.Apis.Util.RequestParameterAttribute("productIds", Google.Apis.Util.RequestParameterType.Query)]
public virtual Google.Apis.Util.Repeatable ProductIds { get; set; }
/// Gets the method name.
public override string MethodName => "batchGet";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchGet";
/// Initializes BatchGet parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productIds", new Google.Apis.Discovery.Parameter
{
Name = "productIds",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates or updates one or more one-time products.
/// The body of the request.
///
/// Required. The parent app (package name) for which the one-time products should be updated. Must be equal
/// to the package_name field on all the OneTimeProduct resources.
///
public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest body, string packageName)
{
return new BatchUpdateRequest(this.service, body, packageName);
}
/// Creates or updates one or more one-time products.
public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdate request.
public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the one-time products should be updated. Must be
/// equal to the package_name field on all the OneTimeProduct resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateOneTimeProductsRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts:batchUpdate";
/// Initializes BatchUpdate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Deletes a one-time product.
///
/// Required. The parent app (package name) of the one-time product to delete.
///
/// Required. The one-time product ID of the one-time product to delete.
public virtual DeleteRequest Delete(string packageName, string productId)
{
return new DeleteRequest(this.service, packageName, productId);
}
/// Deletes a one-time product.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
InitParameters();
}
/// Required. The parent app (package name) of the one-time product to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The one-time product ID of the one-time product to delete.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in
/// rare cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads a single one-time product.
/// Required. The parent app (package name) of the product to retrieve.
/// Required. The product ID of the product to retrieve.
public virtual GetRequest Get(string packageName, string productId)
{
return new GetRequest(this.service, packageName, productId);
}
/// Reads a single one-time product.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
InitParameters();
}
/// Required. The parent app (package name) of the product to retrieve.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The product ID of the product to retrieve.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts/{productId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all one-time products under a given app.
///
/// Required. The parent app (package name) for which the one-time product should be read.
///
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
/// Lists all one-time products under a given app.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// Required. The parent app (package name) for which the one-time product should be read.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Optional. The maximum number of one-time product to return. The service may return fewer than this
/// value. If unspecified, at most 50 one-time products will be returned. The maximum value is 1000;
/// values above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// Optional. A page token, received from a previous `ListOneTimeProducts` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListOneTimeProducts` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/oneTimeProducts";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates or updates a one-time product.
/// The body of the request.
/// Required. Immutable. Package name of the parent app.
///
/// 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 (.).
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct body, string packageName, string productId)
{
return new PatchRequest(this.service, body, packageName, productId);
}
/// Creates or updates a one-time product.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Required. Immutable. Package name of the parent app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// 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 (.).
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// 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.
///
[Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AllowMissing { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product upsert. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product upsert. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in
/// rare cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
///
/// 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](https://support.google.com/googleplay/android-developer/answer/10532353). 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.
///
[Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
/// Required. The list of fields to be updated.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.OneTimeProduct Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/onetimeproducts/{productId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter
{
Name = "allowMissing",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter
{
Name = "regionsVersion.version",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Subscriptions resource.
public virtual SubscriptionsResource Subscriptions { get; }
/// The "subscriptions" collection of methods.
public class SubscriptionsResource
{
private const string Resource = "subscriptions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public SubscriptionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
BasePlans = new BasePlansResource(service);
}
/// Gets the BasePlans resource.
public virtual BasePlansResource BasePlans { get; }
/// The "basePlans" collection of methods.
public class BasePlansResource
{
private const string Resource = "basePlans";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public BasePlansResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Offers = new OffersResource(service);
}
/// Gets the Offers resource.
public virtual OffersResource Offers { get; }
/// The "offers" collection of methods.
public class OffersResource
{
private const string Resource = "offers";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OffersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Activates a subscription offer. Once activated, subscription offers will be available to new
/// subscribers.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the offer to activate.
///
/// Required. The parent subscription (ID) of the offer to activate.
/// Required. The parent base plan (ID) of the offer to activate.
/// Required. The unique offer ID of the offer to activate.
public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId)
{
return new ActivateRequest(this.service, body, packageName, productId, basePlanId, offerId);
}
///
/// Activates a subscription offer. Once activated, subscription offers will be available to new
/// subscribers.
///
public class ActivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Activate request.
public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
OfferId = offerId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent base plan (ID) of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Required. The unique offer ID of the offer to activate.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ActivateSubscriptionOfferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "activate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate";
/// Initializes Activate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads one or more subscription offers.
/// The body of the request.
///
/// Required. The parent app (package name) for which the subscriptions should be created or
/// updated. Must be equal to the package_name field on all the requests.
///
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the same
/// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set.
///
///
/// Required. The parent base plan (ID) for which the offers should be read. May be specified as '-'
/// to read offers from multiple base plans.
///
public virtual BatchGetRequest BatchGet(Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest body, string packageName, string productId, string basePlanId)
{
return new BatchGetRequest(this.service, body, packageName, productId, basePlanId);
}
/// Reads one or more subscription offers.
public class BatchGetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchGet request.
public BatchGetRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be created or
/// updated. Must be equal to the package_name field on all the requests.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the
/// same subscription. If this request spans multiple subscriptions, set this field to "-". Must
/// be set.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent base plan (ID) for which the offers should be read. May be specified as
/// '-' to read offers from multiple base plans.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchGetSubscriptionOffersRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchGet";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet";
/// Initializes BatchGet parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to
/// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the updated subscription offers. Must be equal to the
/// package_name field on all the updated SubscriptionOffer resources.
///
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the same
/// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set.
///
///
/// Required. The parent base plan (ID) for which the offers should be updated. May be specified as
/// '-' to update offers from multiple base plans.
///
public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest body, string packageName, string productId, string basePlanId)
{
return new BatchUpdateRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to
/// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdate request.
public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the updated subscription offers. Must be equal to
/// the package_name field on all the updated SubscriptionOffer resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the
/// same subscription. If this request spans multiple subscriptions, set this field to "-". Must
/// be set.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent base plan (ID) for which the offers should be updated. May be specified
/// as '-' to update offers from multiple base plans.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOffersRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate";
/// Initializes BatchUpdate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests
/// to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the updated subscription offers. Must be equal to the
/// package_name field on all the updated SubscriptionOffer resources.
///
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the same
/// subscription. If this request spans multiple subscriptions, set this field to "-". Must be set.
///
///
/// Required. The parent base plan (ID) for which the offers should be updated. May be specified as
/// '-' to update offers from multiple base plans.
///
public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest body, string packageName, string productId, string basePlanId)
{
return new BatchUpdateStatesRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests
/// to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdateStates request.
public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) of the updated subscription offers. Must be equal to
/// the package_name field on all the updated SubscriptionOffer resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the
/// same subscription. If this request spans multiple subscriptions, set this field to "-". Must
/// be set.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent base plan (ID) for which the offers should be updated. May be specified
/// as '-' to update offers from multiple base plans.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionOfferStatesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdateStates";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates";
/// Initializes BatchUpdateStates parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Creates a new subscription offer. Only auto-renewing base plans can have subscription offers.
/// The offer state will be DRAFT until it is activated.
///
/// The body of the request.
///
/// Required. The parent app (package name) for which the offer should be created. Must be equal to
/// the package_name field on the Subscription resource.
///
///
/// Required. The parent subscription (ID) for which the offer should be created. Must be equal to
/// the product_id field on the SubscriptionOffer resource.
///
///
/// Required. The parent base plan (ID) for which the offer should be created. Must be equal to the
/// base_plan_id field on the SubscriptionOffer resource.
///
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId)
{
return new CreateRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Creates a new subscription offer. Only auto-renewing base plans can have subscription offers.
/// The offer state will be DRAFT until it is activated.
///
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the offer should be created. Must be equal
/// to the package_name field on the Subscription resource.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The parent subscription (ID) for which the offer should be created. Must be equal
/// to the product_id field on the SubscriptionOffer resource.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent base plan (ID) for which the offer should be created. Must be equal to
/// the base_plan_id field on the SubscriptionOffer resource.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
///
/// Required. The ID to use for the offer. For the requirements on this format, see the
/// documentation of the offer_id field on the SubscriptionOffer resource.
///
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OfferId { get; set; }
///
/// 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](https://support.google.com/googleplay/android-developer/answer/10532353). 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.
///
[Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter
{
Name = "regionsVersion.version",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their
/// subscription, but the offer will become unavailable to new subscribers.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the offer to deactivate.
///
///
/// Required. The parent subscription (ID) of the offer to deactivate.
///
/// Required. The parent base plan (ID) of the offer to deactivate.
/// Required. The unique offer ID of the offer to deactivate.
public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId)
{
return new DeactivateRequest(this.service, body, packageName, productId, basePlanId, offerId);
}
///
/// Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their
/// subscription, but the offer will become unavailable to new subscribers.
///
public class DeactivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deactivate request.
public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest body, string packageName, string productId, string basePlanId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
OfferId = offerId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent base plan (ID) of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Required. The unique offer ID of the offer to deactivate.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.DeactivateSubscriptionOfferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "deactivate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate";
/// Initializes Deactivate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.
///
///
/// Required. The parent app (package name) of the offer to delete.
///
/// Required. The parent subscription (ID) of the offer to delete.
/// Required. The parent base plan (ID) of the offer to delete.
/// Required. The unique offer ID of the offer to delete.
public virtual DeleteRequest Delete(string packageName, string productId, string basePlanId, string offerId)
{
return new DeleteRequest(this.service, packageName, productId, basePlanId, offerId);
}
///
/// Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.
///
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
OfferId = offerId;
InitParameters();
}
/// Required. The parent app (package name) of the offer to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the offer to delete.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent base plan (ID) of the offer to delete.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Required. The unique offer ID of the offer to delete.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads a single offer
/// Required. The parent app (package name) of the offer to get.
/// Required. The parent subscription (ID) of the offer to get.
/// Required. The parent base plan (ID) of the offer to get.
/// Required. The unique offer ID of the offer to get.
public virtual GetRequest Get(string packageName, string productId, string basePlanId, string offerId)
{
return new GetRequest(this.service, packageName, productId, basePlanId, offerId);
}
/// Reads a single offer
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
OfferId = offerId;
InitParameters();
}
/// Required. The parent app (package name) of the offer to get.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the offer to get.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The parent base plan (ID) of the offer to get.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Required. The unique offer ID of the offer to get.
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all offers under a given subscription.
///
/// Required. The parent app (package name) for which the subscriptions should be read.
///
///
/// Required. The parent subscription (ID) for which the offers should be read. May be specified as
/// '-' to read all offers under an app.
///
///
/// Required. The parent base plan (ID) for which the offers should be read. May be specified as '-'
/// to read all offers under a subscription or an app. Must be specified as '-' if product_id is
/// specified as '-'.
///
public virtual ListRequest List(string packageName, string productId, string basePlanId)
{
return new ListRequest(this.service, packageName, productId, basePlanId);
}
/// Lists all offers under a given subscription.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be read.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The parent subscription (ID) for which the offers should be read. May be specified
/// as '-' to read all offers under an app.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. The parent base plan (ID) for which the offers should be read. May be specified as
/// '-' to read all offers under a subscription or an app. Must be specified as '-' if
/// product_id is specified as '-'.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
///
/// The maximum number of subscriptions to return. The service may return fewer than this value.
/// If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values
/// above 1000 will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to
/// retrieve the subsequent page. When paginating, all other parameters provided to
/// `ListSubscriptionOffers` must match the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing subscription offer.
/// The body of the request.
///
/// Required. Immutable. The package name of the app the parent subscription belongs to.
///
///
/// Required. Immutable. The ID of the parent subscription this offer belongs to.
///
///
/// Required. Immutable. The ID of the base plan to which this offer is an extension.
///
///
/// Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId, string offerId)
{
return new PatchRequest(this.service, body, packageName, productId, basePlanId, offerId);
}
/// Updates an existing subscription offer.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer body, string packageName, string productId, string basePlanId, string offerId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
OfferId = offerId;
Body = body;
InitParameters();
}
///
/// Required. Immutable. The package name of the app the parent subscription belongs to.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. Immutable. The ID of the parent subscription this offer belongs to.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Required. Immutable. The ID of the base plan to which this offer is an extension.
///
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
///
/// Required. Immutable. Unique ID of this subscription offer. Must be unique within the base
/// plan.
///
[Google.Apis.Util.RequestParameterAttribute("offerId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OfferId { get; private set; }
///
/// Optional. If set to true, and the subscription offer with the given package_name,
/// product_id, base_plan_id and offer_id doesn't exist, an offer will be created. If a new
/// offer is created, update_mask is ignored.
///
[Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AllowMissing { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few
/// hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to
/// 720,000 updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
///
/// 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](https://support.google.com/googleplay/android-developer/answer/10532353). 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.
///
[Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
/// Required. The list of fields to be updated.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.SubscriptionOffer Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("offerId", new Google.Apis.Discovery.Parameter
{
Name = "offerId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter
{
Name = "allowMissing",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter
{
Name = "regionsVersion.version",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
///
/// Activates a base plan. Once activated, base plans will be available to new subscribers.
///
/// The body of the request.
///
/// Required. The parent app (package name) of the base plan to activate.
///
/// Required. The parent subscription (ID) of the base plan to activate.
/// Required. The unique base plan ID of the base plan to activate.
public virtual ActivateRequest Activate(Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest body, string packageName, string productId, string basePlanId)
{
return new ActivateRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Activates a base plan. Once activated, base plans will be available to new subscribers.
///
public class ActivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Activate request.
public ActivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the base plan to activate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the base plan to activate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The unique base plan ID of the base plan to activate.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ActivateBasePlanRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "activate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate";
/// Initializes Activate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested
/// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
/// The body of the request.
///
/// Required. The parent app (package name) for which the subscriptions should be created or updated.
/// Must be equal to the package_name field on all the Subscription resources.
///
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the same
/// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set.
///
public virtual BatchMigratePricesRequest BatchMigratePrices(Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest body, string packageName, string productId)
{
return new BatchMigratePricesRequest(this.service, body, packageName, productId);
}
///
/// Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance field on nested
/// requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
public class BatchMigratePricesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchMigratePrices request.
public BatchMigratePricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be created or
/// updated. Must be equal to the package_name field on all the Subscription resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent subscription, if all updated offers belong to the same
/// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be
/// set.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchMigrateBasePlanPricesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchMigratePrices";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices";
/// Initializes BatchMigratePrices parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance
/// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum
/// update throughput.
///
/// The body of the request.
/// Required. The parent app (package name) of the updated base plans.
///
/// Required. The product ID of the parent subscription, if all updated base plans belong to the same
/// subscription. If this batch update spans multiple subscriptions, set this field to "-". Must be set.
///
public virtual BatchUpdateStatesRequest BatchUpdateStates(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest body, string packageName, string productId)
{
return new BatchUpdateStatesRequest(this.service, body, packageName, productId);
}
///
/// Activates or deactivates base plans across one or multiple subscriptions. Set the latencyTolerance
/// field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum
/// update throughput.
///
public class BatchUpdateStatesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdateStates request.
public BatchUpdateStatesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the updated base plans.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The product ID of the parent subscription, if all updated base plans belong to the
/// same subscription. If this batch update spans multiple subscriptions, set this field to "-".
/// Must be set.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateBasePlanStatesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdateStates";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates";
/// Initializes BatchUpdateStates parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers,
/// but existing subscribers will maintain their subscription
///
/// The body of the request.
///
/// Required. The parent app (package name) of the base plan to deactivate.
///
///
/// Required. The parent subscription (ID) of the base plan to deactivate.
///
/// Required. The unique base plan ID of the base plan to deactivate.
public virtual DeactivateRequest Deactivate(Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest body, string packageName, string productId, string basePlanId)
{
return new DeactivateRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers,
/// but existing subscribers will maintain their subscription
///
public class DeactivateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Deactivate request.
public DeactivateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the base plan to deactivate.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the base plan to deactivate.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The unique base plan ID of the base plan to deactivate.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.DeactivateBasePlanRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "deactivate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate";
/// Initializes Deactivate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes a base plan. Can only be done for draft base plans. This action is irreversible.
///
///
/// Required. The parent app (package name) of the base plan to delete.
///
/// Required. The parent subscription (ID) of the base plan to delete.
/// Required. The unique offer ID of the base plan to delete.
public virtual DeleteRequest Delete(string packageName, string productId, string basePlanId)
{
return new DeleteRequest(this.service, packageName, productId, basePlanId);
}
///
/// Deletes a base plan. Can only be done for draft base plans. This action is irreversible.
///
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
InitParameters();
}
/// Required. The parent app (package name) of the base plan to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The parent subscription (ID) of the base plan to delete.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The unique offer ID of the base plan to delete.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in
/// Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are
/// supported.
///
/// The body of the request.
///
/// Required. Package name of the parent app. Must be equal to the package_name field on the
/// Subscription resource.
///
///
/// Required. The ID of the subscription to update. Must be equal to the product_id field on the
/// Subscription resource.
///
///
/// Required. The unique base plan ID of the base plan to update prices on.
///
public virtual MigratePricesRequest MigratePrices(Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest body, string packageName, string productId, string basePlanId)
{
return new MigratePricesRequest(this.service, body, packageName, productId, basePlanId);
}
///
/// Migrates subscribers from one or more legacy price cohorts to the current price. Requests result in
/// Google Play notifying affected subscribers. Only up to 250 simultaneous legacy price cohorts are
/// supported.
///
public class MigratePricesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new MigratePrices request.
public MigratePricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest body, string packageName, string productId, string basePlanId) : base(service)
{
PackageName = packageName;
ProductId = productId;
BasePlanId = basePlanId;
Body = body;
InitParameters();
}
///
/// Required. Package name of the parent app. Must be equal to the package_name field on the
/// Subscription resource.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The ID of the subscription to update. Must be equal to the product_id field on the
/// Subscription resource.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Required. The unique base plan ID of the base plan to update prices on.
[Google.Apis.Util.RequestParameterAttribute("basePlanId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string BasePlanId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.MigrateBasePlanPricesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "migratePrices";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices";
/// Initializes MigratePrices parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("basePlanId", new Google.Apis.Discovery.Parameter
{
Name = "basePlanId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Deprecated: subscription archiving is not supported.
/// The body of the request.
///
/// Required. The parent app (package name) of the app of the subscription to delete.
///
/// Required. The unique product ID of the subscription to delete.
public virtual ArchiveRequest Archive(Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest body, string packageName, string productId)
{
return new ArchiveRequest(this.service, body, packageName, productId);
}
/// Deprecated: subscription archiving is not supported.
public class ArchiveRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Archive request.
public ArchiveRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Required. The parent app (package name) of the app of the subscription to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The unique product ID of the subscription to delete.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ArchiveSubscriptionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "archive";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive";
/// Initializes Archive parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads one or more subscriptions.
///
/// Required. The parent app (package name) for which the subscriptions should be retrieved. Must be equal
/// to the package_name field on all the requests.
///
public virtual BatchGetRequest BatchGet(string packageName)
{
return new BatchGetRequest(this.service, packageName);
}
/// Reads one or more subscriptions.
public class BatchGetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchGet request.
public BatchGetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be retrieved. Must be
/// equal to the package_name field on all the requests.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. A list of up to 100 subscription product IDs to retrieve. All the IDs must be different.
///
[Google.Apis.Util.RequestParameterAttribute("productIds", Google.Apis.Util.RequestParameterType.Query)]
public virtual Google.Apis.Util.Repeatable ProductIds { get; set; }
/// Gets the method name.
public override string MethodName => "batchGet";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions:batchGet";
/// Initializes BatchGet parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productIds", new Google.Apis.Discovery.Parameter
{
Name = "productIds",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to
/// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
/// The body of the request.
///
/// Required. The parent app (package name) for which the subscriptions should be updated. Must be equal to
/// the package_name field on all the Subscription resources.
///
public virtual BatchUpdateRequest BatchUpdate(Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest body, string packageName)
{
return new BatchUpdateRequest(this.service, body, packageName);
}
///
/// Updates a batch of subscriptions. Set the latencyTolerance field on nested requests to
/// PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.
///
public class BatchUpdateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new BatchUpdate request.
public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be updated. Must be equal
/// to the package_name field on all the Subscription resources.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.BatchUpdateSubscriptionsRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "batchUpdate";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate";
/// Initializes BatchUpdate parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Creates a new subscription. Newly added base plans will remain in draft state until activated.
///
/// The body of the request.
///
/// 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.
///
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName)
{
return new CreateRequest(this.service, body, packageName);
}
///
/// Creates a new subscription. Newly added base plans will remain in draft state until activated.
///
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
///
/// 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.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// 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.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Query)]
public virtual string ProductId { get; set; }
///
/// 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](https://support.google.com/googleplay/android-developer/answer/10532353). 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.
///
[Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Subscription Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter
{
Name = "regionsVersion.version",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.
///
///
/// Required. The parent app (package name) of the app of the subscription to delete.
///
/// Required. The unique product ID of the subscription to delete.
public virtual DeleteRequest Delete(string packageName, string productId)
{
return new DeleteRequest(this.service, packageName, productId);
}
///
/// Deletes a subscription. A subscription can only be deleted if it has never had a base plan published.
///
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
InitParameters();
}
/// Required. The parent app (package name) of the app of the subscription to delete.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The unique product ID of the subscription to delete.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Reads a single subscription.
/// Required. The parent app (package name) of the subscription to get.
/// Required. The unique product ID of the subscription to get.
public virtual GetRequest Get(string packageName, string productId)
{
return new GetRequest(this.service, packageName, productId);
}
/// Reads a single subscription.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
InitParameters();
}
/// Required. The parent app (package name) of the subscription to get.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Required. The unique product ID of the subscription to get.
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all subscriptions under a given app.
///
/// Required. The parent app (package name) for which the subscriptions should be read.
///
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
/// Lists all subscriptions under a given app.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// Required. The parent app (package name) for which the subscriptions should be read.
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// The maximum number of subscriptions to return. The service may return fewer than this value. If
/// unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000
/// will be coerced to 1000.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// A page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the
/// subsequent page. When paginating, all other parameters provided to `ListSubscriptions` must match
/// the call that provided the page token.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Deprecated: subscription archiving is not supported.
[Google.Apis.Util.RequestParameterAttribute("showArchived", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable ShowArchived { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("showArchived", new Google.Apis.Discovery.Parameter
{
Name = "showArchived",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing subscription.
/// The body of the request.
/// Immutable. Package name of the parent app.
///
/// Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be composed
/// of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start with a
/// lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName, string productId)
{
return new PatchRequest(this.service, body, packageName, productId);
}
/// Updates an existing subscription.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Subscription body, string packageName, string productId) : base(service)
{
PackageName = packageName;
ProductId = productId;
Body = body;
InitParameters();
}
/// Immutable. Package name of the parent app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Immutable. Unique product ID of the product. Unique within the parent app. Product IDs must be
/// composed of lower-case letters (a-z), numbers (0-9), underscores (_) and dots (.). It must start
/// with a lower-case letter or number, and be between 1 and 40 (inclusive) characters in length.
///
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
///
/// Optional. If set to true, and the subscription with the given package_name and product_id doesn't
/// exist, the subscription will be created. If a new subscription is created, update_mask is ignored.
///
[Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable AllowMissing { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
[Google.Apis.Util.RequestParameterAttribute("latencyTolerance", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable LatencyTolerance { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to
/// latency-sensitive.
///
public enum LatencyToleranceEnum
{
/// Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED")]
PRODUCTUPDATELATENCYTOLERANCEUNSPECIFIED = 0,
///
/// The update will propagate to clients within several minutes on average and up to a few hours in
/// rare cases. Throughput is limited to 7,200 updates per app per hour.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE")]
PRODUCTUPDATELATENCYTOLERANCELATENCYSENSITIVE = 1,
///
/// The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000
/// updates per app per hour using batch modification methods.
///
[Google.Apis.Util.StringValueAttribute("PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT")]
PRODUCTUPDATELATENCYTOLERANCELATENCYTOLERANT = 2,
}
///
/// 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](https://support.google.com/googleplay/android-developer/answer/10532353). 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.
///
[Google.Apis.Util.RequestParameterAttribute("regionsVersion.version", Google.Apis.Util.RequestParameterType.Query)]
public virtual string RegionsVersionVersion { get; set; }
/// Required. The list of fields to be updated.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Subscription Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/subscriptions/{productId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter
{
Name = "allowMissing",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("latencyTolerance", new Google.Apis.Discovery.Parameter
{
Name = "latencyTolerance",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("regionsVersion.version", new Google.Apis.Discovery.Parameter
{
Name = "regionsVersion.version",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
///
/// Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on
/// the price in the request for a set of regions.
///
/// The body of the request.
/// Required. The app package name.
public virtual ConvertRegionPricesRequest ConvertRegionPrices(Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest body, string packageName)
{
return new ConvertRegionPricesRequest(this.service, body, packageName);
}
///
/// Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on
/// the price in the request for a set of regions.
///
public class ConvertRegionPricesRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new ConvertRegionPrices request.
public ConvertRegionPricesRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest body, string packageName) : base(service)
{
PackageName = packageName;
Body = body;
InitParameters();
}
/// Required. The app package name.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ConvertRegionPricesRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "convertRegionPrices";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices";
/// Initializes ConvertRegionPrices parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "orders" collection of methods.
public class OrdersResource
{
private const string Resource = "orders";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public OrdersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get order details for a list of orders.
///
/// Required. The package name of the application for which this subscription or in-app item was purchased (for
/// example, 'com.some.thing').
///
public virtual BatchgetRequest Batchget(string packageName)
{
return new BatchgetRequest(this.service, packageName);
}
/// Get order details for a list of orders.
public class BatchgetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Batchget request.
public BatchgetRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// Required. The package name of the application for which this subscription or in-app item was purchased
/// (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The list of order IDs to retrieve order details for. There must be between 1 and 1000
/// (inclusive) order IDs per request. If any order ID is not found or does not match the provided package,
/// the entire request will fail with an error. The order IDs must be distinct.
///
[Google.Apis.Util.RequestParameterAttribute("orderIds", Google.Apis.Util.RequestParameterType.Query)]
public virtual Google.Apis.Util.Repeatable OrderIds { get; set; }
/// Gets the method name.
public override string MethodName => "batchget";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders:batchGet";
/// Initializes Batchget parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("orderIds", new Google.Apis.Discovery.Parameter
{
Name = "orderIds",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Get order details for a single order.
///
/// Required. The package name of the application for which this subscription or in-app item was purchased (for
/// example, 'com.some.thing').
///
///
/// Required. The order ID provided to the user when the subscription or in-app order was purchased.
///
public virtual GetRequest Get(string packageName, string orderId)
{
return new GetRequest(this.service, packageName, orderId);
}
/// Get order details for a single order.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string orderId) : base(service)
{
PackageName = packageName;
OrderId = orderId;
InitParameters();
}
///
/// Required. The package name of the application for which this subscription or in-app item was purchased
/// (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The order ID provided to the user when the subscription or in-app order was purchased.
///
[Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OrderId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders/{orderId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("orderId", new Google.Apis.Discovery.Parameter
{
Name = "orderId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded.
///
///
/// The package name of the application for which this subscription or in-app item was purchased (for example,
/// 'com.some.thing').
///
///
/// The order ID provided to the user when the subscription or in-app order was purchased.
///
public virtual RefundRequest Refund(string packageName, string orderId)
{
return new RefundRequest(this.service, packageName, orderId);
}
///
/// Refunds a user's subscription or in-app purchase order. Orders older than 3 years cannot be refunded.
///
public class RefundRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Refund request.
public RefundRequest(Google.Apis.Services.IClientService service, string packageName, string orderId) : base(service)
{
PackageName = packageName;
OrderId = orderId;
InitParameters();
}
///
/// The package name of the application for which this subscription or in-app item was purchased (for
/// example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// The order ID provided to the user when the subscription or in-app order was purchased.
///
[Google.Apis.Util.RequestParameterAttribute("orderId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string OrderId { get; private set; }
///
/// Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be
/// terminated immediately. If the item is a recurring subscription, all future payments will also be
/// terminated. Consumed in-app items need to be handled by developer's app. (optional).
///
[Google.Apis.Util.RequestParameterAttribute("revoke", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Revoke { get; set; }
/// Gets the method name.
public override string MethodName => "refund";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund";
/// Initializes Refund parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("orderId", new Google.Apis.Discovery.Parameter
{
Name = "orderId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("revoke", new Google.Apis.Discovery.Parameter
{
Name = "revoke",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "purchases" collection of methods.
public class PurchasesResource
{
private const string Resource = "purchases";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public PurchasesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Products = new ProductsResource(service);
Productsv2 = new Productsv2Resource(service);
Subscriptions = new SubscriptionsResource(service);
Subscriptionsv2 = new Subscriptionsv2Resource(service);
Voidedpurchases = new VoidedpurchasesResource(service);
}
/// Gets the Products resource.
public virtual ProductsResource Products { get; }
/// The "products" collection of methods.
public class ProductsResource
{
private const string Resource = "products";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProductsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Acknowledges a purchase of an inapp item.
/// The body of the request.
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
///
/// The token provided to the user's device when the inapp product was purchased.
///
public virtual AcknowledgeRequest Acknowledge(Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest body, string packageName, string productId, string token)
{
return new AcknowledgeRequest(this.service, body, packageName, productId, token);
}
/// Acknowledges a purchase of an inapp item.
public class AcknowledgeRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Acknowledge request.
public AcknowledgeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest body, string packageName, string productId, string token) : base(service)
{
PackageName = packageName;
ProductId = productId;
Token = token;
Body = body;
InitParameters();
}
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// The token provided to the user's device when the inapp product was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ProductPurchasesAcknowledgeRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "acknowledge";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge";
/// Initializes Acknowledge parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Consumes a purchase for an inapp item.
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
///
/// The token provided to the user's device when the inapp product was purchased.
///
public virtual ConsumeRequest Consume(string packageName, string productId, string token)
{
return new ConsumeRequest(this.service, packageName, productId, token);
}
/// Consumes a purchase for an inapp item.
public class ConsumeRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Consume request.
public ConsumeRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string token) : base(service)
{
PackageName = packageName;
ProductId = productId;
Token = token;
InitParameters();
}
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// The token provided to the user's device when the inapp product was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "consume";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume";
/// Initializes Consume parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Checks the purchase and consumption status of an inapp item.
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
///
/// The token provided to the user's device when the inapp product was purchased.
///
public virtual GetRequest Get(string packageName, string productId, string token)
{
return new GetRequest(this.service, packageName, productId, token);
}
/// Checks the purchase and consumption status of an inapp item.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string productId, string token) : base(service)
{
PackageName = packageName;
ProductId = productId;
Token = token;
InitParameters();
}
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The inapp product SKU (for example, 'com.some.thing.inapp1').
[Google.Apis.Util.RequestParameterAttribute("productId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProductId { get; private set; }
/// The token provided to the user's device when the inapp product was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("productId", new Google.Apis.Discovery.Parameter
{
Name = "productId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Productsv2 resource.
public virtual Productsv2Resource Productsv2 { get; }
/// The "productsv2" collection of methods.
public class Productsv2Resource
{
private const string Resource = "productsv2";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public Productsv2Resource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Checks the purchase and consumption status of an inapp item.
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
///
/// The token provided to the user's device when the inapp product was purchased.
///
public virtual Getproductpurchasev2Request Getproductpurchasev2(string packageName, string token)
{
return new Getproductpurchasev2Request(this.service, packageName, token);
}
/// Checks the purchase and consumption status of an inapp item.
public class Getproductpurchasev2Request : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Getproductpurchasev2 request.
public Getproductpurchasev2Request(Google.Apis.Services.IClientService service, string packageName, string token) : base(service)
{
PackageName = packageName;
Token = token;
InitParameters();
}
///
/// The package name of the application the inapp product was sold in (for example, 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The token provided to the user's device when the inapp product was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "getproductpurchasev2";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}";
/// Initializes Getproductpurchasev2 parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Subscriptions resource.
public virtual SubscriptionsResource Subscriptions { get; }
/// The "subscriptions" collection of methods.
public class SubscriptionsResource
{
private const string Resource = "subscriptions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public SubscriptionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Acknowledges a subscription purchase.
/// The body of the request.
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
///
/// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
/// add-ons. The purchased subscription ID (for example, 'monthly001').
///
/// The token provided to the user's device when the subscription was purchased.
public virtual AcknowledgeRequest Acknowledge(Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token)
{
return new AcknowledgeRequest(this.service, body, packageName, subscriptionId, token);
}
/// Acknowledges a subscription purchase.
public class AcknowledgeRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Acknowledge request.
public AcknowledgeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest body, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
Body = body;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
/// add-ons. The purchased subscription ID (for example, 'monthly001').
///
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesAcknowledgeRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "acknowledge";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge";
/// Initializes Acknowledge parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer
/// version is available at purchases.subscriptionsv2.cancel for better client library support.
///
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
///
/// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
/// add-ons. The purchased subscription ID (for example, 'monthly001').
///
/// The token provided to the user's device when the subscription was purchased.
public virtual CancelRequest Cancel(string packageName, string subscriptionId, string token)
{
return new CancelRequest(this.service, packageName, subscriptionId, token);
}
///
/// Cancels a user's subscription purchase. The subscription remains valid until its expiration time. Newer
/// version is available at purchases.subscriptionsv2.cancel for better client library support.
///
public class CancelRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Cancel request.
public CancelRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Note: Since May 21, 2025, subscription_id is not required, and not recommended for subscription with
/// add-ons. The purchased subscription ID (for example, 'monthly001').
///
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "cancel";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel";
/// Initializes Cancel parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Defers a user's subscription purchase until a specified future expiration time.
/// The body of the request.
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
/// The purchased subscription ID (for example, 'monthly001').
/// The token provided to the user's device when the subscription was purchased.
public virtual DeferRequest Defer(Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token)
{
return new DeferRequest(this.service, body, packageName, subscriptionId, token);
}
/// Defers a user's subscription purchase until a specified future expiration time.
public class DeferRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Defer request.
public DeferRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest body, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
Body = body;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The purchased subscription ID (for example, 'monthly001').
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.SubscriptionPurchasesDeferRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "defer";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer";
/// Initializes Defer parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription purchase is
/// valid and returns its expiry time.
///
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
/// The purchased subscription ID (for example, 'monthly001').
/// The token provided to the user's device when the subscription was purchased.
public virtual GetRequest Get(string packageName, string subscriptionId, string token)
{
return new GetRequest(this.service, packageName, subscriptionId, token);
}
///
/// Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription purchase is
/// valid and returns its expiry time.
///
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The purchased subscription ID (for example, 'monthly001').
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the subscription
/// remains valid until its expiration time and it will continue to recur.
///
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
/// "The purchased subscription ID (for example, 'monthly001').
/// The token provided to the user's device when the subscription was purchased.
public virtual RefundRequest Refund(string packageName, string subscriptionId, string token)
{
return new RefundRequest(this.service, packageName, subscriptionId, token);
}
///
/// Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the subscription
/// remains valid until its expiration time and it will continue to recur.
///
public class RefundRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Refund request.
public RefundRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// "The purchased subscription ID (for example, 'monthly001').
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "refund";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund";
/// Initializes Refund parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a user's
/// subscription purchase. Access to the subscription will be terminated immediately and it will stop
/// recurring.
///
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
/// The purchased subscription ID (for example, 'monthly001').
/// The token provided to the user's device when the subscription was purchased.
public virtual RevokeRequest Revoke(string packageName, string subscriptionId, string token)
{
return new RevokeRequest(this.service, packageName, subscriptionId, token);
}
///
/// Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a user's
/// subscription purchase. Access to the subscription will be terminated immediately and it will stop
/// recurring.
///
public class RevokeRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Revoke request.
public RevokeRequest(Google.Apis.Services.IClientService service, string packageName, string subscriptionId, string token) : base(service)
{
PackageName = packageName;
SubscriptionId = subscriptionId;
Token = token;
InitParameters();
}
///
/// The package name of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The purchased subscription ID (for example, 'monthly001').
[Google.Apis.Util.RequestParameterAttribute("subscriptionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string SubscriptionId { get; private set; }
/// The token provided to the user's device when the subscription was purchased.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "revoke";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke";
/// Initializes Revoke parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("subscriptionId", new Google.Apis.Discovery.Parameter
{
Name = "subscriptionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Subscriptionsv2 resource.
public virtual Subscriptionsv2Resource Subscriptionsv2 { get; }
/// The "subscriptionsv2" collection of methods.
public class Subscriptionsv2Resource
{
private const string Resource = "subscriptionsv2";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public Subscriptionsv2Resource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Cancel a subscription purchase for the user.
/// The body of the request.
///
/// Required. The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
public virtual CancelRequest Cancel(Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest body, string packageName, string token)
{
return new CancelRequest(this.service, body, packageName, token);
}
/// Cancel a subscription purchase for the user.
public class CancelRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Cancel request.
public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest body, string packageName, string token) : base(service)
{
PackageName = packageName;
Token = token;
Body = body;
InitParameters();
}
///
/// Required. The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.CancelSubscriptionPurchaseRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "cancel";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel";
/// Initializes Cancel parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Get metadata about a subscription
///
/// The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
public virtual GetRequest Get(string packageName, string token)
{
return new GetRequest(this.service, packageName, token);
}
/// Get metadata about a subscription
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string token) : base(service)
{
PackageName = packageName;
Token = token;
InitParameters();
}
///
/// The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Revoke a subscription purchase for the user.
/// The body of the request.
///
/// Required. The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
public virtual RevokeRequest Revoke(Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest body, string packageName, string token)
{
return new RevokeRequest(this.service, body, packageName, token);
}
/// Revoke a subscription purchase for the user.
public class RevokeRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Revoke request.
public RevokeRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest body, string packageName, string token) : base(service)
{
PackageName = packageName;
Token = token;
Body = body;
InitParameters();
}
///
/// Required. The package of the application for which this subscription was purchased (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// Required. The token provided to the user's device when the subscription was purchased.
///
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Token { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.RevokeSubscriptionPurchaseRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "revoke";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke";
/// Initializes Revoke parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Voidedpurchases resource.
public virtual VoidedpurchasesResource Voidedpurchases { get; }
/// The "voidedpurchases" collection of methods.
public class VoidedpurchasesResource
{
private const string Resource = "voidedpurchases";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public VoidedpurchasesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Lists the purchases that were canceled, refunded or charged-back.
///
/// The package name of the application for which voided purchases need to be returned (for example,
/// 'com.some.thing').
///
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
/// Lists the purchases that were canceled, refunded or charged-back.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
///
/// The package name of the application for which voided purchases need to be returned (for example,
/// 'com.some.thing').
///
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
///
/// The time, in milliseconds since the Epoch, of the newest voided purchase that you want to see in the
/// response. The value of this parameter cannot be greater than the current time and is ignored if a
/// pagination token is set. Default value is current time. Note: This filter is applied on the time at
/// which the record is seen as voided by our systems and not the actual voided time returned in the
/// response.
///
[Google.Apis.Util.RequestParameterAttribute("endTime", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable EndTime { get; set; }
///
/// Optional. Whether to include voided purchases of quantity-based partial refunds, which are
/// applicable only to multi-quantity purchases. If true, additional voided purchases may be returned
/// with voidedQuantity that indicates the refund quantity of a quantity-based partial refund. The
/// default value is false.
///
[Google.Apis.Util.RequestParameterAttribute("includeQuantityBasedPartialRefund", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IncludeQuantityBasedPartialRefund { get; set; }
///
/// Defines how many results the list operation should return. The default number depends on the
/// resource collection.
///
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// Defines the index of the first element to return. This can only be used if indexed paging is
/// enabled.
///
[Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
///
/// The time, in milliseconds since the Epoch, of the oldest voided purchase that you want to see in the
/// response. The value of this parameter cannot be older than 30 days and is ignored if a pagination
/// token is set. Default value is current time minus 30 days. Note: This filter is applied on the time
/// at which the record is seen as voided by our systems and not the actual voided time returned in the
/// response.
///
[Google.Apis.Util.RequestParameterAttribute("startTime", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartTime { get; set; }
///
/// Defines the token of the page to return, usually taken from TokenPagination. This can only be used
/// if token paging is enabled.
///
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
///
/// The type of voided purchases that you want to see in the response. Possible values are: 0. Only
/// voided in-app product purchases will be returned in the response. This is the default value. 1. Both
/// voided in-app purchases and voided subscription purchases will be returned in the response. Note:
/// Before requesting to receive voided subscription purchases, you must switch to use orderId in the
/// response which uniquely identifies one-time purchases and subscriptions. Otherwise, you will receive
/// multiple subscription orders with the same PurchaseToken, because subscription renewal orders share
/// the same PurchaseToken.
///
[Google.Apis.Util.RequestParameterAttribute("type", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Type { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("endTime", new Google.Apis.Discovery.Parameter
{
Name = "endTime",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("includeQuantityBasedPartialRefund", new Google.Apis.Discovery.Parameter
{
Name = "includeQuantityBasedPartialRefund",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter
{
Name = "startIndex",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("startTime", new Google.Apis.Discovery.Parameter
{
Name = "startTime",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("type", new Google.Apis.Discovery.Parameter
{
Name = "type",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
}
/// The "reviews" collection of methods.
public class ReviewsResource
{
private const string Resource = "reviews";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ReviewsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets a single review.
/// Package name of the app.
/// Unique identifier for a review.
public virtual GetRequest Get(string packageName, string reviewId)
{
return new GetRequest(this.service, packageName, reviewId);
}
/// Gets a single review.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, string reviewId) : base(service)
{
PackageName = packageName;
ReviewId = reviewId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for a review.
[Google.Apis.Util.RequestParameterAttribute("reviewId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ReviewId { get; private set; }
/// Language localization code.
[Google.Apis.Util.RequestParameterAttribute("translationLanguage", Google.Apis.Util.RequestParameterType.Query)]
public virtual string TranslationLanguage { get; set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("reviewId", new Google.Apis.Discovery.Parameter
{
Name = "reviewId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("translationLanguage", new Google.Apis.Discovery.Parameter
{
Name = "translationLanguage",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all reviews.
/// Package name of the app.
public virtual ListRequest List(string packageName)
{
return new ListRequest(this.service, packageName);
}
/// Lists all reviews.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName) : base(service)
{
PackageName = packageName;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// How many results the list operation should return.
[Google.Apis.Util.RequestParameterAttribute("maxResults", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
/// The index of the first element to return.
[Google.Apis.Util.RequestParameterAttribute("startIndex", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Pagination token. If empty, list starts at the first review.
[Google.Apis.Util.RequestParameterAttribute("token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Token { get; set; }
/// Language localization code.
[Google.Apis.Util.RequestParameterAttribute("translationLanguage", Google.Apis.Util.RequestParameterType.Query)]
public virtual string TranslationLanguage { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("maxResults", new Google.Apis.Discovery.Parameter
{
Name = "maxResults",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("startIndex", new Google.Apis.Discovery.Parameter
{
Name = "startIndex",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("token", new Google.Apis.Discovery.Parameter
{
Name = "token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("translationLanguage", new Google.Apis.Discovery.Parameter
{
Name = "translationLanguage",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Replies to a single review, or updates an existing reply.
/// The body of the request.
/// Package name of the app.
/// Unique identifier for a review.
public virtual ReplyRequest Reply(Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest body, string packageName, string reviewId)
{
return new ReplyRequest(this.service, body, packageName, reviewId);
}
/// Replies to a single review, or updates an existing reply.
public class ReplyRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Reply request.
public ReplyRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest body, string packageName, string reviewId) : base(service)
{
PackageName = packageName;
ReviewId = reviewId;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// Unique identifier for a review.
[Google.Apis.Util.RequestParameterAttribute("reviewId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ReviewId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.ReviewsReplyRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "reply";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply";
/// Initializes Reply parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("reviewId", new Google.Apis.Discovery.Parameter
{
Name = "reviewId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// The "systemapks" collection of methods.
public class SystemapksResource
{
private const string Resource = "systemapks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public SystemapksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Variants = new VariantsResource(service);
}
/// Gets the Variants resource.
public virtual VariantsResource Variants { get; }
/// The "variants" collection of methods.
public class VariantsResource
{
private const string Resource = "variants";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public VariantsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App
/// Bundle.
///
/// The body of the request.
/// Package name of the app.
/// The version code of the App Bundle.
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.Variant body, string packageName, long versionCode)
{
return new CreateRequest(this.service, body, packageName, versionCode);
}
///
/// Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App
/// Bundle.
///
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.Variant body, string packageName, long versionCode) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
Body = body;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The version code of the App Bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VersionCode { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.Variant Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Downloads a previously created system APK which is suitable for inclusion in a system image.
///
/// Package name of the app.
/// The version code of the App Bundle.
/// The ID of a previously created system APK variant.
public virtual DownloadRequest Download(string packageName, long versionCode, long variantId)
{
return new DownloadRequest(this.service, packageName, versionCode, variantId);
}
///
/// Downloads a previously created system APK which is suitable for inclusion in a system image.
///
public class DownloadRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Download request.
public DownloadRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode, long variantId) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
VariantId = variantId;
MediaDownloader = new Google.Apis.Download.MediaDownloader(service);
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The version code of the App Bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VersionCode { get; private set; }
/// The ID of a previously created system APK variant.
[Google.Apis.Util.RequestParameterAttribute("variantId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VariantId { get; private set; }
/// Gets the method name.
public override string MethodName => "download";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download";
/// Initializes Download parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("variantId", new Google.Apis.Discovery.Parameter
{
Name = "variantId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
/// Gets the media downloader.
public Google.Apis.Download.IMediaDownloader MediaDownloader { get; private set; }
///
/// Synchronously download the media into the given stream.
///
/// Warning: This method hides download errors; use
/// instead.
///
///
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual void Download(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Synchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
///
/// The final status of the download; including whether the download succeeded or failed.
///
public virtual Google.Apis.Download.IDownloadProgress DownloadWithStatus(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Asynchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream);
}
/// Asynchronously download the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadAsync(System.IO.Stream stream,
System.Threading.CancellationToken cancellationToken)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = null;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken);
}
/// Synchronously download a range of the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual Google.Apis.Download.IDownloadProgress DownloadRange(System.IO.Stream stream, System.Net.Http.Headers.RangeHeaderValue range)
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = range;
return mediaDownloader.Download(this.GenerateRequestUri(), stream);
}
/// Asynchronously download a range of the media into the given stream.
///
/// This method uses the property to perform the download. Progress event
/// handlers and other configuration may be performed using that property prior to calling this method.
///
public virtual System.Threading.Tasks.Task DownloadRangeAsync(System.IO.Stream stream,
System.Net.Http.Headers.RangeHeaderValue range,
System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var mediaDownloader = (Google.Apis.Download.MediaDownloader)MediaDownloader;
mediaDownloader.Range = range;
return mediaDownloader.DownloadAsync(this.GenerateRequestUri(), stream, cancellationToken);
}
}
/// Returns a previously created system APK variant.
/// Package name of the app.
/// The version code of the App Bundle.
/// The ID of a previously created system APK variant.
public virtual GetRequest Get(string packageName, long versionCode, long variantId)
{
return new GetRequest(this.service, packageName, versionCode, variantId);
}
/// Returns a previously created system APK variant.
public class GetRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode, long variantId) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
VariantId = variantId;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The version code of the App Bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VersionCode { get; private set; }
/// The ID of a previously created system APK variant.
[Google.Apis.Util.RequestParameterAttribute("variantId", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VariantId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("variantId", new Google.Apis.Discovery.Parameter
{
Name = "variantId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns the list of previously created system APK variants.
/// Package name of the app.
/// The version code of the App Bundle.
public virtual ListRequest List(string packageName, long versionCode)
{
return new ListRequest(this.service, packageName, versionCode);
}
/// Returns the list of previously created system APK variants.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string packageName, long versionCode) : base(service)
{
PackageName = packageName;
VersionCode = versionCode;
InitParameters();
}
/// Package name of the app.
[Google.Apis.Util.RequestParameterAttribute("packageName", Google.Apis.Util.RequestParameterType.Path)]
public virtual string PackageName { get; private set; }
/// The version code of the App Bundle.
[Google.Apis.Util.RequestParameterAttribute("versionCode", Google.Apis.Util.RequestParameterType.Path)]
public virtual long VersionCode { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("packageName", new Google.Apis.Discovery.Parameter
{
Name = "packageName",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("versionCode", new Google.Apis.Discovery.Parameter
{
Name = "versionCode",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
}
/// The "users" collection of methods.
public class UsersResource
{
private const string Resource = "users";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public UsersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Grant access for a user to the given developer account.
/// The body of the request.
///
/// Required. The developer account to add the user to. Format: developers/{developer}
///
public virtual CreateRequest Create(Google.Apis.AndroidPublisher.v3.Data.User body, string parent)
{
return new CreateRequest(this.service, body, parent);
}
/// Grant access for a user to the given developer account.
public class CreateRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Create request.
public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.User body, string parent) : base(service)
{
Parent = parent;
Body = body;
InitParameters();
}
/// Required. The developer account to add the user to. Format: developers/{developer}
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.User Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "create";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+parent}/users";
/// Initializes Create parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+$",
});
}
}
/// Removes all access for the user to the given developer account.
///
/// Required. The name of the user to delete. Format: developers/{developer}/users/{email}
///
public virtual DeleteRequest Delete(string name)
{
return new DeleteRequest(this.service, name);
}
/// Removes all access for the user to the given developer account.
public class DeleteRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service)
{
Name = name;
InitParameters();
}
///
/// Required. The name of the user to delete. Format: developers/{developer}/users/{email}
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+/users/[^/]+$",
});
}
}
/// Lists all users with access to a developer account.
///
/// Required. The developer account to fetch users from. Format: developers/{developer}
///
public virtual ListRequest List(string parent)
{
return new ListRequest(this.service, parent);
}
/// Lists all users with access to a developer account.
public class ListRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service)
{
Parent = parent;
InitParameters();
}
/// Required. The developer account to fetch users from. Format: developers/{developer}
[Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Parent { get; private set; }
///
/// The maximum number of results to return. This must be set to -1 to disable pagination.
///
[Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PageSize { get; set; }
///
/// A token received from a previous call to this method, in order to retrieve further results.
///
[Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)]
public virtual string PageToken { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+parent}/users";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter
{
Name = "parent",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+$",
});
RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter
{
Name = "pageSize",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter
{
Name = "pageToken",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates access for the user to the developer account.
/// The body of the request.
///
/// Required. Resource name for this user, following the pattern "developers/{developer}/users/{email}".
///
public virtual PatchRequest Patch(Google.Apis.AndroidPublisher.v3.Data.User body, string name)
{
return new PatchRequest(this.service, body, name);
}
/// Updates access for the user to the developer account.
public class PatchRequest : AndroidPublisherBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.AndroidPublisher.v3.Data.User body, string name) : base(service)
{
Name = name;
Body = body;
InitParameters();
}
///
/// Required. Resource name for this user, following the pattern "developers/{developer}/users/{email}".
///
[Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)]
public virtual string Name { get; private set; }
/// Optional. The list of fields to be updated.
[Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
/// Gets or sets the body of this request.
Google.Apis.AndroidPublisher.v3.Data.User Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "androidpublisher/v3/{+name}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("name", new Google.Apis.Discovery.Parameter
{
Name = "name",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"^developers/[^/]+/users/[^/]+$",
});
RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter
{
Name = "updateMask",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
}
namespace Google.Apis.AndroidPublisher.v3.Data
{
/// Represents an Abi.
public class Abi : Google.Apis.Requests.IDirectResponseSchema
{
/// Alias for an abi.
[Newtonsoft.Json.JsonPropertyAttribute("alias")]
public virtual string Alias { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Targeting based on Abi.
public class AbiTargeting : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Targeting of other sibling directories that were in the Bundle. For main splits this is targeting of other
/// main splits.
///
[Newtonsoft.Json.JsonPropertyAttribute("alternatives")]
public virtual System.Collections.Generic.IList Alternatives { get; set; }
/// Value of an abi.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual System.Collections.Generic.IList Value { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents a targeting rule of the form: User never had {scope} before.
public class AcquisitionTargetingRule : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The scope of subscriptions this rule considers. Only allows "this subscription" and "any
/// subscription in app".
///
[Newtonsoft.Json.JsonPropertyAttribute("scope")]
public virtual TargetingRuleScope Scope { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for ActivateBasePlan.
public class ActivateBasePlanRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The unique base plan ID of the base plan to activate.
[Newtonsoft.Json.JsonPropertyAttribute("basePlanId")]
public virtual string BasePlanId { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
///
[Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")]
public virtual string LatencyTolerance { get; set; }
/// Required. The parent app (package name) of the base plan to activate.
[Newtonsoft.Json.JsonPropertyAttribute("packageName")]
public virtual string PackageName { get; set; }
/// Required. The parent subscription (ID) of the base plan to activate.
[Newtonsoft.Json.JsonPropertyAttribute("productId")]
public virtual string ProductId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for ActivateOneTimeProductOffer.
public class ActivateOneTimeProductOfferRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The latency tolerance for the propagation of this update. Defaults to latency-sensitive.
///
[Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")]
public virtual string LatencyTolerance { get; set; }
/// Required. The offer ID of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("offerId")]
public virtual string OfferId { get; set; }
/// Required. The parent app (package name) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("packageName")]
public virtual string PackageName { get; set; }
/// Required. The parent one-time product (ID) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("productId")]
public virtual string ProductId { get; set; }
/// Required. The parent purchase option (ID) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")]
public virtual string PurchaseOptionId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for UpdatePurchaseOptionState.
public class ActivatePurchaseOptionRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
///
[Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")]
public virtual string LatencyTolerance { get; set; }
/// Required. The parent app (package name) of the purchase option to activate.
[Newtonsoft.Json.JsonPropertyAttribute("packageName")]
public virtual string PackageName { get; set; }
/// Required. The parent one-time product (ID) of the purchase option to activate.
[Newtonsoft.Json.JsonPropertyAttribute("productId")]
public virtual string ProductId { get; set; }
/// Required. The purchase option ID of the purchase option to activate.
[Newtonsoft.Json.JsonPropertyAttribute("purchaseOptionId")]
public virtual string PurchaseOptionId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for ActivateSubscriptionOffer.
public class ActivateSubscriptionOfferRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. The parent base plan (ID) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("basePlanId")]
public virtual string BasePlanId { get; set; }
///
/// Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
///
[Newtonsoft.Json.JsonPropertyAttribute("latencyTolerance")]
public virtual string LatencyTolerance { get; set; }
/// Required. The unique offer ID of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("offerId")]
public virtual string OfferId { get; set; }
/// Required. The parent app (package name) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("packageName")]
public virtual string PackageName { get; set; }
/// Required. The parent subscription (ID) of the offer to activate.
[Newtonsoft.Json.JsonPropertyAttribute("productId")]
public virtual string ProductId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for AddTargeting.
public class AddTargetingRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// Specifies targeting updates such as regions, android sdk versions etc.
[Newtonsoft.Json.JsonPropertyAttribute("targetingUpdate")]
public virtual TargetingUpdate TargetingUpdate { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for AddTargeting.
public class AddTargetingResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Object representation to describe all set of users.
public class AllUsers : Google.Apis.Requests.IDirectResponseSchema
{
/// Required. Set to true if all set of users are needed.
[Newtonsoft.Json.JsonPropertyAttribute("isAllUsersRequested")]
public virtual System.Nullable IsAllUsersRequested { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Android api level targeting data for app recovery action targeting.
public class AndroidSdks : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Android api levels of devices targeted by recovery action. See
/// https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels for different api levels in
/// android.
///
[Newtonsoft.Json.JsonPropertyAttribute("sdkLevels")]
public virtual System.Collections.Generic.IList> SdkLevels { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information about an APK. The resource for ApksService.
public class Apk : Google.Apis.Requests.IDirectResponseSchema
{
/// Information about the binary payload of this APK.
[Newtonsoft.Json.JsonPropertyAttribute("binary")]
public virtual ApkBinary Binary { get; set; }
/// The version code of the APK, as specified in the manifest file.
[Newtonsoft.Json.JsonPropertyAttribute("versionCode")]
public virtual System.Nullable VersionCode { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents the binary payload of an APK.
public class ApkBinary : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command.
///
[Newtonsoft.Json.JsonPropertyAttribute("sha1")]
public virtual string Sha1 { get; set; }
///
/// A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command.
///
[Newtonsoft.Json.JsonPropertyAttribute("sha256")]
public virtual string Sha256 { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Description of the created apks.
public class ApkDescription : Google.Apis.Requests.IDirectResponseSchema
{
/// Set only for asset slices.
[Newtonsoft.Json.JsonPropertyAttribute("assetSliceMetadata")]
public virtual SplitApkMetadata AssetSliceMetadata { get; set; }
/// Set only for Instant split APKs.
[Newtonsoft.Json.JsonPropertyAttribute("instantApkMetadata")]
public virtual SplitApkMetadata InstantApkMetadata { get; set; }
///
/// Path of the Apk, will be in the following format: .apk where DownloadId is the ID used to download the apk
/// using GeneratedApks.Download API.
///
[Newtonsoft.Json.JsonPropertyAttribute("path")]
public virtual string Path { get; set; }
/// Set only for Split APKs.
[Newtonsoft.Json.JsonPropertyAttribute("splitApkMetadata")]
public virtual SplitApkMetadata SplitApkMetadata { get; set; }
/// Set only for standalone APKs.
[Newtonsoft.Json.JsonPropertyAttribute("standaloneApkMetadata")]
public virtual StandaloneApkMetadata StandaloneApkMetadata { get; set; }
/// Apk-level targeting.
[Newtonsoft.Json.JsonPropertyAttribute("targeting")]
public virtual ApkTargeting Targeting { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A set of apks representing a module.
public class ApkSet : Google.Apis.Requests.IDirectResponseSchema
{
/// Description of the generated apks.
[Newtonsoft.Json.JsonPropertyAttribute("apkDescription")]
public virtual System.Collections.Generic.IList ApkDescription { get; set; }
/// Metadata about the module represented by this ApkSet
[Newtonsoft.Json.JsonPropertyAttribute("moduleMetadata")]
public virtual ModuleMetadata ModuleMetadata { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents a set of apk-level targetings.
public class ApkTargeting : Google.Apis.Requests.IDirectResponseSchema
{
/// The abi that the apk targets
[Newtonsoft.Json.JsonPropertyAttribute("abiTargeting")]
public virtual AbiTargeting AbiTargeting { get; set; }
/// The language that the apk targets
[Newtonsoft.Json.JsonPropertyAttribute("languageTargeting")]
public virtual LanguageTargeting LanguageTargeting { get; set; }
/// Multi-api-level targeting.
[Newtonsoft.Json.JsonPropertyAttribute("multiAbiTargeting")]
public virtual MultiAbiTargeting MultiAbiTargeting { get; set; }
/// The screen density that this apk supports.
[Newtonsoft.Json.JsonPropertyAttribute("screenDensityTargeting")]
public virtual ScreenDensityTargeting ScreenDensityTargeting { get; set; }
/// The sdk version that the apk targets
[Newtonsoft.Json.JsonPropertyAttribute("sdkVersionTargeting")]
public virtual SdkVersionTargeting SdkVersionTargeting { get; set; }
/// Texture-compression-format-level targeting
[Newtonsoft.Json.JsonPropertyAttribute("textureCompressionFormatTargeting")]
public virtual TextureCompressionFormatTargeting TextureCompressionFormatTargeting { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request to create a new externally hosted APK.
public class ApksAddExternallyHostedRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The definition of the externally-hosted APK and where it is located.
[Newtonsoft.Json.JsonPropertyAttribute("externallyHostedApk")]
public virtual ExternallyHostedApk ExternallyHostedApk { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response for creating a new externally hosted APK.
public class ApksAddExternallyHostedResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The definition of the externally-hosted APK and where it is located.
[Newtonsoft.Json.JsonPropertyAttribute("externallyHostedApk")]
public virtual ExternallyHostedApk ExternallyHostedApk { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response listing all APKs.
public class ApksListResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// All APKs.
[Newtonsoft.Json.JsonPropertyAttribute("apks")]
public virtual System.Collections.Generic.IList Apks { get; set; }
/// The kind of this response ("androidpublisher#apksListResponse").
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// The app details. The resource for DetailsService.
public class AppDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// The user-visible support email for this app.
[Newtonsoft.Json.JsonPropertyAttribute("contactEmail")]
public virtual string ContactEmail { get; set; }
/// The user-visible support telephone number for this app.
[Newtonsoft.Json.JsonPropertyAttribute("contactPhone")]
public virtual string ContactPhone { get; set; }
/// The user-visible website for this app.
[Newtonsoft.Json.JsonPropertyAttribute("contactWebsite")]
public virtual string ContactWebsite { get; set; }
/// Default language code, in BCP 47 format (eg "en-US").
[Newtonsoft.Json.JsonPropertyAttribute("defaultLanguage")]
public virtual string DefaultLanguage { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// An app edit. The resource for EditsService.
public class AppEdit : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Output only. The time (as seconds since Epoch) at which the edit will expire and will be no longer valid for
/// use.
///
[Newtonsoft.Json.JsonPropertyAttribute("expiryTimeSeconds")]
public virtual string ExpiryTimeSeconds { get; set; }
/// Output only. Identifier of the edit. Can be used in subsequent API calls.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information about an app recovery action.
public class AppRecoveryAction : Google.Apis.Requests.IDirectResponseSchema
{
/// ID corresponding to the app recovery action.
[Newtonsoft.Json.JsonPropertyAttribute("appRecoveryId")]
public virtual System.Nullable AppRecoveryId { get; set; }
private string _cancelTimeRaw;
private object _cancelTime;
///
/// Timestamp of when the app recovery action is canceled by the developer. Only set if the recovery action has
/// been canceled.
///
[Newtonsoft.Json.JsonPropertyAttribute("cancelTime")]
public virtual string CancelTimeRaw
{
get => _cancelTimeRaw;
set
{
_cancelTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_cancelTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CancelTimeDateTimeOffset instead.")]
public virtual object CancelTime
{
get => _cancelTime;
set
{
_cancelTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_cancelTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CancelTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CancelTimeRaw);
set => CancelTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _createTimeRaw;
private object _createTime;
///
/// Timestamp of when the app recovery action is created by the developer. It is always set after creation of
/// the recovery action.
///
[Newtonsoft.Json.JsonPropertyAttribute("createTime")]
public virtual string CreateTimeRaw
{
get => _createTimeRaw;
set
{
_createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_createTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime
{
get => _createTime;
set
{
_createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_createTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw);
set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _deployTimeRaw;
private object _deployTime;
///
/// Timestamp of when the app recovery action is deployed to the users. Only set if the recovery action has been
/// deployed.
///
[Newtonsoft.Json.JsonPropertyAttribute("deployTime")]
public virtual string DeployTimeRaw
{
get => _deployTimeRaw;
set
{
_deployTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_deployTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeployTimeDateTimeOffset instead.")]
public virtual object DeployTime
{
get => _deployTime;
set
{
_deployTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_deployTime = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? DeployTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeployTimeRaw);
set => DeployTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
private string _lastUpdateTimeRaw;
private object _lastUpdateTime;
///
/// Timestamp of when the developer last updated recovery action. In case the action is cancelled, it
/// corresponds to cancellation time. It is always set after creation of the recovery action.
///
[Newtonsoft.Json.JsonPropertyAttribute("lastUpdateTime")]
public virtual string LastUpdateTimeRaw
{
get => _lastUpdateTimeRaw;
set
{
_lastUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value);
_lastUpdateTimeRaw = value;
}
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use LastUpdateTimeDateTimeOffset instead.")]
public virtual object LastUpdateTime
{
get => _lastUpdateTime;
set
{
_lastUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value);
_lastUpdateTime = value;
}
}
///
/// representation of .
///
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? LastUpdateTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(LastUpdateTimeRaw);
set => LastUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value);
}
///
/// Data about the remote in-app update action such as such as recovered user base, recoverable user base etc.
/// Set only if the recovery action type is Remote In-App Update.
///
[Newtonsoft.Json.JsonPropertyAttribute("remoteInAppUpdateData")]
public virtual RemoteInAppUpdateData RemoteInAppUpdateData { get; set; }
/// The status of the recovery action.
[Newtonsoft.Json.JsonPropertyAttribute("status")]
public virtual string Status { get; set; }
///
/// Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions
/// etc.
///
[Newtonsoft.Json.JsonPropertyAttribute("targeting")]
public virtual Targeting Targeting { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Data format for a list of app versions.
public class AppVersionList : Google.Apis.Requests.IDirectResponseSchema
{
/// List of app version codes.
[Newtonsoft.Json.JsonPropertyAttribute("versionCodes")]
public virtual System.Collections.Generic.IList> VersionCodes { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Data format for a continuous range of app versions.
public class AppVersionRange : Google.Apis.Requests.IDirectResponseSchema
{
/// Highest app version in the range, inclusive.
[Newtonsoft.Json.JsonPropertyAttribute("versionCodeEnd")]
public virtual System.Nullable VersionCodeEnd { get; set; }
/// Lowest app version in the range, inclusive.
[Newtonsoft.Json.JsonPropertyAttribute("versionCodeStart")]
public virtual System.Nullable VersionCodeStart { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Deprecated: subscription archiving is not supported.
public class ArchiveSubscriptionRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Metadata of an asset module.
public class AssetModuleMetadata : Google.Apis.Requests.IDirectResponseSchema
{
/// Indicates the delivery type for persistent install.
[Newtonsoft.Json.JsonPropertyAttribute("deliveryType")]
public virtual string DeliveryType { get; set; }
/// Module name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Set of asset slices belonging to a single asset module.
public class AssetSliceSet : Google.Apis.Requests.IDirectResponseSchema
{
/// Asset slices.
[Newtonsoft.Json.JsonPropertyAttribute("apkDescription")]
public virtual System.Collections.Generic.IList ApkDescription { get; set; }
/// Module level metadata.
[Newtonsoft.Json.JsonPropertyAttribute("assetModuleMetadata")]
public virtual AssetModuleMetadata AssetModuleMetadata { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Represents a base plan that automatically renews at the end of its subscription period.
public class AutoRenewingBasePlanType : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Optional. Custom account hold period of the subscription, specified in ISO 8601 format. Acceptable values
/// must be in days and between P0D and P60D. An empty field represents a recommended account hold, calculated
/// as 60 days minus grace period. The sum of gracePeriodDuration and accountHoldDuration must be between P30D
/// and P60D days, inclusive.
///
[Newtonsoft.Json.JsonPropertyAttribute("accountHoldDuration")]
public virtual string AccountHoldDuration { get; set; }
///
/// Required. Immutable. Subscription period, specified in ISO 8601 format. For a list of acceptable billing
/// periods, refer to the help center. The duration is immutable after the base plan is created.
///
[Newtonsoft.Json.JsonPropertyAttribute("billingPeriodDuration")]
public virtual string BillingPeriodDuration { get; set; }
///
/// Grace period of the subscription, specified in ISO 8601 format. Acceptable values must be in days and
/// between P0D and the lesser of 30D and base plan billing period. If not specified, a default value will be
/// used based on the billing period. The sum of gracePeriodDuration and accountHoldDuration must be between
/// P30D and P60D days, inclusive.
///
[Newtonsoft.Json.JsonPropertyAttribute("gracePeriodDuration")]
public virtual string GracePeriodDuration { get; set; }
///
/// Whether the renewing base plan is backward compatible. The backward compatible base plan is returned by the
/// Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one renewing base plan can be
/// marked as legacy compatible for a given subscription.
///
[Newtonsoft.Json.JsonPropertyAttribute("legacyCompatible")]
public virtual System.Nullable LegacyCompatible { get; set; }
///
/// Subscription offer id which is legacy compatible. The backward compatible subscription offer is returned by
/// the Google Play Billing Library deprecated method querySkuDetailsAsync(). Only one subscription offer can be
/// marked as legacy compatible for a given renewing base plan. To have no Subscription offer as legacy
/// compatible set this field as empty string.
///
[Newtonsoft.Json.JsonPropertyAttribute("legacyCompatibleSubscriptionOfferId")]
public virtual string LegacyCompatibleSubscriptionOfferId { get; set; }
///
/// The proration mode for the base plan determines what happens when a user switches to this plan from another
/// base plan. If unspecified, defaults to CHARGE_ON_NEXT_BILLING_DATE.
///
[Newtonsoft.Json.JsonPropertyAttribute("prorationMode")]
public virtual string ProrationMode { get; set; }
///
/// Whether users should be able to resubscribe to this base plan in Google Play surfaces. Defaults to
/// RESUBSCRIBE_STATE_ACTIVE if not specified.
///
[Newtonsoft.Json.JsonPropertyAttribute("resubscribeState")]
public virtual string ResubscribeState { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Information related to an auto renewing plan.
public class AutoRenewingPlan : Google.Apis.Requests.IDirectResponseSchema
{
///
/// If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription
///
[Newtonsoft.Json.JsonPropertyAttribute("autoRenewEnabled")]
public virtual System.Nullable AutoRenewEnabled { get; set; }
/// The installment plan commitment and state related info for the auto renewing plan.
[Newtonsoft.Json.JsonPropertyAttribute("installmentDetails")]
public virtual InstallmentPlan InstallmentDetails { get; set; }
/// The information of the last price change for the item since subscription signup.
[Newtonsoft.Json.JsonPropertyAttribute("priceChangeDetails")]
public virtual SubscriptionItemPriceChangeDetails PriceChangeDetails { get; set; }
/// The information of the latest price step-up consent.
[Newtonsoft.Json.JsonPropertyAttribute("priceStepUpConsentDetails")]
public virtual PriceStepUpConsentDetails PriceStepUpConsentDetails { get; set; }
///
/// The current recurring price of the auto renewing plan. Note that the price does not take into account
/// discounts and does not include taxes for tax-exclusive pricing, please call orders.get API instead if
/// transaction details are needed.
///
[Newtonsoft.Json.JsonPropertyAttribute("recurringPrice")]
public virtual Money RecurringPrice { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Details of a base price pricing phase.
public class BaseDetails : Google.Apis.Requests.IDirectResponseSchema
{
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// A single base plan for a subscription.
public class BasePlan : Google.Apis.Requests.IDirectResponseSchema
{
/// Set when the base plan automatically renews at a regular interval.
[Newtonsoft.Json.JsonPropertyAttribute("autoRenewingBasePlanType")]
public virtual AutoRenewingBasePlanType AutoRenewingBasePlanType { get; set; }
///
/// Required. Immutable. The unique identifier of this base plan. Must be unique within the subscription, and
/// conform with RFC-1034. That is, this ID can only contain lower-case letters (a-z), numbers (0-9), and
/// hyphens (-), and be at most 63 characters.
///
[Newtonsoft.Json.JsonPropertyAttribute("basePlanId")]
public virtual string BasePlanId { get; set; }
///
/// Set for installments base plans where a user is committed to a specified number of payments.
///
[Newtonsoft.Json.JsonPropertyAttribute("installmentsBasePlanType")]
public virtual InstallmentsBasePlanType InstallmentsBasePlanType { get; set; }
///
/// List of up to 20 custom tags specified for this base plan, and returned to the app through the billing
/// library. Subscription offers for this base plan will also receive these offer tags in the billing library.
///
[Newtonsoft.Json.JsonPropertyAttribute("offerTags")]
public virtual System.Collections.Generic.IList OfferTags { get; set; }
///
/// Pricing information for any new locations Play may launch in the future. If omitted, the BasePlan will not
/// be automatically available any new locations Play may launch in the future.
///
[Newtonsoft.Json.JsonPropertyAttribute("otherRegionsConfig")]
public virtual OtherRegionsBasePlanConfig OtherRegionsConfig { get; set; }
/// Set when the base plan does not automatically renew at the end of the billing period.
[Newtonsoft.Json.JsonPropertyAttribute("prepaidBasePlanType")]
public virtual PrepaidBasePlanType PrepaidBasePlanType { get; set; }
/// Region-specific information for this base plan.
[Newtonsoft.Json.JsonPropertyAttribute("regionalConfigs")]
public virtual System.Collections.Generic.IList RegionalConfigs { get; set; }
///
/// Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be
/// activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This
/// field cannot be changed by updating the resource. Use the dedicated endpoints instead.
///
[Newtonsoft.Json.JsonPropertyAttribute("state")]
public virtual string State { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchDeleteOneTimeProductOffers.
public class BatchDeleteOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of update requests of up to 100 elements. All requests must correspond to different offers.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchDeleteOneTimeProduct.
public class BatchDeleteOneTimeProductsRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of delete requests of up to 100 elements. All requests must delete different one-time
/// products.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchDeletePurchaseOption.
public class BatchDeletePurchaseOptionsRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of delete requests of up to 100 elements. All requests must delete purchase options from
/// different one-time products.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for the BatchGetOneTimeProductOffers endpoint.
public class BatchGetOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of get requests of up to 100 elements. All requests must retrieve different offers.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for the BatchGetOneTimeProductOffers endpoint.
public class BatchGetOneTimeProductOffersResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of updated one-time product offers, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")]
public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for the BatchGetOneTimeProducts endpoint.
public class BatchGetOneTimeProductsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of requested one-time products, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")]
public virtual System.Collections.Generic.IList OneTimeProducts { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response for the orders.batchGet API.
public class BatchGetOrdersResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Details for the requested order IDs.
[Newtonsoft.Json.JsonPropertyAttribute("orders")]
public virtual System.Collections.Generic.IList Orders { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchGetSubscriptionOffers endpoint.
public class BatchGetSubscriptionOffersRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchGetSubscriptionOffers endpoint.
public class BatchGetSubscriptionOffersResponse : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("subscriptionOffers")]
public virtual System.Collections.Generic.IList SubscriptionOffers { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchGetSubscriptions endpoint.
public class BatchGetSubscriptionsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of requested subscriptions, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("subscriptions")]
public virtual System.Collections.Generic.IList Subscriptions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchMigrateBasePlanPrices.
public class BatchMigrateBasePlanPricesRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. Up to 100 price migration requests. All requests must update different base plans.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchMigrateBasePlanPrices.
public class BatchMigrateBasePlanPricesResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// Contains one response per requested price migration, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("responses")]
public virtual System.Collections.Generic.IList Responses { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchUpdateBasePlanStates.
public class BatchUpdateBasePlanStatesRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The update request list of up to 100 elements. All requests must update different base plans.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchUpdateBasePlanStates.
public class BatchUpdateBasePlanStatesResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// The list of updated subscriptions. This list will match the requests one to one, in the same order.
///
[Newtonsoft.Json.JsonPropertyAttribute("subscriptions")]
public virtual System.Collections.Generic.IList Subscriptions { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchUpdateOneTimeProductOfferStates.
public class BatchUpdateOneTimeProductOfferStatesRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The update request list of up to 100 elements. All requests must update different offers.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchUpdateOneTimeProductOfferStates.
public class BatchUpdateOneTimeProductOfferStatesResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The updated one-time product offers list, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")]
public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchUpdateOneTimeProductOffers.
public class BatchUpdateOneTimeProductOffersRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of update requests of up to 100 elements. All requests must update different offers.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchUpdateOneTimeProductOffers.
public class BatchUpdateOneTimeProductOffersResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of updated one-time product offers, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProductOffers")]
public virtual System.Collections.Generic.IList OneTimeProductOffers { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchUpdateOneTimeProduct.
public class BatchUpdateOneTimeProductsRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. A list of update requests of up to 100 elements. All requests must update different one-time
/// products.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchUpdateOneTimeProduct.
public class BatchUpdateOneTimeProductsResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The list of updated one-time products list, in the same order as the request.
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")]
public virtual System.Collections.Generic.IList OneTimeProducts { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request message for BatchUpdatePurchaseOptionStates.
public class BatchUpdatePurchaseOptionStatesRequest : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Required. The update request list of up to 100 elements. All requests must update different purchase
/// options.
///
[Newtonsoft.Json.JsonPropertyAttribute("requests")]
public virtual System.Collections.Generic.IList Requests { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Response message for BatchUpdatePurchaseOptionStates.
public class BatchUpdatePurchaseOptionStatesResponse : Google.Apis.Requests.IDirectResponseSchema
{
///
/// The list of updated one-time products. This list will match the requests one to one, in the same order.
///
[Newtonsoft.Json.JsonPropertyAttribute("oneTimeProducts")]
public virtual System.Collections.Generic.IList OneTimeProducts { get; set; }
///