Skip to content

Commit 29f5c72

Browse files
author
cloudsharp
committed
Update discovery documents and generated code
automatically_generated_update
1 parent 5902ea8 commit 29f5c72

File tree

472 files changed

+95820
-95676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+95820
-95676
lines changed

DiscoveryJson/abusiveexperiencereport_v1.json

Lines changed: 182 additions & 182 deletions
Large diffs are not rendered by default.
Lines changed: 108 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
2-
"kind": "discovery#restDescription",
3-
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
4-
"servicePath": "",
5-
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
6-
"basePath": "",
7-
"ownerDomain": "google.com",
8-
"name": "acceleratedmobilepageurl",
9-
"batchPath": "batch",
10-
"revision": "20180110",
11-
"documentationLink": "https://developers.google.com/amp/cache/",
122
"id": "acceleratedmobilepageurl:v1",
3+
"documentationLink": "https://developers.google.com/amp/cache/",
4+
"revision": "20180110",
135
"title": "Accelerated Mobile Pages (AMP) URL API",
146
"ownerName": "Google",
157
"discoveryVersion": "v1",
@@ -18,38 +10,28 @@
1810
"ampUrls": {
1911
"methods": {
2012
"batchGet": {
21-
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
22-
"path": "v1/ampUrls:batchGet",
23-
"request": {
24-
"$ref": "BatchGetAmpUrlsRequest"
25-
},
26-
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
27-
"httpMethod": "POST",
28-
"parameterOrder": [],
2913
"response": {
3014
"$ref": "BatchGetAmpUrlsResponse"
3115
},
16+
"parameterOrder": [],
17+
"httpMethod": "POST",
3218
"parameters": {},
33-
"flatPath": "v1/ampUrls:batchGet"
19+
"flatPath": "v1/ampUrls:batchGet",
20+
"path": "v1/ampUrls:batchGet",
21+
"id": "acceleratedmobilepageurl.ampUrls.batchGet",
22+
"description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
23+
"request": {
24+
"$ref": "BatchGetAmpUrlsRequest"
25+
}
3426
}
3527
}
3628
}
3729
},
3830
"parameters": {
39-
"bearer_token": {
40-
"description": "OAuth bearer token.",
41-
"type": "string",
42-
"location": "query"
43-
},
44-
"oauth_token": {
45-
"location": "query",
46-
"description": "OAuth 2.0 token for the current user.",
47-
"type": "string"
48-
},
4931
"upload_protocol": {
32+
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
5033
"type": "string",
51-
"location": "query",
52-
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
34+
"location": "query"
5335
},
5436
"prettyPrint": {
5537
"description": "Returns response with indentations and line breaks.",
@@ -67,27 +49,25 @@
6749
"type": "string",
6850
"location": "query"
6951
},
70-
"callback": {
71-
"location": "query",
72-
"description": "JSONP",
73-
"type": "string"
74-
},
7552
"$.xgafv": {
76-
"enum": [
77-
"1",
78-
"2"
79-
],
8053
"description": "V1 error format.",
8154
"type": "string",
8255
"enumDescriptions": [
8356
"v1 error format",
8457
"v2 error format"
8558
],
86-
"location": "query"
59+
"location": "query",
60+
"enum": [
61+
"1",
62+
"2"
63+
]
64+
},
65+
"callback": {
66+
"location": "query",
67+
"description": "JSONP",
68+
"type": "string"
8769
},
8870
"alt": {
89-
"description": "Data format for response.",
90-
"default": "json",
9171
"enum": [
9272
"json",
9373
"media",
@@ -99,17 +79,19 @@
9979
"Media download with context-dependent Content-Type",
10080
"Responses with Content-Type of application/x-protobuf"
10181
],
102-
"location": "query"
82+
"location": "query",
83+
"description": "Data format for response.",
84+
"default": "json"
10385
},
104-
"key": {
86+
"access_token": {
10587
"location": "query",
106-
"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.",
88+
"description": "OAuth access token.",
10789
"type": "string"
10890
},
109-
"access_token": {
110-
"type": "string",
91+
"key": {
11192
"location": "query",
112-
"description": "OAuth access token."
93+
"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.",
94+
"type": "string"
11395
},
11496
"quotaUser": {
11597
"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.",
@@ -121,58 +103,20 @@
121103
"type": "boolean",
122104
"default": "true",
123105
"location": "query"
106+
},
107+
"oauth_token": {
108+
"location": "query",
109+
"description": "OAuth 2.0 token for the current user.",
110+
"type": "string"
111+
},
112+
"bearer_token": {
113+
"description": "OAuth bearer token.",
114+
"type": "string",
115+
"location": "query"
124116
}
125117
},
126118
"schemas": {
127-
"BatchGetAmpUrlsRequest": {
128-
"properties": {
129-
"urls": {
130-
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits)).",
131-
"type": "array",
132-
"items": {
133-
"type": "string"
134-
}
135-
},
136-
"lookupStrategy": {
137-
"enum": [
138-
"FETCH_LIVE_DOC",
139-
"IN_INDEX_DOC"
140-
],
141-
"description": "The lookup_strategy being requested.",
142-
"type": "string",
143-
"enumDescriptions": [
144-
"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 is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
145-
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
146-
]
147-
}
148-
},
149-
"id": "BatchGetAmpUrlsRequest",
150-
"description": "AMP URL request for a batch of URLs.",
151-
"type": "object"
152-
},
153-
"BatchGetAmpUrlsResponse": {
154-
"type": "object",
155-
"properties": {
156-
"ampUrls": {
157-
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
158-
"type": "array",
159-
"items": {
160-
"$ref": "AmpUrl"
161-
}
162-
},
163-
"urlErrors": {
164-
"description": "The errors for requested URLs that have no AMP URL.",
165-
"type": "array",
166-
"items": {
167-
"$ref": "AmpUrlError"
168-
}
169-
}
170-
},
171-
"id": "BatchGetAmpUrlsResponse",
172-
"description": "Batch AMP URL response."
173-
},
174119
"AmpUrl": {
175-
"id": "AmpUrl",
176120
"description": "AMP URL response for a requested URL.",
177121
"type": "object",
178122
"properties": {
@@ -181,14 +125,15 @@
181125
"type": "string"
182126
},
183127
"originalUrl": {
184-
"description": "The original non-AMP URL.",
185-
"type": "string"
128+
"type": "string",
129+
"description": "The original non-AMP URL."
186130
},
187131
"ampUrl": {
188-
"description": "The AMP URL pointing to the publisher's web server.",
189-
"type": "string"
132+
"type": "string",
133+
"description": "The AMP URL pointing to the publisher's web server."
190134
}
191-
}
135+
},
136+
"id": "AmpUrl"
192137
},
193138
"AmpUrlError": {
194139
"description": "AMP URL Error resource for a requested URL that couldn't be found.",
@@ -199,8 +144,6 @@
199144
"type": "string"
200145
},
201146
"errorCode": {
202-
"description": "The error code of an API call.",
203-
"type": "string",
204147
"enumDescriptions": [
205148
"Not specified error.",
206149
"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.",
@@ -216,21 +159,78 @@
216159
"APPLICATION_ERROR",
217160
"URL_IS_VALID_AMP",
218161
"URL_IS_INVALID_AMP"
219-
]
162+
],
163+
"description": "The error code of an API call.",
164+
"type": "string"
220165
},
221166
"originalUrl": {
222167
"description": "The original non-AMP URL.",
223168
"type": "string"
224169
}
225170
},
226171
"id": "AmpUrlError"
172+
},
173+
"BatchGetAmpUrlsRequest": {
174+
"description": "AMP URL request for a batch of URLs.",
175+
"type": "object",
176+
"properties": {
177+
"lookupStrategy": {
178+
"enumDescriptions": [
179+
"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 is\nthe default strategy. Applications using this strategy should set higher\nHTTP timeouts of the API calls.",
180+
"IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found\nin index. For applications which need low latency use of IN_INDEX_DOC\nstrategy is recommended."
181+
],
182+
"enum": [
183+
"FETCH_LIVE_DOC",
184+
"IN_INDEX_DOC"
185+
],
186+
"description": "The lookup_strategy being requested.",
187+
"type": "string"
188+
},
189+
"urls": {
190+
"type": "array",
191+
"items": {
192+
"type": "string"
193+
},
194+
"description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 50 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits))."
195+
}
196+
},
197+
"id": "BatchGetAmpUrlsRequest"
198+
},
199+
"BatchGetAmpUrlsResponse": {
200+
"type": "object",
201+
"properties": {
202+
"ampUrls": {
203+
"description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
204+
"type": "array",
205+
"items": {
206+
"$ref": "AmpUrl"
207+
}
208+
},
209+
"urlErrors": {
210+
"description": "The errors for requested URLs that have no AMP URL.",
211+
"type": "array",
212+
"items": {
213+
"$ref": "AmpUrlError"
214+
}
215+
}
216+
},
217+
"id": "BatchGetAmpUrlsResponse",
218+
"description": "Batch AMP URL response."
227219
}
228220
},
229221
"protocol": "rest",
230222
"icons": {
231-
"x16": "http://www.google.com/images/icons/product/search-16.gif",
232-
"x32": "http://www.google.com/images/icons/product/search-32.gif"
223+
"x32": "http://www.google.com/images/icons/product/search-32.gif",
224+
"x16": "http://www.google.com/images/icons/product/search-16.gif"
233225
},
234226
"version": "v1",
235-
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/"
227+
"baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
228+
"kind": "discovery#restDescription",
229+
"description": "Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s).\n",
230+
"servicePath": "",
231+
"rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
232+
"basePath": "",
233+
"ownerDomain": "google.com",
234+
"name": "acceleratedmobilepageurl",
235+
"batchPath": "batch"
236236
}

0 commit comments

Comments
 (0)