Skip to content

Commit

Permalink
feat(playcustomapp)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### playcustomapp:v1
The following keys were deleted:
- etag
- parameters.userIp.description
- parameters.userIp.location
- parameters.userIp.type
- resources.accounts.resources.customApps.methods.create.mediaUpload.protocols.resumable.multipart
- resources.accounts.resources.customApps.methods.create.mediaUpload.protocols.resumable.path

The following keys were added:
- fullyEncodeReservedExpansion
- mtlsRootUrl
- parameters.$.xgafv.description
- parameters.$.xgafv.enum
- parameters.$.xgafv.enumDescriptions
- parameters.$.xgafv.location
- parameters.$.xgafv.type
- parameters.access_token.description
- parameters.access_token.location
- parameters.access_token.type
- parameters.callback.description
- parameters.callback.location
- parameters.callback.type
- parameters.uploadType.description
- parameters.uploadType.location
- parameters.uploadType.type
- parameters.upload_protocol.description
- parameters.upload_protocol.location
- parameters.upload_protocol.type
- resources.accounts.resources.customApps.methods.create.flatPath
- schemas.CustomApp.properties.packageName.description
- schemas.CustomApp.properties.packageName.type

The following keys were changed:
- baseUrl
- description
- documentationLink
- icons.x16
- icons.x32
- parameters.alt.description
- parameters.alt.enum
- parameters.alt.enumDescriptions
- parameters.quotaUser.description
- resources.accounts.resources.customApps.methods.create.description
- resources.accounts.resources.customApps.methods.create.mediaUpload.maxSize
- resources.accounts.resources.customApps.methods.create.path
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 10, 2020
1 parent 3c0a75c commit df4618d
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 28 deletions.
78 changes: 56 additions & 22 deletions discovery/playcustomapp-v1.json
Expand Up @@ -8,35 +8,63 @@
}
}
},
"basePath": "/playcustomapp/v1/accounts/",
"baseUrl": "https://www.googleapis.com/playcustomapp/v1/accounts/",
"basePath": "",
"baseUrl": "https://www.googleapis.com/",
"batchPath": "batch/playcustomapp/v1",
"description": "An API to publish custom Android apps.",
"description": "API to create and publish custom Android apps",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/android/work/play/custom-app-api",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/7giQS2sn1aiNssvTbYUqqbUEOO8\"",
"documentationLink": "https://developers.google.com/android/work/play/custom-app-api/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "playcustomapp:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://www.mtls.googleapis.com/",
"name": "playcustomapp",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for the response.",
"description": "Data format for response.",
"enum": [
"json"
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
Expand All @@ -59,12 +87,17 @@
"type": "boolean"
},
"quotaUser": {
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "Deprecated. Please use quotaUser instead.",
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
Expand All @@ -76,19 +109,16 @@
"customApps": {
"methods": {
"create": {
"description": "Create and publish a new custom app.",
"description": "Creates a new custom app.",
"flatPath": "playcustomapp/v1/accounts/{account}/customApps",
"httpMethod": "POST",
"id": "playcustomapp.accounts.customApps.create",
"mediaUpload": {
"accept": [
"*/*"
],
"maxSize": "100MB",
"maxSize": "10737418240",
"protocols": {
"resumable": {
"multipart": true,
"path": "/resumable/upload/playcustomapp/v1/accounts/{account}/customApps"
},
"simple": {
"multipart": true,
"path": "/upload/playcustomapp/v1/accounts/{account}/customApps"
Expand All @@ -107,7 +137,7 @@
"type": "string"
}
},
"path": "{account}/customApps",
"path": "playcustomapp/v1/accounts/{account}/customApps",
"request": {
"$ref": "CustomApp"
},
Expand All @@ -124,7 +154,7 @@
}
}
},
"revision": "20170622",
"revision": "20200707",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"CustomApp": {
Expand All @@ -135,6 +165,10 @@
"description": "Default listing language in BCP 47 format.",
"type": "string"
},
"packageName": {
"description": "Output only. Package name of the created Android app.\nOnly present in the API response.",
"type": "string"
},
"title": {
"description": "Title for the Android app.",
"type": "string"
Expand All @@ -143,7 +177,7 @@
"type": "object"
}
},
"servicePath": "playcustomapp/v1/accounts/",
"servicePath": "",
"title": "Google Play Custom App Publishing API",
"version": "v1"
}
34 changes: 28 additions & 6 deletions src/apis/playcustomapp/v1.ts
Expand Up @@ -53,9 +53,21 @@ export namespace playcustomapp_v1 {
| GoogleAuth;

/**
* Data format for the response.
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
Expand All @@ -73,19 +85,23 @@ export namespace playcustomapp_v1 {
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
userIp?: string;
upload_protocol?: string;
}

/**
* Google Play Custom App Publishing API
*
* An API to publish custom Android apps.
* API to create and publish custom Android apps
*
* @example
* const {google} = require('googleapis');
Expand Down Expand Up @@ -119,6 +135,10 @@ export namespace playcustomapp_v1 {
* Default listing language in BCP 47 format.
*/
languageCode?: string | null;
/**
* Output only. Package name of the created Android app. Only present in the API response.
*/
packageName?: string | null;
/**
* Title for the Android app.
*/
Expand All @@ -142,7 +162,7 @@ export namespace playcustomapp_v1 {

/**
* playcustomapp.accounts.customApps.create
* @desc Create and publish a new custom app.
* @desc Creates a new custom app.
* @example
* // Before running the sample:
* // - Enable the API at:
Expand Down Expand Up @@ -175,6 +195,7 @@ export namespace playcustomapp_v1 {
* // request body parameters
* // {
* // "languageCode": "my_languageCode",
* // "packageName": "my_packageName",
* // "title": "my_title"
* // }
* },
Expand All @@ -188,6 +209,7 @@ export namespace playcustomapp_v1 {
* // Example response
* // {
* // "languageCode": "my_languageCode",
* // "packageName": "my_packageName",
* // "title": "my_title"
* // }
* }
Expand Down

0 comments on commit df4618d

Please sign in to comment.