Bump version to 1.0.9; update JSON schemas; add new APIs

This commit is contained in:
Sebastian Thiel
2019-07-05 11:32:35 +08:00
parent 99e97ceece
commit e42ebc0c2b
2442 changed files with 190984 additions and 71186 deletions

View File

@@ -15,7 +15,7 @@
"description": "Accesses Android application developers' Google Play accounts.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android-publisher",
"etag": "\"VPK3KBfpaEgZ16pozGOoMYfKc0U/mMZW6Q2vSHYGy6aNeVUMU2HLbYU\"",
"etag": "\"9eZ1uxVRThTDhLJCZHhqs3eQWz4/tLEn1KkE5NEmlpywSz1Qx5p8WMk\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
@@ -1344,9 +1344,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1381,9 +1380,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1421,9 +1419,8 @@
"type": "string"
},
"track": {
"description": "The track to read or modify. Acceptable values are: \"alpha\", \"beta\", \"production\", \"rollout\" or \"internal\".",
"description": "The track to read or modify.",
"location": "path",
"pattern": "(alpha|beta|production|rollout|internal)",
"required": true,
"type": "string"
}
@@ -1511,7 +1508,7 @@
]
},
"patch": {
"description": "Updates the track configuration for the specified track type. When halted, the rollout track cannot be updated without adding new APKs, and adding new APKs will cause it to resume. This method supports patch semantics.",
"description": "Updates the track configuration for the specified track type. This method supports patch semantics.",
"httpMethod": "PATCH",
"id": "androidpublisher.edits.tracks.patch",
"parameterOrder": [
@@ -1551,7 +1548,7 @@
]
},
"update": {
"description": "Updates the track configuration for the specified track type. When halted, the rollout track cannot be updated without adding new APKs, and adding new APKs will cause it to resume.",
"description": "Updates the track configuration for the specified track type.",
"httpMethod": "PUT",
"id": "androidpublisher.edits.tracks.update",
"parameterOrder": [
@@ -1798,6 +1795,91 @@
}
}
},
"internalappsharingartifacts": {
"methods": {
"uploadapk": {
"description": "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: https://developers.google.com/api-client-library/java/google-api-java-client/errors for an example in java.",
"httpMethod": "POST",
"id": "androidpublisher.internalappsharingartifacts.uploadapk",
"mediaUpload": {
"accept": [
"application/octet-stream",
"application/vnd.android.package-archive"
],
"maxSize": "1GB",
"protocols": {
"resumable": {
"multipart": true,
"path": "/resumable/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"
},
"simple": {
"multipart": true,
"path": "/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk"
}
}
},
"parameterOrder": [
"packageName"
],
"parameters": {
"packageName": {
"description": "Unique identifier for the Android app; for example, \"com.spiffygame\".",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "internalappsharing/{packageName}/artifacts/apk",
"response": {
"$ref": "InternalAppSharingArtifact"
},
"scopes": [
"https://www.googleapis.com/auth/androidpublisher"
],
"supportsMediaUpload": true
},
"uploadbundle": {
"description": "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: https://developers.google.com/api-client-library/java/google-api-java-client/errors for an example in java.",
"httpMethod": "POST",
"id": "androidpublisher.internalappsharingartifacts.uploadbundle",
"mediaUpload": {
"accept": [
"application/octet-stream"
],
"maxSize": "2GB",
"protocols": {
"resumable": {
"multipart": true,
"path": "/resumable/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"
},
"simple": {
"multipart": true,
"path": "/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle"
}
}
},
"parameterOrder": [
"packageName"
],
"parameters": {
"packageName": {
"description": "Unique identifier for the Android app; for example, \"com.spiffygame\".",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "internalappsharing/{packageName}/artifacts/bundle",
"response": {
"$ref": "InternalAppSharingArtifact"
},
"scopes": [
"https://www.googleapis.com/auth/androidpublisher"
],
"supportsMediaUpload": true
}
}
},
"orders": {
"methods": {
"refund": {
@@ -1838,6 +1920,43 @@
"resources": {
"products": {
"methods": {
"acknowledge": {
"description": "Acknowledges a purchase of an inapp item.",
"httpMethod": "POST",
"id": "androidpublisher.purchases.products.acknowledge",
"parameterOrder": [
"packageName",
"productId",
"token"
],
"parameters": {
"packageName": {
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
"location": "path",
"required": true,
"type": "string"
},
"productId": {
"description": "The inapp product SKU (for example, 'com.some.thing.inapp1').",
"location": "path",
"required": true,
"type": "string"
},
"token": {
"description": "The token provided to the user's device when the subscription was purchased.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge",
"request": {
"$ref": "ProductPurchasesAcknowledgeRequest"
},
"scopes": [
"https://www.googleapis.com/auth/androidpublisher"
]
},
"get": {
"description": "Checks the purchase and consumption status of an inapp item.",
"httpMethod": "GET",
@@ -1879,6 +1998,43 @@
},
"subscriptions": {
"methods": {
"acknowledge": {
"description": "Acknowledges a subscription purchase.",
"httpMethod": "POST",
"id": "androidpublisher.purchases.subscriptions.acknowledge",
"parameterOrder": [
"packageName",
"subscriptionId",
"token"
],
"parameters": {
"packageName": {
"description": "The package name of the application for which this subscription was purchased (for example, 'com.some.thing').",
"location": "path",
"required": true,
"type": "string"
},
"subscriptionId": {
"description": "The purchased subscription ID (for example, 'monthly001').",
"location": "path",
"required": true,
"type": "string"
},
"token": {
"description": "The token provided to the user's device when the subscription was purchased.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge",
"request": {
"$ref": "SubscriptionPurchasesAcknowledgeRequest"
},
"scopes": [
"https://www.googleapis.com/auth/androidpublisher"
]
},
"cancel": {
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
"httpMethod": "POST",
@@ -2226,7 +2382,7 @@
}
}
},
"revision": "20190402",
"revision": "20190702",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Apk": {
@@ -2758,6 +2914,50 @@
},
"type": "object"
},
"InternalAppSharingArtifact": {
"description": "An artifact resource which gets created when uploading an APK or Android App Bundle through internal app sharing.",
"id": "InternalAppSharingArtifact",
"properties": {
"certificateFingerprint": {
"description": "The SHA256 fingerprint of the certificate used to signed the generated artifact.",
"type": "string"
},
"downloadUrl": {
"description": "The download URL generated for the uploaded artifact. Users that are authorized to download can follow the link to the Play Store app to install it.",
"type": "string"
},
"sha256": {
"description": "The SHA-256 hash of the artifact represented as a lowercase hexadecimal number, matching the output of the sha256sum command.",
"type": "string"
}
},
"type": "object"
},
"IntroductoryPriceInfo": {
"description": "Contains the introductory price information for a subscription.",
"id": "IntroductoryPriceInfo",
"properties": {
"introductoryPriceAmountMicros": {
"description": "Introductory price of the subscription, not including tax. The currency is the same as price_currency_code. 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 \u20ac1.99, price_amount_micros is 1990000.",
"format": "int64",
"type": "string"
},
"introductoryPriceCurrencyCode": {
"description": "ISO 4217 currency code for the introductory subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is \"GBP\".",
"type": "string"
},
"introductoryPriceCycles": {
"description": "The number of billing period to offer introductory pricing.",
"format": "int32",
"type": "integer"
},
"introductoryPricePeriod": {
"description": "Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) \"P1W\" (one week), \"P1M\" (one month), \"P3M\" (three months), \"P6M\" (six months), and \"P1Y\" (one year).",
"type": "string"
}
},
"type": "object"
},
"Listing": {
"id": "Listing",
"properties": {
@@ -2867,6 +3067,11 @@
"description": "A ProductPurchase resource indicates the status of a user's inapp product purchase.",
"id": "ProductPurchase",
"properties": {
"acknowledgementState": {
"description": "The acknowledgement state of the inapp product. Possible values are: \n- Yet to be acknowledged \n- Acknowledged",
"format": "int32",
"type": "integer"
},
"consumptionState": {
"description": "The consumption state of the inapp product. Possible values are: \n- Yet to be consumed \n- Consumed",
"format": "int32",
@@ -2886,7 +3091,7 @@
"type": "string"
},
"purchaseState": {
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled",
"description": "The purchase state of the order. Possible values are: \n- Purchased \n- Canceled \n- Pending",
"format": "int32",
"type": "integer"
},
@@ -2903,6 +3108,16 @@
},
"type": "object"
},
"ProductPurchasesAcknowledgeRequest": {
"id": "ProductPurchasesAcknowledgeRequest",
"properties": {
"developerPayload": {
"description": "Payload to attach to the purchase.",
"type": "string"
}
},
"type": "object"
},
"Prorate": {
"id": "Prorate",
"properties": {
@@ -3063,6 +3278,11 @@
"description": "A SubscriptionPurchase resource indicates the status of a user's subscription purchase.",
"id": "SubscriptionPurchase",
"properties": {
"acknowledgementState": {
"description": "The acknowledgement state of the subscription product. Possible values are: \n- Yet to be acknowledged \n- Acknowledged",
"format": "int32",
"type": "integer"
},
"autoRenewing": {
"description": "Whether the subscription will automatically be renewed when it reaches its current expiry time.",
"type": "boolean"
@@ -3106,6 +3326,10 @@
"description": "The given name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"introductoryPriceInfo": {
"$ref": "IntroductoryPriceInfo",
"description": "Introductory price information of the subscription. This is only present when the subscription was purchased with an introductory price.\n\nThis field does not indicate the subscription is currently in introductory price period."
},
"kind": {
"default": "androidpublisher#subscriptionPurchase",
"description": "This kind represents a subscriptionPurchase object in the androidpublisher service.",
@@ -3138,7 +3362,7 @@
"type": "string"
},
"profileId": {
"description": "The profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"description": "The Google profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'.",
"type": "string"
},
"profileName": {
@@ -3163,6 +3387,16 @@
},
"type": "object"
},
"SubscriptionPurchasesAcknowledgeRequest": {
"id": "SubscriptionPurchasesAcknowledgeRequest",
"properties": {
"developerPayload": {
"description": "Payload to attach to the purchase.",
"type": "string"
}
},
"type": "object"
},
"SubscriptionPurchasesDeferRequest": {
"id": "SubscriptionPurchasesDeferRequest",
"properties": {
@@ -3188,12 +3422,14 @@
"id": "Testers",
"properties": {
"googleGroups": {
"description": "A list of all Google Groups, as email addresses, that define testers for this track.",
"items": {
"type": "string"
},
"type": "array"
},
"googlePlusCommunities": {
"description": "A list of all Google+ Communities, as URLs, that define testers for this track.",
"items": {
"type": "string"
},