Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Side by Side Diff: discovery/googleapis/acceleratedmobilepageurl__v1.json

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « config.yaml ('k') | discovery/googleapis/admin__directory_v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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": "This API contains a single method, batchGet. Call this metho d to retrieve the AMP URL (and equivalent AMP Cache URL) for given public URL(s) .\n", 5 "description": "This API contains a single method, batchGet. Call this metho d to retrieve the AMP URL (and equivalent AMP Cache URL) for given 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 "access_token": {
19 "description": "OAuth access token.",
20 "location": "query",
21 "type": "string"
22 },
23 "key": {
24 "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.",
25 "location": "query",
26 "type": "string"
27 },
28 "quotaUser": {
29 "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.",
30 "location": "query",
31 "type": "string"
32 },
33 "pp": {
34 "default": "true",
35 "description": "Pretty-print response.",
36 "location": "query",
37 "type": "boolean"
38 },
39 "oauth_token": {
40 "description": "OAuth 2.0 token for the current user.",
41 "location": "query",
42 "type": "string"
43 },
44 "bearer_token": {
45 "description": "OAuth bearer token.",
46 "location": "query",
47 "type": "string"
48 },
49 "upload_protocol": { 18 "upload_protocol": {
50 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 19 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
51 "location": "query", 20 "location": "query",
52 "type": "string" 21 "type": "string"
53 }, 22 },
54 "prettyPrint": { 23 "prettyPrint": {
55 "default": "true", 24 "default": "true",
56 "description": "Returns response with indentations and line breaks." , 25 "description": "Returns response with indentations and line breaks." ,
57 "location": "query", 26 "location": "query",
58 "type": "boolean" 27 "type": "boolean"
59 }, 28 },
60 "uploadType": { 29 "uploadType": {
61 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 30 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
62 "location": "query", 31 "location": "query",
63 "type": "string" 32 "type": "string"
64 }, 33 },
65 "fields": { 34 "fields": {
66 "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.",
67 "location": "query", 36 "location": "query",
68 "type": "string" 37 "type": "string"
69 }, 38 },
39 "callback": {
40 "description": "JSONP",
41 "location": "query",
42 "type": "string"
43 },
70 "$.xgafv": { 44 "$.xgafv": {
71 "description": "V1 error format.", 45 "description": "V1 error format.",
72 "enum": [ 46 "enum": [
73 "1", 47 "1",
74 "2" 48 "2"
75 ], 49 ],
76 "enumDescriptions": [ 50 "enumDescriptions": [
77 "v1 error format", 51 "v1 error format",
78 "v2 error format" 52 "v2 error format"
79 ], 53 ],
80 "location": "query", 54 "location": "query",
81 "type": "string" 55 "type": "string"
82 }, 56 },
83 "callback": {
84 "description": "JSONP",
85 "location": "query",
86 "type": "string"
87 },
88 "alt": { 57 "alt": {
89 "default": "json", 58 "default": "json",
90 "description": "Data format for response.", 59 "description": "Data format for response.",
91 "enum": [ 60 "enum": [
92 "json", 61 "json",
93 "media", 62 "media",
94 "proto" 63 "proto"
95 ], 64 ],
96 "enumDescriptions": [ 65 "enumDescriptions": [
97 "Responses with Content-Type of application/json", 66 "Responses with Content-Type of application/json",
98 "Media download with context-dependent Content-Type", 67 "Media download with context-dependent Content-Type",
99 "Responses with Content-Type of application/x-protobuf" 68 "Responses with Content-Type of application/x-protobuf"
100 ], 69 ],
101 "location": "query", 70 "location": "query",
102 "type": "string" 71 "type": "string"
72 },
73 "access_token": {
74 "description": "OAuth access token.",
75 "location": "query",
76 "type": "string"
77 },
78 "key": {
79 "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.",
80 "location": "query",
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",
113 "parameterOrder": [], 113 "parameterOrder": [],
114 "parameters": {}, 114 "parameters": {},
115 "path": "v1/ampUrls:batchGet", 115 "path": "v1/ampUrls:batchGet",
116 "request": { 116 "request": {
117 "$ref": "BatchGetAmpUrlsRequest" 117 "$ref": "BatchGetAmpUrlsRequest"
118 }, 118 },
119 "response": { 119 "response": {
120 "$ref": "BatchGetAmpUrlsResponse" 120 "$ref": "BatchGetAmpUrlsResponse"
121 } 121 }
122 } 122 }
123 } 123 }
124 } 124 }
125 }, 125 },
126 "revision": "20170224", 126 "revision": "20170224",
127 "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/", 127 "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
128 "schemas": { 128 "schemas": {
129 "BatchGetAmpUrlsResponse": {
130 "description": "Batch AMP URL response.",
131 "id": "BatchGetAmpUrlsResponse",
132 "properties": {
133 "ampUrls": {
134 "description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch req uest.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
135 "items": {
136 "$ref": "AmpUrl"
137 },
138 "type": "array"
139 },
140 "urlErrors": {
141 "description": "The errors for requested URLs that have no A MP URL.",
142 "items": {
143 "$ref": "AmpUrlError"
144 },
145 "type": "array"
146 }
147 },
148 "type": "object"
149 },
150 "AmpUrl": {
151 "description": "AMP URL response for a requested URL.",
152 "id": "AmpUrl",
153 "properties": {
154 "cdnAmpUrl": {
155 "description": "The [AMP Cache URL](/amp/cache/overview#amp- cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
156 "type": "string"
157 },
158 "originalUrl": {
159 "description": "The original non-AMP URL.",
160 "type": "string"
161 },
162 "ampUrl": {
163 "description": "The AMP URL pointing to the publisher's web server.",
164 "type": "string"
165 }
166 },
167 "type": "object"
168 },
129 "AmpUrlError": { 169 "AmpUrlError": {
130 "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.",
131 "id": "AmpUrlError", 171 "id": "AmpUrlError",
132 "properties": { 172 "properties": {
133 "errorMessage": { 173 "errorMessage": {
134 "description": "An optional descriptive error message.", 174 "description": "An optional descriptive error message.",
135 "type": "string" 175 "type": "string"
136 }, 176 },
137 "errorCode": { 177 "errorCode": {
138 "description": "The error code of an API call.", 178 "description": "The error code of an API call.",
(...skipping 19 matching lines...) Expand all
158 "description": "The original non-AMP URL.", 198 "description": "The original non-AMP URL.",
159 "type": "string" 199 "type": "string"
160 } 200 }
161 }, 201 },
162 "type": "object" 202 "type": "object"
163 }, 203 },
164 "BatchGetAmpUrlsRequest": { 204 "BatchGetAmpUrlsRequest": {
165 "description": "AMP URL request for a batch of URLs.", 205 "description": "AMP URL request for a batch of URLs.",
166 "id": "BatchGetAmpUrlsRequest", 206 "id": "BatchGetAmpUrlsRequest",
167 "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 },
168 "lookupStrategy": { 215 "lookupStrategy": {
169 "description": "The lookup_strategy being requested.", 216 "description": "The lookup_strategy being requested.",
170 "enum": [ 217 "enum": [
171 "FETCH_LIVE_DOC", 218 "FETCH_LIVE_DOC",
172 "IN_INDEX_DOC" 219 "IN_INDEX_DOC"
173 ], 220 ],
174 "enumDescriptions": [ 221 "enumDescriptions": [
175 "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.",
176 "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."
177 ], 224 ],
178 "type": "string" 225 "type": "string"
179 },
180 "urls": {
181 "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)).",
182 "items": {
183 "type": "string"
184 },
185 "type": "array"
186 }
187 },
188 "type": "object"
189 },
190 "BatchGetAmpUrlsResponse": {
191 "description": "Batch AMP URL response.",
192 "id": "BatchGetAmpUrlsResponse",
193 "properties": {
194 "ampUrls": {
195 "description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch req uest.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
196 "items": {
197 "$ref": "AmpUrl"
198 },
199 "type": "array"
200 },
201 "urlErrors": {
202 "description": "The errors for requested URLs that have no A MP URL.",
203 "items": {
204 "$ref": "AmpUrlError"
205 },
206 "type": "array"
207 }
208 },
209 "type": "object"
210 },
211 "AmpUrl": {
212 "description": "AMP URL response for a requested URL.",
213 "id": "AmpUrl",
214 "properties": {
215 "cdnAmpUrl": {
216 "description": "The [AMP Cache URL](/amp/cache/overview#amp- cache-url-format) pointing to\nthe cached document in the Google AMP Cache.",
217 "type": "string"
218 },
219 "originalUrl": {
220 "description": "The original non-AMP URL.",
221 "type": "string"
222 },
223 "ampUrl": {
224 "description": "The AMP URL pointing to the publisher's web server.",
225 "type": "string"
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 }
OLDNEW
« no previous file with comments | « config.yaml ('k') | discovery/googleapis/admin__directory_v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698