| OLD | NEW |
| 1 { | 1 { |
| 2 "basePath": "", | 2 "basePath": "", |
| 3 "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/", | 3 "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/", |
| 4 "batchPath": "batch", | 4 "batchPath": "batch", |
| 5 "description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URL
s) for a given list of public URL(s).\n", | 5 "description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URL
s) for a given list of public URL(s).\n", |
| 6 "discoveryVersion": "v1", | 6 "discoveryVersion": "v1", |
| 7 "documentationLink": "https://developers.google.com/amp/cache/", | 7 "documentationLink": "https://developers.google.com/amp/cache/", |
| 8 "icons": { | 8 "icons": { |
| 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 11 }, | 11 }, |
| 12 "id": "acceleratedmobilepageurl:v1", | 12 "id": "acceleratedmobilepageurl:v1", |
| 13 "kind": "discovery#restDescription", | 13 "kind": "discovery#restDescription", |
| 14 "name": "acceleratedmobilepageurl", | 14 "name": "acceleratedmobilepageurl", |
| 15 "ownerDomain": "google.com", | 15 "ownerDomain": "google.com", |
| 16 "ownerName": "Google", | 16 "ownerName": "Google", |
| 17 "parameters": { | 17 "parameters": { |
| 18 "pp": { |
| 19 "default": "true", |
| 20 "description": "Pretty-print response.", |
| 21 "location": "query", |
| 22 "type": "boolean" |
| 23 }, |
| 24 "bearer_token": { |
| 25 "description": "OAuth bearer token.", |
| 26 "location": "query", |
| 27 "type": "string" |
| 28 }, |
| 29 "oauth_token": { |
| 30 "description": "OAuth 2.0 token for the current user.", |
| 31 "location": "query", |
| 32 "type": "string" |
| 33 }, |
| 18 "upload_protocol": { | 34 "upload_protocol": { |
| 19 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 20 "location": "query", | 36 "location": "query", |
| 21 "type": "string" | 37 "type": "string" |
| 22 }, | 38 }, |
| 23 "prettyPrint": { | 39 "prettyPrint": { |
| 24 "default": "true", | 40 "default": "true", |
| 25 "description": "Returns response with indentations and line breaks."
, | 41 "description": "Returns response with indentations and line breaks."
, |
| 26 "location": "query", | 42 "location": "query", |
| 27 "type": "boolean" | 43 "type": "boolean" |
| 28 }, | 44 }, |
| 45 "uploadType": { |
| 46 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 47 "location": "query", |
| 48 "type": "string" |
| 49 }, |
| 29 "fields": { | 50 "fields": { |
| 30 "description": "Selector specifying which fields to include in a par
tial response.", | 51 "description": "Selector specifying which fields to include in a par
tial response.", |
| 31 "location": "query", | 52 "location": "query", |
| 32 "type": "string" | 53 "type": "string" |
| 33 }, | 54 }, |
| 34 "uploadType": { | |
| 35 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
| 36 "location": "query", | |
| 37 "type": "string" | |
| 38 }, | |
| 39 "$.xgafv": { | 55 "$.xgafv": { |
| 40 "description": "V1 error format.", | 56 "description": "V1 error format.", |
| 41 "enum": [ | 57 "enum": [ |
| 42 "1", | 58 "1", |
| 43 "2" | 59 "2" |
| 44 ], | 60 ], |
| 45 "enumDescriptions": [ | 61 "enumDescriptions": [ |
| 46 "v1 error format", | 62 "v1 error format", |
| 47 "v2 error format" | 63 "v2 error format" |
| 48 ], | 64 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 63 "proto" | 79 "proto" |
| 64 ], | 80 ], |
| 65 "enumDescriptions": [ | 81 "enumDescriptions": [ |
| 66 "Responses with Content-Type of application/json", | 82 "Responses with Content-Type of application/json", |
| 67 "Media download with context-dependent Content-Type", | 83 "Media download with context-dependent Content-Type", |
| 68 "Responses with Content-Type of application/x-protobuf" | 84 "Responses with Content-Type of application/x-protobuf" |
| 69 ], | 85 ], |
| 70 "location": "query", | 86 "location": "query", |
| 71 "type": "string" | 87 "type": "string" |
| 72 }, | 88 }, |
| 89 "access_token": { |
| 90 "description": "OAuth access token.", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
| 73 "key": { | 94 "key": { |
| 74 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 95 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 75 "location": "query", | 96 "location": "query", |
| 76 "type": "string" | 97 "type": "string" |
| 77 }, | 98 }, |
| 78 "access_token": { | |
| 79 "description": "OAuth access token.", | |
| 80 "location": "query", | |
| 81 "type": "string" | |
| 82 }, | |
| 83 "quotaUser": { | 99 "quotaUser": { |
| 84 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 100 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 85 "location": "query", | 101 "location": "query", |
| 86 "type": "string" | 102 "type": "string" |
| 87 }, | |
| 88 "pp": { | |
| 89 "default": "true", | |
| 90 "description": "Pretty-print response.", | |
| 91 "location": "query", | |
| 92 "type": "boolean" | |
| 93 }, | |
| 94 "bearer_token": { | |
| 95 "description": "OAuth bearer token.", | |
| 96 "location": "query", | |
| 97 "type": "string" | |
| 98 }, | |
| 99 "oauth_token": { | |
| 100 "description": "OAuth 2.0 token for the current user.", | |
| 101 "location": "query", | |
| 102 "type": "string" | |
| 103 } | 103 } |
| 104 }, | 104 }, |
| 105 "protocol": "rest", | 105 "protocol": "rest", |
| 106 "resources": { | 106 "resources": { |
| 107 "ampUrls": { | 107 "ampUrls": { |
| 108 "methods": { | 108 "methods": { |
| 109 "batchGet": { | 109 "batchGet": { |
| 110 "description": "Returns AMP URL(s) and equivalent\n[AMP Cach
e URL(s)](/amp/cache/overview#amp-cache-url-format).", | 110 "description": "Returns AMP URL(s) and equivalent\n[AMP Cach
e URL(s)](/amp/cache/overview#amp-cache-url-format).", |
| 111 "httpMethod": "POST", | 111 "httpMethod": "POST", |
| 112 "id": "acceleratedmobilepageurl.ampUrls.batchGet", | 112 "id": "acceleratedmobilepageurl.ampUrls.batchGet", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 "description": "The original non-AMP URL.", | 163 "description": "The original non-AMP URL.", |
| 164 "type": "string" | 164 "type": "string" |
| 165 } | 165 } |
| 166 }, | 166 }, |
| 167 "type": "object" | 167 "type": "object" |
| 168 }, | 168 }, |
| 169 "AmpUrlError": { | 169 "AmpUrlError": { |
| 170 "description": "AMP URL Error resource for a requested URL that coul
dn't be found.", | 170 "description": "AMP URL Error resource for a requested URL that coul
dn't be found.", |
| 171 "id": "AmpUrlError", | 171 "id": "AmpUrlError", |
| 172 "properties": { | 172 "properties": { |
| 173 "originalUrl": { | |
| 174 "description": "The original non-AMP URL.", | |
| 175 "type": "string" | |
| 176 }, | |
| 177 "errorMessage": { | |
| 178 "description": "An optional descriptive error message.", | |
| 179 "type": "string" | |
| 180 }, | |
| 181 "errorCode": { | 173 "errorCode": { |
| 182 "description": "The error code of an API call.", | 174 "description": "The error code of an API call.", |
| 183 "enum": [ | 175 "enum": [ |
| 184 "ERROR_CODE_UNSPECIFIED", | 176 "ERROR_CODE_UNSPECIFIED", |
| 185 "INPUT_URL_NOT_FOUND", | 177 "INPUT_URL_NOT_FOUND", |
| 186 "NO_AMP_URL", | 178 "NO_AMP_URL", |
| 187 "APPLICATION_ERROR", | 179 "APPLICATION_ERROR", |
| 188 "URL_IS_VALID_AMP", | 180 "URL_IS_VALID_AMP", |
| 189 "URL_IS_INVALID_AMP" | 181 "URL_IS_INVALID_AMP" |
| 190 ], | 182 ], |
| 191 "enumDescriptions": [ | 183 "enumDescriptions": [ |
| 192 "Not specified error.", | 184 "Not specified error.", |
| 193 "Indicates the requested URL is not found in the index,
possibly because\nit's unable to be found, not able to be accessed by Googlebot,
or some\nother error.", | 185 "Indicates the requested URL is not found in the index,
possibly because\nit's unable to be found, not able to be accessed by Googlebot,
or some\nother error.", |
| 194 "Indicates no AMP URL has been found that corresponds to
the requested\nURL.", | 186 "Indicates no AMP URL has been found that corresponds to
the requested\nURL.", |
| 195 "Indicates some kind of application error occurred at th
e server.\nClient advised to retry.", | 187 "Indicates some kind of application error occurred at th
e server.\nClient advised to retry.", |
| 196 "DEPRECATED: Indicates the requested URL is a valid AMP
URL. This is a\nnon-error state, should not be relied upon as a sign of success
or\nfailure. It will be removed in future versions of the API.", | 188 "DEPRECATED: Indicates the requested URL is a valid AMP
URL. This is a\nnon-error state, should not be relied upon as a sign of success
or\nfailure. It will be removed in future versions of the API.", |
| 197 "Indicates that an AMP URL has been found that correspon
ds to the request\nURL, but it is not valid AMP HTML." | 189 "Indicates that an AMP URL has been found that correspon
ds to the request\nURL, but it is not valid AMP HTML." |
| 198 ], | 190 ], |
| 199 "type": "string" | 191 "type": "string" |
| 192 }, |
| 193 "originalUrl": { |
| 194 "description": "The original non-AMP URL.", |
| 195 "type": "string" |
| 196 }, |
| 197 "errorMessage": { |
| 198 "description": "An optional descriptive error message.", |
| 199 "type": "string" |
| 200 } | 200 } |
| 201 }, | 201 }, |
| 202 "type": "object" | 202 "type": "object" |
| 203 }, | 203 }, |
| 204 "BatchGetAmpUrlsRequest": { | 204 "BatchGetAmpUrlsRequest": { |
| 205 "description": "AMP URL request for a batch of URLs.", | 205 "description": "AMP URL request for a batch of URLs.", |
| 206 "id": "BatchGetAmpUrlsRequest", | 206 "id": "BatchGetAmpUrlsRequest", |
| 207 "properties": { | 207 "properties": { |
| 208 "urls": { | |
| 209 "description": "List of URLs to look up for the paired AMP U
RLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits]
(/amp/cache/reference/limits)).", | |
| 210 "items": { | |
| 211 "type": "string" | |
| 212 }, | |
| 213 "type": "array" | |
| 214 }, | |
| 215 "lookupStrategy": { | 208 "lookupStrategy": { |
| 216 "description": "The lookup_strategy being requested.", | 209 "description": "The lookup_strategy being requested.", |
| 217 "enum": [ | 210 "enum": [ |
| 218 "FETCH_LIVE_DOC", | 211 "FETCH_LIVE_DOC", |
| 219 "IN_INDEX_DOC" | 212 "IN_INDEX_DOC" |
| 220 ], | 213 ], |
| 221 "enumDescriptions": [ | 214 "enumDescriptions": [ |
| 222 "FETCH_LIVE_DOC strategy involves live document fetch of
URLs not found in\nthe index. Any request URL not found in the index is crawled
in realtime\nto validate if there is a corresponding AMP URL. This strategy has
higher\ncoverage but with extra latency introduced by realtime crawling. This i
s\nthe default strategy. Applications using this strategy should set higher\nHTT
P timeouts of the API calls.", | 215 "FETCH_LIVE_DOC strategy involves live document fetch of
URLs not found in\nthe index. Any request URL not found in the index is crawled
in realtime\nto validate if there is a corresponding AMP URL. This strategy has
higher\ncoverage but with extra latency introduced by realtime crawling. This i
s\nthe default strategy. Applications using this strategy should set higher\nHTT
P timeouts of the API calls.", |
| 223 "IN_INDEX_DOC strategy skips fetching live documents of
URL(s) not found\nin index. For applications which need low latency use of IN_IN
DEX_DOC\nstrategy is recommended." | 216 "IN_INDEX_DOC strategy skips fetching live documents of
URL(s) not found\nin index. For applications which need low latency use of IN_IN
DEX_DOC\nstrategy is recommended." |
| 224 ], | 217 ], |
| 225 "type": "string" | 218 "type": "string" |
| 219 }, |
| 220 "urls": { |
| 221 "description": "List of URLs to look up for the paired AMP U
RLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits]
(/amp/cache/reference/limits)).", |
| 222 "items": { |
| 223 "type": "string" |
| 224 }, |
| 225 "type": "array" |
| 226 } | 226 } |
| 227 }, | 227 }, |
| 228 "type": "object" | 228 "type": "object" |
| 229 } | 229 } |
| 230 }, | 230 }, |
| 231 "servicePath": "", | 231 "servicePath": "", |
| 232 "title": "Accelerated Mobile Pages (AMP) URL API", | 232 "title": "Accelerated Mobile Pages (AMP) URL API", |
| 233 "version": "v1" | 233 "version": "v1" |
| 234 } | 234 } |
| OLD | NEW |