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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 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.people.v1; 3 library googleapis.people.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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 /** 186 /**
187 * Provides a list of the authenticated user's contacts merged with any 187 * Provides a list of the authenticated user's contacts merged with any
188 * linked profiles. 188 * linked profiles.
189 * 189 *
190 * Request parameters: 190 * Request parameters:
191 * 191 *
192 * [resourceName] - The resource name to return connections for. Only 192 * [resourceName] - The resource name to return connections for. Only
193 * `people/me` is valid. 193 * `people/me` is valid.
194 * Value must have pattern "^people/[^/]+$". 194 * Value must have pattern "^people/[^/]+$".
195 * 195 *
196 * [requestSyncToken] - Whether the response should include a sync token,
197 * which can be used to get
198 * all changes since the last request.
199 *
200 * [pageToken] - The token of the page to be returned. 196 * [pageToken] - The token of the page to be returned.
201 * 197 *
202 * [requestMask_includeField] - Comma-separated list of fields to be included 198 * [requestMask_includeField] - Comma-separated list of fields to be included
203 * in the response. Omitting 199 * in the response. Omitting
204 * this field will include all fields except for connections.list requests, 200 * this field will include all fields except for connections.list requests,
205 * which have a default mask that includes common fields like metadata, name, 201 * which have a default mask that includes common fields like metadata, name,
206 * photo, and profile url. 202 * photo, and profile url.
207 * Each path should start with `person.`: for example, `person.names` or 203 * Each path should start with `person.`: for example, `person.names` or
208 * `person.photos`. 204 * `person.photos`.
209 * 205 *
210 * [pageSize] - The number of connections to include in the response. Valid 206 * [pageSize] - The number of connections to include in the response. Valid
211 * values are 207 * values are
212 * between 1 and 500, inclusive. Defaults to 100. 208 * between 1 and 500, inclusive. Defaults to 100.
213 * 209 *
214 * [syncToken] - A sync token, returned by a previous call to 210 * [syncToken] - A sync token, returned by a previous call to
215 * `people.connections.list`. 211 * `people.connections.list`.
216 * Only resources changed since the sync token was created will be returned. 212 * Only resources changed since the sync token was created will be returned.
217 * 213 *
218 * [sortOrder] - The order in which the connections should be sorted. Defaults 214 * [sortOrder] - The order in which the connections should be sorted. Defaults
219 * to 215 * to
220 * `LAST_MODIFIED_ASCENDING`. 216 * `LAST_MODIFIED_ASCENDING`.
221 * Possible string values are: 217 * Possible string values are:
222 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. 218 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING.
223 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. 219 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING.
224 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. 220 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING.
225 * 221 *
222 * [requestSyncToken] - Whether the response should include a sync token,
223 * which can be used to get
224 * all changes since the last request.
225 *
226 * Completes with a [ListConnectionsResponse]. 226 * Completes with a [ListConnectionsResponse].
227 * 227 *
228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
229 * error. 229 * error.
230 * 230 *
231 * If the used [http.Client] completes with an error when making a REST call, 231 * If the used [http.Client] completes with an error when making a REST call,
232 * this method will complete with the same error. 232 * this method will complete with the same error.
233 */ 233 */
234 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.boo l requestSyncToken, core.String pageToken, core.String requestMask_includeField, core.int pageSize, core.String syncToken, core.String sortOrder}) { 234 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str ing pageToken, core.String requestMask_includeField, core.int pageSize, core.Str ing syncToken, core.String sortOrder, core.bool requestSyncToken}) {
235 var _url = null; 235 var _url = null;
236 var _queryParams = new core.Map(); 236 var _queryParams = new core.Map();
237 var _uploadMedia = null; 237 var _uploadMedia = null;
238 var _uploadOptions = null; 238 var _uploadOptions = null;
239 var _downloadOptions = commons.DownloadOptions.Metadata; 239 var _downloadOptions = commons.DownloadOptions.Metadata;
240 var _body = null; 240 var _body = null;
241 241
242 if (resourceName == null) { 242 if (resourceName == null) {
243 throw new core.ArgumentError("Parameter resourceName is required."); 243 throw new core.ArgumentError("Parameter resourceName is required.");
244 } 244 }
245 if (requestSyncToken != null) {
246 _queryParams["requestSyncToken"] = ["${requestSyncToken}"];
247 }
248 if (pageToken != null) { 245 if (pageToken != null) {
249 _queryParams["pageToken"] = [pageToken]; 246 _queryParams["pageToken"] = [pageToken];
250 } 247 }
251 if (requestMask_includeField != null) { 248 if (requestMask_includeField != null) {
252 _queryParams["requestMask.includeField"] = [requestMask_includeField]; 249 _queryParams["requestMask.includeField"] = [requestMask_includeField];
253 } 250 }
254 if (pageSize != null) { 251 if (pageSize != null) {
255 _queryParams["pageSize"] = ["${pageSize}"]; 252 _queryParams["pageSize"] = ["${pageSize}"];
256 } 253 }
257 if (syncToken != null) { 254 if (syncToken != null) {
258 _queryParams["syncToken"] = [syncToken]; 255 _queryParams["syncToken"] = [syncToken];
259 } 256 }
260 if (sortOrder != null) { 257 if (sortOrder != null) {
261 _queryParams["sortOrder"] = [sortOrder]; 258 _queryParams["sortOrder"] = [sortOrder];
262 } 259 }
260 if (requestSyncToken != null) {
261 _queryParams["requestSyncToken"] = ["${requestSyncToken}"];
262 }
263 263
264 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections'; 264 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co nnections';
265 265
266 var _response = _requester.request(_url, 266 var _response = _requester.request(_url,
267 "GET", 267 "GET",
268 body: _body, 268 body: _body,
269 queryParams: _queryParams, 269 queryParams: _queryParams,
270 uploadOptions: _uploadOptions, 270 uploadOptions: _uploadOptions,
271 uploadMedia: _uploadMedia, 271 uploadMedia: _uploadMedia,
272 downloadOptions: _downloadOptions); 272 downloadOptions: _downloadOptions);
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 } 1063 }
1064 } 1064 }
1065 1065
1066 class ListConnectionsResponse { 1066 class ListConnectionsResponse {
1067 /** The list of people that the requestor is connected to. */ 1067 /** The list of people that the requestor is connected to. */
1068 core.List<Person> connections; 1068 core.List<Person> connections;
1069 /** The token that can be used to retrieve the next page of results. */ 1069 /** The token that can be used to retrieve the next page of results. */
1070 core.String nextPageToken; 1070 core.String nextPageToken;
1071 /** The token that can be used to retrieve changes since the last request. */ 1071 /** The token that can be used to retrieve changes since the last request. */
1072 core.String nextSyncToken; 1072 core.String nextSyncToken;
1073 /** The total number of people in the list without pagination. */
1074 core.int totalPeople;
1073 1075
1074 ListConnectionsResponse(); 1076 ListConnectionsResponse();
1075 1077
1076 ListConnectionsResponse.fromJson(core.Map _json) { 1078 ListConnectionsResponse.fromJson(core.Map _json) {
1077 if (_json.containsKey("connections")) { 1079 if (_json.containsKey("connections")) {
1078 connections = _json["connections"].map((value) => new Person.fromJson(valu e)).toList(); 1080 connections = _json["connections"].map((value) => new Person.fromJson(valu e)).toList();
1079 } 1081 }
1080 if (_json.containsKey("nextPageToken")) { 1082 if (_json.containsKey("nextPageToken")) {
1081 nextPageToken = _json["nextPageToken"]; 1083 nextPageToken = _json["nextPageToken"];
1082 } 1084 }
1083 if (_json.containsKey("nextSyncToken")) { 1085 if (_json.containsKey("nextSyncToken")) {
1084 nextSyncToken = _json["nextSyncToken"]; 1086 nextSyncToken = _json["nextSyncToken"];
1085 } 1087 }
1088 if (_json.containsKey("totalPeople")) {
1089 totalPeople = _json["totalPeople"];
1090 }
1086 } 1091 }
1087 1092
1088 core.Map toJson() { 1093 core.Map toJson() {
1089 var _json = new core.Map(); 1094 var _json = new core.Map();
1090 if (connections != null) { 1095 if (connections != null) {
1091 _json["connections"] = connections.map((value) => (value).toJson()).toList (); 1096 _json["connections"] = connections.map((value) => (value).toJson()).toList ();
1092 } 1097 }
1093 if (nextPageToken != null) { 1098 if (nextPageToken != null) {
1094 _json["nextPageToken"] = nextPageToken; 1099 _json["nextPageToken"] = nextPageToken;
1095 } 1100 }
1096 if (nextSyncToken != null) { 1101 if (nextSyncToken != null) {
1097 _json["nextSyncToken"] = nextSyncToken; 1102 _json["nextSyncToken"] = nextSyncToken;
1098 } 1103 }
1104 if (totalPeople != null) {
1105 _json["totalPeople"] = totalPeople;
1106 }
1099 return _json; 1107 return _json;
1100 } 1108 }
1101 } 1109 }
1102 1110
1103 /** A person's locale preference. */ 1111 /** A person's locale preference. */
1104 class Locale { 1112 class Locale {
1105 /** Metadata about the locale. */ 1113 /** Metadata about the locale. */
1106 FieldMetadata metadata; 1114 FieldMetadata metadata;
1107 /** 1115 /**
1108 * The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) 1116 * The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47)
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 } 2466 }
2459 if (type != null) { 2467 if (type != null) {
2460 _json["type"] = type; 2468 _json["type"] = type;
2461 } 2469 }
2462 if (value != null) { 2470 if (value != null) {
2463 _json["value"] = value; 2471 _json["value"] = value;
2464 } 2472 }
2465 return _json; 2473 return _json;
2466 } 2474 }
2467 } 2475 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/partners/v2.dart ('k') | generated/googleapis/lib/playmoviespartner/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698