| 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 "alt": { |
| 19 "default": "json", |
| 20 "description": "Data format for response.", |
| 21 "enum": [ |
| 22 "json", |
| 23 "media", |
| 24 "proto" |
| 25 ], |
| 26 "enumDescriptions": [ |
| 27 "Responses with Content-Type of application/json", |
| 28 "Media download with context-dependent Content-Type", |
| 29 "Responses with Content-Type of application/x-protobuf" |
| 30 ], |
| 31 "location": "query", |
| 32 "type": "string" |
| 33 }, |
| 34 "key": { |
| 35 "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.", |
| 36 "location": "query", |
| 37 "type": "string" |
| 38 }, |
| 39 "access_token": { |
| 40 "description": "OAuth access token.", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
| 44 "quotaUser": { |
| 45 "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.", |
| 46 "location": "query", |
| 47 "type": "string" |
| 48 }, |
| 18 "pp": { | 49 "pp": { |
| 19 "default": "true", | 50 "default": "true", |
| 20 "description": "Pretty-print response.", | 51 "description": "Pretty-print response.", |
| 21 "location": "query", | 52 "location": "query", |
| 22 "type": "boolean" | 53 "type": "boolean" |
| 23 }, | 54 }, |
| 24 "bearer_token": { | 55 "bearer_token": { |
| 25 "description": "OAuth bearer token.", | 56 "description": "OAuth bearer token.", |
| 26 "location": "query", | 57 "location": "query", |
| 27 "type": "string" | 58 "type": "string" |
| 28 }, | 59 }, |
| 29 "oauth_token": { | 60 "oauth_token": { |
| 30 "description": "OAuth 2.0 token for the current user.", | 61 "description": "OAuth 2.0 token for the current user.", |
| 31 "location": "query", | 62 "location": "query", |
| 32 "type": "string" | 63 "type": "string" |
| 33 }, | 64 }, |
| 34 "upload_protocol": { | 65 "upload_protocol": { |
| 35 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 66 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 36 "location": "query", | 67 "location": "query", |
| 37 "type": "string" | 68 "type": "string" |
| 38 }, | 69 }, |
| 39 "prettyPrint": { | 70 "prettyPrint": { |
| 40 "default": "true", | 71 "default": "true", |
| 41 "description": "Returns response with indentations and line breaks."
, | 72 "description": "Returns response with indentations and line breaks."
, |
| 42 "location": "query", | 73 "location": "query", |
| 43 "type": "boolean" | 74 "type": "boolean" |
| 44 }, | 75 }, |
| 76 "fields": { |
| 77 "description": "Selector specifying which fields to include in a par
tial response.", |
| 78 "location": "query", |
| 79 "type": "string" |
| 80 }, |
| 45 "uploadType": { | 81 "uploadType": { |
| 46 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 82 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 47 "location": "query", | 83 "location": "query", |
| 48 "type": "string" | 84 "type": "string" |
| 49 }, | 85 }, |
| 50 "fields": { | |
| 51 "description": "Selector specifying which fields to include in a par
tial response.", | |
| 52 "location": "query", | |
| 53 "type": "string" | |
| 54 }, | |
| 55 "$.xgafv": { | 86 "$.xgafv": { |
| 56 "description": "V1 error format.", | 87 "description": "V1 error format.", |
| 57 "enum": [ | 88 "enum": [ |
| 58 "1", | 89 "1", |
| 59 "2" | 90 "2" |
| 60 ], | 91 ], |
| 61 "enumDescriptions": [ | 92 "enumDescriptions": [ |
| 62 "v1 error format", | 93 "v1 error format", |
| 63 "v2 error format" | 94 "v2 error format" |
| 64 ], | 95 ], |
| 65 "location": "query", | 96 "location": "query", |
| 66 "type": "string" | 97 "type": "string" |
| 67 }, | 98 }, |
| 68 "callback": { | 99 "callback": { |
| 69 "description": "JSONP", | 100 "description": "JSONP", |
| 70 "location": "query", | 101 "location": "query", |
| 71 "type": "string" | 102 "type": "string" |
| 72 }, | |
| 73 "alt": { | |
| 74 "default": "json", | |
| 75 "description": "Data format for response.", | |
| 76 "enum": [ | |
| 77 "json", | |
| 78 "media", | |
| 79 "proto" | |
| 80 ], | |
| 81 "enumDescriptions": [ | |
| 82 "Responses with Content-Type of application/json", | |
| 83 "Media download with context-dependent Content-Type", | |
| 84 "Responses with Content-Type of application/x-protobuf" | |
| 85 ], | |
| 86 "location": "query", | |
| 87 "type": "string" | |
| 88 }, | |
| 89 "access_token": { | |
| 90 "description": "OAuth access token.", | |
| 91 "location": "query", | |
| 92 "type": "string" | |
| 93 }, | |
| 94 "key": { | |
| 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.", | |
| 96 "location": "query", | |
| 97 "type": "string" | |
| 98 }, | |
| 99 "quotaUser": { | |
| 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.", | |
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 "description": "An optional descriptive error message.", | 198 "description": "An optional descriptive error message.", |
| 199 "type": "string" | 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 }, |
| 208 "lookupStrategy": { | 215 "lookupStrategy": { |
| 209 "description": "The lookup_strategy being requested.", | 216 "description": "The lookup_strategy being requested.", |
| 210 "enum": [ | 217 "enum": [ |
| 211 "FETCH_LIVE_DOC", | 218 "FETCH_LIVE_DOC", |
| 212 "IN_INDEX_DOC" | 219 "IN_INDEX_DOC" |
| 213 ], | 220 ], |
| 214 "enumDescriptions": [ | 221 "enumDescriptions": [ |
| 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.", | 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.", |
| 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." | 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." |
| 217 ], | 224 ], |
| 218 "type": "string" | 225 "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 |