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

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

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 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.pubsub.v1; 3 library googleapis.pubsub.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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 450
451 /** 451 /**
452 * Lists matching subscriptions. 452 * Lists matching subscriptions.
453 * 453 *
454 * Request parameters: 454 * Request parameters:
455 * 455 *
456 * [project] - The name of the cloud project that subscriptions belong to. 456 * [project] - The name of the cloud project that subscriptions belong to.
457 * Format is `projects/{project}`. 457 * Format is `projects/{project}`.
458 * Value must have pattern "^projects/[^/]+$". 458 * Value must have pattern "^projects/[^/]+$".
459 * 459 *
460 * [pageSize] - Maximum number of subscriptions to return.
461 *
460 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; 462 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`;
461 * indicates that 463 * indicates that
462 * this is a continuation of a prior `ListSubscriptions` call, and that the 464 * this is a continuation of a prior `ListSubscriptions` call, and that the
463 * system should return the next page of data. 465 * system should return the next page of data.
464 * 466 *
465 * [pageSize] - Maximum number of subscriptions to return.
466 *
467 * Completes with a [ListSubscriptionsResponse]. 467 * Completes with a [ListSubscriptionsResponse].
468 * 468 *
469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
470 * error. 470 * error.
471 * 471 *
472 * If the used [http.Client] completes with an error when making a REST call, 472 * If the used [http.Client] completes with an error when making a REST call,
473 * this method will complete with the same error. 473 * this method will complete with the same error.
474 */ 474 */
475 async.Future<ListSubscriptionsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) { 475 async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pa geSize, core.String pageToken}) {
476 var _url = null; 476 var _url = null;
477 var _queryParams = new core.Map(); 477 var _queryParams = new core.Map();
478 var _uploadMedia = null; 478 var _uploadMedia = null;
479 var _uploadOptions = null; 479 var _uploadOptions = null;
480 var _downloadOptions = commons.DownloadOptions.Metadata; 480 var _downloadOptions = commons.DownloadOptions.Metadata;
481 var _body = null; 481 var _body = null;
482 482
483 if (project == null) { 483 if (project == null) {
484 throw new core.ArgumentError("Parameter project is required."); 484 throw new core.ArgumentError("Parameter project is required.");
485 } 485 }
486 if (pageSize != null) {
487 _queryParams["pageSize"] = ["${pageSize}"];
488 }
486 if (pageToken != null) { 489 if (pageToken != null) {
487 _queryParams["pageToken"] = [pageToken]; 490 _queryParams["pageToken"] = [pageToken];
488 } 491 }
489 if (pageSize != null) {
490 _queryParams["pageSize"] = ["${pageSize}"];
491 }
492 492
493 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscri ptions'; 493 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscri ptions';
494 494
495 var _response = _requester.request(_url, 495 var _response = _requester.request(_url,
496 "GET", 496 "GET",
497 body: _body, 497 body: _body,
498 queryParams: _queryParams, 498 queryParams: _queryParams,
499 uploadOptions: _uploadOptions, 499 uploadOptions: _uploadOptions,
500 uploadMedia: _uploadMedia, 500 uploadMedia: _uploadMedia,
501 downloadOptions: _downloadOptions); 501 downloadOptions: _downloadOptions);
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 946
947 /** 947 /**
948 * Lists matching topics. 948 * Lists matching topics.
949 * 949 *
950 * Request parameters: 950 * Request parameters:
951 * 951 *
952 * [project] - The name of the cloud project that topics belong to. 952 * [project] - The name of the cloud project that topics belong to.
953 * Format is `projects/{project}`. 953 * Format is `projects/{project}`.
954 * Value must have pattern "^projects/[^/]+$". 954 * Value must have pattern "^projects/[^/]+$".
955 * 955 *
956 * [pageSize] - Maximum number of topics to return.
957 *
956 * [pageToken] - The value returned by the last `ListTopicsResponse`; 958 * [pageToken] - The value returned by the last `ListTopicsResponse`;
957 * indicates that this is 959 * indicates that this is
958 * a continuation of a prior `ListTopics` call, and that the system should 960 * a continuation of a prior `ListTopics` call, and that the system should
959 * return the next page of data. 961 * return the next page of data.
960 * 962 *
961 * [pageSize] - Maximum number of topics to return.
962 *
963 * Completes with a [ListTopicsResponse]. 963 * Completes with a [ListTopicsResponse].
964 * 964 *
965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
966 * error. 966 * error.
967 * 967 *
968 * If the used [http.Client] completes with an error when making a REST call, 968 * If the used [http.Client] completes with an error when making a REST call,
969 * this method will complete with the same error. 969 * this method will complete with the same error.
970 */ 970 */
971 async.Future<ListTopicsResponse> list(core.String project, {core.String pageTo ken, core.int pageSize}) { 971 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) {
972 var _url = null; 972 var _url = null;
973 var _queryParams = new core.Map(); 973 var _queryParams = new core.Map();
974 var _uploadMedia = null; 974 var _uploadMedia = null;
975 var _uploadOptions = null; 975 var _uploadOptions = null;
976 var _downloadOptions = commons.DownloadOptions.Metadata; 976 var _downloadOptions = commons.DownloadOptions.Metadata;
977 var _body = null; 977 var _body = null;
978 978
979 if (project == null) { 979 if (project == null) {
980 throw new core.ArgumentError("Parameter project is required."); 980 throw new core.ArgumentError("Parameter project is required.");
981 } 981 }
982 if (pageSize != null) {
983 _queryParams["pageSize"] = ["${pageSize}"];
984 }
982 if (pageToken != null) { 985 if (pageToken != null) {
983 _queryParams["pageToken"] = [pageToken]; 986 _queryParams["pageToken"] = [pageToken];
984 } 987 }
985 if (pageSize != null) {
986 _queryParams["pageSize"] = ["${pageSize}"];
987 }
988 988
989 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics' ; 989 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics' ;
990 990
991 var _response = _requester.request(_url, 991 var _response = _requester.request(_url,
992 "GET", 992 "GET",
993 body: _body, 993 body: _body,
994 queryParams: _queryParams, 994 queryParams: _queryParams,
995 uploadOptions: _uploadOptions, 995 uploadOptions: _uploadOptions,
996 uploadMedia: _uploadMedia, 996 uploadMedia: _uploadMedia,
997 downloadOptions: _downloadOptions); 997 downloadOptions: _downloadOptions);
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 } 2026 }
2027 2027
2028 core.Map<core.String, core.Object> toJson() { 2028 core.Map<core.String, core.Object> toJson() {
2029 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2029 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2030 if (name != null) { 2030 if (name != null) {
2031 _json["name"] = name; 2031 _json["name"] = name;
2032 } 2032 }
2033 return _json; 2033 return _json;
2034 } 2034 }
2035 } 2035 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/playmoviespartner/v1.dart ('k') | generated/googleapis/lib/safebrowsing/v4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698