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

Side by Side Diff: generated/googleapis/lib/books/v1.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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/bigquery/v2.dart ('k') | generated/googleapis/lib/calendar/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 library googleapis.books.v1; 1 library googleapis.books.v1;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import "package:crypto/crypto.dart" as crypto; 8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http; 9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal; 10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common_1; 11 import '../common/common.dart' as common_1;
12 12
13 export '../common/common.dart' show ApiRequestError; 13 export '../common/common.dart' show ApiRequestError;
14 export '../common/common.dart' show DetailedApiRequestError; 14 export '../common/common.dart' show DetailedApiRequestError;
15 15
16 /** Lets you search for books and manage your Google Books library. */ 16 /** Lets you search for books and manage your Google Books library. */
17 class BooksApi { 17 class BooksApi {
18 /** Manage your books */ 18 /** Manage your books */
19 static const BooksScope = "https://www.googleapis.com/auth/books"; 19 static const BooksScope = "https://www.googleapis.com/auth/books";
20 20
21 21
22 final common_internal.ApiRequester _requester; 22 final common_internal.ApiRequester _requester;
23 23
24 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste r); 24 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste r);
25 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque ster); 25 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque ster);
26 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester);
26 LayersResourceApi get layers => new LayersResourceApi(_requester); 27 LayersResourceApi get layers => new LayersResourceApi(_requester);
27 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); 28 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester);
28 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); 29 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester);
29 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); 30 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester);
30 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); 31 VolumesResourceApi get volumes => new VolumesResourceApi(_requester);
31 32
32 BooksApi(http.Client client) : 33 BooksApi(http.Client client) :
33 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "books/v1/"); 34 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "books/v1/");
34 } 35 }
35 36
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 uploadOptions: _uploadOptions, 359 uploadOptions: _uploadOptions,
359 uploadMedia: _uploadMedia, 360 uploadMedia: _uploadMedia,
360 downloadOptions: _downloadOptions); 361 downloadOptions: _downloadOptions);
361 return _response.then((data) => new BooksCloudloadingResource.fromJson(data) ); 362 return _response.then((data) => new BooksCloudloadingResource.fromJson(data) );
362 } 363 }
363 364
364 } 365 }
365 366
366 367
367 /** Not documented yet. */ 368 /** Not documented yet. */
369 class DictionaryResourceApi {
370 final common_internal.ApiRequester _requester;
371
372 DictionaryResourceApi(common_internal.ApiRequester client) :
373 _requester = client;
374
375 /**
376 * Returns a list of offline dictionary meatadata available
377 *
378 * Request parameters:
379 *
380 * [cpksver] - The device/version ID from which to request the data.
381 *
382 * Completes with a [Metadata].
383 *
384 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an
385 * error.
386 *
387 * If the used [http.Client] completes with an error when making a REST call,
388 * this method will complete with the same error.
389 */
390 async.Future<Metadata> listOfflineMetadata(core.String cpksver) {
391 var _url = null;
392 var _queryParams = new core.Map();
393 var _uploadMedia = null;
394 var _uploadOptions = null;
395 var _downloadOptions = common_1.DownloadOptions.Metadata;
396 var _body = null;
397
398 if (cpksver == null) {
399 throw new core.ArgumentError("Parameter cpksver is required.");
400 }
401 _queryParams["cpksver"] = [cpksver];
402
403
404 _url = 'dictionary/listOfflineMetadata';
405
406 var _response = _requester.request(_url,
407 "GET",
408 body: _body,
409 queryParams: _queryParams,
410 uploadOptions: _uploadOptions,
411 uploadMedia: _uploadMedia,
412 downloadOptions: _downloadOptions);
413 return _response.then((data) => new Metadata.fromJson(data));
414 }
415
416 }
417
418
419 /** Not documented yet. */
368 class LayersResourceApi { 420 class LayersResourceApi {
369 final common_internal.ApiRequester _requester; 421 final common_internal.ApiRequester _requester;
370 422
371 LayersAnnotationDataResourceApi get annotationData => new LayersAnnotationData ResourceApi(_requester); 423 LayersAnnotationDataResourceApi get annotationData => new LayersAnnotationData ResourceApi(_requester);
372 LayersVolumeAnnotationsResourceApi get volumeAnnotations => new LayersVolumeAn notationsResourceApi(_requester); 424 LayersVolumeAnnotationsResourceApi get volumeAnnotations => new LayersVolumeAn notationsResourceApi(_requester);
373 425
374 LayersResourceApi(common_internal.ApiRequester client) : 426 LayersResourceApi(common_internal.ApiRequester client) :
375 _requester = client; 427 _requester = client;
376 428
377 /** 429 /**
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 return _response.then((data) => new Annotation.fromJson(data)); 1269 return _response.then((data) => new Annotation.fromJson(data));
1218 } 1270 }
1219 1271
1220 /** 1272 /**
1221 * Inserts a new annotation. 1273 * Inserts a new annotation.
1222 * 1274 *
1223 * [request] - The metadata request object. 1275 * [request] - The metadata request object.
1224 * 1276 *
1225 * Request parameters: 1277 * Request parameters:
1226 * 1278 *
1279 * [country] - ISO-3166-1 code to override the IP-based location.
1280 *
1227 * [showOnlySummaryInResponse] - Requests that only the summary of the 1281 * [showOnlySummaryInResponse] - Requests that only the summary of the
1228 * specified layer be provided in the response. 1282 * specified layer be provided in the response.
1229 * 1283 *
1230 * [source] - String to identify the originator of this request. 1284 * [source] - String to identify the originator of this request.
1231 * 1285 *
1232 * Completes with a [Annotation]. 1286 * Completes with a [Annotation].
1233 * 1287 *
1234 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an 1288 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an
1235 * error. 1289 * error.
1236 * 1290 *
1237 * If the used [http.Client] completes with an error when making a REST call, 1291 * If the used [http.Client] completes with an error when making a REST call,
1238 * this method will complete with the same error. 1292 * this method will complete with the same error.
1239 */ 1293 */
1240 async.Future<Annotation> insert(Annotation request, {core.bool showOnlySummary InResponse, core.String source}) { 1294 async.Future<Annotation> insert(Annotation request, {core.String country, core .bool showOnlySummaryInResponse, core.String source}) {
1241 var _url = null; 1295 var _url = null;
1242 var _queryParams = new core.Map(); 1296 var _queryParams = new core.Map();
1243 var _uploadMedia = null; 1297 var _uploadMedia = null;
1244 var _uploadOptions = null; 1298 var _uploadOptions = null;
1245 var _downloadOptions = common_1.DownloadOptions.Metadata; 1299 var _downloadOptions = common_1.DownloadOptions.Metadata;
1246 var _body = null; 1300 var _body = null;
1247 1301
1248 if (request != null) { 1302 if (request != null) {
1249 _body = convert.JSON.encode((request).toJson()); 1303 _body = convert.JSON.encode((request).toJson());
1250 } 1304 }
1305 if (country != null) {
1306 _queryParams["country"] = [country];
1307 }
1251 if (showOnlySummaryInResponse != null) { 1308 if (showOnlySummaryInResponse != null) {
1252 _queryParams["showOnlySummaryInResponse"] = ["${showOnlySummaryInResponse} "]; 1309 _queryParams["showOnlySummaryInResponse"] = ["${showOnlySummaryInResponse} "];
1253 } 1310 }
1254 if (source != null) { 1311 if (source != null) {
1255 _queryParams["source"] = [source]; 1312 _queryParams["source"] = [source];
1256 } 1313 }
1257 1314
1258 1315
1259 _url = 'mylibrary/annotations'; 1316 _url = 'mylibrary/annotations';
1260 1317
(...skipping 3913 matching lines...) Expand 10 before | Expand all | Expand 10 after
5174 } 5231 }
5175 if (volumeId != null) { 5232 if (volumeId != null) {
5176 _json["volumeId"] = volumeId; 5233 _json["volumeId"] = volumeId;
5177 } 5234 }
5178 return _json; 5235 return _json;
5179 } 5236 }
5180 } 5237 }
5181 5238
5182 5239
5183 /** Not documented yet. */ 5240 /** Not documented yet. */
5241 class MetadataItems {
5242 /** Not documented yet. */
5243 core.String downloadUrl;
5244
5245 /** Not documented yet. */
5246 core.String encryptedKey;
5247
5248 /** Not documented yet. */
5249 core.String language;
5250
5251 /** Not documented yet. */
5252 core.String size;
5253
5254 /** Not documented yet. */
5255 core.String version;
5256
5257
5258 MetadataItems();
5259
5260 MetadataItems.fromJson(core.Map _json) {
5261 if (_json.containsKey("download_url")) {
5262 downloadUrl = _json["download_url"];
5263 }
5264 if (_json.containsKey("encrypted_key")) {
5265 encryptedKey = _json["encrypted_key"];
5266 }
5267 if (_json.containsKey("language")) {
5268 language = _json["language"];
5269 }
5270 if (_json.containsKey("size")) {
5271 size = _json["size"];
5272 }
5273 if (_json.containsKey("version")) {
5274 version = _json["version"];
5275 }
5276 }
5277
5278 core.Map toJson() {
5279 var _json = new core.Map();
5280 if (downloadUrl != null) {
5281 _json["download_url"] = downloadUrl;
5282 }
5283 if (encryptedKey != null) {
5284 _json["encrypted_key"] = encryptedKey;
5285 }
5286 if (language != null) {
5287 _json["language"] = language;
5288 }
5289 if (size != null) {
5290 _json["size"] = size;
5291 }
5292 if (version != null) {
5293 _json["version"] = version;
5294 }
5295 return _json;
5296 }
5297 }
5298
5299
5300 /** Not documented yet. */
5301 class Metadata {
5302 /** A list of offline dictionary metadata. */
5303 core.List<MetadataItems> items;
5304
5305 /** Resource type. */
5306 core.String kind;
5307
5308
5309 Metadata();
5310
5311 Metadata.fromJson(core.Map _json) {
5312 if (_json.containsKey("items")) {
5313 items = _json["items"].map((value) => new MetadataItems.fromJson(value)).t oList();
5314 }
5315 if (_json.containsKey("kind")) {
5316 kind = _json["kind"];
5317 }
5318 }
5319
5320 core.Map toJson() {
5321 var _json = new core.Map();
5322 if (items != null) {
5323 _json["items"] = items.map((value) => (value).toJson()).toList();
5324 }
5325 if (kind != null) {
5326 _json["kind"] = kind;
5327 }
5328 return _json;
5329 }
5330 }
5331
5332
5333 /** Not documented yet. */
5184 class OffersItemsItems { 5334 class OffersItemsItems {
5185 /** Not documented yet. */ 5335 /** Not documented yet. */
5186 core.String author; 5336 core.String author;
5187 5337
5188 /** Not documented yet. */ 5338 /** Not documented yet. */
5189 core.String canonicalVolumeLink; 5339 core.String canonicalVolumeLink;
5190 5340
5191 /** Not documented yet. */ 5341 /** Not documented yet. */
5192 core.String coverUrl; 5342 core.String coverUrl;
5193 5343
(...skipping 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after
7406 _json["kind"] = kind; 7556 _json["kind"] = kind;
7407 } 7557 }
7408 if (totalItems != null) { 7558 if (totalItems != null) {
7409 _json["totalItems"] = totalItems; 7559 _json["totalItems"] = totalItems;
7410 } 7560 }
7411 return _json; 7561 return _json;
7412 } 7562 }
7413 } 7563 }
7414 7564
7415 7565
OLDNEW
« no previous file with comments | « generated/googleapis/lib/bigquery/v2.dart ('k') | generated/googleapis/lib/calendar/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698