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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 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).
2
1 library googleapis.webmasters.v3; 3 library googleapis.webmasters.v3;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError;
16
17 const core.String USER_AGENT = 'dart-api-client webmasters/v3';
15 18
16 /** Lets you view Google Webmaster Tools data for your verified sites. */ 19 /** Lets you view Google Webmaster Tools data for your verified sites. */
17 class WebmastersApi { 20 class WebmastersApi {
18 /** View and modify Webmaster Tools data for your verified sites */ 21 /** View and modify Webmaster Tools data for your verified sites */
19 static const WebmastersScope = "https://www.googleapis.com/auth/webmasters"; 22 static const WebmastersScope = "https://www.googleapis.com/auth/webmasters";
20 23
21 /** View Webmaster Tools data for your verified sites */ 24 /** View Webmaster Tools data for your verified sites */
22 static const WebmastersReadonlyScope = "https://www.googleapis.com/auth/webmas ters.readonly"; 25 static const WebmastersReadonlyScope = "https://www.googleapis.com/auth/webmas ters.readonly";
23 26
24 27
25 final common_internal.ApiRequester _requester; 28 final commons.ApiRequester _requester;
26 29
27 SitemapsResourceApi get sitemaps => new SitemapsResourceApi(_requester); 30 SitemapsResourceApi get sitemaps => new SitemapsResourceApi(_requester);
28 SitesResourceApi get sites => new SitesResourceApi(_requester); 31 SitesResourceApi get sites => new SitesResourceApi(_requester);
29 UrlcrawlerrorscountsResourceApi get urlcrawlerrorscounts => new Urlcrawlerrors countsResourceApi(_requester); 32 UrlcrawlerrorscountsResourceApi get urlcrawlerrorscounts => new Urlcrawlerrors countsResourceApi(_requester);
30 UrlcrawlerrorssamplesResourceApi get urlcrawlerrorssamples => new Urlcrawlerro rssamplesResourceApi(_requester); 33 UrlcrawlerrorssamplesResourceApi get urlcrawlerrorssamples => new Urlcrawlerro rssamplesResourceApi(_requester);
31 34
32 WebmastersApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "webmasters/v3/"}) : 35 WebmastersApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "webmasters/v3/"}) :
33 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 36 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
34 } 37 }
35 38
36 39
37 /** Not documented yet. */
38 class SitemapsResourceApi { 40 class SitemapsResourceApi {
39 final common_internal.ApiRequester _requester; 41 final commons.ApiRequester _requester;
40 42
41 SitemapsResourceApi(common_internal.ApiRequester client) : 43 SitemapsResourceApi(commons.ApiRequester client) :
42 _requester = client; 44 _requester = client;
43 45
44 /** 46 /**
45 * Deletes a sitemap from this site. 47 * Deletes a sitemap from this site.
46 * 48 *
47 * Request parameters: 49 * Request parameters:
48 * 50 *
49 * [siteUrl] - The site's URL, including protocol, for example 51 * [siteUrl] - The site's URL, including protocol, for example
50 * 'http://www.example.com/' 52 * 'http://www.example.com/'
51 * 53 *
52 * [feedpath] - The URL of the actual sitemap (for example 54 * [feedpath] - The URL of the actual sitemap (for example
53 * http://www.example.com/sitemap.xml). 55 * http://www.example.com/sitemap.xml).
54 * 56 *
55 * Completes with a [common.ApiRequestError] if the API endpoint returned an 57 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
56 * error. 58 * error.
57 * 59 *
58 * If the used [http.Client] completes with an error when making a REST call, 60 * If the used [http.Client] completes with an error when making a REST call,
59 * this method will complete with the same error. 61 * this method will complete with the same error.
60 */ 62 */
61 async.Future delete(core.String siteUrl, core.String feedpath) { 63 async.Future delete(core.String siteUrl, core.String feedpath) {
62 var _url = null; 64 var _url = null;
63 var _queryParams = new core.Map(); 65 var _queryParams = new core.Map();
64 var _uploadMedia = null; 66 var _uploadMedia = null;
65 var _uploadOptions = null; 67 var _uploadOptions = null;
66 var _downloadOptions = common.DownloadOptions.Metadata; 68 var _downloadOptions = commons.DownloadOptions.Metadata;
67 var _body = null; 69 var _body = null;
68 70
69 if (siteUrl == null) { 71 if (siteUrl == null) {
70 throw new core.ArgumentError("Parameter siteUrl is required."); 72 throw new core.ArgumentError("Parameter siteUrl is required.");
71 } 73 }
72 if (feedpath == null) { 74 if (feedpath == null) {
73 throw new core.ArgumentError("Parameter feedpath is required."); 75 throw new core.ArgumentError("Parameter feedpath is required.");
74 } 76 }
75 77
76 _downloadOptions = null; 78 _downloadOptions = null;
77 79
78 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/site maps/' + common_internal.Escaper.ecapeVariable('$feedpath'); 80 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath');
79 81
80 var _response = _requester.request(_url, 82 var _response = _requester.request(_url,
81 "DELETE", 83 "DELETE",
82 body: _body, 84 body: _body,
83 queryParams: _queryParams, 85 queryParams: _queryParams,
84 uploadOptions: _uploadOptions, 86 uploadOptions: _uploadOptions,
85 uploadMedia: _uploadMedia, 87 uploadMedia: _uploadMedia,
86 downloadOptions: _downloadOptions); 88 downloadOptions: _downloadOptions);
87 return _response.then((data) => null); 89 return _response.then((data) => null);
88 } 90 }
89 91
90 /** 92 /**
91 * Retrieves information about a specific sitemap. 93 * Retrieves information about a specific sitemap.
92 * 94 *
93 * Request parameters: 95 * Request parameters:
94 * 96 *
95 * [siteUrl] - The site's URL, including protocol, for example 97 * [siteUrl] - The site's URL, including protocol, for example
96 * 'http://www.example.com/' 98 * 'http://www.example.com/'
97 * 99 *
98 * [feedpath] - The URL of the actual sitemap (for example 100 * [feedpath] - The URL of the actual sitemap (for example
99 * http://www.example.com/sitemap.xml). 101 * http://www.example.com/sitemap.xml).
100 * 102 *
101 * Completes with a [WmxSitemap]. 103 * Completes with a [WmxSitemap].
102 * 104 *
103 * Completes with a [common.ApiRequestError] if the API endpoint returned an 105 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
104 * error. 106 * error.
105 * 107 *
106 * If the used [http.Client] completes with an error when making a REST call, 108 * If the used [http.Client] completes with an error when making a REST call,
107 * this method will complete with the same error. 109 * this method will complete with the same error.
108 */ 110 */
109 async.Future<WmxSitemap> get(core.String siteUrl, core.String feedpath) { 111 async.Future<WmxSitemap> get(core.String siteUrl, core.String feedpath) {
110 var _url = null; 112 var _url = null;
111 var _queryParams = new core.Map(); 113 var _queryParams = new core.Map();
112 var _uploadMedia = null; 114 var _uploadMedia = null;
113 var _uploadOptions = null; 115 var _uploadOptions = null;
114 var _downloadOptions = common.DownloadOptions.Metadata; 116 var _downloadOptions = commons.DownloadOptions.Metadata;
115 var _body = null; 117 var _body = null;
116 118
117 if (siteUrl == null) { 119 if (siteUrl == null) {
118 throw new core.ArgumentError("Parameter siteUrl is required."); 120 throw new core.ArgumentError("Parameter siteUrl is required.");
119 } 121 }
120 if (feedpath == null) { 122 if (feedpath == null) {
121 throw new core.ArgumentError("Parameter feedpath is required."); 123 throw new core.ArgumentError("Parameter feedpath is required.");
122 } 124 }
123 125
124 126
125 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/site maps/' + common_internal.Escaper.ecapeVariable('$feedpath'); 127 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath');
126 128
127 var _response = _requester.request(_url, 129 var _response = _requester.request(_url,
128 "GET", 130 "GET",
129 body: _body, 131 body: _body,
130 queryParams: _queryParams, 132 queryParams: _queryParams,
131 uploadOptions: _uploadOptions, 133 uploadOptions: _uploadOptions,
132 uploadMedia: _uploadMedia, 134 uploadMedia: _uploadMedia,
133 downloadOptions: _downloadOptions); 135 downloadOptions: _downloadOptions);
134 return _response.then((data) => new WmxSitemap.fromJson(data)); 136 return _response.then((data) => new WmxSitemap.fromJson(data));
135 } 137 }
136 138
137 /** 139 /**
138 * Lists sitemaps uploaded to the site. 140 * Lists sitemaps uploaded to the site.
139 * 141 *
140 * Request parameters: 142 * Request parameters:
141 * 143 *
142 * [siteUrl] - The site's URL, including protocol, for example 144 * [siteUrl] - The site's URL, including protocol, for example
143 * 'http://www.example.com/' 145 * 'http://www.example.com/'
144 * 146 *
145 * [sitemapIndex] - A URL of a site's sitemap index. 147 * [sitemapIndex] - A URL of a site's sitemap index.
146 * 148 *
147 * Completes with a [SitemapsListResponse]. 149 * Completes with a [SitemapsListResponse].
148 * 150 *
149 * Completes with a [common.ApiRequestError] if the API endpoint returned an 151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
150 * error. 152 * error.
151 * 153 *
152 * If the used [http.Client] completes with an error when making a REST call, 154 * If the used [http.Client] completes with an error when making a REST call,
153 * this method will complete with the same error. 155 * this method will complete with the same error.
154 */ 156 */
155 async.Future<SitemapsListResponse> list(core.String siteUrl, {core.String site mapIndex}) { 157 async.Future<SitemapsListResponse> list(core.String siteUrl, {core.String site mapIndex}) {
156 var _url = null; 158 var _url = null;
157 var _queryParams = new core.Map(); 159 var _queryParams = new core.Map();
158 var _uploadMedia = null; 160 var _uploadMedia = null;
159 var _uploadOptions = null; 161 var _uploadOptions = null;
160 var _downloadOptions = common.DownloadOptions.Metadata; 162 var _downloadOptions = commons.DownloadOptions.Metadata;
161 var _body = null; 163 var _body = null;
162 164
163 if (siteUrl == null) { 165 if (siteUrl == null) {
164 throw new core.ArgumentError("Parameter siteUrl is required."); 166 throw new core.ArgumentError("Parameter siteUrl is required.");
165 } 167 }
166 if (sitemapIndex != null) { 168 if (sitemapIndex != null) {
167 _queryParams["sitemapIndex"] = [sitemapIndex]; 169 _queryParams["sitemapIndex"] = [sitemapIndex];
168 } 170 }
169 171
170 172
171 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/site maps'; 173 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps';
172 174
173 var _response = _requester.request(_url, 175 var _response = _requester.request(_url,
174 "GET", 176 "GET",
175 body: _body, 177 body: _body,
176 queryParams: _queryParams, 178 queryParams: _queryParams,
177 uploadOptions: _uploadOptions, 179 uploadOptions: _uploadOptions,
178 uploadMedia: _uploadMedia, 180 uploadMedia: _uploadMedia,
179 downloadOptions: _downloadOptions); 181 downloadOptions: _downloadOptions);
180 return _response.then((data) => new SitemapsListResponse.fromJson(data)); 182 return _response.then((data) => new SitemapsListResponse.fromJson(data));
181 } 183 }
182 184
183 /** 185 /**
184 * Submits a sitemap for a site. 186 * Submits a sitemap for a site.
185 * 187 *
186 * Request parameters: 188 * Request parameters:
187 * 189 *
188 * [siteUrl] - The site's URL, including protocol, for example 190 * [siteUrl] - The site's URL, including protocol, for example
189 * 'http://www.example.com/' 191 * 'http://www.example.com/'
190 * 192 *
191 * [feedpath] - The URL of the sitemap to add. 193 * [feedpath] - The URL of the sitemap to add.
192 * 194 *
193 * Completes with a [common.ApiRequestError] if the API endpoint returned an 195 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
194 * error. 196 * error.
195 * 197 *
196 * If the used [http.Client] completes with an error when making a REST call, 198 * If the used [http.Client] completes with an error when making a REST call,
197 * this method will complete with the same error. 199 * this method will complete with the same error.
198 */ 200 */
199 async.Future submit(core.String siteUrl, core.String feedpath) { 201 async.Future submit(core.String siteUrl, core.String feedpath) {
200 var _url = null; 202 var _url = null;
201 var _queryParams = new core.Map(); 203 var _queryParams = new core.Map();
202 var _uploadMedia = null; 204 var _uploadMedia = null;
203 var _uploadOptions = null; 205 var _uploadOptions = null;
204 var _downloadOptions = common.DownloadOptions.Metadata; 206 var _downloadOptions = commons.DownloadOptions.Metadata;
205 var _body = null; 207 var _body = null;
206 208
207 if (siteUrl == null) { 209 if (siteUrl == null) {
208 throw new core.ArgumentError("Parameter siteUrl is required."); 210 throw new core.ArgumentError("Parameter siteUrl is required.");
209 } 211 }
210 if (feedpath == null) { 212 if (feedpath == null) {
211 throw new core.ArgumentError("Parameter feedpath is required."); 213 throw new core.ArgumentError("Parameter feedpath is required.");
212 } 214 }
213 215
214 _downloadOptions = null; 216 _downloadOptions = null;
215 217
216 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/site maps/' + common_internal.Escaper.ecapeVariable('$feedpath'); 218 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/sitemaps/' + commons.Escaper.ecapeVariable('$feedpath');
217 219
218 var _response = _requester.request(_url, 220 var _response = _requester.request(_url,
219 "PUT", 221 "PUT",
220 body: _body, 222 body: _body,
221 queryParams: _queryParams, 223 queryParams: _queryParams,
222 uploadOptions: _uploadOptions, 224 uploadOptions: _uploadOptions,
223 uploadMedia: _uploadMedia, 225 uploadMedia: _uploadMedia,
224 downloadOptions: _downloadOptions); 226 downloadOptions: _downloadOptions);
225 return _response.then((data) => null); 227 return _response.then((data) => null);
226 } 228 }
227 229
228 } 230 }
229 231
230 232
231 /** Not documented yet. */
232 class SitesResourceApi { 233 class SitesResourceApi {
233 final common_internal.ApiRequester _requester; 234 final commons.ApiRequester _requester;
234 235
235 SitesResourceApi(common_internal.ApiRequester client) : 236 SitesResourceApi(commons.ApiRequester client) :
236 _requester = client; 237 _requester = client;
237 238
238 /** 239 /**
239 * Adds a site to the set of the user's sites in Webmaster Tools. 240 * Adds a site to the set of the user's sites in Webmaster Tools.
240 * 241 *
241 * Request parameters: 242 * Request parameters:
242 * 243 *
243 * [siteUrl] - The URL of the site to add. 244 * [siteUrl] - The URL of the site to add.
244 * 245 *
245 * Completes with a [common.ApiRequestError] if the API endpoint returned an 246 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
246 * error. 247 * error.
247 * 248 *
248 * If the used [http.Client] completes with an error when making a REST call, 249 * If the used [http.Client] completes with an error when making a REST call,
249 * this method will complete with the same error. 250 * this method will complete with the same error.
250 */ 251 */
251 async.Future add(core.String siteUrl) { 252 async.Future add(core.String siteUrl) {
252 var _url = null; 253 var _url = null;
253 var _queryParams = new core.Map(); 254 var _queryParams = new core.Map();
254 var _uploadMedia = null; 255 var _uploadMedia = null;
255 var _uploadOptions = null; 256 var _uploadOptions = null;
256 var _downloadOptions = common.DownloadOptions.Metadata; 257 var _downloadOptions = commons.DownloadOptions.Metadata;
257 var _body = null; 258 var _body = null;
258 259
259 if (siteUrl == null) { 260 if (siteUrl == null) {
260 throw new core.ArgumentError("Parameter siteUrl is required."); 261 throw new core.ArgumentError("Parameter siteUrl is required.");
261 } 262 }
262 263
263 _downloadOptions = null; 264 _downloadOptions = null;
264 265
265 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl'); 266 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
266 267
267 var _response = _requester.request(_url, 268 var _response = _requester.request(_url,
268 "PUT", 269 "PUT",
269 body: _body, 270 body: _body,
270 queryParams: _queryParams, 271 queryParams: _queryParams,
271 uploadOptions: _uploadOptions, 272 uploadOptions: _uploadOptions,
272 uploadMedia: _uploadMedia, 273 uploadMedia: _uploadMedia,
273 downloadOptions: _downloadOptions); 274 downloadOptions: _downloadOptions);
274 return _response.then((data) => null); 275 return _response.then((data) => null);
275 } 276 }
276 277
277 /** 278 /**
278 * Removes a site from the set of the user's Webmaster Tools sites. 279 * Removes a site from the set of the user's Webmaster Tools sites.
279 * 280 *
280 * Request parameters: 281 * Request parameters:
281 * 282 *
282 * [siteUrl] - The site's URL, including protocol, for example 283 * [siteUrl] - The site's URL, including protocol, for example
283 * 'http://www.example.com/' 284 * 'http://www.example.com/'
284 * 285 *
285 * Completes with a [common.ApiRequestError] if the API endpoint returned an 286 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
286 * error. 287 * error.
287 * 288 *
288 * If the used [http.Client] completes with an error when making a REST call, 289 * If the used [http.Client] completes with an error when making a REST call,
289 * this method will complete with the same error. 290 * this method will complete with the same error.
290 */ 291 */
291 async.Future delete(core.String siteUrl) { 292 async.Future delete(core.String siteUrl) {
292 var _url = null; 293 var _url = null;
293 var _queryParams = new core.Map(); 294 var _queryParams = new core.Map();
294 var _uploadMedia = null; 295 var _uploadMedia = null;
295 var _uploadOptions = null; 296 var _uploadOptions = null;
296 var _downloadOptions = common.DownloadOptions.Metadata; 297 var _downloadOptions = commons.DownloadOptions.Metadata;
297 var _body = null; 298 var _body = null;
298 299
299 if (siteUrl == null) { 300 if (siteUrl == null) {
300 throw new core.ArgumentError("Parameter siteUrl is required."); 301 throw new core.ArgumentError("Parameter siteUrl is required.");
301 } 302 }
302 303
303 _downloadOptions = null; 304 _downloadOptions = null;
304 305
305 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl'); 306 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
306 307
307 var _response = _requester.request(_url, 308 var _response = _requester.request(_url,
308 "DELETE", 309 "DELETE",
309 body: _body, 310 body: _body,
310 queryParams: _queryParams, 311 queryParams: _queryParams,
311 uploadOptions: _uploadOptions, 312 uploadOptions: _uploadOptions,
312 uploadMedia: _uploadMedia, 313 uploadMedia: _uploadMedia,
313 downloadOptions: _downloadOptions); 314 downloadOptions: _downloadOptions);
314 return _response.then((data) => null); 315 return _response.then((data) => null);
315 } 316 }
316 317
317 /** 318 /**
318 * Retrieves information about specific site. 319 * Retrieves information about specific site.
319 * 320 *
320 * Request parameters: 321 * Request parameters:
321 * 322 *
322 * [siteUrl] - The site's URL, including protocol, for example 323 * [siteUrl] - The site's URL, including protocol, for example
323 * 'http://www.example.com/' 324 * 'http://www.example.com/'
324 * 325 *
325 * Completes with a [WmxSite]. 326 * Completes with a [WmxSite].
326 * 327 *
327 * Completes with a [common.ApiRequestError] if the API endpoint returned an 328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
328 * error. 329 * error.
329 * 330 *
330 * If the used [http.Client] completes with an error when making a REST call, 331 * If the used [http.Client] completes with an error when making a REST call,
331 * this method will complete with the same error. 332 * this method will complete with the same error.
332 */ 333 */
333 async.Future<WmxSite> get(core.String siteUrl) { 334 async.Future<WmxSite> get(core.String siteUrl) {
334 var _url = null; 335 var _url = null;
335 var _queryParams = new core.Map(); 336 var _queryParams = new core.Map();
336 var _uploadMedia = null; 337 var _uploadMedia = null;
337 var _uploadOptions = null; 338 var _uploadOptions = null;
338 var _downloadOptions = common.DownloadOptions.Metadata; 339 var _downloadOptions = commons.DownloadOptions.Metadata;
339 var _body = null; 340 var _body = null;
340 341
341 if (siteUrl == null) { 342 if (siteUrl == null) {
342 throw new core.ArgumentError("Parameter siteUrl is required."); 343 throw new core.ArgumentError("Parameter siteUrl is required.");
343 } 344 }
344 345
345 346
346 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl'); 347 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl');
347 348
348 var _response = _requester.request(_url, 349 var _response = _requester.request(_url,
349 "GET", 350 "GET",
350 body: _body, 351 body: _body,
351 queryParams: _queryParams, 352 queryParams: _queryParams,
352 uploadOptions: _uploadOptions, 353 uploadOptions: _uploadOptions,
353 uploadMedia: _uploadMedia, 354 uploadMedia: _uploadMedia,
354 downloadOptions: _downloadOptions); 355 downloadOptions: _downloadOptions);
355 return _response.then((data) => new WmxSite.fromJson(data)); 356 return _response.then((data) => new WmxSite.fromJson(data));
356 } 357 }
357 358
358 /** 359 /**
359 * Lists your Webmaster Tools sites. 360 * Lists your Webmaster Tools sites.
360 * 361 *
361 * Request parameters: 362 * Request parameters:
362 * 363 *
363 * Completes with a [SitesListResponse]. 364 * Completes with a [SitesListResponse].
364 * 365 *
365 * Completes with a [common.ApiRequestError] if the API endpoint returned an 366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
366 * error. 367 * error.
367 * 368 *
368 * If the used [http.Client] completes with an error when making a REST call, 369 * If the used [http.Client] completes with an error when making a REST call,
369 * this method will complete with the same error. 370 * this method will complete with the same error.
370 */ 371 */
371 async.Future<SitesListResponse> list() { 372 async.Future<SitesListResponse> list() {
372 var _url = null; 373 var _url = null;
373 var _queryParams = new core.Map(); 374 var _queryParams = new core.Map();
374 var _uploadMedia = null; 375 var _uploadMedia = null;
375 var _uploadOptions = null; 376 var _uploadOptions = null;
376 var _downloadOptions = common.DownloadOptions.Metadata; 377 var _downloadOptions = commons.DownloadOptions.Metadata;
377 var _body = null; 378 var _body = null;
378 379
379 380
380 381
381 _url = 'sites'; 382 _url = 'sites';
382 383
383 var _response = _requester.request(_url, 384 var _response = _requester.request(_url,
384 "GET", 385 "GET",
385 body: _body, 386 body: _body,
386 queryParams: _queryParams, 387 queryParams: _queryParams,
387 uploadOptions: _uploadOptions, 388 uploadOptions: _uploadOptions,
388 uploadMedia: _uploadMedia, 389 uploadMedia: _uploadMedia,
389 downloadOptions: _downloadOptions); 390 downloadOptions: _downloadOptions);
390 return _response.then((data) => new SitesListResponse.fromJson(data)); 391 return _response.then((data) => new SitesListResponse.fromJson(data));
391 } 392 }
392 393
393 } 394 }
394 395
395 396
396 /** Not documented yet. */
397 class UrlcrawlerrorscountsResourceApi { 397 class UrlcrawlerrorscountsResourceApi {
398 final common_internal.ApiRequester _requester; 398 final commons.ApiRequester _requester;
399 399
400 UrlcrawlerrorscountsResourceApi(common_internal.ApiRequester client) : 400 UrlcrawlerrorscountsResourceApi(commons.ApiRequester client) :
401 _requester = client; 401 _requester = client;
402 402
403 /** 403 /**
404 * Retrieves a time series of the number of URL crawl errors per error 404 * Retrieves a time series of the number of URL crawl errors per error
405 * category and platform. 405 * category and platform.
406 * 406 *
407 * Request parameters: 407 * Request parameters:
408 * 408 *
409 * [siteUrl] - The site's URL, including protocol, for example 409 * [siteUrl] - The site's URL, including protocol, for example
410 * 'http://www.example.com/' 410 * 'http://www.example.com/'
(...skipping 14 matching lines...) Expand all
425 * 425 *
426 * [platform] - The user agent type (platform) that made the request, for 426 * [platform] - The user agent type (platform) that made the request, for
427 * example 'web'. If not specified, we return results for all platforms. 427 * example 'web'. If not specified, we return results for all platforms.
428 * Possible string values are: 428 * Possible string values are:
429 * - "mobile" 429 * - "mobile"
430 * - "smartphoneOnly" 430 * - "smartphoneOnly"
431 * - "web" 431 * - "web"
432 * 432 *
433 * Completes with a [UrlCrawlErrorsCountsQueryResponse]. 433 * Completes with a [UrlCrawlErrorsCountsQueryResponse].
434 * 434 *
435 * Completes with a [common.ApiRequestError] if the API endpoint returned an 435 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
436 * error. 436 * error.
437 * 437 *
438 * If the used [http.Client] completes with an error when making a REST call, 438 * If the used [http.Client] completes with an error when making a REST call,
439 * this method will complete with the same error. 439 * this method will complete with the same error.
440 */ 440 */
441 async.Future<UrlCrawlErrorsCountsQueryResponse> query(core.String siteUrl, {co re.String category, core.bool latestCountsOnly, core.String platform}) { 441 async.Future<UrlCrawlErrorsCountsQueryResponse> query(core.String siteUrl, {co re.String category, core.bool latestCountsOnly, core.String platform}) {
442 var _url = null; 442 var _url = null;
443 var _queryParams = new core.Map(); 443 var _queryParams = new core.Map();
444 var _uploadMedia = null; 444 var _uploadMedia = null;
445 var _uploadOptions = null; 445 var _uploadOptions = null;
446 var _downloadOptions = common.DownloadOptions.Metadata; 446 var _downloadOptions = commons.DownloadOptions.Metadata;
447 var _body = null; 447 var _body = null;
448 448
449 if (siteUrl == null) { 449 if (siteUrl == null) {
450 throw new core.ArgumentError("Parameter siteUrl is required."); 450 throw new core.ArgumentError("Parameter siteUrl is required.");
451 } 451 }
452 if (category != null) { 452 if (category != null) {
453 _queryParams["category"] = [category]; 453 _queryParams["category"] = [category];
454 } 454 }
455 if (latestCountsOnly != null) { 455 if (latestCountsOnly != null) {
456 _queryParams["latestCountsOnly"] = ["${latestCountsOnly}"]; 456 _queryParams["latestCountsOnly"] = ["${latestCountsOnly}"];
457 } 457 }
458 if (platform != null) { 458 if (platform != null) {
459 _queryParams["platform"] = [platform]; 459 _queryParams["platform"] = [platform];
460 } 460 }
461 461
462 462
463 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/urlC rawlErrorsCounts/query'; 463 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsCounts/query';
464 464
465 var _response = _requester.request(_url, 465 var _response = _requester.request(_url,
466 "GET", 466 "GET",
467 body: _body, 467 body: _body,
468 queryParams: _queryParams, 468 queryParams: _queryParams,
469 uploadOptions: _uploadOptions, 469 uploadOptions: _uploadOptions,
470 uploadMedia: _uploadMedia, 470 uploadMedia: _uploadMedia,
471 downloadOptions: _downloadOptions); 471 downloadOptions: _downloadOptions);
472 return _response.then((data) => new UrlCrawlErrorsCountsQueryResponse.fromJs on(data)); 472 return _response.then((data) => new UrlCrawlErrorsCountsQueryResponse.fromJs on(data));
473 } 473 }
474 474
475 } 475 }
476 476
477 477
478 /** Not documented yet. */
479 class UrlcrawlerrorssamplesResourceApi { 478 class UrlcrawlerrorssamplesResourceApi {
480 final common_internal.ApiRequester _requester; 479 final commons.ApiRequester _requester;
481 480
482 UrlcrawlerrorssamplesResourceApi(common_internal.ApiRequester client) : 481 UrlcrawlerrorssamplesResourceApi(commons.ApiRequester client) :
483 _requester = client; 482 _requester = client;
484 483
485 /** 484 /**
486 * Retrieves details about crawl errors for a site's sample URL. 485 * Retrieves details about crawl errors for a site's sample URL.
487 * 486 *
488 * Request parameters: 487 * Request parameters:
489 * 488 *
490 * [siteUrl] - The site's URL, including protocol, for example 489 * [siteUrl] - The site's URL, including protocol, for example
491 * 'http://www.example.com/' 490 * 'http://www.example.com/'
492 * 491 *
(...skipping 13 matching lines...) Expand all
506 * 505 *
507 * [platform] - The user agent type (platform) that made the request, for 506 * [platform] - The user agent type (platform) that made the request, for
508 * example 'web' 507 * example 'web'
509 * Possible string values are: 508 * Possible string values are:
510 * - "mobile" 509 * - "mobile"
511 * - "smartphoneOnly" 510 * - "smartphoneOnly"
512 * - "web" 511 * - "web"
513 * 512 *
514 * Completes with a [UrlCrawlErrorsSample]. 513 * Completes with a [UrlCrawlErrorsSample].
515 * 514 *
516 * Completes with a [common.ApiRequestError] if the API endpoint returned an 515 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
517 * error. 516 * error.
518 * 517 *
519 * If the used [http.Client] completes with an error when making a REST call, 518 * If the used [http.Client] completes with an error when making a REST call,
520 * this method will complete with the same error. 519 * this method will complete with the same error.
521 */ 520 */
522 async.Future<UrlCrawlErrorsSample> get(core.String siteUrl, core.String url, c ore.String category, core.String platform) { 521 async.Future<UrlCrawlErrorsSample> get(core.String siteUrl, core.String url, c ore.String category, core.String platform) {
523 var _url = null; 522 var _url = null;
524 var _queryParams = new core.Map(); 523 var _queryParams = new core.Map();
525 var _uploadMedia = null; 524 var _uploadMedia = null;
526 var _uploadOptions = null; 525 var _uploadOptions = null;
527 var _downloadOptions = common.DownloadOptions.Metadata; 526 var _downloadOptions = commons.DownloadOptions.Metadata;
528 var _body = null; 527 var _body = null;
529 528
530 if (siteUrl == null) { 529 if (siteUrl == null) {
531 throw new core.ArgumentError("Parameter siteUrl is required."); 530 throw new core.ArgumentError("Parameter siteUrl is required.");
532 } 531 }
533 if (url == null) { 532 if (url == null) {
534 throw new core.ArgumentError("Parameter url is required."); 533 throw new core.ArgumentError("Parameter url is required.");
535 } 534 }
536 if (category == null) { 535 if (category == null) {
537 throw new core.ArgumentError("Parameter category is required."); 536 throw new core.ArgumentError("Parameter category is required.");
538 } 537 }
539 _queryParams["category"] = [category]; 538 _queryParams["category"] = [category];
540 if (platform == null) { 539 if (platform == null) {
541 throw new core.ArgumentError("Parameter platform is required."); 540 throw new core.ArgumentError("Parameter platform is required.");
542 } 541 }
543 _queryParams["platform"] = [platform]; 542 _queryParams["platform"] = [platform];
544 543
545 544
546 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/urlC rawlErrorsSamples/' + common_internal.Escaper.ecapeVariable('$url'); 545 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples/' + commons.Escaper.ecapeVariable('$url');
547 546
548 var _response = _requester.request(_url, 547 var _response = _requester.request(_url,
549 "GET", 548 "GET",
550 body: _body, 549 body: _body,
551 queryParams: _queryParams, 550 queryParams: _queryParams,
552 uploadOptions: _uploadOptions, 551 uploadOptions: _uploadOptions,
553 uploadMedia: _uploadMedia, 552 uploadMedia: _uploadMedia,
554 downloadOptions: _downloadOptions); 553 downloadOptions: _downloadOptions);
555 return _response.then((data) => new UrlCrawlErrorsSample.fromJson(data)); 554 return _response.then((data) => new UrlCrawlErrorsSample.fromJson(data));
556 } 555 }
(...skipping 20 matching lines...) Expand all
577 * 576 *
578 * [platform] - The user agent type (platform) that made the request, for 577 * [platform] - The user agent type (platform) that made the request, for
579 * example 'web' 578 * example 'web'
580 * Possible string values are: 579 * Possible string values are:
581 * - "mobile" 580 * - "mobile"
582 * - "smartphoneOnly" 581 * - "smartphoneOnly"
583 * - "web" 582 * - "web"
584 * 583 *
585 * Completes with a [UrlCrawlErrorsSamplesListResponse]. 584 * Completes with a [UrlCrawlErrorsSamplesListResponse].
586 * 585 *
587 * Completes with a [common.ApiRequestError] if the API endpoint returned an 586 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
588 * error. 587 * error.
589 * 588 *
590 * If the used [http.Client] completes with an error when making a REST call, 589 * If the used [http.Client] completes with an error when making a REST call,
591 * this method will complete with the same error. 590 * this method will complete with the same error.
592 */ 591 */
593 async.Future<UrlCrawlErrorsSamplesListResponse> list(core.String siteUrl, core .String category, core.String platform) { 592 async.Future<UrlCrawlErrorsSamplesListResponse> list(core.String siteUrl, core .String category, core.String platform) {
594 var _url = null; 593 var _url = null;
595 var _queryParams = new core.Map(); 594 var _queryParams = new core.Map();
596 var _uploadMedia = null; 595 var _uploadMedia = null;
597 var _uploadOptions = null; 596 var _uploadOptions = null;
598 var _downloadOptions = common.DownloadOptions.Metadata; 597 var _downloadOptions = commons.DownloadOptions.Metadata;
599 var _body = null; 598 var _body = null;
600 599
601 if (siteUrl == null) { 600 if (siteUrl == null) {
602 throw new core.ArgumentError("Parameter siteUrl is required."); 601 throw new core.ArgumentError("Parameter siteUrl is required.");
603 } 602 }
604 if (category == null) { 603 if (category == null) {
605 throw new core.ArgumentError("Parameter category is required."); 604 throw new core.ArgumentError("Parameter category is required.");
606 } 605 }
607 _queryParams["category"] = [category]; 606 _queryParams["category"] = [category];
608 if (platform == null) { 607 if (platform == null) {
609 throw new core.ArgumentError("Parameter platform is required."); 608 throw new core.ArgumentError("Parameter platform is required.");
610 } 609 }
611 _queryParams["platform"] = [platform]; 610 _queryParams["platform"] = [platform];
612 611
613 612
614 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/urlC rawlErrorsSamples'; 613 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples';
615 614
616 var _response = _requester.request(_url, 615 var _response = _requester.request(_url,
617 "GET", 616 "GET",
618 body: _body, 617 body: _body,
619 queryParams: _queryParams, 618 queryParams: _queryParams,
620 uploadOptions: _uploadOptions, 619 uploadOptions: _uploadOptions,
621 uploadMedia: _uploadMedia, 620 uploadMedia: _uploadMedia,
622 downloadOptions: _downloadOptions); 621 downloadOptions: _downloadOptions);
623 return _response.then((data) => new UrlCrawlErrorsSamplesListResponse.fromJs on(data)); 622 return _response.then((data) => new UrlCrawlErrorsSamplesListResponse.fromJs on(data));
624 } 623 }
(...skipping 21 matching lines...) Expand all
646 * - "serverError" 645 * - "serverError"
647 * - "soft404" 646 * - "soft404"
648 * 647 *
649 * [platform] - The user agent type (platform) that made the request, for 648 * [platform] - The user agent type (platform) that made the request, for
650 * example 'web' 649 * example 'web'
651 * Possible string values are: 650 * Possible string values are:
652 * - "mobile" 651 * - "mobile"
653 * - "smartphoneOnly" 652 * - "smartphoneOnly"
654 * - "web" 653 * - "web"
655 * 654 *
656 * Completes with a [common.ApiRequestError] if the API endpoint returned an 655 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
657 * error. 656 * error.
658 * 657 *
659 * If the used [http.Client] completes with an error when making a REST call, 658 * If the used [http.Client] completes with an error when making a REST call,
660 * this method will complete with the same error. 659 * this method will complete with the same error.
661 */ 660 */
662 async.Future markAsFixed(core.String siteUrl, core.String url, core.String cat egory, core.String platform) { 661 async.Future markAsFixed(core.String siteUrl, core.String url, core.String cat egory, core.String platform) {
663 var _url = null; 662 var _url = null;
664 var _queryParams = new core.Map(); 663 var _queryParams = new core.Map();
665 var _uploadMedia = null; 664 var _uploadMedia = null;
666 var _uploadOptions = null; 665 var _uploadOptions = null;
667 var _downloadOptions = common.DownloadOptions.Metadata; 666 var _downloadOptions = commons.DownloadOptions.Metadata;
668 var _body = null; 667 var _body = null;
669 668
670 if (siteUrl == null) { 669 if (siteUrl == null) {
671 throw new core.ArgumentError("Parameter siteUrl is required."); 670 throw new core.ArgumentError("Parameter siteUrl is required.");
672 } 671 }
673 if (url == null) { 672 if (url == null) {
674 throw new core.ArgumentError("Parameter url is required."); 673 throw new core.ArgumentError("Parameter url is required.");
675 } 674 }
676 if (category == null) { 675 if (category == null) {
677 throw new core.ArgumentError("Parameter category is required."); 676 throw new core.ArgumentError("Parameter category is required.");
678 } 677 }
679 _queryParams["category"] = [category]; 678 _queryParams["category"] = [category];
680 if (platform == null) { 679 if (platform == null) {
681 throw new core.ArgumentError("Parameter platform is required."); 680 throw new core.ArgumentError("Parameter platform is required.");
682 } 681 }
683 _queryParams["platform"] = [platform]; 682 _queryParams["platform"] = [platform];
684 683
685 _downloadOptions = null; 684 _downloadOptions = null;
686 685
687 _url = 'sites/' + common_internal.Escaper.ecapeVariable('$siteUrl') + '/urlC rawlErrorsSamples/' + common_internal.Escaper.ecapeVariable('$url'); 686 _url = 'sites/' + commons.Escaper.ecapeVariable('$siteUrl') + '/urlCrawlErro rsSamples/' + commons.Escaper.ecapeVariable('$url');
688 687
689 var _response = _requester.request(_url, 688 var _response = _requester.request(_url,
690 "DELETE", 689 "DELETE",
691 body: _body, 690 body: _body,
692 queryParams: _queryParams, 691 queryParams: _queryParams,
693 uploadOptions: _uploadOptions, 692 uploadOptions: _uploadOptions,
694 uploadMedia: _uploadMedia, 693 uploadMedia: _uploadMedia,
695 downloadOptions: _downloadOptions); 694 downloadOptions: _downloadOptions);
696 return _response.then((data) => null); 695 return _response.then((data) => null);
697 } 696 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 core.Map toJson() { 848 core.Map toJson() {
850 var _json = new core.Map(); 849 var _json = new core.Map();
851 if (countPerTypes != null) { 850 if (countPerTypes != null) {
852 _json["countPerTypes"] = countPerTypes.map((value) => (value).toJson()).to List(); 851 _json["countPerTypes"] = countPerTypes.map((value) => (value).toJson()).to List();
853 } 852 }
854 return _json; 853 return _json;
855 } 854 }
856 } 855 }
857 856
858 857
859 /** Not documented yet. */
860 class UrlCrawlErrorsSample { 858 class UrlCrawlErrorsSample {
861 /** The time the error was first detected, in RFC 3339 format. */ 859 /** The time the error was first detected, in RFC 3339 format. */
862 core.DateTime firstDetected; 860 core.DateTime firstDetected;
863 861
864 /** The time when the URL was last crawled, in RFC 3339 format. */ 862 /** The time when the URL was last crawled, in RFC 3339 format. */
865 core.DateTime lastCrawled; 863 core.DateTime lastCrawled;
866 864
867 /** The URL of an error, relative to the site. */ 865 /** The URL of an error, relative to the site. */
868 core.String pageUrl; 866 core.String pageUrl;
869 867
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 _json["permissionLevel"] = permissionLevel; 997 _json["permissionLevel"] = permissionLevel;
1000 } 998 }
1001 if (siteUrl != null) { 999 if (siteUrl != null) {
1002 _json["siteUrl"] = siteUrl; 1000 _json["siteUrl"] = siteUrl;
1003 } 1001 }
1004 return _json; 1002 return _json;
1005 } 1003 }
1006 } 1004 }
1007 1005
1008 1006
1009 /** Not documented yet. */
1010 class WmxSitemap { 1007 class WmxSitemap {
1011 /** The various content types in the sitemap. */ 1008 /** The various content types in the sitemap. */
1012 core.List<WmxSitemapContent> contents; 1009 core.List<WmxSitemapContent> contents;
1013 1010
1014 /** 1011 /**
1015 * Number of errors in the sitemap - issues with the sitemap itself, that 1012 * Number of errors in the sitemap - issues with the sitemap itself, that
1016 * needs to be fixed before it can be processed correctly. 1013 * needs to be fixed before it can be processed correctly.
1017 */ 1014 */
1018 core.String errors; 1015 core.String errors;
1019 1016
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 } 1146 }
1150 if (submitted != null) { 1147 if (submitted != null) {
1151 _json["submitted"] = submitted; 1148 _json["submitted"] = submitted;
1152 } 1149 }
1153 if (type != null) { 1150 if (type != null) {
1154 _json["type"] = type; 1151 _json["type"] = type;
1155 } 1152 }
1156 return _json; 1153 return _json;
1157 } 1154 }
1158 } 1155 }
1159
1160
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