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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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/civicinfo/v2.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.books.v1; 3 library googleapis.books.v1;
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;
(...skipping 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after
2724 * - "paid-ebooks" : Google eBook with a price. 2724 * - "paid-ebooks" : Google eBook with a price.
2725 * - "partial" : Public able to see parts of text. 2725 * - "partial" : Public able to see parts of text.
2726 * 2726 *
2727 * [langRestrict] - Restrict results to books with this language code. 2727 * [langRestrict] - Restrict results to books with this language code.
2728 * 2728 *
2729 * [libraryRestrict] - Restrict search to this user's library. 2729 * [libraryRestrict] - Restrict search to this user's library.
2730 * Possible string values are: 2730 * Possible string values are:
2731 * - "my-library" : Restrict to the user's library, any shelf. 2731 * - "my-library" : Restrict to the user's library, any shelf.
2732 * - "no-restrict" : Do not restrict based on user's library. 2732 * - "no-restrict" : Do not restrict based on user's library.
2733 * 2733 *
2734 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of
2735 * returned recommendations. Books with a higher maturity rating are filtered
2736 * out.
2737 * Possible string values are:
2738 * - "mature" : Show books which are rated mature or lower.
2739 * - "not-mature" : Show books which are rated not mature.
2740 *
2734 * [maxResults] - Maximum number of results to return. 2741 * [maxResults] - Maximum number of results to return.
2735 * Value must be between "0" and "40". 2742 * Value must be between "0" and "40".
2736 * 2743 *
2737 * [orderBy] - Sort search results. 2744 * [orderBy] - Sort search results.
2738 * Possible string values are: 2745 * Possible string values are:
2739 * - "newest" : Most recently published. 2746 * - "newest" : Most recently published.
2740 * - "relevance" : Relevance to search terms. 2747 * - "relevance" : Relevance to search terms.
2741 * 2748 *
2742 * [partner] - Restrict and brand results for partner ID. 2749 * [partner] - Restrict and brand results for partner ID.
2743 * 2750 *
(...skipping 16 matching lines...) Expand all
2760 * [startIndex] - Index of the first result to return (starts at 0) 2767 * [startIndex] - Index of the first result to return (starts at 0)
2761 * 2768 *
2762 * Completes with a [Volumes]. 2769 * Completes with a [Volumes].
2763 * 2770 *
2764 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2765 * error. 2772 * error.
2766 * 2773 *
2767 * If the used [http.Client] completes with an error when making a REST call, 2774 * If the used [http.Client] completes with an error when making a REST call,
2768 * this method will complete with the same error. 2775 * this method will complete with the same error.
2769 */ 2776 */
2770 async.Future<Volumes> list(core.String q, {core.String download, core.String f ilter, core.String langRestrict, core.String libraryRestrict, core.int maxResult s, core.String orderBy, core.String partner, core.String printType, core.String projection, core.bool showPreorders, core.String source, core.int startIndex}) { 2777 async.Future<Volumes> list(core.String q, {core.String download, core.String f ilter, core.String langRestrict, core.String libraryRestrict, core.String maxAll owedMaturityRating, core.int maxResults, core.String orderBy, core.String partne r, core.String printType, core.String projection, core.bool showPreorders, core. String source, core.int startIndex}) {
2771 var _url = null; 2778 var _url = null;
2772 var _queryParams = new core.Map(); 2779 var _queryParams = new core.Map();
2773 var _uploadMedia = null; 2780 var _uploadMedia = null;
2774 var _uploadOptions = null; 2781 var _uploadOptions = null;
2775 var _downloadOptions = commons.DownloadOptions.Metadata; 2782 var _downloadOptions = commons.DownloadOptions.Metadata;
2776 var _body = null; 2783 var _body = null;
2777 2784
2778 if (q == null) { 2785 if (q == null) {
2779 throw new core.ArgumentError("Parameter q is required."); 2786 throw new core.ArgumentError("Parameter q is required.");
2780 } 2787 }
2781 _queryParams["q"] = [q]; 2788 _queryParams["q"] = [q];
2782 if (download != null) { 2789 if (download != null) {
2783 _queryParams["download"] = [download]; 2790 _queryParams["download"] = [download];
2784 } 2791 }
2785 if (filter != null) { 2792 if (filter != null) {
2786 _queryParams["filter"] = [filter]; 2793 _queryParams["filter"] = [filter];
2787 } 2794 }
2788 if (langRestrict != null) { 2795 if (langRestrict != null) {
2789 _queryParams["langRestrict"] = [langRestrict]; 2796 _queryParams["langRestrict"] = [langRestrict];
2790 } 2797 }
2791 if (libraryRestrict != null) { 2798 if (libraryRestrict != null) {
2792 _queryParams["libraryRestrict"] = [libraryRestrict]; 2799 _queryParams["libraryRestrict"] = [libraryRestrict];
2793 } 2800 }
2801 if (maxAllowedMaturityRating != null) {
2802 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating];
2803 }
2794 if (maxResults != null) { 2804 if (maxResults != null) {
2795 _queryParams["maxResults"] = ["${maxResults}"]; 2805 _queryParams["maxResults"] = ["${maxResults}"];
2796 } 2806 }
2797 if (orderBy != null) { 2807 if (orderBy != null) {
2798 _queryParams["orderBy"] = [orderBy]; 2808 _queryParams["orderBy"] = [orderBy];
2799 } 2809 }
2800 if (partner != null) { 2810 if (partner != null) {
2801 _queryParams["partner"] = [partner]; 2811 _queryParams["partner"] = [partner];
2802 } 2812 }
2803 if (printType != null) { 2813 if (printType != null) {
(...skipping 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after
6118 if (title != null) { 6128 if (title != null) {
6119 _json["title"] = title; 6129 _json["title"] = title;
6120 } 6130 }
6121 return _json; 6131 return _json;
6122 } 6132 }
6123 } 6133 }
6124 6134
6125 class Series { 6135 class Series {
6126 /** Resource type. */ 6136 /** Resource type. */
6127 core.String kind; 6137 core.String kind;
6138 /**
6139 * Series info list. The client always expects this element in the JSON
6140 * output, hence declared here as OutputAlways.
6141 */
6128 core.List<SeriesSeries> series; 6142 core.List<SeriesSeries> series;
6129 6143
6130 Series(); 6144 Series();
6131 6145
6132 Series.fromJson(core.Map _json) { 6146 Series.fromJson(core.Map _json) {
6133 if (_json.containsKey("kind")) { 6147 if (_json.containsKey("kind")) {
6134 kind = _json["kind"]; 6148 kind = _json["kind"];
6135 } 6149 }
6136 if (_json.containsKey("series")) { 6150 if (_json.containsKey("series")) {
6137 series = _json["series"].map((value) => new SeriesSeries.fromJson(value)). toList(); 6151 series = _json["series"].map((value) => new SeriesSeries.fromJson(value)). toList();
(...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after
8266 } 8280 }
8267 if (shortSeriesBookTitle != null) { 8281 if (shortSeriesBookTitle != null) {
8268 _json["shortSeriesBookTitle"] = shortSeriesBookTitle; 8282 _json["shortSeriesBookTitle"] = shortSeriesBookTitle;
8269 } 8283 }
8270 if (volumeSeries != null) { 8284 if (volumeSeries != null) {
8271 _json["volumeSeries"] = volumeSeries.map((value) => (value).toJson()).toLi st(); 8285 _json["volumeSeries"] = volumeSeries.map((value) => (value).toJson()).toLi st();
8272 } 8286 }
8273 return _json; 8287 return _json;
8274 } 8288 }
8275 } 8289 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/bigquery/v2.dart ('k') | generated/googleapis/lib/civicinfo/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698