| 1 |
{ |
| 2 |
"basePath": "", |
| 3 |
"baseUrl": "https://playgrouping.googleapis.com/", |
| 4 |
"batchPath": "batch", |
| 5 |
"canonicalName": "Play Grouping", |
| 6 |
"description": "playgrouping.googleapis.com API.", |
| 7 |
"discoveryVersion": "v1", |
| 8 |
"documentationLink": "https://cloud.google.com/playgrouping/", |
| 9 |
"fullyEncodeReservedExpansion": true, |
| 10 |
"icons": { |
| 11 |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 12 |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 13 |
}, |
| 14 |
"id": "playgrouping:v1alpha1", |
| 15 |
"kind": "discovery#restDescription", |
| 16 |
"mtlsRootUrl": "https://playgrouping.mtls.googleapis.com/", |
| 17 |
"name": "playgrouping", |
| 18 |
"ownerDomain": "google.com", |
| 19 |
"ownerName": "Google", |
| 20 |
"parameters": { |
| 21 |
"$.xgafv": { |
| 22 |
"description": "V1 error format.", |
| 23 |
"enum": [ |
| 24 |
"1", |
| 25 |
"2" |
| 26 |
], |
| 27 |
"enumDescriptions": [ |
| 28 |
"v1 error format", |
| 29 |
"v2 error format" |
| 30 |
], |
| 31 |
"location": "query", |
| 32 |
"type": "string" |
| 33 |
}, |
| 34 |
"access_token": { |
| 35 |
"description": "OAuth access token.", |
| 36 |
"location": "query", |
| 37 |
"type": "string" |
| 38 |
}, |
| 39 |
"alt": { |
| 40 |
"default": "json", |
| 41 |
"description": "Data format for response.", |
| 42 |
"enum": [ |
| 43 |
"json", |
| 44 |
"media", |
| 45 |
"proto" |
| 46 |
], |
| 47 |
"enumDescriptions": [ |
| 48 |
"Responses with Content-Type of application/json", |
| 49 |
"Media download with context-dependent Content-Type", |
| 50 |
"Responses with Content-Type of application/x-protobuf" |
| 51 |
], |
| 52 |
"location": "query", |
| 53 |
"type": "string" |
| 54 |
}, |
| 55 |
"callback": { |
| 56 |
"description": "JSONP", |
| 57 |
"location": "query", |
| 58 |
"type": "string" |
| 59 |
}, |
| 60 |
"fields": { |
| 61 |
"description": "Selector specifying which fields to include in a partial response.", |
| 62 |
"location": "query", |
| 63 |
"type": "string" |
| 64 |
}, |
| 65 |
"key": { |
| 66 |
"description": "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.", |
| 67 |
"location": "query", |
| 68 |
"type": "string" |
| 69 |
}, |
| 70 |
"oauth_token": { |
| 71 |
"description": "OAuth 2.0 token for the current user.", |
| 72 |
"location": "query", |
| 73 |
"type": "string" |
| 74 |
}, |
| 75 |
"prettyPrint": { |
| 76 |
"default": "true", |
| 77 |
"description": "Returns response with indentations and line breaks.", |
| 78 |
"location": "query", |
| 79 |
"type": "boolean" |
| 80 |
}, |
| 81 |
"quotaUser": { |
| 82 |
"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.", |
| 83 |
"location": "query", |
| 84 |
"type": "string" |
| 85 |
}, |
| 86 |
"uploadType": { |
| 87 |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 88 |
"location": "query", |
| 89 |
"type": "string" |
| 90 |
}, |
| 91 |
"upload_protocol": { |
| 92 |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 93 |
"location": "query", |
| 94 |
"type": "string" |
| 95 |
} |
| 96 |
}, |
| 97 |
"protocol": "rest", |
| 98 |
"resources": { |
| 99 |
"apps": { |
| 100 |
"resources": { |
| 101 |
"tokens": { |
| 102 |
"methods": { |
| 103 |
"verify": { |
| 104 |
"description": "Verify an API token by asserting the app and persona it belongs to. The verification is a protection against client-side attacks and will fail if the contents of the token don't match the provided values. A token must be verified before it can be used to manipulate user tags.", |
| 105 |
"flatPath": "v1alpha1/apps/{appsId}/tokens/{tokensId}:verify", |
| 106 |
"httpMethod": "POST", |
| 107 |
"id": "playgrouping.apps.tokens.verify", |
| 108 |
"parameterOrder": [ |
| 109 |
"appPackage", |
| 110 |
"token" |
| 111 |
], |
| 112 |
"parameters": { |
| 113 |
"appPackage": { |
| 114 |
"description": "Required. App the token belongs to. Format: apps/{package_name}", |
| 115 |
"location": "path", |
| 116 |
"pattern": "^apps/[^/]+$", |
| 117 |
"required": true, |
| 118 |
"type": "string" |
| 119 |
}, |
| 120 |
"token": { |
| 121 |
"description": "Required. The token to be verified. Format: tokens/{token}", |
| 122 |
"location": "path", |
| 123 |
"pattern": "^tokens/[^/]+$", |
| 124 |
"required": true, |
| 125 |
"type": "string" |
| 126 |
} |
| 127 |
}, |
| 128 |
"path": "v1alpha1/{+appPackage}/{+token}:verify", |
| 129 |
"request": { |
| 130 |
"$ref": "VerifyTokenRequest" |
| 131 |
}, |
| 132 |
"response": { |
| 133 |
"$ref": "VerifyTokenResponse" |
| 134 |
} |
| 135 |
} |
| 136 |
}, |
| 137 |
"resources": { |
| 138 |
"tags": { |
| 139 |
"methods": { |
| 140 |
"createOrUpdate": { |
| 141 |
"description": "Create or update tags for the user and app that are represented by the given token.", |
| 142 |
"flatPath": "v1alpha1/apps/{appsId}/tokens/{tokensId}/tags:createOrUpdate", |
| 143 |
"httpMethod": "POST", |
| 144 |
"id": "playgrouping.apps.tokens.tags.createOrUpdate", |
| 145 |
"parameterOrder": [ |
| 146 |
"appPackage", |
| 147 |
"token" |
| 148 |
], |
| 149 |
"parameters": { |
| 150 |
"appPackage": { |
| 151 |
"description": "Required. App whose tags are being manipulated. Format: apps/{package_name}", |
| 152 |
"location": "path", |
| 153 |
"pattern": "^apps/[^/]+$", |
| 154 |
"required": true, |
| 155 |
"type": "string" |
| 156 |
}, |
| 157 |
"token": { |
| 158 |
"description": "Required. Token for which the tags are being inserted or updated. Format: tokens/{token}", |
| 159 |
"location": "path", |
| 160 |
"pattern": "^tokens/[^/]+$", |
| 161 |
"required": true, |
| 162 |
"type": "string" |
| 163 |
} |
| 164 |
}, |
| 165 |
"path": "v1alpha1/{+appPackage}/{+token}/tags:createOrUpdate", |
| 166 |
"request": { |
| 167 |
"$ref": "CreateOrUpdateTagsRequest" |
| 168 |
}, |
| 169 |
"response": { |
| 170 |
"$ref": "CreateOrUpdateTagsResponse" |
| 171 |
} |
| 172 |
} |
| 173 |
} |
| 174 |
} |
| 175 |
} |
| 176 |
} |
| 177 |
} |
| 178 |
} |
| 179 |
}, |
| 180 |
"revision": "20240707", |
| 181 |
"rootUrl": "https://playgrouping.googleapis.com/", |
| 182 |
"schemas": { |
| 183 |
"CreateOrUpdateTagsRequest": { |
| 184 |
"description": "Request message for CreateOrUpdateTags. VerifyToken.", |
| 185 |
"id": "CreateOrUpdateTagsRequest", |
| 186 |
"properties": { |
| 187 |
"tags": { |
| 188 |
"description": "Tags to be inserted or updated.", |
| 189 |
"items": { |
| 190 |
"$ref": "Tag" |
| 191 |
}, |
| 192 |
"type": "array" |
| 193 |
} |
| 194 |
}, |
| 195 |
"type": "object" |
| 196 |
}, |
| 197 |
"CreateOrUpdateTagsResponse": { |
| 198 |
"description": "Response message for CreateOrUpdateTags.", |
| 199 |
"id": "CreateOrUpdateTagsResponse", |
| 200 |
"properties": { |
| 201 |
"tags": { |
| 202 |
"description": "All requested tags are returned, including pre-existing ones.", |
| 203 |
"items": { |
| 204 |
"$ref": "Tag" |
| 205 |
}, |
| 206 |
"type": "array" |
| 207 |
} |
| 208 |
}, |
| 209 |
"type": "object" |
| 210 |
}, |
| 211 |
"Tag": { |
| 212 |
"description": "A tag is associated with exactly one package name and user.", |
| 213 |
"id": "Tag", |
| 214 |
"properties": { |
| 215 |
"booleanValue": { |
| 216 |
"description": "A boolean value of the tag.", |
| 217 |
"type": "boolean" |
| 218 |
}, |
| 219 |
"int64Value": { |
| 220 |
"description": "A signed 64-bit integer value of the tag.", |
| 221 |
"format": "int64", |
| 222 |
"type": "string" |
| 223 |
}, |
| 224 |
"key": { |
| 225 |
"description": "Required. Key for the tag.", |
| 226 |
"type": "string" |
| 227 |
}, |
| 228 |
"stringValue": { |
| 229 |
"description": "A string value of the tag.", |
| 230 |
"type": "string" |
| 231 |
}, |
| 232 |
"timeValue": { |
| 233 |
"description": "A time value of the tag.", |
| 234 |
"format": "google-datetime", |
| 235 |
"type": "string" |
| 236 |
} |
| 237 |
}, |
| 238 |
"type": "object" |
| 239 |
}, |
| 240 |
"VerifyTokenRequest": { |
| 241 |
"description": "Request message for VerifyToken.", |
| 242 |
"id": "VerifyTokenRequest", |
| 243 |
"properties": { |
| 244 |
"persona": { |
| 245 |
"description": "Required. Persona represented by the token. Format: personas/{persona}", |
| 246 |
"type": "string" |
| 247 |
} |
| 248 |
}, |
| 249 |
"type": "object" |
| 250 |
}, |
| 251 |
"VerifyTokenResponse": { |
| 252 |
"description": "Response message for VerifyToken.", |
| 253 |
"id": "VerifyTokenResponse", |
| 254 |
"properties": {}, |
| 255 |
"type": "object" |
| 256 |
} |
| 257 |
}, |
| 258 |
"servicePath": "", |
| 259 |
"title": "Google Play Grouping API", |
| 260 |
"version": "v1alpha1", |
| 261 |
"version_module": true |
| 262 |
} |