googleapis
Version:
Google APIs Client Library for Node.js
1,240 lines • 90.7 kB
TypeScript
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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
*
* http://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.
*/
import { AxiosPromise } from 'axios';
import { GoogleApis } from '../..';
import { BodyResponseCallback, GlobalOptions, MethodOptions } from '../../lib/api';
/**
* Google Play Developer API
*
* Lets Android application developers access their Google Play accounts.
*
* @example
* const google = require('googleapis');
* const androidpublisher = google.androidpublisher('v2');
*
* @namespace androidpublisher
* @type {Function}
* @version v2
* @variation v2
* @param {object=} options Options for Androidpublisher
*/
export declare class Androidpublisher {
_options: GlobalOptions;
google: GoogleApis;
root: this;
edits: Resource$Edits;
inappproducts: Resource$Inappproducts;
purchases: Resource$Purchases;
reviews: Resource$Reviews;
constructor(options: GlobalOptions, google: GoogleApis);
getRoot(): this;
}
export interface Schema$Apk {
/**
* Information about the binary payload of this APK.
*/
binary: Schema$ApkBinary;
/**
* The version code of the APK, as specified in the APK's manifest file.
*/
versionCode: number;
}
/**
* Represents the binary payload of an APK.
*/
export interface Schema$ApkBinary {
/**
* A sha1 hash of the APK payload, encoded as a hex string and matching the
* output of the sha1sum command.
*/
sha1: string;
/**
* A sha256 hash of the APK payload, encoded as a hex string and matching the
* output of the sha256sum command.
*/
sha256: string;
}
export interface Schema$ApkListing {
/**
* The language code, in BCP 47 format (eg "en-US").
*/
language: string;
/**
* Describe what's new in your APK.
*/
recentChanges: string;
}
export interface Schema$ApkListingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "androidpublisher#apkListingsListResponse".
*/
kind: string;
listings: Schema$ApkListing[];
}
export interface Schema$ApksAddExternallyHostedRequest {
/**
* The definition of the externally-hosted APK and where it is located.
*/
externallyHostedApk: Schema$ExternallyHostedApk;
}
export interface Schema$ApksAddExternallyHostedResponse {
/**
* The definition of the externally-hosted APK and where it is located.
*/
externallyHostedApk: Schema$ExternallyHostedApk;
}
export interface Schema$ApksListResponse {
apks: Schema$Apk[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "androidpublisher#apksListResponse".
*/
kind: string;
}
export interface Schema$AppDetails {
/**
* The user-visible support email for this app.
*/
contactEmail: string;
/**
* The user-visible support telephone number for this app.
*/
contactPhone: string;
/**
* The user-visible website for this app.
*/
contactWebsite: string;
/**
* Default language code, in BCP 47 format (eg "en-US").
*/
defaultLanguage: string;
}
/**
* Represents an edit of an app. An edit allows clients to make multiple changes
* before committing them in one operation.
*/
export interface Schema$AppEdit {
/**
* The time at which the edit will expire and will be no longer valid for use
* in any subsequent API calls (encoded as seconds since the Epoch).
*/
expiryTimeSeconds: string;
/**
* The ID of the edit that can be used in subsequent API calls.
*/
id: string;
}
export interface Schema$Comment {
/**
* A comment from a developer.
*/
developerComment: Schema$DeveloperComment;
/**
* A comment from a user.
*/
userComment: Schema$UserComment;
}
/**
* Represents a deobfuscation file.
*/
export interface Schema$DeobfuscationFile {
/**
* The type of the deobfuscation file.
*/
symbolType: string;
}
export interface Schema$DeobfuscationFilesUploadResponse {
deobfuscationFile: Schema$DeobfuscationFile;
}
export interface Schema$DeveloperComment {
/**
* The last time at which this comment was updated.
*/
lastModified: Schema$Timestamp;
/**
* The content of the comment, i.e. reply body.
*/
text: string;
}
export interface Schema$DeviceMetadata {
/**
* Device CPU make e.g. "Qualcomm"
*/
cpuMake: string;
/**
* Device CPU model e.g. "MSM8974"
*/
cpuModel: string;
/**
* Device class (e.g. tablet)
*/
deviceClass: string;
/**
* OpenGL version
*/
glEsVersion: number;
/**
* Device manufacturer (e.g. Motorola)
*/
manufacturer: string;
/**
* Comma separated list of native platforms (e.g. "arm",
* "arm7")
*/
nativePlatform: string;
/**
* Device model name (e.g. Droid)
*/
productName: string;
/**
* Device RAM in Megabytes e.g. "2048"
*/
ramMb: number;
/**
* Screen density in DPI
*/
screenDensityDpi: number;
/**
* Screen height in pixels
*/
screenHeightPx: number;
/**
* Screen width in pixels
*/
screenWidthPx: number;
}
export interface Schema$ExpansionFile {
/**
* If set this field indicates that this APK has an Expansion File uploaded to
* it: this APK does not reference another APK's Expansion File. The
* field's value is the size of the uploaded Expansion File in bytes.
*/
fileSize: string;
/**
* If set this APK's Expansion File references another APK's Expansion
* File. The file_size field will not be set.
*/
referencesVersion: number;
}
export interface Schema$ExpansionFilesUploadResponse {
expansionFile: Schema$ExpansionFile;
}
/**
* Defines an APK available for this application that is hosted externally and
* not uploaded to Google Play. This function is only available to enterprises
* who are using Google Play for Work, and whos application is restricted to the
* enterprise private channel
*/
export interface Schema$ExternallyHostedApk {
/**
* The application label.
*/
applicationLabel: string;
/**
* A certificate (or array of certificates if a certificate-chain is used)
* used to signed this APK, represented as a base64 encoded byte array.
*/
certificateBase64s: string[];
/**
* The URL at which the APK is hosted. This must be an https URL.
*/
externallyHostedUrl: string;
/**
* The SHA1 checksum of this APK, represented as a base64 encoded byte array.
*/
fileSha1Base64: string;
/**
* The SHA256 checksum of this APK, represented as a base64 encoded byte
* array.
*/
fileSha256Base64: string;
/**
* The file size in bytes of this APK.
*/
fileSize: string;
/**
* The icon image from the APK, as a base64 encoded byte array.
*/
iconBase64: string;
/**
* The maximum SDK supported by this APK (optional).
*/
maximumSdk: number;
/**
* The minimum SDK targeted by this APK.
*/
minimumSdk: number;
/**
* The native code environments supported by this APK (optional).
*/
nativeCodes: string[];
/**
* The package name.
*/
packageName: string;
/**
* The features required by this APK (optional).
*/
usesFeatures: string[];
/**
* The permissions requested by this APK.
*/
usesPermissions: Schema$ExternallyHostedApkUsesPermission[];
/**
* The version code of this APK.
*/
versionCode: number;
/**
* The version name of this APK.
*/
versionName: string;
}
/**
* A permission used by this APK.
*/
export interface Schema$ExternallyHostedApkUsesPermission {
/**
* Optionally, the maximum SDK version for which the permission is required.
*/
maxSdkVersion: number;
/**
* The name of the permission requested.
*/
name: string;
}
export interface Schema$Image {
/**
* A unique id representing this image.
*/
id: string;
/**
* A sha1 hash of the image that was uploaded.
*/
sha1: string;
/**
* A URL that will serve a preview of the image.
*/
url: string;
}
export interface Schema$ImagesDeleteAllResponse {
deleted: Schema$Image[];
}
export interface Schema$ImagesListResponse {
images: Schema$Image[];
}
export interface Schema$ImagesUploadResponse {
image: Schema$Image;
}
export interface Schema$InAppProduct {
/**
* The default language of the localized data, as defined by BCP 47. e.g.
* "en-US", "en-GB".
*/
defaultLanguage: string;
/**
* Default price cannot be zero. In-app products can never be free. Default
* price is always in the developer's Checkout merchant currency.
*/
defaultPrice: Schema$Price;
/**
* List of localized title and description data.
*/
listings: any;
/**
* The package name of the parent app.
*/
packageName: string;
/**
* Prices per buyer region. None of these prices should be zero. In-app
* products can never be free.
*/
prices: any;
/**
* Purchase type enum value. Unmodifiable after creation.
*/
purchaseType: string;
/**
* Definition of a season for a seasonal subscription. Can be defined only for
* yearly subscriptions.
*/
season: Schema$Season;
/**
* The stock-keeping-unit (SKU) of the product, unique within an app.
*/
sku: string;
status: string;
/**
* Subscription period, specified in ISO 8601 format. Acceptable values are
* "P1W" (one week), "P1M" (one month), "P3M"
* (three months), "P6M" (six months), and "P1Y" (one
* year).
*/
subscriptionPeriod: string;
/**
* Trial period, specified in ISO 8601 format. Acceptable values are anything
* between "P7D" (seven days) and "P999D" (999 days).
* Seasonal subscriptions cannot have a trial period.
*/
trialPeriod: string;
}
export interface Schema$InAppProductListing {
description: string;
title: string;
}
export interface Schema$InappproductsListResponse {
inappproduct: Schema$InAppProduct[];
/**
* Identifies what kind of resource this is. Value: the fixed string
* "androidpublisher#inappproductsListResponse".
*/
kind: string;
pageInfo: Schema$PageInfo;
tokenPagination: Schema$TokenPagination;
}
export interface Schema$Listing {
/**
* Full description of the app; this may be up to 4000 characters in length.
*/
fullDescription: string;
/**
* Language localization code (for example, "de-AT" for Austrian
* German).
*/
language: string;
/**
* Short description of the app (previously known as promo text); this may be
* up to 80 characters in length.
*/
shortDescription: string;
/**
* App's localized title.
*/
title: string;
/**
* URL of a promotional YouTube video for the app.
*/
video: string;
}
export interface Schema$ListingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "androidpublisher#listingsListResponse".
*/
kind: string;
listings: Schema$Listing[];
}
export interface Schema$MonthDay {
/**
* Day of a month, value in [1, 31] range. Valid range depends on the
* specified month.
*/
day: number;
/**
* Month of a year. e.g. 1 = JAN, 2 = FEB etc.
*/
month: number;
}
export interface Schema$PageInfo {
resultPerPage: number;
startIndex: number;
totalResults: number;
}
export interface Schema$Price {
/**
* 3 letter Currency code, as defined by ISO 4217.
*/
currency: string;
/**
* The price in millionths of the currency base unit represented as a string.
*/
priceMicros: string;
}
/**
* A ProductPurchase resource indicates the status of a user's inapp product
* purchase.
*/
export interface Schema$ProductPurchase {
/**
* The consumption state of the inapp product. Possible values are: - Yet to
* be consumed - Consumed
*/
consumptionState: number;
/**
* A developer-specified string that contains supplemental information about
* an order.
*/
developerPayload: string;
/**
* This kind represents an inappPurchase object in the androidpublisher
* service.
*/
kind: string;
/**
* The order id associated with the purchase of the inapp product.
*/
orderId: string;
/**
* The purchase state of the order. Possible values are: - Purchased -
* Canceled
*/
purchaseState: number;
/**
* The time the product was purchased, in milliseconds since the epoch (Jan 1,
* 1970).
*/
purchaseTimeMillis: string;
/**
* The type of purchase of the inapp product. This field is only set if this
* purchase was not made using the standard in-app billing flow. Possible
* values are: - Test (i.e. purchased from a license testing account) -
* Promo (i.e. purchased using a promo code)
*/
purchaseType: number;
}
export interface Schema$Prorate {
/**
* Default price cannot be zero and must be less than the full subscription
* price. Default price is always in the developer's Checkout merchant
* currency. Targeted countries have their prices set automatically based on
* the default_price.
*/
defaultPrice: Schema$Price;
/**
* Defines the first day on which the price takes effect.
*/
start: Schema$MonthDay;
}
export interface Schema$Review {
/**
* The name of the user who wrote the review.
*/
authorName: string;
/**
* A repeated field containing comments for the review.
*/
comments: Schema$Comment[];
/**
* Unique identifier for this review.
*/
reviewId: string;
}
export interface Schema$ReviewReplyResult {
/**
* The time at which the reply took effect.
*/
lastEdited: Schema$Timestamp;
/**
* The reply text that was applied.
*/
replyText: string;
}
export interface Schema$ReviewsListResponse {
pageInfo: Schema$PageInfo;
reviews: Schema$Review[];
tokenPagination: Schema$TokenPagination;
}
export interface Schema$ReviewsReplyRequest {
/**
* The text to set as the reply. Replies of more than approximately 350
* characters will be rejected. HTML tags will be stripped.
*/
replyText: string;
}
export interface Schema$ReviewsReplyResponse {
result: Schema$ReviewReplyResult;
}
export interface Schema$Season {
/**
* Inclusive end date of the recurrence period.
*/
end: Schema$MonthDay;
/**
* Optionally present list of prorations for the season. Each proration is a
* one-off discounted entry into a subscription. Each proration contains the
* first date on which the discount is available and the new pricing
* information.
*/
prorations: Schema$Prorate[];
/**
* Inclusive start date of the recurrence period.
*/
start: Schema$MonthDay;
}
/**
* A SubscriptionDeferralInfo contains the data needed to defer a subscription
* purchase to a future expiry time.
*/
export interface Schema$SubscriptionDeferralInfo {
/**
* The desired next expiry time to assign to the subscription, in milliseconds
* since the Epoch. The given time must be later/greater than the current
* expiry time for the subscription.
*/
desiredExpiryTimeMillis: string;
/**
* The expected expiry time for the subscription. If the current expiry time
* for the subscription is not the value specified here, the deferral will not
* occur.
*/
expectedExpiryTimeMillis: string;
}
/**
* A SubscriptionPurchase resource indicates the status of a user's
* subscription purchase.
*/
export interface Schema$SubscriptionPurchase {
/**
* Whether the subscription will automatically be renewed when it reaches its
* current expiry time.
*/
autoRenewing: boolean;
/**
* The reason why a subscription was canceled or is not auto-renewing.
* Possible values are: - User canceled the subscription - Subscription was
* canceled by the system, for example because of a billing problem -
* Subscription was replaced with a new subscription - Subscription was
* canceled by the developer
*/
cancelReason: number;
/**
* ISO 3166-1 alpha-2 billing country/region code of the user at the time the
* subscription was granted.
*/
countryCode: string;
/**
* A developer-specified string that contains supplemental information about
* an order.
*/
developerPayload: string;
/**
* The email address of the user when the subscription was purchased. Only
* present for purchases made with 'Subscribe with Google'.
*/
emailAddress: string;
/**
* Time at which the subscription will expire, in milliseconds since the
* Epoch.
*/
expiryTimeMillis: string;
/**
* The family name of the user when the subscription was purchased. Only
* present for purchases made with 'Subscribe with Google'.
*/
familyName: string;
/**
* The given name of the user when the subscription was purchased. Only
* present for purchases made with 'Subscribe with Google'.
*/
givenName: string;
/**
* This kind represents a subscriptionPurchase object in the androidpublisher
* service.
*/
kind: string;
/**
* The purchase token of the originating purchase if this subscription is one
* of the following: - Re-signup of a canceled but non-lapsed subscription
* - Upgrade/downgrade from a previous subscription For example, suppose a
* user originally signs up and you receive purchase token X, then the user
* cancels and goes through the resignup flow (before their subscription
* lapses) and you receive purchase token Y, and finally the user upgrades
* their subscription and you receive purchase token Z. If you call this API
* with purchase token Z, this field will be set to Y. If you call this API
* with purchase token Y, this field will be set to X. If you call this API
* with purchase token X, this field will not be set.
*/
linkedPurchaseToken: string;
/**
* The order id of the latest recurring order associated with the purchase of
* the subscription.
*/
orderId: string;
/**
* The payment state of the subscription. Possible values are: - Payment
* pending - Payment received - Free trial
*/
paymentState: number;
/**
* Price of the subscription, not including tax. Price is expressed in
* micro-units, where 1,000,000 micro-units represents one unit of the
* currency. For example, if the subscription price is €1.99,
* price_amount_micros is 1990000.
*/
priceAmountMicros: string;
/**
* ISO 4217 currency code for the subscription price. For example, if the
* price is specified in British pounds sterling, price_currency_code is
* "GBP".
*/
priceCurrencyCode: string;
/**
* The profile id of the user when the subscription was purchased. Only
* present for purchases made with 'Subscribe with Google'.
*/
profileId: string;
/**
* The profile name of the user when the subscription was purchased. Only
* present for purchases made with 'Subscribe with Google'.
*/
profileName: string;
/**
* The type of purchase of the subscription. This field is only set if this
* purchase was not made using the standard in-app billing flow. Possible
* values are: - Test (i.e. purchased from a license testing account)
*/
purchaseType: number;
/**
* Time at which the subscription was granted, in milliseconds since the
* Epoch.
*/
startTimeMillis: string;
/**
* The time at which the subscription was canceled by the user, in
* milliseconds since the epoch. Only present if cancelReason is 0.
*/
userCancellationTimeMillis: string;
}
export interface Schema$SubscriptionPurchasesDeferRequest {
/**
* The information about the new desired expiry time for the subscription.
*/
deferralInfo: Schema$SubscriptionDeferralInfo;
}
export interface Schema$SubscriptionPurchasesDeferResponse {
/**
* The new expiry time for the subscription in milliseconds since the Epoch.
*/
newExpiryTimeMillis: string;
}
export interface Schema$Testers {
googleGroups: string[];
googlePlusCommunities: string[];
}
export interface Schema$Timestamp {
nanos: number;
seconds: string;
}
export interface Schema$TokenPagination {
nextPageToken: string;
previousPageToken: string;
}
export interface Schema$Track {
/**
* Identifier for this track. One of "alpha", "beta",
* "production", "rollout" or "internal".
*/
track: string;
userFraction: number;
versionCodes: number[];
}
export interface Schema$TracksListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string
* "androidpublisher#tracksListResponse".
*/
kind: string;
tracks: Schema$Track[];
}
export interface Schema$UserComment {
/**
* Integer Android SDK version of the user's device at the time the review
* was written, e.g. 23 is Marshmallow. May be absent.
*/
androidOsVersion: number;
/**
* Integer version code of the app as installed at the time the review was
* written. May be absent.
*/
appVersionCode: number;
/**
* String version name of the app as installed at the time the review was
* written. May be absent.
*/
appVersionName: string;
/**
* Codename for the reviewer's device, e.g. klte, flounder. May be absent.
*/
device: string;
/**
* Some information about the characteristics of the user's device
*/
deviceMetadata: Schema$DeviceMetadata;
/**
* The last time at which this comment was updated.
*/
lastModified: Schema$Timestamp;
/**
* Untranslated text of the review, in the case where the review has been
* translated. If the review has not been translated this is left blank.
*/
originalText: string;
/**
* Language code for the reviewer. This is taken from the device settings so
* is not guaranteed to match the language the review is written in. May be
* absent.
*/
reviewerLanguage: string;
/**
* The star rating associated with the review, from 1 to 5.
*/
starRating: number;
/**
* The content of the comment, i.e. review body. In some cases users have been
* able to write a review with separate title and body; in those cases the
* title and body are concatenated and separated by a tab character.
*/
text: string;
/**
* Number of users who have given this review a thumbs down
*/
thumbsDownCount: number;
/**
* Number of users who have given this review a thumbs up
*/
thumbsUpCount: number;
}
/**
* A VoidedPurchase resource indicates a purchase that was either
* canceled/refunded/charged-back.
*/
export interface Schema$VoidedPurchase {
/**
* This kind represents a voided purchase object in the androidpublisher
* service.
*/
kind: string;
/**
* The time at which the purchase was made, in milliseconds since the epoch
* (Jan 1, 1970).
*/
purchaseTimeMillis: string;
/**
* The token that was generated when a purchase was made. This uniquely
* identifies a purchase.
*/
purchaseToken: string;
/**
* The time at which the purchase was canceled/refunded/charged-back, in
* milliseconds since the epoch (Jan 1, 1970).
*/
voidedTimeMillis: string;
}
export interface Schema$VoidedPurchasesListResponse {
pageInfo: Schema$PageInfo;
tokenPagination: Schema$TokenPagination;
voidedPurchases: Schema$VoidedPurchase[];
}
export declare class Resource$Edits {
root: Androidpublisher;
apklistings: Resource$Edits$Apklistings;
apks: Resource$Edits$Apks;
deobfuscationfiles: Resource$Edits$Deobfuscationfiles;
details: Resource$Edits$Details;
expansionfiles: Resource$Edits$Expansionfiles;
images: Resource$Edits$Images;
listings: Resource$Edits$Listings;
testers: Resource$Edits$Testers;
tracks: Resource$Edits$Tracks;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.commit
* @desc Commits/applies the changes made in this edit back to the app.
* @alias androidpublisher.edits.commit
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
commit(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppEdit>;
commit(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback?: BodyResponseCallback<Schema$AppEdit>): void;
/**
* androidpublisher.edits.delete
* @desc Deletes an edit for an app. Creating a new edit will automatically
* delete any of your previous edits so this method need only be called if you
* want to preemptively abandon an edit.
* @alias androidpublisher.edits.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: any, options?: MethodOptions): AxiosPromise<void>;
delete(params?: any, options?: MethodOptions | BodyResponseCallback<void>, callback?: BodyResponseCallback<void>): void;
/**
* androidpublisher.edits.get
* @desc Returns information about the edit specified. Calls will fail if the
* edit is no long active (e.g. has been deleted, superseded or expired).
* @alias androidpublisher.edits.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppEdit>;
get(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback?: BodyResponseCallback<Schema$AppEdit>): void;
/**
* androidpublisher.edits.insert
* @desc Creates a new edit for an app, populated with the app's current
* state.
* @alias androidpublisher.edits.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().AppEdit} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppEdit>;
insert(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback?: BodyResponseCallback<Schema$AppEdit>): void;
/**
* androidpublisher.edits.validate
* @desc Checks that the edit can be successfully committed. The edit's
* changes are not applied to the live app.
* @alias androidpublisher.edits.validate
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
validate(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppEdit>;
validate(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback?: BodyResponseCallback<Schema$AppEdit>): void;
}
export declare class Resource$Edits$Apklistings {
root: Androidpublisher;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.apklistings.delete
* @desc Deletes the APK-specific localized listing for a specified APK and
* language code.
* @alias androidpublisher.edits.apklistings.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT".
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: any, options?: MethodOptions): AxiosPromise<void>;
delete(params?: any, options?: MethodOptions | BodyResponseCallback<void>, callback?: BodyResponseCallback<void>): void;
/**
* androidpublisher.edits.apklistings.deleteall
* @desc Deletes all the APK-specific localized listings for a specified APK.
* @alias androidpublisher.edits.apklistings.deleteall
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
deleteall(params?: any, options?: MethodOptions): AxiosPromise<void>;
deleteall(params?: any, options?: MethodOptions | BodyResponseCallback<void>, callback?: BodyResponseCallback<void>): void;
/**
* androidpublisher.edits.apklistings.get
* @desc Fetches the APK-specific localized listing for a specified APK and
* language code.
* @alias androidpublisher.edits.apklistings.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT".
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApkListing>;
get(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApkListing>, callback?: BodyResponseCallback<Schema$ApkListing>): void;
/**
* androidpublisher.edits.apklistings.list
* @desc Lists all the APK-specific localized listings for a specified APK.
* @alias androidpublisher.edits.apklistings.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApkListingsListResponse>;
list(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApkListingsListResponse>, callback?: BodyResponseCallback<Schema$ApkListingsListResponse>): void;
/**
* androidpublisher.edits.apklistings.patch
* @desc Updates or creates the APK-specific localized listing for a specified
* APK and language code. This method supports patch semantics.
* @alias androidpublisher.edits.apklistings.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT".
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().ApkListing} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApkListing>;
patch(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApkListing>, callback?: BodyResponseCallback<Schema$ApkListing>): void;
/**
* androidpublisher.edits.apklistings.update
* @desc Updates or creates the APK-specific localized listing for a specified
* APK and language code.
* @alias androidpublisher.edits.apklistings.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The APK version code whose APK-specific listings should be read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.language The language code (a BCP-47 language tag) of the APK-specific localized listing to read or modify. For example, to select Austrian German, pass "de-AT".
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().ApkListing} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApkListing>;
update(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApkListing>, callback?: BodyResponseCallback<Schema$ApkListing>): void;
}
export declare class Resource$Edits$Apks {
root: Androidpublisher;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.apks.addexternallyhosted
* @desc 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 enterprises using Google Play for Work whose application is configured
* to restrict distribution to the enterprise domain.
* @alias androidpublisher.edits.apks.addexternallyhosted
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().ApksAddExternallyHostedRequest} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
addexternallyhosted(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApksAddExternallyHostedResponse>;
addexternallyhosted(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApksAddExternallyHostedResponse>, callback?: BodyResponseCallback<Schema$ApksAddExternallyHostedResponse>): void;
/**
* androidpublisher.edits.apks.list
* @alias androidpublisher.edits.apks.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: any, options?: MethodOptions): AxiosPromise<Schema$ApksListResponse>;
list(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ApksListResponse>, callback?: BodyResponseCallback<Schema$ApksListResponse>): void;
/**
* androidpublisher.edits.apks.upload
* @alias androidpublisher.edits.apks.upload
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} params.media Media object
* @param {string} params.media.mimeType Media mime-type
* @param {string|object} params.media.body Media body contents
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
upload(params?: any, options?: MethodOptions): AxiosPromise<Schema$Apk>;
upload(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$Apk>, callback?: BodyResponseCallback<Schema$Apk>): void;
}
export declare class Resource$Edits$Deobfuscationfiles {
root: Androidpublisher;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.deobfuscationfiles.upload
* @desc Uploads the deobfuscation file of the specified APK. If a
* deobfuscation file already exists, it will be replaced.
* @alias androidpublisher.edits.deobfuscationfiles.upload
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The version code of the APK whose deobfuscation file is being uploaded.
* @param {string} params.deobfuscationFileType
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier of the Android app for which the deobfuscatiuon files are being uploaded; for example, "com.spiffygame".
* @param {object} params.media Media object
* @param {string} params.media.mimeType Media mime-type
* @param {string|object} params.media.body Media body contents
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
upload(params?: any, options?: MethodOptions): AxiosPromise<Schema$DeobfuscationFilesUploadResponse>;
upload(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$DeobfuscationFilesUploadResponse>, callback?: BodyResponseCallback<Schema$DeobfuscationFilesUploadResponse>): void;
}
export declare class Resource$Edits$Details {
root: Androidpublisher;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.details.get
* @desc Fetches app details for this edit. This includes the default language
* and developer support contact information.
* @alias androidpublisher.edits.details.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppDetails>;
get(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppDetails>, callback?: BodyResponseCallback<Schema$AppDetails>): void;
/**
* androidpublisher.edits.details.patch
* @desc Updates app details for this edit. This method supports patch
* semantics.
* @alias androidpublisher.edits.details.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().AppDetails} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppDetails>;
patch(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppDetails>, callback?: BodyResponseCallback<Schema$AppDetails>): void;
/**
* androidpublisher.edits.details.update
* @desc Updates app details for this edit.
* @alias androidpublisher.edits.details.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().AppDetails} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: any, options?: MethodOptions): AxiosPromise<Schema$AppDetails>;
update(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$AppDetails>, callback?: BodyResponseCallback<Schema$AppDetails>): void;
}
export declare class Resource$Edits$Expansionfiles {
root: Androidpublisher;
constructor(root: Androidpublisher);
getRoot(): Androidpublisher;
/**
* androidpublisher.edits.expansionfiles.get
* @desc Fetches the Expansion File configuration for the APK specified.
* @alias androidpublisher.edits.expansionfiles.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The version code of the APK whose Expansion File configuration is being read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.expansionFileType
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: any, options?: MethodOptions): AxiosPromise<Schema$ExpansionFile>;
get(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ExpansionFile>, callback?: BodyResponseCallback<Schema$ExpansionFile>): void;
/**
* androidpublisher.edits.expansionfiles.patch
* @desc Updates the APK's Expansion File configuration to reference another
* APK's Expansion Files. To add a new Expansion File use the Upload method.
* This method supports patch semantics.
* @alias androidpublisher.edits.expansionfiles.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The version code of the APK whose Expansion File configuration is being read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.expansionFileType
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().ExpansionFile} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: any, options?: MethodOptions): AxiosPromise<Schema$ExpansionFile>;
patch(params?: any, options?: MethodOptions | BodyResponseCallback<Schema$ExpansionFile>, callback?: BodyResponseCallback<Schema$ExpansionFile>): void;
/**
* androidpublisher.edits.expansionfiles.update
* @desc Updates the APK's Expansion File configuration to reference another
* APK's Expansion Files. To add a new Expansion File use the Upload method.
* @alias androidpublisher.edits.expansionfiles.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer} params.apkVersionCode The version code of the APK whose Expansion File configuration is being read or modified.
* @param {string} params.editId Unique identifier for this edit.
* @param {string} params.expansionFileType
* @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
* @param {().ExpansionFile} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: any, options?: MethodOptions): AxiosPromise<Schema$ExpansionFile>;
update(params?: any, options?: M