OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.calendar.v3; | 3 library googleapis.calendar.v3; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
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 calendar/v3'; |
15 | 18 |
16 /** Lets you manipulate events and other calendar data. */ | 19 /** Lets you manipulate events and other calendar data. */ |
17 class CalendarApi { | 20 class CalendarApi { |
18 /** Manage your calendars */ | 21 /** Manage your calendars */ |
19 static const CalendarScope = "https://www.googleapis.com/auth/calendar"; | 22 static const CalendarScope = "https://www.googleapis.com/auth/calendar"; |
20 | 23 |
21 /** View your calendars */ | 24 /** View your calendars */ |
22 static const CalendarReadonlyScope = "https://www.googleapis.com/auth/calendar
.readonly"; | 25 static const CalendarReadonlyScope = "https://www.googleapis.com/auth/calendar
.readonly"; |
23 | 26 |
24 | 27 |
25 final common_internal.ApiRequester _requester; | 28 final commons.ApiRequester _requester; |
26 | 29 |
27 AclResourceApi get acl => new AclResourceApi(_requester); | 30 AclResourceApi get acl => new AclResourceApi(_requester); |
28 CalendarListResourceApi get calendarList => new CalendarListResourceApi(_reque
ster); | 31 CalendarListResourceApi get calendarList => new CalendarListResourceApi(_reque
ster); |
29 CalendarsResourceApi get calendars => new CalendarsResourceApi(_requester); | 32 CalendarsResourceApi get calendars => new CalendarsResourceApi(_requester); |
30 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); | 33 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); |
31 ColorsResourceApi get colors => new ColorsResourceApi(_requester); | 34 ColorsResourceApi get colors => new ColorsResourceApi(_requester); |
32 EventsResourceApi get events => new EventsResourceApi(_requester); | 35 EventsResourceApi get events => new EventsResourceApi(_requester); |
33 FreebusyResourceApi get freebusy => new FreebusyResourceApi(_requester); | 36 FreebusyResourceApi get freebusy => new FreebusyResourceApi(_requester); |
34 SettingsResourceApi get settings => new SettingsResourceApi(_requester); | 37 SettingsResourceApi get settings => new SettingsResourceApi(_requester); |
35 | 38 |
36 CalendarApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "calendar/v3/"}) : | 39 CalendarApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "calendar/v3/"}) : |
37 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
38 } | 41 } |
39 | 42 |
40 | 43 |
41 /** Not documented yet. */ | |
42 class AclResourceApi { | 44 class AclResourceApi { |
43 final common_internal.ApiRequester _requester; | 45 final commons.ApiRequester _requester; |
44 | 46 |
45 AclResourceApi(common_internal.ApiRequester client) : | 47 AclResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 48 _requester = client; |
47 | 49 |
48 /** | 50 /** |
49 * Deletes an access control rule. | 51 * Deletes an access control rule. |
50 * | 52 * |
51 * Request parameters: | 53 * Request parameters: |
52 * | 54 * |
53 * [calendarId] - Calendar identifier. | 55 * [calendarId] - Calendar identifier. |
54 * | 56 * |
55 * [ruleId] - ACL rule identifier. | 57 * [ruleId] - ACL rule identifier. |
56 * | 58 * |
57 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 59 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
58 * error. | 60 * error. |
59 * | 61 * |
60 * If the used [http.Client] completes with an error when making a REST call, | 62 * If the used [http.Client] completes with an error when making a REST call, |
61 * this method will complete with the same error. | 63 * this method will complete with the same error. |
62 */ | 64 */ |
63 async.Future delete(core.String calendarId, core.String ruleId) { | 65 async.Future delete(core.String calendarId, core.String ruleId) { |
64 var _url = null; | 66 var _url = null; |
65 var _queryParams = new core.Map(); | 67 var _queryParams = new core.Map(); |
66 var _uploadMedia = null; | 68 var _uploadMedia = null; |
67 var _uploadOptions = null; | 69 var _uploadOptions = null; |
68 var _downloadOptions = common.DownloadOptions.Metadata; | 70 var _downloadOptions = commons.DownloadOptions.Metadata; |
69 var _body = null; | 71 var _body = null; |
70 | 72 |
71 if (calendarId == null) { | 73 if (calendarId == null) { |
72 throw new core.ArgumentError("Parameter calendarId is required."); | 74 throw new core.ArgumentError("Parameter calendarId is required."); |
73 } | 75 } |
74 if (ruleId == null) { | 76 if (ruleId == null) { |
75 throw new core.ArgumentError("Parameter ruleId is required."); | 77 throw new core.ArgumentError("Parameter ruleId is required."); |
76 } | 78 } |
77 | 79 |
78 _downloadOptions = null; | 80 _downloadOptions = null; |
79 | 81 |
80 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl/' + common_internal.Escaper.ecapeVariable('$ruleId'); | 82 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl/'
+ commons.Escaper.ecapeVariable('$ruleId'); |
81 | 83 |
82 var _response = _requester.request(_url, | 84 var _response = _requester.request(_url, |
83 "DELETE", | 85 "DELETE", |
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) => null); | 91 return _response.then((data) => null); |
90 } | 92 } |
91 | 93 |
92 /** | 94 /** |
93 * Returns an access control rule. | 95 * Returns an access control rule. |
94 * | 96 * |
95 * Request parameters: | 97 * Request parameters: |
96 * | 98 * |
97 * [calendarId] - Calendar identifier. | 99 * [calendarId] - Calendar identifier. |
98 * | 100 * |
99 * [ruleId] - ACL rule identifier. | 101 * [ruleId] - ACL rule identifier. |
100 * | 102 * |
101 * Completes with a [AclRule]. | 103 * Completes with a [AclRule]. |
102 * | 104 * |
103 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 105 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
104 * error. | 106 * error. |
105 * | 107 * |
106 * If the used [http.Client] completes with an error when making a REST call, | 108 * If the used [http.Client] completes with an error when making a REST call, |
107 * this method will complete with the same error. | 109 * this method will complete with the same error. |
108 */ | 110 */ |
109 async.Future<AclRule> get(core.String calendarId, core.String ruleId) { | 111 async.Future<AclRule> get(core.String calendarId, core.String ruleId) { |
110 var _url = null; | 112 var _url = null; |
111 var _queryParams = new core.Map(); | 113 var _queryParams = new core.Map(); |
112 var _uploadMedia = null; | 114 var _uploadMedia = null; |
113 var _uploadOptions = null; | 115 var _uploadOptions = null; |
114 var _downloadOptions = common.DownloadOptions.Metadata; | 116 var _downloadOptions = commons.DownloadOptions.Metadata; |
115 var _body = null; | 117 var _body = null; |
116 | 118 |
117 if (calendarId == null) { | 119 if (calendarId == null) { |
118 throw new core.ArgumentError("Parameter calendarId is required."); | 120 throw new core.ArgumentError("Parameter calendarId is required."); |
119 } | 121 } |
120 if (ruleId == null) { | 122 if (ruleId == null) { |
121 throw new core.ArgumentError("Parameter ruleId is required."); | 123 throw new core.ArgumentError("Parameter ruleId is required."); |
122 } | 124 } |
123 | 125 |
124 | 126 |
125 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl/' + common_internal.Escaper.ecapeVariable('$ruleId'); | 127 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl/'
+ commons.Escaper.ecapeVariable('$ruleId'); |
126 | 128 |
127 var _response = _requester.request(_url, | 129 var _response = _requester.request(_url, |
128 "GET", | 130 "GET", |
129 body: _body, | 131 body: _body, |
130 queryParams: _queryParams, | 132 queryParams: _queryParams, |
131 uploadOptions: _uploadOptions, | 133 uploadOptions: _uploadOptions, |
132 uploadMedia: _uploadMedia, | 134 uploadMedia: _uploadMedia, |
133 downloadOptions: _downloadOptions); | 135 downloadOptions: _downloadOptions); |
134 return _response.then((data) => new AclRule.fromJson(data)); | 136 return _response.then((data) => new AclRule.fromJson(data)); |
135 } | 137 } |
136 | 138 |
137 /** | 139 /** |
138 * Creates an access control rule. | 140 * Creates an access control rule. |
139 * | 141 * |
140 * [request] - The metadata request object. | 142 * [request] - The metadata request object. |
141 * | 143 * |
142 * Request parameters: | 144 * Request parameters: |
143 * | 145 * |
144 * [calendarId] - Calendar identifier. | 146 * [calendarId] - Calendar identifier. |
145 * | 147 * |
146 * Completes with a [AclRule]. | 148 * Completes with a [AclRule]. |
147 * | 149 * |
148 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 150 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
149 * error. | 151 * error. |
150 * | 152 * |
151 * If the used [http.Client] completes with an error when making a REST call, | 153 * If the used [http.Client] completes with an error when making a REST call, |
152 * this method will complete with the same error. | 154 * this method will complete with the same error. |
153 */ | 155 */ |
154 async.Future<AclRule> insert(AclRule request, core.String calendarId) { | 156 async.Future<AclRule> insert(AclRule request, core.String calendarId) { |
155 var _url = null; | 157 var _url = null; |
156 var _queryParams = new core.Map(); | 158 var _queryParams = new core.Map(); |
157 var _uploadMedia = null; | 159 var _uploadMedia = null; |
158 var _uploadOptions = null; | 160 var _uploadOptions = null; |
159 var _downloadOptions = common.DownloadOptions.Metadata; | 161 var _downloadOptions = commons.DownloadOptions.Metadata; |
160 var _body = null; | 162 var _body = null; |
161 | 163 |
162 if (request != null) { | 164 if (request != null) { |
163 _body = convert.JSON.encode((request).toJson()); | 165 _body = convert.JSON.encode((request).toJson()); |
164 } | 166 } |
165 if (calendarId == null) { | 167 if (calendarId == null) { |
166 throw new core.ArgumentError("Parameter calendarId is required."); | 168 throw new core.ArgumentError("Parameter calendarId is required."); |
167 } | 169 } |
168 | 170 |
169 | 171 |
170 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl'; | 172 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl'; |
171 | 173 |
172 var _response = _requester.request(_url, | 174 var _response = _requester.request(_url, |
173 "POST", | 175 "POST", |
174 body: _body, | 176 body: _body, |
175 queryParams: _queryParams, | 177 queryParams: _queryParams, |
176 uploadOptions: _uploadOptions, | 178 uploadOptions: _uploadOptions, |
177 uploadMedia: _uploadMedia, | 179 uploadMedia: _uploadMedia, |
178 downloadOptions: _downloadOptions); | 180 downloadOptions: _downloadOptions); |
179 return _response.then((data) => new AclRule.fromJson(data)); | 181 return _response.then((data) => new AclRule.fromJson(data)); |
180 } | 182 } |
(...skipping 21 matching lines...) Expand all Loading... |
202 * entries deleted since the previous list request will always be in the | 204 * entries deleted since the previous list request will always be in the |
203 * result set and it is not allowed to set showDeleted to False. | 205 * result set and it is not allowed to set showDeleted to False. |
204 * If the syncToken expires, the server will respond with a 410 GONE response | 206 * If the syncToken expires, the server will respond with a 410 GONE response |
205 * code and the client should clear its storage and perform a full | 207 * code and the client should clear its storage and perform a full |
206 * synchronization without any syncToken. | 208 * synchronization without any syncToken. |
207 * Learn more about incremental synchronization. | 209 * Learn more about incremental synchronization. |
208 * Optional. The default is to return all entries. | 210 * Optional. The default is to return all entries. |
209 * | 211 * |
210 * Completes with a [Acl]. | 212 * Completes with a [Acl]. |
211 * | 213 * |
212 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
213 * error. | 215 * error. |
214 * | 216 * |
215 * If the used [http.Client] completes with an error when making a REST call, | 217 * If the used [http.Client] completes with an error when making a REST call, |
216 * this method will complete with the same error. | 218 * this method will complete with the same error. |
217 */ | 219 */ |
218 async.Future<Acl> list(core.String calendarId, {core.int maxResults, core.Stri
ng pageToken, core.bool showDeleted, core.String syncToken}) { | 220 async.Future<Acl> list(core.String calendarId, {core.int maxResults, core.Stri
ng pageToken, core.bool showDeleted, core.String syncToken}) { |
219 var _url = null; | 221 var _url = null; |
220 var _queryParams = new core.Map(); | 222 var _queryParams = new core.Map(); |
221 var _uploadMedia = null; | 223 var _uploadMedia = null; |
222 var _uploadOptions = null; | 224 var _uploadOptions = null; |
223 var _downloadOptions = common.DownloadOptions.Metadata; | 225 var _downloadOptions = commons.DownloadOptions.Metadata; |
224 var _body = null; | 226 var _body = null; |
225 | 227 |
226 if (calendarId == null) { | 228 if (calendarId == null) { |
227 throw new core.ArgumentError("Parameter calendarId is required."); | 229 throw new core.ArgumentError("Parameter calendarId is required."); |
228 } | 230 } |
229 if (maxResults != null) { | 231 if (maxResults != null) { |
230 _queryParams["maxResults"] = ["${maxResults}"]; | 232 _queryParams["maxResults"] = ["${maxResults}"]; |
231 } | 233 } |
232 if (pageToken != null) { | 234 if (pageToken != null) { |
233 _queryParams["pageToken"] = [pageToken]; | 235 _queryParams["pageToken"] = [pageToken]; |
234 } | 236 } |
235 if (showDeleted != null) { | 237 if (showDeleted != null) { |
236 _queryParams["showDeleted"] = ["${showDeleted}"]; | 238 _queryParams["showDeleted"] = ["${showDeleted}"]; |
237 } | 239 } |
238 if (syncToken != null) { | 240 if (syncToken != null) { |
239 _queryParams["syncToken"] = [syncToken]; | 241 _queryParams["syncToken"] = [syncToken]; |
240 } | 242 } |
241 | 243 |
242 | 244 |
243 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl'; | 245 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl'; |
244 | 246 |
245 var _response = _requester.request(_url, | 247 var _response = _requester.request(_url, |
246 "GET", | 248 "GET", |
247 body: _body, | 249 body: _body, |
248 queryParams: _queryParams, | 250 queryParams: _queryParams, |
249 uploadOptions: _uploadOptions, | 251 uploadOptions: _uploadOptions, |
250 uploadMedia: _uploadMedia, | 252 uploadMedia: _uploadMedia, |
251 downloadOptions: _downloadOptions); | 253 downloadOptions: _downloadOptions); |
252 return _response.then((data) => new Acl.fromJson(data)); | 254 return _response.then((data) => new Acl.fromJson(data)); |
253 } | 255 } |
254 | 256 |
255 /** | 257 /** |
256 * Updates an access control rule. This method supports patch semantics. | 258 * Updates an access control rule. This method supports patch semantics. |
257 * | 259 * |
258 * [request] - The metadata request object. | 260 * [request] - The metadata request object. |
259 * | 261 * |
260 * Request parameters: | 262 * Request parameters: |
261 * | 263 * |
262 * [calendarId] - Calendar identifier. | 264 * [calendarId] - Calendar identifier. |
263 * | 265 * |
264 * [ruleId] - ACL rule identifier. | 266 * [ruleId] - ACL rule identifier. |
265 * | 267 * |
266 * Completes with a [AclRule]. | 268 * Completes with a [AclRule]. |
267 * | 269 * |
268 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
269 * error. | 271 * error. |
270 * | 272 * |
271 * If the used [http.Client] completes with an error when making a REST call, | 273 * If the used [http.Client] completes with an error when making a REST call, |
272 * this method will complete with the same error. | 274 * this method will complete with the same error. |
273 */ | 275 */ |
274 async.Future<AclRule> patch(AclRule request, core.String calendarId, core.Stri
ng ruleId) { | 276 async.Future<AclRule> patch(AclRule request, core.String calendarId, core.Stri
ng ruleId) { |
275 var _url = null; | 277 var _url = null; |
276 var _queryParams = new core.Map(); | 278 var _queryParams = new core.Map(); |
277 var _uploadMedia = null; | 279 var _uploadMedia = null; |
278 var _uploadOptions = null; | 280 var _uploadOptions = null; |
279 var _downloadOptions = common.DownloadOptions.Metadata; | 281 var _downloadOptions = commons.DownloadOptions.Metadata; |
280 var _body = null; | 282 var _body = null; |
281 | 283 |
282 if (request != null) { | 284 if (request != null) { |
283 _body = convert.JSON.encode((request).toJson()); | 285 _body = convert.JSON.encode((request).toJson()); |
284 } | 286 } |
285 if (calendarId == null) { | 287 if (calendarId == null) { |
286 throw new core.ArgumentError("Parameter calendarId is required."); | 288 throw new core.ArgumentError("Parameter calendarId is required."); |
287 } | 289 } |
288 if (ruleId == null) { | 290 if (ruleId == null) { |
289 throw new core.ArgumentError("Parameter ruleId is required."); | 291 throw new core.ArgumentError("Parameter ruleId is required."); |
290 } | 292 } |
291 | 293 |
292 | 294 |
293 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl/' + common_internal.Escaper.ecapeVariable('$ruleId'); | 295 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl/'
+ commons.Escaper.ecapeVariable('$ruleId'); |
294 | 296 |
295 var _response = _requester.request(_url, | 297 var _response = _requester.request(_url, |
296 "PATCH", | 298 "PATCH", |
297 body: _body, | 299 body: _body, |
298 queryParams: _queryParams, | 300 queryParams: _queryParams, |
299 uploadOptions: _uploadOptions, | 301 uploadOptions: _uploadOptions, |
300 uploadMedia: _uploadMedia, | 302 uploadMedia: _uploadMedia, |
301 downloadOptions: _downloadOptions); | 303 downloadOptions: _downloadOptions); |
302 return _response.then((data) => new AclRule.fromJson(data)); | 304 return _response.then((data) => new AclRule.fromJson(data)); |
303 } | 305 } |
304 | 306 |
305 /** | 307 /** |
306 * Updates an access control rule. | 308 * Updates an access control rule. |
307 * | 309 * |
308 * [request] - The metadata request object. | 310 * [request] - The metadata request object. |
309 * | 311 * |
310 * Request parameters: | 312 * Request parameters: |
311 * | 313 * |
312 * [calendarId] - Calendar identifier. | 314 * [calendarId] - Calendar identifier. |
313 * | 315 * |
314 * [ruleId] - ACL rule identifier. | 316 * [ruleId] - ACL rule identifier. |
315 * | 317 * |
316 * Completes with a [AclRule]. | 318 * Completes with a [AclRule]. |
317 * | 319 * |
318 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 320 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
319 * error. | 321 * error. |
320 * | 322 * |
321 * If the used [http.Client] completes with an error when making a REST call, | 323 * If the used [http.Client] completes with an error when making a REST call, |
322 * this method will complete with the same error. | 324 * this method will complete with the same error. |
323 */ | 325 */ |
324 async.Future<AclRule> update(AclRule request, core.String calendarId, core.Str
ing ruleId) { | 326 async.Future<AclRule> update(AclRule request, core.String calendarId, core.Str
ing ruleId) { |
325 var _url = null; | 327 var _url = null; |
326 var _queryParams = new core.Map(); | 328 var _queryParams = new core.Map(); |
327 var _uploadMedia = null; | 329 var _uploadMedia = null; |
328 var _uploadOptions = null; | 330 var _uploadOptions = null; |
329 var _downloadOptions = common.DownloadOptions.Metadata; | 331 var _downloadOptions = commons.DownloadOptions.Metadata; |
330 var _body = null; | 332 var _body = null; |
331 | 333 |
332 if (request != null) { | 334 if (request != null) { |
333 _body = convert.JSON.encode((request).toJson()); | 335 _body = convert.JSON.encode((request).toJson()); |
334 } | 336 } |
335 if (calendarId == null) { | 337 if (calendarId == null) { |
336 throw new core.ArgumentError("Parameter calendarId is required."); | 338 throw new core.ArgumentError("Parameter calendarId is required."); |
337 } | 339 } |
338 if (ruleId == null) { | 340 if (ruleId == null) { |
339 throw new core.ArgumentError("Parameter ruleId is required."); | 341 throw new core.ArgumentError("Parameter ruleId is required."); |
340 } | 342 } |
341 | 343 |
342 | 344 |
343 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl/' + common_internal.Escaper.ecapeVariable('$ruleId'); | 345 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl/'
+ commons.Escaper.ecapeVariable('$ruleId'); |
344 | 346 |
345 var _response = _requester.request(_url, | 347 var _response = _requester.request(_url, |
346 "PUT", | 348 "PUT", |
347 body: _body, | 349 body: _body, |
348 queryParams: _queryParams, | 350 queryParams: _queryParams, |
349 uploadOptions: _uploadOptions, | 351 uploadOptions: _uploadOptions, |
350 uploadMedia: _uploadMedia, | 352 uploadMedia: _uploadMedia, |
351 downloadOptions: _downloadOptions); | 353 downloadOptions: _downloadOptions); |
352 return _response.then((data) => new AclRule.fromJson(data)); | 354 return _response.then((data) => new AclRule.fromJson(data)); |
353 } | 355 } |
(...skipping 23 matching lines...) Expand all Loading... |
377 * entries deleted since the previous list request will always be in the | 379 * entries deleted since the previous list request will always be in the |
378 * result set and it is not allowed to set showDeleted to False. | 380 * result set and it is not allowed to set showDeleted to False. |
379 * If the syncToken expires, the server will respond with a 410 GONE response | 381 * If the syncToken expires, the server will respond with a 410 GONE response |
380 * code and the client should clear its storage and perform a full | 382 * code and the client should clear its storage and perform a full |
381 * synchronization without any syncToken. | 383 * synchronization without any syncToken. |
382 * Learn more about incremental synchronization. | 384 * Learn more about incremental synchronization. |
383 * Optional. The default is to return all entries. | 385 * Optional. The default is to return all entries. |
384 * | 386 * |
385 * Completes with a [Channel]. | 387 * Completes with a [Channel]. |
386 * | 388 * |
387 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
388 * error. | 390 * error. |
389 * | 391 * |
390 * If the used [http.Client] completes with an error when making a REST call, | 392 * If the used [http.Client] completes with an error when making a REST call, |
391 * this method will complete with the same error. | 393 * this method will complete with the same error. |
392 */ | 394 */ |
393 async.Future<Channel> watch(Channel request, core.String calendarId, {core.int
maxResults, core.String pageToken, core.bool showDeleted, core.String syncToken
}) { | 395 async.Future<Channel> watch(Channel request, core.String calendarId, {core.int
maxResults, core.String pageToken, core.bool showDeleted, core.String syncToken
}) { |
394 var _url = null; | 396 var _url = null; |
395 var _queryParams = new core.Map(); | 397 var _queryParams = new core.Map(); |
396 var _uploadMedia = null; | 398 var _uploadMedia = null; |
397 var _uploadOptions = null; | 399 var _uploadOptions = null; |
398 var _downloadOptions = common.DownloadOptions.Metadata; | 400 var _downloadOptions = commons.DownloadOptions.Metadata; |
399 var _body = null; | 401 var _body = null; |
400 | 402 |
401 if (request != null) { | 403 if (request != null) { |
402 _body = convert.JSON.encode((request).toJson()); | 404 _body = convert.JSON.encode((request).toJson()); |
403 } | 405 } |
404 if (calendarId == null) { | 406 if (calendarId == null) { |
405 throw new core.ArgumentError("Parameter calendarId is required."); | 407 throw new core.ArgumentError("Parameter calendarId is required."); |
406 } | 408 } |
407 if (maxResults != null) { | 409 if (maxResults != null) { |
408 _queryParams["maxResults"] = ["${maxResults}"]; | 410 _queryParams["maxResults"] = ["${maxResults}"]; |
409 } | 411 } |
410 if (pageToken != null) { | 412 if (pageToken != null) { |
411 _queryParams["pageToken"] = [pageToken]; | 413 _queryParams["pageToken"] = [pageToken]; |
412 } | 414 } |
413 if (showDeleted != null) { | 415 if (showDeleted != null) { |
414 _queryParams["showDeleted"] = ["${showDeleted}"]; | 416 _queryParams["showDeleted"] = ["${showDeleted}"]; |
415 } | 417 } |
416 if (syncToken != null) { | 418 if (syncToken != null) { |
417 _queryParams["syncToken"] = [syncToken]; | 419 _queryParams["syncToken"] = [syncToken]; |
418 } | 420 } |
419 | 421 |
420 | 422 |
421 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/acl/watch'; | 423 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/acl/w
atch'; |
422 | 424 |
423 var _response = _requester.request(_url, | 425 var _response = _requester.request(_url, |
424 "POST", | 426 "POST", |
425 body: _body, | 427 body: _body, |
426 queryParams: _queryParams, | 428 queryParams: _queryParams, |
427 uploadOptions: _uploadOptions, | 429 uploadOptions: _uploadOptions, |
428 uploadMedia: _uploadMedia, | 430 uploadMedia: _uploadMedia, |
429 downloadOptions: _downloadOptions); | 431 downloadOptions: _downloadOptions); |
430 return _response.then((data) => new Channel.fromJson(data)); | 432 return _response.then((data) => new Channel.fromJson(data)); |
431 } | 433 } |
432 | 434 |
433 } | 435 } |
434 | 436 |
435 | 437 |
436 /** Not documented yet. */ | |
437 class CalendarListResourceApi { | 438 class CalendarListResourceApi { |
438 final common_internal.ApiRequester _requester; | 439 final commons.ApiRequester _requester; |
439 | 440 |
440 CalendarListResourceApi(common_internal.ApiRequester client) : | 441 CalendarListResourceApi(commons.ApiRequester client) : |
441 _requester = client; | 442 _requester = client; |
442 | 443 |
443 /** | 444 /** |
444 * Deletes an entry on the user's calendar list. | 445 * Deletes an entry on the user's calendar list. |
445 * | 446 * |
446 * Request parameters: | 447 * Request parameters: |
447 * | 448 * |
448 * [calendarId] - Calendar identifier. | 449 * [calendarId] - Calendar identifier. |
449 * | 450 * |
450 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
451 * error. | 452 * error. |
452 * | 453 * |
453 * If the used [http.Client] completes with an error when making a REST call, | 454 * If the used [http.Client] completes with an error when making a REST call, |
454 * this method will complete with the same error. | 455 * this method will complete with the same error. |
455 */ | 456 */ |
456 async.Future delete(core.String calendarId) { | 457 async.Future delete(core.String calendarId) { |
457 var _url = null; | 458 var _url = null; |
458 var _queryParams = new core.Map(); | 459 var _queryParams = new core.Map(); |
459 var _uploadMedia = null; | 460 var _uploadMedia = null; |
460 var _uploadOptions = null; | 461 var _uploadOptions = null; |
461 var _downloadOptions = common.DownloadOptions.Metadata; | 462 var _downloadOptions = commons.DownloadOptions.Metadata; |
462 var _body = null; | 463 var _body = null; |
463 | 464 |
464 if (calendarId == null) { | 465 if (calendarId == null) { |
465 throw new core.ArgumentError("Parameter calendarId is required."); | 466 throw new core.ArgumentError("Parameter calendarId is required."); |
466 } | 467 } |
467 | 468 |
468 _downloadOptions = null; | 469 _downloadOptions = null; |
469 | 470 |
470 _url = 'users/me/calendarList/' + common_internal.Escaper.ecapeVariable('$ca
lendarId'); | 471 _url = 'users/me/calendarList/' + commons.Escaper.ecapeVariable('$calendarId
'); |
471 | 472 |
472 var _response = _requester.request(_url, | 473 var _response = _requester.request(_url, |
473 "DELETE", | 474 "DELETE", |
474 body: _body, | 475 body: _body, |
475 queryParams: _queryParams, | 476 queryParams: _queryParams, |
476 uploadOptions: _uploadOptions, | 477 uploadOptions: _uploadOptions, |
477 uploadMedia: _uploadMedia, | 478 uploadMedia: _uploadMedia, |
478 downloadOptions: _downloadOptions); | 479 downloadOptions: _downloadOptions); |
479 return _response.then((data) => null); | 480 return _response.then((data) => null); |
480 } | 481 } |
481 | 482 |
482 /** | 483 /** |
483 * Returns an entry on the user's calendar list. | 484 * Returns an entry on the user's calendar list. |
484 * | 485 * |
485 * Request parameters: | 486 * Request parameters: |
486 * | 487 * |
487 * [calendarId] - Calendar identifier. | 488 * [calendarId] - Calendar identifier. |
488 * | 489 * |
489 * Completes with a [CalendarListEntry]. | 490 * Completes with a [CalendarListEntry]. |
490 * | 491 * |
491 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 492 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
492 * error. | 493 * error. |
493 * | 494 * |
494 * If the used [http.Client] completes with an error when making a REST call, | 495 * If the used [http.Client] completes with an error when making a REST call, |
495 * this method will complete with the same error. | 496 * this method will complete with the same error. |
496 */ | 497 */ |
497 async.Future<CalendarListEntry> get(core.String calendarId) { | 498 async.Future<CalendarListEntry> get(core.String calendarId) { |
498 var _url = null; | 499 var _url = null; |
499 var _queryParams = new core.Map(); | 500 var _queryParams = new core.Map(); |
500 var _uploadMedia = null; | 501 var _uploadMedia = null; |
501 var _uploadOptions = null; | 502 var _uploadOptions = null; |
502 var _downloadOptions = common.DownloadOptions.Metadata; | 503 var _downloadOptions = commons.DownloadOptions.Metadata; |
503 var _body = null; | 504 var _body = null; |
504 | 505 |
505 if (calendarId == null) { | 506 if (calendarId == null) { |
506 throw new core.ArgumentError("Parameter calendarId is required."); | 507 throw new core.ArgumentError("Parameter calendarId is required."); |
507 } | 508 } |
508 | 509 |
509 | 510 |
510 _url = 'users/me/calendarList/' + common_internal.Escaper.ecapeVariable('$ca
lendarId'); | 511 _url = 'users/me/calendarList/' + commons.Escaper.ecapeVariable('$calendarId
'); |
511 | 512 |
512 var _response = _requester.request(_url, | 513 var _response = _requester.request(_url, |
513 "GET", | 514 "GET", |
514 body: _body, | 515 body: _body, |
515 queryParams: _queryParams, | 516 queryParams: _queryParams, |
516 uploadOptions: _uploadOptions, | 517 uploadOptions: _uploadOptions, |
517 uploadMedia: _uploadMedia, | 518 uploadMedia: _uploadMedia, |
518 downloadOptions: _downloadOptions); | 519 downloadOptions: _downloadOptions); |
519 return _response.then((data) => new CalendarListEntry.fromJson(data)); | 520 return _response.then((data) => new CalendarListEntry.fromJson(data)); |
520 } | 521 } |
521 | 522 |
522 /** | 523 /** |
523 * Adds an entry to the user's calendar list. | 524 * Adds an entry to the user's calendar list. |
524 * | 525 * |
525 * [request] - The metadata request object. | 526 * [request] - The metadata request object. |
526 * | 527 * |
527 * Request parameters: | 528 * Request parameters: |
528 * | 529 * |
529 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor | 530 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor |
530 * fields to write the calendar colors (RGB). If this feature is used, the | 531 * fields to write the calendar colors (RGB). If this feature is used, the |
531 * index-based colorId field will be set to the best matching option | 532 * index-based colorId field will be set to the best matching option |
532 * automatically. Optional. The default is False. | 533 * automatically. Optional. The default is False. |
533 * | 534 * |
534 * Completes with a [CalendarListEntry]. | 535 * Completes with a [CalendarListEntry]. |
535 * | 536 * |
536 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 537 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
537 * error. | 538 * error. |
538 * | 539 * |
539 * If the used [http.Client] completes with an error when making a REST call, | 540 * If the used [http.Client] completes with an error when making a REST call, |
540 * this method will complete with the same error. | 541 * this method will complete with the same error. |
541 */ | 542 */ |
542 async.Future<CalendarListEntry> insert(CalendarListEntry request, {core.bool c
olorRgbFormat}) { | 543 async.Future<CalendarListEntry> insert(CalendarListEntry request, {core.bool c
olorRgbFormat}) { |
543 var _url = null; | 544 var _url = null; |
544 var _queryParams = new core.Map(); | 545 var _queryParams = new core.Map(); |
545 var _uploadMedia = null; | 546 var _uploadMedia = null; |
546 var _uploadOptions = null; | 547 var _uploadOptions = null; |
547 var _downloadOptions = common.DownloadOptions.Metadata; | 548 var _downloadOptions = commons.DownloadOptions.Metadata; |
548 var _body = null; | 549 var _body = null; |
549 | 550 |
550 if (request != null) { | 551 if (request != null) { |
551 _body = convert.JSON.encode((request).toJson()); | 552 _body = convert.JSON.encode((request).toJson()); |
552 } | 553 } |
553 if (colorRgbFormat != null) { | 554 if (colorRgbFormat != null) { |
554 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; | 555 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; |
555 } | 556 } |
556 | 557 |
557 | 558 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 * To ensure client state consistency minAccessRole query parameter cannot be | 603 * To ensure client state consistency minAccessRole query parameter cannot be |
603 * specified together with nextSyncToken. | 604 * specified together with nextSyncToken. |
604 * If the syncToken expires, the server will respond with a 410 GONE response | 605 * If the syncToken expires, the server will respond with a 410 GONE response |
605 * code and the client should clear its storage and perform a full | 606 * code and the client should clear its storage and perform a full |
606 * synchronization without any syncToken. | 607 * synchronization without any syncToken. |
607 * Learn more about incremental synchronization. | 608 * Learn more about incremental synchronization. |
608 * Optional. The default is to return all entries. | 609 * Optional. The default is to return all entries. |
609 * | 610 * |
610 * Completes with a [CalendarList]. | 611 * Completes with a [CalendarList]. |
611 * | 612 * |
612 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 613 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
613 * error. | 614 * error. |
614 * | 615 * |
615 * If the used [http.Client] completes with an error when making a REST call, | 616 * If the used [http.Client] completes with an error when making a REST call, |
616 * this method will complete with the same error. | 617 * this method will complete with the same error. |
617 */ | 618 */ |
618 async.Future<CalendarList> list({core.int maxResults, core.String minAccessRol
e, core.String pageToken, core.bool showDeleted, core.bool showHidden, core.Stri
ng syncToken}) { | 619 async.Future<CalendarList> list({core.int maxResults, core.String minAccessRol
e, core.String pageToken, core.bool showDeleted, core.bool showHidden, core.Stri
ng syncToken}) { |
619 var _url = null; | 620 var _url = null; |
620 var _queryParams = new core.Map(); | 621 var _queryParams = new core.Map(); |
621 var _uploadMedia = null; | 622 var _uploadMedia = null; |
622 var _uploadOptions = null; | 623 var _uploadOptions = null; |
623 var _downloadOptions = common.DownloadOptions.Metadata; | 624 var _downloadOptions = commons.DownloadOptions.Metadata; |
624 var _body = null; | 625 var _body = null; |
625 | 626 |
626 if (maxResults != null) { | 627 if (maxResults != null) { |
627 _queryParams["maxResults"] = ["${maxResults}"]; | 628 _queryParams["maxResults"] = ["${maxResults}"]; |
628 } | 629 } |
629 if (minAccessRole != null) { | 630 if (minAccessRole != null) { |
630 _queryParams["minAccessRole"] = [minAccessRole]; | 631 _queryParams["minAccessRole"] = [minAccessRole]; |
631 } | 632 } |
632 if (pageToken != null) { | 633 if (pageToken != null) { |
633 _queryParams["pageToken"] = [pageToken]; | 634 _queryParams["pageToken"] = [pageToken]; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 * | 666 * |
666 * [calendarId] - Calendar identifier. | 667 * [calendarId] - Calendar identifier. |
667 * | 668 * |
668 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor | 669 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor |
669 * fields to write the calendar colors (RGB). If this feature is used, the | 670 * fields to write the calendar colors (RGB). If this feature is used, the |
670 * index-based colorId field will be set to the best matching option | 671 * index-based colorId field will be set to the best matching option |
671 * automatically. Optional. The default is False. | 672 * automatically. Optional. The default is False. |
672 * | 673 * |
673 * Completes with a [CalendarListEntry]. | 674 * Completes with a [CalendarListEntry]. |
674 * | 675 * |
675 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 676 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
676 * error. | 677 * error. |
677 * | 678 * |
678 * If the used [http.Client] completes with an error when making a REST call, | 679 * If the used [http.Client] completes with an error when making a REST call, |
679 * this method will complete with the same error. | 680 * this method will complete with the same error. |
680 */ | 681 */ |
681 async.Future<CalendarListEntry> patch(CalendarListEntry request, core.String c
alendarId, {core.bool colorRgbFormat}) { | 682 async.Future<CalendarListEntry> patch(CalendarListEntry request, core.String c
alendarId, {core.bool colorRgbFormat}) { |
682 var _url = null; | 683 var _url = null; |
683 var _queryParams = new core.Map(); | 684 var _queryParams = new core.Map(); |
684 var _uploadMedia = null; | 685 var _uploadMedia = null; |
685 var _uploadOptions = null; | 686 var _uploadOptions = null; |
686 var _downloadOptions = common.DownloadOptions.Metadata; | 687 var _downloadOptions = commons.DownloadOptions.Metadata; |
687 var _body = null; | 688 var _body = null; |
688 | 689 |
689 if (request != null) { | 690 if (request != null) { |
690 _body = convert.JSON.encode((request).toJson()); | 691 _body = convert.JSON.encode((request).toJson()); |
691 } | 692 } |
692 if (calendarId == null) { | 693 if (calendarId == null) { |
693 throw new core.ArgumentError("Parameter calendarId is required."); | 694 throw new core.ArgumentError("Parameter calendarId is required."); |
694 } | 695 } |
695 if (colorRgbFormat != null) { | 696 if (colorRgbFormat != null) { |
696 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; | 697 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; |
697 } | 698 } |
698 | 699 |
699 | 700 |
700 _url = 'users/me/calendarList/' + common_internal.Escaper.ecapeVariable('$ca
lendarId'); | 701 _url = 'users/me/calendarList/' + commons.Escaper.ecapeVariable('$calendarId
'); |
701 | 702 |
702 var _response = _requester.request(_url, | 703 var _response = _requester.request(_url, |
703 "PATCH", | 704 "PATCH", |
704 body: _body, | 705 body: _body, |
705 queryParams: _queryParams, | 706 queryParams: _queryParams, |
706 uploadOptions: _uploadOptions, | 707 uploadOptions: _uploadOptions, |
707 uploadMedia: _uploadMedia, | 708 uploadMedia: _uploadMedia, |
708 downloadOptions: _downloadOptions); | 709 downloadOptions: _downloadOptions); |
709 return _response.then((data) => new CalendarListEntry.fromJson(data)); | 710 return _response.then((data) => new CalendarListEntry.fromJson(data)); |
710 } | 711 } |
711 | 712 |
712 /** | 713 /** |
713 * Updates an entry on the user's calendar list. | 714 * Updates an entry on the user's calendar list. |
714 * | 715 * |
715 * [request] - The metadata request object. | 716 * [request] - The metadata request object. |
716 * | 717 * |
717 * Request parameters: | 718 * Request parameters: |
718 * | 719 * |
719 * [calendarId] - Calendar identifier. | 720 * [calendarId] - Calendar identifier. |
720 * | 721 * |
721 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor | 722 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor |
722 * fields to write the calendar colors (RGB). If this feature is used, the | 723 * fields to write the calendar colors (RGB). If this feature is used, the |
723 * index-based colorId field will be set to the best matching option | 724 * index-based colorId field will be set to the best matching option |
724 * automatically. Optional. The default is False. | 725 * automatically. Optional. The default is False. |
725 * | 726 * |
726 * Completes with a [CalendarListEntry]. | 727 * Completes with a [CalendarListEntry]. |
727 * | 728 * |
728 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 729 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
729 * error. | 730 * error. |
730 * | 731 * |
731 * If the used [http.Client] completes with an error when making a REST call, | 732 * If the used [http.Client] completes with an error when making a REST call, |
732 * this method will complete with the same error. | 733 * this method will complete with the same error. |
733 */ | 734 */ |
734 async.Future<CalendarListEntry> update(CalendarListEntry request, core.String
calendarId, {core.bool colorRgbFormat}) { | 735 async.Future<CalendarListEntry> update(CalendarListEntry request, core.String
calendarId, {core.bool colorRgbFormat}) { |
735 var _url = null; | 736 var _url = null; |
736 var _queryParams = new core.Map(); | 737 var _queryParams = new core.Map(); |
737 var _uploadMedia = null; | 738 var _uploadMedia = null; |
738 var _uploadOptions = null; | 739 var _uploadOptions = null; |
739 var _downloadOptions = common.DownloadOptions.Metadata; | 740 var _downloadOptions = commons.DownloadOptions.Metadata; |
740 var _body = null; | 741 var _body = null; |
741 | 742 |
742 if (request != null) { | 743 if (request != null) { |
743 _body = convert.JSON.encode((request).toJson()); | 744 _body = convert.JSON.encode((request).toJson()); |
744 } | 745 } |
745 if (calendarId == null) { | 746 if (calendarId == null) { |
746 throw new core.ArgumentError("Parameter calendarId is required."); | 747 throw new core.ArgumentError("Parameter calendarId is required."); |
747 } | 748 } |
748 if (colorRgbFormat != null) { | 749 if (colorRgbFormat != null) { |
749 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; | 750 _queryParams["colorRgbFormat"] = ["${colorRgbFormat}"]; |
750 } | 751 } |
751 | 752 |
752 | 753 |
753 _url = 'users/me/calendarList/' + common_internal.Escaper.ecapeVariable('$ca
lendarId'); | 754 _url = 'users/me/calendarList/' + commons.Escaper.ecapeVariable('$calendarId
'); |
754 | 755 |
755 var _response = _requester.request(_url, | 756 var _response = _requester.request(_url, |
756 "PUT", | 757 "PUT", |
757 body: _body, | 758 body: _body, |
758 queryParams: _queryParams, | 759 queryParams: _queryParams, |
759 uploadOptions: _uploadOptions, | 760 uploadOptions: _uploadOptions, |
760 uploadMedia: _uploadMedia, | 761 uploadMedia: _uploadMedia, |
761 downloadOptions: _downloadOptions); | 762 downloadOptions: _downloadOptions); |
762 return _response.then((data) => new CalendarListEntry.fromJson(data)); | 763 return _response.then((data) => new CalendarListEntry.fromJson(data)); |
763 } | 764 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 * To ensure client state consistency minAccessRole query parameter cannot be | 800 * To ensure client state consistency minAccessRole query parameter cannot be |
800 * specified together with nextSyncToken. | 801 * specified together with nextSyncToken. |
801 * If the syncToken expires, the server will respond with a 410 GONE response | 802 * If the syncToken expires, the server will respond with a 410 GONE response |
802 * code and the client should clear its storage and perform a full | 803 * code and the client should clear its storage and perform a full |
803 * synchronization without any syncToken. | 804 * synchronization without any syncToken. |
804 * Learn more about incremental synchronization. | 805 * Learn more about incremental synchronization. |
805 * Optional. The default is to return all entries. | 806 * Optional. The default is to return all entries. |
806 * | 807 * |
807 * Completes with a [Channel]. | 808 * Completes with a [Channel]. |
808 * | 809 * |
809 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
810 * error. | 811 * error. |
811 * | 812 * |
812 * If the used [http.Client] completes with an error when making a REST call, | 813 * If the used [http.Client] completes with an error when making a REST call, |
813 * this method will complete with the same error. | 814 * this method will complete with the same error. |
814 */ | 815 */ |
815 async.Future<Channel> watch(Channel request, {core.int maxResults, core.String
minAccessRole, core.String pageToken, core.bool showDeleted, core.bool showHidd
en, core.String syncToken}) { | 816 async.Future<Channel> watch(Channel request, {core.int maxResults, core.String
minAccessRole, core.String pageToken, core.bool showDeleted, core.bool showHidd
en, core.String syncToken}) { |
816 var _url = null; | 817 var _url = null; |
817 var _queryParams = new core.Map(); | 818 var _queryParams = new core.Map(); |
818 var _uploadMedia = null; | 819 var _uploadMedia = null; |
819 var _uploadOptions = null; | 820 var _uploadOptions = null; |
820 var _downloadOptions = common.DownloadOptions.Metadata; | 821 var _downloadOptions = commons.DownloadOptions.Metadata; |
821 var _body = null; | 822 var _body = null; |
822 | 823 |
823 if (request != null) { | 824 if (request != null) { |
824 _body = convert.JSON.encode((request).toJson()); | 825 _body = convert.JSON.encode((request).toJson()); |
825 } | 826 } |
826 if (maxResults != null) { | 827 if (maxResults != null) { |
827 _queryParams["maxResults"] = ["${maxResults}"]; | 828 _queryParams["maxResults"] = ["${maxResults}"]; |
828 } | 829 } |
829 if (minAccessRole != null) { | 830 if (minAccessRole != null) { |
830 _queryParams["minAccessRole"] = [minAccessRole]; | 831 _queryParams["minAccessRole"] = [minAccessRole]; |
(...skipping 20 matching lines...) Expand all Loading... |
851 queryParams: _queryParams, | 852 queryParams: _queryParams, |
852 uploadOptions: _uploadOptions, | 853 uploadOptions: _uploadOptions, |
853 uploadMedia: _uploadMedia, | 854 uploadMedia: _uploadMedia, |
854 downloadOptions: _downloadOptions); | 855 downloadOptions: _downloadOptions); |
855 return _response.then((data) => new Channel.fromJson(data)); | 856 return _response.then((data) => new Channel.fromJson(data)); |
856 } | 857 } |
857 | 858 |
858 } | 859 } |
859 | 860 |
860 | 861 |
861 /** Not documented yet. */ | |
862 class CalendarsResourceApi { | 862 class CalendarsResourceApi { |
863 final common_internal.ApiRequester _requester; | 863 final commons.ApiRequester _requester; |
864 | 864 |
865 CalendarsResourceApi(common_internal.ApiRequester client) : | 865 CalendarsResourceApi(commons.ApiRequester client) : |
866 _requester = client; | 866 _requester = client; |
867 | 867 |
868 /** | 868 /** |
869 * Clears a primary calendar. This operation deletes all data associated with | 869 * Clears a primary calendar. This operation deletes all events associated |
870 * the primary calendar of an account and cannot be undone. | 870 * with the primary calendar of an account. |
871 * | 871 * |
872 * Request parameters: | 872 * Request parameters: |
873 * | 873 * |
874 * [calendarId] - Calendar identifier. | 874 * [calendarId] - Calendar identifier. |
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 clear(core.String calendarId) { | 882 async.Future clear(core.String calendarId) { |
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 (calendarId == null) { | 890 if (calendarId == null) { |
891 throw new core.ArgumentError("Parameter calendarId is required."); | 891 throw new core.ArgumentError("Parameter calendarId is required."); |
892 } | 892 } |
893 | 893 |
894 _downloadOptions = null; | 894 _downloadOptions = null; |
895 | 895 |
896 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/clear'; | 896 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/clear
'; |
897 | 897 |
898 var _response = _requester.request(_url, | 898 var _response = _requester.request(_url, |
899 "POST", | 899 "POST", |
900 body: _body, | 900 body: _body, |
901 queryParams: _queryParams, | 901 queryParams: _queryParams, |
902 uploadOptions: _uploadOptions, | 902 uploadOptions: _uploadOptions, |
903 uploadMedia: _uploadMedia, | 903 uploadMedia: _uploadMedia, |
904 downloadOptions: _downloadOptions); | 904 downloadOptions: _downloadOptions); |
905 return _response.then((data) => null); | 905 return _response.then((data) => null); |
906 } | 906 } |
907 | 907 |
908 /** | 908 /** |
909 * Deletes a secondary calendar. | 909 * Deletes a secondary calendar. Use calendars.clear for clearing all events |
| 910 * on primary calendars. |
910 * | 911 * |
911 * Request parameters: | 912 * Request parameters: |
912 * | 913 * |
913 * [calendarId] - Calendar identifier. | 914 * [calendarId] - Calendar identifier. |
914 * | 915 * |
915 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 916 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
916 * error. | 917 * error. |
917 * | 918 * |
918 * If the used [http.Client] completes with an error when making a REST call, | 919 * If the used [http.Client] completes with an error when making a REST call, |
919 * this method will complete with the same error. | 920 * this method will complete with the same error. |
920 */ | 921 */ |
921 async.Future delete(core.String calendarId) { | 922 async.Future delete(core.String calendarId) { |
922 var _url = null; | 923 var _url = null; |
923 var _queryParams = new core.Map(); | 924 var _queryParams = new core.Map(); |
924 var _uploadMedia = null; | 925 var _uploadMedia = null; |
925 var _uploadOptions = null; | 926 var _uploadOptions = null; |
926 var _downloadOptions = common.DownloadOptions.Metadata; | 927 var _downloadOptions = commons.DownloadOptions.Metadata; |
927 var _body = null; | 928 var _body = null; |
928 | 929 |
929 if (calendarId == null) { | 930 if (calendarId == null) { |
930 throw new core.ArgumentError("Parameter calendarId is required."); | 931 throw new core.ArgumentError("Parameter calendarId is required."); |
931 } | 932 } |
932 | 933 |
933 _downloadOptions = null; | 934 _downloadOptions = null; |
934 | 935 |
935 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId'); | 936 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId'); |
936 | 937 |
937 var _response = _requester.request(_url, | 938 var _response = _requester.request(_url, |
938 "DELETE", | 939 "DELETE", |
939 body: _body, | 940 body: _body, |
940 queryParams: _queryParams, | 941 queryParams: _queryParams, |
941 uploadOptions: _uploadOptions, | 942 uploadOptions: _uploadOptions, |
942 uploadMedia: _uploadMedia, | 943 uploadMedia: _uploadMedia, |
943 downloadOptions: _downloadOptions); | 944 downloadOptions: _downloadOptions); |
944 return _response.then((data) => null); | 945 return _response.then((data) => null); |
945 } | 946 } |
946 | 947 |
947 /** | 948 /** |
948 * Returns metadata for a calendar. | 949 * Returns metadata for a calendar. |
949 * | 950 * |
950 * Request parameters: | 951 * Request parameters: |
951 * | 952 * |
952 * [calendarId] - Calendar identifier. | 953 * [calendarId] - Calendar identifier. |
953 * | 954 * |
954 * Completes with a [Calendar]. | 955 * Completes with a [Calendar]. |
955 * | 956 * |
956 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 957 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
957 * error. | 958 * error. |
958 * | 959 * |
959 * If the used [http.Client] completes with an error when making a REST call, | 960 * If the used [http.Client] completes with an error when making a REST call, |
960 * this method will complete with the same error. | 961 * this method will complete with the same error. |
961 */ | 962 */ |
962 async.Future<Calendar> get(core.String calendarId) { | 963 async.Future<Calendar> get(core.String calendarId) { |
963 var _url = null; | 964 var _url = null; |
964 var _queryParams = new core.Map(); | 965 var _queryParams = new core.Map(); |
965 var _uploadMedia = null; | 966 var _uploadMedia = null; |
966 var _uploadOptions = null; | 967 var _uploadOptions = null; |
967 var _downloadOptions = common.DownloadOptions.Metadata; | 968 var _downloadOptions = commons.DownloadOptions.Metadata; |
968 var _body = null; | 969 var _body = null; |
969 | 970 |
970 if (calendarId == null) { | 971 if (calendarId == null) { |
971 throw new core.ArgumentError("Parameter calendarId is required."); | 972 throw new core.ArgumentError("Parameter calendarId is required."); |
972 } | 973 } |
973 | 974 |
974 | 975 |
975 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId'); | 976 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId'); |
976 | 977 |
977 var _response = _requester.request(_url, | 978 var _response = _requester.request(_url, |
978 "GET", | 979 "GET", |
979 body: _body, | 980 body: _body, |
980 queryParams: _queryParams, | 981 queryParams: _queryParams, |
981 uploadOptions: _uploadOptions, | 982 uploadOptions: _uploadOptions, |
982 uploadMedia: _uploadMedia, | 983 uploadMedia: _uploadMedia, |
983 downloadOptions: _downloadOptions); | 984 downloadOptions: _downloadOptions); |
984 return _response.then((data) => new Calendar.fromJson(data)); | 985 return _response.then((data) => new Calendar.fromJson(data)); |
985 } | 986 } |
986 | 987 |
987 /** | 988 /** |
988 * Creates a secondary calendar. | 989 * Creates a secondary calendar. |
989 * | 990 * |
990 * [request] - The metadata request object. | 991 * [request] - The metadata request object. |
991 * | 992 * |
992 * Request parameters: | 993 * Request parameters: |
993 * | 994 * |
994 * Completes with a [Calendar]. | 995 * Completes with a [Calendar]. |
995 * | 996 * |
996 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 997 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
997 * error. | 998 * error. |
998 * | 999 * |
999 * If the used [http.Client] completes with an error when making a REST call, | 1000 * If the used [http.Client] completes with an error when making a REST call, |
1000 * this method will complete with the same error. | 1001 * this method will complete with the same error. |
1001 */ | 1002 */ |
1002 async.Future<Calendar> insert(Calendar request) { | 1003 async.Future<Calendar> insert(Calendar request) { |
1003 var _url = null; | 1004 var _url = null; |
1004 var _queryParams = new core.Map(); | 1005 var _queryParams = new core.Map(); |
1005 var _uploadMedia = null; | 1006 var _uploadMedia = null; |
1006 var _uploadOptions = null; | 1007 var _uploadOptions = null; |
1007 var _downloadOptions = common.DownloadOptions.Metadata; | 1008 var _downloadOptions = commons.DownloadOptions.Metadata; |
1008 var _body = null; | 1009 var _body = null; |
1009 | 1010 |
1010 if (request != null) { | 1011 if (request != null) { |
1011 _body = convert.JSON.encode((request).toJson()); | 1012 _body = convert.JSON.encode((request).toJson()); |
1012 } | 1013 } |
1013 | 1014 |
1014 | 1015 |
1015 _url = 'calendars'; | 1016 _url = 'calendars'; |
1016 | 1017 |
1017 var _response = _requester.request(_url, | 1018 var _response = _requester.request(_url, |
(...skipping 10 matching lines...) Expand all Loading... |
1028 * Updates metadata for a calendar. This method supports patch semantics. | 1029 * Updates metadata for a calendar. This method supports patch semantics. |
1029 * | 1030 * |
1030 * [request] - The metadata request object. | 1031 * [request] - The metadata request object. |
1031 * | 1032 * |
1032 * Request parameters: | 1033 * Request parameters: |
1033 * | 1034 * |
1034 * [calendarId] - Calendar identifier. | 1035 * [calendarId] - Calendar identifier. |
1035 * | 1036 * |
1036 * Completes with a [Calendar]. | 1037 * Completes with a [Calendar]. |
1037 * | 1038 * |
1038 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1039 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1039 * error. | 1040 * error. |
1040 * | 1041 * |
1041 * If the used [http.Client] completes with an error when making a REST call, | 1042 * If the used [http.Client] completes with an error when making a REST call, |
1042 * this method will complete with the same error. | 1043 * this method will complete with the same error. |
1043 */ | 1044 */ |
1044 async.Future<Calendar> patch(Calendar request, core.String calendarId) { | 1045 async.Future<Calendar> patch(Calendar request, core.String calendarId) { |
1045 var _url = null; | 1046 var _url = null; |
1046 var _queryParams = new core.Map(); | 1047 var _queryParams = new core.Map(); |
1047 var _uploadMedia = null; | 1048 var _uploadMedia = null; |
1048 var _uploadOptions = null; | 1049 var _uploadOptions = null; |
1049 var _downloadOptions = common.DownloadOptions.Metadata; | 1050 var _downloadOptions = commons.DownloadOptions.Metadata; |
1050 var _body = null; | 1051 var _body = null; |
1051 | 1052 |
1052 if (request != null) { | 1053 if (request != null) { |
1053 _body = convert.JSON.encode((request).toJson()); | 1054 _body = convert.JSON.encode((request).toJson()); |
1054 } | 1055 } |
1055 if (calendarId == null) { | 1056 if (calendarId == null) { |
1056 throw new core.ArgumentError("Parameter calendarId is required."); | 1057 throw new core.ArgumentError("Parameter calendarId is required."); |
1057 } | 1058 } |
1058 | 1059 |
1059 | 1060 |
1060 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId'); | 1061 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId'); |
1061 | 1062 |
1062 var _response = _requester.request(_url, | 1063 var _response = _requester.request(_url, |
1063 "PATCH", | 1064 "PATCH", |
1064 body: _body, | 1065 body: _body, |
1065 queryParams: _queryParams, | 1066 queryParams: _queryParams, |
1066 uploadOptions: _uploadOptions, | 1067 uploadOptions: _uploadOptions, |
1067 uploadMedia: _uploadMedia, | 1068 uploadMedia: _uploadMedia, |
1068 downloadOptions: _downloadOptions); | 1069 downloadOptions: _downloadOptions); |
1069 return _response.then((data) => new Calendar.fromJson(data)); | 1070 return _response.then((data) => new Calendar.fromJson(data)); |
1070 } | 1071 } |
1071 | 1072 |
1072 /** | 1073 /** |
1073 * Updates metadata for a calendar. | 1074 * Updates metadata for a calendar. |
1074 * | 1075 * |
1075 * [request] - The metadata request object. | 1076 * [request] - The metadata request object. |
1076 * | 1077 * |
1077 * Request parameters: | 1078 * Request parameters: |
1078 * | 1079 * |
1079 * [calendarId] - Calendar identifier. | 1080 * [calendarId] - Calendar identifier. |
1080 * | 1081 * |
1081 * Completes with a [Calendar]. | 1082 * Completes with a [Calendar]. |
1082 * | 1083 * |
1083 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1084 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1084 * error. | 1085 * error. |
1085 * | 1086 * |
1086 * If the used [http.Client] completes with an error when making a REST call, | 1087 * If the used [http.Client] completes with an error when making a REST call, |
1087 * this method will complete with the same error. | 1088 * this method will complete with the same error. |
1088 */ | 1089 */ |
1089 async.Future<Calendar> update(Calendar request, core.String calendarId) { | 1090 async.Future<Calendar> update(Calendar request, core.String calendarId) { |
1090 var _url = null; | 1091 var _url = null; |
1091 var _queryParams = new core.Map(); | 1092 var _queryParams = new core.Map(); |
1092 var _uploadMedia = null; | 1093 var _uploadMedia = null; |
1093 var _uploadOptions = null; | 1094 var _uploadOptions = null; |
1094 var _downloadOptions = common.DownloadOptions.Metadata; | 1095 var _downloadOptions = commons.DownloadOptions.Metadata; |
1095 var _body = null; | 1096 var _body = null; |
1096 | 1097 |
1097 if (request != null) { | 1098 if (request != null) { |
1098 _body = convert.JSON.encode((request).toJson()); | 1099 _body = convert.JSON.encode((request).toJson()); |
1099 } | 1100 } |
1100 if (calendarId == null) { | 1101 if (calendarId == null) { |
1101 throw new core.ArgumentError("Parameter calendarId is required."); | 1102 throw new core.ArgumentError("Parameter calendarId is required."); |
1102 } | 1103 } |
1103 | 1104 |
1104 | 1105 |
1105 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId'); | 1106 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId'); |
1106 | 1107 |
1107 var _response = _requester.request(_url, | 1108 var _response = _requester.request(_url, |
1108 "PUT", | 1109 "PUT", |
1109 body: _body, | 1110 body: _body, |
1110 queryParams: _queryParams, | 1111 queryParams: _queryParams, |
1111 uploadOptions: _uploadOptions, | 1112 uploadOptions: _uploadOptions, |
1112 uploadMedia: _uploadMedia, | 1113 uploadMedia: _uploadMedia, |
1113 downloadOptions: _downloadOptions); | 1114 downloadOptions: _downloadOptions); |
1114 return _response.then((data) => new Calendar.fromJson(data)); | 1115 return _response.then((data) => new Calendar.fromJson(data)); |
1115 } | 1116 } |
1116 | 1117 |
1117 } | 1118 } |
1118 | 1119 |
1119 | 1120 |
1120 /** Not documented yet. */ | |
1121 class ChannelsResourceApi { | 1121 class ChannelsResourceApi { |
1122 final common_internal.ApiRequester _requester; | 1122 final commons.ApiRequester _requester; |
1123 | 1123 |
1124 ChannelsResourceApi(common_internal.ApiRequester client) : | 1124 ChannelsResourceApi(commons.ApiRequester client) : |
1125 _requester = client; | 1125 _requester = client; |
1126 | 1126 |
1127 /** | 1127 /** |
1128 * Stop watching resources through this channel | 1128 * Stop watching resources through this channel |
1129 * | 1129 * |
1130 * [request] - The metadata request object. | 1130 * [request] - The metadata request object. |
1131 * | 1131 * |
1132 * Request parameters: | 1132 * Request parameters: |
1133 * | 1133 * |
1134 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1134 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1135 * error. | 1135 * error. |
1136 * | 1136 * |
1137 * If the used [http.Client] completes with an error when making a REST call, | 1137 * If the used [http.Client] completes with an error when making a REST call, |
1138 * this method will complete with the same error. | 1138 * this method will complete with the same error. |
1139 */ | 1139 */ |
1140 async.Future stop(Channel request) { | 1140 async.Future stop(Channel request) { |
1141 var _url = null; | 1141 var _url = null; |
1142 var _queryParams = new core.Map(); | 1142 var _queryParams = new core.Map(); |
1143 var _uploadMedia = null; | 1143 var _uploadMedia = null; |
1144 var _uploadOptions = null; | 1144 var _uploadOptions = null; |
1145 var _downloadOptions = common.DownloadOptions.Metadata; | 1145 var _downloadOptions = commons.DownloadOptions.Metadata; |
1146 var _body = null; | 1146 var _body = null; |
1147 | 1147 |
1148 if (request != null) { | 1148 if (request != null) { |
1149 _body = convert.JSON.encode((request).toJson()); | 1149 _body = convert.JSON.encode((request).toJson()); |
1150 } | 1150 } |
1151 | 1151 |
1152 _downloadOptions = null; | 1152 _downloadOptions = null; |
1153 | 1153 |
1154 _url = 'channels/stop'; | 1154 _url = 'channels/stop'; |
1155 | 1155 |
1156 var _response = _requester.request(_url, | 1156 var _response = _requester.request(_url, |
1157 "POST", | 1157 "POST", |
1158 body: _body, | 1158 body: _body, |
1159 queryParams: _queryParams, | 1159 queryParams: _queryParams, |
1160 uploadOptions: _uploadOptions, | 1160 uploadOptions: _uploadOptions, |
1161 uploadMedia: _uploadMedia, | 1161 uploadMedia: _uploadMedia, |
1162 downloadOptions: _downloadOptions); | 1162 downloadOptions: _downloadOptions); |
1163 return _response.then((data) => null); | 1163 return _response.then((data) => null); |
1164 } | 1164 } |
1165 | 1165 |
1166 } | 1166 } |
1167 | 1167 |
1168 | 1168 |
1169 /** Not documented yet. */ | |
1170 class ColorsResourceApi { | 1169 class ColorsResourceApi { |
1171 final common_internal.ApiRequester _requester; | 1170 final commons.ApiRequester _requester; |
1172 | 1171 |
1173 ColorsResourceApi(common_internal.ApiRequester client) : | 1172 ColorsResourceApi(commons.ApiRequester client) : |
1174 _requester = client; | 1173 _requester = client; |
1175 | 1174 |
1176 /** | 1175 /** |
1177 * Returns the color definitions for calendars and events. | 1176 * Returns the color definitions for calendars and events. |
1178 * | 1177 * |
1179 * Request parameters: | 1178 * Request parameters: |
1180 * | 1179 * |
1181 * Completes with a [Colors]. | 1180 * Completes with a [Colors]. |
1182 * | 1181 * |
1183 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1182 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1184 * error. | 1183 * error. |
1185 * | 1184 * |
1186 * If the used [http.Client] completes with an error when making a REST call, | 1185 * If the used [http.Client] completes with an error when making a REST call, |
1187 * this method will complete with the same error. | 1186 * this method will complete with the same error. |
1188 */ | 1187 */ |
1189 async.Future<Colors> get() { | 1188 async.Future<Colors> get() { |
1190 var _url = null; | 1189 var _url = null; |
1191 var _queryParams = new core.Map(); | 1190 var _queryParams = new core.Map(); |
1192 var _uploadMedia = null; | 1191 var _uploadMedia = null; |
1193 var _uploadOptions = null; | 1192 var _uploadOptions = null; |
1194 var _downloadOptions = common.DownloadOptions.Metadata; | 1193 var _downloadOptions = commons.DownloadOptions.Metadata; |
1195 var _body = null; | 1194 var _body = null; |
1196 | 1195 |
1197 | 1196 |
1198 | 1197 |
1199 _url = 'colors'; | 1198 _url = 'colors'; |
1200 | 1199 |
1201 var _response = _requester.request(_url, | 1200 var _response = _requester.request(_url, |
1202 "GET", | 1201 "GET", |
1203 body: _body, | 1202 body: _body, |
1204 queryParams: _queryParams, | 1203 queryParams: _queryParams, |
1205 uploadOptions: _uploadOptions, | 1204 uploadOptions: _uploadOptions, |
1206 uploadMedia: _uploadMedia, | 1205 uploadMedia: _uploadMedia, |
1207 downloadOptions: _downloadOptions); | 1206 downloadOptions: _downloadOptions); |
1208 return _response.then((data) => new Colors.fromJson(data)); | 1207 return _response.then((data) => new Colors.fromJson(data)); |
1209 } | 1208 } |
1210 | 1209 |
1211 } | 1210 } |
1212 | 1211 |
1213 | 1212 |
1214 /** Not documented yet. */ | |
1215 class EventsResourceApi { | 1213 class EventsResourceApi { |
1216 final common_internal.ApiRequester _requester; | 1214 final commons.ApiRequester _requester; |
1217 | 1215 |
1218 EventsResourceApi(common_internal.ApiRequester client) : | 1216 EventsResourceApi(commons.ApiRequester client) : |
1219 _requester = client; | 1217 _requester = client; |
1220 | 1218 |
1221 /** | 1219 /** |
1222 * Deletes an event. | 1220 * Deletes an event. |
1223 * | 1221 * |
1224 * Request parameters: | 1222 * Request parameters: |
1225 * | 1223 * |
1226 * [calendarId] - Calendar identifier. | 1224 * [calendarId] - Calendar identifier. |
1227 * | 1225 * |
1228 * [eventId] - Event identifier. | 1226 * [eventId] - Event identifier. |
1229 * | 1227 * |
1230 * [sendNotifications] - Whether to send notifications about the deletion of | 1228 * [sendNotifications] - Whether to send notifications about the deletion of |
1231 * the event. Optional. The default is False. | 1229 * the event. Optional. The default is False. |
1232 * | 1230 * |
1233 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1231 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1234 * error. | 1232 * error. |
1235 * | 1233 * |
1236 * If the used [http.Client] completes with an error when making a REST call, | 1234 * If the used [http.Client] completes with an error when making a REST call, |
1237 * this method will complete with the same error. | 1235 * this method will complete with the same error. |
1238 */ | 1236 */ |
1239 async.Future delete(core.String calendarId, core.String eventId, {core.bool se
ndNotifications}) { | 1237 async.Future delete(core.String calendarId, core.String eventId, {core.bool se
ndNotifications}) { |
1240 var _url = null; | 1238 var _url = null; |
1241 var _queryParams = new core.Map(); | 1239 var _queryParams = new core.Map(); |
1242 var _uploadMedia = null; | 1240 var _uploadMedia = null; |
1243 var _uploadOptions = null; | 1241 var _uploadOptions = null; |
1244 var _downloadOptions = common.DownloadOptions.Metadata; | 1242 var _downloadOptions = commons.DownloadOptions.Metadata; |
1245 var _body = null; | 1243 var _body = null; |
1246 | 1244 |
1247 if (calendarId == null) { | 1245 if (calendarId == null) { |
1248 throw new core.ArgumentError("Parameter calendarId is required."); | 1246 throw new core.ArgumentError("Parameter calendarId is required."); |
1249 } | 1247 } |
1250 if (eventId == null) { | 1248 if (eventId == null) { |
1251 throw new core.ArgumentError("Parameter eventId is required."); | 1249 throw new core.ArgumentError("Parameter eventId is required."); |
1252 } | 1250 } |
1253 if (sendNotifications != null) { | 1251 if (sendNotifications != null) { |
1254 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1252 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1255 } | 1253 } |
1256 | 1254 |
1257 _downloadOptions = null; | 1255 _downloadOptions = null; |
1258 | 1256 |
1259 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId'); | 1257 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId'); |
1260 | 1258 |
1261 var _response = _requester.request(_url, | 1259 var _response = _requester.request(_url, |
1262 "DELETE", | 1260 "DELETE", |
1263 body: _body, | 1261 body: _body, |
1264 queryParams: _queryParams, | 1262 queryParams: _queryParams, |
1265 uploadOptions: _uploadOptions, | 1263 uploadOptions: _uploadOptions, |
1266 uploadMedia: _uploadMedia, | 1264 uploadMedia: _uploadMedia, |
1267 downloadOptions: _downloadOptions); | 1265 downloadOptions: _downloadOptions); |
1268 return _response.then((data) => null); | 1266 return _response.then((data) => null); |
1269 } | 1267 } |
(...skipping 16 matching lines...) Expand all Loading... |
1286 * | 1284 * |
1287 * [maxAttendees] - The maximum number of attendees to include in the | 1285 * [maxAttendees] - The maximum number of attendees to include in the |
1288 * response. If there are more than the specified number of attendees, only | 1286 * response. If there are more than the specified number of attendees, only |
1289 * the participant is returned. Optional. | 1287 * the participant is returned. Optional. |
1290 * | 1288 * |
1291 * [timeZone] - Time zone used in the response. Optional. The default is the | 1289 * [timeZone] - Time zone used in the response. Optional. The default is the |
1292 * time zone of the calendar. | 1290 * time zone of the calendar. |
1293 * | 1291 * |
1294 * Completes with a [Event]. | 1292 * Completes with a [Event]. |
1295 * | 1293 * |
1296 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1297 * error. | 1295 * error. |
1298 * | 1296 * |
1299 * If the used [http.Client] completes with an error when making a REST call, | 1297 * If the used [http.Client] completes with an error when making a REST call, |
1300 * this method will complete with the same error. | 1298 * this method will complete with the same error. |
1301 */ | 1299 */ |
1302 async.Future<Event> get(core.String calendarId, core.String eventId, {core.boo
l alwaysIncludeEmail, core.int maxAttendees, core.String timeZone}) { | 1300 async.Future<Event> get(core.String calendarId, core.String eventId, {core.boo
l alwaysIncludeEmail, core.int maxAttendees, core.String timeZone}) { |
1303 var _url = null; | 1301 var _url = null; |
1304 var _queryParams = new core.Map(); | 1302 var _queryParams = new core.Map(); |
1305 var _uploadMedia = null; | 1303 var _uploadMedia = null; |
1306 var _uploadOptions = null; | 1304 var _uploadOptions = null; |
1307 var _downloadOptions = common.DownloadOptions.Metadata; | 1305 var _downloadOptions = commons.DownloadOptions.Metadata; |
1308 var _body = null; | 1306 var _body = null; |
1309 | 1307 |
1310 if (calendarId == null) { | 1308 if (calendarId == null) { |
1311 throw new core.ArgumentError("Parameter calendarId is required."); | 1309 throw new core.ArgumentError("Parameter calendarId is required."); |
1312 } | 1310 } |
1313 if (eventId == null) { | 1311 if (eventId == null) { |
1314 throw new core.ArgumentError("Parameter eventId is required."); | 1312 throw new core.ArgumentError("Parameter eventId is required."); |
1315 } | 1313 } |
1316 if (alwaysIncludeEmail != null) { | 1314 if (alwaysIncludeEmail != null) { |
1317 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 1315 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
1318 } | 1316 } |
1319 if (maxAttendees != null) { | 1317 if (maxAttendees != null) { |
1320 _queryParams["maxAttendees"] = ["${maxAttendees}"]; | 1318 _queryParams["maxAttendees"] = ["${maxAttendees}"]; |
1321 } | 1319 } |
1322 if (timeZone != null) { | 1320 if (timeZone != null) { |
1323 _queryParams["timeZone"] = [timeZone]; | 1321 _queryParams["timeZone"] = [timeZone]; |
1324 } | 1322 } |
1325 | 1323 |
1326 | 1324 |
1327 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId'); | 1325 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId'); |
1328 | 1326 |
1329 var _response = _requester.request(_url, | 1327 var _response = _requester.request(_url, |
1330 "GET", | 1328 "GET", |
1331 body: _body, | 1329 body: _body, |
1332 queryParams: _queryParams, | 1330 queryParams: _queryParams, |
1333 uploadOptions: _uploadOptions, | 1331 uploadOptions: _uploadOptions, |
1334 uploadMedia: _uploadMedia, | 1332 uploadMedia: _uploadMedia, |
1335 downloadOptions: _downloadOptions); | 1333 downloadOptions: _downloadOptions); |
1336 return _response.then((data) => new Event.fromJson(data)); | 1334 return _response.then((data) => new Event.fromJson(data)); |
1337 } | 1335 } |
1338 | 1336 |
1339 /** | 1337 /** |
1340 * Imports an event. This operation is used to add a private copy of an | 1338 * Imports an event. This operation is used to add a private copy of an |
1341 * existing event to a calendar. | 1339 * existing event to a calendar. |
1342 * | 1340 * |
1343 * [request] - The metadata request object. | 1341 * [request] - The metadata request object. |
1344 * | 1342 * |
1345 * Request parameters: | 1343 * Request parameters: |
1346 * | 1344 * |
1347 * [calendarId] - Calendar identifier. | 1345 * [calendarId] - Calendar identifier. |
1348 * | 1346 * |
1349 * Completes with a [Event]. | 1347 * Completes with a [Event]. |
1350 * | 1348 * |
1351 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1349 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1352 * error. | 1350 * error. |
1353 * | 1351 * |
1354 * If the used [http.Client] completes with an error when making a REST call, | 1352 * If the used [http.Client] completes with an error when making a REST call, |
1355 * this method will complete with the same error. | 1353 * this method will complete with the same error. |
1356 */ | 1354 */ |
1357 async.Future<Event> import(Event request, core.String calendarId) { | 1355 async.Future<Event> import(Event request, core.String calendarId) { |
1358 var _url = null; | 1356 var _url = null; |
1359 var _queryParams = new core.Map(); | 1357 var _queryParams = new core.Map(); |
1360 var _uploadMedia = null; | 1358 var _uploadMedia = null; |
1361 var _uploadOptions = null; | 1359 var _uploadOptions = null; |
1362 var _downloadOptions = common.DownloadOptions.Metadata; | 1360 var _downloadOptions = commons.DownloadOptions.Metadata; |
1363 var _body = null; | 1361 var _body = null; |
1364 | 1362 |
1365 if (request != null) { | 1363 if (request != null) { |
1366 _body = convert.JSON.encode((request).toJson()); | 1364 _body = convert.JSON.encode((request).toJson()); |
1367 } | 1365 } |
1368 if (calendarId == null) { | 1366 if (calendarId == null) { |
1369 throw new core.ArgumentError("Parameter calendarId is required."); | 1367 throw new core.ArgumentError("Parameter calendarId is required."); |
1370 } | 1368 } |
1371 | 1369 |
1372 | 1370 |
1373 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/import'; | 1371 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/import'; |
1374 | 1372 |
1375 var _response = _requester.request(_url, | 1373 var _response = _requester.request(_url, |
1376 "POST", | 1374 "POST", |
1377 body: _body, | 1375 body: _body, |
1378 queryParams: _queryParams, | 1376 queryParams: _queryParams, |
1379 uploadOptions: _uploadOptions, | 1377 uploadOptions: _uploadOptions, |
1380 uploadMedia: _uploadMedia, | 1378 uploadMedia: _uploadMedia, |
1381 downloadOptions: _downloadOptions); | 1379 downloadOptions: _downloadOptions); |
1382 return _response.then((data) => new Event.fromJson(data)); | 1380 return _response.then((data) => new Event.fromJson(data)); |
1383 } | 1381 } |
1384 | 1382 |
1385 /** | 1383 /** |
1386 * Creates an event. | 1384 * Creates an event. |
1387 * | 1385 * |
1388 * [request] - The metadata request object. | 1386 * [request] - The metadata request object. |
1389 * | 1387 * |
1390 * Request parameters: | 1388 * Request parameters: |
1391 * | 1389 * |
1392 * [calendarId] - Calendar identifier. | 1390 * [calendarId] - Calendar identifier. |
1393 * | 1391 * |
1394 * [maxAttendees] - The maximum number of attendees to include in the | 1392 * [maxAttendees] - The maximum number of attendees to include in the |
1395 * response. If there are more than the specified number of attendees, only | 1393 * response. If there are more than the specified number of attendees, only |
1396 * the participant is returned. Optional. | 1394 * the participant is returned. Optional. |
1397 * | 1395 * |
1398 * [sendNotifications] - Whether to send notifications about the creation of | 1396 * [sendNotifications] - Whether to send notifications about the creation of |
1399 * the new event. Optional. The default is False. | 1397 * the new event. Optional. The default is False. |
1400 * | 1398 * |
1401 * Completes with a [Event]. | 1399 * Completes with a [Event]. |
1402 * | 1400 * |
1403 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1404 * error. | 1402 * error. |
1405 * | 1403 * |
1406 * If the used [http.Client] completes with an error when making a REST call, | 1404 * If the used [http.Client] completes with an error when making a REST call, |
1407 * this method will complete with the same error. | 1405 * this method will complete with the same error. |
1408 */ | 1406 */ |
1409 async.Future<Event> insert(Event request, core.String calendarId, {core.int ma
xAttendees, core.bool sendNotifications}) { | 1407 async.Future<Event> insert(Event request, core.String calendarId, {core.int ma
xAttendees, core.bool sendNotifications}) { |
1410 var _url = null; | 1408 var _url = null; |
1411 var _queryParams = new core.Map(); | 1409 var _queryParams = new core.Map(); |
1412 var _uploadMedia = null; | 1410 var _uploadMedia = null; |
1413 var _uploadOptions = null; | 1411 var _uploadOptions = null; |
1414 var _downloadOptions = common.DownloadOptions.Metadata; | 1412 var _downloadOptions = commons.DownloadOptions.Metadata; |
1415 var _body = null; | 1413 var _body = null; |
1416 | 1414 |
1417 if (request != null) { | 1415 if (request != null) { |
1418 _body = convert.JSON.encode((request).toJson()); | 1416 _body = convert.JSON.encode((request).toJson()); |
1419 } | 1417 } |
1420 if (calendarId == null) { | 1418 if (calendarId == null) { |
1421 throw new core.ArgumentError("Parameter calendarId is required."); | 1419 throw new core.ArgumentError("Parameter calendarId is required."); |
1422 } | 1420 } |
1423 if (maxAttendees != null) { | 1421 if (maxAttendees != null) { |
1424 _queryParams["maxAttendees"] = ["${maxAttendees}"]; | 1422 _queryParams["maxAttendees"] = ["${maxAttendees}"]; |
1425 } | 1423 } |
1426 if (sendNotifications != null) { | 1424 if (sendNotifications != null) { |
1427 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1425 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1428 } | 1426 } |
1429 | 1427 |
1430 | 1428 |
1431 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events'; | 1429 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s'; |
1432 | 1430 |
1433 var _response = _requester.request(_url, | 1431 var _response = _requester.request(_url, |
1434 "POST", | 1432 "POST", |
1435 body: _body, | 1433 body: _body, |
1436 queryParams: _queryParams, | 1434 queryParams: _queryParams, |
1437 uploadOptions: _uploadOptions, | 1435 uploadOptions: _uploadOptions, |
1438 uploadMedia: _uploadMedia, | 1436 uploadMedia: _uploadMedia, |
1439 downloadOptions: _downloadOptions); | 1437 downloadOptions: _downloadOptions); |
1440 return _response.then((data) => new Event.fromJson(data)); | 1438 return _response.then((data) => new Event.fromJson(data)); |
1441 } | 1439 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 * Optional. The default is not to filter by start time. | 1475 * Optional. The default is not to filter by start time. |
1478 * | 1476 * |
1479 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. | 1477 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. |
1480 * Optional. The default is not to filter by end time. | 1478 * Optional. The default is not to filter by end time. |
1481 * | 1479 * |
1482 * [timeZone] - Time zone used in the response. Optional. The default is the | 1480 * [timeZone] - Time zone used in the response. Optional. The default is the |
1483 * time zone of the calendar. | 1481 * time zone of the calendar. |
1484 * | 1482 * |
1485 * Completes with a [Events]. | 1483 * Completes with a [Events]. |
1486 * | 1484 * |
1487 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1485 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1488 * error. | 1486 * error. |
1489 * | 1487 * |
1490 * If the used [http.Client] completes with an error when making a REST call, | 1488 * If the used [http.Client] completes with an error when making a REST call, |
1491 * this method will complete with the same error. | 1489 * this method will complete with the same error. |
1492 */ | 1490 */ |
1493 async.Future<Events> instances(core.String calendarId, core.String eventId, {c
ore.bool alwaysIncludeEmail, core.int maxAttendees, core.int maxResults, core.St
ring originalStart, core.String pageToken, core.bool showDeleted, core.DateTime
timeMax, core.DateTime timeMin, core.String timeZone}) { | 1491 async.Future<Events> instances(core.String calendarId, core.String eventId, {c
ore.bool alwaysIncludeEmail, core.int maxAttendees, core.int maxResults, core.St
ring originalStart, core.String pageToken, core.bool showDeleted, core.DateTime
timeMax, core.DateTime timeMin, core.String timeZone}) { |
1494 var _url = null; | 1492 var _url = null; |
1495 var _queryParams = new core.Map(); | 1493 var _queryParams = new core.Map(); |
1496 var _uploadMedia = null; | 1494 var _uploadMedia = null; |
1497 var _uploadOptions = null; | 1495 var _uploadOptions = null; |
1498 var _downloadOptions = common.DownloadOptions.Metadata; | 1496 var _downloadOptions = commons.DownloadOptions.Metadata; |
1499 var _body = null; | 1497 var _body = null; |
1500 | 1498 |
1501 if (calendarId == null) { | 1499 if (calendarId == null) { |
1502 throw new core.ArgumentError("Parameter calendarId is required."); | 1500 throw new core.ArgumentError("Parameter calendarId is required."); |
1503 } | 1501 } |
1504 if (eventId == null) { | 1502 if (eventId == null) { |
1505 throw new core.ArgumentError("Parameter eventId is required."); | 1503 throw new core.ArgumentError("Parameter eventId is required."); |
1506 } | 1504 } |
1507 if (alwaysIncludeEmail != null) { | 1505 if (alwaysIncludeEmail != null) { |
1508 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 1506 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
(...skipping 17 matching lines...) Expand all Loading... |
1526 _queryParams["timeMax"] = [(timeMax).toIso8601String()]; | 1524 _queryParams["timeMax"] = [(timeMax).toIso8601String()]; |
1527 } | 1525 } |
1528 if (timeMin != null) { | 1526 if (timeMin != null) { |
1529 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; | 1527 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; |
1530 } | 1528 } |
1531 if (timeZone != null) { | 1529 if (timeZone != null) { |
1532 _queryParams["timeZone"] = [timeZone]; | 1530 _queryParams["timeZone"] = [timeZone]; |
1533 } | 1531 } |
1534 | 1532 |
1535 | 1533 |
1536 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId') + '/instances'; | 1534 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId') + '/instances'; |
1537 | 1535 |
1538 var _response = _requester.request(_url, | 1536 var _response = _requester.request(_url, |
1539 "GET", | 1537 "GET", |
1540 body: _body, | 1538 body: _body, |
1541 queryParams: _queryParams, | 1539 queryParams: _queryParams, |
1542 uploadOptions: _uploadOptions, | 1540 uploadOptions: _uploadOptions, |
1543 uploadMedia: _uploadMedia, | 1541 uploadMedia: _uploadMedia, |
1544 downloadOptions: _downloadOptions); | 1542 downloadOptions: _downloadOptions); |
1545 return _response.then((data) => new Events.fromJson(data)); | 1543 return _response.then((data) => new Events.fromJson(data)); |
1546 } | 1544 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 * [timeZone] - Time zone used in the response. Optional. The default is the | 1635 * [timeZone] - Time zone used in the response. Optional. The default is the |
1638 * time zone of the calendar. | 1636 * time zone of the calendar. |
1639 * | 1637 * |
1640 * [updatedMin] - Lower bound for an event's last modification time (as a RFC | 1638 * [updatedMin] - Lower bound for an event's last modification time (as a RFC |
1641 * 3339 timestamp) to filter by. When specified, entries deleted since this | 1639 * 3339 timestamp) to filter by. When specified, entries deleted since this |
1642 * time will always be included regardless of showDeleted. Optional. The | 1640 * time will always be included regardless of showDeleted. Optional. The |
1643 * default is not to filter by last modification time. | 1641 * default is not to filter by last modification time. |
1644 * | 1642 * |
1645 * Completes with a [Events]. | 1643 * Completes with a [Events]. |
1646 * | 1644 * |
1647 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1648 * error. | 1646 * error. |
1649 * | 1647 * |
1650 * If the used [http.Client] completes with an error when making a REST call, | 1648 * If the used [http.Client] completes with an error when making a REST call, |
1651 * this method will complete with the same error. | 1649 * this method will complete with the same error. |
1652 */ | 1650 */ |
1653 async.Future<Events> list(core.String calendarId, {core.bool alwaysIncludeEmai
l, core.String iCalUID, core.int maxAttendees, core.int maxResults, core.String
orderBy, core.String pageToken, core.List<core.String> privateExtendedProperty,
core.String q, core.List<core.String> sharedExtendedProperty, core.bool showDele
ted, core.bool showHiddenInvitations, core.bool singleEvents, core.String syncTo
ken, core.DateTime timeMax, core.DateTime timeMin, core.String timeZone, core.Da
teTime updatedMin}) { | 1651 async.Future<Events> list(core.String calendarId, {core.bool alwaysIncludeEmai
l, core.String iCalUID, core.int maxAttendees, core.int maxResults, core.String
orderBy, core.String pageToken, core.List<core.String> privateExtendedProperty,
core.String q, core.List<core.String> sharedExtendedProperty, core.bool showDele
ted, core.bool showHiddenInvitations, core.bool singleEvents, core.String syncTo
ken, core.DateTime timeMax, core.DateTime timeMin, core.String timeZone, core.Da
teTime updatedMin}) { |
1654 var _url = null; | 1652 var _url = null; |
1655 var _queryParams = new core.Map(); | 1653 var _queryParams = new core.Map(); |
1656 var _uploadMedia = null; | 1654 var _uploadMedia = null; |
1657 var _uploadOptions = null; | 1655 var _uploadOptions = null; |
1658 var _downloadOptions = common.DownloadOptions.Metadata; | 1656 var _downloadOptions = commons.DownloadOptions.Metadata; |
1659 var _body = null; | 1657 var _body = null; |
1660 | 1658 |
1661 if (calendarId == null) { | 1659 if (calendarId == null) { |
1662 throw new core.ArgumentError("Parameter calendarId is required."); | 1660 throw new core.ArgumentError("Parameter calendarId is required."); |
1663 } | 1661 } |
1664 if (alwaysIncludeEmail != null) { | 1662 if (alwaysIncludeEmail != null) { |
1665 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 1663 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
1666 } | 1664 } |
1667 if (iCalUID != null) { | 1665 if (iCalUID != null) { |
1668 _queryParams["iCalUID"] = [iCalUID]; | 1666 _queryParams["iCalUID"] = [iCalUID]; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; | 1705 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; |
1708 } | 1706 } |
1709 if (timeZone != null) { | 1707 if (timeZone != null) { |
1710 _queryParams["timeZone"] = [timeZone]; | 1708 _queryParams["timeZone"] = [timeZone]; |
1711 } | 1709 } |
1712 if (updatedMin != null) { | 1710 if (updatedMin != null) { |
1713 _queryParams["updatedMin"] = [(updatedMin).toIso8601String()]; | 1711 _queryParams["updatedMin"] = [(updatedMin).toIso8601String()]; |
1714 } | 1712 } |
1715 | 1713 |
1716 | 1714 |
1717 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events'; | 1715 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s'; |
1718 | 1716 |
1719 var _response = _requester.request(_url, | 1717 var _response = _requester.request(_url, |
1720 "GET", | 1718 "GET", |
1721 body: _body, | 1719 body: _body, |
1722 queryParams: _queryParams, | 1720 queryParams: _queryParams, |
1723 uploadOptions: _uploadOptions, | 1721 uploadOptions: _uploadOptions, |
1724 uploadMedia: _uploadMedia, | 1722 uploadMedia: _uploadMedia, |
1725 downloadOptions: _downloadOptions); | 1723 downloadOptions: _downloadOptions); |
1726 return _response.then((data) => new Events.fromJson(data)); | 1724 return _response.then((data) => new Events.fromJson(data)); |
1727 } | 1725 } |
1728 | 1726 |
1729 /** | 1727 /** |
1730 * Moves an event to another calendar, i.e. changes an event's organizer. | 1728 * Moves an event to another calendar, i.e. changes an event's organizer. |
1731 * | 1729 * |
1732 * Request parameters: | 1730 * Request parameters: |
1733 * | 1731 * |
1734 * [calendarId] - Calendar identifier of the source calendar where the event | 1732 * [calendarId] - Calendar identifier of the source calendar where the event |
1735 * currently is on. | 1733 * currently is on. |
1736 * | 1734 * |
1737 * [eventId] - Event identifier. | 1735 * [eventId] - Event identifier. |
1738 * | 1736 * |
1739 * [destination] - Calendar identifier of the target calendar where the event | 1737 * [destination] - Calendar identifier of the target calendar where the event |
1740 * is to be moved to. | 1738 * is to be moved to. |
1741 * | 1739 * |
1742 * [sendNotifications] - Whether to send notifications about the change of the | 1740 * [sendNotifications] - Whether to send notifications about the change of the |
1743 * event's organizer. Optional. The default is False. | 1741 * event's organizer. Optional. The default is False. |
1744 * | 1742 * |
1745 * Completes with a [Event]. | 1743 * Completes with a [Event]. |
1746 * | 1744 * |
1747 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1745 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1748 * error. | 1746 * error. |
1749 * | 1747 * |
1750 * If the used [http.Client] completes with an error when making a REST call, | 1748 * If the used [http.Client] completes with an error when making a REST call, |
1751 * this method will complete with the same error. | 1749 * this method will complete with the same error. |
1752 */ | 1750 */ |
1753 async.Future<Event> move(core.String calendarId, core.String eventId, core.Str
ing destination, {core.bool sendNotifications}) { | 1751 async.Future<Event> move(core.String calendarId, core.String eventId, core.Str
ing destination, {core.bool sendNotifications}) { |
1754 var _url = null; | 1752 var _url = null; |
1755 var _queryParams = new core.Map(); | 1753 var _queryParams = new core.Map(); |
1756 var _uploadMedia = null; | 1754 var _uploadMedia = null; |
1757 var _uploadOptions = null; | 1755 var _uploadOptions = null; |
1758 var _downloadOptions = common.DownloadOptions.Metadata; | 1756 var _downloadOptions = commons.DownloadOptions.Metadata; |
1759 var _body = null; | 1757 var _body = null; |
1760 | 1758 |
1761 if (calendarId == null) { | 1759 if (calendarId == null) { |
1762 throw new core.ArgumentError("Parameter calendarId is required."); | 1760 throw new core.ArgumentError("Parameter calendarId is required."); |
1763 } | 1761 } |
1764 if (eventId == null) { | 1762 if (eventId == null) { |
1765 throw new core.ArgumentError("Parameter eventId is required."); | 1763 throw new core.ArgumentError("Parameter eventId is required."); |
1766 } | 1764 } |
1767 if (destination == null) { | 1765 if (destination == null) { |
1768 throw new core.ArgumentError("Parameter destination is required."); | 1766 throw new core.ArgumentError("Parameter destination is required."); |
1769 } | 1767 } |
1770 _queryParams["destination"] = [destination]; | 1768 _queryParams["destination"] = [destination]; |
1771 if (sendNotifications != null) { | 1769 if (sendNotifications != null) { |
1772 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1770 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1773 } | 1771 } |
1774 | 1772 |
1775 | 1773 |
1776 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId') + '/move'; | 1774 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId') + '/move'; |
1777 | 1775 |
1778 var _response = _requester.request(_url, | 1776 var _response = _requester.request(_url, |
1779 "POST", | 1777 "POST", |
1780 body: _body, | 1778 body: _body, |
1781 queryParams: _queryParams, | 1779 queryParams: _queryParams, |
1782 uploadOptions: _uploadOptions, | 1780 uploadOptions: _uploadOptions, |
1783 uploadMedia: _uploadMedia, | 1781 uploadMedia: _uploadMedia, |
1784 downloadOptions: _downloadOptions); | 1782 downloadOptions: _downloadOptions); |
1785 return _response.then((data) => new Event.fromJson(data)); | 1783 return _response.then((data) => new Event.fromJson(data)); |
1786 } | 1784 } |
(...skipping 19 matching lines...) Expand all Loading... |
1806 * [maxAttendees] - The maximum number of attendees to include in the | 1804 * [maxAttendees] - The maximum number of attendees to include in the |
1807 * response. If there are more than the specified number of attendees, only | 1805 * response. If there are more than the specified number of attendees, only |
1808 * the participant is returned. Optional. | 1806 * the participant is returned. Optional. |
1809 * | 1807 * |
1810 * [sendNotifications] - Whether to send notifications about the event update | 1808 * [sendNotifications] - Whether to send notifications about the event update |
1811 * (e.g. attendee's responses, title changes, etc.). Optional. The default is | 1809 * (e.g. attendee's responses, title changes, etc.). Optional. The default is |
1812 * False. | 1810 * False. |
1813 * | 1811 * |
1814 * Completes with a [Event]. | 1812 * Completes with a [Event]. |
1815 * | 1813 * |
1816 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1814 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1817 * error. | 1815 * error. |
1818 * | 1816 * |
1819 * If the used [http.Client] completes with an error when making a REST call, | 1817 * If the used [http.Client] completes with an error when making a REST call, |
1820 * this method will complete with the same error. | 1818 * this method will complete with the same error. |
1821 */ | 1819 */ |
1822 async.Future<Event> patch(Event request, core.String calendarId, core.String e
ventId, {core.bool alwaysIncludeEmail, core.int maxAttendees, core.bool sendNoti
fications}) { | 1820 async.Future<Event> patch(Event request, core.String calendarId, core.String e
ventId, {core.bool alwaysIncludeEmail, core.int maxAttendees, core.bool sendNoti
fications}) { |
1823 var _url = null; | 1821 var _url = null; |
1824 var _queryParams = new core.Map(); | 1822 var _queryParams = new core.Map(); |
1825 var _uploadMedia = null; | 1823 var _uploadMedia = null; |
1826 var _uploadOptions = null; | 1824 var _uploadOptions = null; |
1827 var _downloadOptions = common.DownloadOptions.Metadata; | 1825 var _downloadOptions = commons.DownloadOptions.Metadata; |
1828 var _body = null; | 1826 var _body = null; |
1829 | 1827 |
1830 if (request != null) { | 1828 if (request != null) { |
1831 _body = convert.JSON.encode((request).toJson()); | 1829 _body = convert.JSON.encode((request).toJson()); |
1832 } | 1830 } |
1833 if (calendarId == null) { | 1831 if (calendarId == null) { |
1834 throw new core.ArgumentError("Parameter calendarId is required."); | 1832 throw new core.ArgumentError("Parameter calendarId is required."); |
1835 } | 1833 } |
1836 if (eventId == null) { | 1834 if (eventId == null) { |
1837 throw new core.ArgumentError("Parameter eventId is required."); | 1835 throw new core.ArgumentError("Parameter eventId is required."); |
1838 } | 1836 } |
1839 if (alwaysIncludeEmail != null) { | 1837 if (alwaysIncludeEmail != null) { |
1840 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 1838 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
1841 } | 1839 } |
1842 if (maxAttendees != null) { | 1840 if (maxAttendees != null) { |
1843 _queryParams["maxAttendees"] = ["${maxAttendees}"]; | 1841 _queryParams["maxAttendees"] = ["${maxAttendees}"]; |
1844 } | 1842 } |
1845 if (sendNotifications != null) { | 1843 if (sendNotifications != null) { |
1846 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1844 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1847 } | 1845 } |
1848 | 1846 |
1849 | 1847 |
1850 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId'); | 1848 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId'); |
1851 | 1849 |
1852 var _response = _requester.request(_url, | 1850 var _response = _requester.request(_url, |
1853 "PATCH", | 1851 "PATCH", |
1854 body: _body, | 1852 body: _body, |
1855 queryParams: _queryParams, | 1853 queryParams: _queryParams, |
1856 uploadOptions: _uploadOptions, | 1854 uploadOptions: _uploadOptions, |
1857 uploadMedia: _uploadMedia, | 1855 uploadMedia: _uploadMedia, |
1858 downloadOptions: _downloadOptions); | 1856 downloadOptions: _downloadOptions); |
1859 return _response.then((data) => new Event.fromJson(data)); | 1857 return _response.then((data) => new Event.fromJson(data)); |
1860 } | 1858 } |
1861 | 1859 |
1862 /** | 1860 /** |
1863 * Creates an event based on a simple text string. | 1861 * Creates an event based on a simple text string. |
1864 * | 1862 * |
1865 * Request parameters: | 1863 * Request parameters: |
1866 * | 1864 * |
1867 * [calendarId] - Calendar identifier. | 1865 * [calendarId] - Calendar identifier. |
1868 * | 1866 * |
1869 * [text] - The text describing the event to be created. | 1867 * [text] - The text describing the event to be created. |
1870 * | 1868 * |
1871 * [sendNotifications] - Whether to send notifications about the creation of | 1869 * [sendNotifications] - Whether to send notifications about the creation of |
1872 * the event. Optional. The default is False. | 1870 * the event. Optional. The default is False. |
1873 * | 1871 * |
1874 * Completes with a [Event]. | 1872 * Completes with a [Event]. |
1875 * | 1873 * |
1876 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1874 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1877 * error. | 1875 * error. |
1878 * | 1876 * |
1879 * If the used [http.Client] completes with an error when making a REST call, | 1877 * If the used [http.Client] completes with an error when making a REST call, |
1880 * this method will complete with the same error. | 1878 * this method will complete with the same error. |
1881 */ | 1879 */ |
1882 async.Future<Event> quickAdd(core.String calendarId, core.String text, {core.b
ool sendNotifications}) { | 1880 async.Future<Event> quickAdd(core.String calendarId, core.String text, {core.b
ool sendNotifications}) { |
1883 var _url = null; | 1881 var _url = null; |
1884 var _queryParams = new core.Map(); | 1882 var _queryParams = new core.Map(); |
1885 var _uploadMedia = null; | 1883 var _uploadMedia = null; |
1886 var _uploadOptions = null; | 1884 var _uploadOptions = null; |
1887 var _downloadOptions = common.DownloadOptions.Metadata; | 1885 var _downloadOptions = commons.DownloadOptions.Metadata; |
1888 var _body = null; | 1886 var _body = null; |
1889 | 1887 |
1890 if (calendarId == null) { | 1888 if (calendarId == null) { |
1891 throw new core.ArgumentError("Parameter calendarId is required."); | 1889 throw new core.ArgumentError("Parameter calendarId is required."); |
1892 } | 1890 } |
1893 if (text == null) { | 1891 if (text == null) { |
1894 throw new core.ArgumentError("Parameter text is required."); | 1892 throw new core.ArgumentError("Parameter text is required."); |
1895 } | 1893 } |
1896 _queryParams["text"] = [text]; | 1894 _queryParams["text"] = [text]; |
1897 if (sendNotifications != null) { | 1895 if (sendNotifications != null) { |
1898 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1896 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1899 } | 1897 } |
1900 | 1898 |
1901 | 1899 |
1902 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/quickAdd'; | 1900 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/quickAdd'; |
1903 | 1901 |
1904 var _response = _requester.request(_url, | 1902 var _response = _requester.request(_url, |
1905 "POST", | 1903 "POST", |
1906 body: _body, | 1904 body: _body, |
1907 queryParams: _queryParams, | 1905 queryParams: _queryParams, |
1908 uploadOptions: _uploadOptions, | 1906 uploadOptions: _uploadOptions, |
1909 uploadMedia: _uploadMedia, | 1907 uploadMedia: _uploadMedia, |
1910 downloadOptions: _downloadOptions); | 1908 downloadOptions: _downloadOptions); |
1911 return _response.then((data) => new Event.fromJson(data)); | 1909 return _response.then((data) => new Event.fromJson(data)); |
1912 } | 1910 } |
(...skipping 19 matching lines...) Expand all Loading... |
1932 * [maxAttendees] - The maximum number of attendees to include in the | 1930 * [maxAttendees] - The maximum number of attendees to include in the |
1933 * response. If there are more than the specified number of attendees, only | 1931 * response. If there are more than the specified number of attendees, only |
1934 * the participant is returned. Optional. | 1932 * the participant is returned. Optional. |
1935 * | 1933 * |
1936 * [sendNotifications] - Whether to send notifications about the event update | 1934 * [sendNotifications] - Whether to send notifications about the event update |
1937 * (e.g. attendee's responses, title changes, etc.). Optional. The default is | 1935 * (e.g. attendee's responses, title changes, etc.). Optional. The default is |
1938 * False. | 1936 * False. |
1939 * | 1937 * |
1940 * Completes with a [Event]. | 1938 * Completes with a [Event]. |
1941 * | 1939 * |
1942 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1940 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1943 * error. | 1941 * error. |
1944 * | 1942 * |
1945 * If the used [http.Client] completes with an error when making a REST call, | 1943 * If the used [http.Client] completes with an error when making a REST call, |
1946 * this method will complete with the same error. | 1944 * this method will complete with the same error. |
1947 */ | 1945 */ |
1948 async.Future<Event> update(Event request, core.String calendarId, core.String
eventId, {core.bool alwaysIncludeEmail, core.int maxAttendees, core.bool sendNot
ifications}) { | 1946 async.Future<Event> update(Event request, core.String calendarId, core.String
eventId, {core.bool alwaysIncludeEmail, core.int maxAttendees, core.bool sendNot
ifications}) { |
1949 var _url = null; | 1947 var _url = null; |
1950 var _queryParams = new core.Map(); | 1948 var _queryParams = new core.Map(); |
1951 var _uploadMedia = null; | 1949 var _uploadMedia = null; |
1952 var _uploadOptions = null; | 1950 var _uploadOptions = null; |
1953 var _downloadOptions = common.DownloadOptions.Metadata; | 1951 var _downloadOptions = commons.DownloadOptions.Metadata; |
1954 var _body = null; | 1952 var _body = null; |
1955 | 1953 |
1956 if (request != null) { | 1954 if (request != null) { |
1957 _body = convert.JSON.encode((request).toJson()); | 1955 _body = convert.JSON.encode((request).toJson()); |
1958 } | 1956 } |
1959 if (calendarId == null) { | 1957 if (calendarId == null) { |
1960 throw new core.ArgumentError("Parameter calendarId is required."); | 1958 throw new core.ArgumentError("Parameter calendarId is required."); |
1961 } | 1959 } |
1962 if (eventId == null) { | 1960 if (eventId == null) { |
1963 throw new core.ArgumentError("Parameter eventId is required."); | 1961 throw new core.ArgumentError("Parameter eventId is required."); |
1964 } | 1962 } |
1965 if (alwaysIncludeEmail != null) { | 1963 if (alwaysIncludeEmail != null) { |
1966 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 1964 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
1967 } | 1965 } |
1968 if (maxAttendees != null) { | 1966 if (maxAttendees != null) { |
1969 _queryParams["maxAttendees"] = ["${maxAttendees}"]; | 1967 _queryParams["maxAttendees"] = ["${maxAttendees}"]; |
1970 } | 1968 } |
1971 if (sendNotifications != null) { | 1969 if (sendNotifications != null) { |
1972 _queryParams["sendNotifications"] = ["${sendNotifications}"]; | 1970 _queryParams["sendNotifications"] = ["${sendNotifications}"]; |
1973 } | 1971 } |
1974 | 1972 |
1975 | 1973 |
1976 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/' + common_internal.Escaper.ecapeVariable('$eventId'); | 1974 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/' + commons.Escaper.ecapeVariable('$eventId'); |
1977 | 1975 |
1978 var _response = _requester.request(_url, | 1976 var _response = _requester.request(_url, |
1979 "PUT", | 1977 "PUT", |
1980 body: _body, | 1978 body: _body, |
1981 queryParams: _queryParams, | 1979 queryParams: _queryParams, |
1982 uploadOptions: _uploadOptions, | 1980 uploadOptions: _uploadOptions, |
1983 uploadMedia: _uploadMedia, | 1981 uploadMedia: _uploadMedia, |
1984 downloadOptions: _downloadOptions); | 1982 downloadOptions: _downloadOptions); |
1985 return _response.then((data) => new Event.fromJson(data)); | 1983 return _response.then((data) => new Event.fromJson(data)); |
1986 } | 1984 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 * [timeZone] - Time zone used in the response. Optional. The default is the | 2077 * [timeZone] - Time zone used in the response. Optional. The default is the |
2080 * time zone of the calendar. | 2078 * time zone of the calendar. |
2081 * | 2079 * |
2082 * [updatedMin] - Lower bound for an event's last modification time (as a RFC | 2080 * [updatedMin] - Lower bound for an event's last modification time (as a RFC |
2083 * 3339 timestamp) to filter by. When specified, entries deleted since this | 2081 * 3339 timestamp) to filter by. When specified, entries deleted since this |
2084 * time will always be included regardless of showDeleted. Optional. The | 2082 * time will always be included regardless of showDeleted. Optional. The |
2085 * default is not to filter by last modification time. | 2083 * default is not to filter by last modification time. |
2086 * | 2084 * |
2087 * Completes with a [Channel]. | 2085 * Completes with a [Channel]. |
2088 * | 2086 * |
2089 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2087 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2090 * error. | 2088 * error. |
2091 * | 2089 * |
2092 * If the used [http.Client] completes with an error when making a REST call, | 2090 * If the used [http.Client] completes with an error when making a REST call, |
2093 * this method will complete with the same error. | 2091 * this method will complete with the same error. |
2094 */ | 2092 */ |
2095 async.Future<Channel> watch(Channel request, core.String calendarId, {core.boo
l alwaysIncludeEmail, core.String iCalUID, core.int maxAttendees, core.int maxRe
sults, core.String orderBy, core.String pageToken, core.List<core.String> privat
eExtendedProperty, core.String q, core.List<core.String> sharedExtendedProperty,
core.bool showDeleted, core.bool showHiddenInvitations, core.bool singleEvents,
core.String syncToken, core.DateTime timeMax, core.DateTime timeMin, core.Strin
g timeZone, core.DateTime updatedMin}) { | 2093 async.Future<Channel> watch(Channel request, core.String calendarId, {core.boo
l alwaysIncludeEmail, core.String iCalUID, core.int maxAttendees, core.int maxRe
sults, core.String orderBy, core.String pageToken, core.List<core.String> privat
eExtendedProperty, core.String q, core.List<core.String> sharedExtendedProperty,
core.bool showDeleted, core.bool showHiddenInvitations, core.bool singleEvents,
core.String syncToken, core.DateTime timeMax, core.DateTime timeMin, core.Strin
g timeZone, core.DateTime updatedMin}) { |
2096 var _url = null; | 2094 var _url = null; |
2097 var _queryParams = new core.Map(); | 2095 var _queryParams = new core.Map(); |
2098 var _uploadMedia = null; | 2096 var _uploadMedia = null; |
2099 var _uploadOptions = null; | 2097 var _uploadOptions = null; |
2100 var _downloadOptions = common.DownloadOptions.Metadata; | 2098 var _downloadOptions = commons.DownloadOptions.Metadata; |
2101 var _body = null; | 2099 var _body = null; |
2102 | 2100 |
2103 if (request != null) { | 2101 if (request != null) { |
2104 _body = convert.JSON.encode((request).toJson()); | 2102 _body = convert.JSON.encode((request).toJson()); |
2105 } | 2103 } |
2106 if (calendarId == null) { | 2104 if (calendarId == null) { |
2107 throw new core.ArgumentError("Parameter calendarId is required."); | 2105 throw new core.ArgumentError("Parameter calendarId is required."); |
2108 } | 2106 } |
2109 if (alwaysIncludeEmail != null) { | 2107 if (alwaysIncludeEmail != null) { |
2110 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; | 2108 _queryParams["alwaysIncludeEmail"] = ["${alwaysIncludeEmail}"]; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; | 2150 _queryParams["timeMin"] = [(timeMin).toIso8601String()]; |
2153 } | 2151 } |
2154 if (timeZone != null) { | 2152 if (timeZone != null) { |
2155 _queryParams["timeZone"] = [timeZone]; | 2153 _queryParams["timeZone"] = [timeZone]; |
2156 } | 2154 } |
2157 if (updatedMin != null) { | 2155 if (updatedMin != null) { |
2158 _queryParams["updatedMin"] = [(updatedMin).toIso8601String()]; | 2156 _queryParams["updatedMin"] = [(updatedMin).toIso8601String()]; |
2159 } | 2157 } |
2160 | 2158 |
2161 | 2159 |
2162 _url = 'calendars/' + common_internal.Escaper.ecapeVariable('$calendarId') +
'/events/watch'; | 2160 _url = 'calendars/' + commons.Escaper.ecapeVariable('$calendarId') + '/event
s/watch'; |
2163 | 2161 |
2164 var _response = _requester.request(_url, | 2162 var _response = _requester.request(_url, |
2165 "POST", | 2163 "POST", |
2166 body: _body, | 2164 body: _body, |
2167 queryParams: _queryParams, | 2165 queryParams: _queryParams, |
2168 uploadOptions: _uploadOptions, | 2166 uploadOptions: _uploadOptions, |
2169 uploadMedia: _uploadMedia, | 2167 uploadMedia: _uploadMedia, |
2170 downloadOptions: _downloadOptions); | 2168 downloadOptions: _downloadOptions); |
2171 return _response.then((data) => new Channel.fromJson(data)); | 2169 return _response.then((data) => new Channel.fromJson(data)); |
2172 } | 2170 } |
2173 | 2171 |
2174 } | 2172 } |
2175 | 2173 |
2176 | 2174 |
2177 /** Not documented yet. */ | |
2178 class FreebusyResourceApi { | 2175 class FreebusyResourceApi { |
2179 final common_internal.ApiRequester _requester; | 2176 final commons.ApiRequester _requester; |
2180 | 2177 |
2181 FreebusyResourceApi(common_internal.ApiRequester client) : | 2178 FreebusyResourceApi(commons.ApiRequester client) : |
2182 _requester = client; | 2179 _requester = client; |
2183 | 2180 |
2184 /** | 2181 /** |
2185 * Returns free/busy information for a set of calendars. | 2182 * Returns free/busy information for a set of calendars. |
2186 * | 2183 * |
2187 * [request] - The metadata request object. | 2184 * [request] - The metadata request object. |
2188 * | 2185 * |
2189 * Request parameters: | 2186 * Request parameters: |
2190 * | 2187 * |
2191 * Completes with a [FreeBusyResponse]. | 2188 * Completes with a [FreeBusyResponse]. |
2192 * | 2189 * |
2193 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2190 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2194 * error. | 2191 * error. |
2195 * | 2192 * |
2196 * If the used [http.Client] completes with an error when making a REST call, | 2193 * If the used [http.Client] completes with an error when making a REST call, |
2197 * this method will complete with the same error. | 2194 * this method will complete with the same error. |
2198 */ | 2195 */ |
2199 async.Future<FreeBusyResponse> query(FreeBusyRequest request) { | 2196 async.Future<FreeBusyResponse> query(FreeBusyRequest request) { |
2200 var _url = null; | 2197 var _url = null; |
2201 var _queryParams = new core.Map(); | 2198 var _queryParams = new core.Map(); |
2202 var _uploadMedia = null; | 2199 var _uploadMedia = null; |
2203 var _uploadOptions = null; | 2200 var _uploadOptions = null; |
2204 var _downloadOptions = common.DownloadOptions.Metadata; | 2201 var _downloadOptions = commons.DownloadOptions.Metadata; |
2205 var _body = null; | 2202 var _body = null; |
2206 | 2203 |
2207 if (request != null) { | 2204 if (request != null) { |
2208 _body = convert.JSON.encode((request).toJson()); | 2205 _body = convert.JSON.encode((request).toJson()); |
2209 } | 2206 } |
2210 | 2207 |
2211 | 2208 |
2212 _url = 'freeBusy'; | 2209 _url = 'freeBusy'; |
2213 | 2210 |
2214 var _response = _requester.request(_url, | 2211 var _response = _requester.request(_url, |
2215 "POST", | 2212 "POST", |
2216 body: _body, | 2213 body: _body, |
2217 queryParams: _queryParams, | 2214 queryParams: _queryParams, |
2218 uploadOptions: _uploadOptions, | 2215 uploadOptions: _uploadOptions, |
2219 uploadMedia: _uploadMedia, | 2216 uploadMedia: _uploadMedia, |
2220 downloadOptions: _downloadOptions); | 2217 downloadOptions: _downloadOptions); |
2221 return _response.then((data) => new FreeBusyResponse.fromJson(data)); | 2218 return _response.then((data) => new FreeBusyResponse.fromJson(data)); |
2222 } | 2219 } |
2223 | 2220 |
2224 } | 2221 } |
2225 | 2222 |
2226 | 2223 |
2227 /** Not documented yet. */ | |
2228 class SettingsResourceApi { | 2224 class SettingsResourceApi { |
2229 final common_internal.ApiRequester _requester; | 2225 final commons.ApiRequester _requester; |
2230 | 2226 |
2231 SettingsResourceApi(common_internal.ApiRequester client) : | 2227 SettingsResourceApi(commons.ApiRequester client) : |
2232 _requester = client; | 2228 _requester = client; |
2233 | 2229 |
2234 /** | 2230 /** |
2235 * Returns a single user setting. | 2231 * Returns a single user setting. |
2236 * | 2232 * |
2237 * Request parameters: | 2233 * Request parameters: |
2238 * | 2234 * |
2239 * [setting] - The id of the user setting. | 2235 * [setting] - The id of the user setting. |
2240 * | 2236 * |
2241 * Completes with a [Setting]. | 2237 * Completes with a [Setting]. |
2242 * | 2238 * |
2243 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2244 * error. | 2240 * error. |
2245 * | 2241 * |
2246 * If the used [http.Client] completes with an error when making a REST call, | 2242 * If the used [http.Client] completes with an error when making a REST call, |
2247 * this method will complete with the same error. | 2243 * this method will complete with the same error. |
2248 */ | 2244 */ |
2249 async.Future<Setting> get(core.String setting) { | 2245 async.Future<Setting> get(core.String setting) { |
2250 var _url = null; | 2246 var _url = null; |
2251 var _queryParams = new core.Map(); | 2247 var _queryParams = new core.Map(); |
2252 var _uploadMedia = null; | 2248 var _uploadMedia = null; |
2253 var _uploadOptions = null; | 2249 var _uploadOptions = null; |
2254 var _downloadOptions = common.DownloadOptions.Metadata; | 2250 var _downloadOptions = commons.DownloadOptions.Metadata; |
2255 var _body = null; | 2251 var _body = null; |
2256 | 2252 |
2257 if (setting == null) { | 2253 if (setting == null) { |
2258 throw new core.ArgumentError("Parameter setting is required."); | 2254 throw new core.ArgumentError("Parameter setting is required."); |
2259 } | 2255 } |
2260 | 2256 |
2261 | 2257 |
2262 _url = 'users/me/settings/' + common_internal.Escaper.ecapeVariable('$settin
g'); | 2258 _url = 'users/me/settings/' + commons.Escaper.ecapeVariable('$setting'); |
2263 | 2259 |
2264 var _response = _requester.request(_url, | 2260 var _response = _requester.request(_url, |
2265 "GET", | 2261 "GET", |
2266 body: _body, | 2262 body: _body, |
2267 queryParams: _queryParams, | 2263 queryParams: _queryParams, |
2268 uploadOptions: _uploadOptions, | 2264 uploadOptions: _uploadOptions, |
2269 uploadMedia: _uploadMedia, | 2265 uploadMedia: _uploadMedia, |
2270 downloadOptions: _downloadOptions); | 2266 downloadOptions: _downloadOptions); |
2271 return _response.then((data) => new Setting.fromJson(data)); | 2267 return _response.then((data) => new Setting.fromJson(data)); |
2272 } | 2268 } |
(...skipping 13 matching lines...) Expand all Loading... |
2286 * last page of results from the previous list request. It makes the result of | 2282 * last page of results from the previous list request. It makes the result of |
2287 * this list request contain only entries that have changed since then. | 2283 * this list request contain only entries that have changed since then. |
2288 * If the syncToken expires, the server will respond with a 410 GONE response | 2284 * If the syncToken expires, the server will respond with a 410 GONE response |
2289 * code and the client should clear its storage and perform a full | 2285 * code and the client should clear its storage and perform a full |
2290 * synchronization without any syncToken. | 2286 * synchronization without any syncToken. |
2291 * Learn more about incremental synchronization. | 2287 * Learn more about incremental synchronization. |
2292 * Optional. The default is to return all entries. | 2288 * Optional. The default is to return all entries. |
2293 * | 2289 * |
2294 * Completes with a [Settings]. | 2290 * Completes with a [Settings]. |
2295 * | 2291 * |
2296 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2292 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2297 * error. | 2293 * error. |
2298 * | 2294 * |
2299 * If the used [http.Client] completes with an error when making a REST call, | 2295 * If the used [http.Client] completes with an error when making a REST call, |
2300 * this method will complete with the same error. | 2296 * this method will complete with the same error. |
2301 */ | 2297 */ |
2302 async.Future<Settings> list({core.int maxResults, core.String pageToken, core.
String syncToken}) { | 2298 async.Future<Settings> list({core.int maxResults, core.String pageToken, core.
String syncToken}) { |
2303 var _url = null; | 2299 var _url = null; |
2304 var _queryParams = new core.Map(); | 2300 var _queryParams = new core.Map(); |
2305 var _uploadMedia = null; | 2301 var _uploadMedia = null; |
2306 var _uploadOptions = null; | 2302 var _uploadOptions = null; |
2307 var _downloadOptions = common.DownloadOptions.Metadata; | 2303 var _downloadOptions = commons.DownloadOptions.Metadata; |
2308 var _body = null; | 2304 var _body = null; |
2309 | 2305 |
2310 if (maxResults != null) { | 2306 if (maxResults != null) { |
2311 _queryParams["maxResults"] = ["${maxResults}"]; | 2307 _queryParams["maxResults"] = ["${maxResults}"]; |
2312 } | 2308 } |
2313 if (pageToken != null) { | 2309 if (pageToken != null) { |
2314 _queryParams["pageToken"] = [pageToken]; | 2310 _queryParams["pageToken"] = [pageToken]; |
2315 } | 2311 } |
2316 if (syncToken != null) { | 2312 if (syncToken != null) { |
2317 _queryParams["syncToken"] = [syncToken]; | 2313 _queryParams["syncToken"] = [syncToken]; |
(...skipping 29 matching lines...) Expand all Loading... |
2347 * last page of results from the previous list request. It makes the result of | 2343 * last page of results from the previous list request. It makes the result of |
2348 * this list request contain only entries that have changed since then. | 2344 * this list request contain only entries that have changed since then. |
2349 * If the syncToken expires, the server will respond with a 410 GONE response | 2345 * If the syncToken expires, the server will respond with a 410 GONE response |
2350 * code and the client should clear its storage and perform a full | 2346 * code and the client should clear its storage and perform a full |
2351 * synchronization without any syncToken. | 2347 * synchronization without any syncToken. |
2352 * Learn more about incremental synchronization. | 2348 * Learn more about incremental synchronization. |
2353 * Optional. The default is to return all entries. | 2349 * Optional. The default is to return all entries. |
2354 * | 2350 * |
2355 * Completes with a [Channel]. | 2351 * Completes with a [Channel]. |
2356 * | 2352 * |
2357 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2353 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2358 * error. | 2354 * error. |
2359 * | 2355 * |
2360 * If the used [http.Client] completes with an error when making a REST call, | 2356 * If the used [http.Client] completes with an error when making a REST call, |
2361 * this method will complete with the same error. | 2357 * this method will complete with the same error. |
2362 */ | 2358 */ |
2363 async.Future<Channel> watch(Channel request, {core.int maxResults, core.String
pageToken, core.String syncToken}) { | 2359 async.Future<Channel> watch(Channel request, {core.int maxResults, core.String
pageToken, core.String syncToken}) { |
2364 var _url = null; | 2360 var _url = null; |
2365 var _queryParams = new core.Map(); | 2361 var _queryParams = new core.Map(); |
2366 var _uploadMedia = null; | 2362 var _uploadMedia = null; |
2367 var _uploadOptions = null; | 2363 var _uploadOptions = null; |
2368 var _downloadOptions = common.DownloadOptions.Metadata; | 2364 var _downloadOptions = commons.DownloadOptions.Metadata; |
2369 var _body = null; | 2365 var _body = null; |
2370 | 2366 |
2371 if (request != null) { | 2367 if (request != null) { |
2372 _body = convert.JSON.encode((request).toJson()); | 2368 _body = convert.JSON.encode((request).toJson()); |
2373 } | 2369 } |
2374 if (maxResults != null) { | 2370 if (maxResults != null) { |
2375 _queryParams["maxResults"] = ["${maxResults}"]; | 2371 _queryParams["maxResults"] = ["${maxResults}"]; |
2376 } | 2372 } |
2377 if (pageToken != null) { | 2373 if (pageToken != null) { |
2378 _queryParams["pageToken"] = [pageToken]; | 2374 _queryParams["pageToken"] = [pageToken]; |
(...skipping 12 matching lines...) Expand all Loading... |
2391 uploadOptions: _uploadOptions, | 2387 uploadOptions: _uploadOptions, |
2392 uploadMedia: _uploadMedia, | 2388 uploadMedia: _uploadMedia, |
2393 downloadOptions: _downloadOptions); | 2389 downloadOptions: _downloadOptions); |
2394 return _response.then((data) => new Channel.fromJson(data)); | 2390 return _response.then((data) => new Channel.fromJson(data)); |
2395 } | 2391 } |
2396 | 2392 |
2397 } | 2393 } |
2398 | 2394 |
2399 | 2395 |
2400 | 2396 |
2401 /** Not documented yet. */ | |
2402 class Acl { | 2397 class Acl { |
2403 /** ETag of the collection. */ | 2398 /** ETag of the collection. */ |
2404 core.String etag; | 2399 core.String etag; |
2405 | 2400 |
2406 /** List of rules on the access control list. */ | 2401 /** List of rules on the access control list. */ |
2407 core.List<AclRule> items; | 2402 core.List<AclRule> items; |
2408 | 2403 |
2409 /** Type of the collection ("calendar#acl"). */ | 2404 /** Type of the collection ("calendar#acl"). */ |
2410 core.String kind; | 2405 core.String kind; |
2411 | 2406 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 _json["type"] = type; | 2496 _json["type"] = type; |
2502 } | 2497 } |
2503 if (value != null) { | 2498 if (value != null) { |
2504 _json["value"] = value; | 2499 _json["value"] = value; |
2505 } | 2500 } |
2506 return _json; | 2501 return _json; |
2507 } | 2502 } |
2508 } | 2503 } |
2509 | 2504 |
2510 | 2505 |
2511 /** Not documented yet. */ | |
2512 class AclRule { | 2506 class AclRule { |
2513 /** ETag of the resource. */ | 2507 /** ETag of the resource. */ |
2514 core.String etag; | 2508 core.String etag; |
2515 | 2509 |
2516 /** Identifier of the ACL rule. */ | 2510 /** Identifier of the ACL rule. */ |
2517 core.String id; | 2511 core.String id; |
2518 | 2512 |
2519 /** Type of the resource ("calendar#aclRule"). */ | 2513 /** Type of the resource ("calendar#aclRule"). */ |
2520 core.String kind; | 2514 core.String kind; |
2521 | 2515 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 _json["role"] = role; | 2566 _json["role"] = role; |
2573 } | 2567 } |
2574 if (scope != null) { | 2568 if (scope != null) { |
2575 _json["scope"] = (scope).toJson(); | 2569 _json["scope"] = (scope).toJson(); |
2576 } | 2570 } |
2577 return _json; | 2571 return _json; |
2578 } | 2572 } |
2579 } | 2573 } |
2580 | 2574 |
2581 | 2575 |
2582 /** Not documented yet. */ | |
2583 class Calendar { | 2576 class Calendar { |
2584 /** Description of the calendar. Optional. */ | 2577 /** Description of the calendar. Optional. */ |
2585 core.String description; | 2578 core.String description; |
2586 | 2579 |
2587 /** ETag of the resource. */ | 2580 /** ETag of the resource. */ |
2588 core.String etag; | 2581 core.String etag; |
2589 | 2582 |
2590 /** Identifier of the calendar. */ | 2583 /** Identifier of the calendar. */ |
2591 core.String id; | 2584 core.String id; |
2592 | 2585 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2653 _json["summary"] = summary; | 2646 _json["summary"] = summary; |
2654 } | 2647 } |
2655 if (timeZone != null) { | 2648 if (timeZone != null) { |
2656 _json["timeZone"] = timeZone; | 2649 _json["timeZone"] = timeZone; |
2657 } | 2650 } |
2658 return _json; | 2651 return _json; |
2659 } | 2652 } |
2660 } | 2653 } |
2661 | 2654 |
2662 | 2655 |
2663 /** Not documented yet. */ | |
2664 class CalendarList { | 2656 class CalendarList { |
2665 /** ETag of the collection. */ | 2657 /** ETag of the collection. */ |
2666 core.String etag; | 2658 core.String etag; |
2667 | 2659 |
2668 /** Calendars that are present on the user's calendar list. */ | 2660 /** Calendars that are present on the user's calendar list. */ |
2669 core.List<CalendarListEntry> items; | 2661 core.List<CalendarListEntry> items; |
2670 | 2662 |
2671 /** Type of the collection ("calendar#calendarList"). */ | 2663 /** Type of the collection ("calendar#calendarList"). */ |
2672 core.String kind; | 2664 core.String kind; |
2673 | 2665 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2746 core.Map toJson() { | 2738 core.Map toJson() { |
2747 var _json = new core.Map(); | 2739 var _json = new core.Map(); |
2748 if (notifications != null) { | 2740 if (notifications != null) { |
2749 _json["notifications"] = notifications.map((value) => (value).toJson()).to
List(); | 2741 _json["notifications"] = notifications.map((value) => (value).toJson()).to
List(); |
2750 } | 2742 } |
2751 return _json; | 2743 return _json; |
2752 } | 2744 } |
2753 } | 2745 } |
2754 | 2746 |
2755 | 2747 |
2756 /** Not documented yet. */ | |
2757 class CalendarListEntry { | 2748 class CalendarListEntry { |
2758 /** | 2749 /** |
2759 * The effective access role that the authenticated user has on the calendar. | 2750 * The effective access role that the authenticated user has on the calendar. |
2760 * Read-only. Possible values are: | 2751 * Read-only. Possible values are: |
2761 * - "freeBusyReader" - Provides read access to free/busy information. | 2752 * - "freeBusyReader" - Provides read access to free/busy information. |
2762 * - "reader" - Provides read access to the calendar. Private events will | 2753 * - "reader" - Provides read access to the calendar. Private events will |
2763 * appear to users with reader access, but event details will be hidden. | 2754 * appear to users with reader access, but event details will be hidden. |
2764 * - "writer" - Provides read and write access to the calendar. Private events | 2755 * - "writer" - Provides read and write access to the calendar. Private events |
2765 * will appear to users with writer access, and event details will be visible. | 2756 * will appear to users with writer access, and event details will be visible. |
2766 * - "owner" - Provides ownership of the calendar. This role has all of the | 2757 * - "owner" - Provides ownership of the calendar. This role has all of the |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2966 _json["summaryOverride"] = summaryOverride; | 2957 _json["summaryOverride"] = summaryOverride; |
2967 } | 2958 } |
2968 if (timeZone != null) { | 2959 if (timeZone != null) { |
2969 _json["timeZone"] = timeZone; | 2960 _json["timeZone"] = timeZone; |
2970 } | 2961 } |
2971 return _json; | 2962 return _json; |
2972 } | 2963 } |
2973 } | 2964 } |
2974 | 2965 |
2975 | 2966 |
2976 /** Not documented yet. */ | |
2977 class CalendarNotification { | 2967 class CalendarNotification { |
2978 /** | 2968 /** |
2979 * The method used to deliver the notification. Possible values are: | 2969 * The method used to deliver the notification. Possible values are: |
2980 * - "email" - Reminders are sent via email. | 2970 * - "email" - Reminders are sent via email. |
2981 * - "sms" - Reminders are sent via SMS. This value is read-only and is | 2971 * - "sms" - Reminders are sent via SMS. This value is read-only and is |
2982 * ignored on inserts and updates. | 2972 * ignored on inserts and updates. |
2983 */ | 2973 */ |
2984 core.String method; | 2974 core.String method; |
2985 | 2975 |
2986 /** | 2976 /** |
(...skipping 26 matching lines...) Expand all Loading... |
3013 _json["method"] = method; | 3003 _json["method"] = method; |
3014 } | 3004 } |
3015 if (type != null) { | 3005 if (type != null) { |
3016 _json["type"] = type; | 3006 _json["type"] = type; |
3017 } | 3007 } |
3018 return _json; | 3008 return _json; |
3019 } | 3009 } |
3020 } | 3010 } |
3021 | 3011 |
3022 | 3012 |
3023 /** Not documented yet. */ | |
3024 class Channel { | 3013 class Channel { |
3025 /** The address where notifications are delivered for this channel. */ | 3014 /** The address where notifications are delivered for this channel. */ |
3026 core.String address; | 3015 core.String address; |
3027 | 3016 |
3028 /** | 3017 /** |
3029 * Date and time of notification channel expiration, expressed as a Unix | 3018 * Date and time of notification channel expiration, expressed as a Unix |
3030 * timestamp, in milliseconds. Optional. | 3019 * timestamp, in milliseconds. Optional. |
3031 */ | 3020 */ |
3032 core.String expiration; | 3021 core.String expiration; |
3033 | 3022 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3130 _json["token"] = token; | 3119 _json["token"] = token; |
3131 } | 3120 } |
3132 if (type != null) { | 3121 if (type != null) { |
3133 _json["type"] = type; | 3122 _json["type"] = type; |
3134 } | 3123 } |
3135 return _json; | 3124 return _json; |
3136 } | 3125 } |
3137 } | 3126 } |
3138 | 3127 |
3139 | 3128 |
3140 /** Not documented yet. */ | |
3141 class ColorDefinition { | 3129 class ColorDefinition { |
3142 /** The background color associated with this color definition. */ | 3130 /** The background color associated with this color definition. */ |
3143 core.String background; | 3131 core.String background; |
3144 | 3132 |
3145 /** | 3133 /** |
3146 * The foreground color that can be used to write on top of a background with | 3134 * The foreground color that can be used to write on top of a background with |
3147 * 'background' color. | 3135 * 'background' color. |
3148 */ | 3136 */ |
3149 core.String foreground; | 3137 core.String foreground; |
3150 | 3138 |
(...skipping 15 matching lines...) Expand all Loading... |
3166 _json["background"] = background; | 3154 _json["background"] = background; |
3167 } | 3155 } |
3168 if (foreground != null) { | 3156 if (foreground != null) { |
3169 _json["foreground"] = foreground; | 3157 _json["foreground"] = foreground; |
3170 } | 3158 } |
3171 return _json; | 3159 return _json; |
3172 } | 3160 } |
3173 } | 3161 } |
3174 | 3162 |
3175 | 3163 |
3176 /** Not documented yet. */ | |
3177 class Colors { | 3164 class Colors { |
3178 /** | 3165 /** |
3179 * Palette of calendar colors, mapping from the color ID to its definition. A | 3166 * Palette of calendar colors, mapping from the color ID to its definition. A |
3180 * calendarListEntry resource refers to one of these color IDs in its color | 3167 * calendarListEntry resource refers to one of these color IDs in its color |
3181 * field. Read-only. | 3168 * field. Read-only. |
3182 */ | 3169 */ |
3183 core.Map<core.String, ColorDefinition> calendar; | 3170 core.Map<core.String, ColorDefinition> calendar; |
3184 | 3171 |
3185 /** | 3172 /** |
3186 * Palette of event colors, mapping from the color ID to its definition. An | 3173 * Palette of event colors, mapping from the color ID to its definition. An |
3187 * event resource may refer to one of these color IDs in its color field. | 3174 * event resource may refer to one of these color IDs in its color field. |
3188 * Read-only. | 3175 * Read-only. |
3189 */ | 3176 */ |
3190 core.Map<core.String, ColorDefinition> event; | 3177 core.Map<core.String, ColorDefinition> event; |
3191 | 3178 |
3192 /** Type of the resource ("calendar#colors"). */ | 3179 /** Type of the resource ("calendar#colors"). */ |
3193 core.String kind; | 3180 core.String kind; |
3194 | 3181 |
3195 /** | 3182 /** |
3196 * Last modification time of the color palette (as a RFC 3339 timestamp). | 3183 * Last modification time of the color palette (as a RFC 3339 timestamp). |
3197 * Read-only. | 3184 * Read-only. |
3198 */ | 3185 */ |
3199 core.DateTime updated; | 3186 core.DateTime updated; |
3200 | 3187 |
3201 | 3188 |
3202 Colors(); | 3189 Colors(); |
3203 | 3190 |
3204 Colors.fromJson(core.Map _json) { | 3191 Colors.fromJson(core.Map _json) { |
3205 if (_json.containsKey("calendar")) { | 3192 if (_json.containsKey("calendar")) { |
3206 calendar = common_internal.mapMap(_json["calendar"], (item) => new ColorDe
finition.fromJson(item)); | 3193 calendar = commons.mapMap(_json["calendar"], (item) => new ColorDefinition
.fromJson(item)); |
3207 } | 3194 } |
3208 if (_json.containsKey("event")) { | 3195 if (_json.containsKey("event")) { |
3209 event = common_internal.mapMap(_json["event"], (item) => new ColorDefiniti
on.fromJson(item)); | 3196 event = commons.mapMap(_json["event"], (item) => new ColorDefinition.fromJ
son(item)); |
3210 } | 3197 } |
3211 if (_json.containsKey("kind")) { | 3198 if (_json.containsKey("kind")) { |
3212 kind = _json["kind"]; | 3199 kind = _json["kind"]; |
3213 } | 3200 } |
3214 if (_json.containsKey("updated")) { | 3201 if (_json.containsKey("updated")) { |
3215 updated = core.DateTime.parse(_json["updated"]); | 3202 updated = core.DateTime.parse(_json["updated"]); |
3216 } | 3203 } |
3217 } | 3204 } |
3218 | 3205 |
3219 core.Map toJson() { | 3206 core.Map toJson() { |
3220 var _json = new core.Map(); | 3207 var _json = new core.Map(); |
3221 if (calendar != null) { | 3208 if (calendar != null) { |
3222 _json["calendar"] = common_internal.mapMap(calendar, (item) => (item).toJs
on()); | 3209 _json["calendar"] = commons.mapMap(calendar, (item) => (item).toJson()); |
3223 } | 3210 } |
3224 if (event != null) { | 3211 if (event != null) { |
3225 _json["event"] = common_internal.mapMap(event, (item) => (item).toJson()); | 3212 _json["event"] = commons.mapMap(event, (item) => (item).toJson()); |
3226 } | 3213 } |
3227 if (kind != null) { | 3214 if (kind != null) { |
3228 _json["kind"] = kind; | 3215 _json["kind"] = kind; |
3229 } | 3216 } |
3230 if (updated != null) { | 3217 if (updated != null) { |
3231 _json["updated"] = (updated).toIso8601String(); | 3218 _json["updated"] = (updated).toIso8601String(); |
3232 } | 3219 } |
3233 return _json; | 3220 return _json; |
3234 } | 3221 } |
3235 } | 3222 } |
3236 | 3223 |
3237 | 3224 |
3238 /** Not documented yet. */ | |
3239 class Error { | 3225 class Error { |
3240 /** Domain, or broad category, of the error. */ | 3226 /** Domain, or broad category, of the error. */ |
3241 core.String domain; | 3227 core.String domain; |
3242 | 3228 |
3243 /** | 3229 /** |
3244 * Specific reason for the error. Some of the possible values are: | 3230 * Specific reason for the error. Some of the possible values are: |
3245 * - "groupTooBig" - The group of users requested is too large for a single | 3231 * - "groupTooBig" - The group of users requested is too large for a single |
3246 * query. | 3232 * query. |
3247 * - "tooManyCalendarsRequested" - The number of calendars requested is too | 3233 * - "tooManyCalendarsRequested" - The number of calendars requested is too |
3248 * large for a single query. | 3234 * large for a single query. |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3594 _json["title"] = title; | 3580 _json["title"] = title; |
3595 } | 3581 } |
3596 if (url != null) { | 3582 if (url != null) { |
3597 _json["url"] = url; | 3583 _json["url"] = url; |
3598 } | 3584 } |
3599 return _json; | 3585 return _json; |
3600 } | 3586 } |
3601 } | 3587 } |
3602 | 3588 |
3603 | 3589 |
3604 /** Not documented yet. */ | |
3605 class Event { | 3590 class Event { |
3606 /** | 3591 /** |
3607 * Whether anyone can invite themselves to the event. Optional. The default is | 3592 * Whether anyone can invite themselves to the event. Optional. The default is |
3608 * False. | 3593 * False. |
3609 */ | 3594 */ |
3610 core.bool anyoneCanAddSelf; | 3595 core.bool anyoneCanAddSelf; |
3611 | 3596 |
3612 /** The attendees of the event. */ | 3597 /** The attendees of the event. */ |
3613 core.List<EventAttendee> attendees; | 3598 core.List<EventAttendee> attendees; |
3614 | 3599 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4028 _json["updated"] = (updated).toIso8601String(); | 4013 _json["updated"] = (updated).toIso8601String(); |
4029 } | 4014 } |
4030 if (visibility != null) { | 4015 if (visibility != null) { |
4031 _json["visibility"] = visibility; | 4016 _json["visibility"] = visibility; |
4032 } | 4017 } |
4033 return _json; | 4018 return _json; |
4034 } | 4019 } |
4035 } | 4020 } |
4036 | 4021 |
4037 | 4022 |
4038 /** Not documented yet. */ | |
4039 class EventAttachment { | 4023 class EventAttachment { |
4040 | 4024 |
4041 EventAttachment(); | 4025 EventAttachment(); |
4042 | 4026 |
4043 EventAttachment.fromJson(core.Map _json) { | 4027 EventAttachment.fromJson(core.Map _json) { |
4044 } | 4028 } |
4045 | 4029 |
4046 core.Map toJson() { | 4030 core.Map toJson() { |
4047 var _json = new core.Map(); | 4031 var _json = new core.Map(); |
4048 return _json; | 4032 return _json; |
4049 } | 4033 } |
4050 } | 4034 } |
4051 | 4035 |
4052 | 4036 |
4053 /** Not documented yet. */ | |
4054 class EventAttendee { | 4037 class EventAttendee { |
4055 /** Number of additional guests. Optional. The default is 0. */ | 4038 /** Number of additional guests. Optional. The default is 0. */ |
4056 core.int additionalGuests; | 4039 core.int additionalGuests; |
4057 | 4040 |
4058 /** The attendee's response comment. Optional. */ | 4041 /** The attendee's response comment. Optional. */ |
4059 core.String comment; | 4042 core.String comment; |
4060 | 4043 |
4061 /** The attendee's name, if available. Optional. */ | 4044 /** The attendee's name, if available. Optional. */ |
4062 core.String displayName; | 4045 core.String displayName; |
4063 | 4046 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4163 _json["responseStatus"] = responseStatus; | 4146 _json["responseStatus"] = responseStatus; |
4164 } | 4147 } |
4165 if (self != null) { | 4148 if (self != null) { |
4166 _json["self"] = self; | 4149 _json["self"] = self; |
4167 } | 4150 } |
4168 return _json; | 4151 return _json; |
4169 } | 4152 } |
4170 } | 4153 } |
4171 | 4154 |
4172 | 4155 |
4173 /** Not documented yet. */ | |
4174 class EventDateTime { | 4156 class EventDateTime { |
4175 /** The date, in the format "yyyy-mm-dd", if this is an all-day event. */ | 4157 /** The date, in the format "yyyy-mm-dd", if this is an all-day event. */ |
4176 core.DateTime date; | 4158 core.DateTime date; |
4177 | 4159 |
4178 /** | 4160 /** |
4179 * The time, as a combined date-time value (formatted according to RFC 3339). | 4161 * The time, as a combined date-time value (formatted according to RFC 3339). |
4180 * A time zone offset is required unless a time zone is explicitly specified | 4162 * A time zone offset is required unless a time zone is explicitly specified |
4181 * in timeZone. | 4163 * in timeZone. |
4182 */ | 4164 */ |
4183 core.DateTime dateTime; | 4165 core.DateTime dateTime; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4215 _json["dateTime"] = (dateTime).toIso8601String(); | 4197 _json["dateTime"] = (dateTime).toIso8601String(); |
4216 } | 4198 } |
4217 if (timeZone != null) { | 4199 if (timeZone != null) { |
4218 _json["timeZone"] = timeZone; | 4200 _json["timeZone"] = timeZone; |
4219 } | 4201 } |
4220 return _json; | 4202 return _json; |
4221 } | 4203 } |
4222 } | 4204 } |
4223 | 4205 |
4224 | 4206 |
4225 /** Not documented yet. */ | |
4226 class EventReminder { | 4207 class EventReminder { |
4227 /** | 4208 /** |
4228 * The method used by this reminder. Possible values are: | 4209 * The method used by this reminder. Possible values are: |
4229 * - "email" - Reminders are sent via email. | 4210 * - "email" - Reminders are sent via email. |
4230 * - "sms" - Reminders are sent via SMS. | 4211 * - "sms" - Reminders are sent via SMS. |
4231 * - "popup" - Reminders are sent via a UI popup. | 4212 * - "popup" - Reminders are sent via a UI popup. |
4232 */ | 4213 */ |
4233 core.String method; | 4214 core.String method; |
4234 | 4215 |
4235 /** | 4216 /** |
(...skipping 20 matching lines...) Expand all Loading... |
4256 _json["method"] = method; | 4237 _json["method"] = method; |
4257 } | 4238 } |
4258 if (minutes != null) { | 4239 if (minutes != null) { |
4259 _json["minutes"] = minutes; | 4240 _json["minutes"] = minutes; |
4260 } | 4241 } |
4261 return _json; | 4242 return _json; |
4262 } | 4243 } |
4263 } | 4244 } |
4264 | 4245 |
4265 | 4246 |
4266 /** Not documented yet. */ | |
4267 class Events { | 4247 class Events { |
4268 /** | 4248 /** |
4269 * The user's access role for this calendar. Read-only. Possible values are: | 4249 * The user's access role for this calendar. Read-only. Possible values are: |
4270 * - "none" - The user has no access. | 4250 * - "none" - The user has no access. |
4271 * - "freeBusyReader" - The user has read access to free/busy information. | 4251 * - "freeBusyReader" - The user has read access to free/busy information. |
4272 * - "reader" - The user has read access to the calendar. Private events will | 4252 * - "reader" - The user has read access to the calendar. Private events will |
4273 * appear to users with reader access, but event details will be hidden. | 4253 * appear to users with reader access, but event details will be hidden. |
4274 * - "writer" - The user has read and write access to the calendar. Private | 4254 * - "writer" - The user has read and write access to the calendar. Private |
4275 * events will appear to users with writer access, and event details will be | 4255 * events will appear to users with writer access, and event details will be |
4276 * visible. | 4256 * visible. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4396 _json["timeZone"] = timeZone; | 4376 _json["timeZone"] = timeZone; |
4397 } | 4377 } |
4398 if (updated != null) { | 4378 if (updated != null) { |
4399 _json["updated"] = (updated).toIso8601String(); | 4379 _json["updated"] = (updated).toIso8601String(); |
4400 } | 4380 } |
4401 return _json; | 4381 return _json; |
4402 } | 4382 } |
4403 } | 4383 } |
4404 | 4384 |
4405 | 4385 |
4406 /** Not documented yet. */ | |
4407 class FreeBusyCalendar { | 4386 class FreeBusyCalendar { |
4408 /** | 4387 /** |
4409 * List of time ranges during which this calendar should be regarded as busy. | 4388 * List of time ranges during which this calendar should be regarded as busy. |
4410 */ | 4389 */ |
4411 core.List<TimePeriod> busy; | 4390 core.List<TimePeriod> busy; |
4412 | 4391 |
4413 /** Optional error(s) (if computation for the calendar failed). */ | 4392 /** Optional error(s) (if computation for the calendar failed). */ |
4414 core.List<Error> errors; | 4393 core.List<Error> errors; |
4415 | 4394 |
4416 | 4395 |
(...skipping 14 matching lines...) Expand all Loading... |
4431 _json["busy"] = busy.map((value) => (value).toJson()).toList(); | 4410 _json["busy"] = busy.map((value) => (value).toJson()).toList(); |
4432 } | 4411 } |
4433 if (errors != null) { | 4412 if (errors != null) { |
4434 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4413 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4435 } | 4414 } |
4436 return _json; | 4415 return _json; |
4437 } | 4416 } |
4438 } | 4417 } |
4439 | 4418 |
4440 | 4419 |
4441 /** Not documented yet. */ | |
4442 class FreeBusyGroup { | 4420 class FreeBusyGroup { |
4443 /** List of calendars' identifiers within a group. */ | 4421 /** List of calendars' identifiers within a group. */ |
4444 core.List<core.String> calendars; | 4422 core.List<core.String> calendars; |
4445 | 4423 |
4446 /** Optional error(s) (if computation for the group failed). */ | 4424 /** Optional error(s) (if computation for the group failed). */ |
4447 core.List<Error> errors; | 4425 core.List<Error> errors; |
4448 | 4426 |
4449 | 4427 |
4450 FreeBusyGroup(); | 4428 FreeBusyGroup(); |
4451 | 4429 |
(...skipping 12 matching lines...) Expand all Loading... |
4464 _json["calendars"] = calendars; | 4442 _json["calendars"] = calendars; |
4465 } | 4443 } |
4466 if (errors != null) { | 4444 if (errors != null) { |
4467 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4445 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
4468 } | 4446 } |
4469 return _json; | 4447 return _json; |
4470 } | 4448 } |
4471 } | 4449 } |
4472 | 4450 |
4473 | 4451 |
4474 /** Not documented yet. */ | |
4475 class FreeBusyRequest { | 4452 class FreeBusyRequest { |
4476 /** | 4453 /** |
4477 * Maximal number of calendars for which FreeBusy information is to be | 4454 * Maximal number of calendars for which FreeBusy information is to be |
4478 * provided. Optional. | 4455 * provided. Optional. |
4479 */ | 4456 */ |
4480 core.int calendarExpansionMax; | 4457 core.int calendarExpansionMax; |
4481 | 4458 |
4482 /** | 4459 /** |
4483 * Maximal number of calendar identifiers to be provided for a single group. | 4460 * Maximal number of calendar identifiers to be provided for a single group. |
4484 * Optional. An error will be returned for a group with more members than this | 4461 * Optional. An error will be returned for a group with more members than this |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4540 _json["timeMin"] = (timeMin).toIso8601String(); | 4517 _json["timeMin"] = (timeMin).toIso8601String(); |
4541 } | 4518 } |
4542 if (timeZone != null) { | 4519 if (timeZone != null) { |
4543 _json["timeZone"] = timeZone; | 4520 _json["timeZone"] = timeZone; |
4544 } | 4521 } |
4545 return _json; | 4522 return _json; |
4546 } | 4523 } |
4547 } | 4524 } |
4548 | 4525 |
4549 | 4526 |
4550 /** Not documented yet. */ | |
4551 class FreeBusyRequestItem { | 4527 class FreeBusyRequestItem { |
4552 /** The identifier of a calendar or a group. */ | 4528 /** The identifier of a calendar or a group. */ |
4553 core.String id; | 4529 core.String id; |
4554 | 4530 |
4555 | 4531 |
4556 FreeBusyRequestItem(); | 4532 FreeBusyRequestItem(); |
4557 | 4533 |
4558 FreeBusyRequestItem.fromJson(core.Map _json) { | 4534 FreeBusyRequestItem.fromJson(core.Map _json) { |
4559 if (_json.containsKey("id")) { | 4535 if (_json.containsKey("id")) { |
4560 id = _json["id"]; | 4536 id = _json["id"]; |
4561 } | 4537 } |
4562 } | 4538 } |
4563 | 4539 |
4564 core.Map toJson() { | 4540 core.Map toJson() { |
4565 var _json = new core.Map(); | 4541 var _json = new core.Map(); |
4566 if (id != null) { | 4542 if (id != null) { |
4567 _json["id"] = id; | 4543 _json["id"] = id; |
4568 } | 4544 } |
4569 return _json; | 4545 return _json; |
4570 } | 4546 } |
4571 } | 4547 } |
4572 | 4548 |
4573 | 4549 |
4574 /** Not documented yet. */ | |
4575 class FreeBusyResponse { | 4550 class FreeBusyResponse { |
4576 /** List of free/busy information for calendars. */ | 4551 /** List of free/busy information for calendars. */ |
4577 core.Map<core.String, FreeBusyCalendar> calendars; | 4552 core.Map<core.String, FreeBusyCalendar> calendars; |
4578 | 4553 |
4579 /** Expansion of groups. */ | 4554 /** Expansion of groups. */ |
4580 core.Map<core.String, FreeBusyGroup> groups; | 4555 core.Map<core.String, FreeBusyGroup> groups; |
4581 | 4556 |
4582 /** Type of the resource ("calendar#freeBusy"). */ | 4557 /** Type of the resource ("calendar#freeBusy"). */ |
4583 core.String kind; | 4558 core.String kind; |
4584 | 4559 |
4585 /** The end of the interval. */ | 4560 /** The end of the interval. */ |
4586 core.DateTime timeMax; | 4561 core.DateTime timeMax; |
4587 | 4562 |
4588 /** The start of the interval. */ | 4563 /** The start of the interval. */ |
4589 core.DateTime timeMin; | 4564 core.DateTime timeMin; |
4590 | 4565 |
4591 | 4566 |
4592 FreeBusyResponse(); | 4567 FreeBusyResponse(); |
4593 | 4568 |
4594 FreeBusyResponse.fromJson(core.Map _json) { | 4569 FreeBusyResponse.fromJson(core.Map _json) { |
4595 if (_json.containsKey("calendars")) { | 4570 if (_json.containsKey("calendars")) { |
4596 calendars = common_internal.mapMap(_json["calendars"], (item) => new FreeB
usyCalendar.fromJson(item)); | 4571 calendars = commons.mapMap(_json["calendars"], (item) => new FreeBusyCalen
dar.fromJson(item)); |
4597 } | 4572 } |
4598 if (_json.containsKey("groups")) { | 4573 if (_json.containsKey("groups")) { |
4599 groups = common_internal.mapMap(_json["groups"], (item) => new FreeBusyGro
up.fromJson(item)); | 4574 groups = commons.mapMap(_json["groups"], (item) => new FreeBusyGroup.fromJ
son(item)); |
4600 } | 4575 } |
4601 if (_json.containsKey("kind")) { | 4576 if (_json.containsKey("kind")) { |
4602 kind = _json["kind"]; | 4577 kind = _json["kind"]; |
4603 } | 4578 } |
4604 if (_json.containsKey("timeMax")) { | 4579 if (_json.containsKey("timeMax")) { |
4605 timeMax = core.DateTime.parse(_json["timeMax"]); | 4580 timeMax = core.DateTime.parse(_json["timeMax"]); |
4606 } | 4581 } |
4607 if (_json.containsKey("timeMin")) { | 4582 if (_json.containsKey("timeMin")) { |
4608 timeMin = core.DateTime.parse(_json["timeMin"]); | 4583 timeMin = core.DateTime.parse(_json["timeMin"]); |
4609 } | 4584 } |
4610 } | 4585 } |
4611 | 4586 |
4612 core.Map toJson() { | 4587 core.Map toJson() { |
4613 var _json = new core.Map(); | 4588 var _json = new core.Map(); |
4614 if (calendars != null) { | 4589 if (calendars != null) { |
4615 _json["calendars"] = common_internal.mapMap(calendars, (item) => (item).to
Json()); | 4590 _json["calendars"] = commons.mapMap(calendars, (item) => (item).toJson()); |
4616 } | 4591 } |
4617 if (groups != null) { | 4592 if (groups != null) { |
4618 _json["groups"] = common_internal.mapMap(groups, (item) => (item).toJson()
); | 4593 _json["groups"] = commons.mapMap(groups, (item) => (item).toJson()); |
4619 } | 4594 } |
4620 if (kind != null) { | 4595 if (kind != null) { |
4621 _json["kind"] = kind; | 4596 _json["kind"] = kind; |
4622 } | 4597 } |
4623 if (timeMax != null) { | 4598 if (timeMax != null) { |
4624 _json["timeMax"] = (timeMax).toIso8601String(); | 4599 _json["timeMax"] = (timeMax).toIso8601String(); |
4625 } | 4600 } |
4626 if (timeMin != null) { | 4601 if (timeMin != null) { |
4627 _json["timeMin"] = (timeMin).toIso8601String(); | 4602 _json["timeMin"] = (timeMin).toIso8601String(); |
4628 } | 4603 } |
4629 return _json; | 4604 return _json; |
4630 } | 4605 } |
4631 } | 4606 } |
4632 | 4607 |
4633 | 4608 |
4634 /** Not documented yet. */ | |
4635 class Setting { | 4609 class Setting { |
4636 /** ETag of the resource. */ | 4610 /** ETag of the resource. */ |
4637 core.String etag; | 4611 core.String etag; |
4638 | 4612 |
4639 /** The id of the user setting. */ | 4613 /** The id of the user setting. */ |
4640 core.String id; | 4614 core.String id; |
4641 | 4615 |
4642 /** Type of the resource ("calendar#setting"). */ | 4616 /** Type of the resource ("calendar#setting"). */ |
4643 core.String kind; | 4617 core.String kind; |
4644 | 4618 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4678 _json["kind"] = kind; | 4652 _json["kind"] = kind; |
4679 } | 4653 } |
4680 if (value != null) { | 4654 if (value != null) { |
4681 _json["value"] = value; | 4655 _json["value"] = value; |
4682 } | 4656 } |
4683 return _json; | 4657 return _json; |
4684 } | 4658 } |
4685 } | 4659 } |
4686 | 4660 |
4687 | 4661 |
4688 /** Not documented yet. */ | |
4689 class Settings { | 4662 class Settings { |
4690 /** Etag of the collection. */ | 4663 /** Etag of the collection. */ |
4691 core.String etag; | 4664 core.String etag; |
4692 | 4665 |
4693 /** List of user settings. */ | 4666 /** List of user settings. */ |
4694 core.List<Setting> items; | 4667 core.List<Setting> items; |
4695 | 4668 |
4696 /** Type of the collection ("calendar#settings"). */ | 4669 /** Type of the collection ("calendar#settings"). */ |
4697 core.String kind; | 4670 core.String kind; |
4698 | 4671 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4745 _json["nextPageToken"] = nextPageToken; | 4718 _json["nextPageToken"] = nextPageToken; |
4746 } | 4719 } |
4747 if (nextSyncToken != null) { | 4720 if (nextSyncToken != null) { |
4748 _json["nextSyncToken"] = nextSyncToken; | 4721 _json["nextSyncToken"] = nextSyncToken; |
4749 } | 4722 } |
4750 return _json; | 4723 return _json; |
4751 } | 4724 } |
4752 } | 4725 } |
4753 | 4726 |
4754 | 4727 |
4755 /** Not documented yet. */ | |
4756 class TimePeriod { | 4728 class TimePeriod { |
4757 /** The (exclusive) end of the time period. */ | 4729 /** The (exclusive) end of the time period. */ |
4758 core.DateTime end; | 4730 core.DateTime end; |
4759 | 4731 |
4760 /** The (inclusive) start of the time period. */ | 4732 /** The (inclusive) start of the time period. */ |
4761 core.DateTime start; | 4733 core.DateTime start; |
4762 | 4734 |
4763 | 4735 |
4764 TimePeriod(); | 4736 TimePeriod(); |
4765 | 4737 |
(...skipping 10 matching lines...) Expand all Loading... |
4776 var _json = new core.Map(); | 4748 var _json = new core.Map(); |
4777 if (end != null) { | 4749 if (end != null) { |
4778 _json["end"] = (end).toIso8601String(); | 4750 _json["end"] = (end).toIso8601String(); |
4779 } | 4751 } |
4780 if (start != null) { | 4752 if (start != null) { |
4781 _json["start"] = (start).toIso8601String(); | 4753 _json["start"] = (start).toIso8601String(); |
4782 } | 4754 } |
4783 return _json; | 4755 return _json; |
4784 } | 4756 } |
4785 } | 4757 } |
4786 | |
4787 | |
OLD | NEW |