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 URL (and equivalent AMP Cache URL)
for a given list of public URL(s).\n", | 5 "description": "Retrieves the list of AMP URL (and equivalent AMP Cache URL)
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 "quotaUser": { | |
19 "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.", | |
20 "location": "query", | |
21 "type": "string" | |
22 }, | |
23 "pp": { | |
24 "default": "true", | |
25 "description": "Pretty-print response.", | |
26 "location": "query", | |
27 "type": "boolean" | |
28 }, | |
29 "oauth_token": { | |
30 "description": "OAuth 2.0 token for the current user.", | |
31 "location": "query", | |
32 "type": "string" | |
33 }, | |
34 "bearer_token": { | |
35 "description": "OAuth bearer token.", | |
36 "location": "query", | |
37 "type": "string" | |
38 }, | |
39 "upload_protocol": { | 18 "upload_protocol": { |
40 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 19 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
41 "location": "query", | 20 "location": "query", |
42 "type": "string" | 21 "type": "string" |
43 }, | 22 }, |
44 "prettyPrint": { | 23 "prettyPrint": { |
45 "default": "true", | 24 "default": "true", |
46 "description": "Returns response with indentations and line breaks."
, | 25 "description": "Returns response with indentations and line breaks."
, |
47 "location": "query", | 26 "location": "query", |
48 "type": "boolean" | 27 "type": "boolean" |
49 }, | 28 }, |
50 "uploadType": { | 29 "uploadType": { |
51 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 30 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
52 "location": "query", | 31 "location": "query", |
53 "type": "string" | 32 "type": "string" |
54 }, | 33 }, |
55 "fields": { | 34 "fields": { |
56 "description": "Selector specifying which fields to include in a par
tial response.", | 35 "description": "Selector specifying which fields to include in a par
tial response.", |
57 "location": "query", | 36 "location": "query", |
58 "type": "string" | 37 "type": "string" |
59 }, | 38 }, |
| 39 "callback": { |
| 40 "description": "JSONP", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
60 "$.xgafv": { | 44 "$.xgafv": { |
61 "description": "V1 error format.", | 45 "description": "V1 error format.", |
62 "enum": [ | 46 "enum": [ |
63 "1", | 47 "1", |
64 "2" | 48 "2" |
65 ], | 49 ], |
66 "enumDescriptions": [ | 50 "enumDescriptions": [ |
67 "v1 error format", | 51 "v1 error format", |
68 "v2 error format" | 52 "v2 error format" |
69 ], | 53 ], |
70 "location": "query", | 54 "location": "query", |
71 "type": "string" | 55 "type": "string" |
72 }, | 56 }, |
73 "callback": { | |
74 "description": "JSONP", | |
75 "location": "query", | |
76 "type": "string" | |
77 }, | |
78 "alt": { | 57 "alt": { |
79 "default": "json", | 58 "default": "json", |
80 "description": "Data format for response.", | 59 "description": "Data format for response.", |
81 "enum": [ | 60 "enum": [ |
82 "json", | 61 "json", |
83 "media", | 62 "media", |
84 "proto" | 63 "proto" |
85 ], | 64 ], |
86 "enumDescriptions": [ | 65 "enumDescriptions": [ |
87 "Responses with Content-Type of application/json", | 66 "Responses with Content-Type of application/json", |
88 "Media download with context-dependent Content-Type", | 67 "Media download with context-dependent Content-Type", |
89 "Responses with Content-Type of application/x-protobuf" | 68 "Responses with Content-Type of application/x-protobuf" |
90 ], | 69 ], |
91 "location": "query", | 70 "location": "query", |
92 "type": "string" | 71 "type": "string" |
93 }, | 72 }, |
94 "key": { | 73 "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.", | 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.", |
96 "location": "query", | 75 "location": "query", |
97 "type": "string" | 76 "type": "string" |
98 }, | 77 }, |
99 "access_token": { | 78 "access_token": { |
100 "description": "OAuth access token.", | 79 "description": "OAuth access token.", |
101 "location": "query", | 80 "location": "query", |
102 "type": "string" | 81 "type": "string" |
| 82 }, |
| 83 "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.", |
| 85 "location": "query", |
| 86 "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 29 matching lines...) Expand all Loading... |
142 "description": "The AMP URL pointing to the publisher's web
server.", | 142 "description": "The AMP URL pointing to the publisher's web
server.", |
143 "type": "string" | 143 "type": "string" |
144 } | 144 } |
145 }, | 145 }, |
146 "type": "object" | 146 "type": "object" |
147 }, | 147 }, |
148 "AmpUrlError": { | 148 "AmpUrlError": { |
149 "description": "AMP URL Error resource for a requested URL that coul
dn't be found.", | 149 "description": "AMP URL Error resource for a requested URL that coul
dn't be found.", |
150 "id": "AmpUrlError", | 150 "id": "AmpUrlError", |
151 "properties": { | 151 "properties": { |
152 "errorMessage": { | |
153 "description": "An optional descriptive error message.", | |
154 "type": "string" | |
155 }, | |
156 "errorCode": { | 152 "errorCode": { |
157 "description": "The error code of an API call.", | 153 "description": "The error code of an API call.", |
158 "enum": [ | 154 "enum": [ |
159 "ERROR_CODE_UNSPECIFIED", | 155 "ERROR_CODE_UNSPECIFIED", |
160 "INPUT_URL_NOT_FOUND", | 156 "INPUT_URL_NOT_FOUND", |
161 "NO_AMP_URL", | 157 "NO_AMP_URL", |
162 "APPLICATION_ERROR", | 158 "APPLICATION_ERROR", |
163 "URL_IS_VALID_AMP", | 159 "URL_IS_VALID_AMP", |
164 "URL_IS_INVALID_AMP" | 160 "URL_IS_INVALID_AMP" |
165 ], | 161 ], |
166 "enumDescriptions": [ | 162 "enumDescriptions": [ |
167 "Not specified error.", | 163 "Not specified error.", |
168 "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.", | 164 "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.", |
169 "Indicates no AMP URL has been found that corresponds to
the requested\nURL.", | 165 "Indicates no AMP URL has been found that corresponds to
the requested\nURL.", |
170 "Indicates some kind of application error occurred at th
e server.\nClient advised to retry.", | 166 "Indicates some kind of application error occurred at th
e server.\nClient advised to retry.", |
171 "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.", | 167 "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.", |
172 "Indicates that an AMP URL has been found that correspon
ds to the request\nURL, but it is not valid AMP HTML." | 168 "Indicates that an AMP URL has been found that correspon
ds to the request\nURL, but it is not valid AMP HTML." |
173 ], | 169 ], |
174 "type": "string" | 170 "type": "string" |
175 }, | 171 }, |
176 "originalUrl": { | 172 "originalUrl": { |
177 "description": "The original non-AMP URL.", | 173 "description": "The original non-AMP URL.", |
178 "type": "string" | 174 "type": "string" |
| 175 }, |
| 176 "errorMessage": { |
| 177 "description": "An optional descriptive error message.", |
| 178 "type": "string" |
179 } | 179 } |
180 }, | 180 }, |
181 "type": "object" | 181 "type": "object" |
182 }, | 182 }, |
183 "BatchGetAmpUrlsRequest": { | 183 "BatchGetAmpUrlsRequest": { |
184 "description": "AMP URL request for a batch of URLs.", | 184 "description": "AMP URL request for a batch of URLs.", |
185 "id": "BatchGetAmpUrlsRequest", | 185 "id": "BatchGetAmpUrlsRequest", |
186 "properties": { | 186 "properties": { |
187 "lookupStrategy": { | 187 "lookupStrategy": { |
188 "description": "The lookup_strategy being requested.", | 188 "description": "The lookup_strategy being requested.", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 "type": "array" | 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 |