Chromium Code Reviews

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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...)
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 444 matching lines...)
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 *
958 * [pageToken] - The value returned by the last `ListTopicsResponse`; 956 * [pageToken] - The value returned by the last `ListTopicsResponse`;
959 * indicates that this is 957 * indicates that this is
960 * a continuation of a prior `ListTopics` call, and that the system should 958 * a continuation of a prior `ListTopics` call, and that the system should
961 * return the next page of data. 959 * return the next page of data.
962 * 960 *
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.int pageSize, core.String pageToken}) { 971 async.Future<ListTopicsResponse> list(core.String project, {core.String pageTo ken, core.int pageSize}) {
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 (pageToken != null) {
983 _queryParams["pageToken"] = [pageToken];
984 }
982 if (pageSize != null) { 985 if (pageSize != null) {
983 _queryParams["pageSize"] = ["${pageSize}"]; 986 _queryParams["pageSize"] = ["${pageSize}"];
984 } 987 }
985 if (pageToken != null) {
986 _queryParams["pageToken"] = [pageToken];
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 160 matching lines...)
1158 1158
1159 /** 1159 /**
1160 * Lists the name of the subscriptions for this topic. 1160 * Lists the name of the subscriptions for this topic.
1161 * 1161 *
1162 * Request parameters: 1162 * Request parameters:
1163 * 1163 *
1164 * [topic] - The name of the topic that subscriptions are attached to. 1164 * [topic] - The name of the topic that subscriptions are attached to.
1165 * Format is `projects/{project}/topics/{topic}`. 1165 * Format is `projects/{project}/topics/{topic}`.
1166 * Value must have pattern "^projects/[^/]+/topics/[^/]+$". 1166 * Value must have pattern "^projects/[^/]+/topics/[^/]+$".
1167 * 1167 *
1168 * [pageSize] - Maximum number of subscription names to return.
1169 *
1168 * [pageToken] - The value returned by the last 1170 * [pageToken] - The value returned by the last
1169 * `ListTopicSubscriptionsResponse`; indicates 1171 * `ListTopicSubscriptionsResponse`; indicates
1170 * that this is a continuation of a prior `ListTopicSubscriptions` call, and 1172 * that this is a continuation of a prior `ListTopicSubscriptions` call, and
1171 * that the system should return the next page of data. 1173 * that the system should return the next page of data.
1172 * 1174 *
1173 * [pageSize] - Maximum number of subscription names to return.
1174 *
1175 * Completes with a [ListTopicSubscriptionsResponse]. 1175 * Completes with a [ListTopicSubscriptionsResponse].
1176 * 1176 *
1177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1178 * error. 1178 * error.
1179 * 1179 *
1180 * If the used [http.Client] completes with an error when making a REST call, 1180 * If the used [http.Client] completes with an error when making a REST call,
1181 * this method will complete with the same error. 1181 * this method will complete with the same error.
1182 */ 1182 */
1183 async.Future<ListTopicSubscriptionsResponse> list(core.String topic, {core.Str ing pageToken, core.int pageSize}) { 1183 async.Future<ListTopicSubscriptionsResponse> list(core.String topic, {core.int pageSize, core.String pageToken}) {
1184 var _url = null; 1184 var _url = null;
1185 var _queryParams = new core.Map(); 1185 var _queryParams = new core.Map();
1186 var _uploadMedia = null; 1186 var _uploadMedia = null;
1187 var _uploadOptions = null; 1187 var _uploadOptions = null;
1188 var _downloadOptions = commons.DownloadOptions.Metadata; 1188 var _downloadOptions = commons.DownloadOptions.Metadata;
1189 var _body = null; 1189 var _body = null;
1190 1190
1191 if (topic == null) { 1191 if (topic == null) {
1192 throw new core.ArgumentError("Parameter topic is required."); 1192 throw new core.ArgumentError("Parameter topic is required.");
1193 } 1193 }
1194 if (pageSize != null) {
1195 _queryParams["pageSize"] = ["${pageSize}"];
1196 }
1194 if (pageToken != null) { 1197 if (pageToken != null) {
1195 _queryParams["pageToken"] = [pageToken]; 1198 _queryParams["pageToken"] = [pageToken];
1196 } 1199 }
1197 if (pageSize != null) {
1198 _queryParams["pageSize"] = ["${pageSize}"];
1199 }
1200 1200
1201 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic') + '/subscript ions'; 1201 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$topic') + '/subscript ions';
1202 1202
1203 var _response = _requester.request(_url, 1203 var _response = _requester.request(_url,
1204 "GET", 1204 "GET",
1205 body: _body, 1205 body: _body,
1206 queryParams: _queryParams, 1206 queryParams: _queryParams,
1207 uploadOptions: _uploadOptions, 1207 uploadOptions: _uploadOptions,
1208 uploadMedia: _uploadMedia, 1208 uploadMedia: _uploadMedia,
1209 downloadOptions: _downloadOptions); 1209 downloadOptions: _downloadOptions);
(...skipping 816 matching lines...)
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/runtimeconfig/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine