| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.calendar.v3; | 3 library googleapis.calendar.v3; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 final commons.ApiRequester _requester; | 43 final commons.ApiRequester _requester; |
| 44 | 44 |
| 45 AclResourceApi(commons.ApiRequester client) : | 45 AclResourceApi(commons.ApiRequester client) : |
| 46 _requester = client; | 46 _requester = client; |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Deletes an access control rule. | 49 * Deletes an access control rule. |
| 50 * | 50 * |
| 51 * Request parameters: | 51 * Request parameters: |
| 52 * | 52 * |
| 53 * [calendarId] - Calendar identifier. | 53 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 54 * calendarList.list method. If you want to access the primary calendar of the |
| 55 * currently logged in user, use the "primary" keyword. |
| 54 * | 56 * |
| 55 * [ruleId] - ACL rule identifier. | 57 * [ruleId] - ACL rule identifier. |
| 56 * | 58 * |
| 57 * Completes with a [commons.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) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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. To retrieve calendar IDs call the |
| 100 * calendarList.list method. If you want to access the primary calendar of the |
| 101 * currently logged in user, use the "primary" keyword. |
| 98 * | 102 * |
| 99 * [ruleId] - ACL rule identifier. | 103 * [ruleId] - ACL rule identifier. |
| 100 * | 104 * |
| 101 * Completes with a [AclRule]. | 105 * Completes with a [AclRule]. |
| 102 * | 106 * |
| 103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 104 * error. | 108 * error. |
| 105 * | 109 * |
| 106 * If the used [http.Client] completes with an error when making a REST call, | 110 * If the used [http.Client] completes with an error when making a REST call, |
| 107 * this method will complete with the same error. | 111 * this method will complete with the same error. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 133 return _response.then((data) => new AclRule.fromJson(data)); | 137 return _response.then((data) => new AclRule.fromJson(data)); |
| 134 } | 138 } |
| 135 | 139 |
| 136 /** | 140 /** |
| 137 * Creates an access control rule. | 141 * Creates an access control rule. |
| 138 * | 142 * |
| 139 * [request] - The metadata request object. | 143 * [request] - The metadata request object. |
| 140 * | 144 * |
| 141 * Request parameters: | 145 * Request parameters: |
| 142 * | 146 * |
| 143 * [calendarId] - Calendar identifier. | 147 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 148 * calendarList.list method. If you want to access the primary calendar of the |
| 149 * currently logged in user, use the "primary" keyword. |
| 144 * | 150 * |
| 145 * Completes with a [AclRule]. | 151 * Completes with a [AclRule]. |
| 146 * | 152 * |
| 147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 148 * error. | 154 * error. |
| 149 * | 155 * |
| 150 * If the used [http.Client] completes with an error when making a REST call, | 156 * If the used [http.Client] completes with an error when making a REST call, |
| 151 * this method will complete with the same error. | 157 * this method will complete with the same error. |
| 152 */ | 158 */ |
| 153 async.Future<AclRule> insert(AclRule request, core.String calendarId) { | 159 async.Future<AclRule> insert(AclRule request, core.String calendarId) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 175 uploadMedia: _uploadMedia, | 181 uploadMedia: _uploadMedia, |
| 176 downloadOptions: _downloadOptions); | 182 downloadOptions: _downloadOptions); |
| 177 return _response.then((data) => new AclRule.fromJson(data)); | 183 return _response.then((data) => new AclRule.fromJson(data)); |
| 178 } | 184 } |
| 179 | 185 |
| 180 /** | 186 /** |
| 181 * Returns the rules in the access control list for the calendar. | 187 * Returns the rules in the access control list for the calendar. |
| 182 * | 188 * |
| 183 * Request parameters: | 189 * Request parameters: |
| 184 * | 190 * |
| 185 * [calendarId] - Calendar identifier. | 191 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 192 * calendarList.list method. If you want to access the primary calendar of the |
| 193 * currently logged in user, use the "primary" keyword. |
| 186 * | 194 * |
| 187 * [maxResults] - Maximum number of entries returned on one result page. By | 195 * [maxResults] - Maximum number of entries returned on one result page. By |
| 188 * default the value is 100 entries. The page size can never be larger than | 196 * default the value is 100 entries. The page size can never be larger than |
| 189 * 250 entries. Optional. | 197 * 250 entries. Optional. |
| 190 * | 198 * |
| 191 * [pageToken] - Token specifying which result page to return. Optional. | 199 * [pageToken] - Token specifying which result page to return. Optional. |
| 192 * | 200 * |
| 193 * [showDeleted] - Whether to include deleted ACLs in the result. Deleted ACLs | 201 * [showDeleted] - Whether to include deleted ACLs in the result. Deleted ACLs |
| 194 * are represented by role equal to "none". Deleted ACLs will always be | 202 * are represented by role equal to "none". Deleted ACLs will always be |
| 195 * included if syncToken is provided. Optional. The default is False. | 203 * included if syncToken is provided. Optional. The default is False. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 return _response.then((data) => new Acl.fromJson(data)); | 257 return _response.then((data) => new Acl.fromJson(data)); |
| 250 } | 258 } |
| 251 | 259 |
| 252 /** | 260 /** |
| 253 * Updates an access control rule. This method supports patch semantics. | 261 * Updates an access control rule. This method supports patch semantics. |
| 254 * | 262 * |
| 255 * [request] - The metadata request object. | 263 * [request] - The metadata request object. |
| 256 * | 264 * |
| 257 * Request parameters: | 265 * Request parameters: |
| 258 * | 266 * |
| 259 * [calendarId] - Calendar identifier. | 267 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 268 * calendarList.list method. If you want to access the primary calendar of the |
| 269 * currently logged in user, use the "primary" keyword. |
| 260 * | 270 * |
| 261 * [ruleId] - ACL rule identifier. | 271 * [ruleId] - ACL rule identifier. |
| 262 * | 272 * |
| 263 * Completes with a [AclRule]. | 273 * Completes with a [AclRule]. |
| 264 * | 274 * |
| 265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 266 * error. | 276 * error. |
| 267 * | 277 * |
| 268 * If the used [http.Client] completes with an error when making a REST call, | 278 * If the used [http.Client] completes with an error when making a REST call, |
| 269 * this method will complete with the same error. | 279 * this method will complete with the same error. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 298 return _response.then((data) => new AclRule.fromJson(data)); | 308 return _response.then((data) => new AclRule.fromJson(data)); |
| 299 } | 309 } |
| 300 | 310 |
| 301 /** | 311 /** |
| 302 * Updates an access control rule. | 312 * Updates an access control rule. |
| 303 * | 313 * |
| 304 * [request] - The metadata request object. | 314 * [request] - The metadata request object. |
| 305 * | 315 * |
| 306 * Request parameters: | 316 * Request parameters: |
| 307 * | 317 * |
| 308 * [calendarId] - Calendar identifier. | 318 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 319 * calendarList.list method. If you want to access the primary calendar of the |
| 320 * currently logged in user, use the "primary" keyword. |
| 309 * | 321 * |
| 310 * [ruleId] - ACL rule identifier. | 322 * [ruleId] - ACL rule identifier. |
| 311 * | 323 * |
| 312 * Completes with a [AclRule]. | 324 * Completes with a [AclRule]. |
| 313 * | 325 * |
| 314 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 326 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 315 * error. | 327 * error. |
| 316 * | 328 * |
| 317 * If the used [http.Client] completes with an error when making a REST call, | 329 * If the used [http.Client] completes with an error when making a REST call, |
| 318 * this method will complete with the same error. | 330 * this method will complete with the same error. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 347 return _response.then((data) => new AclRule.fromJson(data)); | 359 return _response.then((data) => new AclRule.fromJson(data)); |
| 348 } | 360 } |
| 349 | 361 |
| 350 /** | 362 /** |
| 351 * Watch for changes to ACL resources. | 363 * Watch for changes to ACL resources. |
| 352 * | 364 * |
| 353 * [request] - The metadata request object. | 365 * [request] - The metadata request object. |
| 354 * | 366 * |
| 355 * Request parameters: | 367 * Request parameters: |
| 356 * | 368 * |
| 357 * [calendarId] - Calendar identifier. | 369 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 370 * calendarList.list method. If you want to access the primary calendar of the |
| 371 * currently logged in user, use the "primary" keyword. |
| 358 * | 372 * |
| 359 * [maxResults] - Maximum number of entries returned on one result page. By | 373 * [maxResults] - Maximum number of entries returned on one result page. By |
| 360 * default the value is 100 entries. The page size can never be larger than | 374 * default the value is 100 entries. The page size can never be larger than |
| 361 * 250 entries. Optional. | 375 * 250 entries. Optional. |
| 362 * | 376 * |
| 363 * [pageToken] - Token specifying which result page to return. Optional. | 377 * [pageToken] - Token specifying which result page to return. Optional. |
| 364 * | 378 * |
| 365 * [showDeleted] - Whether to include deleted ACLs in the result. Deleted ACLs | 379 * [showDeleted] - Whether to include deleted ACLs in the result. Deleted ACLs |
| 366 * are represented by role equal to "none". Deleted ACLs will always be | 380 * are represented by role equal to "none". Deleted ACLs will always be |
| 367 * included if syncToken is provided. Optional. The default is False. | 381 * included if syncToken is provided. Optional. The default is False. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 final commons.ApiRequester _requester; | 445 final commons.ApiRequester _requester; |
| 432 | 446 |
| 433 CalendarListResourceApi(commons.ApiRequester client) : | 447 CalendarListResourceApi(commons.ApiRequester client) : |
| 434 _requester = client; | 448 _requester = client; |
| 435 | 449 |
| 436 /** | 450 /** |
| 437 * Deletes an entry on the user's calendar list. | 451 * Deletes an entry on the user's calendar list. |
| 438 * | 452 * |
| 439 * Request parameters: | 453 * Request parameters: |
| 440 * | 454 * |
| 441 * [calendarId] - Calendar identifier. | 455 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 456 * calendarList.list method. If you want to access the primary calendar of the |
| 457 * currently logged in user, use the "primary" keyword. |
| 442 * | 458 * |
| 443 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 444 * error. | 460 * error. |
| 445 * | 461 * |
| 446 * If the used [http.Client] completes with an error when making a REST call, | 462 * If the used [http.Client] completes with an error when making a REST call, |
| 447 * this method will complete with the same error. | 463 * this method will complete with the same error. |
| 448 */ | 464 */ |
| 449 async.Future delete(core.String calendarId) { | 465 async.Future delete(core.String calendarId) { |
| 450 var _url = null; | 466 var _url = null; |
| 451 var _queryParams = new core.Map(); | 467 var _queryParams = new core.Map(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 470 uploadMedia: _uploadMedia, | 486 uploadMedia: _uploadMedia, |
| 471 downloadOptions: _downloadOptions); | 487 downloadOptions: _downloadOptions); |
| 472 return _response.then((data) => null); | 488 return _response.then((data) => null); |
| 473 } | 489 } |
| 474 | 490 |
| 475 /** | 491 /** |
| 476 * Returns an entry on the user's calendar list. | 492 * Returns an entry on the user's calendar list. |
| 477 * | 493 * |
| 478 * Request parameters: | 494 * Request parameters: |
| 479 * | 495 * |
| 480 * [calendarId] - Calendar identifier. | 496 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 497 * calendarList.list method. If you want to access the primary calendar of the |
| 498 * currently logged in user, use the "primary" keyword. |
| 481 * | 499 * |
| 482 * Completes with a [CalendarListEntry]. | 500 * Completes with a [CalendarListEntry]. |
| 483 * | 501 * |
| 484 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 502 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 485 * error. | 503 * error. |
| 486 * | 504 * |
| 487 * If the used [http.Client] completes with an error when making a REST call, | 505 * If the used [http.Client] completes with an error when making a REST call, |
| 488 * this method will complete with the same error. | 506 * this method will complete with the same error. |
| 489 */ | 507 */ |
| 490 async.Future<CalendarListEntry> get(core.String calendarId) { | 508 async.Future<CalendarListEntry> get(core.String calendarId) { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 } | 664 } |
| 647 | 665 |
| 648 /** | 666 /** |
| 649 * Updates an entry on the user's calendar list. This method supports patch | 667 * Updates an entry on the user's calendar list. This method supports patch |
| 650 * semantics. | 668 * semantics. |
| 651 * | 669 * |
| 652 * [request] - The metadata request object. | 670 * [request] - The metadata request object. |
| 653 * | 671 * |
| 654 * Request parameters: | 672 * Request parameters: |
| 655 * | 673 * |
| 656 * [calendarId] - Calendar identifier. | 674 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 675 * calendarList.list method. If you want to access the primary calendar of the |
| 676 * currently logged in user, use the "primary" keyword. |
| 657 * | 677 * |
| 658 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor | 678 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor |
| 659 * fields to write the calendar colors (RGB). If this feature is used, the | 679 * fields to write the calendar colors (RGB). If this feature is used, the |
| 660 * index-based colorId field will be set to the best matching option | 680 * index-based colorId field will be set to the best matching option |
| 661 * automatically. Optional. The default is False. | 681 * automatically. Optional. The default is False. |
| 662 * | 682 * |
| 663 * Completes with a [CalendarListEntry]. | 683 * Completes with a [CalendarListEntry]. |
| 664 * | 684 * |
| 665 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 685 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 666 * error. | 686 * error. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 return _response.then((data) => new CalendarListEntry.fromJson(data)); | 718 return _response.then((data) => new CalendarListEntry.fromJson(data)); |
| 699 } | 719 } |
| 700 | 720 |
| 701 /** | 721 /** |
| 702 * Updates an entry on the user's calendar list. | 722 * Updates an entry on the user's calendar list. |
| 703 * | 723 * |
| 704 * [request] - The metadata request object. | 724 * [request] - The metadata request object. |
| 705 * | 725 * |
| 706 * Request parameters: | 726 * Request parameters: |
| 707 * | 727 * |
| 708 * [calendarId] - Calendar identifier. | 728 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 729 * calendarList.list method. If you want to access the primary calendar of the |
| 730 * currently logged in user, use the "primary" keyword. |
| 709 * | 731 * |
| 710 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor | 732 * [colorRgbFormat] - Whether to use the foregroundColor and backgroundColor |
| 711 * fields to write the calendar colors (RGB). If this feature is used, the | 733 * fields to write the calendar colors (RGB). If this feature is used, the |
| 712 * index-based colorId field will be set to the best matching option | 734 * index-based colorId field will be set to the best matching option |
| 713 * automatically. Optional. The default is False. | 735 * automatically. Optional. The default is False. |
| 714 * | 736 * |
| 715 * Completes with a [CalendarListEntry]. | 737 * Completes with a [CalendarListEntry]. |
| 716 * | 738 * |
| 717 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 739 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 718 * error. | 740 * error. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 | 872 |
| 851 CalendarsResourceApi(commons.ApiRequester client) : | 873 CalendarsResourceApi(commons.ApiRequester client) : |
| 852 _requester = client; | 874 _requester = client; |
| 853 | 875 |
| 854 /** | 876 /** |
| 855 * Clears a primary calendar. This operation deletes all events associated | 877 * Clears a primary calendar. This operation deletes all events associated |
| 856 * with the primary calendar of an account. | 878 * with the primary calendar of an account. |
| 857 * | 879 * |
| 858 * Request parameters: | 880 * Request parameters: |
| 859 * | 881 * |
| 860 * [calendarId] - Calendar identifier. | 882 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 883 * calendarList.list method. If you want to access the primary calendar of the |
| 884 * currently logged in user, use the "primary" keyword. |
| 861 * | 885 * |
| 862 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 886 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 863 * error. | 887 * error. |
| 864 * | 888 * |
| 865 * If the used [http.Client] completes with an error when making a REST call, | 889 * If the used [http.Client] completes with an error when making a REST call, |
| 866 * this method will complete with the same error. | 890 * this method will complete with the same error. |
| 867 */ | 891 */ |
| 868 async.Future clear(core.String calendarId) { | 892 async.Future clear(core.String calendarId) { |
| 869 var _url = null; | 893 var _url = null; |
| 870 var _queryParams = new core.Map(); | 894 var _queryParams = new core.Map(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 890 downloadOptions: _downloadOptions); | 914 downloadOptions: _downloadOptions); |
| 891 return _response.then((data) => null); | 915 return _response.then((data) => null); |
| 892 } | 916 } |
| 893 | 917 |
| 894 /** | 918 /** |
| 895 * Deletes a secondary calendar. Use calendars.clear for clearing all events | 919 * Deletes a secondary calendar. Use calendars.clear for clearing all events |
| 896 * on primary calendars. | 920 * on primary calendars. |
| 897 * | 921 * |
| 898 * Request parameters: | 922 * Request parameters: |
| 899 * | 923 * |
| 900 * [calendarId] - Calendar identifier. | 924 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 925 * calendarList.list method. If you want to access the primary calendar of the |
| 926 * currently logged in user, use the "primary" keyword. |
| 901 * | 927 * |
| 902 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 928 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 903 * error. | 929 * error. |
| 904 * | 930 * |
| 905 * If the used [http.Client] completes with an error when making a REST call, | 931 * If the used [http.Client] completes with an error when making a REST call, |
| 906 * this method will complete with the same error. | 932 * this method will complete with the same error. |
| 907 */ | 933 */ |
| 908 async.Future delete(core.String calendarId) { | 934 async.Future delete(core.String calendarId) { |
| 909 var _url = null; | 935 var _url = null; |
| 910 var _queryParams = new core.Map(); | 936 var _queryParams = new core.Map(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 929 uploadMedia: _uploadMedia, | 955 uploadMedia: _uploadMedia, |
| 930 downloadOptions: _downloadOptions); | 956 downloadOptions: _downloadOptions); |
| 931 return _response.then((data) => null); | 957 return _response.then((data) => null); |
| 932 } | 958 } |
| 933 | 959 |
| 934 /** | 960 /** |
| 935 * Returns metadata for a calendar. | 961 * Returns metadata for a calendar. |
| 936 * | 962 * |
| 937 * Request parameters: | 963 * Request parameters: |
| 938 * | 964 * |
| 939 * [calendarId] - Calendar identifier. | 965 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 966 * calendarList.list method. If you want to access the primary calendar of the |
| 967 * currently logged in user, use the "primary" keyword. |
| 940 * | 968 * |
| 941 * Completes with a [Calendar]. | 969 * Completes with a [Calendar]. |
| 942 * | 970 * |
| 943 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 971 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 944 * error. | 972 * error. |
| 945 * | 973 * |
| 946 * If the used [http.Client] completes with an error when making a REST call, | 974 * If the used [http.Client] completes with an error when making a REST call, |
| 947 * this method will complete with the same error. | 975 * this method will complete with the same error. |
| 948 */ | 976 */ |
| 949 async.Future<Calendar> get(core.String calendarId) { | 977 async.Future<Calendar> get(core.String calendarId) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 return _response.then((data) => new Calendar.fromJson(data)); | 1037 return _response.then((data) => new Calendar.fromJson(data)); |
| 1010 } | 1038 } |
| 1011 | 1039 |
| 1012 /** | 1040 /** |
| 1013 * Updates metadata for a calendar. This method supports patch semantics. | 1041 * Updates metadata for a calendar. This method supports patch semantics. |
| 1014 * | 1042 * |
| 1015 * [request] - The metadata request object. | 1043 * [request] - The metadata request object. |
| 1016 * | 1044 * |
| 1017 * Request parameters: | 1045 * Request parameters: |
| 1018 * | 1046 * |
| 1019 * [calendarId] - Calendar identifier. | 1047 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1048 * calendarList.list method. If you want to access the primary calendar of the |
| 1049 * currently logged in user, use the "primary" keyword. |
| 1020 * | 1050 * |
| 1021 * Completes with a [Calendar]. | 1051 * Completes with a [Calendar]. |
| 1022 * | 1052 * |
| 1023 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1053 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1024 * error. | 1054 * error. |
| 1025 * | 1055 * |
| 1026 * If the used [http.Client] completes with an error when making a REST call, | 1056 * If the used [http.Client] completes with an error when making a REST call, |
| 1027 * this method will complete with the same error. | 1057 * this method will complete with the same error. |
| 1028 */ | 1058 */ |
| 1029 async.Future<Calendar> patch(Calendar request, core.String calendarId) { | 1059 async.Future<Calendar> patch(Calendar request, core.String calendarId) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1053 return _response.then((data) => new Calendar.fromJson(data)); | 1083 return _response.then((data) => new Calendar.fromJson(data)); |
| 1054 } | 1084 } |
| 1055 | 1085 |
| 1056 /** | 1086 /** |
| 1057 * Updates metadata for a calendar. | 1087 * Updates metadata for a calendar. |
| 1058 * | 1088 * |
| 1059 * [request] - The metadata request object. | 1089 * [request] - The metadata request object. |
| 1060 * | 1090 * |
| 1061 * Request parameters: | 1091 * Request parameters: |
| 1062 * | 1092 * |
| 1063 * [calendarId] - Calendar identifier. | 1093 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1094 * calendarList.list method. If you want to access the primary calendar of the |
| 1095 * currently logged in user, use the "primary" keyword. |
| 1064 * | 1096 * |
| 1065 * Completes with a [Calendar]. | 1097 * Completes with a [Calendar]. |
| 1066 * | 1098 * |
| 1067 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1099 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1068 * error. | 1100 * error. |
| 1069 * | 1101 * |
| 1070 * If the used [http.Client] completes with an error when making a REST call, | 1102 * If the used [http.Client] completes with an error when making a REST call, |
| 1071 * this method will complete with the same error. | 1103 * this method will complete with the same error. |
| 1072 */ | 1104 */ |
| 1073 async.Future<Calendar> update(Calendar request, core.String calendarId) { | 1105 async.Future<Calendar> update(Calendar request, core.String calendarId) { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 final commons.ApiRequester _requester; | 1227 final commons.ApiRequester _requester; |
| 1196 | 1228 |
| 1197 EventsResourceApi(commons.ApiRequester client) : | 1229 EventsResourceApi(commons.ApiRequester client) : |
| 1198 _requester = client; | 1230 _requester = client; |
| 1199 | 1231 |
| 1200 /** | 1232 /** |
| 1201 * Deletes an event. | 1233 * Deletes an event. |
| 1202 * | 1234 * |
| 1203 * Request parameters: | 1235 * Request parameters: |
| 1204 * | 1236 * |
| 1205 * [calendarId] - Calendar identifier. | 1237 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1238 * calendarList.list method. If you want to access the primary calendar of the |
| 1239 * currently logged in user, use the "primary" keyword. |
| 1206 * | 1240 * |
| 1207 * [eventId] - Event identifier. | 1241 * [eventId] - Event identifier. |
| 1208 * | 1242 * |
| 1209 * [sendNotifications] - Whether to send notifications about the deletion of | 1243 * [sendNotifications] - Whether to send notifications about the deletion of |
| 1210 * the event. Optional. The default is False. | 1244 * the event. Optional. The default is False. |
| 1211 * | 1245 * |
| 1212 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1246 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1213 * error. | 1247 * error. |
| 1214 * | 1248 * |
| 1215 * If the used [http.Client] completes with an error when making a REST call, | 1249 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1245 uploadMedia: _uploadMedia, | 1279 uploadMedia: _uploadMedia, |
| 1246 downloadOptions: _downloadOptions); | 1280 downloadOptions: _downloadOptions); |
| 1247 return _response.then((data) => null); | 1281 return _response.then((data) => null); |
| 1248 } | 1282 } |
| 1249 | 1283 |
| 1250 /** | 1284 /** |
| 1251 * Returns an event. | 1285 * Returns an event. |
| 1252 * | 1286 * |
| 1253 * Request parameters: | 1287 * Request parameters: |
| 1254 * | 1288 * |
| 1255 * [calendarId] - Calendar identifier. | 1289 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1290 * calendarList.list method. If you want to access the primary calendar of the |
| 1291 * currently logged in user, use the "primary" keyword. |
| 1256 * | 1292 * |
| 1257 * [eventId] - Event identifier. | 1293 * [eventId] - Event identifier. |
| 1258 * | 1294 * |
| 1259 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 1295 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1260 * for the organizer, creator and attendees, even if no real email is | 1296 * for the organizer, creator and attendees, even if no real email is |
| 1261 * available (i.e. a generated, non-working value will be provided). The use | 1297 * available (i.e. a generated, non-working value will be provided). The use |
| 1262 * of this option is discouraged and should only be used by clients which | 1298 * of this option is discouraged and should only be used by clients which |
| 1263 * cannot handle the absence of an email address value in the mentioned | 1299 * cannot handle the absence of an email address value in the mentioned |
| 1264 * places. Optional. The default is False. | 1300 * places. Optional. The default is False. |
| 1265 * | 1301 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 } | 1351 } |
| 1316 | 1352 |
| 1317 /** | 1353 /** |
| 1318 * Imports an event. This operation is used to add a private copy of an | 1354 * Imports an event. This operation is used to add a private copy of an |
| 1319 * existing event to a calendar. | 1355 * existing event to a calendar. |
| 1320 * | 1356 * |
| 1321 * [request] - The metadata request object. | 1357 * [request] - The metadata request object. |
| 1322 * | 1358 * |
| 1323 * Request parameters: | 1359 * Request parameters: |
| 1324 * | 1360 * |
| 1325 * [calendarId] - Calendar identifier. | 1361 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1362 * calendarList.list method. If you want to access the primary calendar of the |
| 1363 * currently logged in user, use the "primary" keyword. |
| 1326 * | 1364 * |
| 1327 * [supportsAttachments] - Whether API client performing operation supports | 1365 * [supportsAttachments] - Whether API client performing operation supports |
| 1328 * event attachments. Optional. The default is False. | 1366 * event attachments. Optional. The default is False. |
| 1329 * | 1367 * |
| 1330 * Completes with a [Event]. | 1368 * Completes with a [Event]. |
| 1331 * | 1369 * |
| 1332 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1333 * error. | 1371 * error. |
| 1334 * | 1372 * |
| 1335 * If the used [http.Client] completes with an error when making a REST call, | 1373 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1365 return _response.then((data) => new Event.fromJson(data)); | 1403 return _response.then((data) => new Event.fromJson(data)); |
| 1366 } | 1404 } |
| 1367 | 1405 |
| 1368 /** | 1406 /** |
| 1369 * Creates an event. | 1407 * Creates an event. |
| 1370 * | 1408 * |
| 1371 * [request] - The metadata request object. | 1409 * [request] - The metadata request object. |
| 1372 * | 1410 * |
| 1373 * Request parameters: | 1411 * Request parameters: |
| 1374 * | 1412 * |
| 1375 * [calendarId] - Calendar identifier. | 1413 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1414 * calendarList.list method. If you want to access the primary calendar of the |
| 1415 * currently logged in user, use the "primary" keyword. |
| 1376 * | 1416 * |
| 1377 * [maxAttendees] - The maximum number of attendees to include in the | 1417 * [maxAttendees] - The maximum number of attendees to include in the |
| 1378 * response. If there are more than the specified number of attendees, only | 1418 * response. If there are more than the specified number of attendees, only |
| 1379 * the participant is returned. Optional. | 1419 * the participant is returned. Optional. |
| 1380 * | 1420 * |
| 1381 * [sendNotifications] - Whether to send notifications about the creation of | 1421 * [sendNotifications] - Whether to send notifications about the creation of |
| 1382 * the new event. Optional. The default is False. | 1422 * the new event. Optional. The default is False. |
| 1383 * | 1423 * |
| 1384 * [supportsAttachments] - Whether API client performing operation supports | 1424 * [supportsAttachments] - Whether API client performing operation supports |
| 1385 * event attachments. Optional. The default is False. | 1425 * event attachments. Optional. The default is False. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 uploadMedia: _uploadMedia, | 1466 uploadMedia: _uploadMedia, |
| 1427 downloadOptions: _downloadOptions); | 1467 downloadOptions: _downloadOptions); |
| 1428 return _response.then((data) => new Event.fromJson(data)); | 1468 return _response.then((data) => new Event.fromJson(data)); |
| 1429 } | 1469 } |
| 1430 | 1470 |
| 1431 /** | 1471 /** |
| 1432 * Returns instances of the specified recurring event. | 1472 * Returns instances of the specified recurring event. |
| 1433 * | 1473 * |
| 1434 * Request parameters: | 1474 * Request parameters: |
| 1435 * | 1475 * |
| 1436 * [calendarId] - Calendar identifier. | 1476 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1477 * calendarList.list method. If you want to access the primary calendar of the |
| 1478 * currently logged in user, use the "primary" keyword. |
| 1437 * | 1479 * |
| 1438 * [eventId] - Recurring event identifier. | 1480 * [eventId] - Recurring event identifier. |
| 1439 * | 1481 * |
| 1440 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 1482 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1441 * for the organizer, creator and attendees, even if no real email is | 1483 * for the organizer, creator and attendees, even if no real email is |
| 1442 * available (i.e. a generated, non-working value will be provided). The use | 1484 * available (i.e. a generated, non-working value will be provided). The use |
| 1443 * of this option is discouraged and should only be used by clients which | 1485 * of this option is discouraged and should only be used by clients which |
| 1444 * cannot handle the absence of an email address value in the mentioned | 1486 * cannot handle the absence of an email address value in the mentioned |
| 1445 * places. Optional. The default is False. | 1487 * places. Optional. The default is False. |
| 1446 * | 1488 * |
| 1447 * [maxAttendees] - The maximum number of attendees to include in the | 1489 * [maxAttendees] - The maximum number of attendees to include in the |
| 1448 * response. If there are more than the specified number of attendees, only | 1490 * response. If there are more than the specified number of attendees, only |
| 1449 * the participant is returned. Optional. | 1491 * the participant is returned. Optional. |
| 1450 * | 1492 * |
| 1451 * [maxResults] - Maximum number of events returned on one result page. By | 1493 * [maxResults] - Maximum number of events returned on one result page. By |
| 1452 * default the value is 250 events. The page size can never be larger than | 1494 * default the value is 250 events. The page size can never be larger than |
| 1453 * 2500 events. Optional. | 1495 * 2500 events. Optional. |
| 1454 * | 1496 * |
| 1455 * [originalStart] - The original start time of the instance in the result. | 1497 * [originalStart] - The original start time of the instance in the result. |
| 1456 * Optional. | 1498 * Optional. |
| 1457 * | 1499 * |
| 1458 * [pageToken] - Token specifying which result page to return. Optional. | 1500 * [pageToken] - Token specifying which result page to return. Optional. |
| 1459 * | 1501 * |
| 1460 * [showDeleted] - Whether to include deleted events (with status equals | 1502 * [showDeleted] - Whether to include deleted events (with status equals |
| 1461 * "cancelled") in the result. Cancelled instances of recurring events will | 1503 * "cancelled") in the result. Cancelled instances of recurring events will |
| 1462 * still be included if singleEvents is False. Optional. The default is False. | 1504 * still be included if singleEvents is False. Optional. The default is False. |
| 1463 * | 1505 * |
| 1464 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. | 1506 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. |
| 1465 * Optional. The default is not to filter by start time. | 1507 * Optional. The default is not to filter by start time. Must be an RFC3339 |
| 1508 * timestamp with mandatory time zone offset. |
| 1466 * | 1509 * |
| 1467 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. | 1510 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. |
| 1468 * Optional. The default is not to filter by end time. | 1511 * Optional. The default is not to filter by end time. Must be an RFC3339 |
| 1512 * timestamp with mandatory time zone offset. |
| 1469 * | 1513 * |
| 1470 * [timeZone] - Time zone used in the response. Optional. The default is the | 1514 * [timeZone] - Time zone used in the response. Optional. The default is the |
| 1471 * time zone of the calendar. | 1515 * time zone of the calendar. |
| 1472 * | 1516 * |
| 1473 * Completes with a [Events]. | 1517 * Completes with a [Events]. |
| 1474 * | 1518 * |
| 1475 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1476 * error. | 1520 * error. |
| 1477 * | 1521 * |
| 1478 * If the used [http.Client] completes with an error when making a REST call, | 1522 * If the used [http.Client] completes with an error when making a REST call, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 uploadMedia: _uploadMedia, | 1574 uploadMedia: _uploadMedia, |
| 1531 downloadOptions: _downloadOptions); | 1575 downloadOptions: _downloadOptions); |
| 1532 return _response.then((data) => new Events.fromJson(data)); | 1576 return _response.then((data) => new Events.fromJson(data)); |
| 1533 } | 1577 } |
| 1534 | 1578 |
| 1535 /** | 1579 /** |
| 1536 * Returns events on the specified calendar. | 1580 * Returns events on the specified calendar. |
| 1537 * | 1581 * |
| 1538 * Request parameters: | 1582 * Request parameters: |
| 1539 * | 1583 * |
| 1540 * [calendarId] - Calendar identifier. | 1584 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1585 * calendarList.list method. If you want to access the primary calendar of the |
| 1586 * currently logged in user, use the "primary" keyword. |
| 1541 * | 1587 * |
| 1542 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 1588 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1543 * for the organizer, creator and attendees, even if no real email is | 1589 * for the organizer, creator and attendees, even if no real email is |
| 1544 * available (i.e. a generated, non-working value will be provided). The use | 1590 * available (i.e. a generated, non-working value will be provided). The use |
| 1545 * of this option is discouraged and should only be used by clients which | 1591 * of this option is discouraged and should only be used by clients which |
| 1546 * cannot handle the absence of an email address value in the mentioned | 1592 * cannot handle the absence of an email address value in the mentioned |
| 1547 * places. Optional. The default is False. | 1593 * places. Optional. The default is False. |
| 1548 * | 1594 * |
| 1549 * [iCalUID] - Specifies event ID in the iCalendar format to be included in | 1595 * [iCalUID] - Specifies event ID in the iCalendar format to be included in |
| 1550 * the response. Optional. | 1596 * the response. Optional. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1609 * - sharedExtendedProperty | 1655 * - sharedExtendedProperty |
| 1610 * - timeMin | 1656 * - timeMin |
| 1611 * - timeMax | 1657 * - timeMax |
| 1612 * - updatedMin If the syncToken expires, the server will respond with a 410 | 1658 * - updatedMin If the syncToken expires, the server will respond with a 410 |
| 1613 * GONE response code and the client should clear its storage and perform a | 1659 * GONE response code and the client should clear its storage and perform a |
| 1614 * full synchronization without any syncToken. | 1660 * full synchronization without any syncToken. |
| 1615 * Learn more about incremental synchronization. | 1661 * Learn more about incremental synchronization. |
| 1616 * Optional. The default is to return all entries. | 1662 * Optional. The default is to return all entries. |
| 1617 * | 1663 * |
| 1618 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. | 1664 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. |
| 1619 * Optional. The default is not to filter by start time. | 1665 * Optional. The default is not to filter by start time. Must be an RFC3339 |
| 1666 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, |
| 1667 * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. |
| 1620 * | 1668 * |
| 1621 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. | 1669 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. |
| 1622 * Optional. The default is not to filter by end time. | 1670 * Optional. The default is not to filter by end time. Must be an RFC3339 |
| 1671 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, |
| 1672 * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. |
| 1623 * | 1673 * |
| 1624 * [timeZone] - Time zone used in the response. Optional. The default is the | 1674 * [timeZone] - Time zone used in the response. Optional. The default is the |
| 1625 * time zone of the calendar. | 1675 * time zone of the calendar. |
| 1626 * | 1676 * |
| 1627 * [updatedMin] - Lower bound for an event's last modification time (as a RFC | 1677 * [updatedMin] - Lower bound for an event's last modification time (as a |
| 1628 * 3339 timestamp) to filter by. When specified, entries deleted since this | 1678 * RFC3339 timestamp) to filter by. When specified, entries deleted since this |
| 1629 * time will always be included regardless of showDeleted. Optional. The | 1679 * time will always be included regardless of showDeleted. Optional. The |
| 1630 * default is not to filter by last modification time. | 1680 * default is not to filter by last modification time. |
| 1631 * | 1681 * |
| 1632 * Completes with a [Events]. | 1682 * Completes with a [Events]. |
| 1633 * | 1683 * |
| 1634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1684 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1635 * error. | 1685 * error. |
| 1636 * | 1686 * |
| 1637 * If the used [http.Client] completes with an error when making a REST call, | 1687 * If the used [http.Client] completes with an error when making a REST call, |
| 1638 * this method will complete with the same error. | 1688 * this method will complete with the same error. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1770 return _response.then((data) => new Event.fromJson(data)); | 1820 return _response.then((data) => new Event.fromJson(data)); |
| 1771 } | 1821 } |
| 1772 | 1822 |
| 1773 /** | 1823 /** |
| 1774 * Updates an event. This method supports patch semantics. | 1824 * Updates an event. This method supports patch semantics. |
| 1775 * | 1825 * |
| 1776 * [request] - The metadata request object. | 1826 * [request] - The metadata request object. |
| 1777 * | 1827 * |
| 1778 * Request parameters: | 1828 * Request parameters: |
| 1779 * | 1829 * |
| 1780 * [calendarId] - Calendar identifier. | 1830 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1831 * calendarList.list method. If you want to access the primary calendar of the |
| 1832 * currently logged in user, use the "primary" keyword. |
| 1781 * | 1833 * |
| 1782 * [eventId] - Event identifier. | 1834 * [eventId] - Event identifier. |
| 1783 * | 1835 * |
| 1784 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 1836 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1785 * for the organizer, creator and attendees, even if no real email is | 1837 * for the organizer, creator and attendees, even if no real email is |
| 1786 * available (i.e. a generated, non-working value will be provided). The use | 1838 * available (i.e. a generated, non-working value will be provided). The use |
| 1787 * of this option is discouraged and should only be used by clients which | 1839 * of this option is discouraged and should only be used by clients which |
| 1788 * cannot handle the absence of an email address value in the mentioned | 1840 * cannot handle the absence of an email address value in the mentioned |
| 1789 * places. Optional. The default is False. | 1841 * places. Optional. The default is False. |
| 1790 * | 1842 * |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 uploadMedia: _uploadMedia, | 1899 uploadMedia: _uploadMedia, |
| 1848 downloadOptions: _downloadOptions); | 1900 downloadOptions: _downloadOptions); |
| 1849 return _response.then((data) => new Event.fromJson(data)); | 1901 return _response.then((data) => new Event.fromJson(data)); |
| 1850 } | 1902 } |
| 1851 | 1903 |
| 1852 /** | 1904 /** |
| 1853 * Creates an event based on a simple text string. | 1905 * Creates an event based on a simple text string. |
| 1854 * | 1906 * |
| 1855 * Request parameters: | 1907 * Request parameters: |
| 1856 * | 1908 * |
| 1857 * [calendarId] - Calendar identifier. | 1909 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1910 * calendarList.list method. If you want to access the primary calendar of the |
| 1911 * currently logged in user, use the "primary" keyword. |
| 1858 * | 1912 * |
| 1859 * [text] - The text describing the event to be created. | 1913 * [text] - The text describing the event to be created. |
| 1860 * | 1914 * |
| 1861 * [sendNotifications] - Whether to send notifications about the creation of | 1915 * [sendNotifications] - Whether to send notifications about the creation of |
| 1862 * the event. Optional. The default is False. | 1916 * the event. Optional. The default is False. |
| 1863 * | 1917 * |
| 1864 * Completes with a [Event]. | 1918 * Completes with a [Event]. |
| 1865 * | 1919 * |
| 1866 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1920 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1867 * error. | 1921 * error. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 return _response.then((data) => new Event.fromJson(data)); | 1954 return _response.then((data) => new Event.fromJson(data)); |
| 1901 } | 1955 } |
| 1902 | 1956 |
| 1903 /** | 1957 /** |
| 1904 * Updates an event. | 1958 * Updates an event. |
| 1905 * | 1959 * |
| 1906 * [request] - The metadata request object. | 1960 * [request] - The metadata request object. |
| 1907 * | 1961 * |
| 1908 * Request parameters: | 1962 * Request parameters: |
| 1909 * | 1963 * |
| 1910 * [calendarId] - Calendar identifier. | 1964 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 1965 * calendarList.list method. If you want to access the primary calendar of the |
| 1966 * currently logged in user, use the "primary" keyword. |
| 1911 * | 1967 * |
| 1912 * [eventId] - Event identifier. | 1968 * [eventId] - Event identifier. |
| 1913 * | 1969 * |
| 1914 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 1970 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1915 * for the organizer, creator and attendees, even if no real email is | 1971 * for the organizer, creator and attendees, even if no real email is |
| 1916 * available (i.e. a generated, non-working value will be provided). The use | 1972 * available (i.e. a generated, non-working value will be provided). The use |
| 1917 * of this option is discouraged and should only be used by clients which | 1973 * of this option is discouraged and should only be used by clients which |
| 1918 * cannot handle the absence of an email address value in the mentioned | 1974 * cannot handle the absence of an email address value in the mentioned |
| 1919 * places. Optional. The default is False. | 1975 * places. Optional. The default is False. |
| 1920 * | 1976 * |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 return _response.then((data) => new Event.fromJson(data)); | 2035 return _response.then((data) => new Event.fromJson(data)); |
| 1980 } | 2036 } |
| 1981 | 2037 |
| 1982 /** | 2038 /** |
| 1983 * Watch for changes to Events resources. | 2039 * Watch for changes to Events resources. |
| 1984 * | 2040 * |
| 1985 * [request] - The metadata request object. | 2041 * [request] - The metadata request object. |
| 1986 * | 2042 * |
| 1987 * Request parameters: | 2043 * Request parameters: |
| 1988 * | 2044 * |
| 1989 * [calendarId] - Calendar identifier. | 2045 * [calendarId] - Calendar identifier. To retrieve calendar IDs call the |
| 2046 * calendarList.list method. If you want to access the primary calendar of the |
| 2047 * currently logged in user, use the "primary" keyword. |
| 1990 * | 2048 * |
| 1991 * [alwaysIncludeEmail] - Whether to always include a value in the email field | 2049 * [alwaysIncludeEmail] - Whether to always include a value in the email field |
| 1992 * for the organizer, creator and attendees, even if no real email is | 2050 * for the organizer, creator and attendees, even if no real email is |
| 1993 * available (i.e. a generated, non-working value will be provided). The use | 2051 * available (i.e. a generated, non-working value will be provided). The use |
| 1994 * of this option is discouraged and should only be used by clients which | 2052 * of this option is discouraged and should only be used by clients which |
| 1995 * cannot handle the absence of an email address value in the mentioned | 2053 * cannot handle the absence of an email address value in the mentioned |
| 1996 * places. Optional. The default is False. | 2054 * places. Optional. The default is False. |
| 1997 * | 2055 * |
| 1998 * [iCalUID] - Specifies event ID in the iCalendar format to be included in | 2056 * [iCalUID] - Specifies event ID in the iCalendar format to be included in |
| 1999 * the response. Optional. | 2057 * the response. Optional. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 * - sharedExtendedProperty | 2116 * - sharedExtendedProperty |
| 2059 * - timeMin | 2117 * - timeMin |
| 2060 * - timeMax | 2118 * - timeMax |
| 2061 * - updatedMin If the syncToken expires, the server will respond with a 410 | 2119 * - updatedMin If the syncToken expires, the server will respond with a 410 |
| 2062 * GONE response code and the client should clear its storage and perform a | 2120 * GONE response code and the client should clear its storage and perform a |
| 2063 * full synchronization without any syncToken. | 2121 * full synchronization without any syncToken. |
| 2064 * Learn more about incremental synchronization. | 2122 * Learn more about incremental synchronization. |
| 2065 * Optional. The default is to return all entries. | 2123 * Optional. The default is to return all entries. |
| 2066 * | 2124 * |
| 2067 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. | 2125 * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. |
| 2068 * Optional. The default is not to filter by start time. | 2126 * Optional. The default is not to filter by start time. Must be an RFC3339 |
| 2127 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, |
| 2128 * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. |
| 2069 * | 2129 * |
| 2070 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. | 2130 * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. |
| 2071 * Optional. The default is not to filter by end time. | 2131 * Optional. The default is not to filter by end time. Must be an RFC3339 |
| 2132 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, |
| 2133 * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. |
| 2072 * | 2134 * |
| 2073 * [timeZone] - Time zone used in the response. Optional. The default is the | 2135 * [timeZone] - Time zone used in the response. Optional. The default is the |
| 2074 * time zone of the calendar. | 2136 * time zone of the calendar. |
| 2075 * | 2137 * |
| 2076 * [updatedMin] - Lower bound for an event's last modification time (as a RFC | 2138 * [updatedMin] - Lower bound for an event's last modification time (as a |
| 2077 * 3339 timestamp) to filter by. When specified, entries deleted since this | 2139 * RFC3339 timestamp) to filter by. When specified, entries deleted since this |
| 2078 * time will always be included regardless of showDeleted. Optional. The | 2140 * time will always be included regardless of showDeleted. Optional. The |
| 2079 * default is not to filter by last modification time. | 2141 * default is not to filter by last modification time. |
| 2080 * | 2142 * |
| 2081 * Completes with a [Channel]. | 2143 * Completes with a [Channel]. |
| 2082 * | 2144 * |
| 2083 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2084 * error. | 2146 * error. |
| 2085 * | 2147 * |
| 2086 * If the used [http.Client] completes with an error when making a REST call, | 2148 * If the used [http.Client] completes with an error when making a REST call, |
| 2087 * this method will complete with the same error. | 2149 * this method will complete with the same error. |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2547 } | 2609 } |
| 2548 return _json; | 2610 return _json; |
| 2549 } | 2611 } |
| 2550 } | 2612 } |
| 2551 | 2613 |
| 2552 class Calendar { | 2614 class Calendar { |
| 2553 /** Description of the calendar. Optional. */ | 2615 /** Description of the calendar. Optional. */ |
| 2554 core.String description; | 2616 core.String description; |
| 2555 /** ETag of the resource. */ | 2617 /** ETag of the resource. */ |
| 2556 core.String etag; | 2618 core.String etag; |
| 2557 /** Identifier of the calendar. */ | 2619 /** |
| 2620 * Identifier of the calendar. To retrieve IDs you call the |
| 2621 * calendarList.list() method. |
| 2622 */ |
| 2558 core.String id; | 2623 core.String id; |
| 2559 /** Type of the resource ("calendar#calendar"). */ | 2624 /** Type of the resource ("calendar#calendar"). */ |
| 2560 core.String kind; | 2625 core.String kind; |
| 2561 /** Geographic location of the calendar as free-form text. Optional. */ | 2626 /** Geographic location of the calendar as free-form text. Optional. */ |
| 2562 core.String location; | 2627 core.String location; |
| 2563 /** Title of the calendar. */ | 2628 /** Title of the calendar. */ |
| 2564 core.String summary; | 2629 core.String summary; |
| 2565 /** | 2630 /** |
| 2566 * The time zone of the calendar. (Formatted as an IANA Time Zone Database | 2631 * The time zone of the calendar. (Formatted as an IANA Time Zone Database |
| 2567 * name, e.g. "Europe/Zurich".) Optional. | 2632 * name, e.g. "Europe/Zurich".) Optional. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2714 * appear to users with reader access, but event details will be hidden. | 2779 * appear to users with reader access, but event details will be hidden. |
| 2715 * - "writer" - Provides read and write access to the calendar. Private events | 2780 * - "writer" - Provides read and write access to the calendar. Private events |
| 2716 * will appear to users with writer access, and event details will be visible. | 2781 * will appear to users with writer access, and event details will be visible. |
| 2717 * - "owner" - Provides ownership of the calendar. This role has all of the | 2782 * - "owner" - Provides ownership of the calendar. This role has all of the |
| 2718 * permissions of the writer role with the additional ability to see and | 2783 * permissions of the writer role with the additional ability to see and |
| 2719 * manipulate ACLs. | 2784 * manipulate ACLs. |
| 2720 */ | 2785 */ |
| 2721 core.String accessRole; | 2786 core.String accessRole; |
| 2722 /** | 2787 /** |
| 2723 * The main color of the calendar in the hexadecimal format "#0088aa". This | 2788 * The main color of the calendar in the hexadecimal format "#0088aa". This |
| 2724 * property supersedes the index-based colorId property. Optional. | 2789 * property supersedes the index-based colorId property. To set or change this |
| 2790 * property, you need to specify colorRgbFormat=true in the parameters of the |
| 2791 * insert, update and patch methods. Optional. |
| 2725 */ | 2792 */ |
| 2726 core.String backgroundColor; | 2793 core.String backgroundColor; |
| 2727 /** | 2794 /** |
| 2728 * The color of the calendar. This is an ID referring to an entry in the | 2795 * The color of the calendar. This is an ID referring to an entry in the |
| 2729 * calendar section of the colors definition (see the colors endpoint). | 2796 * calendar section of the colors definition (see the colors endpoint). This |
| 2730 * Optional. | 2797 * property is superseded by the backgroundColor and foregroundColor |
| 2798 * properties and can be ignored when using these properties. Optional. |
| 2731 */ | 2799 */ |
| 2732 core.String colorId; | 2800 core.String colorId; |
| 2733 /** | 2801 /** |
| 2734 * The default reminders that the authenticated user has for this calendar. | 2802 * The default reminders that the authenticated user has for this calendar. |
| 2735 */ | 2803 */ |
| 2736 core.List<EventReminder> defaultReminders; | 2804 core.List<EventReminder> defaultReminders; |
| 2737 /** | 2805 /** |
| 2738 * Whether this calendar list entry has been deleted from the calendar list. | 2806 * Whether this calendar list entry has been deleted from the calendar list. |
| 2739 * Read-only. Optional. The default is False. | 2807 * Read-only. Optional. The default is False. |
| 2740 */ | 2808 */ |
| 2741 core.bool deleted; | 2809 core.bool deleted; |
| 2742 /** Description of the calendar. Optional. Read-only. */ | 2810 /** Description of the calendar. Optional. Read-only. */ |
| 2743 core.String description; | 2811 core.String description; |
| 2744 /** ETag of the resource. */ | 2812 /** ETag of the resource. */ |
| 2745 core.String etag; | 2813 core.String etag; |
| 2746 /** | 2814 /** |
| 2747 * The foreground color of the calendar in the hexadecimal format "#ffffff". | 2815 * The foreground color of the calendar in the hexadecimal format "#ffffff". |
| 2748 * This property supersedes the index-based colorId property. Optional. | 2816 * This property supersedes the index-based colorId property. To set or change |
| 2817 * this property, you need to specify colorRgbFormat=true in the parameters of |
| 2818 * the insert, update and patch methods. Optional. |
| 2749 */ | 2819 */ |
| 2750 core.String foregroundColor; | 2820 core.String foregroundColor; |
| 2751 /** | 2821 /** |
| 2752 * Whether the calendar has been hidden from the list. Optional. The default | 2822 * Whether the calendar has been hidden from the list. Optional. The default |
| 2753 * is False. | 2823 * is False. |
| 2754 */ | 2824 */ |
| 2755 core.bool hidden; | 2825 core.bool hidden; |
| 2756 /** Identifier of the calendar. */ | 2826 /** Identifier of the calendar. */ |
| 2757 core.String id; | 2827 core.String id; |
| 2758 /** Type of the resource ("calendar#calendarListEntry"). */ | 2828 /** Type of the resource ("calendar#calendarListEntry"). */ |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2903 } | 2973 } |
| 2904 return _json; | 2974 return _json; |
| 2905 } | 2975 } |
| 2906 } | 2976 } |
| 2907 | 2977 |
| 2908 class CalendarNotification { | 2978 class CalendarNotification { |
| 2909 /** | 2979 /** |
| 2910 * The method used to deliver the notification. Possible values are: | 2980 * The method used to deliver the notification. Possible values are: |
| 2911 * - "email" - Reminders are sent via email. | 2981 * - "email" - Reminders are sent via email. |
| 2912 * - "sms" - Reminders are sent via SMS. This value is read-only and is | 2982 * - "sms" - Reminders are sent via SMS. This value is read-only and is |
| 2913 * ignored on inserts and updates. | 2983 * ignored on inserts and updates. SMS reminders are only available for Google |
| 2984 * Apps for Work, Education, and Government customers. |
| 2914 */ | 2985 */ |
| 2915 core.String method; | 2986 core.String method; |
| 2916 /** | 2987 /** |
| 2917 * The type of notification. Possible values are: | 2988 * The type of notification. Possible values are: |
| 2918 * - "eventCreation" - Notification sent when a new event is put on the | 2989 * - "eventCreation" - Notification sent when a new event is put on the |
| 2919 * calendar. | 2990 * calendar. |
| 2920 * - "eventChange" - Notification sent when an event is changed. | 2991 * - "eventChange" - Notification sent when an event is changed. |
| 2921 * - "eventCancellation" - Notification sent when an event is cancelled. | 2992 * - "eventCancellation" - Notification sent when an event is cancelled. |
| 2922 * - "eventResponse" - Notification sent when an event is changed. | 2993 * - "eventResponse" - Notification sent when an event is changed. |
| 2923 * - "agenda" - An agenda with the events of the day (sent out in the | 2994 * - "agenda" - An agenda with the events of the day (sent out in the |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 } | 3151 } |
| 3081 if (foreground != null) { | 3152 if (foreground != null) { |
| 3082 _json["foreground"] = foreground; | 3153 _json["foreground"] = foreground; |
| 3083 } | 3154 } |
| 3084 return _json; | 3155 return _json; |
| 3085 } | 3156 } |
| 3086 } | 3157 } |
| 3087 | 3158 |
| 3088 class Colors { | 3159 class Colors { |
| 3089 /** | 3160 /** |
| 3090 * Palette of calendar colors, mapping from the color ID to its definition. A | 3161 * A global palette of calendar colors, mapping from the color ID to its |
| 3091 * calendarListEntry resource refers to one of these color IDs in its color | 3162 * definition. A calendarListEntry resource refers to one of these color IDs |
| 3092 * field. Read-only. | 3163 * in its color field. Read-only. |
| 3093 */ | 3164 */ |
| 3094 core.Map<core.String, ColorDefinition> calendar; | 3165 core.Map<core.String, ColorDefinition> calendar; |
| 3095 /** | 3166 /** |
| 3096 * Palette of event colors, mapping from the color ID to its definition. An | 3167 * A global palette of event colors, mapping from the color ID to its |
| 3097 * event resource may refer to one of these color IDs in its color field. | 3168 * definition. An event resource may refer to one of these color IDs in its |
| 3098 * Read-only. | 3169 * color field. Read-only. |
| 3099 */ | 3170 */ |
| 3100 core.Map<core.String, ColorDefinition> event; | 3171 core.Map<core.String, ColorDefinition> event; |
| 3101 /** Type of the resource ("calendar#colors"). */ | 3172 /** Type of the resource ("calendar#colors"). */ |
| 3102 core.String kind; | 3173 core.String kind; |
| 3103 /** | 3174 /** |
| 3104 * Last modification time of the color palette (as a RFC 3339 timestamp). | 3175 * Last modification time of the color palette (as a RFC3339 timestamp). |
| 3105 * Read-only. | 3176 * Read-only. |
| 3106 */ | 3177 */ |
| 3107 core.DateTime updated; | 3178 core.DateTime updated; |
| 3108 | 3179 |
| 3109 Colors(); | 3180 Colors(); |
| 3110 | 3181 |
| 3111 Colors.fromJson(core.Map _json) { | 3182 Colors.fromJson(core.Map _json) { |
| 3112 if (_json.containsKey("calendar")) { | 3183 if (_json.containsKey("calendar")) { |
| 3113 calendar = commons.mapMap(_json["calendar"], (item) => new ColorDefinition
.fromJson(item)); | 3184 calendar = commons.mapMap(_json["calendar"], (item) => new ColorDefinition
.fromJson(item)); |
| 3114 } | 3185 } |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3179 return _json; | 3250 return _json; |
| 3180 } | 3251 } |
| 3181 } | 3252 } |
| 3182 | 3253 |
| 3183 /** The creator of the event. Read-only. */ | 3254 /** The creator of the event. Read-only. */ |
| 3184 class EventCreator { | 3255 class EventCreator { |
| 3185 /** The creator's name, if available. */ | 3256 /** The creator's name, if available. */ |
| 3186 core.String displayName; | 3257 core.String displayName; |
| 3187 /** The creator's email address, if available. */ | 3258 /** The creator's email address, if available. */ |
| 3188 core.String email; | 3259 core.String email; |
| 3189 /** The creator's Profile ID, if available. */ | 3260 /** |
| 3261 * The creator's Profile ID, if available. It corresponds to theid field in |
| 3262 * the People collection of the Google+ API |
| 3263 */ |
| 3190 core.String id; | 3264 core.String id; |
| 3191 /** | 3265 /** |
| 3192 * Whether the creator corresponds to the calendar on which this copy of the | 3266 * Whether the creator corresponds to the calendar on which this copy of the |
| 3193 * event appears. Read-only. The default is False. | 3267 * event appears. Read-only. The default is False. |
| 3194 */ | 3268 */ |
| 3195 core.bool self; | 3269 core.bool self; |
| 3196 | 3270 |
| 3197 EventCreator(); | 3271 EventCreator(); |
| 3198 | 3272 |
| 3199 EventCreator.fromJson(core.Map _json) { | 3273 EventCreator.fromJson(core.Map _json) { |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3267 | 3341 |
| 3268 /** A gadget that extends this event. */ | 3342 /** A gadget that extends this event. */ |
| 3269 class EventGadget { | 3343 class EventGadget { |
| 3270 /** | 3344 /** |
| 3271 * The gadget's display mode. Optional. Possible values are: | 3345 * The gadget's display mode. Optional. Possible values are: |
| 3272 * - "icon" - The gadget displays next to the event's title in the calendar | 3346 * - "icon" - The gadget displays next to the event's title in the calendar |
| 3273 * view. | 3347 * view. |
| 3274 * - "chip" - The gadget displays when the event is clicked. | 3348 * - "chip" - The gadget displays when the event is clicked. |
| 3275 */ | 3349 */ |
| 3276 core.String display; | 3350 core.String display; |
| 3277 /** The gadget's height in pixels. Optional. */ | 3351 /** |
| 3352 * The gadget's height in pixels. The height must be an integer greater than |
| 3353 * 0. Optional. |
| 3354 */ |
| 3278 core.int height; | 3355 core.int height; |
| 3279 /** The gadget's icon URL. */ | 3356 /** The gadget's icon URL. The URL scheme must be HTTPS. */ |
| 3280 core.String iconLink; | 3357 core.String iconLink; |
| 3281 /** The gadget's URL. */ | 3358 /** The gadget's URL. The URL scheme must be HTTPS. */ |
| 3282 core.String link; | 3359 core.String link; |
| 3283 /** Preferences. */ | 3360 /** Preferences. */ |
| 3284 core.Map<core.String, core.String> preferences; | 3361 core.Map<core.String, core.String> preferences; |
| 3285 /** The gadget's title. */ | 3362 /** The gadget's title. */ |
| 3286 core.String title; | 3363 core.String title; |
| 3287 /** The gadget's type. */ | 3364 /** The gadget's type. */ |
| 3288 core.String type; | 3365 core.String type; |
| 3289 /** The gadget's width in pixels. Optional. */ | 3366 /** |
| 3367 * The gadget's width in pixels. The width must be an integer greater than 0. |
| 3368 * Optional. |
| 3369 */ |
| 3290 core.int width; | 3370 core.int width; |
| 3291 | 3371 |
| 3292 EventGadget(); | 3372 EventGadget(); |
| 3293 | 3373 |
| 3294 EventGadget.fromJson(core.Map _json) { | 3374 EventGadget.fromJson(core.Map _json) { |
| 3295 if (_json.containsKey("display")) { | 3375 if (_json.containsKey("display")) { |
| 3296 display = _json["display"]; | 3376 display = _json["display"]; |
| 3297 } | 3377 } |
| 3298 if (_json.containsKey("height")) { | 3378 if (_json.containsKey("height")) { |
| 3299 height = _json["height"]; | 3379 height = _json["height"]; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3350 | 3430 |
| 3351 /** | 3431 /** |
| 3352 * The organizer of the event. If the organizer is also an attendee, this is | 3432 * The organizer of the event. If the organizer is also an attendee, this is |
| 3353 * indicated with a separate entry in attendees with the organizer field set to | 3433 * indicated with a separate entry in attendees with the organizer field set to |
| 3354 * True. To change the organizer, use the move operation. Read-only, except when | 3434 * True. To change the organizer, use the move operation. Read-only, except when |
| 3355 * importing an event. | 3435 * importing an event. |
| 3356 */ | 3436 */ |
| 3357 class EventOrganizer { | 3437 class EventOrganizer { |
| 3358 /** The organizer's name, if available. */ | 3438 /** The organizer's name, if available. */ |
| 3359 core.String displayName; | 3439 core.String displayName; |
| 3360 /** The organizer's email address, if available. */ | 3440 /** |
| 3441 * The organizer's email address, if available. It must be a valid email |
| 3442 * address as per RFC5322. |
| 3443 */ |
| 3361 core.String email; | 3444 core.String email; |
| 3362 /** The organizer's Profile ID, if available. */ | 3445 /** |
| 3446 * The organizer's Profile ID, if available. It corresponds to theid field in |
| 3447 * the People collection of the Google+ API |
| 3448 */ |
| 3363 core.String id; | 3449 core.String id; |
| 3364 /** | 3450 /** |
| 3365 * Whether the organizer corresponds to the calendar on which this copy of the | 3451 * Whether the organizer corresponds to the calendar on which this copy of the |
| 3366 * event appears. Read-only. The default is False. | 3452 * event appears. Read-only. The default is False. |
| 3367 */ | 3453 */ |
| 3368 core.bool self; | 3454 core.bool self; |
| 3369 | 3455 |
| 3370 EventOrganizer(); | 3456 EventOrganizer(); |
| 3371 | 3457 |
| 3372 EventOrganizer.fromJson(core.Map _json) { | 3458 EventOrganizer.fromJson(core.Map _json) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3400 } | 3486 } |
| 3401 return _json; | 3487 return _json; |
| 3402 } | 3488 } |
| 3403 } | 3489 } |
| 3404 | 3490 |
| 3405 /** Information about the event's reminders for the authenticated user. */ | 3491 /** Information about the event's reminders for the authenticated user. */ |
| 3406 class EventReminders { | 3492 class EventReminders { |
| 3407 /** | 3493 /** |
| 3408 * If the event doesn't use the default reminders, this lists the reminders | 3494 * If the event doesn't use the default reminders, this lists the reminders |
| 3409 * specific to the event, or, if not set, indicates that no reminders are set | 3495 * specific to the event, or, if not set, indicates that no reminders are set |
| 3410 * for this event. | 3496 * for this event. The maximum number of override reminders is 5. |
| 3411 */ | 3497 */ |
| 3412 core.List<EventReminder> overrides; | 3498 core.List<EventReminder> overrides; |
| 3413 /** Whether the default reminders of the calendar apply to the event. */ | 3499 /** Whether the default reminders of the calendar apply to the event. */ |
| 3414 core.bool useDefault; | 3500 core.bool useDefault; |
| 3415 | 3501 |
| 3416 EventReminders(); | 3502 EventReminders(); |
| 3417 | 3503 |
| 3418 EventReminders.fromJson(core.Map _json) { | 3504 EventReminders.fromJson(core.Map _json) { |
| 3419 if (_json.containsKey("overrides")) { | 3505 if (_json.containsKey("overrides")) { |
| 3420 overrides = _json["overrides"].map((value) => new EventReminder.fromJson(v
alue)).toList(); | 3506 overrides = _json["overrides"].map((value) => new EventReminder.fromJson(v
alue)).toList(); |
| 3421 } | 3507 } |
| 3422 if (_json.containsKey("useDefault")) { | 3508 if (_json.containsKey("useDefault")) { |
| 3423 useDefault = _json["useDefault"]; | 3509 useDefault = _json["useDefault"]; |
| 3424 } | 3510 } |
| 3425 } | 3511 } |
| 3426 | 3512 |
| 3427 core.Map toJson() { | 3513 core.Map toJson() { |
| 3428 var _json = new core.Map(); | 3514 var _json = new core.Map(); |
| 3429 if (overrides != null) { | 3515 if (overrides != null) { |
| 3430 _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); | 3516 _json["overrides"] = overrides.map((value) => (value).toJson()).toList(); |
| 3431 } | 3517 } |
| 3432 if (useDefault != null) { | 3518 if (useDefault != null) { |
| 3433 _json["useDefault"] = useDefault; | 3519 _json["useDefault"] = useDefault; |
| 3434 } | 3520 } |
| 3435 return _json; | 3521 return _json; |
| 3436 } | 3522 } |
| 3437 } | 3523 } |
| 3438 | 3524 |
| 3439 /** | 3525 /** |
| 3440 * Source of an event from which it was created; for example a web page, an | 3526 * Source from which the event was created. For example, a web page, an email |
| 3441 * email message or any document identifiable by an URL using HTTP/HTTPS | 3527 * message or any document identifiable by an URL with HTTP or HTTPS scheme. Can |
| 3442 * protocol. Accessible only by the creator of the event. | 3528 * only be seen or modified by the creator of the event. |
| 3443 */ | 3529 */ |
| 3444 class EventSource { | 3530 class EventSource { |
| 3445 /** | 3531 /** |
| 3446 * Title of the source; for example a title of a web page or an email subject. | 3532 * Title of the source; for example a title of a web page or an email subject. |
| 3447 */ | 3533 */ |
| 3448 core.String title; | 3534 core.String title; |
| 3449 /** | 3535 /** |
| 3450 * URL of the source pointing to a resource. URL's protocol must be HTTP or | 3536 * URL of the source pointing to a resource. The URL scheme must be HTTP or |
| 3451 * HTTPS. | 3537 * HTTPS. |
| 3452 */ | 3538 */ |
| 3453 core.String url; | 3539 core.String url; |
| 3454 | 3540 |
| 3455 EventSource(); | 3541 EventSource(); |
| 3456 | 3542 |
| 3457 EventSource.fromJson(core.Map _json) { | 3543 EventSource.fromJson(core.Map _json) { |
| 3458 if (_json.containsKey("title")) { | 3544 if (_json.containsKey("title")) { |
| 3459 title = _json["title"]; | 3545 title = _json["title"]; |
| 3460 } | 3546 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 3482 */ | 3568 */ |
| 3483 core.bool anyoneCanAddSelf; | 3569 core.bool anyoneCanAddSelf; |
| 3484 /** | 3570 /** |
| 3485 * File attachments for the event. Currently only Google Drive attachments are | 3571 * File attachments for the event. Currently only Google Drive attachments are |
| 3486 * supported. | 3572 * supported. |
| 3487 * In order to modify attachments the supportsAttachments request parameter | 3573 * In order to modify attachments the supportsAttachments request parameter |
| 3488 * should be set to true. | 3574 * should be set to true. |
| 3489 * There can be at most 25 attachments per event, | 3575 * There can be at most 25 attachments per event, |
| 3490 */ | 3576 */ |
| 3491 core.List<EventAttachment> attachments; | 3577 core.List<EventAttachment> attachments; |
| 3492 /** The attendees of the event. */ | 3578 /** |
| 3579 * The attendees of the event. See the Events with attendees guide for more |
| 3580 * information on scheduling events with other calendar users. |
| 3581 */ |
| 3493 core.List<EventAttendee> attendees; | 3582 core.List<EventAttendee> attendees; |
| 3494 /** | 3583 /** |
| 3495 * Whether attendees may have been omitted from the event's representation. | 3584 * Whether attendees may have been omitted from the event's representation. |
| 3496 * When retrieving an event, this may be due to a restriction specified by the | 3585 * When retrieving an event, this may be due to a restriction specified by the |
| 3497 * maxAttendee query parameter. When updating an event, this can be used to | 3586 * maxAttendee query parameter. When updating an event, this can be used to |
| 3498 * only update the participant's response. Optional. The default is False. | 3587 * only update the participant's response. Optional. The default is False. |
| 3499 */ | 3588 */ |
| 3500 core.bool attendeesOmitted; | 3589 core.bool attendeesOmitted; |
| 3501 /** | 3590 /** |
| 3502 * The color of the event. This is an ID referring to an entry in the event | 3591 * The color of the event. This is an ID referring to an entry in the event |
| 3503 * section of the colors definition (see the colors endpoint). Optional. | 3592 * section of the colors definition (see the colors endpoint). Optional. |
| 3504 */ | 3593 */ |
| 3505 core.String colorId; | 3594 core.String colorId; |
| 3506 /** Creation time of the event (as a RFC 3339 timestamp). Read-only. */ | 3595 /** Creation time of the event (as a RFC3339 timestamp). Read-only. */ |
| 3507 core.DateTime created; | 3596 core.DateTime created; |
| 3508 /** The creator of the event. Read-only. */ | 3597 /** The creator of the event. Read-only. */ |
| 3509 EventCreator creator; | 3598 EventCreator creator; |
| 3510 /** Description of the event. Optional. */ | 3599 /** Description of the event. Optional. */ |
| 3511 core.String description; | 3600 core.String description; |
| 3512 /** | 3601 /** |
| 3513 * The (exclusive) end time of the event. For a recurring event, this is the | 3602 * The (exclusive) end time of the event. For a recurring event, this is the |
| 3514 * end time of the first instance. | 3603 * end time of the first instance. |
| 3515 */ | 3604 */ |
| 3516 EventDateTime end; | 3605 EventDateTime end; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3543 core.bool guestsCanSeeOtherGuests; | 3632 core.bool guestsCanSeeOtherGuests; |
| 3544 /** | 3633 /** |
| 3545 * An absolute link to the Google+ hangout associated with this event. | 3634 * An absolute link to the Google+ hangout associated with this event. |
| 3546 * Read-only. | 3635 * Read-only. |
| 3547 */ | 3636 */ |
| 3548 core.String hangoutLink; | 3637 core.String hangoutLink; |
| 3549 /** | 3638 /** |
| 3550 * An absolute link to this event in the Google Calendar Web UI. Read-only. | 3639 * An absolute link to this event in the Google Calendar Web UI. Read-only. |
| 3551 */ | 3640 */ |
| 3552 core.String htmlLink; | 3641 core.String htmlLink; |
| 3553 /** Event ID in the iCalendar format. */ | 3642 /** |
| 3643 * Event unique identifier as defined in RFC5545. It is used to uniquely |
| 3644 * identify events accross calendaring systems and must be supplied when |
| 3645 * importing events via the import method. |
| 3646 * Note that the icalUID and the id are not identical and only one of them |
| 3647 * should be supplied at event creation time. One difference in their |
| 3648 * semantics is that in recurring events, all occurrences of one event have |
| 3649 * different ids while they all share the same icalUIDs. |
| 3650 */ |
| 3554 core.String iCalUID; | 3651 core.String iCalUID; |
| 3555 /** | 3652 /** |
| 3556 * Identifier of the event. When creating new single or recurring events, you | 3653 * Opaque identifier of the event. When creating new single or recurring |
| 3557 * can specify their IDs. Provided IDs must follow these rules: | 3654 * events, you can specify their IDs. Provided IDs must follow these rules: |
| 3558 * - characters allowed in the ID are those used in base32hex encoding, i.e. | 3655 * - characters allowed in the ID are those used in base32hex encoding, i.e. |
| 3559 * lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938 | 3656 * lowercase letters a-v and digits 0-9, see section 3.1.2 in RFC2938 |
| 3560 * - the length of the ID must be between 5 and 1024 characters | 3657 * - the length of the ID must be between 5 and 1024 characters |
| 3561 * - the ID must be unique per calendar Due to the globally distributed | 3658 * - the ID must be unique per calendar Due to the globally distributed |
| 3562 * nature of the system, we cannot guarantee that ID collisions will be | 3659 * nature of the system, we cannot guarantee that ID collisions will be |
| 3563 * detected at event creation time. To minimize the risk of collisions we | 3660 * detected at event creation time. To minimize the risk of collisions we |
| 3564 * recommend using an established UUID algorithm such as one described in | 3661 * recommend using an established UUID algorithm such as one described in |
| 3565 * RFC4122. | 3662 * RFC4122. |
| 3663 * If you do not specify an ID, it will be automatically generated by the |
| 3664 * server. |
| 3665 * Note that the icalUID and the id are not identical and only one of them |
| 3666 * should be supplied at event creation time. One difference in their |
| 3667 * semantics is that in recurring events, all occurrences of one event have |
| 3668 * different ids while they all share the same icalUIDs. |
| 3566 */ | 3669 */ |
| 3567 core.String id; | 3670 core.String id; |
| 3568 /** Type of the resource ("calendar#event"). */ | 3671 /** Type of the resource ("calendar#event"). */ |
| 3569 core.String kind; | 3672 core.String kind; |
| 3570 /** Geographic location of the event as free-form text. Optional. */ | 3673 /** Geographic location of the event as free-form text. Optional. */ |
| 3571 core.String location; | 3674 core.String location; |
| 3572 /** | 3675 /** |
| 3573 * Whether this is a locked event copy where no changes can be made to the | 3676 * Whether this is a locked event copy where no changes can be made to the |
| 3574 * main event fields "summary", "description", "location", "start", "end" or | 3677 * main event fields "summary", "description", "location", "start", "end" or |
| 3575 * "recurrence". The default is False. Read-Only. | 3678 * "recurrence". The default is False. Read-Only. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3587 * would start according to the recurrence data in the recurring event | 3690 * would start according to the recurrence data in the recurring event |
| 3588 * identified by recurringEventId. Immutable. | 3691 * identified by recurringEventId. Immutable. |
| 3589 */ | 3692 */ |
| 3590 EventDateTime originalStartTime; | 3693 EventDateTime originalStartTime; |
| 3591 /** | 3694 /** |
| 3592 * Whether this is a private event copy where changes are not shared with | 3695 * Whether this is a private event copy where changes are not shared with |
| 3593 * other copies on other calendars. Optional. Immutable. The default is False. | 3696 * other copies on other calendars. Optional. Immutable. The default is False. |
| 3594 */ | 3697 */ |
| 3595 core.bool privateCopy; | 3698 core.bool privateCopy; |
| 3596 /** | 3699 /** |
| 3597 * List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This | 3700 * List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as |
| 3598 * field is omitted for single events or instances of recurring events. | 3701 * specified in RFC5545. Note that DTSTART and DTEND lines are not allowed in |
| 3702 * this field; event start and end times are specified in the start and end |
| 3703 * fields. This field is omitted for single events or instances of recurring |
| 3704 * events. |
| 3599 */ | 3705 */ |
| 3600 core.List<core.String> recurrence; | 3706 core.List<core.String> recurrence; |
| 3601 /** | 3707 /** |
| 3602 * For an instance of a recurring event, this is the event ID of the recurring | 3708 * For an instance of a recurring event, this is the id of the recurring event |
| 3603 * event itself. Immutable. | 3709 * to which this instance belongs. Immutable. |
| 3604 */ | 3710 */ |
| 3605 core.String recurringEventId; | 3711 core.String recurringEventId; |
| 3606 /** Information about the event's reminders for the authenticated user. */ | 3712 /** Information about the event's reminders for the authenticated user. */ |
| 3607 EventReminders reminders; | 3713 EventReminders reminders; |
| 3608 /** Sequence number as per iCalendar. */ | 3714 /** Sequence number as per iCalendar. */ |
| 3609 core.int sequence; | 3715 core.int sequence; |
| 3610 /** | 3716 /** |
| 3611 * Source of an event from which it was created; for example a web page, an | 3717 * Source from which the event was created. For example, a web page, an email |
| 3612 * email message or any document identifiable by an URL using HTTP/HTTPS | 3718 * message or any document identifiable by an URL with HTTP or HTTPS scheme. |
| 3613 * protocol. Accessible only by the creator of the event. | 3719 * Can only be seen or modified by the creator of the event. |
| 3614 */ | 3720 */ |
| 3615 EventSource source; | 3721 EventSource source; |
| 3616 /** | 3722 /** |
| 3617 * The (inclusive) start time of the event. For a recurring event, this is the | 3723 * The (inclusive) start time of the event. For a recurring event, this is the |
| 3618 * start time of the first instance. | 3724 * start time of the first instance. |
| 3619 */ | 3725 */ |
| 3620 EventDateTime start; | 3726 EventDateTime start; |
| 3621 /** | 3727 /** |
| 3622 * Status of the event. Optional. Possible values are: | 3728 * Status of the event. Optional. Possible values are: |
| 3623 * - "confirmed" - The event is confirmed. This is the default status. | 3729 * - "confirmed" - The event is confirmed. This is the default status. |
| 3624 * - "tentative" - The event is tentatively confirmed. | 3730 * - "tentative" - The event is tentatively confirmed. |
| 3625 * - "cancelled" - The event is cancelled. | 3731 * - "cancelled" - The event is cancelled. |
| 3626 */ | 3732 */ |
| 3627 core.String status; | 3733 core.String status; |
| 3628 /** Title of the event. */ | 3734 /** Title of the event. */ |
| 3629 core.String summary; | 3735 core.String summary; |
| 3630 /** | 3736 /** |
| 3631 * Whether the event blocks time on the calendar. Optional. Possible values | 3737 * Whether the event blocks time on the calendar. Optional. Possible values |
| 3632 * are: | 3738 * are: |
| 3633 * - "opaque" - The event blocks time on the calendar. This is the default | 3739 * - "opaque" - The event blocks time on the calendar. This is the default |
| 3634 * value. | 3740 * value. |
| 3635 * - "transparent" - The event does not block time on the calendar. | 3741 * - "transparent" - The event does not block time on the calendar. |
| 3636 */ | 3742 */ |
| 3637 core.String transparency; | 3743 core.String transparency; |
| 3638 /** | 3744 /** |
| 3639 * Last modification time of the event (as a RFC 3339 timestamp). Read-only. | 3745 * Last modification time of the event (as a RFC3339 timestamp). Read-only. |
| 3640 */ | 3746 */ |
| 3641 core.DateTime updated; | 3747 core.DateTime updated; |
| 3642 /** | 3748 /** |
| 3643 * Visibility of the event. Optional. Possible values are: | 3749 * Visibility of the event. Optional. Possible values are: |
| 3644 * - "default" - Uses the default visibility for events on the calendar. This | 3750 * - "default" - Uses the default visibility for events on the calendar. This |
| 3645 * is the default value. | 3751 * is the default value. |
| 3646 * - "public" - The event is public and event details are visible to all | 3752 * - "public" - The event is public and event details are visible to all |
| 3647 * readers of the calendar. | 3753 * readers of the calendar. |
| 3648 * - "private" - The event is private and only event attendees may view event | 3754 * - "private" - The event is private and only event attendees may view event |
| 3649 * details. | 3755 * details. |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3880 } | 3986 } |
| 3881 if (visibility != null) { | 3987 if (visibility != null) { |
| 3882 _json["visibility"] = visibility; | 3988 _json["visibility"] = visibility; |
| 3883 } | 3989 } |
| 3884 return _json; | 3990 return _json; |
| 3885 } | 3991 } |
| 3886 } | 3992 } |
| 3887 | 3993 |
| 3888 class EventAttachment { | 3994 class EventAttachment { |
| 3889 /** | 3995 /** |
| 3996 * ID of the attached file. Read-only. |
| 3997 * For Google Drive files, this is the ID of the corresponding Files resource |
| 3998 * entry in the Drive API. |
| 3999 */ |
| 4000 core.String fileId; |
| 4001 /** |
| 3890 * URL link to the attachment. | 4002 * URL link to the attachment. |
| 3891 * For adding Google Drive file attachments use the same format as in | 4003 * For adding Google Drive file attachments use the same format as in |
| 3892 * alternateLink property of the Files resource in the Drive API. | 4004 * alternateLink property of the Files resource in the Drive API. |
| 3893 */ | 4005 */ |
| 3894 core.String fileUrl; | 4006 core.String fileUrl; |
| 3895 /** URL link to the attachment's icon. Read-only. */ | 4007 /** URL link to the attachment's icon. Read-only. */ |
| 3896 core.String iconLink; | 4008 core.String iconLink; |
| 3897 /** Internet media type (MIME type) of the attachment. */ | 4009 /** Internet media type (MIME type) of the attachment. */ |
| 3898 core.String mimeType; | 4010 core.String mimeType; |
| 3899 /** Attachment title. */ | 4011 /** Attachment title. */ |
| 3900 core.String title; | 4012 core.String title; |
| 3901 | 4013 |
| 3902 EventAttachment(); | 4014 EventAttachment(); |
| 3903 | 4015 |
| 3904 EventAttachment.fromJson(core.Map _json) { | 4016 EventAttachment.fromJson(core.Map _json) { |
| 4017 if (_json.containsKey("fileId")) { |
| 4018 fileId = _json["fileId"]; |
| 4019 } |
| 3905 if (_json.containsKey("fileUrl")) { | 4020 if (_json.containsKey("fileUrl")) { |
| 3906 fileUrl = _json["fileUrl"]; | 4021 fileUrl = _json["fileUrl"]; |
| 3907 } | 4022 } |
| 3908 if (_json.containsKey("iconLink")) { | 4023 if (_json.containsKey("iconLink")) { |
| 3909 iconLink = _json["iconLink"]; | 4024 iconLink = _json["iconLink"]; |
| 3910 } | 4025 } |
| 3911 if (_json.containsKey("mimeType")) { | 4026 if (_json.containsKey("mimeType")) { |
| 3912 mimeType = _json["mimeType"]; | 4027 mimeType = _json["mimeType"]; |
| 3913 } | 4028 } |
| 3914 if (_json.containsKey("title")) { | 4029 if (_json.containsKey("title")) { |
| 3915 title = _json["title"]; | 4030 title = _json["title"]; |
| 3916 } | 4031 } |
| 3917 } | 4032 } |
| 3918 | 4033 |
| 3919 core.Map toJson() { | 4034 core.Map toJson() { |
| 3920 var _json = new core.Map(); | 4035 var _json = new core.Map(); |
| 4036 if (fileId != null) { |
| 4037 _json["fileId"] = fileId; |
| 4038 } |
| 3921 if (fileUrl != null) { | 4039 if (fileUrl != null) { |
| 3922 _json["fileUrl"] = fileUrl; | 4040 _json["fileUrl"] = fileUrl; |
| 3923 } | 4041 } |
| 3924 if (iconLink != null) { | 4042 if (iconLink != null) { |
| 3925 _json["iconLink"] = iconLink; | 4043 _json["iconLink"] = iconLink; |
| 3926 } | 4044 } |
| 3927 if (mimeType != null) { | 4045 if (mimeType != null) { |
| 3928 _json["mimeType"] = mimeType; | 4046 _json["mimeType"] = mimeType; |
| 3929 } | 4047 } |
| 3930 if (title != null) { | 4048 if (title != null) { |
| 3931 _json["title"] = title; | 4049 _json["title"] = title; |
| 3932 } | 4050 } |
| 3933 return _json; | 4051 return _json; |
| 3934 } | 4052 } |
| 3935 } | 4053 } |
| 3936 | 4054 |
| 3937 class EventAttendee { | 4055 class EventAttendee { |
| 3938 /** Number of additional guests. Optional. The default is 0. */ | 4056 /** Number of additional guests. Optional. The default is 0. */ |
| 3939 core.int additionalGuests; | 4057 core.int additionalGuests; |
| 3940 /** The attendee's response comment. Optional. */ | 4058 /** The attendee's response comment. Optional. */ |
| 3941 core.String comment; | 4059 core.String comment; |
| 3942 /** The attendee's name, if available. Optional. */ | 4060 /** The attendee's name, if available. Optional. */ |
| 3943 core.String displayName; | 4061 core.String displayName; |
| 3944 /** | 4062 /** |
| 3945 * The attendee's email address, if available. This field must be present when | 4063 * The attendee's email address, if available. This field must be present when |
| 3946 * adding an attendee. | 4064 * adding an attendee. It must be a valid email address as per RFC5322. |
| 3947 */ | 4065 */ |
| 3948 core.String email; | 4066 core.String email; |
| 3949 /** The attendee's Profile ID, if available. */ | 4067 /** |
| 4068 * The attendee's Profile ID, if available. It corresponds to theid field in |
| 4069 * the People collection of the Google+ API |
| 4070 */ |
| 3950 core.String id; | 4071 core.String id; |
| 3951 /** Whether this is an optional attendee. Optional. The default is False. */ | 4072 /** Whether this is an optional attendee. Optional. The default is False. */ |
| 3952 core.bool optional; | 4073 core.bool optional; |
| 3953 /** | 4074 /** |
| 3954 * Whether the attendee is the organizer of the event. Read-only. The default | 4075 * Whether the attendee is the organizer of the event. Read-only. The default |
| 3955 * is False. | 4076 * is False. |
| 3956 */ | 4077 */ |
| 3957 core.bool organizer; | 4078 core.bool organizer; |
| 3958 /** Whether the attendee is a resource. Read-only. The default is False. */ | 4079 /** Whether the attendee is a resource. Read-only. The default is False. */ |
| 3959 core.bool resource; | 4080 core.bool resource; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4039 _json["self"] = self; | 4160 _json["self"] = self; |
| 4040 } | 4161 } |
| 4041 return _json; | 4162 return _json; |
| 4042 } | 4163 } |
| 4043 } | 4164 } |
| 4044 | 4165 |
| 4045 class EventDateTime { | 4166 class EventDateTime { |
| 4046 /** The date, in the format "yyyy-mm-dd", if this is an all-day event. */ | 4167 /** The date, in the format "yyyy-mm-dd", if this is an all-day event. */ |
| 4047 core.DateTime date; | 4168 core.DateTime date; |
| 4048 /** | 4169 /** |
| 4049 * The time, as a combined date-time value (formatted according to RFC 3339). | 4170 * The time, as a combined date-time value (formatted according to RFC3339). A |
| 4050 * A time zone offset is required unless a time zone is explicitly specified | 4171 * time zone offset is required unless a time zone is explicitly specified in |
| 4051 * in timeZone. | 4172 * timeZone. |
| 4052 */ | 4173 */ |
| 4053 core.DateTime dateTime; | 4174 core.DateTime dateTime; |
| 4054 /** | 4175 /** |
| 4055 * The time zone in which the time is specified. (Formatted as an IANA Time | 4176 * The time zone in which the time is specified. (Formatted as an IANA Time |
| 4056 * Zone Database name, e.g. "Europe/Zurich".) For recurring events this field | 4177 * Zone Database name, e.g. "Europe/Zurich".) For recurring events this field |
| 4057 * is required and specifies the time zone in which the recurrence is | 4178 * is required and specifies the time zone in which the recurrence is |
| 4058 * expanded. For single events this field is optional and indicates a custom | 4179 * expanded. For single events this field is optional and indicates a custom |
| 4059 * time zone for the event start/end. | 4180 * time zone for the event start/end. |
| 4060 */ | 4181 */ |
| 4061 core.String timeZone; | 4182 core.String timeZone; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4086 _json["timeZone"] = timeZone; | 4207 _json["timeZone"] = timeZone; |
| 4087 } | 4208 } |
| 4088 return _json; | 4209 return _json; |
| 4089 } | 4210 } |
| 4090 } | 4211 } |
| 4091 | 4212 |
| 4092 class EventReminder { | 4213 class EventReminder { |
| 4093 /** | 4214 /** |
| 4094 * The method used by this reminder. Possible values are: | 4215 * The method used by this reminder. Possible values are: |
| 4095 * - "email" - Reminders are sent via email. | 4216 * - "email" - Reminders are sent via email. |
| 4096 * - "sms" - Reminders are sent via SMS. | 4217 * - "sms" - Reminders are sent via SMS. These are only available for Google |
| 4218 * Apps for Work, Education, and Government customers. Requests to set SMS |
| 4219 * reminders for other account types are ignored. |
| 4097 * - "popup" - Reminders are sent via a UI popup. | 4220 * - "popup" - Reminders are sent via a UI popup. |
| 4098 */ | 4221 */ |
| 4099 core.String method; | 4222 core.String method; |
| 4100 /** | 4223 /** |
| 4101 * Number of minutes before the start of the event when the reminder should | 4224 * Number of minutes before the start of the event when the reminder should |
| 4102 * trigger. | 4225 * trigger. Valid values are between 0 and 40320 (4 weeks in minutes). |
| 4103 */ | 4226 */ |
| 4104 core.int minutes; | 4227 core.int minutes; |
| 4105 | 4228 |
| 4106 EventReminder(); | 4229 EventReminder(); |
| 4107 | 4230 |
| 4108 EventReminder.fromJson(core.Map _json) { | 4231 EventReminder.fromJson(core.Map _json) { |
| 4109 if (_json.containsKey("method")) { | 4232 if (_json.containsKey("method")) { |
| 4110 method = _json["method"]; | 4233 method = _json["method"]; |
| 4111 } | 4234 } |
| 4112 if (_json.containsKey("minutes")) { | 4235 if (_json.containsKey("minutes")) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4164 * Token used at a later point in time to retrieve only the entries that have | 4287 * Token used at a later point in time to retrieve only the entries that have |
| 4165 * changed since this result was returned. Omitted if further results are | 4288 * changed since this result was returned. Omitted if further results are |
| 4166 * available, in which case nextPageToken is provided. | 4289 * available, in which case nextPageToken is provided. |
| 4167 */ | 4290 */ |
| 4168 core.String nextSyncToken; | 4291 core.String nextSyncToken; |
| 4169 /** Title of the calendar. Read-only. */ | 4292 /** Title of the calendar. Read-only. */ |
| 4170 core.String summary; | 4293 core.String summary; |
| 4171 /** The time zone of the calendar. Read-only. */ | 4294 /** The time zone of the calendar. Read-only. */ |
| 4172 core.String timeZone; | 4295 core.String timeZone; |
| 4173 /** | 4296 /** |
| 4174 * Last modification time of the calendar (as a RFC 3339 timestamp). | 4297 * Last modification time of the calendar (as a RFC3339 timestamp). Read-only. |
| 4175 * Read-only. | |
| 4176 */ | 4298 */ |
| 4177 core.DateTime updated; | 4299 core.DateTime updated; |
| 4178 | 4300 |
| 4179 Events(); | 4301 Events(); |
| 4180 | 4302 |
| 4181 Events.fromJson(core.Map _json) { | 4303 Events.fromJson(core.Map _json) { |
| 4182 if (_json.containsKey("accessRole")) { | 4304 if (_json.containsKey("accessRole")) { |
| 4183 accessRole = _json["accessRole"]; | 4305 accessRole = _json["accessRole"]; |
| 4184 } | 4306 } |
| 4185 if (_json.containsKey("defaultReminders")) { | 4307 if (_json.containsKey("defaultReminders")) { |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4584 var _json = new core.Map(); | 4706 var _json = new core.Map(); |
| 4585 if (end != null) { | 4707 if (end != null) { |
| 4586 _json["end"] = (end).toIso8601String(); | 4708 _json["end"] = (end).toIso8601String(); |
| 4587 } | 4709 } |
| 4588 if (start != null) { | 4710 if (start != null) { |
| 4589 _json["start"] = (start).toIso8601String(); | 4711 _json["start"] = (start).toIso8601String(); |
| 4590 } | 4712 } |
| 4591 return _json; | 4713 return _json; |
| 4592 } | 4714 } |
| 4593 } | 4715 } |
| OLD | NEW |