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

Side by Side Diff: generated/googleapis/lib/sheets/v4.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/serviceuser/v1.dart ('k') | generated/googleapis/lib/slides/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.sheets.v4; 3 library googleapis.sheets.v4;
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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 * 310 *
311 * [request] - The metadata request object. 311 * [request] - The metadata request object.
312 * 312 *
313 * Request parameters: 313 * Request parameters:
314 * 314 *
315 * [spreadsheetId] - The ID of the spreadsheet to update. 315 * [spreadsheetId] - The ID of the spreadsheet to update.
316 * 316 *
317 * [range] - The A1 notation of a range to search for a logical table of data. 317 * [range] - The A1 notation of a range to search for a logical table of data.
318 * Values will be appended after the last row of the table. 318 * Values will be appended after the last row of the table.
319 * 319 *
320 * [responseDateTimeRenderOption] - Determines how dates, times, and durations
321 * in the response should be
322 * rendered. This is ignored if response_value_render_option is
323 * FORMATTED_VALUE.
324 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
325 * Possible string values are:
326 * - "SERIAL_NUMBER" : A SERIAL_NUMBER.
327 * - "FORMATTED_STRING" : A FORMATTED_STRING.
328 *
329 * [includeValuesInResponse] - Determines if the update response should
330 * include the values
331 * of the cells that were appended. By default, responses
332 * do not include the updated values.
333 *
334 * [responseValueRenderOption] - Determines how values in the response should 320 * [responseValueRenderOption] - Determines how values in the response should
335 * be rendered. 321 * be rendered.
336 * The default render option is ValueRenderOption.FORMATTED_VALUE. 322 * The default render option is ValueRenderOption.FORMATTED_VALUE.
337 * Possible string values are: 323 * Possible string values are:
338 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. 324 * - "FORMATTED_VALUE" : A FORMATTED_VALUE.
339 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. 325 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE.
340 * - "FORMULA" : A FORMULA. 326 * - "FORMULA" : A FORMULA.
341 * 327 *
342 * [insertDataOption] - How the input data should be inserted. 328 * [insertDataOption] - How the input data should be inserted.
343 * Possible string values are: 329 * Possible string values are:
344 * - "OVERWRITE" : A OVERWRITE. 330 * - "OVERWRITE" : A OVERWRITE.
345 * - "INSERT_ROWS" : A INSERT_ROWS. 331 * - "INSERT_ROWS" : A INSERT_ROWS.
346 * 332 *
347 * [valueInputOption] - How the input data should be interpreted. 333 * [valueInputOption] - How the input data should be interpreted.
348 * Possible string values are: 334 * Possible string values are:
349 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. 335 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED.
350 * - "RAW" : A RAW. 336 * - "RAW" : A RAW.
351 * - "USER_ENTERED" : A USER_ENTERED. 337 * - "USER_ENTERED" : A USER_ENTERED.
352 * 338 *
339 * [responseDateTimeRenderOption] - Determines how dates, times, and durations
340 * in the response should be
341 * rendered. This is ignored if response_value_render_option is
342 * FORMATTED_VALUE.
343 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
344 * Possible string values are:
345 * - "SERIAL_NUMBER" : A SERIAL_NUMBER.
346 * - "FORMATTED_STRING" : A FORMATTED_STRING.
347 *
348 * [includeValuesInResponse] - Determines if the update response should
349 * include the values
350 * of the cells that were appended. By default, responses
351 * do not include the updated values.
352 *
353 * Completes with a [AppendValuesResponse]. 353 * Completes with a [AppendValuesResponse].
354 * 354 *
355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
356 * error. 356 * error.
357 * 357 *
358 * If the used [http.Client] completes with an error when making a REST call, 358 * If the used [http.Client] completes with an error when making a REST call,
359 * this method will complete with the same error. 359 * this method will complete with the same error.
360 */ 360 */
361 async.Future<AppendValuesResponse> append(ValueRange request, core.String spre adsheetId, core.String range, {core.String responseDateTimeRenderOption, core.bo ol includeValuesInResponse, core.String responseValueRenderOption, core.String i nsertDataOption, core.String valueInputOption}) { 361 async.Future<AppendValuesResponse> append(ValueRange request, core.String spre adsheetId, core.String range, {core.String responseValueRenderOption, core.Strin g insertDataOption, core.String valueInputOption, core.String responseDateTimeRe nderOption, core.bool includeValuesInResponse}) {
362 var _url = null; 362 var _url = null;
363 var _queryParams = new core.Map(); 363 var _queryParams = new core.Map();
364 var _uploadMedia = null; 364 var _uploadMedia = null;
365 var _uploadOptions = null; 365 var _uploadOptions = null;
366 var _downloadOptions = commons.DownloadOptions.Metadata; 366 var _downloadOptions = commons.DownloadOptions.Metadata;
367 var _body = null; 367 var _body = null;
368 368
369 if (request != null) { 369 if (request != null) {
370 _body = convert.JSON.encode((request).toJson()); 370 _body = convert.JSON.encode((request).toJson());
371 } 371 }
372 if (spreadsheetId == null) { 372 if (spreadsheetId == null) {
373 throw new core.ArgumentError("Parameter spreadsheetId is required."); 373 throw new core.ArgumentError("Parameter spreadsheetId is required.");
374 } 374 }
375 if (range == null) { 375 if (range == null) {
376 throw new core.ArgumentError("Parameter range is required."); 376 throw new core.ArgumentError("Parameter range is required.");
377 } 377 }
378 if (responseDateTimeRenderOption != null) {
379 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti on];
380 }
381 if (includeValuesInResponse != null) {
382 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"];
383 }
384 if (responseValueRenderOption != null) { 378 if (responseValueRenderOption != null) {
385 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; 379 _queryParams["responseValueRenderOption"] = [responseValueRenderOption];
386 } 380 }
387 if (insertDataOption != null) { 381 if (insertDataOption != null) {
388 _queryParams["insertDataOption"] = [insertDataOption]; 382 _queryParams["insertDataOption"] = [insertDataOption];
389 } 383 }
390 if (valueInputOption != null) { 384 if (valueInputOption != null) {
391 _queryParams["valueInputOption"] = [valueInputOption]; 385 _queryParams["valueInputOption"] = [valueInputOption];
392 } 386 }
387 if (responseDateTimeRenderOption != null) {
388 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti on];
389 }
390 if (includeValuesInResponse != null) {
391 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"];
392 }
393 393
394 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':append'; 394 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':append';
395 395
396 var _response = _requester.request(_url, 396 var _response = _requester.request(_url,
397 "POST", 397 "POST",
398 body: _body, 398 body: _body,
399 queryParams: _queryParams, 399 queryParams: _queryParams,
400 uploadOptions: _uploadOptions, 400 uploadOptions: _uploadOptions,
401 uploadMedia: _uploadMedia, 401 uploadMedia: _uploadMedia,
402 downloadOptions: _downloadOptions); 402 downloadOptions: _downloadOptions);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 /** 634 /**
635 * Returns a range of values from a spreadsheet. 635 * Returns a range of values from a spreadsheet.
636 * The caller must specify the spreadsheet ID and a range. 636 * The caller must specify the spreadsheet ID and a range.
637 * 637 *
638 * Request parameters: 638 * Request parameters:
639 * 639 *
640 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. 640 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from.
641 * 641 *
642 * [range] - The A1 notation of the values to retrieve. 642 * [range] - The A1 notation of the values to retrieve.
643 * 643 *
644 * [majorDimension] - The major dimension that results should use.
645 *
646 * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
647 * then requesting `range=A1:B2,majorDimension=ROWS` will return
648 * `[[1,2],[3,4]]`,
649 * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
650 * `[[1,3],[2,4]]`.
651 * Possible string values are:
652 * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED.
653 * - "ROWS" : A ROWS.
654 * - "COLUMNS" : A COLUMNS.
655 *
656 * [dateTimeRenderOption] - How dates, times, and durations should be 644 * [dateTimeRenderOption] - How dates, times, and durations should be
657 * represented in the output. 645 * represented in the output.
658 * This is ignored if value_render_option is 646 * This is ignored if value_render_option is
659 * FORMATTED_VALUE. 647 * FORMATTED_VALUE.
660 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. 648 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
661 * Possible string values are: 649 * Possible string values are:
662 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. 650 * - "SERIAL_NUMBER" : A SERIAL_NUMBER.
663 * - "FORMATTED_STRING" : A FORMATTED_STRING. 651 * - "FORMATTED_STRING" : A FORMATTED_STRING.
664 * 652 *
665 * [valueRenderOption] - How values should be represented in the output. 653 * [valueRenderOption] - How values should be represented in the output.
666 * The default render option is ValueRenderOption.FORMATTED_VALUE. 654 * The default render option is ValueRenderOption.FORMATTED_VALUE.
667 * Possible string values are: 655 * Possible string values are:
668 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. 656 * - "FORMATTED_VALUE" : A FORMATTED_VALUE.
669 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. 657 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE.
670 * - "FORMULA" : A FORMULA. 658 * - "FORMULA" : A FORMULA.
671 * 659 *
660 * [majorDimension] - The major dimension that results should use.
661 *
662 * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
663 * then requesting `range=A1:B2,majorDimension=ROWS` will return
664 * `[[1,2],[3,4]]`,
665 * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
666 * `[[1,3],[2,4]]`.
667 * Possible string values are:
668 * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED.
669 * - "ROWS" : A ROWS.
670 * - "COLUMNS" : A COLUMNS.
671 *
672 * Completes with a [ValueRange]. 672 * Completes with a [ValueRange].
673 * 673 *
674 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 674 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
675 * error. 675 * error.
676 * 676 *
677 * If the used [http.Client] completes with an error when making a REST call, 677 * If the used [http.Client] completes with an error when making a REST call,
678 * this method will complete with the same error. 678 * this method will complete with the same error.
679 */ 679 */
680 async.Future<ValueRange> get(core.String spreadsheetId, core.String range, {co re.String majorDimension, core.String dateTimeRenderOption, core.String valueRen derOption}) { 680 async.Future<ValueRange> get(core.String spreadsheetId, core.String range, {co re.String dateTimeRenderOption, core.String valueRenderOption, core.String major Dimension}) {
681 var _url = null; 681 var _url = null;
682 var _queryParams = new core.Map(); 682 var _queryParams = new core.Map();
683 var _uploadMedia = null; 683 var _uploadMedia = null;
684 var _uploadOptions = null; 684 var _uploadOptions = null;
685 var _downloadOptions = commons.DownloadOptions.Metadata; 685 var _downloadOptions = commons.DownloadOptions.Metadata;
686 var _body = null; 686 var _body = null;
687 687
688 if (spreadsheetId == null) { 688 if (spreadsheetId == null) {
689 throw new core.ArgumentError("Parameter spreadsheetId is required."); 689 throw new core.ArgumentError("Parameter spreadsheetId is required.");
690 } 690 }
691 if (range == null) { 691 if (range == null) {
692 throw new core.ArgumentError("Parameter range is required."); 692 throw new core.ArgumentError("Parameter range is required.");
693 } 693 }
694 if (majorDimension != null) {
695 _queryParams["majorDimension"] = [majorDimension];
696 }
697 if (dateTimeRenderOption != null) { 694 if (dateTimeRenderOption != null) {
698 _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; 695 _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption];
699 } 696 }
700 if (valueRenderOption != null) { 697 if (valueRenderOption != null) {
701 _queryParams["valueRenderOption"] = [valueRenderOption]; 698 _queryParams["valueRenderOption"] = [valueRenderOption];
702 } 699 }
700 if (majorDimension != null) {
701 _queryParams["majorDimension"] = [majorDimension];
702 }
703 703
704 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); 704 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range');
705 705
706 var _response = _requester.request(_url, 706 var _response = _requester.request(_url,
707 "GET", 707 "GET",
708 body: _body, 708 body: _body,
709 queryParams: _queryParams, 709 queryParams: _queryParams,
710 uploadOptions: _uploadOptions, 710 uploadOptions: _uploadOptions,
711 uploadMedia: _uploadMedia, 711 uploadMedia: _uploadMedia,
712 downloadOptions: _downloadOptions); 712 downloadOptions: _downloadOptions);
713 return _response.then((data) => new ValueRange.fromJson(data)); 713 return _response.then((data) => new ValueRange.fromJson(data));
714 } 714 }
715 715
716 /** 716 /**
717 * Sets values in a range of a spreadsheet. 717 * Sets values in a range of a spreadsheet.
718 * The caller must specify the spreadsheet ID, range, and 718 * The caller must specify the spreadsheet ID, range, and
719 * a valueInputOption. 719 * a valueInputOption.
720 * 720 *
721 * [request] - The metadata request object. 721 * [request] - The metadata request object.
722 * 722 *
723 * Request parameters: 723 * Request parameters:
724 * 724 *
725 * [spreadsheetId] - The ID of the spreadsheet to update. 725 * [spreadsheetId] - The ID of the spreadsheet to update.
726 * 726 *
727 * [range] - The A1 notation of the values to update. 727 * [range] - The A1 notation of the values to update.
728 * 728 *
729 * [includeValuesInResponse] - Determines if the update response should
730 * include the values
731 * of the cells that were updated. By default, responses
732 * do not include the updated values.
733 * If the range to write was larger than than the range actually written,
734 * the response will include all values in the requested range (excluding
735 * trailing empty rows and columns).
736 *
737 * [responseValueRenderOption] - Determines how values in the response should 729 * [responseValueRenderOption] - Determines how values in the response should
738 * be rendered. 730 * be rendered.
739 * The default render option is ValueRenderOption.FORMATTED_VALUE. 731 * The default render option is ValueRenderOption.FORMATTED_VALUE.
740 * Possible string values are: 732 * Possible string values are:
741 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. 733 * - "FORMATTED_VALUE" : A FORMATTED_VALUE.
742 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. 734 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE.
743 * - "FORMULA" : A FORMULA. 735 * - "FORMULA" : A FORMULA.
744 * 736 *
745 * [valueInputOption] - How the input data should be interpreted. 737 * [valueInputOption] - How the input data should be interpreted.
746 * Possible string values are: 738 * Possible string values are:
747 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. 739 * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED.
748 * - "RAW" : A RAW. 740 * - "RAW" : A RAW.
749 * - "USER_ENTERED" : A USER_ENTERED. 741 * - "USER_ENTERED" : A USER_ENTERED.
750 * 742 *
751 * [responseDateTimeRenderOption] - Determines how dates, times, and durations 743 * [responseDateTimeRenderOption] - Determines how dates, times, and durations
752 * in the response should be 744 * in the response should be
753 * rendered. This is ignored if response_value_render_option is 745 * rendered. This is ignored if response_value_render_option is
754 * FORMATTED_VALUE. 746 * FORMATTED_VALUE.
755 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. 747 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
756 * Possible string values are: 748 * Possible string values are:
757 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. 749 * - "SERIAL_NUMBER" : A SERIAL_NUMBER.
758 * - "FORMATTED_STRING" : A FORMATTED_STRING. 750 * - "FORMATTED_STRING" : A FORMATTED_STRING.
759 * 751 *
752 * [includeValuesInResponse] - Determines if the update response should
753 * include the values
754 * of the cells that were updated. By default, responses
755 * do not include the updated values.
756 * If the range to write was larger than than the range actually written,
757 * the response will include all values in the requested range (excluding
758 * trailing empty rows and columns).
759 *
760 * Completes with a [UpdateValuesResponse]. 760 * Completes with a [UpdateValuesResponse].
761 * 761 *
762 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 762 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
763 * error. 763 * error.
764 * 764 *
765 * If the used [http.Client] completes with an error when making a REST call, 765 * If the used [http.Client] completes with an error when making a REST call,
766 * this method will complete with the same error. 766 * this method will complete with the same error.
767 */ 767 */
768 async.Future<UpdateValuesResponse> update(ValueRange request, core.String spre adsheetId, core.String range, {core.bool includeValuesInResponse, core.String re sponseValueRenderOption, core.String valueInputOption, core.String responseDateT imeRenderOption}) { 768 async.Future<UpdateValuesResponse> update(ValueRange request, core.String spre adsheetId, core.String range, {core.String responseValueRenderOption, core.Strin g valueInputOption, core.String responseDateTimeRenderOption, core.bool includeV aluesInResponse}) {
769 var _url = null; 769 var _url = null;
770 var _queryParams = new core.Map(); 770 var _queryParams = new core.Map();
771 var _uploadMedia = null; 771 var _uploadMedia = null;
772 var _uploadOptions = null; 772 var _uploadOptions = null;
773 var _downloadOptions = commons.DownloadOptions.Metadata; 773 var _downloadOptions = commons.DownloadOptions.Metadata;
774 var _body = null; 774 var _body = null;
775 775
776 if (request != null) { 776 if (request != null) {
777 _body = convert.JSON.encode((request).toJson()); 777 _body = convert.JSON.encode((request).toJson());
778 } 778 }
779 if (spreadsheetId == null) { 779 if (spreadsheetId == null) {
780 throw new core.ArgumentError("Parameter spreadsheetId is required."); 780 throw new core.ArgumentError("Parameter spreadsheetId is required.");
781 } 781 }
782 if (range == null) { 782 if (range == null) {
783 throw new core.ArgumentError("Parameter range is required."); 783 throw new core.ArgumentError("Parameter range is required.");
784 } 784 }
785 if (includeValuesInResponse != null) {
786 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"];
787 }
788 if (responseValueRenderOption != null) { 785 if (responseValueRenderOption != null) {
789 _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; 786 _queryParams["responseValueRenderOption"] = [responseValueRenderOption];
790 } 787 }
791 if (valueInputOption != null) { 788 if (valueInputOption != null) {
792 _queryParams["valueInputOption"] = [valueInputOption]; 789 _queryParams["valueInputOption"] = [valueInputOption];
793 } 790 }
794 if (responseDateTimeRenderOption != null) { 791 if (responseDateTimeRenderOption != null) {
795 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti on]; 792 _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOpti on];
796 } 793 }
794 if (includeValuesInResponse != null) {
795 _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"];
796 }
797 797
798 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); 798 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range');
799 799
800 var _response = _requester.request(_url, 800 var _response = _requester.request(_url,
801 "PUT", 801 "PUT",
802 body: _body, 802 body: _body,
803 queryParams: _queryParams, 803 queryParams: _queryParams,
804 uploadOptions: _uploadOptions, 804 uploadOptions: _uploadOptions,
805 uploadMedia: _uploadMedia, 805 uploadMedia: _uploadMedia,
806 downloadOptions: _downloadOptions); 806 downloadOptions: _downloadOptions);
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 /** 1542 /**
1543 * The domain of a chart. 1543 * The domain of a chart.
1544 * For example, if charting stock prices over time, this would be the date. 1544 * For example, if charting stock prices over time, this would be the date.
1545 */ 1545 */
1546 class BasicChartDomain { 1546 class BasicChartDomain {
1547 /** 1547 /**
1548 * The data of the domain. For example, if charting stock prices over time, 1548 * The data of the domain. For example, if charting stock prices over time,
1549 * this is the data representing the dates. 1549 * this is the data representing the dates.
1550 */ 1550 */
1551 ChartData domain; 1551 ChartData domain;
1552 /** 1552 /** True to reverse the order of the domain values (horizontal axis). */
1553 * True to reverse the order of the domain values (horizontal axis).
1554 * Not applicable to Gauge, Geo, Histogram, Org, Pie, Radar, and Treemap
1555 * charts.
1556 */
1557 core.bool reversed; 1553 core.bool reversed;
1558 1554
1559 BasicChartDomain(); 1555 BasicChartDomain();
1560 1556
1561 BasicChartDomain.fromJson(core.Map _json) { 1557 BasicChartDomain.fromJson(core.Map _json) {
1562 if (_json.containsKey("domain")) { 1558 if (_json.containsKey("domain")) {
1563 domain = new ChartData.fromJson(_json["domain"]); 1559 domain = new ChartData.fromJson(_json["domain"]);
1564 } 1560 }
1565 if (_json.containsKey("reversed")) { 1561 if (_json.containsKey("reversed")) {
1566 reversed = _json["reversed"]; 1562 reversed = _json["reversed"];
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 _json["openSeries"] = (openSeries).toJson(); 2779 _json["openSeries"] = (openSeries).toJson();
2784 } 2780 }
2785 return _json; 2781 return _json;
2786 } 2782 }
2787 } 2783 }
2788 2784
2789 /** The domain of a CandlestickChart. */ 2785 /** The domain of a CandlestickChart. */
2790 class CandlestickDomain { 2786 class CandlestickDomain {
2791 /** The data of the CandlestickDomain. */ 2787 /** The data of the CandlestickDomain. */
2792 ChartData data; 2788 ChartData data;
2789 /** True to reverse the order of the domain values (horizontal axis). */
2790 core.bool reversed;
2793 2791
2794 CandlestickDomain(); 2792 CandlestickDomain();
2795 2793
2796 CandlestickDomain.fromJson(core.Map _json) { 2794 CandlestickDomain.fromJson(core.Map _json) {
2797 if (_json.containsKey("data")) { 2795 if (_json.containsKey("data")) {
2798 data = new ChartData.fromJson(_json["data"]); 2796 data = new ChartData.fromJson(_json["data"]);
2799 } 2797 }
2798 if (_json.containsKey("reversed")) {
2799 reversed = _json["reversed"];
2800 }
2800 } 2801 }
2801 2802
2802 core.Map<core.String, core.Object> toJson() { 2803 core.Map<core.String, core.Object> toJson() {
2803 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2804 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2804 if (data != null) { 2805 if (data != null) {
2805 _json["data"] = (data).toJson(); 2806 _json["data"] = (data).toJson();
2806 } 2807 }
2808 if (reversed != null) {
2809 _json["reversed"] = reversed;
2810 }
2807 return _json; 2811 return _json;
2808 } 2812 }
2809 } 2813 }
2810 2814
2811 /** The series of a CandlestickData. */ 2815 /** The series of a CandlestickData. */
2812 class CandlestickSeries { 2816 class CandlestickSeries {
2813 /** The data of the CandlestickSeries. */ 2817 /** The data of the CandlestickSeries. */
2814 ChartData data; 2818 ChartData data;
2815 2819
2816 CandlestickSeries(); 2820 CandlestickSeries();
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
3208 if (sources != null) { 3212 if (sources != null) {
3209 _json["sources"] = sources.map((value) => (value).toJson()).toList(); 3213 _json["sources"] = sources.map((value) => (value).toJson()).toList();
3210 } 3214 }
3211 return _json; 3215 return _json;
3212 } 3216 }
3213 } 3217 }
3214 3218
3215 /** The specifications of a chart. */ 3219 /** The specifications of a chart. */
3216 class ChartSpec { 3220 class ChartSpec {
3217 /** 3221 /**
3222 * The alternative text that describes the chart. This is often used
3223 * for accessibility.
3224 */
3225 core.String altText;
3226 /**
3218 * The background color of the entire chart. 3227 * The background color of the entire chart.
3219 * Not applicable to Org charts. 3228 * Not applicable to Org charts.
3220 */ 3229 */
3221 Color backgroundColor; 3230 Color backgroundColor;
3222 /** 3231 /**
3223 * A basic chart specification, can be one of many kinds of charts. 3232 * A basic chart specification, can be one of many kinds of charts.
3224 * See BasicChartType for the list of all 3233 * See BasicChartType for the list of all
3225 * charts this supports. 3234 * charts this supports.
3226 */ 3235 */
3227 BasicChartSpec basicChart; 3236 BasicChartSpec basicChart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
3263 core.String title; 3272 core.String title;
3264 /** 3273 /**
3265 * The title text format. 3274 * The title text format.
3266 * Strikethrough and underline are not supported. 3275 * Strikethrough and underline are not supported.
3267 */ 3276 */
3268 TextFormat titleTextFormat; 3277 TextFormat titleTextFormat;
3269 3278
3270 ChartSpec(); 3279 ChartSpec();
3271 3280
3272 ChartSpec.fromJson(core.Map _json) { 3281 ChartSpec.fromJson(core.Map _json) {
3282 if (_json.containsKey("altText")) {
3283 altText = _json["altText"];
3284 }
3273 if (_json.containsKey("backgroundColor")) { 3285 if (_json.containsKey("backgroundColor")) {
3274 backgroundColor = new Color.fromJson(_json["backgroundColor"]); 3286 backgroundColor = new Color.fromJson(_json["backgroundColor"]);
3275 } 3287 }
3276 if (_json.containsKey("basicChart")) { 3288 if (_json.containsKey("basicChart")) {
3277 basicChart = new BasicChartSpec.fromJson(_json["basicChart"]); 3289 basicChart = new BasicChartSpec.fromJson(_json["basicChart"]);
3278 } 3290 }
3279 if (_json.containsKey("bubbleChart")) { 3291 if (_json.containsKey("bubbleChart")) {
3280 bubbleChart = new BubbleChartSpec.fromJson(_json["bubbleChart"]); 3292 bubbleChart = new BubbleChartSpec.fromJson(_json["bubbleChart"]);
3281 } 3293 }
3282 if (_json.containsKey("candlestickChart")) { 3294 if (_json.containsKey("candlestickChart")) {
(...skipping 20 matching lines...) Expand all
3303 if (_json.containsKey("title")) { 3315 if (_json.containsKey("title")) {
3304 title = _json["title"]; 3316 title = _json["title"];
3305 } 3317 }
3306 if (_json.containsKey("titleTextFormat")) { 3318 if (_json.containsKey("titleTextFormat")) {
3307 titleTextFormat = new TextFormat.fromJson(_json["titleTextFormat"]); 3319 titleTextFormat = new TextFormat.fromJson(_json["titleTextFormat"]);
3308 } 3320 }
3309 } 3321 }
3310 3322
3311 core.Map<core.String, core.Object> toJson() { 3323 core.Map<core.String, core.Object> toJson() {
3312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3324 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3325 if (altText != null) {
3326 _json["altText"] = altText;
3327 }
3313 if (backgroundColor != null) { 3328 if (backgroundColor != null) {
3314 _json["backgroundColor"] = (backgroundColor).toJson(); 3329 _json["backgroundColor"] = (backgroundColor).toJson();
3315 } 3330 }
3316 if (basicChart != null) { 3331 if (basicChart != null) {
3317 _json["basicChart"] = (basicChart).toJson(); 3332 _json["basicChart"] = (basicChart).toJson();
3318 } 3333 }
3319 if (bubbleChart != null) { 3334 if (bubbleChart != null) {
3320 _json["bubbleChart"] = (bubbleChart).toJson(); 3335 _json["bubbleChart"] = (bubbleChart).toJson();
3321 } 3336 }
3322 if (candlestickChart != null) { 3337 if (candlestickChart != null) {
(...skipping 5219 matching lines...) Expand 10 before | Expand all | Expand 10 after
8542 } 8557 }
8543 if (range != null) { 8558 if (range != null) {
8544 _json["range"] = range; 8559 _json["range"] = range;
8545 } 8560 }
8546 if (values != null) { 8561 if (values != null) {
8547 _json["values"] = values; 8562 _json["values"] = values;
8548 } 8563 }
8549 return _json; 8564 return _json;
8550 } 8565 }
8551 } 8566 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/serviceuser/v1.dart ('k') | generated/googleapis/lib/slides/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698