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

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

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 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
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:crypto/crypto.dart' as crypto; 10 import 'package:crypto/crypto.dart' as crypto;
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2072 * 2072 *
2073 * Request parameters: 2073 * Request parameters:
2074 * 2074 *
2075 * [notificationId] - String to identify the notification. 2075 * [notificationId] - String to identify the notification.
2076 * 2076 *
2077 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. 2077 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
2078 * Used for generating notification title and body. 2078 * Used for generating notification title and body.
2079 * 2079 *
2080 * [source] - String to identify the originator of this request. 2080 * [source] - String to identify the originator of this request.
2081 * 2081 *
2082 * [targetIds] - List of target ids used for experiments or user segments
2083 *
2084 * Completes with a [Notification]. 2082 * Completes with a [Notification].
2085 * 2083 *
2086 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2084 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2087 * error. 2085 * error.
2088 * 2086 *
2089 * If the used [http.Client] completes with an error when making a REST call, 2087 * If the used [http.Client] completes with an error when making a REST call,
2090 * this method will complete with the same error. 2088 * this method will complete with the same error.
2091 */ 2089 */
2092 async.Future<Notification> get(core.String notificationId, {core.String locale , core.String source, core.List<core.String> targetIds}) { 2090 async.Future<Notification> get(core.String notificationId, {core.String locale , core.String source}) {
2093 var _url = null; 2091 var _url = null;
2094 var _queryParams = new core.Map(); 2092 var _queryParams = new core.Map();
2095 var _uploadMedia = null; 2093 var _uploadMedia = null;
2096 var _uploadOptions = null; 2094 var _uploadOptions = null;
2097 var _downloadOptions = commons.DownloadOptions.Metadata; 2095 var _downloadOptions = commons.DownloadOptions.Metadata;
2098 var _body = null; 2096 var _body = null;
2099 2097
2100 if (notificationId == null) { 2098 if (notificationId == null) {
2101 throw new core.ArgumentError("Parameter notificationId is required."); 2099 throw new core.ArgumentError("Parameter notificationId is required.");
2102 } 2100 }
2103 _queryParams["notification_id"] = [notificationId]; 2101 _queryParams["notification_id"] = [notificationId];
2104 if (locale != null) { 2102 if (locale != null) {
2105 _queryParams["locale"] = [locale]; 2103 _queryParams["locale"] = [locale];
2106 } 2104 }
2107 if (source != null) { 2105 if (source != null) {
2108 _queryParams["source"] = [source]; 2106 _queryParams["source"] = [source];
2109 } 2107 }
2110 if (targetIds != null) {
2111 _queryParams["targetIds"] = targetIds;
2112 }
2113 2108
2114 _url = 'notification/get'; 2109 _url = 'notification/get';
2115 2110
2116 var _response = _requester.request(_url, 2111 var _response = _requester.request(_url,
2117 "GET", 2112 "GET",
2118 body: _body, 2113 body: _body,
2119 queryParams: _queryParams, 2114 queryParams: _queryParams,
2120 uploadOptions: _uploadOptions, 2115 uploadOptions: _uploadOptions,
2121 uploadMedia: _uploadMedia, 2116 uploadMedia: _uploadMedia,
2122 downloadOptions: _downloadOptions); 2117 downloadOptions: _downloadOptions);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 * 2251 *
2257 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of 2252 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of
2258 * returned recommendations. Books with a higher maturity rating are filtered 2253 * returned recommendations. Books with a higher maturity rating are filtered
2259 * out. 2254 * out.
2260 * Possible string values are: 2255 * Possible string values are:
2261 * - "mature" : Show books which are rated mature or lower. 2256 * - "mature" : Show books which are rated mature or lower.
2262 * - "not-mature" : Show books which are rated not mature. 2257 * - "not-mature" : Show books which are rated not mature.
2263 * 2258 *
2264 * [source] - String to identify the originator of this request. 2259 * [source] - String to identify the originator of this request.
2265 * 2260 *
2266 * [targetIds] - List of target ids used for experiments or user segments
2267 *
2268 * Completes with a [Discoveryclusters]. 2261 * Completes with a [Discoveryclusters].
2269 * 2262 *
2270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2263 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2271 * error. 2264 * error.
2272 * 2265 *
2273 * If the used [http.Client] completes with an error when making a REST call, 2266 * If the used [http.Client] completes with an error when making a REST call,
2274 * this method will complete with the same error. 2267 * this method will complete with the same error.
2275 */ 2268 */
2276 async.Future<Discoveryclusters> get({core.String locale, core.String maxAllowe dMaturityRating, core.String source, core.List<core.String> targetIds}) { 2269 async.Future<Discoveryclusters> get({core.String locale, core.String maxAllowe dMaturityRating, core.String source}) {
2277 var _url = null; 2270 var _url = null;
2278 var _queryParams = new core.Map(); 2271 var _queryParams = new core.Map();
2279 var _uploadMedia = null; 2272 var _uploadMedia = null;
2280 var _uploadOptions = null; 2273 var _uploadOptions = null;
2281 var _downloadOptions = commons.DownloadOptions.Metadata; 2274 var _downloadOptions = commons.DownloadOptions.Metadata;
2282 var _body = null; 2275 var _body = null;
2283 2276
2284 if (locale != null) { 2277 if (locale != null) {
2285 _queryParams["locale"] = [locale]; 2278 _queryParams["locale"] = [locale];
2286 } 2279 }
2287 if (maxAllowedMaturityRating != null) { 2280 if (maxAllowedMaturityRating != null) {
2288 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; 2281 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating];
2289 } 2282 }
2290 if (source != null) { 2283 if (source != null) {
2291 _queryParams["source"] = [source]; 2284 _queryParams["source"] = [source];
2292 } 2285 }
2293 if (targetIds != null) {
2294 _queryParams["targetIds"] = targetIds;
2295 }
2296 2286
2297 _url = 'personalizedstream/get'; 2287 _url = 'personalizedstream/get';
2298 2288
2299 var _response = _requester.request(_url, 2289 var _response = _requester.request(_url,
2300 "GET", 2290 "GET",
2301 body: _body, 2291 body: _body,
2302 queryParams: _queryParams, 2292 queryParams: _queryParams,
2303 uploadOptions: _uploadOptions, 2293 uploadOptions: _uploadOptions,
2304 uploadMedia: _uploadMedia, 2294 uploadMedia: _uploadMedia,
2305 downloadOptions: _downloadOptions); 2295 downloadOptions: _downloadOptions);
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
2926 VolumesMybooksResourceApi(commons.ApiRequester client) : 2916 VolumesMybooksResourceApi(commons.ApiRequester client) :
2927 _requester = client; 2917 _requester = client;
2928 2918
2929 /** 2919 /**
2930 * Return a list of books in My Library. 2920 * Return a list of books in My Library.
2931 * 2921 *
2932 * Request parameters: 2922 * Request parameters:
2933 * 2923 *
2934 * [acquireMethod] - How the book was aquired 2924 * [acquireMethod] - How the book was aquired
2935 * 2925 *
2926 * [country] - ISO-3166-1 code to override the IP-based location.
2927 *
2936 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used 2928 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used
2937 * for generating recommendations. 2929 * for generating recommendations.
2938 * 2930 *
2939 * [maxResults] - Maximum number of results to return. 2931 * [maxResults] - Maximum number of results to return.
2940 * Value must be between "0" and "100". 2932 * Value must be between "0" and "100".
2941 * 2933 *
2942 * [processingState] - The processing state of the user uploaded volumes to be 2934 * [processingState] - The processing state of the user uploaded volumes to be
2943 * returned. Applicable only if the UPLOADED is specified in the 2935 * returned. Applicable only if the UPLOADED is specified in the
2944 * acquireMethod. 2936 * acquireMethod.
2945 * 2937 *
2946 * [source] - String to identify the originator of this request. 2938 * [source] - String to identify the originator of this request.
2947 * 2939 *
2948 * [startIndex] - Index of the first result to return (starts at 0) 2940 * [startIndex] - Index of the first result to return (starts at 0)
2949 * 2941 *
2950 * Completes with a [Volumes]. 2942 * Completes with a [Volumes].
2951 * 2943 *
2952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2944 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2953 * error. 2945 * error.
2954 * 2946 *
2955 * If the used [http.Client] completes with an error when making a REST call, 2947 * If the used [http.Client] completes with an error when making a REST call,
2956 * this method will complete with the same error. 2948 * this method will complete with the same error.
2957 */ 2949 */
2958 async.Future<Volumes> list({core.List<core.String> acquireMethod, core.String locale, core.int maxResults, core.List<core.String> processingState, core.String source, core.int startIndex}) { 2950 async.Future<Volumes> list({core.List<core.String> acquireMethod, core.String country, core.String locale, core.int maxResults, core.List<core.String> process ingState, core.String source, core.int startIndex}) {
2959 var _url = null; 2951 var _url = null;
2960 var _queryParams = new core.Map(); 2952 var _queryParams = new core.Map();
2961 var _uploadMedia = null; 2953 var _uploadMedia = null;
2962 var _uploadOptions = null; 2954 var _uploadOptions = null;
2963 var _downloadOptions = commons.DownloadOptions.Metadata; 2955 var _downloadOptions = commons.DownloadOptions.Metadata;
2964 var _body = null; 2956 var _body = null;
2965 2957
2966 if (acquireMethod != null) { 2958 if (acquireMethod != null) {
2967 _queryParams["acquireMethod"] = acquireMethod; 2959 _queryParams["acquireMethod"] = acquireMethod;
2968 } 2960 }
2961 if (country != null) {
2962 _queryParams["country"] = [country];
2963 }
2969 if (locale != null) { 2964 if (locale != null) {
2970 _queryParams["locale"] = [locale]; 2965 _queryParams["locale"] = [locale];
2971 } 2966 }
2972 if (maxResults != null) { 2967 if (maxResults != null) {
2973 _queryParams["maxResults"] = ["${maxResults}"]; 2968 _queryParams["maxResults"] = ["${maxResults}"];
2974 } 2969 }
2975 if (processingState != null) { 2970 if (processingState != null) {
2976 _queryParams["processingState"] = processingState; 2971 _queryParams["processingState"] = processingState;
2977 } 2972 }
2978 if (source != null) { 2973 if (source != null) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 * 3008 *
3014 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of 3009 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of
3015 * returned recommendations. Books with a higher maturity rating are filtered 3010 * returned recommendations. Books with a higher maturity rating are filtered
3016 * out. 3011 * out.
3017 * Possible string values are: 3012 * Possible string values are:
3018 * - "mature" : Show books which are rated mature or lower. 3013 * - "mature" : Show books which are rated mature or lower.
3019 * - "not-mature" : Show books which are rated not mature. 3014 * - "not-mature" : Show books which are rated not mature.
3020 * 3015 *
3021 * [source] - String to identify the originator of this request. 3016 * [source] - String to identify the originator of this request.
3022 * 3017 *
3023 * [targetIds] - List of target ids used for experiments or user segments
3024 *
3025 * Completes with a [Volumes]. 3018 * Completes with a [Volumes].
3026 * 3019 *
3027 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 3020 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3028 * error. 3021 * error.
3029 * 3022 *
3030 * If the used [http.Client] completes with an error when making a REST call, 3023 * If the used [http.Client] completes with an error when making a REST call,
3031 * this method will complete with the same error. 3024 * this method will complete with the same error.
3032 */ 3025 */
3033 async.Future<Volumes> list({core.String locale, core.String maxAllowedMaturity Rating, core.String source, core.List<core.String> targetIds}) { 3026 async.Future<Volumes> list({core.String locale, core.String maxAllowedMaturity Rating, core.String source}) {
3034 var _url = null; 3027 var _url = null;
3035 var _queryParams = new core.Map(); 3028 var _queryParams = new core.Map();
3036 var _uploadMedia = null; 3029 var _uploadMedia = null;
3037 var _uploadOptions = null; 3030 var _uploadOptions = null;
3038 var _downloadOptions = commons.DownloadOptions.Metadata; 3031 var _downloadOptions = commons.DownloadOptions.Metadata;
3039 var _body = null; 3032 var _body = null;
3040 3033
3041 if (locale != null) { 3034 if (locale != null) {
3042 _queryParams["locale"] = [locale]; 3035 _queryParams["locale"] = [locale];
3043 } 3036 }
3044 if (maxAllowedMaturityRating != null) { 3037 if (maxAllowedMaturityRating != null) {
3045 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; 3038 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating];
3046 } 3039 }
3047 if (source != null) { 3040 if (source != null) {
3048 _queryParams["source"] = [source]; 3041 _queryParams["source"] = [source];
3049 } 3042 }
3050 if (targetIds != null) {
3051 _queryParams["targetIds"] = targetIds;
3052 }
3053 3043
3054 _url = 'volumes/recommended'; 3044 _url = 'volumes/recommended';
3055 3045
3056 var _response = _requester.request(_url, 3046 var _response = _requester.request(_url,
3057 "GET", 3047 "GET",
3058 body: _body, 3048 body: _body,
3059 queryParams: _queryParams, 3049 queryParams: _queryParams,
3060 uploadOptions: _uploadOptions, 3050 uploadOptions: _uploadOptions,
3061 uploadMedia: _uploadMedia, 3051 uploadMedia: _uploadMedia,
3062 downloadOptions: _downloadOptions); 3052 downloadOptions: _downloadOptions);
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
5581 } 5571 }
5582 5572
5583 class Notification { 5573 class Notification {
5584 core.String body; 5574 core.String body;
5585 core.bool dontShowNotification; 5575 core.bool dontShowNotification;
5586 core.String iconUrl; 5576 core.String iconUrl;
5587 /** Resource type. */ 5577 /** Resource type. */
5588 core.String kind; 5578 core.String kind;
5589 core.String notificationType; 5579 core.String notificationType;
5590 core.String pcampaignId; 5580 core.String pcampaignId;
5581 core.String reason;
5591 core.bool showNotificationSettingsAction; 5582 core.bool showNotificationSettingsAction;
5592 core.String targetUrl; 5583 core.String targetUrl;
5593 core.String title; 5584 core.String title;
5594 5585
5595 Notification(); 5586 Notification();
5596 5587
5597 Notification.fromJson(core.Map _json) { 5588 Notification.fromJson(core.Map _json) {
5598 if (_json.containsKey("body")) { 5589 if (_json.containsKey("body")) {
5599 body = _json["body"]; 5590 body = _json["body"];
5600 } 5591 }
5601 if (_json.containsKey("dont_show_notification")) { 5592 if (_json.containsKey("dont_show_notification")) {
5602 dontShowNotification = _json["dont_show_notification"]; 5593 dontShowNotification = _json["dont_show_notification"];
5603 } 5594 }
5604 if (_json.containsKey("iconUrl")) { 5595 if (_json.containsKey("iconUrl")) {
5605 iconUrl = _json["iconUrl"]; 5596 iconUrl = _json["iconUrl"];
5606 } 5597 }
5607 if (_json.containsKey("kind")) { 5598 if (_json.containsKey("kind")) {
5608 kind = _json["kind"]; 5599 kind = _json["kind"];
5609 } 5600 }
5610 if (_json.containsKey("notification_type")) { 5601 if (_json.containsKey("notification_type")) {
5611 notificationType = _json["notification_type"]; 5602 notificationType = _json["notification_type"];
5612 } 5603 }
5613 if (_json.containsKey("pcampaign_id")) { 5604 if (_json.containsKey("pcampaign_id")) {
5614 pcampaignId = _json["pcampaign_id"]; 5605 pcampaignId = _json["pcampaign_id"];
5615 } 5606 }
5607 if (_json.containsKey("reason")) {
5608 reason = _json["reason"];
5609 }
5616 if (_json.containsKey("show_notification_settings_action")) { 5610 if (_json.containsKey("show_notification_settings_action")) {
5617 showNotificationSettingsAction = _json["show_notification_settings_action" ]; 5611 showNotificationSettingsAction = _json["show_notification_settings_action" ];
5618 } 5612 }
5619 if (_json.containsKey("targetUrl")) { 5613 if (_json.containsKey("targetUrl")) {
5620 targetUrl = _json["targetUrl"]; 5614 targetUrl = _json["targetUrl"];
5621 } 5615 }
5622 if (_json.containsKey("title")) { 5616 if (_json.containsKey("title")) {
5623 title = _json["title"]; 5617 title = _json["title"];
5624 } 5618 }
5625 } 5619 }
(...skipping 11 matching lines...) Expand all
5637 } 5631 }
5638 if (kind != null) { 5632 if (kind != null) {
5639 _json["kind"] = kind; 5633 _json["kind"] = kind;
5640 } 5634 }
5641 if (notificationType != null) { 5635 if (notificationType != null) {
5642 _json["notification_type"] = notificationType; 5636 _json["notification_type"] = notificationType;
5643 } 5637 }
5644 if (pcampaignId != null) { 5638 if (pcampaignId != null) {
5645 _json["pcampaign_id"] = pcampaignId; 5639 _json["pcampaign_id"] = pcampaignId;
5646 } 5640 }
5641 if (reason != null) {
5642 _json["reason"] = reason;
5643 }
5647 if (showNotificationSettingsAction != null) { 5644 if (showNotificationSettingsAction != null) {
5648 _json["show_notification_settings_action"] = showNotificationSettingsActio n; 5645 _json["show_notification_settings_action"] = showNotificationSettingsActio n;
5649 } 5646 }
5650 if (targetUrl != null) { 5647 if (targetUrl != null) {
5651 _json["targetUrl"] = targetUrl; 5648 _json["targetUrl"] = targetUrl;
5652 } 5649 }
5653 if (title != null) { 5650 if (title != null) {
5654 _json["title"] = title; 5651 _json["title"] = title;
5655 } 5652 }
5656 return _json; 5653 return _json;
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after
8106 } 8103 }
8107 if (shortSeriesBookTitle != null) { 8104 if (shortSeriesBookTitle != null) {
8108 _json["shortSeriesBookTitle"] = shortSeriesBookTitle; 8105 _json["shortSeriesBookTitle"] = shortSeriesBookTitle;
8109 } 8106 }
8110 if (volumeSeries != null) { 8107 if (volumeSeries != null) {
8111 _json["volumeSeries"] = volumeSeries.map((value) => (value).toJson()).toLi st(); 8108 _json["volumeSeries"] = volumeSeries.map((value) => (value).toJson()).toLi st();
8112 } 8109 }
8113 return _json; 8110 return _json;
8114 } 8111 }
8115 } 8112 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/bigquery/v2.dart ('k') | generated/googleapis/lib/clouddebugger/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698