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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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/people/v1.dart ('k') | generated/googleapis/lib/runtimeconfig/v1.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.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 *
462 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`; 460 * [pageToken] - The value returned by the last `ListSubscriptionsResponse`;
463 * indicates that 461 * indicates that
464 * this is a continuation of a prior `ListSubscriptions` call, and that the 462 * this is a continuation of a prior `ListSubscriptions` call, and that the
465 * system should return the next page of data. 463 * system should return the next page of data.
466 * 464 *
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.int pa geSize, core.String pageToken}) { 475 async.Future<ListSubscriptionsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) {
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 (pageToken != null) {
487 _queryParams["pageToken"] = [pageToken];
488 }
486 if (pageSize != null) { 489 if (pageSize != null) {
487 _queryParams["pageSize"] = ["${pageSize}"]; 490 _queryParams["pageSize"] = ["${pageSize}"];
488 } 491 }
489 if (pageToken != null) {
490 _queryParams["pageToken"] = [pageToken];
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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 945
946 /** 946 /**
947 * Lists matching topics. 947 * Lists matching topics.
948 * 948 *
949 * Request parameters: 949 * Request parameters:
950 * 950 *
951 * [project] - The name of the cloud project that topics belong to. 951 * [project] - The name of the cloud project that topics belong to.
952 * Format is `projects/{project}`. 952 * Format is `projects/{project}`.
953 * Value must have pattern "^projects/[^/]+$". 953 * Value must have pattern "^projects/[^/]+$".
954 * 954 *
955 * [pageSize] - Maximum number of topics to return.
956 *
957 * [pageToken] - The value returned by the last `ListTopicsResponse`; 955 * [pageToken] - The value returned by the last `ListTopicsResponse`;
958 * indicates that this is 956 * indicates that this is
959 * a continuation of a prior `ListTopics` call, and that the system should 957 * a continuation of a prior `ListTopics` call, and that the system should
960 * return the next page of data. 958 * return the next page of data.
961 * 959 *
960 * [pageSize] - Maximum number of topics to return.
961 *
962 * Completes with a [ListTopicsResponse]. 962 * Completes with a [ListTopicsResponse].
963 * 963 *
964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 964 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
965 * error. 965 * error.
966 * 966 *
967 * If the used [http.Client] completes with an error when making a REST call, 967 * If the used [http.Client] completes with an error when making a REST call,
968 * this method will complete with the same error. 968 * this method will complete with the same error.
969 */ 969 */
970 async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { 970 async.Future<ListTopicsResponse> list(core.String project, {core.String pageTo ken, core.int pageSize}) {
971 var _url = null; 971 var _url = null;
972 var _queryParams = new core.Map(); 972 var _queryParams = new core.Map();
973 var _uploadMedia = null; 973 var _uploadMedia = null;
974 var _uploadOptions = null; 974 var _uploadOptions = null;
975 var _downloadOptions = commons.DownloadOptions.Metadata; 975 var _downloadOptions = commons.DownloadOptions.Metadata;
976 var _body = null; 976 var _body = null;
977 977
978 if (project == null) { 978 if (project == null) {
979 throw new core.ArgumentError("Parameter project is required."); 979 throw new core.ArgumentError("Parameter project is required.");
980 } 980 }
981 if (pageToken != null) {
982 _queryParams["pageToken"] = [pageToken];
983 }
981 if (pageSize != null) { 984 if (pageSize != null) {
982 _queryParams["pageSize"] = ["${pageSize}"]; 985 _queryParams["pageSize"] = ["${pageSize}"];
983 } 986 }
984 if (pageToken != null) {
985 _queryParams["pageToken"] = [pageToken];
986 }
987 987
988 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics' ; 988 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics' ;
989 989
990 var _response = _requester.request(_url, 990 var _response = _requester.request(_url,
991 "GET", 991 "GET",
992 body: _body, 992 body: _body,
993 queryParams: _queryParams, 993 queryParams: _queryParams,
994 uploadOptions: _uploadOptions, 994 uploadOptions: _uploadOptions,
995 uploadMedia: _uploadMedia, 995 uploadMedia: _uploadMedia,
996 downloadOptions: _downloadOptions); 996 downloadOptions: _downloadOptions);
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2024 } 2024 }
2025 2025
2026 core.Map toJson() { 2026 core.Map toJson() {
2027 var _json = new core.Map(); 2027 var _json = new core.Map();
2028 if (name != null) { 2028 if (name != null) {
2029 _json["name"] = name; 2029 _json["name"] = name;
2030 } 2030 }
2031 return _json; 2031 return _json;
2032 } 2032 }
2033 } 2033 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/people/v1.dart ('k') | generated/googleapis/lib/runtimeconfig/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698