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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 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
« no previous file with comments | « generated/googleapis/lib/plus/v1.dart ('k') | generated/googleapis/lib/prediction/v1_6.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).
2
1 library googleapis.plusDomains.v1; 3 library googleapis.plusDomains.v1;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection_1; 6 import 'dart:collection' as collection_1;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
17 ByteRange;
18
19 const core.String USER_AGENT = 'dart-api-client plusDomains/v1';
15 20
16 /** 21 /**
17 * The Google+ API enables developers to build on top of the Google+ platform. 22 * The Google+ API enables developers to build on top of the Google+ platform.
18 */ 23 */
19 class PlusDomainsApi { 24 class PlusDomainsApi {
20 /** View your circles and the people and pages in them */ 25 /** View your circles and the people and pages in them */
21 static const PlusCirclesReadScope = "https://www.googleapis.com/auth/plus.circ les.read"; 26 static const PlusCirclesReadScope = "https://www.googleapis.com/auth/plus.circ les.read";
22 27
23 /** 28 /**
24 * Manage your circles and add people and pages. People and pages you add to 29 * Manage your circles and add people and pages. People and pages you add to
(...skipping 20 matching lines...) Expand all
45 /** Manage your Google+ posts, comments, and stream */ 50 /** Manage your Google+ posts, comments, and stream */
46 static const PlusStreamWriteScope = "https://www.googleapis.com/auth/plus.stre am.write"; 51 static const PlusStreamWriteScope = "https://www.googleapis.com/auth/plus.stre am.write";
47 52
48 /** View your email address */ 53 /** View your email address */
49 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail"; 54 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail";
50 55
51 /** View your basic profile info */ 56 /** View your basic profile info */
52 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo. profile"; 57 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo. profile";
53 58
54 59
55 final common_internal.ApiRequester _requester; 60 final commons.ApiRequester _requester;
56 61
57 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); 62 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester);
58 AudiencesResourceApi get audiences => new AudiencesResourceApi(_requester); 63 AudiencesResourceApi get audiences => new AudiencesResourceApi(_requester);
59 CirclesResourceApi get circles => new CirclesResourceApi(_requester); 64 CirclesResourceApi get circles => new CirclesResourceApi(_requester);
60 CommentsResourceApi get comments => new CommentsResourceApi(_requester); 65 CommentsResourceApi get comments => new CommentsResourceApi(_requester);
61 MediaResourceApi get media => new MediaResourceApi(_requester); 66 MediaResourceApi get media => new MediaResourceApi(_requester);
62 PeopleResourceApi get people => new PeopleResourceApi(_requester); 67 PeopleResourceApi get people => new PeopleResourceApi(_requester);
63 68
64 PlusDomainsApi(http.Client client, {core.String rootUrl: "https://www.googleap is.com/", core.String servicePath: "plusDomains/v1/"}) : 69 PlusDomainsApi(http.Client client, {core.String rootUrl: "https://www.googleap is.com/", core.String servicePath: "plusDomains/v1/"}) :
65 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 70 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
66 } 71 }
67 72
68 73
69 /** Not documented yet. */
70 class ActivitiesResourceApi { 74 class ActivitiesResourceApi {
71 final common_internal.ApiRequester _requester; 75 final commons.ApiRequester _requester;
72 76
73 ActivitiesResourceApi(common_internal.ApiRequester client) : 77 ActivitiesResourceApi(commons.ApiRequester client) :
74 _requester = client; 78 _requester = client;
75 79
76 /** 80 /**
77 * Get an activity. 81 * Get an activity.
78 * 82 *
79 * Request parameters: 83 * Request parameters:
80 * 84 *
81 * [activityId] - The ID of the activity to get. 85 * [activityId] - The ID of the activity to get.
82 * 86 *
83 * Completes with a [Activity]. 87 * Completes with a [Activity].
84 * 88 *
85 * Completes with a [common.ApiRequestError] if the API endpoint returned an 89 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
86 * error. 90 * error.
87 * 91 *
88 * If the used [http.Client] completes with an error when making a REST call, 92 * If the used [http.Client] completes with an error when making a REST call,
89 * this method will complete with the same error. 93 * this method will complete with the same error.
90 */ 94 */
91 async.Future<Activity> get(core.String activityId) { 95 async.Future<Activity> get(core.String activityId) {
92 var _url = null; 96 var _url = null;
93 var _queryParams = new core.Map(); 97 var _queryParams = new core.Map();
94 var _uploadMedia = null; 98 var _uploadMedia = null;
95 var _uploadOptions = null; 99 var _uploadOptions = null;
96 var _downloadOptions = common.DownloadOptions.Metadata; 100 var _downloadOptions = commons.DownloadOptions.Metadata;
97 var _body = null; 101 var _body = null;
98 102
99 if (activityId == null) { 103 if (activityId == null) {
100 throw new core.ArgumentError("Parameter activityId is required."); 104 throw new core.ArgumentError("Parameter activityId is required.");
101 } 105 }
102 106
103 107
104 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId'); 108 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId');
105 109
106 var _response = _requester.request(_url, 110 var _response = _requester.request(_url,
107 "GET", 111 "GET",
108 body: _body, 112 body: _body,
109 queryParams: _queryParams, 113 queryParams: _queryParams,
110 uploadOptions: _uploadOptions, 114 uploadOptions: _uploadOptions,
111 uploadMedia: _uploadMedia, 115 uploadMedia: _uploadMedia,
112 downloadOptions: _downloadOptions); 116 downloadOptions: _downloadOptions);
113 return _response.then((data) => new Activity.fromJson(data)); 117 return _response.then((data) => new Activity.fromJson(data));
114 } 118 }
115 119
116 /** 120 /**
117 * Create a new activity for the authenticated user. 121 * Create a new activity for the authenticated user.
118 * 122 *
119 * [request] - The metadata request object. 123 * [request] - The metadata request object.
120 * 124 *
121 * Request parameters: 125 * Request parameters:
122 * 126 *
123 * [userId] - The ID of the user to create the activity on behalf of. Its 127 * [userId] - The ID of the user to create the activity on behalf of. Its
124 * value should be "me", to indicate the authenticated user. 128 * value should be "me", to indicate the authenticated user.
125 * 129 *
126 * [preview] - If "true", extract the potential media attachments for a URL. 130 * [preview] - If "true", extract the potential media attachments for a URL.
127 * The response will include all possible attachments for a URL, including 131 * The response will include all possible attachments for a URL, including
128 * video, photos, and articles based on the content of the page. 132 * video, photos, and articles based on the content of the page.
129 * 133 *
130 * Completes with a [Activity]. 134 * Completes with a [Activity].
131 * 135 *
132 * Completes with a [common.ApiRequestError] if the API endpoint returned an 136 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
133 * error. 137 * error.
134 * 138 *
135 * If the used [http.Client] completes with an error when making a REST call, 139 * If the used [http.Client] completes with an error when making a REST call,
136 * this method will complete with the same error. 140 * this method will complete with the same error.
137 */ 141 */
138 async.Future<Activity> insert(Activity request, core.String userId, {core.bool preview}) { 142 async.Future<Activity> insert(Activity request, core.String userId, {core.bool preview}) {
139 var _url = null; 143 var _url = null;
140 var _queryParams = new core.Map(); 144 var _queryParams = new core.Map();
141 var _uploadMedia = null; 145 var _uploadMedia = null;
142 var _uploadOptions = null; 146 var _uploadOptions = null;
143 var _downloadOptions = common.DownloadOptions.Metadata; 147 var _downloadOptions = commons.DownloadOptions.Metadata;
144 var _body = null; 148 var _body = null;
145 149
146 if (request != null) { 150 if (request != null) {
147 _body = convert.JSON.encode((request).toJson()); 151 _body = convert.JSON.encode((request).toJson());
148 } 152 }
149 if (userId == null) { 153 if (userId == null) {
150 throw new core.ArgumentError("Parameter userId is required."); 154 throw new core.ArgumentError("Parameter userId is required.");
151 } 155 }
152 if (preview != null) { 156 if (preview != null) {
153 _queryParams["preview"] = ["${preview}"]; 157 _queryParams["preview"] = ["${preview}"];
154 } 158 }
155 159
156 160
157 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/acti vities'; 161 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities';
158 162
159 var _response = _requester.request(_url, 163 var _response = _requester.request(_url,
160 "POST", 164 "POST",
161 body: _body, 165 body: _body,
162 queryParams: _queryParams, 166 queryParams: _queryParams,
163 uploadOptions: _uploadOptions, 167 uploadOptions: _uploadOptions,
164 uploadMedia: _uploadMedia, 168 uploadMedia: _uploadMedia,
165 downloadOptions: _downloadOptions); 169 downloadOptions: _downloadOptions);
166 return _response.then((data) => new Activity.fromJson(data)); 170 return _response.then((data) => new Activity.fromJson(data));
167 } 171 }
(...skipping 16 matching lines...) Expand all
184 * which is used for paging. For any response, the actual number returned 188 * which is used for paging. For any response, the actual number returned
185 * might be less than the specified maxResults. 189 * might be less than the specified maxResults.
186 * Value must be between "1" and "100". 190 * Value must be between "1" and "100".
187 * 191 *
188 * [pageToken] - The continuation token, which is used to page through large 192 * [pageToken] - The continuation token, which is used to page through large
189 * result sets. To get the next page of results, set this parameter to the 193 * result sets. To get the next page of results, set this parameter to the
190 * value of "nextPageToken" from the previous response. 194 * value of "nextPageToken" from the previous response.
191 * 195 *
192 * Completes with a [ActivityFeed]. 196 * Completes with a [ActivityFeed].
193 * 197 *
194 * Completes with a [common.ApiRequestError] if the API endpoint returned an 198 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
195 * error. 199 * error.
196 * 200 *
197 * If the used [http.Client] completes with an error when making a REST call, 201 * If the used [http.Client] completes with an error when making a REST call,
198 * this method will complete with the same error. 202 * this method will complete with the same error.
199 */ 203 */
200 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c ore.int maxResults, core.String pageToken}) { 204 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c ore.int maxResults, core.String pageToken}) {
201 var _url = null; 205 var _url = null;
202 var _queryParams = new core.Map(); 206 var _queryParams = new core.Map();
203 var _uploadMedia = null; 207 var _uploadMedia = null;
204 var _uploadOptions = null; 208 var _uploadOptions = null;
205 var _downloadOptions = common.DownloadOptions.Metadata; 209 var _downloadOptions = commons.DownloadOptions.Metadata;
206 var _body = null; 210 var _body = null;
207 211
208 if (userId == null) { 212 if (userId == null) {
209 throw new core.ArgumentError("Parameter userId is required."); 213 throw new core.ArgumentError("Parameter userId is required.");
210 } 214 }
211 if (collection == null) { 215 if (collection == null) {
212 throw new core.ArgumentError("Parameter collection is required."); 216 throw new core.ArgumentError("Parameter collection is required.");
213 } 217 }
214 if (maxResults != null) { 218 if (maxResults != null) {
215 _queryParams["maxResults"] = ["${maxResults}"]; 219 _queryParams["maxResults"] = ["${maxResults}"];
216 } 220 }
217 if (pageToken != null) { 221 if (pageToken != null) {
218 _queryParams["pageToken"] = [pageToken]; 222 _queryParams["pageToken"] = [pageToken];
219 } 223 }
220 224
221 225
222 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/acti vities/' + common_internal.Escaper.ecapeVariable('$collection'); 226 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities/' + commons.Escaper.ecapeVariable('$collection');
223 227
224 var _response = _requester.request(_url, 228 var _response = _requester.request(_url,
225 "GET", 229 "GET",
226 body: _body, 230 body: _body,
227 queryParams: _queryParams, 231 queryParams: _queryParams,
228 uploadOptions: _uploadOptions, 232 uploadOptions: _uploadOptions,
229 uploadMedia: _uploadMedia, 233 uploadMedia: _uploadMedia,
230 downloadOptions: _downloadOptions); 234 downloadOptions: _downloadOptions);
231 return _response.then((data) => new ActivityFeed.fromJson(data)); 235 return _response.then((data) => new ActivityFeed.fromJson(data));
232 } 236 }
233 237
234 } 238 }
235 239
236 240
237 /** Not documented yet. */
238 class AudiencesResourceApi { 241 class AudiencesResourceApi {
239 final common_internal.ApiRequester _requester; 242 final commons.ApiRequester _requester;
240 243
241 AudiencesResourceApi(common_internal.ApiRequester client) : 244 AudiencesResourceApi(commons.ApiRequester client) :
242 _requester = client; 245 _requester = client;
243 246
244 /** 247 /**
245 * List all of the audiences to which a user can share. 248 * List all of the audiences to which a user can share.
246 * 249 *
247 * Request parameters: 250 * Request parameters:
248 * 251 *
249 * [userId] - The ID of the user to get audiences for. The special value "me" 252 * [userId] - The ID of the user to get audiences for. The special value "me"
250 * can be used to indicate the authenticated user. 253 * can be used to indicate the authenticated user.
251 * 254 *
252 * [maxResults] - The maximum number of circles to include in the response, 255 * [maxResults] - The maximum number of circles to include in the response,
253 * which is used for paging. For any response, the actual number returned 256 * which is used for paging. For any response, the actual number returned
254 * might be less than the specified maxResults. 257 * might be less than the specified maxResults.
255 * Value must be between "1" and "100". 258 * Value must be between "1" and "100".
256 * 259 *
257 * [pageToken] - The continuation token, which is used to page through large 260 * [pageToken] - The continuation token, which is used to page through large
258 * result sets. To get the next page of results, set this parameter to the 261 * result sets. To get the next page of results, set this parameter to the
259 * value of "nextPageToken" from the previous response. 262 * value of "nextPageToken" from the previous response.
260 * 263 *
261 * Completes with a [AudiencesFeed]. 264 * Completes with a [AudiencesFeed].
262 * 265 *
263 * Completes with a [common.ApiRequestError] if the API endpoint returned an 266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
264 * error. 267 * error.
265 * 268 *
266 * If the used [http.Client] completes with an error when making a REST call, 269 * If the used [http.Client] completes with an error when making a REST call,
267 * this method will complete with the same error. 270 * this method will complete with the same error.
268 */ 271 */
269 async.Future<AudiencesFeed> list(core.String userId, {core.int maxResults, cor e.String pageToken}) { 272 async.Future<AudiencesFeed> list(core.String userId, {core.int maxResults, cor e.String pageToken}) {
270 var _url = null; 273 var _url = null;
271 var _queryParams = new core.Map(); 274 var _queryParams = new core.Map();
272 var _uploadMedia = null; 275 var _uploadMedia = null;
273 var _uploadOptions = null; 276 var _uploadOptions = null;
274 var _downloadOptions = common.DownloadOptions.Metadata; 277 var _downloadOptions = commons.DownloadOptions.Metadata;
275 var _body = null; 278 var _body = null;
276 279
277 if (userId == null) { 280 if (userId == null) {
278 throw new core.ArgumentError("Parameter userId is required."); 281 throw new core.ArgumentError("Parameter userId is required.");
279 } 282 }
280 if (maxResults != null) { 283 if (maxResults != null) {
281 _queryParams["maxResults"] = ["${maxResults}"]; 284 _queryParams["maxResults"] = ["${maxResults}"];
282 } 285 }
283 if (pageToken != null) { 286 if (pageToken != null) {
284 _queryParams["pageToken"] = [pageToken]; 287 _queryParams["pageToken"] = [pageToken];
285 } 288 }
286 289
287 290
288 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/audi ences'; 291 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/audiences';
289 292
290 var _response = _requester.request(_url, 293 var _response = _requester.request(_url,
291 "GET", 294 "GET",
292 body: _body, 295 body: _body,
293 queryParams: _queryParams, 296 queryParams: _queryParams,
294 uploadOptions: _uploadOptions, 297 uploadOptions: _uploadOptions,
295 uploadMedia: _uploadMedia, 298 uploadMedia: _uploadMedia,
296 downloadOptions: _downloadOptions); 299 downloadOptions: _downloadOptions);
297 return _response.then((data) => new AudiencesFeed.fromJson(data)); 300 return _response.then((data) => new AudiencesFeed.fromJson(data));
298 } 301 }
299 302
300 } 303 }
301 304
302 305
303 /** Not documented yet. */
304 class CirclesResourceApi { 306 class CirclesResourceApi {
305 final common_internal.ApiRequester _requester; 307 final commons.ApiRequester _requester;
306 308
307 CirclesResourceApi(common_internal.ApiRequester client) : 309 CirclesResourceApi(commons.ApiRequester client) :
308 _requester = client; 310 _requester = client;
309 311
310 /** 312 /**
311 * Add a person to a circle. Google+ limits certain circle operations, 313 * Add a person to a circle. Google+ limits certain circle operations,
312 * including the number of circle adds. Learn More. 314 * including the number of circle adds. Learn More.
313 * 315 *
314 * Request parameters: 316 * Request parameters:
315 * 317 *
316 * [circleId] - The ID of the circle to add the person to. 318 * [circleId] - The ID of the circle to add the person to.
317 * 319 *
318 * [email] - Email of the people to add to the circle. Optional, can be 320 * [email] - Email of the people to add to the circle. Optional, can be
319 * repeated. 321 * repeated.
320 * 322 *
321 * [userId] - IDs of the people to add to the circle. Optional, can be 323 * [userId] - IDs of the people to add to the circle. Optional, can be
322 * repeated. 324 * repeated.
323 * 325 *
324 * Completes with a [Circle]. 326 * Completes with a [Circle].
325 * 327 *
326 * Completes with a [common.ApiRequestError] if the API endpoint returned an 328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
327 * error. 329 * error.
328 * 330 *
329 * If the used [http.Client] completes with an error when making a REST call, 331 * If the used [http.Client] completes with an error when making a REST call,
330 * this method will complete with the same error. 332 * this method will complete with the same error.
331 */ 333 */
332 async.Future<Circle> addPeople(core.String circleId, {core.List<core.String> e mail, core.List<core.String> userId}) { 334 async.Future<Circle> addPeople(core.String circleId, {core.List<core.String> e mail, core.List<core.String> userId}) {
333 var _url = null; 335 var _url = null;
334 var _queryParams = new core.Map(); 336 var _queryParams = new core.Map();
335 var _uploadMedia = null; 337 var _uploadMedia = null;
336 var _uploadOptions = null; 338 var _uploadOptions = null;
337 var _downloadOptions = common.DownloadOptions.Metadata; 339 var _downloadOptions = commons.DownloadOptions.Metadata;
338 var _body = null; 340 var _body = null;
339 341
340 if (circleId == null) { 342 if (circleId == null) {
341 throw new core.ArgumentError("Parameter circleId is required."); 343 throw new core.ArgumentError("Parameter circleId is required.");
342 } 344 }
343 if (email != null) { 345 if (email != null) {
344 _queryParams["email"] = email; 346 _queryParams["email"] = email;
345 } 347 }
346 if (userId != null) { 348 if (userId != null) {
347 _queryParams["userId"] = userId; 349 _queryParams["userId"] = userId;
348 } 350 }
349 351
350 352
351 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople'; 353 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people';
352 354
353 var _response = _requester.request(_url, 355 var _response = _requester.request(_url,
354 "PUT", 356 "PUT",
355 body: _body, 357 body: _body,
356 queryParams: _queryParams, 358 queryParams: _queryParams,
357 uploadOptions: _uploadOptions, 359 uploadOptions: _uploadOptions,
358 uploadMedia: _uploadMedia, 360 uploadMedia: _uploadMedia,
359 downloadOptions: _downloadOptions); 361 downloadOptions: _downloadOptions);
360 return _response.then((data) => new Circle.fromJson(data)); 362 return _response.then((data) => new Circle.fromJson(data));
361 } 363 }
362 364
363 /** 365 /**
364 * Get a circle. 366 * Get a circle.
365 * 367 *
366 * Request parameters: 368 * Request parameters:
367 * 369 *
368 * [circleId] - The ID of the circle to get. 370 * [circleId] - The ID of the circle to get.
369 * 371 *
370 * Completes with a [Circle]. 372 * Completes with a [Circle].
371 * 373 *
372 * Completes with a [common.ApiRequestError] if the API endpoint returned an 374 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
373 * error. 375 * error.
374 * 376 *
375 * If the used [http.Client] completes with an error when making a REST call, 377 * If the used [http.Client] completes with an error when making a REST call,
376 * this method will complete with the same error. 378 * this method will complete with the same error.
377 */ 379 */
378 async.Future<Circle> get(core.String circleId) { 380 async.Future<Circle> get(core.String circleId) {
379 var _url = null; 381 var _url = null;
380 var _queryParams = new core.Map(); 382 var _queryParams = new core.Map();
381 var _uploadMedia = null; 383 var _uploadMedia = null;
382 var _uploadOptions = null; 384 var _uploadOptions = null;
383 var _downloadOptions = common.DownloadOptions.Metadata; 385 var _downloadOptions = commons.DownloadOptions.Metadata;
384 var _body = null; 386 var _body = null;
385 387
386 if (circleId == null) { 388 if (circleId == null) {
387 throw new core.ArgumentError("Parameter circleId is required."); 389 throw new core.ArgumentError("Parameter circleId is required.");
388 } 390 }
389 391
390 392
391 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId'); 393 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId');
392 394
393 var _response = _requester.request(_url, 395 var _response = _requester.request(_url,
394 "GET", 396 "GET",
395 body: _body, 397 body: _body,
396 queryParams: _queryParams, 398 queryParams: _queryParams,
397 uploadOptions: _uploadOptions, 399 uploadOptions: _uploadOptions,
398 uploadMedia: _uploadMedia, 400 uploadMedia: _uploadMedia,
399 downloadOptions: _downloadOptions); 401 downloadOptions: _downloadOptions);
400 return _response.then((data) => new Circle.fromJson(data)); 402 return _response.then((data) => new Circle.fromJson(data));
401 } 403 }
402 404
403 /** 405 /**
404 * Create a new circle for the authenticated user. 406 * Create a new circle for the authenticated user.
405 * 407 *
406 * [request] - The metadata request object. 408 * [request] - The metadata request object.
407 * 409 *
408 * Request parameters: 410 * Request parameters:
409 * 411 *
410 * [userId] - The ID of the user to create the circle on behalf of. The value 412 * [userId] - The ID of the user to create the circle on behalf of. The value
411 * "me" can be used to indicate the authenticated user. 413 * "me" can be used to indicate the authenticated user.
412 * 414 *
413 * Completes with a [Circle]. 415 * Completes with a [Circle].
414 * 416 *
415 * Completes with a [common.ApiRequestError] if the API endpoint returned an 417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
416 * error. 418 * error.
417 * 419 *
418 * If the used [http.Client] completes with an error when making a REST call, 420 * If the used [http.Client] completes with an error when making a REST call,
419 * this method will complete with the same error. 421 * this method will complete with the same error.
420 */ 422 */
421 async.Future<Circle> insert(Circle request, core.String userId) { 423 async.Future<Circle> insert(Circle request, core.String userId) {
422 var _url = null; 424 var _url = null;
423 var _queryParams = new core.Map(); 425 var _queryParams = new core.Map();
424 var _uploadMedia = null; 426 var _uploadMedia = null;
425 var _uploadOptions = null; 427 var _uploadOptions = null;
426 var _downloadOptions = common.DownloadOptions.Metadata; 428 var _downloadOptions = commons.DownloadOptions.Metadata;
427 var _body = null; 429 var _body = null;
428 430
429 if (request != null) { 431 if (request != null) {
430 _body = convert.JSON.encode((request).toJson()); 432 _body = convert.JSON.encode((request).toJson());
431 } 433 }
432 if (userId == null) { 434 if (userId == null) {
433 throw new core.ArgumentError("Parameter userId is required."); 435 throw new core.ArgumentError("Parameter userId is required.");
434 } 436 }
435 437
436 438
437 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/circ les'; 439 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles';
438 440
439 var _response = _requester.request(_url, 441 var _response = _requester.request(_url,
440 "POST", 442 "POST",
441 body: _body, 443 body: _body,
442 queryParams: _queryParams, 444 queryParams: _queryParams,
443 uploadOptions: _uploadOptions, 445 uploadOptions: _uploadOptions,
444 uploadMedia: _uploadMedia, 446 uploadMedia: _uploadMedia,
445 downloadOptions: _downloadOptions); 447 downloadOptions: _downloadOptions);
446 return _response.then((data) => new Circle.fromJson(data)); 448 return _response.then((data) => new Circle.fromJson(data));
447 } 449 }
(...skipping 10 matching lines...) Expand all
458 * which is used for paging. For any response, the actual number returned 460 * which is used for paging. For any response, the actual number returned
459 * might be less than the specified maxResults. 461 * might be less than the specified maxResults.
460 * Value must be between "1" and "100". 462 * Value must be between "1" and "100".
461 * 463 *
462 * [pageToken] - The continuation token, which is used to page through large 464 * [pageToken] - The continuation token, which is used to page through large
463 * result sets. To get the next page of results, set this parameter to the 465 * result sets. To get the next page of results, set this parameter to the
464 * value of "nextPageToken" from the previous response. 466 * value of "nextPageToken" from the previous response.
465 * 467 *
466 * Completes with a [CircleFeed]. 468 * Completes with a [CircleFeed].
467 * 469 *
468 * Completes with a [common.ApiRequestError] if the API endpoint returned an 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
469 * error. 471 * error.
470 * 472 *
471 * If the used [http.Client] completes with an error when making a REST call, 473 * If the used [http.Client] completes with an error when making a REST call,
472 * this method will complete with the same error. 474 * this method will complete with the same error.
473 */ 475 */
474 async.Future<CircleFeed> list(core.String userId, {core.int maxResults, core.S tring pageToken}) { 476 async.Future<CircleFeed> list(core.String userId, {core.int maxResults, core.S tring pageToken}) {
475 var _url = null; 477 var _url = null;
476 var _queryParams = new core.Map(); 478 var _queryParams = new core.Map();
477 var _uploadMedia = null; 479 var _uploadMedia = null;
478 var _uploadOptions = null; 480 var _uploadOptions = null;
479 var _downloadOptions = common.DownloadOptions.Metadata; 481 var _downloadOptions = commons.DownloadOptions.Metadata;
480 var _body = null; 482 var _body = null;
481 483
482 if (userId == null) { 484 if (userId == null) {
483 throw new core.ArgumentError("Parameter userId is required."); 485 throw new core.ArgumentError("Parameter userId is required.");
484 } 486 }
485 if (maxResults != null) { 487 if (maxResults != null) {
486 _queryParams["maxResults"] = ["${maxResults}"]; 488 _queryParams["maxResults"] = ["${maxResults}"];
487 } 489 }
488 if (pageToken != null) { 490 if (pageToken != null) {
489 _queryParams["pageToken"] = [pageToken]; 491 _queryParams["pageToken"] = [pageToken];
490 } 492 }
491 493
492 494
493 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/circ les'; 495 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/circles';
494 496
495 var _response = _requester.request(_url, 497 var _response = _requester.request(_url,
496 "GET", 498 "GET",
497 body: _body, 499 body: _body,
498 queryParams: _queryParams, 500 queryParams: _queryParams,
499 uploadOptions: _uploadOptions, 501 uploadOptions: _uploadOptions,
500 uploadMedia: _uploadMedia, 502 uploadMedia: _uploadMedia,
501 downloadOptions: _downloadOptions); 503 downloadOptions: _downloadOptions);
502 return _response.then((data) => new CircleFeed.fromJson(data)); 504 return _response.then((data) => new CircleFeed.fromJson(data));
503 } 505 }
504 506
505 /** 507 /**
506 * Update a circle's description. This method supports patch semantics. 508 * Update a circle's description. This method supports patch semantics.
507 * 509 *
508 * [request] - The metadata request object. 510 * [request] - The metadata request object.
509 * 511 *
510 * Request parameters: 512 * Request parameters:
511 * 513 *
512 * [circleId] - The ID of the circle to update. 514 * [circleId] - The ID of the circle to update.
513 * 515 *
514 * Completes with a [Circle]. 516 * Completes with a [Circle].
515 * 517 *
516 * Completes with a [common.ApiRequestError] if the API endpoint returned an 518 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
517 * error. 519 * error.
518 * 520 *
519 * If the used [http.Client] completes with an error when making a REST call, 521 * If the used [http.Client] completes with an error when making a REST call,
520 * this method will complete with the same error. 522 * this method will complete with the same error.
521 */ 523 */
522 async.Future<Circle> patch(Circle request, core.String circleId) { 524 async.Future<Circle> patch(Circle request, core.String circleId) {
523 var _url = null; 525 var _url = null;
524 var _queryParams = new core.Map(); 526 var _queryParams = new core.Map();
525 var _uploadMedia = null; 527 var _uploadMedia = null;
526 var _uploadOptions = null; 528 var _uploadOptions = null;
527 var _downloadOptions = common.DownloadOptions.Metadata; 529 var _downloadOptions = commons.DownloadOptions.Metadata;
528 var _body = null; 530 var _body = null;
529 531
530 if (request != null) { 532 if (request != null) {
531 _body = convert.JSON.encode((request).toJson()); 533 _body = convert.JSON.encode((request).toJson());
532 } 534 }
533 if (circleId == null) { 535 if (circleId == null) {
534 throw new core.ArgumentError("Parameter circleId is required."); 536 throw new core.ArgumentError("Parameter circleId is required.");
535 } 537 }
536 538
537 539
538 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId'); 540 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId');
539 541
540 var _response = _requester.request(_url, 542 var _response = _requester.request(_url,
541 "PATCH", 543 "PATCH",
542 body: _body, 544 body: _body,
543 queryParams: _queryParams, 545 queryParams: _queryParams,
544 uploadOptions: _uploadOptions, 546 uploadOptions: _uploadOptions,
545 uploadMedia: _uploadMedia, 547 uploadMedia: _uploadMedia,
546 downloadOptions: _downloadOptions); 548 downloadOptions: _downloadOptions);
547 return _response.then((data) => new Circle.fromJson(data)); 549 return _response.then((data) => new Circle.fromJson(data));
548 } 550 }
549 551
550 /** 552 /**
551 * Delete a circle. 553 * Delete a circle.
552 * 554 *
553 * Request parameters: 555 * Request parameters:
554 * 556 *
555 * [circleId] - The ID of the circle to delete. 557 * [circleId] - The ID of the circle to delete.
556 * 558 *
557 * Completes with a [common.ApiRequestError] if the API endpoint returned an 559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
558 * error. 560 * error.
559 * 561 *
560 * If the used [http.Client] completes with an error when making a REST call, 562 * If the used [http.Client] completes with an error when making a REST call,
561 * this method will complete with the same error. 563 * this method will complete with the same error.
562 */ 564 */
563 async.Future remove(core.String circleId) { 565 async.Future remove(core.String circleId) {
564 var _url = null; 566 var _url = null;
565 var _queryParams = new core.Map(); 567 var _queryParams = new core.Map();
566 var _uploadMedia = null; 568 var _uploadMedia = null;
567 var _uploadOptions = null; 569 var _uploadOptions = null;
568 var _downloadOptions = common.DownloadOptions.Metadata; 570 var _downloadOptions = commons.DownloadOptions.Metadata;
569 var _body = null; 571 var _body = null;
570 572
571 if (circleId == null) { 573 if (circleId == null) {
572 throw new core.ArgumentError("Parameter circleId is required."); 574 throw new core.ArgumentError("Parameter circleId is required.");
573 } 575 }
574 576
575 _downloadOptions = null; 577 _downloadOptions = null;
576 578
577 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId'); 579 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId');
578 580
579 var _response = _requester.request(_url, 581 var _response = _requester.request(_url,
580 "DELETE", 582 "DELETE",
581 body: _body, 583 body: _body,
582 queryParams: _queryParams, 584 queryParams: _queryParams,
583 uploadOptions: _uploadOptions, 585 uploadOptions: _uploadOptions,
584 uploadMedia: _uploadMedia, 586 uploadMedia: _uploadMedia,
585 downloadOptions: _downloadOptions); 587 downloadOptions: _downloadOptions);
586 return _response.then((data) => null); 588 return _response.then((data) => null);
587 } 589 }
588 590
589 /** 591 /**
590 * Remove a person from a circle. 592 * Remove a person from a circle.
591 * 593 *
592 * Request parameters: 594 * Request parameters:
593 * 595 *
594 * [circleId] - The ID of the circle to remove the person from. 596 * [circleId] - The ID of the circle to remove the person from.
595 * 597 *
596 * [email] - Email of the people to add to the circle. Optional, can be 598 * [email] - Email of the people to add to the circle. Optional, can be
597 * repeated. 599 * repeated.
598 * 600 *
599 * [userId] - IDs of the people to remove from the circle. Optional, can be 601 * [userId] - IDs of the people to remove from the circle. Optional, can be
600 * repeated. 602 * repeated.
601 * 603 *
602 * Completes with a [common.ApiRequestError] if the API endpoint returned an 604 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
603 * error. 605 * error.
604 * 606 *
605 * If the used [http.Client] completes with an error when making a REST call, 607 * If the used [http.Client] completes with an error when making a REST call,
606 * this method will complete with the same error. 608 * this method will complete with the same error.
607 */ 609 */
608 async.Future removePeople(core.String circleId, {core.List<core.String> email, core.List<core.String> userId}) { 610 async.Future removePeople(core.String circleId, {core.List<core.String> email, core.List<core.String> userId}) {
609 var _url = null; 611 var _url = null;
610 var _queryParams = new core.Map(); 612 var _queryParams = new core.Map();
611 var _uploadMedia = null; 613 var _uploadMedia = null;
612 var _uploadOptions = null; 614 var _uploadOptions = null;
613 var _downloadOptions = common.DownloadOptions.Metadata; 615 var _downloadOptions = commons.DownloadOptions.Metadata;
614 var _body = null; 616 var _body = null;
615 617
616 if (circleId == null) { 618 if (circleId == null) {
617 throw new core.ArgumentError("Parameter circleId is required."); 619 throw new core.ArgumentError("Parameter circleId is required.");
618 } 620 }
619 if (email != null) { 621 if (email != null) {
620 _queryParams["email"] = email; 622 _queryParams["email"] = email;
621 } 623 }
622 if (userId != null) { 624 if (userId != null) {
623 _queryParams["userId"] = userId; 625 _queryParams["userId"] = userId;
624 } 626 }
625 627
626 _downloadOptions = null; 628 _downloadOptions = null;
627 629
628 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople'; 630 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people';
629 631
630 var _response = _requester.request(_url, 632 var _response = _requester.request(_url,
631 "DELETE", 633 "DELETE",
632 body: _body, 634 body: _body,
633 queryParams: _queryParams, 635 queryParams: _queryParams,
634 uploadOptions: _uploadOptions, 636 uploadOptions: _uploadOptions,
635 uploadMedia: _uploadMedia, 637 uploadMedia: _uploadMedia,
636 downloadOptions: _downloadOptions); 638 downloadOptions: _downloadOptions);
637 return _response.then((data) => null); 639 return _response.then((data) => null);
638 } 640 }
639 641
640 /** 642 /**
641 * Update a circle's description. 643 * Update a circle's description.
642 * 644 *
643 * [request] - The metadata request object. 645 * [request] - The metadata request object.
644 * 646 *
645 * Request parameters: 647 * Request parameters:
646 * 648 *
647 * [circleId] - The ID of the circle to update. 649 * [circleId] - The ID of the circle to update.
648 * 650 *
649 * Completes with a [Circle]. 651 * Completes with a [Circle].
650 * 652 *
651 * Completes with a [common.ApiRequestError] if the API endpoint returned an 653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
652 * error. 654 * error.
653 * 655 *
654 * If the used [http.Client] completes with an error when making a REST call, 656 * If the used [http.Client] completes with an error when making a REST call,
655 * this method will complete with the same error. 657 * this method will complete with the same error.
656 */ 658 */
657 async.Future<Circle> update(Circle request, core.String circleId) { 659 async.Future<Circle> update(Circle request, core.String circleId) {
658 var _url = null; 660 var _url = null;
659 var _queryParams = new core.Map(); 661 var _queryParams = new core.Map();
660 var _uploadMedia = null; 662 var _uploadMedia = null;
661 var _uploadOptions = null; 663 var _uploadOptions = null;
662 var _downloadOptions = common.DownloadOptions.Metadata; 664 var _downloadOptions = commons.DownloadOptions.Metadata;
663 var _body = null; 665 var _body = null;
664 666
665 if (request != null) { 667 if (request != null) {
666 _body = convert.JSON.encode((request).toJson()); 668 _body = convert.JSON.encode((request).toJson());
667 } 669 }
668 if (circleId == null) { 670 if (circleId == null) {
669 throw new core.ArgumentError("Parameter circleId is required."); 671 throw new core.ArgumentError("Parameter circleId is required.");
670 } 672 }
671 673
672 674
673 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId'); 675 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId');
674 676
675 var _response = _requester.request(_url, 677 var _response = _requester.request(_url,
676 "PUT", 678 "PUT",
677 body: _body, 679 body: _body,
678 queryParams: _queryParams, 680 queryParams: _queryParams,
679 uploadOptions: _uploadOptions, 681 uploadOptions: _uploadOptions,
680 uploadMedia: _uploadMedia, 682 uploadMedia: _uploadMedia,
681 downloadOptions: _downloadOptions); 683 downloadOptions: _downloadOptions);
682 return _response.then((data) => new Circle.fromJson(data)); 684 return _response.then((data) => new Circle.fromJson(data));
683 } 685 }
684 686
685 } 687 }
686 688
687 689
688 /** Not documented yet. */
689 class CommentsResourceApi { 690 class CommentsResourceApi {
690 final common_internal.ApiRequester _requester; 691 final commons.ApiRequester _requester;
691 692
692 CommentsResourceApi(common_internal.ApiRequester client) : 693 CommentsResourceApi(commons.ApiRequester client) :
693 _requester = client; 694 _requester = client;
694 695
695 /** 696 /**
696 * Get a comment. 697 * Get a comment.
697 * 698 *
698 * Request parameters: 699 * Request parameters:
699 * 700 *
700 * [commentId] - The ID of the comment to get. 701 * [commentId] - The ID of the comment to get.
701 * 702 *
702 * Completes with a [Comment]. 703 * Completes with a [Comment].
703 * 704 *
704 * Completes with a [common.ApiRequestError] if the API endpoint returned an 705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
705 * error. 706 * error.
706 * 707 *
707 * If the used [http.Client] completes with an error when making a REST call, 708 * If the used [http.Client] completes with an error when making a REST call,
708 * this method will complete with the same error. 709 * this method will complete with the same error.
709 */ 710 */
710 async.Future<Comment> get(core.String commentId) { 711 async.Future<Comment> get(core.String commentId) {
711 var _url = null; 712 var _url = null;
712 var _queryParams = new core.Map(); 713 var _queryParams = new core.Map();
713 var _uploadMedia = null; 714 var _uploadMedia = null;
714 var _uploadOptions = null; 715 var _uploadOptions = null;
715 var _downloadOptions = common.DownloadOptions.Metadata; 716 var _downloadOptions = commons.DownloadOptions.Metadata;
716 var _body = null; 717 var _body = null;
717 718
718 if (commentId == null) { 719 if (commentId == null) {
719 throw new core.ArgumentError("Parameter commentId is required."); 720 throw new core.ArgumentError("Parameter commentId is required.");
720 } 721 }
721 722
722 723
723 _url = 'comments/' + common_internal.Escaper.ecapeVariable('$commentId'); 724 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId');
724 725
725 var _response = _requester.request(_url, 726 var _response = _requester.request(_url,
726 "GET", 727 "GET",
727 body: _body, 728 body: _body,
728 queryParams: _queryParams, 729 queryParams: _queryParams,
729 uploadOptions: _uploadOptions, 730 uploadOptions: _uploadOptions,
730 uploadMedia: _uploadMedia, 731 uploadMedia: _uploadMedia,
731 downloadOptions: _downloadOptions); 732 downloadOptions: _downloadOptions);
732 return _response.then((data) => new Comment.fromJson(data)); 733 return _response.then((data) => new Comment.fromJson(data));
733 } 734 }
734 735
735 /** 736 /**
736 * Create a new comment in reply to an activity. 737 * Create a new comment in reply to an activity.
737 * 738 *
738 * [request] - The metadata request object. 739 * [request] - The metadata request object.
739 * 740 *
740 * Request parameters: 741 * Request parameters:
741 * 742 *
742 * [activityId] - The ID of the activity to reply to. 743 * [activityId] - The ID of the activity to reply to.
743 * 744 *
744 * Completes with a [Comment]. 745 * Completes with a [Comment].
745 * 746 *
746 * Completes with a [common.ApiRequestError] if the API endpoint returned an 747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
747 * error. 748 * error.
748 * 749 *
749 * If the used [http.Client] completes with an error when making a REST call, 750 * If the used [http.Client] completes with an error when making a REST call,
750 * this method will complete with the same error. 751 * this method will complete with the same error.
751 */ 752 */
752 async.Future<Comment> insert(Comment request, core.String activityId) { 753 async.Future<Comment> insert(Comment request, core.String activityId) {
753 var _url = null; 754 var _url = null;
754 var _queryParams = new core.Map(); 755 var _queryParams = new core.Map();
755 var _uploadMedia = null; 756 var _uploadMedia = null;
756 var _uploadOptions = null; 757 var _uploadOptions = null;
757 var _downloadOptions = common.DownloadOptions.Metadata; 758 var _downloadOptions = commons.DownloadOptions.Metadata;
758 var _body = null; 759 var _body = null;
759 760
760 if (request != null) { 761 if (request != null) {
761 _body = convert.JSON.encode((request).toJson()); 762 _body = convert.JSON.encode((request).toJson());
762 } 763 }
763 if (activityId == null) { 764 if (activityId == null) {
764 throw new core.ArgumentError("Parameter activityId is required."); 765 throw new core.ArgumentError("Parameter activityId is required.");
765 } 766 }
766 767
767 768
768 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/comments'; 769 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm ents';
769 770
770 var _response = _requester.request(_url, 771 var _response = _requester.request(_url,
771 "POST", 772 "POST",
772 body: _body, 773 body: _body,
773 queryParams: _queryParams, 774 queryParams: _queryParams,
774 uploadOptions: _uploadOptions, 775 uploadOptions: _uploadOptions,
775 uploadMedia: _uploadMedia, 776 uploadMedia: _uploadMedia,
776 downloadOptions: _downloadOptions); 777 downloadOptions: _downloadOptions);
777 return _response.then((data) => new Comment.fromJson(data)); 778 return _response.then((data) => new Comment.fromJson(data));
778 } 779 }
(...skipping 14 matching lines...) Expand all
793 * result sets. To get the next page of results, set this parameter to the 794 * result sets. To get the next page of results, set this parameter to the
794 * value of "nextPageToken" from the previous response. 795 * value of "nextPageToken" from the previous response.
795 * 796 *
796 * [sortOrder] - The order in which to sort the list of comments. 797 * [sortOrder] - The order in which to sort the list of comments.
797 * Possible string values are: 798 * Possible string values are:
798 * - "ascending" : Sort oldest comments first. 799 * - "ascending" : Sort oldest comments first.
799 * - "descending" : Sort newest comments first. 800 * - "descending" : Sort newest comments first.
800 * 801 *
801 * Completes with a [CommentFeed]. 802 * Completes with a [CommentFeed].
802 * 803 *
803 * Completes with a [common.ApiRequestError] if the API endpoint returned an 804 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
804 * error. 805 * error.
805 * 806 *
806 * If the used [http.Client] completes with an error when making a REST call, 807 * If the used [http.Client] completes with an error when making a REST call,
807 * this method will complete with the same error. 808 * this method will complete with the same error.
808 */ 809 */
809 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c ore.String pageToken, core.String sortOrder}) { 810 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c ore.String pageToken, core.String sortOrder}) {
810 var _url = null; 811 var _url = null;
811 var _queryParams = new core.Map(); 812 var _queryParams = new core.Map();
812 var _uploadMedia = null; 813 var _uploadMedia = null;
813 var _uploadOptions = null; 814 var _uploadOptions = null;
814 var _downloadOptions = common.DownloadOptions.Metadata; 815 var _downloadOptions = commons.DownloadOptions.Metadata;
815 var _body = null; 816 var _body = null;
816 817
817 if (activityId == null) { 818 if (activityId == null) {
818 throw new core.ArgumentError("Parameter activityId is required."); 819 throw new core.ArgumentError("Parameter activityId is required.");
819 } 820 }
820 if (maxResults != null) { 821 if (maxResults != null) {
821 _queryParams["maxResults"] = ["${maxResults}"]; 822 _queryParams["maxResults"] = ["${maxResults}"];
822 } 823 }
823 if (pageToken != null) { 824 if (pageToken != null) {
824 _queryParams["pageToken"] = [pageToken]; 825 _queryParams["pageToken"] = [pageToken];
825 } 826 }
826 if (sortOrder != null) { 827 if (sortOrder != null) {
827 _queryParams["sortOrder"] = [sortOrder]; 828 _queryParams["sortOrder"] = [sortOrder];
828 } 829 }
829 830
830 831
831 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/comments'; 832 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm ents';
832 833
833 var _response = _requester.request(_url, 834 var _response = _requester.request(_url,
834 "GET", 835 "GET",
835 body: _body, 836 body: _body,
836 queryParams: _queryParams, 837 queryParams: _queryParams,
837 uploadOptions: _uploadOptions, 838 uploadOptions: _uploadOptions,
838 uploadMedia: _uploadMedia, 839 uploadMedia: _uploadMedia,
839 downloadOptions: _downloadOptions); 840 downloadOptions: _downloadOptions);
840 return _response.then((data) => new CommentFeed.fromJson(data)); 841 return _response.then((data) => new CommentFeed.fromJson(data));
841 } 842 }
842 843
843 } 844 }
844 845
845 846
846 /** Not documented yet. */
847 class MediaResourceApi { 847 class MediaResourceApi {
848 final common_internal.ApiRequester _requester; 848 final commons.ApiRequester _requester;
849 849
850 MediaResourceApi(common_internal.ApiRequester client) : 850 MediaResourceApi(commons.ApiRequester client) :
851 _requester = client; 851 _requester = client;
852 852
853 /** 853 /**
854 * Add a new media item to an album. The current upload size limitations are 854 * Add a new media item to an album. The current upload size limitations are
855 * 36MB for a photo and 1GB for a video. Uploads do not count against quota if 855 * 36MB for a photo and 1GB for a video. Uploads do not count against quota if
856 * photos are less than 2048 pixels on their longest side or videos are less 856 * photos are less than 2048 pixels on their longest side or videos are less
857 * than 15 minutes in length. 857 * than 15 minutes in length.
858 * 858 *
859 * [request] - The metadata request object. 859 * [request] - The metadata request object.
860 * 860 *
861 * Request parameters: 861 * Request parameters:
862 * 862 *
863 * [userId] - The ID of the user to create the activity on behalf of. 863 * [userId] - The ID of the user to create the activity on behalf of.
864 * 864 *
865 * [collection] - null 865 * [collection] - null
866 * Possible string values are: 866 * Possible string values are:
867 * - "cloud" : Upload the media to share on Google+. 867 * - "cloud" : Upload the media to share on Google+.
868 * 868 *
869 * [uploadMedia] - The media to upload. 869 * [uploadMedia] - The media to upload.
870 * 870 *
871 * [uploadOptions] - Options for the media upload. Streaming Media without the 871 * [uploadOptions] - Options for the media upload. Streaming Media without the
872 * length being known ahead of time is only supported via resumable uploads. 872 * length being known ahead of time is only supported via resumable uploads.
873 * 873 *
874 * Completes with a [Media]. 874 * Completes with a [Media].
875 * 875 *
876 * Completes with a [common.ApiRequestError] if the API endpoint returned an 876 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
877 * error. 877 * error.
878 * 878 *
879 * If the used [http.Client] completes with an error when making a REST call, 879 * If the used [http.Client] completes with an error when making a REST call,
880 * this method will complete with the same error. 880 * this method will complete with the same error.
881 */ 881 */
882 async.Future<Media> insert(Media request, core.String userId, core.String coll ection, {common.UploadOptions uploadOptions : common.UploadOptions.Default, comm on.Media uploadMedia}) { 882 async.Future<Media> insert(Media request, core.String userId, core.String coll ection, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, co mmons.Media uploadMedia}) {
883 var _url = null; 883 var _url = null;
884 var _queryParams = new core.Map(); 884 var _queryParams = new core.Map();
885 var _uploadMedia = null; 885 var _uploadMedia = null;
886 var _uploadOptions = null; 886 var _uploadOptions = null;
887 var _downloadOptions = common.DownloadOptions.Metadata; 887 var _downloadOptions = commons.DownloadOptions.Metadata;
888 var _body = null; 888 var _body = null;
889 889
890 if (request != null) { 890 if (request != null) {
891 _body = convert.JSON.encode((request).toJson()); 891 _body = convert.JSON.encode((request).toJson());
892 } 892 }
893 if (userId == null) { 893 if (userId == null) {
894 throw new core.ArgumentError("Parameter userId is required."); 894 throw new core.ArgumentError("Parameter userId is required.");
895 } 895 }
896 if (collection == null) { 896 if (collection == null) {
897 throw new core.ArgumentError("Parameter collection is required."); 897 throw new core.ArgumentError("Parameter collection is required.");
898 } 898 }
899 899
900 _uploadMedia = uploadMedia; 900 _uploadMedia = uploadMedia;
901 _uploadOptions = uploadOptions; 901 _uploadOptions = uploadOptions;
902 902
903 if (_uploadMedia == null) { 903 if (_uploadMedia == null) {
904 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/me dia/' + common_internal.Escaper.ecapeVariable('$collection'); 904 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/media/' + commons.Escaper.ecapeVariable('$collection');
905 } else if (_uploadOptions is common.ResumableUploadOptions) { 905 } else if (_uploadOptions is commons.ResumableUploadOptions) {
906 _url = '/resumable/upload/plusDomains/v1/people/' + common_internal.Escape r.ecapeVariable('$userId') + '/media/' + common_internal.Escaper.ecapeVariable(' $collection'); 906 _url = '/resumable/upload/plusDomains/v1/people/' + commons.Escaper.ecapeV ariable('$userId') + '/media/' + commons.Escaper.ecapeVariable('$collection');
907 } else { 907 } else {
908 _url = '/upload/plusDomains/v1/people/' + common_internal.Escaper.ecapeVar iable('$userId') + '/media/' + common_internal.Escaper.ecapeVariable('$collectio n'); 908 _url = '/upload/plusDomains/v1/people/' + commons.Escaper.ecapeVariable('$ userId') + '/media/' + commons.Escaper.ecapeVariable('$collection');
909 } 909 }
910 910
911 911
912 var _response = _requester.request(_url, 912 var _response = _requester.request(_url,
913 "POST", 913 "POST",
914 body: _body, 914 body: _body,
915 queryParams: _queryParams, 915 queryParams: _queryParams,
916 uploadOptions: _uploadOptions, 916 uploadOptions: _uploadOptions,
917 uploadMedia: _uploadMedia, 917 uploadMedia: _uploadMedia,
918 downloadOptions: _downloadOptions); 918 downloadOptions: _downloadOptions);
919 return _response.then((data) => new Media.fromJson(data)); 919 return _response.then((data) => new Media.fromJson(data));
920 } 920 }
921 921
922 } 922 }
923 923
924 924
925 /** Not documented yet. */
926 class PeopleResourceApi { 925 class PeopleResourceApi {
927 final common_internal.ApiRequester _requester; 926 final commons.ApiRequester _requester;
928 927
929 PeopleResourceApi(common_internal.ApiRequester client) : 928 PeopleResourceApi(commons.ApiRequester client) :
930 _requester = client; 929 _requester = client;
931 930
932 /** 931 /**
933 * Get a person's profile. 932 * Get a person's profile.
934 * 933 *
935 * Request parameters: 934 * Request parameters:
936 * 935 *
937 * [userId] - The ID of the person to get the profile for. The special value 936 * [userId] - The ID of the person to get the profile for. The special value
938 * "me" can be used to indicate the authenticated user. 937 * "me" can be used to indicate the authenticated user.
939 * 938 *
940 * Completes with a [Person]. 939 * Completes with a [Person].
941 * 940 *
942 * Completes with a [common.ApiRequestError] if the API endpoint returned an 941 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
943 * error. 942 * error.
944 * 943 *
945 * If the used [http.Client] completes with an error when making a REST call, 944 * If the used [http.Client] completes with an error when making a REST call,
946 * this method will complete with the same error. 945 * this method will complete with the same error.
947 */ 946 */
948 async.Future<Person> get(core.String userId) { 947 async.Future<Person> get(core.String userId) {
949 var _url = null; 948 var _url = null;
950 var _queryParams = new core.Map(); 949 var _queryParams = new core.Map();
951 var _uploadMedia = null; 950 var _uploadMedia = null;
952 var _uploadOptions = null; 951 var _uploadOptions = null;
953 var _downloadOptions = common.DownloadOptions.Metadata; 952 var _downloadOptions = commons.DownloadOptions.Metadata;
954 var _body = null; 953 var _body = null;
955 954
956 if (userId == null) { 955 if (userId == null) {
957 throw new core.ArgumentError("Parameter userId is required."); 956 throw new core.ArgumentError("Parameter userId is required.");
958 } 957 }
959 958
960 959
961 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId'); 960 _url = 'people/' + commons.Escaper.ecapeVariable('$userId');
962 961
963 var _response = _requester.request(_url, 962 var _response = _requester.request(_url,
964 "GET", 963 "GET",
965 body: _body, 964 body: _body,
966 queryParams: _queryParams, 965 queryParams: _queryParams,
967 uploadOptions: _uploadOptions, 966 uploadOptions: _uploadOptions,
968 uploadMedia: _uploadMedia, 967 uploadMedia: _uploadMedia,
969 downloadOptions: _downloadOptions); 968 downloadOptions: _downloadOptions);
970 return _response.then((data) => new Person.fromJson(data)); 969 return _response.then((data) => new Person.fromJson(data));
971 } 970 }
(...skipping 20 matching lines...) Expand all
992 * Possible string values are: 991 * Possible string values are:
993 * - "alphabetical" : Order the people by their display name. 992 * - "alphabetical" : Order the people by their display name.
994 * - "best" : Order people based on the relevence to the viewer. 993 * - "best" : Order people based on the relevence to the viewer.
995 * 994 *
996 * [pageToken] - The continuation token, which is used to page through large 995 * [pageToken] - The continuation token, which is used to page through large
997 * result sets. To get the next page of results, set this parameter to the 996 * result sets. To get the next page of results, set this parameter to the
998 * value of "nextPageToken" from the previous response. 997 * value of "nextPageToken" from the previous response.
999 * 998 *
1000 * Completes with a [PeopleFeed]. 999 * Completes with a [PeopleFeed].
1001 * 1000 *
1002 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1003 * error. 1002 * error.
1004 * 1003 *
1005 * If the used [http.Client] completes with an error when making a REST call, 1004 * If the used [http.Client] completes with an error when making a REST call,
1006 * this method will complete with the same error. 1005 * this method will complete with the same error.
1007 */ 1006 */
1008 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor e.int maxResults, core.String orderBy, core.String pageToken}) { 1007 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor e.int maxResults, core.String orderBy, core.String pageToken}) {
1009 var _url = null; 1008 var _url = null;
1010 var _queryParams = new core.Map(); 1009 var _queryParams = new core.Map();
1011 var _uploadMedia = null; 1010 var _uploadMedia = null;
1012 var _uploadOptions = null; 1011 var _uploadOptions = null;
1013 var _downloadOptions = common.DownloadOptions.Metadata; 1012 var _downloadOptions = commons.DownloadOptions.Metadata;
1014 var _body = null; 1013 var _body = null;
1015 1014
1016 if (userId == null) { 1015 if (userId == null) {
1017 throw new core.ArgumentError("Parameter userId is required."); 1016 throw new core.ArgumentError("Parameter userId is required.");
1018 } 1017 }
1019 if (collection == null) { 1018 if (collection == null) {
1020 throw new core.ArgumentError("Parameter collection is required."); 1019 throw new core.ArgumentError("Parameter collection is required.");
1021 } 1020 }
1022 if (maxResults != null) { 1021 if (maxResults != null) {
1023 _queryParams["maxResults"] = ["${maxResults}"]; 1022 _queryParams["maxResults"] = ["${maxResults}"];
1024 } 1023 }
1025 if (orderBy != null) { 1024 if (orderBy != null) {
1026 _queryParams["orderBy"] = [orderBy]; 1025 _queryParams["orderBy"] = [orderBy];
1027 } 1026 }
1028 if (pageToken != null) { 1027 if (pageToken != null) {
1029 _queryParams["pageToken"] = [pageToken]; 1028 _queryParams["pageToken"] = [pageToken];
1030 } 1029 }
1031 1030
1032 1031
1033 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/peop le/' + common_internal.Escaper.ecapeVariable('$collection'); 1032 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/people/' + c ommons.Escaper.ecapeVariable('$collection');
1034 1033
1035 var _response = _requester.request(_url, 1034 var _response = _requester.request(_url,
1036 "GET", 1035 "GET",
1037 body: _body, 1036 body: _body,
1038 queryParams: _queryParams, 1037 queryParams: _queryParams,
1039 uploadOptions: _uploadOptions, 1038 uploadOptions: _uploadOptions,
1040 uploadMedia: _uploadMedia, 1039 uploadMedia: _uploadMedia,
1041 downloadOptions: _downloadOptions); 1040 downloadOptions: _downloadOptions);
1042 return _response.then((data) => new PeopleFeed.fromJson(data)); 1041 return _response.then((data) => new PeopleFeed.fromJson(data));
1043 } 1042 }
(...skipping 16 matching lines...) Expand all
1060 * which is used for paging. For any response, the actual number returned 1059 * which is used for paging. For any response, the actual number returned
1061 * might be less than the specified maxResults. 1060 * might be less than the specified maxResults.
1062 * Value must be between "1" and "100". 1061 * Value must be between "1" and "100".
1063 * 1062 *
1064 * [pageToken] - The continuation token, which is used to page through large 1063 * [pageToken] - The continuation token, which is used to page through large
1065 * result sets. To get the next page of results, set this parameter to the 1064 * result sets. To get the next page of results, set this parameter to the
1066 * value of "nextPageToken" from the previous response. 1065 * value of "nextPageToken" from the previous response.
1067 * 1066 *
1068 * Completes with a [PeopleFeed]. 1067 * Completes with a [PeopleFeed].
1069 * 1068 *
1070 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1069 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1071 * error. 1070 * error.
1072 * 1071 *
1073 * If the used [http.Client] completes with an error when making a REST call, 1072 * If the used [http.Client] completes with an error when making a REST call,
1074 * this method will complete with the same error. 1073 * this method will complete with the same error.
1075 */ 1074 */
1076 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co llection, {core.int maxResults, core.String pageToken}) { 1075 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co llection, {core.int maxResults, core.String pageToken}) {
1077 var _url = null; 1076 var _url = null;
1078 var _queryParams = new core.Map(); 1077 var _queryParams = new core.Map();
1079 var _uploadMedia = null; 1078 var _uploadMedia = null;
1080 var _uploadOptions = null; 1079 var _uploadOptions = null;
1081 var _downloadOptions = common.DownloadOptions.Metadata; 1080 var _downloadOptions = commons.DownloadOptions.Metadata;
1082 var _body = null; 1081 var _body = null;
1083 1082
1084 if (activityId == null) { 1083 if (activityId == null) {
1085 throw new core.ArgumentError("Parameter activityId is required."); 1084 throw new core.ArgumentError("Parameter activityId is required.");
1086 } 1085 }
1087 if (collection == null) { 1086 if (collection == null) {
1088 throw new core.ArgumentError("Parameter collection is required."); 1087 throw new core.ArgumentError("Parameter collection is required.");
1089 } 1088 }
1090 if (maxResults != null) { 1089 if (maxResults != null) {
1091 _queryParams["maxResults"] = ["${maxResults}"]; 1090 _queryParams["maxResults"] = ["${maxResults}"];
1092 } 1091 }
1093 if (pageToken != null) { 1092 if (pageToken != null) {
1094 _queryParams["pageToken"] = [pageToken]; 1093 _queryParams["pageToken"] = [pageToken];
1095 } 1094 }
1096 1095
1097 1096
1098 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/people/' + common_internal.Escaper.ecapeVariable('$collection'); 1097 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/peop le/' + commons.Escaper.ecapeVariable('$collection');
1099 1098
1100 var _response = _requester.request(_url, 1099 var _response = _requester.request(_url,
1101 "GET", 1100 "GET",
1102 body: _body, 1101 body: _body,
1103 queryParams: _queryParams, 1102 queryParams: _queryParams,
1104 uploadOptions: _uploadOptions, 1103 uploadOptions: _uploadOptions,
1105 uploadMedia: _uploadMedia, 1104 uploadMedia: _uploadMedia,
1106 downloadOptions: _downloadOptions); 1105 downloadOptions: _downloadOptions);
1107 return _response.then((data) => new PeopleFeed.fromJson(data)); 1106 return _response.then((data) => new PeopleFeed.fromJson(data));
1108 } 1107 }
1109 1108
1110 /** 1109 /**
1111 * List all of the people who are members of a circle. 1110 * List all of the people who are members of a circle.
1112 * 1111 *
1113 * Request parameters: 1112 * Request parameters:
1114 * 1113 *
1115 * [circleId] - The ID of the circle to get the members of. 1114 * [circleId] - The ID of the circle to get the members of.
1116 * 1115 *
1117 * [maxResults] - The maximum number of people to include in the response, 1116 * [maxResults] - The maximum number of people to include in the response,
1118 * which is used for paging. For any response, the actual number returned 1117 * which is used for paging. For any response, the actual number returned
1119 * might be less than the specified maxResults. 1118 * might be less than the specified maxResults.
1120 * Value must be between "1" and "100". 1119 * Value must be between "1" and "100".
1121 * 1120 *
1122 * [pageToken] - The continuation token, which is used to page through large 1121 * [pageToken] - The continuation token, which is used to page through large
1123 * result sets. To get the next page of results, set this parameter to the 1122 * result sets. To get the next page of results, set this parameter to the
1124 * value of "nextPageToken" from the previous response. 1123 * value of "nextPageToken" from the previous response.
1125 * 1124 *
1126 * Completes with a [PeopleFeed]. 1125 * Completes with a [PeopleFeed].
1127 * 1126 *
1128 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1127 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1129 * error. 1128 * error.
1130 * 1129 *
1131 * If the used [http.Client] completes with an error when making a REST call, 1130 * If the used [http.Client] completes with an error when making a REST call,
1132 * this method will complete with the same error. 1131 * this method will complete with the same error.
1133 */ 1132 */
1134 async.Future<PeopleFeed> listByCircle(core.String circleId, {core.int maxResul ts, core.String pageToken}) { 1133 async.Future<PeopleFeed> listByCircle(core.String circleId, {core.int maxResul ts, core.String pageToken}) {
1135 var _url = null; 1134 var _url = null;
1136 var _queryParams = new core.Map(); 1135 var _queryParams = new core.Map();
1137 var _uploadMedia = null; 1136 var _uploadMedia = null;
1138 var _uploadOptions = null; 1137 var _uploadOptions = null;
1139 var _downloadOptions = common.DownloadOptions.Metadata; 1138 var _downloadOptions = commons.DownloadOptions.Metadata;
1140 var _body = null; 1139 var _body = null;
1141 1140
1142 if (circleId == null) { 1141 if (circleId == null) {
1143 throw new core.ArgumentError("Parameter circleId is required."); 1142 throw new core.ArgumentError("Parameter circleId is required.");
1144 } 1143 }
1145 if (maxResults != null) { 1144 if (maxResults != null) {
1146 _queryParams["maxResults"] = ["${maxResults}"]; 1145 _queryParams["maxResults"] = ["${maxResults}"];
1147 } 1146 }
1148 if (pageToken != null) { 1147 if (pageToken != null) {
1149 _queryParams["pageToken"] = [pageToken]; 1148 _queryParams["pageToken"] = [pageToken];
1150 } 1149 }
1151 1150
1152 1151
1153 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople'; 1152 _url = 'circles/' + commons.Escaper.ecapeVariable('$circleId') + '/people';
1154 1153
1155 var _response = _requester.request(_url, 1154 var _response = _requester.request(_url,
1156 "GET", 1155 "GET",
1157 body: _body, 1156 body: _body,
1158 queryParams: _queryParams, 1157 queryParams: _queryParams,
1159 uploadOptions: _uploadOptions, 1158 uploadOptions: _uploadOptions,
1160 uploadMedia: _uploadMedia, 1159 uploadMedia: _uploadMedia,
1161 downloadOptions: _downloadOptions); 1160 downloadOptions: _downloadOptions);
1162 return _response.then((data) => new PeopleFeed.fromJson(data)); 1161 return _response.then((data) => new PeopleFeed.fromJson(data));
1163 } 1162 }
1164 1163
1165 } 1164 }
1166 1165
1167 1166
1168 1167
1169 /** Not documented yet. */
1170 class Acl { 1168 class Acl {
1171 /** Description of the access granted, suitable for display. */ 1169 /** Description of the access granted, suitable for display. */
1172 core.String description; 1170 core.String description;
1173 1171
1174 /** Whether access is restricted to the domain. */ 1172 /** Whether access is restricted to the domain. */
1175 core.bool domainRestricted; 1173 core.bool domainRestricted;
1176 1174
1177 /** The list of access entries. */ 1175 /** The list of access entries. */
1178 core.List<PlusDomainsAclentryResource> items; 1176 core.List<PlusDomainsAclentryResource> items;
1179 1177
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 _json["url"] = url; 1545 _json["url"] = url;
1548 } 1546 }
1549 if (width != null) { 1547 if (width != null) {
1550 _json["width"] = width; 1548 _json["width"] = width;
1551 } 1549 }
1552 return _json; 1550 return _json;
1553 } 1551 }
1554 } 1552 }
1555 1553
1556 1554
1557 /** Not documented yet. */
1558 class ActivityObjectAttachmentsPreviewThumbnails { 1555 class ActivityObjectAttachmentsPreviewThumbnails {
1559 /** URL of the thumbnail image. */ 1556 /** URL of the thumbnail image. */
1560 core.String url; 1557 core.String url;
1561 1558
1562 1559
1563 ActivityObjectAttachmentsPreviewThumbnails(); 1560 ActivityObjectAttachmentsPreviewThumbnails();
1564 1561
1565 ActivityObjectAttachmentsPreviewThumbnails.fromJson(core.Map _json) { 1562 ActivityObjectAttachmentsPreviewThumbnails.fromJson(core.Map _json) {
1566 if (_json.containsKey("url")) { 1563 if (_json.containsKey("url")) {
1567 url = _json["url"]; 1564 url = _json["url"];
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 _json["url"] = url; 1619 _json["url"] = url;
1623 } 1620 }
1624 if (width != null) { 1621 if (width != null) {
1625 _json["width"] = width; 1622 _json["width"] = width;
1626 } 1623 }
1627 return _json; 1624 return _json;
1628 } 1625 }
1629 } 1626 }
1630 1627
1631 1628
1632 /** Not documented yet. */
1633 class ActivityObjectAttachmentsThumbnails { 1629 class ActivityObjectAttachmentsThumbnails {
1634 /** Potential name of the thumbnail. */ 1630 /** Potential name of the thumbnail. */
1635 core.String description; 1631 core.String description;
1636 1632
1637 /** Image resource. */ 1633 /** Image resource. */
1638 ActivityObjectAttachmentsThumbnailsImage image; 1634 ActivityObjectAttachmentsThumbnailsImage image;
1639 1635
1640 /** URL of the webpage containing the image. */ 1636 /** URL of the webpage containing the image. */
1641 core.String url; 1637 core.String url;
1642 1638
(...skipping 21 matching lines...) Expand all
1664 _json["image"] = (image).toJson(); 1660 _json["image"] = (image).toJson();
1665 } 1661 }
1666 if (url != null) { 1662 if (url != null) {
1667 _json["url"] = url; 1663 _json["url"] = url;
1668 } 1664 }
1669 return _json; 1665 return _json;
1670 } 1666 }
1671 } 1667 }
1672 1668
1673 1669
1674 /** Not documented yet. */
1675 class ActivityObjectAttachments { 1670 class ActivityObjectAttachments {
1676 /** 1671 /**
1677 * If the attachment is an article, this property contains a snippet of text 1672 * If the attachment is an article, this property contains a snippet of text
1678 * from the article. It can also include descriptions for other types. 1673 * from the article. It can also include descriptions for other types.
1679 */ 1674 */
1680 core.String content; 1675 core.String content;
1681 1676
1682 /** 1677 /**
1683 * The title of the attachment, such as a photo caption or an article title. 1678 * The title of the attachment, such as a photo caption or an article title.
1684 */ 1679 */
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 core.Map toJson() { 2096 core.Map toJson() {
2102 var _json = new core.Map(); 2097 var _json = new core.Map();
2103 if (title != null) { 2098 if (title != null) {
2104 _json["title"] = title; 2099 _json["title"] = title;
2105 } 2100 }
2106 return _json; 2101 return _json;
2107 } 2102 }
2108 } 2103 }
2109 2104
2110 2105
2111 /** Not documented yet. */
2112 class Activity { 2106 class Activity {
2113 /** Identifies who has access to see this activity. */ 2107 /** Identifies who has access to see this activity. */
2114 Acl access; 2108 Acl access;
2115 2109
2116 /** The person who performed this activity. */ 2110 /** The person who performed this activity. */
2117 ActivityActor actor; 2111 ActivityActor actor;
2118 2112
2119 /** Street address where this activity occurred. */ 2113 /** Street address where this activity occurred. */
2120 core.String address; 2114 core.String address;
2121 2115
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 _json["url"] = url; 2313 _json["url"] = url;
2320 } 2314 }
2321 if (verb != null) { 2315 if (verb != null) {
2322 _json["verb"] = verb; 2316 _json["verb"] = verb;
2323 } 2317 }
2324 return _json; 2318 return _json;
2325 } 2319 }
2326 } 2320 }
2327 2321
2328 2322
2329 /** Not documented yet. */
2330 class ActivityFeed { 2323 class ActivityFeed {
2331 /** ETag of this response for caching purposes. */ 2324 /** ETag of this response for caching purposes. */
2332 core.String etag; 2325 core.String etag;
2333 2326
2334 /** The ID of this collection of activities. Deprecated. */ 2327 /** The ID of this collection of activities. Deprecated. */
2335 core.String id; 2328 core.String id;
2336 2329
2337 /** The activities in this page of results. */ 2330 /** The activities in this page of results. */
2338 core.List<Activity> items; 2331 core.List<Activity> items;
2339 2332
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 _json["title"] = title; 2421 _json["title"] = title;
2429 } 2422 }
2430 if (updated != null) { 2423 if (updated != null) {
2431 _json["updated"] = (updated).toIso8601String(); 2424 _json["updated"] = (updated).toIso8601String();
2432 } 2425 }
2433 return _json; 2426 return _json;
2434 } 2427 }
2435 } 2428 }
2436 2429
2437 2430
2438 /** Not documented yet. */
2439 class Audience { 2431 class Audience {
2440 /** ETag of this response for caching purposes. */ 2432 /** ETag of this response for caching purposes. */
2441 core.String etag; 2433 core.String etag;
2442 2434
2443 /** The access control list entry. */ 2435 /** The access control list entry. */
2444 PlusDomainsAclentryResource item; 2436 PlusDomainsAclentryResource item;
2445 2437
2446 /** Identifies this resource as an audience. Value: "plus#audience". */ 2438 /** Identifies this resource as an audience. Value: "plus#audience". */
2447 core.String kind; 2439 core.String kind;
2448 2440
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2498 _json["memberCount"] = memberCount; 2490 _json["memberCount"] = memberCount;
2499 } 2491 }
2500 if (visibility != null) { 2492 if (visibility != null) {
2501 _json["visibility"] = visibility; 2493 _json["visibility"] = visibility;
2502 } 2494 }
2503 return _json; 2495 return _json;
2504 } 2496 }
2505 } 2497 }
2506 2498
2507 2499
2508 /** Not documented yet. */
2509 class AudiencesFeed { 2500 class AudiencesFeed {
2510 /** ETag of this response for caching purposes. */ 2501 /** ETag of this response for caching purposes. */
2511 core.String etag; 2502 core.String etag;
2512 2503
2513 /** The audiences in this result. */ 2504 /** The audiences in this result. */
2514 core.List<Audience> items; 2505 core.List<Audience> items;
2515 2506
2516 /** 2507 /**
2517 * Identifies this resource as a collection of audiences. Value: 2508 * Identifies this resource as a collection of audiences. Value:
2518 * "plus#audienceFeed". 2509 * "plus#audienceFeed".
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 core.Map toJson() { 2583 core.Map toJson() {
2593 var _json = new core.Map(); 2584 var _json = new core.Map();
2594 if (totalItems != null) { 2585 if (totalItems != null) {
2595 _json["totalItems"] = totalItems; 2586 _json["totalItems"] = totalItems;
2596 } 2587 }
2597 return _json; 2588 return _json;
2598 } 2589 }
2599 } 2590 }
2600 2591
2601 2592
2602 /** Not documented yet. */
2603 class Circle { 2593 class Circle {
2604 /** The description of this circle. */ 2594 /** The description of this circle. */
2605 core.String description; 2595 core.String description;
2606 2596
2607 /** The circle name. */ 2597 /** The circle name. */
2608 core.String displayName; 2598 core.String displayName;
2609 2599
2610 /** ETag of this response for caching purposes. */ 2600 /** ETag of this response for caching purposes. */
2611 core.String etag; 2601 core.String etag;
2612 2602
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
2670 _json["people"] = (people).toJson(); 2660 _json["people"] = (people).toJson();
2671 } 2661 }
2672 if (selfLink != null) { 2662 if (selfLink != null) {
2673 _json["selfLink"] = selfLink; 2663 _json["selfLink"] = selfLink;
2674 } 2664 }
2675 return _json; 2665 return _json;
2676 } 2666 }
2677 } 2667 }
2678 2668
2679 2669
2680 /** Not documented yet. */
2681 class CircleFeed { 2670 class CircleFeed {
2682 /** ETag of this response for caching purposes. */ 2671 /** ETag of this response for caching purposes. */
2683 core.String etag; 2672 core.String etag;
2684 2673
2685 /** The circles in this page of results. */ 2674 /** The circles in this page of results. */
2686 core.List<Circle> items; 2675 core.List<Circle> items;
2687 2676
2688 /** 2677 /**
2689 * Identifies this resource as a collection of circles. Value: 2678 * Identifies this resource as a collection of circles. Value:
2690 * "plus#circleFeed". 2679 * "plus#circleFeed".
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 _json["image"] = (image).toJson(); 2835 _json["image"] = (image).toJson();
2847 } 2836 }
2848 if (url != null) { 2837 if (url != null) {
2849 _json["url"] = url; 2838 _json["url"] = url;
2850 } 2839 }
2851 return _json; 2840 return _json;
2852 } 2841 }
2853 } 2842 }
2854 2843
2855 2844
2856 /** Not documented yet. */
2857 class CommentInReplyTo { 2845 class CommentInReplyTo {
2858 /** The ID of the activity. */ 2846 /** The ID of the activity. */
2859 core.String id; 2847 core.String id;
2860 2848
2861 /** The URL of the activity. */ 2849 /** The URL of the activity. */
2862 core.String url; 2850 core.String url;
2863 2851
2864 2852
2865 CommentInReplyTo(); 2853 CommentInReplyTo();
2866 2854
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2952 core.Map toJson() { 2940 core.Map toJson() {
2953 var _json = new core.Map(); 2941 var _json = new core.Map();
2954 if (totalItems != null) { 2942 if (totalItems != null) {
2955 _json["totalItems"] = totalItems; 2943 _json["totalItems"] = totalItems;
2956 } 2944 }
2957 return _json; 2945 return _json;
2958 } 2946 }
2959 } 2947 }
2960 2948
2961 2949
2962 /** Not documented yet. */
2963 class Comment { 2950 class Comment {
2964 /** The person who posted this comment. */ 2951 /** The person who posted this comment. */
2965 CommentActor actor; 2952 CommentActor actor;
2966 2953
2967 /** ETag of this response for caching purposes. */ 2954 /** ETag of this response for caching purposes. */
2968 core.String etag; 2955 core.String etag;
2969 2956
2970 /** The ID of this comment. */ 2957 /** The ID of this comment. */
2971 core.String id; 2958 core.String id;
2972 2959
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 _json["updated"] = (updated).toIso8601String(); 3063 _json["updated"] = (updated).toIso8601String();
3077 } 3064 }
3078 if (verb != null) { 3065 if (verb != null) {
3079 _json["verb"] = verb; 3066 _json["verb"] = verb;
3080 } 3067 }
3081 return _json; 3068 return _json;
3082 } 3069 }
3083 } 3070 }
3084 3071
3085 3072
3086 /** Not documented yet. */
3087 class CommentFeed { 3073 class CommentFeed {
3088 /** ETag of this response for caching purposes. */ 3074 /** ETag of this response for caching purposes. */
3089 core.String etag; 3075 core.String etag;
3090 3076
3091 /** The ID of this collection of comments. */ 3077 /** The ID of this collection of comments. */
3092 core.String id; 3078 core.String id;
3093 3079
3094 /** The comments in this page of results. */ 3080 /** The comments in this page of results. */
3095 core.List<Comment> items; 3081 core.List<Comment> items;
3096 3082
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
3276 core.Map toJson() { 3262 core.Map toJson() {
3277 var _json = new core.Map(); 3263 var _json = new core.Map();
3278 if (time != null) { 3264 if (time != null) {
3279 _json["time"] = (time).toIso8601String(); 3265 _json["time"] = (time).toIso8601String();
3280 } 3266 }
3281 return _json; 3267 return _json;
3282 } 3268 }
3283 } 3269 }
3284 3270
3285 3271
3286 /** Not documented yet. */
3287 class Media { 3272 class Media {
3288 /** The person who uploaded this media. */ 3273 /** The person who uploaded this media. */
3289 MediaAuthor author; 3274 MediaAuthor author;
3290 3275
3291 /** The display name for this media. */ 3276 /** The display name for this media. */
3292 core.String displayName; 3277 core.String displayName;
3293 3278
3294 /** ETag of this response for caching purposes. */ 3279 /** ETag of this response for caching purposes. */
3295 core.String etag; 3280 core.String etag;
3296 3281
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
3473 _json["videoStatus"] = videoStatus; 3458 _json["videoStatus"] = videoStatus;
3474 } 3459 }
3475 if (width != null) { 3460 if (width != null) {
3476 _json["width"] = width; 3461 _json["width"] = width;
3477 } 3462 }
3478 return _json; 3463 return _json;
3479 } 3464 }
3480 } 3465 }
3481 3466
3482 3467
3483 /** Not documented yet. */
3484 class PeopleFeed { 3468 class PeopleFeed {
3485 /** ETag of this response for caching purposes. */ 3469 /** ETag of this response for caching purposes. */
3486 core.String etag; 3470 core.String etag;
3487 3471
3488 /** 3472 /**
3489 * The people in this page of results. Each item includes the id, displayName, 3473 * The people in this page of results. Each item includes the id, displayName,
3490 * image, and url for the person. To retrieve additional profile data, see the 3474 * image, and url for the person. To retrieve additional profile data, see the
3491 * people.get method. 3475 * people.get method.
3492 */ 3476 */
3493 core.List<Person> items; 3477 core.List<Person> items;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
3693 _json["coverPhoto"] = (coverPhoto).toJson(); 3677 _json["coverPhoto"] = (coverPhoto).toJson();
3694 } 3678 }
3695 if (layout != null) { 3679 if (layout != null) {
3696 _json["layout"] = layout; 3680 _json["layout"] = layout;
3697 } 3681 }
3698 return _json; 3682 return _json;
3699 } 3683 }
3700 } 3684 }
3701 3685
3702 3686
3703 /** Not documented yet. */
3704 class PersonEmails { 3687 class PersonEmails {
3705 /** 3688 /**
3706 * The type of address. Possible values include, but are not limited to, the 3689 * The type of address. Possible values include, but are not limited to, the
3707 * following values: 3690 * following values:
3708 * - "account" - Google account email address. 3691 * - "account" - Google account email address.
3709 * - "home" - Home email address. 3692 * - "home" - Home email address.
3710 * - "work" - Work email address. 3693 * - "work" - Work email address.
3711 * - "other" - Other. 3694 * - "other" - Other.
3712 */ 3695 */
3713 core.String type; 3696 core.String type;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
3841 _json["honorificSuffix"] = honorificSuffix; 3824 _json["honorificSuffix"] = honorificSuffix;
3842 } 3825 }
3843 if (middleName != null) { 3826 if (middleName != null) {
3844 _json["middleName"] = middleName; 3827 _json["middleName"] = middleName;
3845 } 3828 }
3846 return _json; 3829 return _json;
3847 } 3830 }
3848 } 3831 }
3849 3832
3850 3833
3851 /** Not documented yet. */
3852 class PersonOrganizations { 3834 class PersonOrganizations {
3853 /** The department within the organization. Deprecated. */ 3835 /** The department within the organization. Deprecated. */
3854 core.String department; 3836 core.String department;
3855 3837
3856 /** 3838 /**
3857 * A short description of the person's role in this organization. Deprecated. 3839 * A short description of the person's role in this organization. Deprecated.
3858 */ 3840 */
3859 core.String description; 3841 core.String description;
3860 3842
3861 /** The date that the person left this organization. */ 3843 /** The date that the person left this organization. */
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
3947 _json["title"] = title; 3929 _json["title"] = title;
3948 } 3930 }
3949 if (type != null) { 3931 if (type != null) {
3950 _json["type"] = type; 3932 _json["type"] = type;
3951 } 3933 }
3952 return _json; 3934 return _json;
3953 } 3935 }
3954 } 3936 }
3955 3937
3956 3938
3957 /** Not documented yet. */
3958 class PersonPlacesLived { 3939 class PersonPlacesLived {
3959 /** If "true", this place of residence is this person's primary residence. */ 3940 /** If "true", this place of residence is this person's primary residence. */
3960 core.bool primary; 3941 core.bool primary;
3961 3942
3962 /** 3943 /**
3963 * A place where this person has lived. For example: "Seattle, WA", "Near 3944 * A place where this person has lived. For example: "Seattle, WA", "Near
3964 * Toronto". 3945 * Toronto".
3965 */ 3946 */
3966 core.String value; 3947 core.String value;
3967 3948
(...skipping 15 matching lines...) Expand all
3983 _json["primary"] = primary; 3964 _json["primary"] = primary;
3984 } 3965 }
3985 if (value != null) { 3966 if (value != null) {
3986 _json["value"] = value; 3967 _json["value"] = value;
3987 } 3968 }
3988 return _json; 3969 return _json;
3989 } 3970 }
3990 } 3971 }
3991 3972
3992 3973
3993 /** Not documented yet. */
3994 class PersonUrls { 3974 class PersonUrls {
3995 /** The label of the URL. */ 3975 /** The label of the URL. */
3996 core.String label; 3976 core.String label;
3997 3977
3998 /** 3978 /**
3999 * The type of URL. Possible values include, but are not limited to, the 3979 * The type of URL. Possible values include, but are not limited to, the
4000 * following values: 3980 * following values:
4001 * - "otherProfile" - URL for another profile. 3981 * - "otherProfile" - URL for another profile.
4002 * - "contributor" - URL to a site for which this person is a contributor. 3982 * - "contributor" - URL to a site for which this person is a contributor.
4003 * - "website" - URL for this Google+ Page's primary website. 3983 * - "website" - URL for this Google+ Page's primary website.
(...skipping 28 matching lines...) Expand all
4032 _json["type"] = type; 4012 _json["type"] = type;
4033 } 4013 }
4034 if (value != null) { 4014 if (value != null) {
4035 _json["value"] = value; 4015 _json["value"] = value;
4036 } 4016 }
4037 return _json; 4017 return _json;
4038 } 4018 }
4039 } 4019 }
4040 4020
4041 4021
4042 /** Not documented yet. */
4043 class Person { 4022 class Person {
4044 /** A short biography for this person. */ 4023 /** A short biography for this person. */
4045 core.String aboutMe; 4024 core.String aboutMe;
4046 4025
4047 /** The person's date of birth, represented as YYYY-MM-DD. */ 4026 /** The person's date of birth, represented as YYYY-MM-DD. */
4048 core.String birthday; 4027 core.String birthday;
4049 4028
4050 /** The "bragging rights" line of this person. */ 4029 /** The "bragging rights" line of this person. */
4051 core.String braggingRights; 4030 core.String braggingRights;
4052 4031
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
4397 _json["latitude"] = latitude; 4376 _json["latitude"] = latitude;
4398 } 4377 }
4399 if (longitude != null) { 4378 if (longitude != null) {
4400 _json["longitude"] = longitude; 4379 _json["longitude"] = longitude;
4401 } 4380 }
4402 return _json; 4381 return _json;
4403 } 4382 }
4404 } 4383 }
4405 4384
4406 4385
4407 /** Not documented yet. */
4408 class Place { 4386 class Place {
4409 /** The physical address of the place. */ 4387 /** The physical address of the place. */
4410 PlaceAddress address; 4388 PlaceAddress address;
4411 4389
4412 /** The display name of the place. */ 4390 /** The display name of the place. */
4413 core.String displayName; 4391 core.String displayName;
4414 4392
4415 /** The id of the place. */ 4393 /** The id of the place. */
4416 core.String id; 4394 core.String id;
4417 4395
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4457 _json["kind"] = kind; 4435 _json["kind"] = kind;
4458 } 4436 }
4459 if (position != null) { 4437 if (position != null) {
4460 _json["position"] = (position).toJson(); 4438 _json["position"] = (position).toJson();
4461 } 4439 }
4462 return _json; 4440 return _json;
4463 } 4441 }
4464 } 4442 }
4465 4443
4466 4444
4467 /** Not documented yet. */
4468 class PlusDomainsAclentryResource { 4445 class PlusDomainsAclentryResource {
4469 /** A descriptive name for this entry. Suitable for display. */ 4446 /** A descriptive name for this entry. Suitable for display. */
4470 core.String displayName; 4447 core.String displayName;
4471 4448
4472 /** 4449 /**
4473 * The ID of the entry. For entries of type "person" or "circle", this is the 4450 * The ID of the entry. For entries of type "person" or "circle", this is the
4474 * ID of the resource. For other types, this property is not set. 4451 * ID of the resource. For other types, this property is not set.
4475 */ 4452 */
4476 core.String id; 4453 core.String id;
4477 4454
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
4512 _json["id"] = id; 4489 _json["id"] = id;
4513 } 4490 }
4514 if (type != null) { 4491 if (type != null) {
4515 _json["type"] = type; 4492 _json["type"] = type;
4516 } 4493 }
4517 return _json; 4494 return _json;
4518 } 4495 }
4519 } 4496 }
4520 4497
4521 4498
4522 /** Not documented yet. */
4523 class Videostream { 4499 class Videostream {
4524 /** The height, in pixels, of the video resource. */ 4500 /** The height, in pixels, of the video resource. */
4525 core.int height; 4501 core.int height;
4526 4502
4527 /** MIME type of the video stream. */ 4503 /** MIME type of the video stream. */
4528 core.String type; 4504 core.String type;
4529 4505
4530 /** URL of the video stream. */ 4506 /** URL of the video stream. */
4531 core.String url; 4507 core.String url;
4532 4508
(...skipping 28 matching lines...) Expand all
4561 } 4537 }
4562 if (url != null) { 4538 if (url != null) {
4563 _json["url"] = url; 4539 _json["url"] = url;
4564 } 4540 }
4565 if (width != null) { 4541 if (width != null) {
4566 _json["width"] = width; 4542 _json["width"] = width;
4567 } 4543 }
4568 return _json; 4544 return _json;
4569 } 4545 }
4570 } 4546 }
4571
4572
OLDNEW
« no previous file with comments | « generated/googleapis/lib/plus/v1.dart ('k') | generated/googleapis/lib/prediction/v1_6.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698