googleapis
Version:
Google APIs Client Library for Node.js
1,121 lines • 160 kB
TypeScript
/**
* Copyright 2019 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
*
* 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 { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace androidpublisher_v2 {
interface Options extends GlobalOptions {
version: 'v2';
}
interface StandardParameters {
/**
* Data format for the response.
*/
alt?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* 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.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
*/
userIp?: string;
}
/**
* Google Play Developer API
*
* Accesses Android application developers' 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
*/
class Androidpublisher {
context: APIRequestContext;
edits: Resource$Edits;
inappproducts: Resource$Inappproducts;
orders: Resource$Orders;
purchases: Resource$Purchases;
reviews: Resource$Reviews;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
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.
*/
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;
}
interface Schema$ApkListing {
/**
* The language code, in BCP 47 format (eg "en-US").
*/
language?: string;
/**
* Describe what's new in your APK.
*/
recentChanges?: string;
}
interface Schema$ApkListingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidpublisher#apkListingsListResponse".
*/
kind?: string;
listings?: Schema$ApkListing[];
}
interface Schema$ApksAddExternallyHostedRequest {
/**
* The definition of the externally-hosted APK and where it is located.
*/
externallyHostedApk?: Schema$ExternallyHostedApk;
}
interface Schema$ApksAddExternallyHostedResponse {
/**
* The definition of the externally-hosted APK and where it is located.
*/
externallyHostedApk?: Schema$ExternallyHostedApk;
}
interface Schema$ApksListResponse {
apks?: Schema$Apk[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidpublisher#apksListResponse".
*/
kind?: string;
}
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.
*/
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;
}
interface Schema$Bundle {
/**
* A sha1 hash of the upload payload, encoded as a hex string and matching the output of the sha1sum command.
*/
sha1?: string;
/**
* A sha256 hash of the upload payload, encoded as a hex string and matching the output of the sha256sum command.
*/
sha256?: string;
/**
* The version code of the Android App Bundle. As specified in the Android App Bundle's base module APK manifest file.
*/
versionCode?: number;
}
interface Schema$BundlesListResponse {
bundles?: Schema$Bundle[];
/**
* Identifies what kind of resource this is. Value: the fixed string "androidpublisher#bundlesListResponse".
*/
kind?: string;
}
interface Schema$Comment {
/**
* A comment from a developer.
*/
developerComment?: Schema$DeveloperComment;
/**
* A comment from a user.
*/
userComment?: Schema$UserComment;
}
/**
* Represents a deobfuscation file.
*/
interface Schema$DeobfuscationFile {
/**
* The type of the deobfuscation file.
*/
symbolType?: string;
}
interface Schema$DeobfuscationFilesUploadResponse {
deobfuscationFile?: Schema$DeobfuscationFile;
}
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;
}
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;
}
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;
}
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
*/
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.
*/
interface Schema$ExternallyHostedApkUsesPermission {
/**
* Optionally, the maximum SDK version for which the permission is required.
*/
maxSdkVersion?: number;
/**
* The name of the permission requested.
*/
name?: string;
}
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;
}
interface Schema$ImagesDeleteAllResponse {
deleted?: Schema$Image[];
}
interface Schema$ImagesListResponse {
images?: Schema$Image[];
}
interface Schema$ImagesUploadResponse {
image?: Schema$Image;
}
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;
/**
* Grace period of the subscription, specified in ISO 8601 format. It will allow developers to give their subscribers a grace period when the payment for the new recurrence period is declined. Acceptable values = "P3D" (three days) and "P7D" (seven days)
*/
gracePeriod?: string;
/**
* List of localized title and description data.
*/
listings?: {
[key: string]: Schema$InAppProductListing;
};
/**
* 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?: {
[key: string]: Schema$Price;
};
/**
* 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;
}
interface Schema$InAppProductListing {
description?: string;
title?: string;
}
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;
}
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;
}
interface Schema$ListingsListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidpublisher#listingsListResponse".
*/
kind?: string;
listings?: Schema$Listing[];
}
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;
}
interface Schema$PageInfo {
resultPerPage?: number;
startIndex?: number;
totalResults?: number;
}
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.
*/
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 - Pending
*/
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) - Rewarded (i.e. from watching a video ad instead of paying)
*/
purchaseType?: number;
}
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;
}
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;
}
interface Schema$ReviewReplyResult {
/**
* The time at which the reply took effect.
*/
lastEdited?: Schema$Timestamp;
/**
* The reply text that was applied.
*/
replyText?: string;
}
interface Schema$ReviewsListResponse {
pageInfo?: Schema$PageInfo;
reviews?: Schema$Review[];
tokenPagination?: Schema$TokenPagination;
}
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;
}
interface Schema$ReviewsReplyResponse {
result?: Schema$ReviewReplyResult;
}
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;
}
/**
* Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
*/
interface Schema$SubscriptionCancelSurveyResult {
/**
* The cancellation reason the user chose in the survey. Possible values are: - Other - I don't use this service enough - Technical issues - Cost-related reasons - I found a better app
*/
cancelSurveyReason?: number;
/**
* The customized input cancel reason from the user. Only present when cancelReason is 0.
*/
userInputCancelReason?: string;
}
/**
* A SubscriptionDeferralInfo contains the data needed to defer a subscription purchase to a future expiry time.
*/
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;
}
/**
* Contains the price change information for a subscription that can be used to control the user journey for the price change in the app. This can be in the form of seeking confirmation from the user or tailoring the experience for a successful conversion.
*/
interface Schema$SubscriptionPriceChange {
/**
* The new price the subscription will renew with if the price change is accepted by the user.
*/
newPrice?: Schema$Price;
/**
* The current state of the price change. Possible values are: - Outstanding: State for a pending price change waiting for the user to agree. In this state, you can optionally seek confirmation from the user using the In-App API. - Accepted: State for an accepted price change that the subscription will renew with unless it's canceled. The price change takes effect on a future date when the subscription renews. Note that the change might not occur when the subscription is renewed next.
*/
state?: number;
}
/**
* A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
*/
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;
/**
* Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey).
*/
cancelSurveyResult?: Schema$SubscriptionCancelSurveyResult;
/**
* 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 - Pending deferred upgrade/downgrade
*/
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;
/**
* The latest price change information available. This is present only when there is an upcoming price change for the subscription yet to be applied. Once the subscription renews with the new price or the subscription is canceled, no price change information will be returned.
*/
priceChange?: Schema$SubscriptionPriceChange;
/**
* 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 Google 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;
}
interface Schema$SubscriptionPurchasesDeferRequest {
/**
* The information about the new desired expiry time for the subscription.
*/
deferralInfo?: Schema$SubscriptionDeferralInfo;
}
interface Schema$SubscriptionPurchasesDeferResponse {
/**
* The new expiry time for the subscription in milliseconds since the Epoch.
*/
newExpiryTimeMillis?: string;
}
interface Schema$Testers {
/**
* A list of all Google Groups, as email addresses, that define testers for this track.
*/
googleGroups?: string[];
/**
* A list of all Google+ Communities, as URLs, that define testers for this track.
*/
googlePlusCommunities?: string[];
}
interface Schema$Timestamp {
nanos?: number;
seconds?: string;
}
interface Schema$TokenPagination {
nextPageToken?: string;
previousPageToken?: string;
}
interface Schema$Track {
/**
* Identifier for this track.
*/
track?: string;
userFraction?: number;
/**
* Version codes to make active on this track. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases.
*/
versionCodes?: number[];
}
interface Schema$TracksListResponse {
/**
* Identifies what kind of resource this is. Value: the fixed string "androidpublisher#tracksListResponse".
*/
kind?: string;
tracks?: Schema$Track[];
}
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.
*/
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;
}
interface Schema$VoidedPurchasesListResponse {
pageInfo?: Schema$PageInfo;
tokenPagination?: Schema$TokenPagination;
voidedPurchases?: Schema$VoidedPurchase[];
}
class Resource$Edits {
context: APIRequestContext;
apklistings: Resource$Edits$Apklistings;
apks: Resource$Edits$Apks;
bundles: Resource$Edits$Bundles;
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(context: APIRequestContext);
/**
* 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?: Params$Resource$Edits$Commit, options?: MethodOptions): GaxiosPromise<Schema$AppEdit>;
commit(params: Params$Resource$Edits$Commit, options: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback: BodyResponseCallback<Schema$AppEdit>): void;
commit(params: Params$Resource$Edits$Commit, callback: BodyResponseCallback<Schema$AppEdit>): void;
commit(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?: Params$Resource$Edits$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Edits$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Edits$Delete, callback: BodyResponseCallback<void>): void;
delete(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?: Params$Resource$Edits$Get, options?: MethodOptions): GaxiosPromise<Schema$AppEdit>;
get(params: Params$Resource$Edits$Get, options: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback: BodyResponseCallback<Schema$AppEdit>): void;
get(params: Params$Resource$Edits$Get, callback: BodyResponseCallback<Schema$AppEdit>): void;
get(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?: Params$Resource$Edits$Insert, options?: MethodOptions): GaxiosPromise<Schema$AppEdit>;
insert(params: Params$Resource$Edits$Insert, options: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback: BodyResponseCallback<Schema$AppEdit>): void;
insert(params: Params$Resource$Edits$Insert, callback: BodyResponseCallback<Schema$AppEdit>): void;
insert(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?: Params$Resource$Edits$Validate, options?: MethodOptions): GaxiosPromise<Schema$AppEdit>;
validate(params: Params$Resource$Edits$Validate, options: MethodOptions | BodyResponseCallback<Schema$AppEdit>, callback: BodyResponseCallback<Schema$AppEdit>): void;
validate(params: Params$Resource$Edits$Validate, callback: BodyResponseCallback<Schema$AppEdit>): void;
validate(callback: BodyResponseCallback<Schema$AppEdit>): void;
}
interface Params$Resource$Edits$Commit extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Unique identifier for this edit.
*/
editId?: string;
/**
* Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
*/
packageName?: string;
}
interface Params$Resource$Edits$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Unique identifier for this edit.
*/
editId?: string;
/**
* Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
*/
packageName?: string;
}
interface Params$Resource$Edits$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Unique identifier for this edit.
*/
editId?: string;
/**
* Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
*/
packageName?: string;
}
interface Params$Resource$Edits$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
*/
packageName?: string;
/**
* Request body metadata
*/
requestBody?: Schema$AppEdit;
}
interface Params$Resource$Edits$Validate extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Unique identifier for this edit.
*/
editId?: string;
/**
* Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
*/
packageName?: string;
}
class Resource$Edits$Apklistings {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* 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?: Params$Resource$Edits$Apklistings$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Edits$Apklistings$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Edits$Apklistings$Delete, callback: BodyResponseCallback<void>): void;
delete(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?: Params$Resource$Edits$Apklistings$Deleteall, options?: MethodOptions): GaxiosPromise<void>;
deleteall(params: Params$Resource$Edits$Apklistings$Deleteall, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
deleteall(params: Params$Resource$Edits$Apklistings$Deleteall, callback: BodyResponseCallback<void>): void;
deleteall(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?: Params$Resource$Edits$Apklistings$Get, options?: MethodOptions): GaxiosPromise<Schema$ApkListing>;
get(params: Params$Resource$Edits$Apklistings$Get, options: MethodOptions | BodyResponseCallback<Schema$ApkListing>, callback: BodyResponseCallback<Schema$ApkListing>): void;
get(params: Params$Resource$Edits$Apklistings$Get, callback: BodyResponseCallback<Schema$ApkListing>): void;
get(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?: Params$Resource$Edits$Apklistings$List, options?: MethodOptions): GaxiosPromise<Schema$ApkListingsListResponse>;
list(params: Params$Resource$Edits$Apklistings$List, options: MethodOptions | BodyResponseCallback<Schema$ApkListingsListResponse>, callback: BodyResponseCallback<Schema$ApkListingsListResponse>): void;
list(params: Params$Resource$Edits$Apklistings$List, callback: BodyResponseCallback<Schema$ApkListingsListResponse>): void;
list(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?: Params$Resource$Edits$Apklistings$Patch, options?: MethodOptions): GaxiosPromise<Schema$ApkListing>;
patch(params: Params$Resource$Edits$Apklistings$Patch, options: MethodOptions | BodyResponseCallback<Schema$ApkListing>, callback: BodyResponseCallback<Schema$ApkListing>): void;
patch(params: Params$Resource$Edits$Apklistings$Patch, callback: BodyResponseCallback<Schema$ApkListing>): void;
patch(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.pack