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

Side by Side Diff: generated/googleapis/lib/webmasters/v3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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 | « generated/googleapis/lib/webfonts/v1.dart ('k') | generated/googleapis/lib/youtube/v3.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.webmasters.v3; 3 library googleapis.webmasters.v3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client webmasters/v3'; 15 const core.String USER_AGENT = 'dart-api-client webmasters/v3';
16 16
17 /** View Google Search Console data for your verified sites. */ 17 /// View Google Search Console data for your verified sites.
18 class WebmastersApi { 18 class WebmastersApi {
19 /** View and manage Search Console data for your verified sites */ 19 /// View and manage Search Console data for your verified sites
20 static const WebmastersScope = "https://www.googleapis.com/auth/webmasters"; 20 static const WebmastersScope = "https://www.googleapis.com/auth/webmasters";
21 21
22 /** View Search Console data for your verified sites */ 22 /// View Search Console data for your verified sites
23 static const WebmastersReadonlyScope = "https://www.googleapis.com/auth/webmas ters.readonly"; 23 static const WebmastersReadonlyScope =
24 24 "https://www.googleapis.com/auth/webmasters.readonly";
25 25
26 final commons.ApiRequester _requester; 26 final commons.ApiRequester _requester;
27 27
28 SearchanalyticsResourceApi get searchanalytics => new SearchanalyticsResourceA pi(_requester); 28 SearchanalyticsResourceApi get searchanalytics =>
29 new SearchanalyticsResourceApi(_requester);
29 SitemapsResourceApi get sitemaps => new SitemapsResourceApi(_requester); 30 SitemapsResourceApi get sitemaps => new SitemapsResourceApi(_requester);
30 SitesResourceApi get sites => new SitesResourceApi(_requester); 31 SitesResourceApi get sites => new SitesResourceApi(_requester);
31 UrlcrawlerrorscountsResourceApi get urlcrawlerrorscounts => new Urlcrawlerrors countsResourceApi(_requester); 32 UrlcrawlerrorscountsResourceApi get urlcrawlerrorscounts =>
32 UrlcrawlerrorssamplesResourceApi get urlcrawlerrorssamples => new Urlcrawlerro rssamplesResourceApi(_requester); 33 new UrlcrawlerrorscountsResourceApi(_requester);
34 UrlcrawlerrorssamplesResourceApi get urlcrawlerrorssamples =>
35 new UrlcrawlerrorssamplesResourceApi(_requester);
33 36
34 WebmastersApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "webmasters/v3/"}) : 37 WebmastersApi(http.Client client,
35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 38 {core.String rootUrl: "https://www.googleapis.com/",
39 core.String servicePath: "webmasters/v3/"})
40 : _requester =
41 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
36 } 42 }
37 43
38
39 class SearchanalyticsResourceApi { 44 class SearchanalyticsResourceApi {
40 final commons.ApiRequester _requester; 45 final commons.ApiRequester _requester;
41 46
42 SearchanalyticsResourceApi(commons.ApiRequester client) : 47 SearchanalyticsResourceApi(commons.ApiRequester client) : _requester = client;
43 _requester = client;
44 48
45 /** 49 /// Query your data with filters and parameters that you define. Returns zero
46 * Query your data with filters and parameters that you define. Returns zero 50 /// or more rows grouped by the row keys that you define. You must define a
47 * or more rows grouped by the row keys that you define. You must define a 51 /// date range of one or more days.
48 * date range of one or more days. 52 ///
49 * 53 /// When date is one of the group by values, any days without data are
50 * When date is one of the group by values, any days without data are omitted 54 /// omitted from the result list. If you need to know which days have data,
51 * from the result list. If you need to know which days have data, issue a 55 /// issue a broad date range query grouped by date for any metric, and see
52 * broad date range query grouped by date for any metric, and see which day 56 /// which day rows are returned.
53 * rows are returned. 57 ///
54 * 58 /// [request] - The metadata request object.
55 * [request] - The metadata request object. 59 ///
56 * 60 /// Request parameters:
57 * Request parameters: 61 ///
58 * 62 /// [siteUrl] - The site's URL, including protocol. For example:
59 * [siteUrl] - The site's URL, including protocol. For example: 63 /// http://www.example.com/
60 * http://www.example.com/ 64 ///
61 * 65 /// Completes with a [SearchAnalyticsQueryResponse].
62 * Completes with a [SearchAnalyticsQueryResponse]. 66 ///
63 * 67 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 68 /// an error.
65 * error. 69 ///
66 * 70 /// If the used [http.Client] completes with an error when making a REST
67 * If the used [http.Client] completes with an error when making a REST call, 71 /// call, this method will complete with the same error.
68 * this method will complete with the same error. 72 async.Future<SearchAnalyticsQueryResponse> query(
69 */ 73 SearchAnalyticsQueryRequest request, core.String siteUrl) {
70 async.Future<SearchAnalyticsQueryResponse> query(SearchAnalyticsQueryRequest r equest, core.String siteUrl) {
71 var _url = null; 74 var _url = null;
72 var _queryParams = new core.Map(); 75 var _queryParams = new core.Map();
73 var _uploadMedia = null; 76 var _uploadMedia = null;
74 var _uploadOptions = null; 77 var _uploadOptions = null;
75 var _downloadOptions = commons.DownloadOptions.Metadata; 78 var _downloadOptions = commons.DownloadOptions.Metadata;
76 var _body = null; 79 var _body = null;
77 80
78 if (request != null) { 81 if (request != null) {
79 _body = convert.JSON.encode((request).toJson()); 82 _body = convert.JSON.encode((request).toJson());
80 } 83 }
81 if (siteUrl == null) { 84 if (siteUrl == null) {
82 throw new core.ArgumentError("Parameter siteUrl is required."); 85 throw new core.ArgumentError("Parameter siteUrl is required.");
83 } 86 }
84 87
85 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/searchAnalyt ics/query'; 88 _url = 'sites/' +
89 commons.Escaper.ecapeVariable('$siteUrl') +
90 '/searchAnalytics/query';
86 91
87 var _response = _requester.request(_url, 92 var _response = _requester.request(_url, "POST",
88 "POST", 93 body: _body,
89 body: _body, 94 queryParams: _queryParams,
90 queryParams: _queryParams, 95 uploadOptions: _uploadOptions,
91 uploadOptions: _uploadOptions, 96 uploadMedia: _uploadMedia,
92 uploadMedia: _uploadMedia, 97 downloadOptions: _downloadOptions);
93 downloadOptions: _downloadOptions); 98 return _response
94 return _response.then((data) => new SearchAnalyticsQueryResponse.fromJson(da ta)); 99 .then((data) => new SearchAnalyticsQueryResponse.fromJson(data));
95 } 100 }
96
97 } 101 }
98 102
99
100 class SitemapsResourceApi { 103 class SitemapsResourceApi {
101 final commons.ApiRequester _requester; 104 final commons.ApiRequester _requester;
102 105
103 SitemapsResourceApi(commons.ApiRequester client) : 106 SitemapsResourceApi(commons.ApiRequester client) : _requester = client;
104 _requester = client;
105 107
106 /** 108 /// Deletes a sitemap from this site.
107 * Deletes a sitemap from this site. 109 ///
108 * 110 /// Request parameters:
109 * Request parameters: 111 ///
110 * 112 /// [siteUrl] - The site's URL, including protocol. For example:
111 * [siteUrl] - The site's URL, including protocol. For example: 113 /// http://www.example.com/
112 * http://www.example.com/ 114 ///
113 * 115 /// [feedpath] - The URL of the actual sitemap. For example:
114 * [feedpath] - The URL of the actual sitemap. For example: 116 /// http://www.example.com/sitemap.xml
115 * http://www.example.com/sitemap.xml 117 ///
116 * 118 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 119 /// an error.
118 * error. 120 ///
119 * 121 /// If the used [http.Client] completes with an error when making a REST
120 * If the used [http.Client] completes with an error when making a REST call, 122 /// call, this method will complete with the same error.
121 * this method will complete with the same error.
122 */
123 async.Future delete(core.String siteUrl, core.String feedpath) { 123 async.Future delete(core.String siteUrl, core.String feedpath) {
124 var _url = null; 124 var _url = null;
125 var _queryParams = new core.Map(); 125 var _queryParams = new core.Map();
126 var _uploadMedia = null; 126 var _uploadMedia = null;
127 var _uploadOptions = null; 127 var _uploadOptions = null;
128 var _downloadOptions = commons.DownloadOptions.Metadata; 128 var _downloadOptions = commons.DownloadOptions.Metadata;
129 var _body = null; 129 var _body = null;
130 130
131 if (siteUrl == null) { 131 if (siteUrl == null) {
132 throw new core.ArgumentError("Parameter siteUrl is required."); 132 throw new core.ArgumentError("Parameter siteUrl is required.");
133 } 133 }
134 if (feedpath == null) { 134 if (feedpath == null) {
135 throw new core.ArgumentError("Parameter feedpath is required."); 135 throw new core.ArgumentError("Parameter feedpath is required.");
136 } 136 }
137 137
138 _downloadOptions = null; 138 _downloadOptions = null;
139 139
140 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath'); 140 _url = 'sites/' +
141 commons.Escaper.ecapeVariable('$siteUrl') +
142 '/sitemaps/' +
143 commons.Escaper.ecapeVariable('$feedpath');
141 144
142 var _response = _requester.request(_url, 145 var _response = _requester.request(_url, "DELETE",
143 "DELETE", 146 body: _body,
144 body: _body, 147 queryParams: _queryParams,
145 queryParams: _queryParams, 148 uploadOptions: _uploadOptions,
146 uploadOptions: _uploadOptions, 149 uploadMedia: _uploadMedia,
147 uploadMedia: _uploadMedia, 150 downloadOptions: _downloadOptions);
148 downloadOptions: _downloadOptions);
149 return _response.then((data) => null); 151 return _response.then((data) => null);
150 } 152 }
151 153
152 /** 154 /// Retrieves information about a specific sitemap.
153 * Retrieves information about a specific sitemap. 155 ///
154 * 156 /// Request parameters:
155 * Request parameters: 157 ///
156 * 158 /// [siteUrl] - The site's URL, including protocol. For example:
157 * [siteUrl] - The site's URL, including protocol. For example: 159 /// http://www.example.com/
158 * http://www.example.com/ 160 ///
159 * 161 /// [feedpath] - The URL of the actual sitemap. For example:
160 * [feedpath] - The URL of the actual sitemap. For example: 162 /// http://www.example.com/sitemap.xml
161 * http://www.example.com/sitemap.xml 163 ///
162 * 164 /// Completes with a [WmxSitemap].
163 * Completes with a [WmxSitemap]. 165 ///
164 * 166 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 167 /// an error.
166 * error. 168 ///
167 * 169 /// If the used [http.Client] completes with an error when making a REST
168 * If the used [http.Client] completes with an error when making a REST call, 170 /// call, this method will complete with the same error.
169 * this method will complete with the same error.
170 */
171 async.Future<WmxSitemap> get(core.String siteUrl, core.String feedpath) { 171 async.Future<WmxSitemap> get(core.String siteUrl, core.String feedpath) {
172 var _url = null; 172 var _url = null;
173 var _queryParams = new core.Map(); 173 var _queryParams = new core.Map();
174 var _uploadMedia = null; 174 var _uploadMedia = null;
175 var _uploadOptions = null; 175 var _uploadOptions = null;
176 var _downloadOptions = commons.DownloadOptions.Metadata; 176 var _downloadOptions = commons.DownloadOptions.Metadata;
177 var _body = null; 177 var _body = null;
178 178
179 if (siteUrl == null) { 179 if (siteUrl == null) {
180 throw new core.ArgumentError("Parameter siteUrl is required."); 180 throw new core.ArgumentError("Parameter siteUrl is required.");
181 } 181 }
182 if (feedpath == null) { 182 if (feedpath == null) {
183 throw new core.ArgumentError("Parameter feedpath is required."); 183 throw new core.ArgumentError("Parameter feedpath is required.");
184 } 184 }
185 185
186 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath'); 186 _url = 'sites/' +
187 commons.Escaper.ecapeVariable('$siteUrl') +
188 '/sitemaps/' +
189 commons.Escaper.ecapeVariable('$feedpath');
187 190
188 var _response = _requester.request(_url, 191 var _response = _requester.request(_url, "GET",
189 "GET", 192 body: _body,
190 body: _body, 193 queryParams: _queryParams,
191 queryParams: _queryParams, 194 uploadOptions: _uploadOptions,
192 uploadOptions: _uploadOptions, 195 uploadMedia: _uploadMedia,
193 uploadMedia: _uploadMedia, 196 downloadOptions: _downloadOptions);
194 downloadOptions: _downloadOptions);
195 return _response.then((data) => new WmxSitemap.fromJson(data)); 197 return _response.then((data) => new WmxSitemap.fromJson(data));
196 } 198 }
197 199
198 /** 200 /// Lists the sitemaps-entries submitted for this site, or included in the
199 * Lists the sitemaps-entries submitted for this site, or included in the 201 /// sitemap index file (if sitemapIndex is specified in the request).
200 * sitemap index file (if sitemapIndex is specified in the request). 202 ///
201 * 203 /// Request parameters:
202 * Request parameters: 204 ///
203 * 205 /// [siteUrl] - The site's URL, including protocol. For example:
204 * [siteUrl] - The site's URL, including protocol. For example: 206 /// http://www.example.com/
205 * http://www.example.com/ 207 ///
206 * 208 /// [sitemapIndex] - A URL of a site's sitemap index. For example:
207 * [sitemapIndex] - A URL of a site's sitemap index. For example: 209 /// http://www.example.com/sitemapindex.xml
208 * http://www.example.com/sitemapindex.xml 210 ///
209 * 211 /// Completes with a [SitemapsListResponse].
210 * Completes with a [SitemapsListResponse]. 212 ///
211 * 213 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
212 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 214 /// an error.
213 * error. 215 ///
214 * 216 /// If the used [http.Client] completes with an error when making a REST
215 * If the used [http.Client] completes with an error when making a REST call, 217 /// call, this method will complete with the same error.
216 * this method will complete with the same error. 218 async.Future<SitemapsListResponse> list(core.String siteUrl,
217 */ 219 {core.String sitemapIndex}) {
218 async.Future<SitemapsListResponse> list(core.String siteUrl, {core.String site mapIndex}) {
219 var _url = null; 220 var _url = null;
220 var _queryParams = new core.Map(); 221 var _queryParams = new core.Map();
221 var _uploadMedia = null; 222 var _uploadMedia = null;
222 var _uploadOptions = null; 223 var _uploadOptions = null;
223 var _downloadOptions = commons.DownloadOptions.Metadata; 224 var _downloadOptions = commons.DownloadOptions.Metadata;
224 var _body = null; 225 var _body = null;
225 226
226 if (siteUrl == null) { 227 if (siteUrl == null) {
227 throw new core.ArgumentError("Parameter siteUrl is required."); 228 throw new core.ArgumentError("Parameter siteUrl is required.");
228 } 229 }
229 if (sitemapIndex != null) { 230 if (sitemapIndex != null) {
230 _queryParams["sitemapIndex"] = [sitemapIndex]; 231 _queryParams["sitemapIndex"] = [sitemapIndex];
231 } 232 }
232 233
233 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps'; 234 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps';
234 235
235 var _response = _requester.request(_url, 236 var _response = _requester.request(_url, "GET",
236 "GET", 237 body: _body,
237 body: _body, 238 queryParams: _queryParams,
238 queryParams: _queryParams, 239 uploadOptions: _uploadOptions,
239 uploadOptions: _uploadOptions, 240 uploadMedia: _uploadMedia,
240 uploadMedia: _uploadMedia, 241 downloadOptions: _downloadOptions);
241 downloadOptions: _downloadOptions);
242 return _response.then((data) => new SitemapsListResponse.fromJson(data)); 242 return _response.then((data) => new SitemapsListResponse.fromJson(data));
243 } 243 }
244 244
245 /** 245 /// Submits a sitemap for a site.
246 * Submits a sitemap for a site. 246 ///
247 * 247 /// Request parameters:
248 * Request parameters: 248 ///
249 * 249 /// [siteUrl] - The site's URL, including protocol. For example:
250 * [siteUrl] - The site's URL, including protocol. For example: 250 /// http://www.example.com/
251 * http://www.example.com/ 251 ///
252 * 252 /// [feedpath] - The URL of the sitemap to add. For example:
253 * [feedpath] - The URL of the sitemap to add. For example: 253 /// http://www.example.com/sitemap.xml
254 * http://www.example.com/sitemap.xml 254 ///
255 * 255 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
256 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 256 /// an error.
257 * error. 257 ///
258 * 258 /// If the used [http.Client] completes with an error when making a REST
259 * If the used [http.Client] completes with an error when making a REST call, 259 /// call, this method will complete with the same error.
260 * this method will complete with the same error.
261 */
262 async.Future submit(core.String siteUrl, core.String feedpath) { 260 async.Future submit(core.String siteUrl, core.String feedpath) {
263 var _url = null; 261 var _url = null;
264 var _queryParams = new core.Map(); 262 var _queryParams = new core.Map();
265 var _uploadMedia = null; 263 var _uploadMedia = null;
266 var _uploadOptions = null; 264 var _uploadOptions = null;
267 var _downloadOptions = commons.DownloadOptions.Metadata; 265 var _downloadOptions = commons.DownloadOptions.Metadata;
268 var _body = null; 266 var _body = null;
269 267
270 if (siteUrl == null) { 268 if (siteUrl == null) {
271 throw new core.ArgumentError("Parameter siteUrl is required."); 269 throw new core.ArgumentError("Parameter siteUrl is required.");
272 } 270 }
273 if (feedpath == null) { 271 if (feedpath == null) {
274 throw new core.ArgumentError("Parameter feedpath is required."); 272 throw new core.ArgumentError("Parameter feedpath is required.");
275 } 273 }
276 274
277 _downloadOptions = null; 275 _downloadOptions = null;
278 276
279 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath'); 277 _url = 'sites/' +
278 commons.Escaper.ecapeVariable('$siteUrl') +
279 '/sitemaps/' +
280 commons.Escaper.ecapeVariable('$feedpath');
280 281
281 var _response = _requester.request(_url, 282 var _response = _requester.request(_url, "PUT",
282 "PUT", 283 body: _body,
283 body: _body, 284 queryParams: _queryParams,
284 queryParams: _queryParams, 285 uploadOptions: _uploadOptions,
285 uploadOptions: _uploadOptions, 286 uploadMedia: _uploadMedia,
286 uploadMedia: _uploadMedia, 287 downloadOptions: _downloadOptions);
287 downloadOptions: _downloadOptions);
288 return _response.then((data) => null); 288 return _response.then((data) => null);
289 } 289 }
290
291 } 290 }
292 291
293
294 class SitesResourceApi { 292 class SitesResourceApi {
295 final commons.ApiRequester _requester; 293 final commons.ApiRequester _requester;
296 294
297 SitesResourceApi(commons.ApiRequester client) : 295 SitesResourceApi(commons.ApiRequester client) : _requester = client;
298 _requester = client;
299 296
300 /** 297 /// Adds a site to the set of the user's sites in Search Console.
301 * Adds a site to the set of the user's sites in Search Console. 298 ///
302 * 299 /// Request parameters:
303 * Request parameters: 300 ///
304 * 301 /// [siteUrl] - The URL of the site to add.
305 * [siteUrl] - The URL of the site to add. 302 ///
306 * 303 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
307 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 304 /// an error.
308 * error. 305 ///
309 * 306 /// If the used [http.Client] completes with an error when making a REST
310 * If the used [http.Client] completes with an error when making a REST call, 307 /// call, this method will complete with the same error.
311 * this method will complete with the same error.
312 */
313 async.Future add(core.String siteUrl) { 308 async.Future add(core.String siteUrl) {
314 var _url = null; 309 var _url = null;
315 var _queryParams = new core.Map(); 310 var _queryParams = new core.Map();
316 var _uploadMedia = null; 311 var _uploadMedia = null;
317 var _uploadOptions = null; 312 var _uploadOptions = null;
318 var _downloadOptions = commons.DownloadOptions.Metadata; 313 var _downloadOptions = commons.DownloadOptions.Metadata;
319 var _body = null; 314 var _body = null;
320 315
321 if (siteUrl == null) { 316 if (siteUrl == null) {
322 throw new core.ArgumentError("Parameter siteUrl is required."); 317 throw new core.ArgumentError("Parameter siteUrl is required.");
323 } 318 }
324 319
325 _downloadOptions = null; 320 _downloadOptions = null;
326 321
327 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl'); 322 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
328 323
329 var _response = _requester.request(_url, 324 var _response = _requester.request(_url, "PUT",
330 "PUT", 325 body: _body,
331 body: _body, 326 queryParams: _queryParams,
332 queryParams: _queryParams, 327 uploadOptions: _uploadOptions,
333 uploadOptions: _uploadOptions, 328 uploadMedia: _uploadMedia,
334 uploadMedia: _uploadMedia, 329 downloadOptions: _downloadOptions);
335 downloadOptions: _downloadOptions);
336 return _response.then((data) => null); 330 return _response.then((data) => null);
337 } 331 }
338 332
339 /** 333 /// Removes a site from the set of the user's Search Console sites.
340 * Removes a site from the set of the user's Search Console sites. 334 ///
341 * 335 /// Request parameters:
342 * Request parameters: 336 ///
343 * 337 /// [siteUrl] - The URI of the property as defined in Search Console.
344 * [siteUrl] - The URI of the property as defined in Search Console. Examples: 338 /// Examples: http://www.example.com/ or android-app://com.example/
345 * http://www.example.com/ or android-app://com.example/ 339 ///
346 * 340 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
347 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 341 /// an error.
348 * error. 342 ///
349 * 343 /// If the used [http.Client] completes with an error when making a REST
350 * If the used [http.Client] completes with an error when making a REST call, 344 /// call, this method will complete with the same error.
351 * this method will complete with the same error.
352 */
353 async.Future delete(core.String siteUrl) { 345 async.Future delete(core.String siteUrl) {
354 var _url = null; 346 var _url = null;
355 var _queryParams = new core.Map(); 347 var _queryParams = new core.Map();
356 var _uploadMedia = null; 348 var _uploadMedia = null;
357 var _uploadOptions = null; 349 var _uploadOptions = null;
358 var _downloadOptions = commons.DownloadOptions.Metadata; 350 var _downloadOptions = commons.DownloadOptions.Metadata;
359 var _body = null; 351 var _body = null;
360 352
361 if (siteUrl == null) { 353 if (siteUrl == null) {
362 throw new core.ArgumentError("Parameter siteUrl is required."); 354 throw new core.ArgumentError("Parameter siteUrl is required.");
363 } 355 }
364 356
365 _downloadOptions = null; 357 _downloadOptions = null;
366 358
367 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl'); 359 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
368 360
369 var _response = _requester.request(_url, 361 var _response = _requester.request(_url, "DELETE",
370 "DELETE", 362 body: _body,
371 body: _body, 363 queryParams: _queryParams,
372 queryParams: _queryParams, 364 uploadOptions: _uploadOptions,
373 uploadOptions: _uploadOptions, 365 uploadMedia: _uploadMedia,
374 uploadMedia: _uploadMedia, 366 downloadOptions: _downloadOptions);
375 downloadOptions: _downloadOptions);
376 return _response.then((data) => null); 367 return _response.then((data) => null);
377 } 368 }
378 369
379 /** 370 /// Retrieves information about specific site.
380 * Retrieves information about specific site. 371 ///
381 * 372 /// Request parameters:
382 * Request parameters: 373 ///
383 * 374 /// [siteUrl] - The URI of the property as defined in Search Console.
384 * [siteUrl] - The URI of the property as defined in Search Console. Examples: 375 /// Examples: http://www.example.com/ or android-app://com.example/
385 * http://www.example.com/ or android-app://com.example/ 376 ///
386 * 377 /// Completes with a [WmxSite].
387 * Completes with a [WmxSite]. 378 ///
388 * 379 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 380 /// an error.
390 * error. 381 ///
391 * 382 /// If the used [http.Client] completes with an error when making a REST
392 * If the used [http.Client] completes with an error when making a REST call, 383 /// call, this method will complete with the same error.
393 * this method will complete with the same error.
394 */
395 async.Future<WmxSite> get(core.String siteUrl) { 384 async.Future<WmxSite> get(core.String siteUrl) {
396 var _url = null; 385 var _url = null;
397 var _queryParams = new core.Map(); 386 var _queryParams = new core.Map();
398 var _uploadMedia = null; 387 var _uploadMedia = null;
399 var _uploadOptions = null; 388 var _uploadOptions = null;
400 var _downloadOptions = commons.DownloadOptions.Metadata; 389 var _downloadOptions = commons.DownloadOptions.Metadata;
401 var _body = null; 390 var _body = null;
402 391
403 if (siteUrl == null) { 392 if (siteUrl == null) {
404 throw new core.ArgumentError("Parameter siteUrl is required."); 393 throw new core.ArgumentError("Parameter siteUrl is required.");
405 } 394 }
406 395
407 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl'); 396 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
408 397
409 var _response = _requester.request(_url, 398 var _response = _requester.request(_url, "GET",
410 "GET", 399 body: _body,
411 body: _body, 400 queryParams: _queryParams,
412 queryParams: _queryParams, 401 uploadOptions: _uploadOptions,
413 uploadOptions: _uploadOptions, 402 uploadMedia: _uploadMedia,
414 uploadMedia: _uploadMedia, 403 downloadOptions: _downloadOptions);
415 downloadOptions: _downloadOptions);
416 return _response.then((data) => new WmxSite.fromJson(data)); 404 return _response.then((data) => new WmxSite.fromJson(data));
417 } 405 }
418 406
419 /** 407 /// Lists the user's Search Console sites.
420 * Lists the user's Search Console sites. 408 ///
421 * 409 /// Request parameters:
422 * Request parameters: 410 ///
423 * 411 /// Completes with a [SitesListResponse].
424 * Completes with a [SitesListResponse]. 412 ///
425 * 413 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
426 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 414 /// an error.
427 * error. 415 ///
428 * 416 /// If the used [http.Client] completes with an error when making a REST
429 * If the used [http.Client] completes with an error when making a REST call, 417 /// call, this method will complete with the same error.
430 * this method will complete with the same error.
431 */
432 async.Future<SitesListResponse> list() { 418 async.Future<SitesListResponse> list() {
433 var _url = null; 419 var _url = null;
434 var _queryParams = new core.Map(); 420 var _queryParams = new core.Map();
435 var _uploadMedia = null; 421 var _uploadMedia = null;
436 var _uploadOptions = null; 422 var _uploadOptions = null;
437 var _downloadOptions = commons.DownloadOptions.Metadata; 423 var _downloadOptions = commons.DownloadOptions.Metadata;
438 var _body = null; 424 var _body = null;
439 425
440
441 _url = 'sites'; 426 _url = 'sites';
442 427
443 var _response = _requester.request(_url, 428 var _response = _requester.request(_url, "GET",
444 "GET", 429 body: _body,
445 body: _body, 430 queryParams: _queryParams,
446 queryParams: _queryParams, 431 uploadOptions: _uploadOptions,
447 uploadOptions: _uploadOptions, 432 uploadMedia: _uploadMedia,
448 uploadMedia: _uploadMedia, 433 downloadOptions: _downloadOptions);
449 downloadOptions: _downloadOptions);
450 return _response.then((data) => new SitesListResponse.fromJson(data)); 434 return _response.then((data) => new SitesListResponse.fromJson(data));
451 } 435 }
452
453 } 436 }
454 437
455
456 class UrlcrawlerrorscountsResourceApi { 438 class UrlcrawlerrorscountsResourceApi {
457 final commons.ApiRequester _requester; 439 final commons.ApiRequester _requester;
458 440
459 UrlcrawlerrorscountsResourceApi(commons.ApiRequester client) : 441 UrlcrawlerrorscountsResourceApi(commons.ApiRequester client)
460 _requester = client; 442 : _requester = client;
461 443
462 /** 444 /// Retrieves a time series of the number of URL crawl errors per error
463 * Retrieves a time series of the number of URL crawl errors per error 445 /// category and platform.
464 * category and platform. 446 ///
465 * 447 /// Request parameters:
466 * Request parameters: 448 ///
467 * 449 /// [siteUrl] - The site's URL, including protocol. For example:
468 * [siteUrl] - The site's URL, including protocol. For example: 450 /// http://www.example.com/
469 * http://www.example.com/ 451 ///
470 * 452 /// [category] - The crawl error category. For example: serverError. If not
471 * [category] - The crawl error category. For example: serverError. If not 453 /// specified, returns results for all categories.
472 * specified, returns results for all categories. 454 /// Possible string values are:
473 * Possible string values are: 455 /// - "authPermissions"
474 * - "authPermissions" 456 /// - "flashContent"
475 * - "flashContent" 457 /// - "manyToOneRedirect"
476 * - "manyToOneRedirect" 458 /// - "notFollowed"
477 * - "notFollowed" 459 /// - "notFound"
478 * - "notFound" 460 /// - "other"
479 * - "other" 461 /// - "roboted"
480 * - "roboted" 462 /// - "serverError"
481 * - "serverError" 463 /// - "soft404"
482 * - "soft404" 464 ///
483 * 465 /// [latestCountsOnly] - If true, returns only the latest crawl error counts.
484 * [latestCountsOnly] - If true, returns only the latest crawl error counts. 466 ///
485 * 467 /// [platform] - The user agent type (platform) that made the request. For
486 * [platform] - The user agent type (platform) that made the request. For 468 /// example: web. If not specified, returns results for all platforms.
487 * example: web. If not specified, returns results for all platforms. 469 /// Possible string values are:
488 * Possible string values are: 470 /// - "mobile"
489 * - "mobile" 471 /// - "smartphoneOnly"
490 * - "smartphoneOnly" 472 /// - "web"
491 * - "web" 473 ///
492 * 474 /// Completes with a [UrlCrawlErrorsCountsQueryResponse].
493 * Completes with a [UrlCrawlErrorsCountsQueryResponse]. 475 ///
494 * 476 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
495 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 477 /// an error.
496 * error. 478 ///
497 * 479 /// If the used [http.Client] completes with an error when making a REST
498 * If the used [http.Client] completes with an error when making a REST call, 480 /// call, this method will complete with the same error.
499 * this method will complete with the same error. 481 async.Future<UrlCrawlErrorsCountsQueryResponse> query(core.String siteUrl,
500 */ 482 {core.String category,
501 async.Future<UrlCrawlErrorsCountsQueryResponse> query(core.String siteUrl, {co re.String category, core.bool latestCountsOnly, core.String platform}) { 483 core.bool latestCountsOnly,
484 core.String platform}) {
502 var _url = null; 485 var _url = null;
503 var _queryParams = new core.Map(); 486 var _queryParams = new core.Map();
504 var _uploadMedia = null; 487 var _uploadMedia = null;
505 var _uploadOptions = null; 488 var _uploadOptions = null;
506 var _downloadOptions = commons.DownloadOptions.Metadata; 489 var _downloadOptions = commons.DownloadOptions.Metadata;
507 var _body = null; 490 var _body = null;
508 491
509 if (siteUrl == null) { 492 if (siteUrl == null) {
510 throw new core.ArgumentError("Parameter siteUrl is required."); 493 throw new core.ArgumentError("Parameter siteUrl is required.");
511 } 494 }
512 if (category != null) { 495 if (category != null) {
513 _queryParams["category"] = [category]; 496 _queryParams["category"] = [category];
514 } 497 }
515 if (latestCountsOnly != null) { 498 if (latestCountsOnly != null) {
516 _queryParams["latestCountsOnly"] = ["${latestCountsOnly}"]; 499 _queryParams["latestCountsOnly"] = ["${latestCountsOnly}"];
517 } 500 }
518 if (platform != null) { 501 if (platform != null) {
519 _queryParams["platform"] = [platform]; 502 _queryParams["platform"] = [platform];
520 } 503 }
521 504
522 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsCounts/query'; 505 _url = 'sites/' +
506 commons.Escaper.ecapeVariable('$siteUrl') +
507 '/urlCrawlErrorsCounts/query';
523 508
524 var _response = _requester.request(_url, 509 var _response = _requester.request(_url, "GET",
525 "GET", 510 body: _body,
526 body: _body, 511 queryParams: _queryParams,
527 queryParams: _queryParams, 512 uploadOptions: _uploadOptions,
528 uploadOptions: _uploadOptions, 513 uploadMedia: _uploadMedia,
529 uploadMedia: _uploadMedia, 514 downloadOptions: _downloadOptions);
530 downloadOptions: _downloadOptions); 515 return _response
531 return _response.then((data) => new UrlCrawlErrorsCountsQueryResponse.fromJs on(data)); 516 .then((data) => new UrlCrawlErrorsCountsQueryResponse.fromJson(data));
532 } 517 }
533
534 } 518 }
535 519
536
537 class UrlcrawlerrorssamplesResourceApi { 520 class UrlcrawlerrorssamplesResourceApi {
538 final commons.ApiRequester _requester; 521 final commons.ApiRequester _requester;
539 522
540 UrlcrawlerrorssamplesResourceApi(commons.ApiRequester client) : 523 UrlcrawlerrorssamplesResourceApi(commons.ApiRequester client)
541 _requester = client; 524 : _requester = client;
542 525
543 /** 526 /// Retrieves details about crawl errors for a site's sample URL.
544 * Retrieves details about crawl errors for a site's sample URL. 527 ///
545 * 528 /// Request parameters:
546 * Request parameters: 529 ///
547 * 530 /// [siteUrl] - The site's URL, including protocol. For example:
548 * [siteUrl] - The site's URL, including protocol. For example: 531 /// http://www.example.com/
549 * http://www.example.com/ 532 ///
550 * 533 /// [url] - The relative path (without the site) of the sample URL. It must
551 * [url] - The relative path (without the site) of the sample URL. It must be 534 /// be one of the URLs returned by list(). For example, for the URL
552 * one of the URLs returned by list(). For example, for the URL 535 /// https://www.example.com/pagename on the site https://www.example.com/,
553 * https://www.example.com/pagename on the site https://www.example.com/, the 536 /// the url value is pagename
554 * url value is pagename 537 ///
555 * 538 /// [category] - The crawl error category. For example: authPermissions
556 * [category] - The crawl error category. For example: authPermissions 539 /// Possible string values are:
557 * Possible string values are: 540 /// - "authPermissions"
558 * - "authPermissions" 541 /// - "flashContent"
559 * - "flashContent" 542 /// - "manyToOneRedirect"
560 * - "manyToOneRedirect" 543 /// - "notFollowed"
561 * - "notFollowed" 544 /// - "notFound"
562 * - "notFound" 545 /// - "other"
563 * - "other" 546 /// - "roboted"
564 * - "roboted" 547 /// - "serverError"
565 * - "serverError" 548 /// - "soft404"
566 * - "soft404" 549 ///
567 * 550 /// [platform] - The user agent type (platform) that made the request. For
568 * [platform] - The user agent type (platform) that made the request. For 551 /// example: web
569 * example: web 552 /// Possible string values are:
570 * Possible string values are: 553 /// - "mobile"
571 * - "mobile" 554 /// - "smartphoneOnly"
572 * - "smartphoneOnly" 555 /// - "web"
573 * - "web" 556 ///
574 * 557 /// Completes with a [UrlCrawlErrorsSample].
575 * Completes with a [UrlCrawlErrorsSample]. 558 ///
576 * 559 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
577 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 560 /// an error.
578 * error. 561 ///
579 * 562 /// If the used [http.Client] completes with an error when making a REST
580 * If the used [http.Client] completes with an error when making a REST call, 563 /// call, this method will complete with the same error.
581 * this method will complete with the same error. 564 async.Future<UrlCrawlErrorsSample> get(core.String siteUrl, core.String url,
582 */ 565 core.String category, core.String platform) {
583 async.Future<UrlCrawlErrorsSample> get(core.String siteUrl, core.String url, c ore.String category, core.String platform) {
584 var _url = null; 566 var _url = null;
585 var _queryParams = new core.Map(); 567 var _queryParams = new core.Map();
586 var _uploadMedia = null; 568 var _uploadMedia = null;
587 var _uploadOptions = null; 569 var _uploadOptions = null;
588 var _downloadOptions = commons.DownloadOptions.Metadata; 570 var _downloadOptions = commons.DownloadOptions.Metadata;
589 var _body = null; 571 var _body = null;
590 572
591 if (siteUrl == null) { 573 if (siteUrl == null) {
592 throw new core.ArgumentError("Parameter siteUrl is required."); 574 throw new core.ArgumentError("Parameter siteUrl is required.");
593 } 575 }
594 if (url == null) { 576 if (url == null) {
595 throw new core.ArgumentError("Parameter url is required."); 577 throw new core.ArgumentError("Parameter url is required.");
596 } 578 }
597 if (category == null) { 579 if (category == null) {
598 throw new core.ArgumentError("Parameter category is required."); 580 throw new core.ArgumentError("Parameter category is required.");
599 } 581 }
600 _queryParams["category"] = [category]; 582 _queryParams["category"] = [category];
601 if (platform == null) { 583 if (platform == null) {
602 throw new core.ArgumentError("Parameter platform is required."); 584 throw new core.ArgumentError("Parameter platform is required.");
603 } 585 }
604 _queryParams["platform"] = [platform]; 586 _queryParams["platform"] = [platform];
605 587
606 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples/' + commons.Escaper.ecapeVariable('$url'); 588 _url = 'sites/' +
589 commons.Escaper.ecapeVariable('$siteUrl') +
590 '/urlCrawlErrorsSamples/' +
591 commons.Escaper.ecapeVariable('$url');
607 592
608 var _response = _requester.request(_url, 593 var _response = _requester.request(_url, "GET",
609 "GET", 594 body: _body,
610 body: _body, 595 queryParams: _queryParams,
611 queryParams: _queryParams, 596 uploadOptions: _uploadOptions,
612 uploadOptions: _uploadOptions, 597 uploadMedia: _uploadMedia,
613 uploadMedia: _uploadMedia, 598 downloadOptions: _downloadOptions);
614 downloadOptions: _downloadOptions);
615 return _response.then((data) => new UrlCrawlErrorsSample.fromJson(data)); 599 return _response.then((data) => new UrlCrawlErrorsSample.fromJson(data));
616 } 600 }
617 601
618 /** 602 /// Lists a site's sample URLs for the specified crawl error category and
619 * Lists a site's sample URLs for the specified crawl error category and 603 /// platform.
620 * platform. 604 ///
621 * 605 /// Request parameters:
622 * Request parameters: 606 ///
623 * 607 /// [siteUrl] - The site's URL, including protocol. For example:
624 * [siteUrl] - The site's URL, including protocol. For example: 608 /// http://www.example.com/
625 * http://www.example.com/ 609 ///
626 * 610 /// [category] - The crawl error category. For example: authPermissions
627 * [category] - The crawl error category. For example: authPermissions 611 /// Possible string values are:
628 * Possible string values are: 612 /// - "authPermissions"
629 * - "authPermissions" 613 /// - "flashContent"
630 * - "flashContent" 614 /// - "manyToOneRedirect"
631 * - "manyToOneRedirect" 615 /// - "notFollowed"
632 * - "notFollowed" 616 /// - "notFound"
633 * - "notFound" 617 /// - "other"
634 * - "other" 618 /// - "roboted"
635 * - "roboted" 619 /// - "serverError"
636 * - "serverError" 620 /// - "soft404"
637 * - "soft404" 621 ///
638 * 622 /// [platform] - The user agent type (platform) that made the request. For
639 * [platform] - The user agent type (platform) that made the request. For 623 /// example: web
640 * example: web 624 /// Possible string values are:
641 * Possible string values are: 625 /// - "mobile"
642 * - "mobile" 626 /// - "smartphoneOnly"
643 * - "smartphoneOnly" 627 /// - "web"
644 * - "web" 628 ///
645 * 629 /// Completes with a [UrlCrawlErrorsSamplesListResponse].
646 * Completes with a [UrlCrawlErrorsSamplesListResponse]. 630 ///
647 * 631 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 632 /// an error.
649 * error. 633 ///
650 * 634 /// If the used [http.Client] completes with an error when making a REST
651 * If the used [http.Client] completes with an error when making a REST call, 635 /// call, this method will complete with the same error.
652 * this method will complete with the same error. 636 async.Future<UrlCrawlErrorsSamplesListResponse> list(
653 */ 637 core.String siteUrl, core.String category, core.String platform) {
654 async.Future<UrlCrawlErrorsSamplesListResponse> list(core.String siteUrl, core .String category, core.String platform) {
655 var _url = null; 638 var _url = null;
656 var _queryParams = new core.Map(); 639 var _queryParams = new core.Map();
657 var _uploadMedia = null; 640 var _uploadMedia = null;
658 var _uploadOptions = null; 641 var _uploadOptions = null;
659 var _downloadOptions = commons.DownloadOptions.Metadata; 642 var _downloadOptions = commons.DownloadOptions.Metadata;
660 var _body = null; 643 var _body = null;
661 644
662 if (siteUrl == null) { 645 if (siteUrl == null) {
663 throw new core.ArgumentError("Parameter siteUrl is required."); 646 throw new core.ArgumentError("Parameter siteUrl is required.");
664 } 647 }
665 if (category == null) { 648 if (category == null) {
666 throw new core.ArgumentError("Parameter category is required."); 649 throw new core.ArgumentError("Parameter category is required.");
667 } 650 }
668 _queryParams["category"] = [category]; 651 _queryParams["category"] = [category];
669 if (platform == null) { 652 if (platform == null) {
670 throw new core.ArgumentError("Parameter platform is required."); 653 throw new core.ArgumentError("Parameter platform is required.");
671 } 654 }
672 _queryParams["platform"] = [platform]; 655 _queryParams["platform"] = [platform];
673 656
674 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples'; 657 _url = 'sites/' +
658 commons.Escaper.ecapeVariable('$siteUrl') +
659 '/urlCrawlErrorsSamples';
675 660
676 var _response = _requester.request(_url, 661 var _response = _requester.request(_url, "GET",
677 "GET", 662 body: _body,
678 body: _body, 663 queryParams: _queryParams,
679 queryParams: _queryParams, 664 uploadOptions: _uploadOptions,
680 uploadOptions: _uploadOptions, 665 uploadMedia: _uploadMedia,
681 uploadMedia: _uploadMedia, 666 downloadOptions: _downloadOptions);
682 downloadOptions: _downloadOptions); 667 return _response
683 return _response.then((data) => new UrlCrawlErrorsSamplesListResponse.fromJs on(data)); 668 .then((data) => new UrlCrawlErrorsSamplesListResponse.fromJson(data));
684 } 669 }
685 670
686 /** 671 /// Marks the provided site's sample URL as fixed, and removes it from the
687 * Marks the provided site's sample URL as fixed, and removes it from the 672 /// samples list.
688 * samples list. 673 ///
689 * 674 /// Request parameters:
690 * Request parameters: 675 ///
691 * 676 /// [siteUrl] - The site's URL, including protocol. For example:
692 * [siteUrl] - The site's URL, including protocol. For example: 677 /// http://www.example.com/
693 * http://www.example.com/ 678 ///
694 * 679 /// [url] - The relative path (without the site) of the sample URL. It must
695 * [url] - The relative path (without the site) of the sample URL. It must be 680 /// be one of the URLs returned by list(). For example, for the URL
696 * one of the URLs returned by list(). For example, for the URL 681 /// https://www.example.com/pagename on the site https://www.example.com/,
697 * https://www.example.com/pagename on the site https://www.example.com/, the 682 /// the url value is pagename
698 * url value is pagename 683 ///
699 * 684 /// [category] - The crawl error category. For example: authPermissions
700 * [category] - The crawl error category. For example: authPermissions 685 /// Possible string values are:
701 * Possible string values are: 686 /// - "authPermissions"
702 * - "authPermissions" 687 /// - "flashContent"
703 * - "flashContent" 688 /// - "manyToOneRedirect"
704 * - "manyToOneRedirect" 689 /// - "notFollowed"
705 * - "notFollowed" 690 /// - "notFound"
706 * - "notFound" 691 /// - "other"
707 * - "other" 692 /// - "roboted"
708 * - "roboted" 693 /// - "serverError"
709 * - "serverError" 694 /// - "soft404"
710 * - "soft404" 695 ///
711 * 696 /// [platform] - The user agent type (platform) that made the request. For
712 * [platform] - The user agent type (platform) that made the request. For 697 /// example: web
713 * example: web 698 /// Possible string values are:
714 * Possible string values are: 699 /// - "mobile"
715 * - "mobile" 700 /// - "smartphoneOnly"
716 * - "smartphoneOnly" 701 /// - "web"
717 * - "web" 702 ///
718 * 703 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
719 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 704 /// an error.
720 * error. 705 ///
721 * 706 /// If the used [http.Client] completes with an error when making a REST
722 * If the used [http.Client] completes with an error when making a REST call, 707 /// call, this method will complete with the same error.
723 * this method will complete with the same error. 708 async.Future markAsFixed(core.String siteUrl, core.String url,
724 */ 709 core.String category, core.String platform) {
725 async.Future markAsFixed(core.String siteUrl, core.String url, core.String cat egory, core.String platform) {
726 var _url = null; 710 var _url = null;
727 var _queryParams = new core.Map(); 711 var _queryParams = new core.Map();
728 var _uploadMedia = null; 712 var _uploadMedia = null;
729 var _uploadOptions = null; 713 var _uploadOptions = null;
730 var _downloadOptions = commons.DownloadOptions.Metadata; 714 var _downloadOptions = commons.DownloadOptions.Metadata;
731 var _body = null; 715 var _body = null;
732 716
733 if (siteUrl == null) { 717 if (siteUrl == null) {
734 throw new core.ArgumentError("Parameter siteUrl is required."); 718 throw new core.ArgumentError("Parameter siteUrl is required.");
735 } 719 }
736 if (url == null) { 720 if (url == null) {
737 throw new core.ArgumentError("Parameter url is required."); 721 throw new core.ArgumentError("Parameter url is required.");
738 } 722 }
739 if (category == null) { 723 if (category == null) {
740 throw new core.ArgumentError("Parameter category is required."); 724 throw new core.ArgumentError("Parameter category is required.");
741 } 725 }
742 _queryParams["category"] = [category]; 726 _queryParams["category"] = [category];
743 if (platform == null) { 727 if (platform == null) {
744 throw new core.ArgumentError("Parameter platform is required."); 728 throw new core.ArgumentError("Parameter platform is required.");
745 } 729 }
746 _queryParams["platform"] = [platform]; 730 _queryParams["platform"] = [platform];
747 731
748 _downloadOptions = null; 732 _downloadOptions = null;
749 733
750 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples/' + commons.Escaper.ecapeVariable('$url'); 734 _url = 'sites/' +
735 commons.Escaper.ecapeVariable('$siteUrl') +
736 '/urlCrawlErrorsSamples/' +
737 commons.Escaper.ecapeVariable('$url');
751 738
752 var _response = _requester.request(_url, 739 var _response = _requester.request(_url, "DELETE",
753 "DELETE", 740 body: _body,
754 body: _body, 741 queryParams: _queryParams,
755 queryParams: _queryParams, 742 uploadOptions: _uploadOptions,
756 uploadOptions: _uploadOptions, 743 uploadMedia: _uploadMedia,
757 uploadMedia: _uploadMedia, 744 downloadOptions: _downloadOptions);
758 downloadOptions: _downloadOptions);
759 return _response.then((data) => null); 745 return _response.then((data) => null);
760 } 746 }
761
762 } 747 }
763 748
764
765
766 class ApiDataRow { 749 class ApiDataRow {
767 core.double clicks; 750 core.double clicks;
768 core.double ctr; 751 core.double ctr;
769 core.double impressions; 752 core.double impressions;
770 core.List<core.String> keys; 753 core.List<core.String> keys;
771 core.double position; 754 core.double position;
772 755
773 ApiDataRow(); 756 ApiDataRow();
774 757
775 ApiDataRow.fromJson(core.Map _json) { 758 ApiDataRow.fromJson(core.Map _json) {
776 if (_json.containsKey("clicks")) { 759 if (_json.containsKey("clicks")) {
777 clicks = _json["clicks"]; 760 clicks = _json["clicks"];
778 } 761 }
779 if (_json.containsKey("ctr")) { 762 if (_json.containsKey("ctr")) {
780 ctr = _json["ctr"]; 763 ctr = _json["ctr"];
781 } 764 }
782 if (_json.containsKey("impressions")) { 765 if (_json.containsKey("impressions")) {
783 impressions = _json["impressions"]; 766 impressions = _json["impressions"];
784 } 767 }
785 if (_json.containsKey("keys")) { 768 if (_json.containsKey("keys")) {
786 keys = _json["keys"]; 769 keys = _json["keys"];
787 } 770 }
788 if (_json.containsKey("position")) { 771 if (_json.containsKey("position")) {
789 position = _json["position"]; 772 position = _json["position"];
790 } 773 }
791 } 774 }
792 775
793 core.Map<core.String, core.Object> toJson() { 776 core.Map<core.String, core.Object> toJson() {
794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 777 final core.Map<core.String, core.Object> _json =
778 new core.Map<core.String, core.Object>();
795 if (clicks != null) { 779 if (clicks != null) {
796 _json["clicks"] = clicks; 780 _json["clicks"] = clicks;
797 } 781 }
798 if (ctr != null) { 782 if (ctr != null) {
799 _json["ctr"] = ctr; 783 _json["ctr"] = ctr;
800 } 784 }
801 if (impressions != null) { 785 if (impressions != null) {
802 _json["impressions"] = impressions; 786 _json["impressions"] = impressions;
803 } 787 }
804 if (keys != null) { 788 if (keys != null) {
(...skipping 19 matching lines...) Expand all
824 } 808 }
825 if (_json.containsKey("expression")) { 809 if (_json.containsKey("expression")) {
826 expression = _json["expression"]; 810 expression = _json["expression"];
827 } 811 }
828 if (_json.containsKey("operator")) { 812 if (_json.containsKey("operator")) {
829 operator = _json["operator"]; 813 operator = _json["operator"];
830 } 814 }
831 } 815 }
832 816
833 core.Map<core.String, core.Object> toJson() { 817 core.Map<core.String, core.Object> toJson() {
834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 818 final core.Map<core.String, core.Object> _json =
819 new core.Map<core.String, core.Object>();
835 if (dimension != null) { 820 if (dimension != null) {
836 _json["dimension"] = dimension; 821 _json["dimension"] = dimension;
837 } 822 }
838 if (expression != null) { 823 if (expression != null) {
839 _json["expression"] = expression; 824 _json["expression"] = expression;
840 } 825 }
841 if (operator != null) { 826 if (operator != null) {
842 _json["operator"] = operator; 827 _json["operator"] = operator;
843 } 828 }
844 return _json; 829 return _json;
845 } 830 }
846 } 831 }
847 832
848 class ApiDimensionFilterGroup { 833 class ApiDimensionFilterGroup {
849 core.List<ApiDimensionFilter> filters; 834 core.List<ApiDimensionFilter> filters;
850 core.String groupType; 835 core.String groupType;
851 836
852 ApiDimensionFilterGroup(); 837 ApiDimensionFilterGroup();
853 838
854 ApiDimensionFilterGroup.fromJson(core.Map _json) { 839 ApiDimensionFilterGroup.fromJson(core.Map _json) {
855 if (_json.containsKey("filters")) { 840 if (_json.containsKey("filters")) {
856 filters = _json["filters"].map((value) => new ApiDimensionFilter.fromJson( value)).toList(); 841 filters = _json["filters"]
842 .map((value) => new ApiDimensionFilter.fromJson(value))
843 .toList();
857 } 844 }
858 if (_json.containsKey("groupType")) { 845 if (_json.containsKey("groupType")) {
859 groupType = _json["groupType"]; 846 groupType = _json["groupType"];
860 } 847 }
861 } 848 }
862 849
863 core.Map<core.String, core.Object> toJson() { 850 core.Map<core.String, core.Object> toJson() {
864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 851 final core.Map<core.String, core.Object> _json =
852 new core.Map<core.String, core.Object>();
865 if (filters != null) { 853 if (filters != null) {
866 _json["filters"] = filters.map((value) => (value).toJson()).toList(); 854 _json["filters"] = filters.map((value) => (value).toJson()).toList();
867 } 855 }
868 if (groupType != null) { 856 if (groupType != null) {
869 _json["groupType"] = groupType; 857 _json["groupType"] = groupType;
870 } 858 }
871 return _json; 859 return _json;
872 } 860 }
873 } 861 }
874 862
875 class SearchAnalyticsQueryRequest { 863 class SearchAnalyticsQueryRequest {
876 /** 864 /// [Optional; Default is "auto"] How data is aggregated. If aggregated by
877 * [Optional; Default is "auto"] How data is aggregated. If aggregated by 865 /// property, all data for the same property is aggregated; if aggregated by
878 * property, all data for the same property is aggregated; if aggregated by 866 /// page, all data is aggregated by canonical URI. If you filter or group by
879 * page, all data is aggregated by canonical URI. If you filter or group by 867 /// page, choose AUTO; otherwise you can aggregate either by property or by
880 * page, choose AUTO; otherwise you can aggregate either by property or by 868 /// page, depending on how you want your data calculated; see the help
881 * page, depending on how you want your data calculated; see the help 869 /// documentation to learn how data is calculated differently by site versus
882 * documentation to learn how data is calculated differently by site versus by 870 /// by page.
883 * page. 871 ///
884 * 872 /// Note: If you group or filter by page, you cannot aggregate by property.
885 * Note: If you group or filter by page, you cannot aggregate by property. 873 ///
886 * 874 /// If you specify any value other than AUTO, the aggregation type in the
887 * If you specify any value other than AUTO, the aggregation type in the 875 /// result will match the requested type, or if you request an invalid type,
888 * result will match the requested type, or if you request an invalid type, 876 /// you will get an error. The API will never change your aggregation type if
889 * you will get an error. The API will never change your aggregation type if 877 /// the requested type is invalid.
890 * the requested type is invalid.
891 */
892 core.String aggregationType; 878 core.String aggregationType;
893 /** 879
894 * [Optional] Zero or more filters to apply to the dimension grouping values; 880 /// [Optional] Zero or more filters to apply to the dimension grouping
895 * for example, 'query contains "buy"' to see only data where the query string 881 /// values; for example, 'query contains "buy"' to see only data where the
896 * contains the substring "buy" (not case-sensitive). You can filter by a 882 /// query string contains the substring "buy" (not case-sensitive). You can
897 * dimension without grouping by it. 883 /// filter by a dimension without grouping by it.
898 */
899 core.List<ApiDimensionFilterGroup> dimensionFilterGroups; 884 core.List<ApiDimensionFilterGroup> dimensionFilterGroups;
900 /** 885
901 * [Optional] Zero or more dimensions to group results by. Dimensions are the 886 /// [Optional] Zero or more dimensions to group results by. Dimensions are
902 * group-by values in the Search Analytics page. Dimensions are combined to 887 /// the group-by values in the Search Analytics page. Dimensions are combined
903 * create a unique row key for each row. Results are grouped in the order that 888 /// to create a unique row key for each row. Results are grouped in the order
904 * you supply these dimensions. 889 /// that you supply these dimensions.
905 */
906 core.List<core.String> dimensions; 890 core.List<core.String> dimensions;
907 /** 891
908 * [Required] End date of the requested date range, in YYYY-MM-DD format, in 892 /// [Required] End date of the requested date range, in YYYY-MM-DD format, in
909 * PST (UTC - 8:00). Must be greater than or equal to the start date. This 893 /// PST (UTC - 8:00). Must be greater than or equal to the start date. This
910 * value is included in the range. 894 /// value is included in the range.
911 */
912 core.String endDate; 895 core.String endDate;
913 /** 896
914 * [Optional; Default is 1000] The maximum number of rows to return. Must be a 897 /// [Optional; Default is 1000] The maximum number of rows to return. Must be
915 * number from 1 to 5,000 (inclusive). 898 /// a number from 1 to 5,000 (inclusive).
916 */
917 core.int rowLimit; 899 core.int rowLimit;
918 /** [Optional; Default is "web"] The search type to filter for. */ 900
901 /// [Optional; Default is "web"] The search type to filter for.
919 core.String searchType; 902 core.String searchType;
920 /** 903
921 * [Required] Start date of the requested date range, in YYYY-MM-DD format, in 904 /// [Required] Start date of the requested date range, in YYYY-MM-DD format,
922 * PST time (UTC - 8:00). Must be less than or equal to the end date. This 905 /// in PST time (UTC - 8:00). Must be less than or equal to the end date.
923 * value is included in the range. 906 /// This value is included in the range.
924 */
925 core.String startDate; 907 core.String startDate;
926 /** 908
927 * [Optional; Default is 0] Zero-based index of the first row in the response. 909 /// [Optional; Default is 0] Zero-based index of the first row in the
928 * Must be a non-negative number. 910 /// response. Must be a non-negative number.
929 */
930 core.int startRow; 911 core.int startRow;
931 912
932 SearchAnalyticsQueryRequest(); 913 SearchAnalyticsQueryRequest();
933 914
934 SearchAnalyticsQueryRequest.fromJson(core.Map _json) { 915 SearchAnalyticsQueryRequest.fromJson(core.Map _json) {
935 if (_json.containsKey("aggregationType")) { 916 if (_json.containsKey("aggregationType")) {
936 aggregationType = _json["aggregationType"]; 917 aggregationType = _json["aggregationType"];
937 } 918 }
938 if (_json.containsKey("dimensionFilterGroups")) { 919 if (_json.containsKey("dimensionFilterGroups")) {
939 dimensionFilterGroups = _json["dimensionFilterGroups"].map((value) => new ApiDimensionFilterGroup.fromJson(value)).toList(); 920 dimensionFilterGroups = _json["dimensionFilterGroups"]
921 .map((value) => new ApiDimensionFilterGroup.fromJson(value))
922 .toList();
940 } 923 }
941 if (_json.containsKey("dimensions")) { 924 if (_json.containsKey("dimensions")) {
942 dimensions = _json["dimensions"]; 925 dimensions = _json["dimensions"];
943 } 926 }
944 if (_json.containsKey("endDate")) { 927 if (_json.containsKey("endDate")) {
945 endDate = _json["endDate"]; 928 endDate = _json["endDate"];
946 } 929 }
947 if (_json.containsKey("rowLimit")) { 930 if (_json.containsKey("rowLimit")) {
948 rowLimit = _json["rowLimit"]; 931 rowLimit = _json["rowLimit"];
949 } 932 }
950 if (_json.containsKey("searchType")) { 933 if (_json.containsKey("searchType")) {
951 searchType = _json["searchType"]; 934 searchType = _json["searchType"];
952 } 935 }
953 if (_json.containsKey("startDate")) { 936 if (_json.containsKey("startDate")) {
954 startDate = _json["startDate"]; 937 startDate = _json["startDate"];
955 } 938 }
956 if (_json.containsKey("startRow")) { 939 if (_json.containsKey("startRow")) {
957 startRow = _json["startRow"]; 940 startRow = _json["startRow"];
958 } 941 }
959 } 942 }
960 943
961 core.Map<core.String, core.Object> toJson() { 944 core.Map<core.String, core.Object> toJson() {
962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 945 final core.Map<core.String, core.Object> _json =
946 new core.Map<core.String, core.Object>();
963 if (aggregationType != null) { 947 if (aggregationType != null) {
964 _json["aggregationType"] = aggregationType; 948 _json["aggregationType"] = aggregationType;
965 } 949 }
966 if (dimensionFilterGroups != null) { 950 if (dimensionFilterGroups != null) {
967 _json["dimensionFilterGroups"] = dimensionFilterGroups.map((value) => (val ue).toJson()).toList(); 951 _json["dimensionFilterGroups"] =
952 dimensionFilterGroups.map((value) => (value).toJson()).toList();
968 } 953 }
969 if (dimensions != null) { 954 if (dimensions != null) {
970 _json["dimensions"] = dimensions; 955 _json["dimensions"] = dimensions;
971 } 956 }
972 if (endDate != null) { 957 if (endDate != null) {
973 _json["endDate"] = endDate; 958 _json["endDate"] = endDate;
974 } 959 }
975 if (rowLimit != null) { 960 if (rowLimit != null) {
976 _json["rowLimit"] = rowLimit; 961 _json["rowLimit"] = rowLimit;
977 } 962 }
978 if (searchType != null) { 963 if (searchType != null) {
979 _json["searchType"] = searchType; 964 _json["searchType"] = searchType;
980 } 965 }
981 if (startDate != null) { 966 if (startDate != null) {
982 _json["startDate"] = startDate; 967 _json["startDate"] = startDate;
983 } 968 }
984 if (startRow != null) { 969 if (startRow != null) {
985 _json["startRow"] = startRow; 970 _json["startRow"] = startRow;
986 } 971 }
987 return _json; 972 return _json;
988 } 973 }
989 } 974 }
990 975
991 /** 976 /// A list of rows, one per result, grouped by key. Metrics in each row are
992 * A list of rows, one per result, grouped by key. Metrics in each row are 977 /// aggregated for all data grouped by that key either by page or property, as
993 * aggregated for all data grouped by that key either by page or property, as 978 /// specified by the aggregation type parameter.
994 * specified by the aggregation type parameter.
995 */
996 class SearchAnalyticsQueryResponse { 979 class SearchAnalyticsQueryResponse {
997 /** How the results were aggregated. */ 980 /// How the results were aggregated.
998 core.String responseAggregationType; 981 core.String responseAggregationType;
999 /** 982
1000 * A list of rows grouped by the key values in the order given in the query. 983 /// A list of rows grouped by the key values in the order given in the query.
1001 */
1002 core.List<ApiDataRow> rows; 984 core.List<ApiDataRow> rows;
1003 985
1004 SearchAnalyticsQueryResponse(); 986 SearchAnalyticsQueryResponse();
1005 987
1006 SearchAnalyticsQueryResponse.fromJson(core.Map _json) { 988 SearchAnalyticsQueryResponse.fromJson(core.Map _json) {
1007 if (_json.containsKey("responseAggregationType")) { 989 if (_json.containsKey("responseAggregationType")) {
1008 responseAggregationType = _json["responseAggregationType"]; 990 responseAggregationType = _json["responseAggregationType"];
1009 } 991 }
1010 if (_json.containsKey("rows")) { 992 if (_json.containsKey("rows")) {
1011 rows = _json["rows"].map((value) => new ApiDataRow.fromJson(value)).toList (); 993 rows =
994 _json["rows"].map((value) => new ApiDataRow.fromJson(value)).toList();
1012 } 995 }
1013 } 996 }
1014 997
1015 core.Map<core.String, core.Object> toJson() { 998 core.Map<core.String, core.Object> toJson() {
1016 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 999 final core.Map<core.String, core.Object> _json =
1000 new core.Map<core.String, core.Object>();
1017 if (responseAggregationType != null) { 1001 if (responseAggregationType != null) {
1018 _json["responseAggregationType"] = responseAggregationType; 1002 _json["responseAggregationType"] = responseAggregationType;
1019 } 1003 }
1020 if (rows != null) { 1004 if (rows != null) {
1021 _json["rows"] = rows.map((value) => (value).toJson()).toList(); 1005 _json["rows"] = rows.map((value) => (value).toJson()).toList();
1022 } 1006 }
1023 return _json; 1007 return _json;
1024 } 1008 }
1025 } 1009 }
1026 1010
1027 /** List of sitemaps. */ 1011 /// List of sitemaps.
1028 class SitemapsListResponse { 1012 class SitemapsListResponse {
1029 /** 1013 /// Contains detailed information about a specific URL submitted as a
1030 * Contains detailed information about a specific URL submitted as a sitemap. 1014 /// sitemap.
1031 */
1032 core.List<WmxSitemap> sitemap; 1015 core.List<WmxSitemap> sitemap;
1033 1016
1034 SitemapsListResponse(); 1017 SitemapsListResponse();
1035 1018
1036 SitemapsListResponse.fromJson(core.Map _json) { 1019 SitemapsListResponse.fromJson(core.Map _json) {
1037 if (_json.containsKey("sitemap")) { 1020 if (_json.containsKey("sitemap")) {
1038 sitemap = _json["sitemap"].map((value) => new WmxSitemap.fromJson(value)). toList(); 1021 sitemap = _json["sitemap"]
1022 .map((value) => new WmxSitemap.fromJson(value))
1023 .toList();
1039 } 1024 }
1040 } 1025 }
1041 1026
1042 core.Map<core.String, core.Object> toJson() { 1027 core.Map<core.String, core.Object> toJson() {
1043 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1028 final core.Map<core.String, core.Object> _json =
1029 new core.Map<core.String, core.Object>();
1044 if (sitemap != null) { 1030 if (sitemap != null) {
1045 _json["sitemap"] = sitemap.map((value) => (value).toJson()).toList(); 1031 _json["sitemap"] = sitemap.map((value) => (value).toJson()).toList();
1046 } 1032 }
1047 return _json; 1033 return _json;
1048 } 1034 }
1049 } 1035 }
1050 1036
1051 /** List of sites with access level information. */ 1037 /// List of sites with access level information.
1052 class SitesListResponse { 1038 class SitesListResponse {
1053 /** 1039 /// Contains permission level information about a Search Console site. For
1054 * Contains permission level information about a Search Console site. For more 1040 /// more information, see Permissions in Search Console.
1055 * information, see Permissions in Search Console.
1056 */
1057 core.List<WmxSite> siteEntry; 1041 core.List<WmxSite> siteEntry;
1058 1042
1059 SitesListResponse(); 1043 SitesListResponse();
1060 1044
1061 SitesListResponse.fromJson(core.Map _json) { 1045 SitesListResponse.fromJson(core.Map _json) {
1062 if (_json.containsKey("siteEntry")) { 1046 if (_json.containsKey("siteEntry")) {
1063 siteEntry = _json["siteEntry"].map((value) => new WmxSite.fromJson(value)) .toList(); 1047 siteEntry = _json["siteEntry"]
1048 .map((value) => new WmxSite.fromJson(value))
1049 .toList();
1064 } 1050 }
1065 } 1051 }
1066 1052
1067 core.Map<core.String, core.Object> toJson() { 1053 core.Map<core.String, core.Object> toJson() {
1068 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1054 final core.Map<core.String, core.Object> _json =
1055 new core.Map<core.String, core.Object>();
1069 if (siteEntry != null) { 1056 if (siteEntry != null) {
1070 _json["siteEntry"] = siteEntry.map((value) => (value).toJson()).toList(); 1057 _json["siteEntry"] = siteEntry.map((value) => (value).toJson()).toList();
1071 } 1058 }
1072 return _json; 1059 return _json;
1073 } 1060 }
1074 } 1061 }
1075 1062
1076 /** An entry in a URL crawl errors time series. */ 1063 /// An entry in a URL crawl errors time series.
1077 class UrlCrawlErrorCount { 1064 class UrlCrawlErrorCount {
1078 /** The error count at the given timestamp. */ 1065 /// The error count at the given timestamp.
1079 core.String count; 1066 core.String count;
1080 /** 1067
1081 * The date and time when the crawl attempt took place, in RFC 3339 format. 1068 /// The date and time when the crawl attempt took place, in RFC 3339 format.
1082 */
1083 core.DateTime timestamp; 1069 core.DateTime timestamp;
1084 1070
1085 UrlCrawlErrorCount(); 1071 UrlCrawlErrorCount();
1086 1072
1087 UrlCrawlErrorCount.fromJson(core.Map _json) { 1073 UrlCrawlErrorCount.fromJson(core.Map _json) {
1088 if (_json.containsKey("count")) { 1074 if (_json.containsKey("count")) {
1089 count = _json["count"]; 1075 count = _json["count"];
1090 } 1076 }
1091 if (_json.containsKey("timestamp")) { 1077 if (_json.containsKey("timestamp")) {
1092 timestamp = core.DateTime.parse(_json["timestamp"]); 1078 timestamp = core.DateTime.parse(_json["timestamp"]);
1093 } 1079 }
1094 } 1080 }
1095 1081
1096 core.Map<core.String, core.Object> toJson() { 1082 core.Map<core.String, core.Object> toJson() {
1097 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1083 final core.Map<core.String, core.Object> _json =
1084 new core.Map<core.String, core.Object>();
1098 if (count != null) { 1085 if (count != null) {
1099 _json["count"] = count; 1086 _json["count"] = count;
1100 } 1087 }
1101 if (timestamp != null) { 1088 if (timestamp != null) {
1102 _json["timestamp"] = (timestamp).toIso8601String(); 1089 _json["timestamp"] = (timestamp).toIso8601String();
1103 } 1090 }
1104 return _json; 1091 return _json;
1105 } 1092 }
1106 } 1093 }
1107 1094
1108 /** 1095 /// Number of errors per day for a specific error type (defined by platform and
1109 * Number of errors per day for a specific error type (defined by platform and 1096 /// category).
1110 * category).
1111 */
1112 class UrlCrawlErrorCountsPerType { 1097 class UrlCrawlErrorCountsPerType {
1113 /** The crawl error type. */ 1098 /// The crawl error type.
1114 core.String category; 1099 core.String category;
1115 /** The error count entries time series. */ 1100
1101 /// The error count entries time series.
1116 core.List<UrlCrawlErrorCount> entries; 1102 core.List<UrlCrawlErrorCount> entries;
1117 /** 1103
1118 * The general type of Googlebot that made the request (see list of Googlebot 1104 /// The general type of Googlebot that made the request (see list of
1119 * user-agents for the user-agents used). 1105 /// Googlebot user-agents for the user-agents used).
1120 */
1121 core.String platform; 1106 core.String platform;
1122 1107
1123 UrlCrawlErrorCountsPerType(); 1108 UrlCrawlErrorCountsPerType();
1124 1109
1125 UrlCrawlErrorCountsPerType.fromJson(core.Map _json) { 1110 UrlCrawlErrorCountsPerType.fromJson(core.Map _json) {
1126 if (_json.containsKey("category")) { 1111 if (_json.containsKey("category")) {
1127 category = _json["category"]; 1112 category = _json["category"];
1128 } 1113 }
1129 if (_json.containsKey("entries")) { 1114 if (_json.containsKey("entries")) {
1130 entries = _json["entries"].map((value) => new UrlCrawlErrorCount.fromJson( value)).toList(); 1115 entries = _json["entries"]
1116 .map((value) => new UrlCrawlErrorCount.fromJson(value))
1117 .toList();
1131 } 1118 }
1132 if (_json.containsKey("platform")) { 1119 if (_json.containsKey("platform")) {
1133 platform = _json["platform"]; 1120 platform = _json["platform"];
1134 } 1121 }
1135 } 1122 }
1136 1123
1137 core.Map<core.String, core.Object> toJson() { 1124 core.Map<core.String, core.Object> toJson() {
1138 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1125 final core.Map<core.String, core.Object> _json =
1126 new core.Map<core.String, core.Object>();
1139 if (category != null) { 1127 if (category != null) {
1140 _json["category"] = category; 1128 _json["category"] = category;
1141 } 1129 }
1142 if (entries != null) { 1130 if (entries != null) {
1143 _json["entries"] = entries.map((value) => (value).toJson()).toList(); 1131 _json["entries"] = entries.map((value) => (value).toJson()).toList();
1144 } 1132 }
1145 if (platform != null) { 1133 if (platform != null) {
1146 _json["platform"] = platform; 1134 _json["platform"] = platform;
1147 } 1135 }
1148 return _json; 1136 return _json;
1149 } 1137 }
1150 } 1138 }
1151 1139
1152 /** 1140 /// A time series of the number of URL crawl errors per error category and
1153 * A time series of the number of URL crawl errors per error category and 1141 /// platform.
1154 * platform.
1155 */
1156 class UrlCrawlErrorsCountsQueryResponse { 1142 class UrlCrawlErrorsCountsQueryResponse {
1157 /** 1143 /// The time series of the number of URL crawl errors per error category and
1158 * The time series of the number of URL crawl errors per error category and 1144 /// platform.
1159 * platform.
1160 */
1161 core.List<UrlCrawlErrorCountsPerType> countPerTypes; 1145 core.List<UrlCrawlErrorCountsPerType> countPerTypes;
1162 1146
1163 UrlCrawlErrorsCountsQueryResponse(); 1147 UrlCrawlErrorsCountsQueryResponse();
1164 1148
1165 UrlCrawlErrorsCountsQueryResponse.fromJson(core.Map _json) { 1149 UrlCrawlErrorsCountsQueryResponse.fromJson(core.Map _json) {
1166 if (_json.containsKey("countPerTypes")) { 1150 if (_json.containsKey("countPerTypes")) {
1167 countPerTypes = _json["countPerTypes"].map((value) => new UrlCrawlErrorCou ntsPerType.fromJson(value)).toList(); 1151 countPerTypes = _json["countPerTypes"]
1152 .map((value) => new UrlCrawlErrorCountsPerType.fromJson(value))
1153 .toList();
1168 } 1154 }
1169 } 1155 }
1170 1156
1171 core.Map<core.String, core.Object> toJson() { 1157 core.Map<core.String, core.Object> toJson() {
1172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1158 final core.Map<core.String, core.Object> _json =
1159 new core.Map<core.String, core.Object>();
1173 if (countPerTypes != null) { 1160 if (countPerTypes != null) {
1174 _json["countPerTypes"] = countPerTypes.map((value) => (value).toJson()).to List(); 1161 _json["countPerTypes"] =
1162 countPerTypes.map((value) => (value).toJson()).toList();
1175 } 1163 }
1176 return _json; 1164 return _json;
1177 } 1165 }
1178 } 1166 }
1179 1167
1180 /** Contains information about specific crawl errors. */ 1168 /// Contains information about specific crawl errors.
1181 class UrlCrawlErrorsSample { 1169 class UrlCrawlErrorsSample {
1182 /** The time the error was first detected, in RFC 3339 format. */ 1170 /// The time the error was first detected, in RFC 3339 format.
1183 core.DateTime firstDetected; 1171 core.DateTime firstDetected;
1184 /** The time when the URL was last crawled, in RFC 3339 format. */ 1172
1173 /// The time when the URL was last crawled, in RFC 3339 format.
1185 core.DateTime lastCrawled; 1174 core.DateTime lastCrawled;
1186 /** The URL of an error, relative to the site. */ 1175
1176 /// The URL of an error, relative to the site.
1187 core.String pageUrl; 1177 core.String pageUrl;
1188 /** The HTTP response code, if any. */ 1178
1179 /// The HTTP response code, if any.
1189 core.int responseCode; 1180 core.int responseCode;
1190 /** Additional details about the URL, set only when calling get(). */ 1181
1182 /// Additional details about the URL, set only when calling get().
1191 UrlSampleDetails urlDetails; 1183 UrlSampleDetails urlDetails;
1192 1184
1193 UrlCrawlErrorsSample(); 1185 UrlCrawlErrorsSample();
1194 1186
1195 UrlCrawlErrorsSample.fromJson(core.Map _json) { 1187 UrlCrawlErrorsSample.fromJson(core.Map _json) {
1196 if (_json.containsKey("first_detected")) { 1188 if (_json.containsKey("first_detected")) {
1197 firstDetected = core.DateTime.parse(_json["first_detected"]); 1189 firstDetected = core.DateTime.parse(_json["first_detected"]);
1198 } 1190 }
1199 if (_json.containsKey("last_crawled")) { 1191 if (_json.containsKey("last_crawled")) {
1200 lastCrawled = core.DateTime.parse(_json["last_crawled"]); 1192 lastCrawled = core.DateTime.parse(_json["last_crawled"]);
1201 } 1193 }
1202 if (_json.containsKey("pageUrl")) { 1194 if (_json.containsKey("pageUrl")) {
1203 pageUrl = _json["pageUrl"]; 1195 pageUrl = _json["pageUrl"];
1204 } 1196 }
1205 if (_json.containsKey("responseCode")) { 1197 if (_json.containsKey("responseCode")) {
1206 responseCode = _json["responseCode"]; 1198 responseCode = _json["responseCode"];
1207 } 1199 }
1208 if (_json.containsKey("urlDetails")) { 1200 if (_json.containsKey("urlDetails")) {
1209 urlDetails = new UrlSampleDetails.fromJson(_json["urlDetails"]); 1201 urlDetails = new UrlSampleDetails.fromJson(_json["urlDetails"]);
1210 } 1202 }
1211 } 1203 }
1212 1204
1213 core.Map<core.String, core.Object> toJson() { 1205 core.Map<core.String, core.Object> toJson() {
1214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1206 final core.Map<core.String, core.Object> _json =
1207 new core.Map<core.String, core.Object>();
1215 if (firstDetected != null) { 1208 if (firstDetected != null) {
1216 _json["first_detected"] = (firstDetected).toIso8601String(); 1209 _json["first_detected"] = (firstDetected).toIso8601String();
1217 } 1210 }
1218 if (lastCrawled != null) { 1211 if (lastCrawled != null) {
1219 _json["last_crawled"] = (lastCrawled).toIso8601String(); 1212 _json["last_crawled"] = (lastCrawled).toIso8601String();
1220 } 1213 }
1221 if (pageUrl != null) { 1214 if (pageUrl != null) {
1222 _json["pageUrl"] = pageUrl; 1215 _json["pageUrl"] = pageUrl;
1223 } 1216 }
1224 if (responseCode != null) { 1217 if (responseCode != null) {
1225 _json["responseCode"] = responseCode; 1218 _json["responseCode"] = responseCode;
1226 } 1219 }
1227 if (urlDetails != null) { 1220 if (urlDetails != null) {
1228 _json["urlDetails"] = (urlDetails).toJson(); 1221 _json["urlDetails"] = (urlDetails).toJson();
1229 } 1222 }
1230 return _json; 1223 return _json;
1231 } 1224 }
1232 } 1225 }
1233 1226
1234 /** List of crawl error samples. */ 1227 /// List of crawl error samples.
1235 class UrlCrawlErrorsSamplesListResponse { 1228 class UrlCrawlErrorsSamplesListResponse {
1236 /** Information about the sample URL and its crawl error. */ 1229 /// Information about the sample URL and its crawl error.
1237 core.List<UrlCrawlErrorsSample> urlCrawlErrorSample; 1230 core.List<UrlCrawlErrorsSample> urlCrawlErrorSample;
1238 1231
1239 UrlCrawlErrorsSamplesListResponse(); 1232 UrlCrawlErrorsSamplesListResponse();
1240 1233
1241 UrlCrawlErrorsSamplesListResponse.fromJson(core.Map _json) { 1234 UrlCrawlErrorsSamplesListResponse.fromJson(core.Map _json) {
1242 if (_json.containsKey("urlCrawlErrorSample")) { 1235 if (_json.containsKey("urlCrawlErrorSample")) {
1243 urlCrawlErrorSample = _json["urlCrawlErrorSample"].map((value) => new UrlC rawlErrorsSample.fromJson(value)).toList(); 1236 urlCrawlErrorSample = _json["urlCrawlErrorSample"]
1237 .map((value) => new UrlCrawlErrorsSample.fromJson(value))
1238 .toList();
1244 } 1239 }
1245 } 1240 }
1246 1241
1247 core.Map<core.String, core.Object> toJson() { 1242 core.Map<core.String, core.Object> toJson() {
1248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1243 final core.Map<core.String, core.Object> _json =
1244 new core.Map<core.String, core.Object>();
1249 if (urlCrawlErrorSample != null) { 1245 if (urlCrawlErrorSample != null) {
1250 _json["urlCrawlErrorSample"] = urlCrawlErrorSample.map((value) => (value). toJson()).toList(); 1246 _json["urlCrawlErrorSample"] =
1247 urlCrawlErrorSample.map((value) => (value).toJson()).toList();
1251 } 1248 }
1252 return _json; 1249 return _json;
1253 } 1250 }
1254 } 1251 }
1255 1252
1256 /** Additional details about the URL, set only when calling get(). */ 1253 /// Additional details about the URL, set only when calling get().
1257 class UrlSampleDetails { 1254 class UrlSampleDetails {
1258 /** List of sitemaps pointing at this URL. */ 1255 /// List of sitemaps pointing at this URL.
1259 core.List<core.String> containingSitemaps; 1256 core.List<core.String> containingSitemaps;
1260 /** A sample set of URLs linking to this URL. */ 1257
1258 /// A sample set of URLs linking to this URL.
1261 core.List<core.String> linkedFromUrls; 1259 core.List<core.String> linkedFromUrls;
1262 1260
1263 UrlSampleDetails(); 1261 UrlSampleDetails();
1264 1262
1265 UrlSampleDetails.fromJson(core.Map _json) { 1263 UrlSampleDetails.fromJson(core.Map _json) {
1266 if (_json.containsKey("containingSitemaps")) { 1264 if (_json.containsKey("containingSitemaps")) {
1267 containingSitemaps = _json["containingSitemaps"]; 1265 containingSitemaps = _json["containingSitemaps"];
1268 } 1266 }
1269 if (_json.containsKey("linkedFromUrls")) { 1267 if (_json.containsKey("linkedFromUrls")) {
1270 linkedFromUrls = _json["linkedFromUrls"]; 1268 linkedFromUrls = _json["linkedFromUrls"];
1271 } 1269 }
1272 } 1270 }
1273 1271
1274 core.Map<core.String, core.Object> toJson() { 1272 core.Map<core.String, core.Object> toJson() {
1275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1273 final core.Map<core.String, core.Object> _json =
1274 new core.Map<core.String, core.Object>();
1276 if (containingSitemaps != null) { 1275 if (containingSitemaps != null) {
1277 _json["containingSitemaps"] = containingSitemaps; 1276 _json["containingSitemaps"] = containingSitemaps;
1278 } 1277 }
1279 if (linkedFromUrls != null) { 1278 if (linkedFromUrls != null) {
1280 _json["linkedFromUrls"] = linkedFromUrls; 1279 _json["linkedFromUrls"] = linkedFromUrls;
1281 } 1280 }
1282 return _json; 1281 return _json;
1283 } 1282 }
1284 } 1283 }
1285 1284
1286 /** 1285 /// Contains permission level information about a Search Console site. For more
1287 * Contains permission level information about a Search Console site. For more 1286 /// information, see Permissions in Search Console.
1288 * information, see Permissions in Search Console.
1289 */
1290 class WmxSite { 1287 class WmxSite {
1291 /** The user's permission level for the site. */ 1288 /// The user's permission level for the site.
1292 core.String permissionLevel; 1289 core.String permissionLevel;
1293 /** The URL of the site. */ 1290
1291 /// The URL of the site.
1294 core.String siteUrl; 1292 core.String siteUrl;
1295 1293
1296 WmxSite(); 1294 WmxSite();
1297 1295
1298 WmxSite.fromJson(core.Map _json) { 1296 WmxSite.fromJson(core.Map _json) {
1299 if (_json.containsKey("permissionLevel")) { 1297 if (_json.containsKey("permissionLevel")) {
1300 permissionLevel = _json["permissionLevel"]; 1298 permissionLevel = _json["permissionLevel"];
1301 } 1299 }
1302 if (_json.containsKey("siteUrl")) { 1300 if (_json.containsKey("siteUrl")) {
1303 siteUrl = _json["siteUrl"]; 1301 siteUrl = _json["siteUrl"];
1304 } 1302 }
1305 } 1303 }
1306 1304
1307 core.Map<core.String, core.Object> toJson() { 1305 core.Map<core.String, core.Object> toJson() {
1308 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1306 final core.Map<core.String, core.Object> _json =
1307 new core.Map<core.String, core.Object>();
1309 if (permissionLevel != null) { 1308 if (permissionLevel != null) {
1310 _json["permissionLevel"] = permissionLevel; 1309 _json["permissionLevel"] = permissionLevel;
1311 } 1310 }
1312 if (siteUrl != null) { 1311 if (siteUrl != null) {
1313 _json["siteUrl"] = siteUrl; 1312 _json["siteUrl"] = siteUrl;
1314 } 1313 }
1315 return _json; 1314 return _json;
1316 } 1315 }
1317 } 1316 }
1318 1317
1319 /** 1318 /// Contains detailed information about a specific URL submitted as a sitemap.
1320 * Contains detailed information about a specific URL submitted as a sitemap.
1321 */
1322 class WmxSitemap { 1319 class WmxSitemap {
1323 /** The various content types in the sitemap. */ 1320 /// The various content types in the sitemap.
1324 core.List<WmxSitemapContent> contents; 1321 core.List<WmxSitemapContent> contents;
1325 /** 1322
1326 * Number of errors in the sitemap. These are issues with the sitemap itself 1323 /// Number of errors in the sitemap. These are issues with the sitemap itself
1327 * that need to be fixed before it can be processed correctly. 1324 /// that need to be fixed before it can be processed correctly.
1328 */
1329 core.String errors; 1325 core.String errors;
1330 /** If true, the sitemap has not been processed. */ 1326
1327 /// If true, the sitemap has not been processed.
1331 core.bool isPending; 1328 core.bool isPending;
1332 /** If true, the sitemap is a collection of sitemaps. */ 1329
1330 /// If true, the sitemap is a collection of sitemaps.
1333 core.bool isSitemapsIndex; 1331 core.bool isSitemapsIndex;
1334 /** 1332
1335 * Date & time in which this sitemap was last downloaded. Date format is in 1333 /// Date & time in which this sitemap was last downloaded. Date format is in
1336 * RFC 3339 format (yyyy-mm-dd). 1334 /// RFC 3339 format (yyyy-mm-dd).
1337 */
1338 core.DateTime lastDownloaded; 1335 core.DateTime lastDownloaded;
1339 /** 1336
1340 * Date & time in which this sitemap was submitted. Date format is in RFC 3339 1337 /// Date & time in which this sitemap was submitted. Date format is in RFC
1341 * format (yyyy-mm-dd). 1338 /// 3339 format (yyyy-mm-dd).
1342 */
1343 core.DateTime lastSubmitted; 1339 core.DateTime lastSubmitted;
1344 /** The url of the sitemap. */ 1340
1341 /// The url of the sitemap.
1345 core.String path; 1342 core.String path;
1346 /** The type of the sitemap. For example: rssFeed. */ 1343
1344 /// The type of the sitemap. For example: rssFeed.
1347 core.String type; 1345 core.String type;
1348 /** 1346
1349 * Number of warnings for the sitemap. These are generally non-critical issues 1347 /// Number of warnings for the sitemap. These are generally non-critical
1350 * with URLs in the sitemaps. 1348 /// issues with URLs in the sitemaps.
1351 */
1352 core.String warnings; 1349 core.String warnings;
1353 1350
1354 WmxSitemap(); 1351 WmxSitemap();
1355 1352
1356 WmxSitemap.fromJson(core.Map _json) { 1353 WmxSitemap.fromJson(core.Map _json) {
1357 if (_json.containsKey("contents")) { 1354 if (_json.containsKey("contents")) {
1358 contents = _json["contents"].map((value) => new WmxSitemapContent.fromJson (value)).toList(); 1355 contents = _json["contents"]
1356 .map((value) => new WmxSitemapContent.fromJson(value))
1357 .toList();
1359 } 1358 }
1360 if (_json.containsKey("errors")) { 1359 if (_json.containsKey("errors")) {
1361 errors = _json["errors"]; 1360 errors = _json["errors"];
1362 } 1361 }
1363 if (_json.containsKey("isPending")) { 1362 if (_json.containsKey("isPending")) {
1364 isPending = _json["isPending"]; 1363 isPending = _json["isPending"];
1365 } 1364 }
1366 if (_json.containsKey("isSitemapsIndex")) { 1365 if (_json.containsKey("isSitemapsIndex")) {
1367 isSitemapsIndex = _json["isSitemapsIndex"]; 1366 isSitemapsIndex = _json["isSitemapsIndex"];
1368 } 1367 }
1369 if (_json.containsKey("lastDownloaded")) { 1368 if (_json.containsKey("lastDownloaded")) {
1370 lastDownloaded = core.DateTime.parse(_json["lastDownloaded"]); 1369 lastDownloaded = core.DateTime.parse(_json["lastDownloaded"]);
1371 } 1370 }
1372 if (_json.containsKey("lastSubmitted")) { 1371 if (_json.containsKey("lastSubmitted")) {
1373 lastSubmitted = core.DateTime.parse(_json["lastSubmitted"]); 1372 lastSubmitted = core.DateTime.parse(_json["lastSubmitted"]);
1374 } 1373 }
1375 if (_json.containsKey("path")) { 1374 if (_json.containsKey("path")) {
1376 path = _json["path"]; 1375 path = _json["path"];
1377 } 1376 }
1378 if (_json.containsKey("type")) { 1377 if (_json.containsKey("type")) {
1379 type = _json["type"]; 1378 type = _json["type"];
1380 } 1379 }
1381 if (_json.containsKey("warnings")) { 1380 if (_json.containsKey("warnings")) {
1382 warnings = _json["warnings"]; 1381 warnings = _json["warnings"];
1383 } 1382 }
1384 } 1383 }
1385 1384
1386 core.Map<core.String, core.Object> toJson() { 1385 core.Map<core.String, core.Object> toJson() {
1387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1386 final core.Map<core.String, core.Object> _json =
1387 new core.Map<core.String, core.Object>();
1388 if (contents != null) { 1388 if (contents != null) {
1389 _json["contents"] = contents.map((value) => (value).toJson()).toList(); 1389 _json["contents"] = contents.map((value) => (value).toJson()).toList();
1390 } 1390 }
1391 if (errors != null) { 1391 if (errors != null) {
1392 _json["errors"] = errors; 1392 _json["errors"] = errors;
1393 } 1393 }
1394 if (isPending != null) { 1394 if (isPending != null) {
1395 _json["isPending"] = isPending; 1395 _json["isPending"] = isPending;
1396 } 1396 }
1397 if (isSitemapsIndex != null) { 1397 if (isSitemapsIndex != null) {
(...skipping 11 matching lines...) Expand all
1409 if (type != null) { 1409 if (type != null) {
1410 _json["type"] = type; 1410 _json["type"] = type;
1411 } 1411 }
1412 if (warnings != null) { 1412 if (warnings != null) {
1413 _json["warnings"] = warnings; 1413 _json["warnings"] = warnings;
1414 } 1414 }
1415 return _json; 1415 return _json;
1416 } 1416 }
1417 } 1417 }
1418 1418
1419 /** Information about the various content types in the sitemap. */ 1419 /// Information about the various content types in the sitemap.
1420 class WmxSitemapContent { 1420 class WmxSitemapContent {
1421 /** 1421 /// The number of URLs from the sitemap that were indexed (of the content
1422 * The number of URLs from the sitemap that were indexed (of the content 1422 /// type).
1423 * type).
1424 */
1425 core.String indexed; 1423 core.String indexed;
1426 /** The number of URLs in the sitemap (of the content type). */ 1424
1425 /// The number of URLs in the sitemap (of the content type).
1427 core.String submitted; 1426 core.String submitted;
1428 /** The specific type of content in this sitemap. For example: web. */ 1427
1428 /// The specific type of content in this sitemap. For example: web.
1429 core.String type; 1429 core.String type;
1430 1430
1431 WmxSitemapContent(); 1431 WmxSitemapContent();
1432 1432
1433 WmxSitemapContent.fromJson(core.Map _json) { 1433 WmxSitemapContent.fromJson(core.Map _json) {
1434 if (_json.containsKey("indexed")) { 1434 if (_json.containsKey("indexed")) {
1435 indexed = _json["indexed"]; 1435 indexed = _json["indexed"];
1436 } 1436 }
1437 if (_json.containsKey("submitted")) { 1437 if (_json.containsKey("submitted")) {
1438 submitted = _json["submitted"]; 1438 submitted = _json["submitted"];
1439 } 1439 }
1440 if (_json.containsKey("type")) { 1440 if (_json.containsKey("type")) {
1441 type = _json["type"]; 1441 type = _json["type"];
1442 } 1442 }
1443 } 1443 }
1444 1444
1445 core.Map<core.String, core.Object> toJson() { 1445 core.Map<core.String, core.Object> toJson() {
1446 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1446 final core.Map<core.String, core.Object> _json =
1447 new core.Map<core.String, core.Object>();
1447 if (indexed != null) { 1448 if (indexed != null) {
1448 _json["indexed"] = indexed; 1449 _json["indexed"] = indexed;
1449 } 1450 }
1450 if (submitted != null) { 1451 if (submitted != null) {
1451 _json["submitted"] = submitted; 1452 _json["submitted"] = submitted;
1452 } 1453 }
1453 if (type != null) { 1454 if (type != null) {
1454 _json["type"] = type; 1455 _json["type"] = type;
1455 } 1456 }
1456 return _json; 1457 return _json;
1457 } 1458 }
1458 } 1459 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/webfonts/v1.dart ('k') | generated/googleapis/lib/youtube/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698