| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.plus.v1; | 3 library googleapis.plus.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; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client plus/v1'; |
| 15 | 18 |
| 16 /** | 19 /** |
| 17 * The Google+ API enables developers to build on top of the Google+ platform. | 20 * The Google+ API enables developers to build on top of the Google+ platform. |
| 18 */ | 21 */ |
| 19 class PlusApi { | 22 class PlusApi { |
| 20 /** Know your basic profile info and list of people in your circles. */ | 23 /** Know your basic profile info and list of people in your circles. */ |
| 21 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 24 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
| 22 | 25 |
| 23 /** Know who you are on Google */ | 26 /** Know who you are on Google */ |
| 24 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; | 27 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; |
| 25 | 28 |
| 26 /** View your email address */ | 29 /** View your email address */ |
| 27 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em
ail"; | 30 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em
ail"; |
| 28 | 31 |
| 29 /** View your basic profile info */ | 32 /** View your basic profile info */ |
| 30 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; | 33 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.
profile"; |
| 31 | 34 |
| 32 | 35 |
| 33 final common_internal.ApiRequester _requester; | 36 final commons.ApiRequester _requester; |
| 34 | 37 |
| 35 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 38 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| 36 CommentsResourceApi get comments => new CommentsResourceApi(_requester); | 39 CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
| 37 MomentsResourceApi get moments => new MomentsResourceApi(_requester); | 40 MomentsResourceApi get moments => new MomentsResourceApi(_requester); |
| 38 PeopleResourceApi get people => new PeopleResourceApi(_requester); | 41 PeopleResourceApi get people => new PeopleResourceApi(_requester); |
| 39 | 42 |
| 40 PlusApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/
", core.String servicePath: "plus/v1/"}) : | 43 PlusApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/
", core.String servicePath: "plus/v1/"}) : |
| 41 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 44 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 42 } | 45 } |
| 43 | 46 |
| 44 | 47 |
| 45 /** Not documented yet. */ | |
| 46 class ActivitiesResourceApi { | 48 class ActivitiesResourceApi { |
| 47 final common_internal.ApiRequester _requester; | 49 final commons.ApiRequester _requester; |
| 48 | 50 |
| 49 ActivitiesResourceApi(common_internal.ApiRequester client) : | 51 ActivitiesResourceApi(commons.ApiRequester client) : |
| 50 _requester = client; | 52 _requester = client; |
| 51 | 53 |
| 52 /** | 54 /** |
| 53 * Get an activity. | 55 * Get an activity. |
| 54 * | 56 * |
| 55 * Request parameters: | 57 * Request parameters: |
| 56 * | 58 * |
| 57 * [activityId] - The ID of the activity to get. | 59 * [activityId] - The ID of the activity to get. |
| 58 * | 60 * |
| 59 * Completes with a [Activity]. | 61 * Completes with a [Activity]. |
| 60 * | 62 * |
| 61 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 63 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 62 * error. | 64 * error. |
| 63 * | 65 * |
| 64 * If the used [http.Client] completes with an error when making a REST call, | 66 * If the used [http.Client] completes with an error when making a REST call, |
| 65 * this method will complete with the same error. | 67 * this method will complete with the same error. |
| 66 */ | 68 */ |
| 67 async.Future<Activity> get(core.String activityId) { | 69 async.Future<Activity> get(core.String activityId) { |
| 68 var _url = null; | 70 var _url = null; |
| 69 var _queryParams = new core.Map(); | 71 var _queryParams = new core.Map(); |
| 70 var _uploadMedia = null; | 72 var _uploadMedia = null; |
| 71 var _uploadOptions = null; | 73 var _uploadOptions = null; |
| 72 var _downloadOptions = common.DownloadOptions.Metadata; | 74 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 73 var _body = null; | 75 var _body = null; |
| 74 | 76 |
| 75 if (activityId == null) { | 77 if (activityId == null) { |
| 76 throw new core.ArgumentError("Parameter activityId is required."); | 78 throw new core.ArgumentError("Parameter activityId is required."); |
| 77 } | 79 } |
| 78 | 80 |
| 79 | 81 |
| 80 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId'); | 82 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId'); |
| 81 | 83 |
| 82 var _response = _requester.request(_url, | 84 var _response = _requester.request(_url, |
| 83 "GET", | 85 "GET", |
| 84 body: _body, | 86 body: _body, |
| 85 queryParams: _queryParams, | 87 queryParams: _queryParams, |
| 86 uploadOptions: _uploadOptions, | 88 uploadOptions: _uploadOptions, |
| 87 uploadMedia: _uploadMedia, | 89 uploadMedia: _uploadMedia, |
| 88 downloadOptions: _downloadOptions); | 90 downloadOptions: _downloadOptions); |
| 89 return _response.then((data) => new Activity.fromJson(data)); | 91 return _response.then((data) => new Activity.fromJson(data)); |
| 90 } | 92 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 106 * which is used for paging. For any response, the actual number returned | 108 * which is used for paging. For any response, the actual number returned |
| 107 * might be less than the specified maxResults. | 109 * might be less than the specified maxResults. |
| 108 * Value must be between "1" and "100". | 110 * Value must be between "1" and "100". |
| 109 * | 111 * |
| 110 * [pageToken] - The continuation token, which is used to page through large | 112 * [pageToken] - The continuation token, which is used to page through large |
| 111 * result sets. To get the next page of results, set this parameter to the | 113 * result sets. To get the next page of results, set this parameter to the |
| 112 * value of "nextPageToken" from the previous response. | 114 * value of "nextPageToken" from the previous response. |
| 113 * | 115 * |
| 114 * Completes with a [ActivityFeed]. | 116 * Completes with a [ActivityFeed]. |
| 115 * | 117 * |
| 116 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 117 * error. | 119 * error. |
| 118 * | 120 * |
| 119 * If the used [http.Client] completes with an error when making a REST call, | 121 * If the used [http.Client] completes with an error when making a REST call, |
| 120 * this method will complete with the same error. | 122 * this method will complete with the same error. |
| 121 */ | 123 */ |
| 122 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c
ore.int maxResults, core.String pageToken}) { | 124 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c
ore.int maxResults, core.String pageToken}) { |
| 123 var _url = null; | 125 var _url = null; |
| 124 var _queryParams = new core.Map(); | 126 var _queryParams = new core.Map(); |
| 125 var _uploadMedia = null; | 127 var _uploadMedia = null; |
| 126 var _uploadOptions = null; | 128 var _uploadOptions = null; |
| 127 var _downloadOptions = common.DownloadOptions.Metadata; | 129 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 128 var _body = null; | 130 var _body = null; |
| 129 | 131 |
| 130 if (userId == null) { | 132 if (userId == null) { |
| 131 throw new core.ArgumentError("Parameter userId is required."); | 133 throw new core.ArgumentError("Parameter userId is required."); |
| 132 } | 134 } |
| 133 if (collection == null) { | 135 if (collection == null) { |
| 134 throw new core.ArgumentError("Parameter collection is required."); | 136 throw new core.ArgumentError("Parameter collection is required."); |
| 135 } | 137 } |
| 136 if (maxResults != null) { | 138 if (maxResults != null) { |
| 137 _queryParams["maxResults"] = ["${maxResults}"]; | 139 _queryParams["maxResults"] = ["${maxResults}"]; |
| 138 } | 140 } |
| 139 if (pageToken != null) { | 141 if (pageToken != null) { |
| 140 _queryParams["pageToken"] = [pageToken]; | 142 _queryParams["pageToken"] = [pageToken]; |
| 141 } | 143 } |
| 142 | 144 |
| 143 | 145 |
| 144 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/acti
vities/' + common_internal.Escaper.ecapeVariable('$collection'); | 146 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/activities/'
+ commons.Escaper.ecapeVariable('$collection'); |
| 145 | 147 |
| 146 var _response = _requester.request(_url, | 148 var _response = _requester.request(_url, |
| 147 "GET", | 149 "GET", |
| 148 body: _body, | 150 body: _body, |
| 149 queryParams: _queryParams, | 151 queryParams: _queryParams, |
| 150 uploadOptions: _uploadOptions, | 152 uploadOptions: _uploadOptions, |
| 151 uploadMedia: _uploadMedia, | 153 uploadMedia: _uploadMedia, |
| 152 downloadOptions: _downloadOptions); | 154 downloadOptions: _downloadOptions); |
| 153 return _response.then((data) => new ActivityFeed.fromJson(data)); | 155 return _response.then((data) => new ActivityFeed.fromJson(data)); |
| 154 } | 156 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 173 * - "best" : Sort activities by relevance to the user, most relevant first. | 175 * - "best" : Sort activities by relevance to the user, most relevant first. |
| 174 * - "recent" : Sort activities by published date, most recent first. | 176 * - "recent" : Sort activities by published date, most recent first. |
| 175 * | 177 * |
| 176 * [pageToken] - The continuation token, which is used to page through large | 178 * [pageToken] - The continuation token, which is used to page through large |
| 177 * result sets. To get the next page of results, set this parameter to the | 179 * result sets. To get the next page of results, set this parameter to the |
| 178 * value of "nextPageToken" from the previous response. This token can be of | 180 * value of "nextPageToken" from the previous response. This token can be of |
| 179 * any length. | 181 * any length. |
| 180 * | 182 * |
| 181 * Completes with a [ActivityFeed]. | 183 * Completes with a [ActivityFeed]. |
| 182 * | 184 * |
| 183 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 184 * error. | 186 * error. |
| 185 * | 187 * |
| 186 * If the used [http.Client] completes with an error when making a REST call, | 188 * If the used [http.Client] completes with an error when making a REST call, |
| 187 * this method will complete with the same error. | 189 * this method will complete with the same error. |
| 188 */ | 190 */ |
| 189 async.Future<ActivityFeed> search(core.String query, {core.String language, co
re.int maxResults, core.String orderBy, core.String pageToken}) { | 191 async.Future<ActivityFeed> search(core.String query, {core.String language, co
re.int maxResults, core.String orderBy, core.String pageToken}) { |
| 190 var _url = null; | 192 var _url = null; |
| 191 var _queryParams = new core.Map(); | 193 var _queryParams = new core.Map(); |
| 192 var _uploadMedia = null; | 194 var _uploadMedia = null; |
| 193 var _uploadOptions = null; | 195 var _uploadOptions = null; |
| 194 var _downloadOptions = common.DownloadOptions.Metadata; | 196 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 195 var _body = null; | 197 var _body = null; |
| 196 | 198 |
| 197 if (query == null) { | 199 if (query == null) { |
| 198 throw new core.ArgumentError("Parameter query is required."); | 200 throw new core.ArgumentError("Parameter query is required."); |
| 199 } | 201 } |
| 200 _queryParams["query"] = [query]; | 202 _queryParams["query"] = [query]; |
| 201 if (language != null) { | 203 if (language != null) { |
| 202 _queryParams["language"] = [language]; | 204 _queryParams["language"] = [language]; |
| 203 } | 205 } |
| 204 if (maxResults != null) { | 206 if (maxResults != null) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 220 queryParams: _queryParams, | 222 queryParams: _queryParams, |
| 221 uploadOptions: _uploadOptions, | 223 uploadOptions: _uploadOptions, |
| 222 uploadMedia: _uploadMedia, | 224 uploadMedia: _uploadMedia, |
| 223 downloadOptions: _downloadOptions); | 225 downloadOptions: _downloadOptions); |
| 224 return _response.then((data) => new ActivityFeed.fromJson(data)); | 226 return _response.then((data) => new ActivityFeed.fromJson(data)); |
| 225 } | 227 } |
| 226 | 228 |
| 227 } | 229 } |
| 228 | 230 |
| 229 | 231 |
| 230 /** Not documented yet. */ | |
| 231 class CommentsResourceApi { | 232 class CommentsResourceApi { |
| 232 final common_internal.ApiRequester _requester; | 233 final commons.ApiRequester _requester; |
| 233 | 234 |
| 234 CommentsResourceApi(common_internal.ApiRequester client) : | 235 CommentsResourceApi(commons.ApiRequester client) : |
| 235 _requester = client; | 236 _requester = client; |
| 236 | 237 |
| 237 /** | 238 /** |
| 238 * Get a comment. | 239 * Get a comment. |
| 239 * | 240 * |
| 240 * Request parameters: | 241 * Request parameters: |
| 241 * | 242 * |
| 242 * [commentId] - The ID of the comment to get. | 243 * [commentId] - The ID of the comment to get. |
| 243 * | 244 * |
| 244 * Completes with a [Comment]. | 245 * Completes with a [Comment]. |
| 245 * | 246 * |
| 246 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 247 * error. | 248 * error. |
| 248 * | 249 * |
| 249 * If the used [http.Client] completes with an error when making a REST call, | 250 * If the used [http.Client] completes with an error when making a REST call, |
| 250 * this method will complete with the same error. | 251 * this method will complete with the same error. |
| 251 */ | 252 */ |
| 252 async.Future<Comment> get(core.String commentId) { | 253 async.Future<Comment> get(core.String commentId) { |
| 253 var _url = null; | 254 var _url = null; |
| 254 var _queryParams = new core.Map(); | 255 var _queryParams = new core.Map(); |
| 255 var _uploadMedia = null; | 256 var _uploadMedia = null; |
| 256 var _uploadOptions = null; | 257 var _uploadOptions = null; |
| 257 var _downloadOptions = common.DownloadOptions.Metadata; | 258 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 258 var _body = null; | 259 var _body = null; |
| 259 | 260 |
| 260 if (commentId == null) { | 261 if (commentId == null) { |
| 261 throw new core.ArgumentError("Parameter commentId is required."); | 262 throw new core.ArgumentError("Parameter commentId is required."); |
| 262 } | 263 } |
| 263 | 264 |
| 264 | 265 |
| 265 _url = 'comments/' + common_internal.Escaper.ecapeVariable('$commentId'); | 266 _url = 'comments/' + commons.Escaper.ecapeVariable('$commentId'); |
| 266 | 267 |
| 267 var _response = _requester.request(_url, | 268 var _response = _requester.request(_url, |
| 268 "GET", | 269 "GET", |
| 269 body: _body, | 270 body: _body, |
| 270 queryParams: _queryParams, | 271 queryParams: _queryParams, |
| 271 uploadOptions: _uploadOptions, | 272 uploadOptions: _uploadOptions, |
| 272 uploadMedia: _uploadMedia, | 273 uploadMedia: _uploadMedia, |
| 273 downloadOptions: _downloadOptions); | 274 downloadOptions: _downloadOptions); |
| 274 return _response.then((data) => new Comment.fromJson(data)); | 275 return _response.then((data) => new Comment.fromJson(data)); |
| 275 } | 276 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 290 * result sets. To get the next page of results, set this parameter to the | 291 * result sets. To get the next page of results, set this parameter to the |
| 291 * value of "nextPageToken" from the previous response. | 292 * value of "nextPageToken" from the previous response. |
| 292 * | 293 * |
| 293 * [sortOrder] - The order in which to sort the list of comments. | 294 * [sortOrder] - The order in which to sort the list of comments. |
| 294 * Possible string values are: | 295 * Possible string values are: |
| 295 * - "ascending" : Sort oldest comments first. | 296 * - "ascending" : Sort oldest comments first. |
| 296 * - "descending" : Sort newest comments first. | 297 * - "descending" : Sort newest comments first. |
| 297 * | 298 * |
| 298 * Completes with a [CommentFeed]. | 299 * Completes with a [CommentFeed]. |
| 299 * | 300 * |
| 300 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 301 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 301 * error. | 302 * error. |
| 302 * | 303 * |
| 303 * If the used [http.Client] completes with an error when making a REST call, | 304 * If the used [http.Client] completes with an error when making a REST call, |
| 304 * this method will complete with the same error. | 305 * this method will complete with the same error. |
| 305 */ | 306 */ |
| 306 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c
ore.String pageToken, core.String sortOrder}) { | 307 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c
ore.String pageToken, core.String sortOrder}) { |
| 307 var _url = null; | 308 var _url = null; |
| 308 var _queryParams = new core.Map(); | 309 var _queryParams = new core.Map(); |
| 309 var _uploadMedia = null; | 310 var _uploadMedia = null; |
| 310 var _uploadOptions = null; | 311 var _uploadOptions = null; |
| 311 var _downloadOptions = common.DownloadOptions.Metadata; | 312 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 312 var _body = null; | 313 var _body = null; |
| 313 | 314 |
| 314 if (activityId == null) { | 315 if (activityId == null) { |
| 315 throw new core.ArgumentError("Parameter activityId is required."); | 316 throw new core.ArgumentError("Parameter activityId is required."); |
| 316 } | 317 } |
| 317 if (maxResults != null) { | 318 if (maxResults != null) { |
| 318 _queryParams["maxResults"] = ["${maxResults}"]; | 319 _queryParams["maxResults"] = ["${maxResults}"]; |
| 319 } | 320 } |
| 320 if (pageToken != null) { | 321 if (pageToken != null) { |
| 321 _queryParams["pageToken"] = [pageToken]; | 322 _queryParams["pageToken"] = [pageToken]; |
| 322 } | 323 } |
| 323 if (sortOrder != null) { | 324 if (sortOrder != null) { |
| 324 _queryParams["sortOrder"] = [sortOrder]; | 325 _queryParams["sortOrder"] = [sortOrder]; |
| 325 } | 326 } |
| 326 | 327 |
| 327 | 328 |
| 328 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId')
+ '/comments'; | 329 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/comm
ents'; |
| 329 | 330 |
| 330 var _response = _requester.request(_url, | 331 var _response = _requester.request(_url, |
| 331 "GET", | 332 "GET", |
| 332 body: _body, | 333 body: _body, |
| 333 queryParams: _queryParams, | 334 queryParams: _queryParams, |
| 334 uploadOptions: _uploadOptions, | 335 uploadOptions: _uploadOptions, |
| 335 uploadMedia: _uploadMedia, | 336 uploadMedia: _uploadMedia, |
| 336 downloadOptions: _downloadOptions); | 337 downloadOptions: _downloadOptions); |
| 337 return _response.then((data) => new CommentFeed.fromJson(data)); | 338 return _response.then((data) => new CommentFeed.fromJson(data)); |
| 338 } | 339 } |
| 339 | 340 |
| 340 } | 341 } |
| 341 | 342 |
| 342 | 343 |
| 343 /** Not documented yet. */ | |
| 344 class MomentsResourceApi { | 344 class MomentsResourceApi { |
| 345 final common_internal.ApiRequester _requester; | 345 final commons.ApiRequester _requester; |
| 346 | 346 |
| 347 MomentsResourceApi(common_internal.ApiRequester client) : | 347 MomentsResourceApi(commons.ApiRequester client) : |
| 348 _requester = client; | 348 _requester = client; |
| 349 | 349 |
| 350 /** | 350 /** |
| 351 * Record a moment representing a user's action such as making a purchase or | 351 * Record a moment representing a user's action such as making a purchase or |
| 352 * commenting on a blog. | 352 * commenting on a blog. |
| 353 * | 353 * |
| 354 * [request] - The metadata request object. | 354 * [request] - The metadata request object. |
| 355 * | 355 * |
| 356 * Request parameters: | 356 * Request parameters: |
| 357 * | 357 * |
| 358 * [userId] - The ID of the user to record actions for. The only valid values | 358 * [userId] - The ID of the user to record actions for. The only valid values |
| 359 * are "me" and the ID of the authenticated user. | 359 * are "me" and the ID of the authenticated user. |
| 360 * | 360 * |
| 361 * [collection] - The collection to which to write moments. | 361 * [collection] - The collection to which to write moments. |
| 362 * Possible string values are: | 362 * Possible string values are: |
| 363 * - "vault" : The default collection for writing new moments. | 363 * - "vault" : The default collection for writing new moments. |
| 364 * | 364 * |
| 365 * [debug] - Return the moment as written. Should be used only for debugging. | 365 * [debug] - Return the moment as written. Should be used only for debugging. |
| 366 * | 366 * |
| 367 * Completes with a [Moment]. | 367 * Completes with a [Moment]. |
| 368 * | 368 * |
| 369 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 370 * error. | 370 * error. |
| 371 * | 371 * |
| 372 * If the used [http.Client] completes with an error when making a REST call, | 372 * If the used [http.Client] completes with an error when making a REST call, |
| 373 * this method will complete with the same error. | 373 * this method will complete with the same error. |
| 374 */ | 374 */ |
| 375 async.Future<Moment> insert(Moment request, core.String userId, core.String co
llection, {core.bool debug}) { | 375 async.Future<Moment> insert(Moment request, core.String userId, core.String co
llection, {core.bool debug}) { |
| 376 var _url = null; | 376 var _url = null; |
| 377 var _queryParams = new core.Map(); | 377 var _queryParams = new core.Map(); |
| 378 var _uploadMedia = null; | 378 var _uploadMedia = null; |
| 379 var _uploadOptions = null; | 379 var _uploadOptions = null; |
| 380 var _downloadOptions = common.DownloadOptions.Metadata; | 380 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 381 var _body = null; | 381 var _body = null; |
| 382 | 382 |
| 383 if (request != null) { | 383 if (request != null) { |
| 384 _body = convert.JSON.encode((request).toJson()); | 384 _body = convert.JSON.encode((request).toJson()); |
| 385 } | 385 } |
| 386 if (userId == null) { | 386 if (userId == null) { |
| 387 throw new core.ArgumentError("Parameter userId is required."); | 387 throw new core.ArgumentError("Parameter userId is required."); |
| 388 } | 388 } |
| 389 if (collection == null) { | 389 if (collection == null) { |
| 390 throw new core.ArgumentError("Parameter collection is required."); | 390 throw new core.ArgumentError("Parameter collection is required."); |
| 391 } | 391 } |
| 392 if (debug != null) { | 392 if (debug != null) { |
| 393 _queryParams["debug"] = ["${debug}"]; | 393 _queryParams["debug"] = ["${debug}"]; |
| 394 } | 394 } |
| 395 | 395 |
| 396 | 396 |
| 397 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/mome
nts/' + common_internal.Escaper.ecapeVariable('$collection'); | 397 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/moments/' +
commons.Escaper.ecapeVariable('$collection'); |
| 398 | 398 |
| 399 var _response = _requester.request(_url, | 399 var _response = _requester.request(_url, |
| 400 "POST", | 400 "POST", |
| 401 body: _body, | 401 body: _body, |
| 402 queryParams: _queryParams, | 402 queryParams: _queryParams, |
| 403 uploadOptions: _uploadOptions, | 403 uploadOptions: _uploadOptions, |
| 404 uploadMedia: _uploadMedia, | 404 uploadMedia: _uploadMedia, |
| 405 downloadOptions: _downloadOptions); | 405 downloadOptions: _downloadOptions); |
| 406 return _response.then((data) => new Moment.fromJson(data)); | 406 return _response.then((data) => new Moment.fromJson(data)); |
| 407 } | 407 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 427 * [pageToken] - The continuation token, which is used to page through large | 427 * [pageToken] - The continuation token, which is used to page through large |
| 428 * result sets. To get the next page of results, set this parameter to the | 428 * result sets. To get the next page of results, set this parameter to the |
| 429 * value of "nextPageToken" from the previous response. | 429 * value of "nextPageToken" from the previous response. |
| 430 * | 430 * |
| 431 * [targetUrl] - Only moments containing this targetUrl will be returned. | 431 * [targetUrl] - Only moments containing this targetUrl will be returned. |
| 432 * | 432 * |
| 433 * [type] - Only moments of this type will be returned. | 433 * [type] - Only moments of this type will be returned. |
| 434 * | 434 * |
| 435 * Completes with a [MomentsFeed]. | 435 * Completes with a [MomentsFeed]. |
| 436 * | 436 * |
| 437 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 437 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 438 * error. | 438 * error. |
| 439 * | 439 * |
| 440 * If the used [http.Client] completes with an error when making a REST call, | 440 * If the used [http.Client] completes with an error when making a REST call, |
| 441 * this method will complete with the same error. | 441 * this method will complete with the same error. |
| 442 */ | 442 */ |
| 443 async.Future<MomentsFeed> list(core.String userId, core.String collection, {co
re.int maxResults, core.String pageToken, core.String targetUrl, core.String typ
e}) { | 443 async.Future<MomentsFeed> list(core.String userId, core.String collection, {co
re.int maxResults, core.String pageToken, core.String targetUrl, core.String typ
e}) { |
| 444 var _url = null; | 444 var _url = null; |
| 445 var _queryParams = new core.Map(); | 445 var _queryParams = new core.Map(); |
| 446 var _uploadMedia = null; | 446 var _uploadMedia = null; |
| 447 var _uploadOptions = null; | 447 var _uploadOptions = null; |
| 448 var _downloadOptions = common.DownloadOptions.Metadata; | 448 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 449 var _body = null; | 449 var _body = null; |
| 450 | 450 |
| 451 if (userId == null) { | 451 if (userId == null) { |
| 452 throw new core.ArgumentError("Parameter userId is required."); | 452 throw new core.ArgumentError("Parameter userId is required."); |
| 453 } | 453 } |
| 454 if (collection == null) { | 454 if (collection == null) { |
| 455 throw new core.ArgumentError("Parameter collection is required."); | 455 throw new core.ArgumentError("Parameter collection is required."); |
| 456 } | 456 } |
| 457 if (maxResults != null) { | 457 if (maxResults != null) { |
| 458 _queryParams["maxResults"] = ["${maxResults}"]; | 458 _queryParams["maxResults"] = ["${maxResults}"]; |
| 459 } | 459 } |
| 460 if (pageToken != null) { | 460 if (pageToken != null) { |
| 461 _queryParams["pageToken"] = [pageToken]; | 461 _queryParams["pageToken"] = [pageToken]; |
| 462 } | 462 } |
| 463 if (targetUrl != null) { | 463 if (targetUrl != null) { |
| 464 _queryParams["targetUrl"] = [targetUrl]; | 464 _queryParams["targetUrl"] = [targetUrl]; |
| 465 } | 465 } |
| 466 if (type != null) { | 466 if (type != null) { |
| 467 _queryParams["type"] = [type]; | 467 _queryParams["type"] = [type]; |
| 468 } | 468 } |
| 469 | 469 |
| 470 | 470 |
| 471 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/mome
nts/' + common_internal.Escaper.ecapeVariable('$collection'); | 471 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/moments/' +
commons.Escaper.ecapeVariable('$collection'); |
| 472 | 472 |
| 473 var _response = _requester.request(_url, | 473 var _response = _requester.request(_url, |
| 474 "GET", | 474 "GET", |
| 475 body: _body, | 475 body: _body, |
| 476 queryParams: _queryParams, | 476 queryParams: _queryParams, |
| 477 uploadOptions: _uploadOptions, | 477 uploadOptions: _uploadOptions, |
| 478 uploadMedia: _uploadMedia, | 478 uploadMedia: _uploadMedia, |
| 479 downloadOptions: _downloadOptions); | 479 downloadOptions: _downloadOptions); |
| 480 return _response.then((data) => new MomentsFeed.fromJson(data)); | 480 return _response.then((data) => new MomentsFeed.fromJson(data)); |
| 481 } | 481 } |
| 482 | 482 |
| 483 /** | 483 /** |
| 484 * Delete a moment. | 484 * Delete a moment. |
| 485 * | 485 * |
| 486 * Request parameters: | 486 * Request parameters: |
| 487 * | 487 * |
| 488 * [id] - The ID of the moment to delete. | 488 * [id] - The ID of the moment to delete. |
| 489 * | 489 * |
| 490 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 490 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 491 * error. | 491 * error. |
| 492 * | 492 * |
| 493 * If the used [http.Client] completes with an error when making a REST call, | 493 * If the used [http.Client] completes with an error when making a REST call, |
| 494 * this method will complete with the same error. | 494 * this method will complete with the same error. |
| 495 */ | 495 */ |
| 496 async.Future remove(core.String id) { | 496 async.Future remove(core.String id) { |
| 497 var _url = null; | 497 var _url = null; |
| 498 var _queryParams = new core.Map(); | 498 var _queryParams = new core.Map(); |
| 499 var _uploadMedia = null; | 499 var _uploadMedia = null; |
| 500 var _uploadOptions = null; | 500 var _uploadOptions = null; |
| 501 var _downloadOptions = common.DownloadOptions.Metadata; | 501 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 502 var _body = null; | 502 var _body = null; |
| 503 | 503 |
| 504 if (id == null) { | 504 if (id == null) { |
| 505 throw new core.ArgumentError("Parameter id is required."); | 505 throw new core.ArgumentError("Parameter id is required."); |
| 506 } | 506 } |
| 507 | 507 |
| 508 _downloadOptions = null; | 508 _downloadOptions = null; |
| 509 | 509 |
| 510 _url = 'moments/' + common_internal.Escaper.ecapeVariable('$id'); | 510 _url = 'moments/' + commons.Escaper.ecapeVariable('$id'); |
| 511 | 511 |
| 512 var _response = _requester.request(_url, | 512 var _response = _requester.request(_url, |
| 513 "DELETE", | 513 "DELETE", |
| 514 body: _body, | 514 body: _body, |
| 515 queryParams: _queryParams, | 515 queryParams: _queryParams, |
| 516 uploadOptions: _uploadOptions, | 516 uploadOptions: _uploadOptions, |
| 517 uploadMedia: _uploadMedia, | 517 uploadMedia: _uploadMedia, |
| 518 downloadOptions: _downloadOptions); | 518 downloadOptions: _downloadOptions); |
| 519 return _response.then((data) => null); | 519 return _response.then((data) => null); |
| 520 } | 520 } |
| 521 | 521 |
| 522 } | 522 } |
| 523 | 523 |
| 524 | 524 |
| 525 /** Not documented yet. */ | |
| 526 class PeopleResourceApi { | 525 class PeopleResourceApi { |
| 527 final common_internal.ApiRequester _requester; | 526 final commons.ApiRequester _requester; |
| 528 | 527 |
| 529 PeopleResourceApi(common_internal.ApiRequester client) : | 528 PeopleResourceApi(commons.ApiRequester client) : |
| 530 _requester = client; | 529 _requester = client; |
| 531 | 530 |
| 532 /** | 531 /** |
| 533 * Get a person's profile. If your app uses scope | 532 * Get a person's profile. If your app uses scope |
| 534 * https://www.googleapis.com/auth/plus.login, this method is guaranteed to | 533 * https://www.googleapis.com/auth/plus.login, this method is guaranteed to |
| 535 * return ageRange and language. | 534 * return ageRange and language. |
| 536 * | 535 * |
| 537 * Request parameters: | 536 * Request parameters: |
| 538 * | 537 * |
| 539 * [userId] - The ID of the person to get the profile for. The special value | 538 * [userId] - The ID of the person to get the profile for. The special value |
| 540 * "me" can be used to indicate the authenticated user. | 539 * "me" can be used to indicate the authenticated user. |
| 541 * | 540 * |
| 542 * Completes with a [Person]. | 541 * Completes with a [Person]. |
| 543 * | 542 * |
| 544 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 543 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 545 * error. | 544 * error. |
| 546 * | 545 * |
| 547 * If the used [http.Client] completes with an error when making a REST call, | 546 * If the used [http.Client] completes with an error when making a REST call, |
| 548 * this method will complete with the same error. | 547 * this method will complete with the same error. |
| 549 */ | 548 */ |
| 550 async.Future<Person> get(core.String userId) { | 549 async.Future<Person> get(core.String userId) { |
| 551 var _url = null; | 550 var _url = null; |
| 552 var _queryParams = new core.Map(); | 551 var _queryParams = new core.Map(); |
| 553 var _uploadMedia = null; | 552 var _uploadMedia = null; |
| 554 var _uploadOptions = null; | 553 var _uploadOptions = null; |
| 555 var _downloadOptions = common.DownloadOptions.Metadata; | 554 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 556 var _body = null; | 555 var _body = null; |
| 557 | 556 |
| 558 if (userId == null) { | 557 if (userId == null) { |
| 559 throw new core.ArgumentError("Parameter userId is required."); | 558 throw new core.ArgumentError("Parameter userId is required."); |
| 560 } | 559 } |
| 561 | 560 |
| 562 | 561 |
| 563 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId'); | 562 _url = 'people/' + commons.Escaper.ecapeVariable('$userId'); |
| 564 | 563 |
| 565 var _response = _requester.request(_url, | 564 var _response = _requester.request(_url, |
| 566 "GET", | 565 "GET", |
| 567 body: _body, | 566 body: _body, |
| 568 queryParams: _queryParams, | 567 queryParams: _queryParams, |
| 569 uploadOptions: _uploadOptions, | 568 uploadOptions: _uploadOptions, |
| 570 uploadMedia: _uploadMedia, | 569 uploadMedia: _uploadMedia, |
| 571 downloadOptions: _downloadOptions); | 570 downloadOptions: _downloadOptions); |
| 572 return _response.then((data) => new Person.fromJson(data)); | 571 return _response.then((data) => new Person.fromJson(data)); |
| 573 } | 572 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 597 * Possible string values are: | 596 * Possible string values are: |
| 598 * - "alphabetical" : Order the people by their display name. | 597 * - "alphabetical" : Order the people by their display name. |
| 599 * - "best" : Order people based on the relevence to the viewer. | 598 * - "best" : Order people based on the relevence to the viewer. |
| 600 * | 599 * |
| 601 * [pageToken] - The continuation token, which is used to page through large | 600 * [pageToken] - The continuation token, which is used to page through large |
| 602 * result sets. To get the next page of results, set this parameter to the | 601 * result sets. To get the next page of results, set this parameter to the |
| 603 * value of "nextPageToken" from the previous response. | 602 * value of "nextPageToken" from the previous response. |
| 604 * | 603 * |
| 605 * Completes with a [PeopleFeed]. | 604 * Completes with a [PeopleFeed]. |
| 606 * | 605 * |
| 607 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 606 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 608 * error. | 607 * error. |
| 609 * | 608 * |
| 610 * If the used [http.Client] completes with an error when making a REST call, | 609 * If the used [http.Client] completes with an error when making a REST call, |
| 611 * this method will complete with the same error. | 610 * this method will complete with the same error. |
| 612 */ | 611 */ |
| 613 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor
e.int maxResults, core.String orderBy, core.String pageToken}) { | 612 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor
e.int maxResults, core.String orderBy, core.String pageToken}) { |
| 614 var _url = null; | 613 var _url = null; |
| 615 var _queryParams = new core.Map(); | 614 var _queryParams = new core.Map(); |
| 616 var _uploadMedia = null; | 615 var _uploadMedia = null; |
| 617 var _uploadOptions = null; | 616 var _uploadOptions = null; |
| 618 var _downloadOptions = common.DownloadOptions.Metadata; | 617 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 619 var _body = null; | 618 var _body = null; |
| 620 | 619 |
| 621 if (userId == null) { | 620 if (userId == null) { |
| 622 throw new core.ArgumentError("Parameter userId is required."); | 621 throw new core.ArgumentError("Parameter userId is required."); |
| 623 } | 622 } |
| 624 if (collection == null) { | 623 if (collection == null) { |
| 625 throw new core.ArgumentError("Parameter collection is required."); | 624 throw new core.ArgumentError("Parameter collection is required."); |
| 626 } | 625 } |
| 627 if (maxResults != null) { | 626 if (maxResults != null) { |
| 628 _queryParams["maxResults"] = ["${maxResults}"]; | 627 _queryParams["maxResults"] = ["${maxResults}"]; |
| 629 } | 628 } |
| 630 if (orderBy != null) { | 629 if (orderBy != null) { |
| 631 _queryParams["orderBy"] = [orderBy]; | 630 _queryParams["orderBy"] = [orderBy]; |
| 632 } | 631 } |
| 633 if (pageToken != null) { | 632 if (pageToken != null) { |
| 634 _queryParams["pageToken"] = [pageToken]; | 633 _queryParams["pageToken"] = [pageToken]; |
| 635 } | 634 } |
| 636 | 635 |
| 637 | 636 |
| 638 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/peop
le/' + common_internal.Escaper.ecapeVariable('$collection'); | 637 _url = 'people/' + commons.Escaper.ecapeVariable('$userId') + '/people/' + c
ommons.Escaper.ecapeVariable('$collection'); |
| 639 | 638 |
| 640 var _response = _requester.request(_url, | 639 var _response = _requester.request(_url, |
| 641 "GET", | 640 "GET", |
| 642 body: _body, | 641 body: _body, |
| 643 queryParams: _queryParams, | 642 queryParams: _queryParams, |
| 644 uploadOptions: _uploadOptions, | 643 uploadOptions: _uploadOptions, |
| 645 uploadMedia: _uploadMedia, | 644 uploadMedia: _uploadMedia, |
| 646 downloadOptions: _downloadOptions); | 645 downloadOptions: _downloadOptions); |
| 647 return _response.then((data) => new PeopleFeed.fromJson(data)); | 646 return _response.then((data) => new PeopleFeed.fromJson(data)); |
| 648 } | 647 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 664 * which is used for paging. For any response, the actual number returned | 663 * which is used for paging. For any response, the actual number returned |
| 665 * might be less than the specified maxResults. | 664 * might be less than the specified maxResults. |
| 666 * Value must be between "1" and "100". | 665 * Value must be between "1" and "100". |
| 667 * | 666 * |
| 668 * [pageToken] - The continuation token, which is used to page through large | 667 * [pageToken] - The continuation token, which is used to page through large |
| 669 * result sets. To get the next page of results, set this parameter to the | 668 * result sets. To get the next page of results, set this parameter to the |
| 670 * value of "nextPageToken" from the previous response. | 669 * value of "nextPageToken" from the previous response. |
| 671 * | 670 * |
| 672 * Completes with a [PeopleFeed]. | 671 * Completes with a [PeopleFeed]. |
| 673 * | 672 * |
| 674 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 673 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 675 * error. | 674 * error. |
| 676 * | 675 * |
| 677 * If the used [http.Client] completes with an error when making a REST call, | 676 * If the used [http.Client] completes with an error when making a REST call, |
| 678 * this method will complete with the same error. | 677 * this method will complete with the same error. |
| 679 */ | 678 */ |
| 680 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co
llection, {core.int maxResults, core.String pageToken}) { | 679 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co
llection, {core.int maxResults, core.String pageToken}) { |
| 681 var _url = null; | 680 var _url = null; |
| 682 var _queryParams = new core.Map(); | 681 var _queryParams = new core.Map(); |
| 683 var _uploadMedia = null; | 682 var _uploadMedia = null; |
| 684 var _uploadOptions = null; | 683 var _uploadOptions = null; |
| 685 var _downloadOptions = common.DownloadOptions.Metadata; | 684 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 686 var _body = null; | 685 var _body = null; |
| 687 | 686 |
| 688 if (activityId == null) { | 687 if (activityId == null) { |
| 689 throw new core.ArgumentError("Parameter activityId is required."); | 688 throw new core.ArgumentError("Parameter activityId is required."); |
| 690 } | 689 } |
| 691 if (collection == null) { | 690 if (collection == null) { |
| 692 throw new core.ArgumentError("Parameter collection is required."); | 691 throw new core.ArgumentError("Parameter collection is required."); |
| 693 } | 692 } |
| 694 if (maxResults != null) { | 693 if (maxResults != null) { |
| 695 _queryParams["maxResults"] = ["${maxResults}"]; | 694 _queryParams["maxResults"] = ["${maxResults}"]; |
| 696 } | 695 } |
| 697 if (pageToken != null) { | 696 if (pageToken != null) { |
| 698 _queryParams["pageToken"] = [pageToken]; | 697 _queryParams["pageToken"] = [pageToken]; |
| 699 } | 698 } |
| 700 | 699 |
| 701 | 700 |
| 702 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId')
+ '/people/' + common_internal.Escaper.ecapeVariable('$collection'); | 701 _url = 'activities/' + commons.Escaper.ecapeVariable('$activityId') + '/peop
le/' + commons.Escaper.ecapeVariable('$collection'); |
| 703 | 702 |
| 704 var _response = _requester.request(_url, | 703 var _response = _requester.request(_url, |
| 705 "GET", | 704 "GET", |
| 706 body: _body, | 705 body: _body, |
| 707 queryParams: _queryParams, | 706 queryParams: _queryParams, |
| 708 uploadOptions: _uploadOptions, | 707 uploadOptions: _uploadOptions, |
| 709 uploadMedia: _uploadMedia, | 708 uploadMedia: _uploadMedia, |
| 710 downloadOptions: _downloadOptions); | 709 downloadOptions: _downloadOptions); |
| 711 return _response.then((data) => new PeopleFeed.fromJson(data)); | 710 return _response.then((data) => new PeopleFeed.fromJson(data)); |
| 712 } | 711 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 727 * might be less than the specified maxResults. | 726 * might be less than the specified maxResults. |
| 728 * Value must be between "1" and "50". | 727 * Value must be between "1" and "50". |
| 729 * | 728 * |
| 730 * [pageToken] - The continuation token, which is used to page through large | 729 * [pageToken] - The continuation token, which is used to page through large |
| 731 * result sets. To get the next page of results, set this parameter to the | 730 * result sets. To get the next page of results, set this parameter to the |
| 732 * value of "nextPageToken" from the previous response. This token can be of | 731 * value of "nextPageToken" from the previous response. This token can be of |
| 733 * any length. | 732 * any length. |
| 734 * | 733 * |
| 735 * Completes with a [PeopleFeed]. | 734 * Completes with a [PeopleFeed]. |
| 736 * | 735 * |
| 737 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 738 * error. | 737 * error. |
| 739 * | 738 * |
| 740 * If the used [http.Client] completes with an error when making a REST call, | 739 * If the used [http.Client] completes with an error when making a REST call, |
| 741 * this method will complete with the same error. | 740 * this method will complete with the same error. |
| 742 */ | 741 */ |
| 743 async.Future<PeopleFeed> search(core.String query, {core.String language, core
.int maxResults, core.String pageToken}) { | 742 async.Future<PeopleFeed> search(core.String query, {core.String language, core
.int maxResults, core.String pageToken}) { |
| 744 var _url = null; | 743 var _url = null; |
| 745 var _queryParams = new core.Map(); | 744 var _queryParams = new core.Map(); |
| 746 var _uploadMedia = null; | 745 var _uploadMedia = null; |
| 747 var _uploadOptions = null; | 746 var _uploadOptions = null; |
| 748 var _downloadOptions = common.DownloadOptions.Metadata; | 747 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 749 var _body = null; | 748 var _body = null; |
| 750 | 749 |
| 751 if (query == null) { | 750 if (query == null) { |
| 752 throw new core.ArgumentError("Parameter query is required."); | 751 throw new core.ArgumentError("Parameter query is required."); |
| 753 } | 752 } |
| 754 _queryParams["query"] = [query]; | 753 _queryParams["query"] = [query]; |
| 755 if (language != null) { | 754 if (language != null) { |
| 756 _queryParams["language"] = [language]; | 755 _queryParams["language"] = [language]; |
| 757 } | 756 } |
| 758 if (maxResults != null) { | 757 if (maxResults != null) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 772 uploadOptions: _uploadOptions, | 771 uploadOptions: _uploadOptions, |
| 773 uploadMedia: _uploadMedia, | 772 uploadMedia: _uploadMedia, |
| 774 downloadOptions: _downloadOptions); | 773 downloadOptions: _downloadOptions); |
| 775 return _response.then((data) => new PeopleFeed.fromJson(data)); | 774 return _response.then((data) => new PeopleFeed.fromJson(data)); |
| 776 } | 775 } |
| 777 | 776 |
| 778 } | 777 } |
| 779 | 778 |
| 780 | 779 |
| 781 | 780 |
| 782 /** Not documented yet. */ | |
| 783 class Acl { | 781 class Acl { |
| 784 /** Description of the access granted, suitable for display. */ | 782 /** Description of the access granted, suitable for display. */ |
| 785 core.String description; | 783 core.String description; |
| 786 | 784 |
| 787 /** The list of access entries. */ | 785 /** The list of access entries. */ |
| 788 core.List<PlusAclentryResource> items; | 786 core.List<PlusAclentryResource> items; |
| 789 | 787 |
| 790 /** | 788 /** |
| 791 * Identifies this resource as a collection of access controls. Value: | 789 * Identifies this resource as a collection of access controls. Value: |
| 792 * "plus#acl". | 790 * "plus#acl". |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 _json["url"] = url; | 1200 _json["url"] = url; |
| 1203 } | 1201 } |
| 1204 if (width != null) { | 1202 if (width != null) { |
| 1205 _json["width"] = width; | 1203 _json["width"] = width; |
| 1206 } | 1204 } |
| 1207 return _json; | 1205 return _json; |
| 1208 } | 1206 } |
| 1209 } | 1207 } |
| 1210 | 1208 |
| 1211 | 1209 |
| 1212 /** Not documented yet. */ | |
| 1213 class ActivityObjectAttachmentsThumbnails { | 1210 class ActivityObjectAttachmentsThumbnails { |
| 1214 /** Potential name of the thumbnail. */ | 1211 /** Potential name of the thumbnail. */ |
| 1215 core.String description; | 1212 core.String description; |
| 1216 | 1213 |
| 1217 /** Image resource. */ | 1214 /** Image resource. */ |
| 1218 ActivityObjectAttachmentsThumbnailsImage image; | 1215 ActivityObjectAttachmentsThumbnailsImage image; |
| 1219 | 1216 |
| 1220 /** URL of the webpage containing the image. */ | 1217 /** URL of the webpage containing the image. */ |
| 1221 core.String url; | 1218 core.String url; |
| 1222 | 1219 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1244 _json["image"] = (image).toJson(); | 1241 _json["image"] = (image).toJson(); |
| 1245 } | 1242 } |
| 1246 if (url != null) { | 1243 if (url != null) { |
| 1247 _json["url"] = url; | 1244 _json["url"] = url; |
| 1248 } | 1245 } |
| 1249 return _json; | 1246 return _json; |
| 1250 } | 1247 } |
| 1251 } | 1248 } |
| 1252 | 1249 |
| 1253 | 1250 |
| 1254 /** Not documented yet. */ | |
| 1255 class ActivityObjectAttachments { | 1251 class ActivityObjectAttachments { |
| 1256 /** | 1252 /** |
| 1257 * If the attachment is an article, this property contains a snippet of text | 1253 * If the attachment is an article, this property contains a snippet of text |
| 1258 * from the article. It can also include descriptions for other types. | 1254 * from the article. It can also include descriptions for other types. |
| 1259 */ | 1255 */ |
| 1260 core.String content; | 1256 core.String content; |
| 1261 | 1257 |
| 1262 /** | 1258 /** |
| 1263 * The title of the attachment, such as a photo caption or an article title. | 1259 * The title of the attachment, such as a photo caption or an article title. |
| 1264 */ | 1260 */ |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1599 core.Map toJson() { | 1595 core.Map toJson() { |
| 1600 var _json = new core.Map(); | 1596 var _json = new core.Map(); |
| 1601 if (title != null) { | 1597 if (title != null) { |
| 1602 _json["title"] = title; | 1598 _json["title"] = title; |
| 1603 } | 1599 } |
| 1604 return _json; | 1600 return _json; |
| 1605 } | 1601 } |
| 1606 } | 1602 } |
| 1607 | 1603 |
| 1608 | 1604 |
| 1609 /** Not documented yet. */ | |
| 1610 class Activity { | 1605 class Activity { |
| 1611 /** Identifies who has access to see this activity. */ | 1606 /** Identifies who has access to see this activity. */ |
| 1612 Acl access; | 1607 Acl access; |
| 1613 | 1608 |
| 1614 /** The person who performed this activity. */ | 1609 /** The person who performed this activity. */ |
| 1615 ActivityActor actor; | 1610 ActivityActor actor; |
| 1616 | 1611 |
| 1617 /** Street address where this activity occurred. */ | 1612 /** Street address where this activity occurred. */ |
| 1618 core.String address; | 1613 core.String address; |
| 1619 | 1614 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 _json["url"] = url; | 1812 _json["url"] = url; |
| 1818 } | 1813 } |
| 1819 if (verb != null) { | 1814 if (verb != null) { |
| 1820 _json["verb"] = verb; | 1815 _json["verb"] = verb; |
| 1821 } | 1816 } |
| 1822 return _json; | 1817 return _json; |
| 1823 } | 1818 } |
| 1824 } | 1819 } |
| 1825 | 1820 |
| 1826 | 1821 |
| 1827 /** Not documented yet. */ | |
| 1828 class ActivityFeed { | 1822 class ActivityFeed { |
| 1829 /** ETag of this response for caching purposes. */ | 1823 /** ETag of this response for caching purposes. */ |
| 1830 core.String etag; | 1824 core.String etag; |
| 1831 | 1825 |
| 1832 /** The ID of this collection of activities. Deprecated. */ | 1826 /** The ID of this collection of activities. Deprecated. */ |
| 1833 core.String id; | 1827 core.String id; |
| 1834 | 1828 |
| 1835 /** The activities in this page of results. */ | 1829 /** The activities in this page of results. */ |
| 1836 core.List<Activity> items; | 1830 core.List<Activity> items; |
| 1837 | 1831 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2005 _json["image"] = (image).toJson(); | 1999 _json["image"] = (image).toJson(); |
| 2006 } | 2000 } |
| 2007 if (url != null) { | 2001 if (url != null) { |
| 2008 _json["url"] = url; | 2002 _json["url"] = url; |
| 2009 } | 2003 } |
| 2010 return _json; | 2004 return _json; |
| 2011 } | 2005 } |
| 2012 } | 2006 } |
| 2013 | 2007 |
| 2014 | 2008 |
| 2015 /** Not documented yet. */ | |
| 2016 class CommentInReplyTo { | 2009 class CommentInReplyTo { |
| 2017 /** The ID of the activity. */ | 2010 /** The ID of the activity. */ |
| 2018 core.String id; | 2011 core.String id; |
| 2019 | 2012 |
| 2020 /** The URL of the activity. */ | 2013 /** The URL of the activity. */ |
| 2021 core.String url; | 2014 core.String url; |
| 2022 | 2015 |
| 2023 | 2016 |
| 2024 CommentInReplyTo(); | 2017 CommentInReplyTo(); |
| 2025 | 2018 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2111 core.Map toJson() { | 2104 core.Map toJson() { |
| 2112 var _json = new core.Map(); | 2105 var _json = new core.Map(); |
| 2113 if (totalItems != null) { | 2106 if (totalItems != null) { |
| 2114 _json["totalItems"] = totalItems; | 2107 _json["totalItems"] = totalItems; |
| 2115 } | 2108 } |
| 2116 return _json; | 2109 return _json; |
| 2117 } | 2110 } |
| 2118 } | 2111 } |
| 2119 | 2112 |
| 2120 | 2113 |
| 2121 /** Not documented yet. */ | |
| 2122 class Comment { | 2114 class Comment { |
| 2123 /** The person who posted this comment. */ | 2115 /** The person who posted this comment. */ |
| 2124 CommentActor actor; | 2116 CommentActor actor; |
| 2125 | 2117 |
| 2126 /** ETag of this response for caching purposes. */ | 2118 /** ETag of this response for caching purposes. */ |
| 2127 core.String etag; | 2119 core.String etag; |
| 2128 | 2120 |
| 2129 /** The ID of this comment. */ | 2121 /** The ID of this comment. */ |
| 2130 core.String id; | 2122 core.String id; |
| 2131 | 2123 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2235 _json["updated"] = (updated).toIso8601String(); | 2227 _json["updated"] = (updated).toIso8601String(); |
| 2236 } | 2228 } |
| 2237 if (verb != null) { | 2229 if (verb != null) { |
| 2238 _json["verb"] = verb; | 2230 _json["verb"] = verb; |
| 2239 } | 2231 } |
| 2240 return _json; | 2232 return _json; |
| 2241 } | 2233 } |
| 2242 } | 2234 } |
| 2243 | 2235 |
| 2244 | 2236 |
| 2245 /** Not documented yet. */ | |
| 2246 class CommentFeed { | 2237 class CommentFeed { |
| 2247 /** ETag of this response for caching purposes. */ | 2238 /** ETag of this response for caching purposes. */ |
| 2248 core.String etag; | 2239 core.String etag; |
| 2249 | 2240 |
| 2250 /** The ID of this collection of comments. */ | 2241 /** The ID of this collection of comments. */ |
| 2251 core.String id; | 2242 core.String id; |
| 2252 | 2243 |
| 2253 /** The comments in this page of results. */ | 2244 /** The comments in this page of results. */ |
| 2254 core.List<Comment> items; | 2245 core.List<Comment> items; |
| 2255 | 2246 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 _json["title"] = title; | 2323 _json["title"] = title; |
| 2333 } | 2324 } |
| 2334 if (updated != null) { | 2325 if (updated != null) { |
| 2335 _json["updated"] = (updated).toIso8601String(); | 2326 _json["updated"] = (updated).toIso8601String(); |
| 2336 } | 2327 } |
| 2337 return _json; | 2328 return _json; |
| 2338 } | 2329 } |
| 2339 } | 2330 } |
| 2340 | 2331 |
| 2341 | 2332 |
| 2342 /** Not documented yet. */ | |
| 2343 class ItemScope { | 2333 class ItemScope { |
| 2344 /** The subject matter of the content. */ | 2334 /** The subject matter of the content. */ |
| 2345 ItemScope about; | 2335 ItemScope about; |
| 2346 | 2336 |
| 2347 /** An additional name for a Person, can be used for a middle name. */ | 2337 /** An additional name for a Person, can be used for a middle name. */ |
| 2348 core.List<core.String> additionalName; | 2338 core.List<core.String> additionalName; |
| 2349 | 2339 |
| 2350 /** Postal address. */ | 2340 /** Postal address. */ |
| 2351 ItemScope address; | 2341 ItemScope address; |
| 2352 | 2342 |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2914 _json["width"] = width; | 2904 _json["width"] = width; |
| 2915 } | 2905 } |
| 2916 if (worstRating != null) { | 2906 if (worstRating != null) { |
| 2917 _json["worstRating"] = worstRating; | 2907 _json["worstRating"] = worstRating; |
| 2918 } | 2908 } |
| 2919 return _json; | 2909 return _json; |
| 2920 } | 2910 } |
| 2921 } | 2911 } |
| 2922 | 2912 |
| 2923 | 2913 |
| 2924 /** Not documented yet. */ | |
| 2925 class Moment { | 2914 class Moment { |
| 2926 /** The moment ID. */ | 2915 /** The moment ID. */ |
| 2927 core.String id; | 2916 core.String id; |
| 2928 | 2917 |
| 2929 /** Identifies this resource as a moment. */ | 2918 /** Identifies this resource as a moment. */ |
| 2930 core.String kind; | 2919 core.String kind; |
| 2931 | 2920 |
| 2932 /** | 2921 /** |
| 2933 * The object on which the action was performed. Specifying this is equivalent | 2922 * The object on which the action was performed. Specifying this is equivalent |
| 2934 * with specifying "target". Note that responses from the server will use the | 2923 * with specifying "target". Note that responses from the server will use the |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3005 _json["target"] = (target).toJson(); | 2994 _json["target"] = (target).toJson(); |
| 3006 } | 2995 } |
| 3007 if (type != null) { | 2996 if (type != null) { |
| 3008 _json["type"] = type; | 2997 _json["type"] = type; |
| 3009 } | 2998 } |
| 3010 return _json; | 2999 return _json; |
| 3011 } | 3000 } |
| 3012 } | 3001 } |
| 3013 | 3002 |
| 3014 | 3003 |
| 3015 /** Not documented yet. */ | |
| 3016 class MomentsFeed { | 3004 class MomentsFeed { |
| 3017 /** ETag of this response for caching purposes. */ | 3005 /** ETag of this response for caching purposes. */ |
| 3018 core.String etag; | 3006 core.String etag; |
| 3019 | 3007 |
| 3020 /** The moments in this page of results. */ | 3008 /** The moments in this page of results. */ |
| 3021 core.List<Moment> items; | 3009 core.List<Moment> items; |
| 3022 | 3010 |
| 3023 /** | 3011 /** |
| 3024 * Identifies this resource as a collection of moments. Value: | 3012 * Identifies this resource as a collection of moments. Value: |
| 3025 * "plus#momentsFeed". | 3013 * "plus#momentsFeed". |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3101 _json["title"] = title; | 3089 _json["title"] = title; |
| 3102 } | 3090 } |
| 3103 if (updated != null) { | 3091 if (updated != null) { |
| 3104 _json["updated"] = (updated).toIso8601String(); | 3092 _json["updated"] = (updated).toIso8601String(); |
| 3105 } | 3093 } |
| 3106 return _json; | 3094 return _json; |
| 3107 } | 3095 } |
| 3108 } | 3096 } |
| 3109 | 3097 |
| 3110 | 3098 |
| 3111 /** Not documented yet. */ | |
| 3112 class PeopleFeed { | 3099 class PeopleFeed { |
| 3113 /** ETag of this response for caching purposes. */ | 3100 /** ETag of this response for caching purposes. */ |
| 3114 core.String etag; | 3101 core.String etag; |
| 3115 | 3102 |
| 3116 /** | 3103 /** |
| 3117 * The people in this page of results. Each item includes the id, displayName, | 3104 * The people in this page of results. Each item includes the id, displayName, |
| 3118 * image, and url for the person. To retrieve additional profile data, see the | 3105 * image, and url for the person. To retrieve additional profile data, see the |
| 3119 * people.get method. | 3106 * people.get method. |
| 3120 */ | 3107 */ |
| 3121 core.List<Person> items; | 3108 core.List<Person> items; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3368 _json["coverPhoto"] = (coverPhoto).toJson(); | 3355 _json["coverPhoto"] = (coverPhoto).toJson(); |
| 3369 } | 3356 } |
| 3370 if (layout != null) { | 3357 if (layout != null) { |
| 3371 _json["layout"] = layout; | 3358 _json["layout"] = layout; |
| 3372 } | 3359 } |
| 3373 return _json; | 3360 return _json; |
| 3374 } | 3361 } |
| 3375 } | 3362 } |
| 3376 | 3363 |
| 3377 | 3364 |
| 3378 /** Not documented yet. */ | |
| 3379 class PersonEmails { | 3365 class PersonEmails { |
| 3380 /** | 3366 /** |
| 3381 * The type of address. Possible values include, but are not limited to, the | 3367 * The type of address. Possible values include, but are not limited to, the |
| 3382 * following values: | 3368 * following values: |
| 3383 * - "account" - Google account email address. | 3369 * - "account" - Google account email address. |
| 3384 * - "home" - Home email address. | 3370 * - "home" - Home email address. |
| 3385 * - "work" - Work email address. | 3371 * - "work" - Work email address. |
| 3386 * - "other" - Other. | 3372 * - "other" - Other. |
| 3387 */ | 3373 */ |
| 3388 core.String type; | 3374 core.String type; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3516 _json["honorificSuffix"] = honorificSuffix; | 3502 _json["honorificSuffix"] = honorificSuffix; |
| 3517 } | 3503 } |
| 3518 if (middleName != null) { | 3504 if (middleName != null) { |
| 3519 _json["middleName"] = middleName; | 3505 _json["middleName"] = middleName; |
| 3520 } | 3506 } |
| 3521 return _json; | 3507 return _json; |
| 3522 } | 3508 } |
| 3523 } | 3509 } |
| 3524 | 3510 |
| 3525 | 3511 |
| 3526 /** Not documented yet. */ | |
| 3527 class PersonOrganizations { | 3512 class PersonOrganizations { |
| 3528 /** The department within the organization. Deprecated. */ | 3513 /** The department within the organization. Deprecated. */ |
| 3529 core.String department; | 3514 core.String department; |
| 3530 | 3515 |
| 3531 /** | 3516 /** |
| 3532 * A short description of the person's role in this organization. Deprecated. | 3517 * A short description of the person's role in this organization. Deprecated. |
| 3533 */ | 3518 */ |
| 3534 core.String description; | 3519 core.String description; |
| 3535 | 3520 |
| 3536 /** The date that the person left this organization. */ | 3521 /** The date that the person left this organization. */ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3622 _json["title"] = title; | 3607 _json["title"] = title; |
| 3623 } | 3608 } |
| 3624 if (type != null) { | 3609 if (type != null) { |
| 3625 _json["type"] = type; | 3610 _json["type"] = type; |
| 3626 } | 3611 } |
| 3627 return _json; | 3612 return _json; |
| 3628 } | 3613 } |
| 3629 } | 3614 } |
| 3630 | 3615 |
| 3631 | 3616 |
| 3632 /** Not documented yet. */ | |
| 3633 class PersonPlacesLived { | 3617 class PersonPlacesLived { |
| 3634 /** If "true", this place of residence is this person's primary residence. */ | 3618 /** If "true", this place of residence is this person's primary residence. */ |
| 3635 core.bool primary; | 3619 core.bool primary; |
| 3636 | 3620 |
| 3637 /** | 3621 /** |
| 3638 * A place where this person has lived. For example: "Seattle, WA", "Near | 3622 * A place where this person has lived. For example: "Seattle, WA", "Near |
| 3639 * Toronto". | 3623 * Toronto". |
| 3640 */ | 3624 */ |
| 3641 core.String value; | 3625 core.String value; |
| 3642 | 3626 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3658 _json["primary"] = primary; | 3642 _json["primary"] = primary; |
| 3659 } | 3643 } |
| 3660 if (value != null) { | 3644 if (value != null) { |
| 3661 _json["value"] = value; | 3645 _json["value"] = value; |
| 3662 } | 3646 } |
| 3663 return _json; | 3647 return _json; |
| 3664 } | 3648 } |
| 3665 } | 3649 } |
| 3666 | 3650 |
| 3667 | 3651 |
| 3668 /** Not documented yet. */ | |
| 3669 class PersonUrls { | 3652 class PersonUrls { |
| 3670 /** The label of the URL. */ | 3653 /** The label of the URL. */ |
| 3671 core.String label; | 3654 core.String label; |
| 3672 | 3655 |
| 3673 /** | 3656 /** |
| 3674 * The type of URL. Possible values include, but are not limited to, the | 3657 * The type of URL. Possible values include, but are not limited to, the |
| 3675 * following values: | 3658 * following values: |
| 3676 * - "otherProfile" - URL for another profile. | 3659 * - "otherProfile" - URL for another profile. |
| 3677 * - "contributor" - URL to a site for which this person is a contributor. | 3660 * - "contributor" - URL to a site for which this person is a contributor. |
| 3678 * - "website" - URL for this Google+ Page's primary website. | 3661 * - "website" - URL for this Google+ Page's primary website. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3707 _json["type"] = type; | 3690 _json["type"] = type; |
| 3708 } | 3691 } |
| 3709 if (value != null) { | 3692 if (value != null) { |
| 3710 _json["value"] = value; | 3693 _json["value"] = value; |
| 3711 } | 3694 } |
| 3712 return _json; | 3695 return _json; |
| 3713 } | 3696 } |
| 3714 } | 3697 } |
| 3715 | 3698 |
| 3716 | 3699 |
| 3717 /** Not documented yet. */ | |
| 3718 class Person { | 3700 class Person { |
| 3719 /** A short biography for this person. */ | 3701 /** A short biography for this person. */ |
| 3720 core.String aboutMe; | 3702 core.String aboutMe; |
| 3721 | 3703 |
| 3722 /** | 3704 /** |
| 3723 * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and | 3705 * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and |
| 3724 * 21 or older. Age is determined from the user's birthday using Western age | 3706 * 21 or older. Age is determined from the user's birthday using Western age |
| 3725 * reckoning. | 3707 * reckoning. |
| 3726 */ | 3708 */ |
| 3727 PersonAgeRange ageRange; | 3709 PersonAgeRange ageRange; |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4094 _json["latitude"] = latitude; | 4076 _json["latitude"] = latitude; |
| 4095 } | 4077 } |
| 4096 if (longitude != null) { | 4078 if (longitude != null) { |
| 4097 _json["longitude"] = longitude; | 4079 _json["longitude"] = longitude; |
| 4098 } | 4080 } |
| 4099 return _json; | 4081 return _json; |
| 4100 } | 4082 } |
| 4101 } | 4083 } |
| 4102 | 4084 |
| 4103 | 4085 |
| 4104 /** Not documented yet. */ | |
| 4105 class Place { | 4086 class Place { |
| 4106 /** The physical address of the place. */ | 4087 /** The physical address of the place. */ |
| 4107 PlaceAddress address; | 4088 PlaceAddress address; |
| 4108 | 4089 |
| 4109 /** The display name of the place. */ | 4090 /** The display name of the place. */ |
| 4110 core.String displayName; | 4091 core.String displayName; |
| 4111 | 4092 |
| 4112 /** The id of the place. */ | 4093 /** The id of the place. */ |
| 4113 core.String id; | 4094 core.String id; |
| 4114 | 4095 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4154 _json["kind"] = kind; | 4135 _json["kind"] = kind; |
| 4155 } | 4136 } |
| 4156 if (position != null) { | 4137 if (position != null) { |
| 4157 _json["position"] = (position).toJson(); | 4138 _json["position"] = (position).toJson(); |
| 4158 } | 4139 } |
| 4159 return _json; | 4140 return _json; |
| 4160 } | 4141 } |
| 4161 } | 4142 } |
| 4162 | 4143 |
| 4163 | 4144 |
| 4164 /** Not documented yet. */ | |
| 4165 class PlusAclentryResource { | 4145 class PlusAclentryResource { |
| 4166 /** A descriptive name for this entry. Suitable for display. */ | 4146 /** A descriptive name for this entry. Suitable for display. */ |
| 4167 core.String displayName; | 4147 core.String displayName; |
| 4168 | 4148 |
| 4169 /** | 4149 /** |
| 4170 * The ID of the entry. For entries of type "person" or "circle", this is the | 4150 * The ID of the entry. For entries of type "person" or "circle", this is the |
| 4171 * ID of the resource. For other types, this property is not set. | 4151 * ID of the resource. For other types, this property is not set. |
| 4172 */ | 4152 */ |
| 4173 core.String id; | 4153 core.String id; |
| 4174 | 4154 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4207 } | 4187 } |
| 4208 if (id != null) { | 4188 if (id != null) { |
| 4209 _json["id"] = id; | 4189 _json["id"] = id; |
| 4210 } | 4190 } |
| 4211 if (type != null) { | 4191 if (type != null) { |
| 4212 _json["type"] = type; | 4192 _json["type"] = type; |
| 4213 } | 4193 } |
| 4214 return _json; | 4194 return _json; |
| 4215 } | 4195 } |
| 4216 } | 4196 } |
| 4217 | |
| 4218 | |
| OLD | NEW |