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

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

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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
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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 "POST", 360 "POST",
361 body: _body, 361 body: _body,
362 queryParams: _queryParams, 362 queryParams: _queryParams,
363 uploadOptions: _uploadOptions, 363 uploadOptions: _uploadOptions,
364 uploadMedia: _uploadMedia, 364 uploadMedia: _uploadMedia,
365 downloadOptions: _downloadOptions); 365 downloadOptions: _downloadOptions);
366 return _response.then((data) => new AppendValuesResponse.fromJson(data)); 366 return _response.then((data) => new AppendValuesResponse.fromJson(data));
367 } 367 }
368 368
369 /** 369 /**
370 * Clears one or more ranges of values from a spreadsheet.
371 * The caller must specify the spreadsheet ID and one or more ranges.
372 * Only values are cleared -- all other properties of the cell (such as
373 * formatting, data validation, etc..) are kept.
374 *
375 * [request] - The metadata request object.
376 *
377 * Request parameters:
378 *
379 * [spreadsheetId] - The ID of the spreadsheet to update.
380 *
381 * Completes with a [BatchClearValuesResponse].
382 *
383 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
384 * error.
385 *
386 * If the used [http.Client] completes with an error when making a REST call,
387 * this method will complete with the same error.
388 */
389 async.Future<BatchClearValuesResponse> batchClear(BatchClearValuesRequest requ est, core.String spreadsheetId) {
390 var _url = null;
391 var _queryParams = new core.Map();
392 var _uploadMedia = null;
393 var _uploadOptions = null;
394 var _downloadOptions = commons.DownloadOptions.Metadata;
395 var _body = null;
396
397 if (request != null) {
398 _body = convert.JSON.encode((request).toJson());
399 }
400 if (spreadsheetId == null) {
401 throw new core.ArgumentError("Parameter spreadsheetId is required.");
402 }
403
404 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values:batchClear';
405
406 var _response = _requester.request(_url,
407 "POST",
408 body: _body,
409 queryParams: _queryParams,
410 uploadOptions: _uploadOptions,
411 uploadMedia: _uploadMedia,
412 downloadOptions: _downloadOptions);
413 return _response.then((data) => new BatchClearValuesResponse.fromJson(data)) ;
414 }
415
416 /**
370 * Returns one or more ranges of values from a spreadsheet. 417 * Returns one or more ranges of values from a spreadsheet.
371 * The caller must specify the spreadsheet ID and one or more ranges. 418 * The caller must specify the spreadsheet ID and one or more ranges.
372 * 419 *
373 * Request parameters: 420 * Request parameters:
374 * 421 *
375 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. 422 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from.
376 * 423 *
377 * [ranges] - The A1 notation of the values to retrieve. 424 * [ranges] - The A1 notation of the values to retrieve.
378 * 425 *
379 * [valueRenderOption] - How values should be represented in the output. 426 * [valueRenderOption] - How values should be represented in the output.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 "POST", 534 "POST",
488 body: _body, 535 body: _body,
489 queryParams: _queryParams, 536 queryParams: _queryParams,
490 uploadOptions: _uploadOptions, 537 uploadOptions: _uploadOptions,
491 uploadMedia: _uploadMedia, 538 uploadMedia: _uploadMedia,
492 downloadOptions: _downloadOptions); 539 downloadOptions: _downloadOptions);
493 return _response.then((data) => new BatchUpdateValuesResponse.fromJson(data) ); 540 return _response.then((data) => new BatchUpdateValuesResponse.fromJson(data) );
494 } 541 }
495 542
496 /** 543 /**
544 * Clears values from a spreadsheet.
545 * The caller must specify the spreadsheet ID and range.
546 * Only values are cleared -- all other properties of the cell (such as
547 * formatting, data validation, etc..) are kept.
548 *
549 * [request] - The metadata request object.
550 *
551 * Request parameters:
552 *
553 * [spreadsheetId] - The ID of the spreadsheet to update.
554 *
555 * [range] - The A1 notation of the values to clear.
556 *
557 * Completes with a [ClearValuesResponse].
558 *
559 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
560 * error.
561 *
562 * If the used [http.Client] completes with an error when making a REST call,
563 * this method will complete with the same error.
564 */
565 async.Future<ClearValuesResponse> clear(ClearValuesRequest request, core.Strin g spreadsheetId, core.String range) {
566 var _url = null;
567 var _queryParams = new core.Map();
568 var _uploadMedia = null;
569 var _uploadOptions = null;
570 var _downloadOptions = commons.DownloadOptions.Metadata;
571 var _body = null;
572
573 if (request != null) {
574 _body = convert.JSON.encode((request).toJson());
575 }
576 if (spreadsheetId == null) {
577 throw new core.ArgumentError("Parameter spreadsheetId is required.");
578 }
579 if (range == null) {
580 throw new core.ArgumentError("Parameter range is required.");
581 }
582
583 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':clear';
584
585 var _response = _requester.request(_url,
586 "POST",
587 body: _body,
588 queryParams: _queryParams,
589 uploadOptions: _uploadOptions,
590 uploadMedia: _uploadMedia,
591 downloadOptions: _downloadOptions);
592 return _response.then((data) => new ClearValuesResponse.fromJson(data));
593 }
594
595 /**
497 * Returns a range of values from a spreadsheet. 596 * Returns a range of values from a spreadsheet.
498 * The caller must specify the spreadsheet ID and a range. 597 * The caller must specify the spreadsheet ID and a range.
499 * 598 *
500 * Request parameters: 599 * Request parameters:
501 * 600 *
502 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. 601 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from.
503 * 602 *
504 * [range] - The A1 notation of the values to retrieve. 603 * [range] - The A1 notation of the values to retrieve.
505 * 604 *
506 * [valueRenderOption] - How values should be represented in the output. 605 * [valueRenderOption] - How values should be represented in the output.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 uploadOptions: _uploadOptions, 729 uploadOptions: _uploadOptions,
631 uploadMedia: _uploadMedia, 730 uploadMedia: _uploadMedia,
632 downloadOptions: _downloadOptions); 731 downloadOptions: _downloadOptions);
633 return _response.then((data) => new UpdateValuesResponse.fromJson(data)); 732 return _response.then((data) => new UpdateValuesResponse.fromJson(data));
634 } 733 }
635 734
636 } 735 }
637 736
638 737
639 738
739 /** Adds a new banded range to the spreadsheet. */
740 class AddBandingRequest {
741 /**
742 * The banded range to add. The bandedRangeId
743 * field is optional; if one is not set, an id will be randomly generated. (It
744 * is an error to specify the ID of a range that already exists.)
745 */
746 BandedRange bandedRange;
747
748 AddBandingRequest();
749
750 AddBandingRequest.fromJson(core.Map _json) {
751 if (_json.containsKey("bandedRange")) {
752 bandedRange = new BandedRange.fromJson(_json["bandedRange"]);
753 }
754 }
755
756 core.Map toJson() {
757 var _json = new core.Map();
758 if (bandedRange != null) {
759 _json["bandedRange"] = (bandedRange).toJson();
760 }
761 return _json;
762 }
763 }
764
765 /** The result of adding a banded range. */
766 class AddBandingResponse {
767 /** The banded range that was added. */
768 BandedRange bandedRange;
769
770 AddBandingResponse();
771
772 AddBandingResponse.fromJson(core.Map _json) {
773 if (_json.containsKey("bandedRange")) {
774 bandedRange = new BandedRange.fromJson(_json["bandedRange"]);
775 }
776 }
777
778 core.Map toJson() {
779 var _json = new core.Map();
780 if (bandedRange != null) {
781 _json["bandedRange"] = (bandedRange).toJson();
782 }
783 return _json;
784 }
785 }
786
640 /** Adds a chart to a sheet in the spreadsheet. */ 787 /** Adds a chart to a sheet in the spreadsheet. */
641 class AddChartRequest { 788 class AddChartRequest {
642 /** 789 /**
643 * The chart that should be added to the spreadsheet, including the position 790 * The chart that should be added to the spreadsheet, including the position
644 * where it should be placed. The chartId 791 * where it should be placed. The chartId
645 * field is optional; if one is not set, an id will be randomly generated. (It 792 * field is optional; if one is not set, an id will be randomly generated. (It
646 * is an error to specify the ID of a chart that already exists.) 793 * is an error to specify the ID of a chart that already exists.)
647 */ 794 */
648 EmbeddedChart chart; 795 EmbeddedChart chart;
649 796
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 1270
1124 core.Map toJson() { 1271 core.Map toJson() {
1125 var _json = new core.Map(); 1272 var _json = new core.Map();
1126 if (dimensions != null) { 1273 if (dimensions != null) {
1127 _json["dimensions"] = (dimensions).toJson(); 1274 _json["dimensions"] = (dimensions).toJson();
1128 } 1275 }
1129 return _json; 1276 return _json;
1130 } 1277 }
1131 } 1278 }
1132 1279
1280 /** A banded (alternating colors) range in a sheet. */
1281 class BandedRange {
1282 /** The id of the banded range. */
1283 core.int bandedRangeId;
1284 /**
1285 * Properties for column bands. These properties will be applied on a column-
1286 * by-column basis throughout all the columns in the range. At least one of
1287 * row_properties or column_properties must be specified.
1288 */
1289 BandingProperties columnProperties;
1290 /** The range over which these properties are applied. */
1291 GridRange range;
1292 /**
1293 * Properties for row bands. These properties will be applied on a row-by-row
1294 * basis throughout all the rows in the range. At least one of
1295 * row_properties or column_properties must be specified.
1296 */
1297 BandingProperties rowProperties;
1298
1299 BandedRange();
1300
1301 BandedRange.fromJson(core.Map _json) {
1302 if (_json.containsKey("bandedRangeId")) {
1303 bandedRangeId = _json["bandedRangeId"];
1304 }
1305 if (_json.containsKey("columnProperties")) {
1306 columnProperties = new BandingProperties.fromJson(_json["columnProperties" ]);
1307 }
1308 if (_json.containsKey("range")) {
1309 range = new GridRange.fromJson(_json["range"]);
1310 }
1311 if (_json.containsKey("rowProperties")) {
1312 rowProperties = new BandingProperties.fromJson(_json["rowProperties"]);
1313 }
1314 }
1315
1316 core.Map toJson() {
1317 var _json = new core.Map();
1318 if (bandedRangeId != null) {
1319 _json["bandedRangeId"] = bandedRangeId;
1320 }
1321 if (columnProperties != null) {
1322 _json["columnProperties"] = (columnProperties).toJson();
1323 }
1324 if (range != null) {
1325 _json["range"] = (range).toJson();
1326 }
1327 if (rowProperties != null) {
1328 _json["rowProperties"] = (rowProperties).toJson();
1329 }
1330 return _json;
1331 }
1332 }
1333
1334 /**
1335 * Properties referring a single dimension (either row or column). If both
1336 * BandedRange.row_properties and BandedRange.column_properties are
1337 * set, the fill colors are applied to cells according to the following rules:
1338 *
1339 * * header_color and footer_color take priority over band colors.
1340 * * first_band_color takes priority over second_band_color.
1341 * * row_properties takes priority over column_properties.
1342 *
1343 * For example, the first row color takes priority over the first column
1344 * color, but the first column color takes priority over the second row color.
1345 * Similarly, the row header takes priority over the column header in the
1346 * top left cell, but the column header takes priority over the first row
1347 * color if the row header is not set.
1348 */
1349 class BandingProperties {
1350 /** The first color that is alternating. (Required) */
1351 Color firstBandColor;
1352 /**
1353 * The color of the last row or column. If this field is not set, the last
1354 * row or column will be filled with either first_row_color or
1355 * second_row_color, depending on the color of the previous row or
1356 * column.
1357 */
1358 Color footerColor;
1359 /**
1360 * The color of the first row or column. If this field is set, the first
1361 * row or column will be filled with this color and the colors will
1362 * alternate between first_band_color and [second_band_color[] starting
1363 * from the second row or column. Otherwise, the first row or column will be
1364 * filled with first_band_color and the colors will proceed to alternate
1365 * as they normally would.
1366 */
1367 Color headerColor;
1368 /** The second color that is alternating. (Required) */
1369 Color secondBandColor;
1370
1371 BandingProperties();
1372
1373 BandingProperties.fromJson(core.Map _json) {
1374 if (_json.containsKey("firstBandColor")) {
1375 firstBandColor = new Color.fromJson(_json["firstBandColor"]);
1376 }
1377 if (_json.containsKey("footerColor")) {
1378 footerColor = new Color.fromJson(_json["footerColor"]);
1379 }
1380 if (_json.containsKey("headerColor")) {
1381 headerColor = new Color.fromJson(_json["headerColor"]);
1382 }
1383 if (_json.containsKey("secondBandColor")) {
1384 secondBandColor = new Color.fromJson(_json["secondBandColor"]);
1385 }
1386 }
1387
1388 core.Map toJson() {
1389 var _json = new core.Map();
1390 if (firstBandColor != null) {
1391 _json["firstBandColor"] = (firstBandColor).toJson();
1392 }
1393 if (footerColor != null) {
1394 _json["footerColor"] = (footerColor).toJson();
1395 }
1396 if (headerColor != null) {
1397 _json["headerColor"] = (headerColor).toJson();
1398 }
1399 if (secondBandColor != null) {
1400 _json["secondBandColor"] = (secondBandColor).toJson();
1401 }
1402 return _json;
1403 }
1404 }
1405
1133 /** 1406 /**
1134 * An axis of the chart. 1407 * An axis of the chart.
1135 * A chart may not have more than one axis per 1408 * A chart may not have more than one axis per
1136 * axis position. 1409 * axis position.
1137 */ 1410 */
1138 class BasicChartAxis { 1411 class BasicChartAxis {
1139 /** 1412 /**
1140 * The format of the title. 1413 * The format of the title.
1141 * Only valid if the axis is not associated with the domain. 1414 * Only valid if the axis is not associated with the domain.
1142 */ 1415 */
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 if (range != null) { 1712 if (range != null) {
1440 _json["range"] = (range).toJson(); 1713 _json["range"] = (range).toJson();
1441 } 1714 }
1442 if (sortSpecs != null) { 1715 if (sortSpecs != null) {
1443 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList(); 1716 _json["sortSpecs"] = sortSpecs.map((value) => (value).toJson()).toList();
1444 } 1717 }
1445 return _json; 1718 return _json;
1446 } 1719 }
1447 } 1720 }
1448 1721
1722 /** The request for clearing more than one range of values in a spreadsheet. */
1723 class BatchClearValuesRequest {
1724 /** The ranges to clear, in A1 notation. */
1725 core.List<core.String> ranges;
1726
1727 BatchClearValuesRequest();
1728
1729 BatchClearValuesRequest.fromJson(core.Map _json) {
1730 if (_json.containsKey("ranges")) {
1731 ranges = _json["ranges"];
1732 }
1733 }
1734
1735 core.Map toJson() {
1736 var _json = new core.Map();
1737 if (ranges != null) {
1738 _json["ranges"] = ranges;
1739 }
1740 return _json;
1741 }
1742 }
1743
1744 /** The response when updating a range of values in a spreadsheet. */
1745 class BatchClearValuesResponse {
1746 /**
1747 * The ranges that were cleared, in A1 notation.
1748 * (If the requests were for an unbounded range or a ranger larger
1749 * than the bounds of the sheet, this will be the actual ranges
1750 * that were cleared, bounded to the sheet's limits.)
1751 */
1752 core.List<core.String> clearedRanges;
1753 /** The spreadsheet the updates were applied to. */
1754 core.String spreadsheetId;
1755
1756 BatchClearValuesResponse();
1757
1758 BatchClearValuesResponse.fromJson(core.Map _json) {
1759 if (_json.containsKey("clearedRanges")) {
1760 clearedRanges = _json["clearedRanges"];
1761 }
1762 if (_json.containsKey("spreadsheetId")) {
1763 spreadsheetId = _json["spreadsheetId"];
1764 }
1765 }
1766
1767 core.Map toJson() {
1768 var _json = new core.Map();
1769 if (clearedRanges != null) {
1770 _json["clearedRanges"] = clearedRanges;
1771 }
1772 if (spreadsheetId != null) {
1773 _json["spreadsheetId"] = spreadsheetId;
1774 }
1775 return _json;
1776 }
1777 }
1778
1449 /** 1779 /**
1450 * The response when retrieving more than one range of values in a spreadsheet. 1780 * The response when retrieving more than one range of values in a spreadsheet.
1451 */ 1781 */
1452 class BatchGetValuesResponse { 1782 class BatchGetValuesResponse {
1453 /** The ID of the spreadsheet the data was retrieved from. */ 1783 /** The ID of the spreadsheet the data was retrieved from. */
1454 core.String spreadsheetId; 1784 core.String spreadsheetId;
1455 /** 1785 /**
1456 * The requested values. The order of the ValueRanges is the same as the 1786 * The requested values. The order of the ValueRanges is the same as the
1457 * order of the requested ranges. 1787 * order of the requested ranges.
1458 */ 1788 */
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 * Requires exactly two ConditionValues. 2024 * Requires exactly two ConditionValues.
1695 * - "TEXT_CONTAINS" : The cell's value must contain the condition's value. 2025 * - "TEXT_CONTAINS" : The cell's value must contain the condition's value.
1696 * Supported by data validation, conditional formatting and filters. 2026 * Supported by data validation, conditional formatting and filters.
1697 * Requires a single ConditionValue. 2027 * Requires a single ConditionValue.
1698 * - "TEXT_NOT_CONTAINS" : The cell's value must not contain the condition's 2028 * - "TEXT_NOT_CONTAINS" : The cell's value must not contain the condition's
1699 * value. 2029 * value.
1700 * Supported by data validation, conditional formatting and filters. 2030 * Supported by data validation, conditional formatting and filters.
1701 * Requires a single ConditionValue. 2031 * Requires a single ConditionValue.
1702 * - "TEXT_STARTS_WITH" : The cell's value must start with the condition's 2032 * - "TEXT_STARTS_WITH" : The cell's value must start with the condition's
1703 * value. 2033 * value.
1704 * Supported by data validation, conditional formatting and filters. 2034 * Supported by conditional formatting and filters.
1705 * Requires a single ConditionValue. 2035 * Requires a single ConditionValue.
1706 * - "TEXT_ENDS_WITH" : The cell's value must end with the condition's value. 2036 * - "TEXT_ENDS_WITH" : The cell's value must end with the condition's value.
1707 * Supported by data validation, conditional formatting and filters. 2037 * Supported by conditional formatting and filters.
1708 * Requires a single ConditionValue. 2038 * Requires a single ConditionValue.
1709 * - "TEXT_EQ" : The cell's value must be exactly the condition's value. 2039 * - "TEXT_EQ" : The cell's value must be exactly the condition's value.
1710 * Supported by data validation, conditional formatting and filters. 2040 * Supported by data validation, conditional formatting and filters.
1711 * Requires a single ConditionValue. 2041 * Requires a single ConditionValue.
1712 * - "TEXT_IS_EMAIL" : The cell's value must be a valid email address. 2042 * - "TEXT_IS_EMAIL" : The cell's value must be a valid email address.
1713 * Supported by data validation. 2043 * Supported by data validation.
1714 * Requires no ConditionValues. 2044 * Requires no ConditionValues.
1715 * - "TEXT_IS_URL" : The cell's value must be a valid URL. 2045 * - "TEXT_IS_URL" : The cell's value must be a valid URL.
1716 * Supported by data validation. 2046 * Supported by data validation.
1717 * Requires no ConditionValues. 2047 * Requires no ConditionValues.
1718 * - "DATE_EQ" : The cell's value must be the same date as the condition's 2048 * - "DATE_EQ" : The cell's value must be the same date as the condition's
1719 * value. 2049 * value.
1720 * Supported by data validation, conditional formatting and filters. 2050 * Supported by data validation, conditional formatting and filters.
1721 * Requires a single ConditionValue. 2051 * Requires a single ConditionValue.
1722 * - "DATE_BEFORE" : The cell's value must be before the date of the 2052 * - "DATE_BEFORE" : The cell's value must be before the date of the
1723 * condition's value. 2053 * condition's value.
1724 * Supported by data validation, conditional formatting and filters. 2054 * Supported by data validation, conditional formatting and filters.
1725 * Requires a single ConditionValue 2055 * Requires a single ConditionValue
1726 * that may be a relative date. 2056 * that may be a relative date.
1727 * - "DATE_AFTER" : The cell's value must be after the date of the condition's 2057 * - "DATE_AFTER" : The cell's value must be after the date of the condition's
1728 * value. 2058 * value.
1729 * Supported by data validation, conditional formatting and filters. 2059 * Supported by data validation, conditional formatting and filters.
1730 * Requires a single ConditionValue 2060 * Requires a single ConditionValue
1731 * that may be a relative date. 2061 * that may be a relative date.
1732 * - "DATE_ON_OR_BEFORE" : The cell's value must be on or before the date of 2062 * - "DATE_ON_OR_BEFORE" : The cell's value must be on or before the date of
1733 * the condition's value. 2063 * the condition's value.
1734 * Supported by data validation, conditional formatting and filters. 2064 * Supported by data validation.
1735 * Requires a single ConditionValue 2065 * Requires a single ConditionValue
1736 * that may be a relative date. 2066 * that may be a relative date.
1737 * - "DATE_ON_OR_AFTER" : The cell's value must be on or after the date of the 2067 * - "DATE_ON_OR_AFTER" : The cell's value must be on or after the date of the
1738 * condition's value. 2068 * condition's value.
1739 * Supported by data validation, conditional formatting and filters. 2069 * Supported by data validation.
1740 * Requires a single ConditionValue 2070 * Requires a single ConditionValue
1741 * that may be a relative date. 2071 * that may be a relative date.
1742 * - "DATE_BETWEEN" : The cell's value must be between the dates of the two 2072 * - "DATE_BETWEEN" : The cell's value must be between the dates of the two
1743 * condition values. 2073 * condition values.
1744 * Supported by data validation. 2074 * Supported by data validation.
1745 * Requires exactly two ConditionValues. 2075 * Requires exactly two ConditionValues.
1746 * - "DATE_NOT_BETWEEN" : The cell's value must be outside the dates of the 2076 * - "DATE_NOT_BETWEEN" : The cell's value must be outside the dates of the
1747 * two condition values. 2077 * two condition values.
1748 * Supported by data validation. 2078 * Supported by data validation.
1749 * Requires exactly two ConditionValues. 2079 * Requires exactly two ConditionValues.
1750 * - "DATE_IS_VALID" : The cell's value must be a date. 2080 * - "DATE_IS_VALID" : The cell's value must be a date.
1751 * Supported by data validation. 2081 * Supported by data validation.
1752 * Requires no ConditionValues. 2082 * Requires no ConditionValues.
1753 * - "ONE_OF_RANGE" : The cell's value must be listed in the grid in condition 2083 * - "ONE_OF_RANGE" : The cell's value must be listed in the grid in condition
1754 * value's range. 2084 * value's range.
1755 * Supported by data validation. 2085 * Supported by data validation.
1756 * Requires a single ConditionValue, 2086 * Requires a single ConditionValue,
1757 * and the value must be a valid range in A1 notation. 2087 * and the value must be a valid range in A1 notation.
1758 * - "ONE_OF_LIST" : The cell's value must in the list of condition values. 2088 * - "ONE_OF_LIST" : The cell's value must in the list of condition values.
1759 * Supported by data validation. 2089 * Supported by data validation.
1760 * Supports any number of condition values, 2090 * Supports any number of condition values,
1761 * one per item in the list. 2091 * one per item in the list.
1762 * Formulas are not supported in the values. 2092 * Formulas are not supported in the values.
1763 * - "BLANK" : The cell's value must be empty. 2093 * - "BLANK" : The cell's value must be empty.
1764 * Supported by data validation, conditional formatting and filters. 2094 * Supported by conditional formatting and filters.
1765 * Requires no ConditionValues. 2095 * Requires no ConditionValues.
1766 * - "NOT_BLANK" : The cell's value must not be empty. 2096 * - "NOT_BLANK" : The cell's value must not be empty.
1767 * Supported by data validation, conditional formatting and filters. 2097 * Supported by conditional formatting and filters.
1768 * Requires no ConditionValues. 2098 * Requires no ConditionValues.
1769 * - "CUSTOM_FORMULA" : The condition's formula must evaluate to true. 2099 * - "CUSTOM_FORMULA" : The condition's formula must evaluate to true.
1770 * Supported by data validation, conditional formatting and filters. 2100 * Supported by data validation, conditional formatting and filters.
1771 * Requires a single ConditionValue. 2101 * Requires a single ConditionValue.
1772 */ 2102 */
1773 core.String type; 2103 core.String type;
1774 /** 2104 /**
1775 * The values of the condition. The number of supported values depends 2105 * The values of the condition. The number of supported values depends
1776 * on the condition type. Some support zero values, 2106 * on the condition type. Some support zero values,
1777 * others one or two values, 2107 * others one or two values,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 /** A border along a cell. */ 2175 /** A border along a cell. */
1846 class Border { 2176 class Border {
1847 /** The color of the border. */ 2177 /** The color of the border. */
1848 Color color; 2178 Color color;
1849 /** 2179 /**
1850 * The style of the border. 2180 * The style of the border.
1851 * Possible string values are: 2181 * Possible string values are:
1852 * - "STYLE_UNSPECIFIED" : The style is not specified. Do not use this. 2182 * - "STYLE_UNSPECIFIED" : The style is not specified. Do not use this.
1853 * - "DOTTED" : The border is dotted. 2183 * - "DOTTED" : The border is dotted.
1854 * - "DASHED" : The border is dashed. 2184 * - "DASHED" : The border is dashed.
1855 * - "SOLID" : The border is a solid line. 2185 * - "SOLID" : The border is a thin solid line.
2186 * - "SOLID_MEDIUM" : The border is a medium solid line.
2187 * - "SOLID_THICK" : The border is a thick solid line.
1856 * - "NONE" : No border. 2188 * - "NONE" : No border.
1857 * Used only when updating a border in order to erase it. 2189 * Used only when updating a border in order to erase it.
1858 * - "DOUBLE" : The border is two solid lines. 2190 * - "DOUBLE" : The border is two solid lines.
1859 */ 2191 */
1860 core.String style; 2192 core.String style;
1861 /** 2193 /**
1862 * The width of the border, in pixels. 2194 * The width of the border, in pixels.
1863 * Border widths must be between 0 and 3 pixels, inclusive. 2195 * Deprecated; the width is determined by the "style" field.
1864 */ 2196 */
1865 core.int width; 2197 core.int width;
1866 2198
1867 Border(); 2199 Border();
1868 2200
1869 Border.fromJson(core.Map _json) { 2201 Border.fromJson(core.Map _json) {
1870 if (_json.containsKey("color")) { 2202 if (_json.containsKey("color")) {
1871 color = new Color.fromJson(_json["color"]); 2203 color = new Color.fromJson(_json["color"]);
1872 } 2204 }
1873 if (_json.containsKey("style")) { 2205 if (_json.containsKey("style")) {
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 2718
2387 core.Map toJson() { 2719 core.Map toJson() {
2388 var _json = new core.Map(); 2720 var _json = new core.Map();
2389 if (sheetId != null) { 2721 if (sheetId != null) {
2390 _json["sheetId"] = sheetId; 2722 _json["sheetId"] = sheetId;
2391 } 2723 }
2392 return _json; 2724 return _json;
2393 } 2725 }
2394 } 2726 }
2395 2727
2728 /** The request for clearing a range of values in a spreadsheet. */
2729 class ClearValuesRequest {
2730
2731 ClearValuesRequest();
2732
2733 ClearValuesRequest.fromJson(core.Map _json) {
2734 }
2735
2736 core.Map toJson() {
2737 var _json = new core.Map();
2738 return _json;
2739 }
2740 }
2741
2742 /** The response when clearing a range of values in a spreadsheet. */
2743 class ClearValuesResponse {
2744 /**
2745 * The range (in A1 notation) that was cleared.
2746 * (If the request was for an unbounded range or a ranger larger
2747 * than the bounds of the sheet, this will be the actual range
2748 * that was cleared, bounded to the sheet's limits.)
2749 */
2750 core.String clearedRange;
2751 /** The spreadsheet the updates were applied to. */
2752 core.String spreadsheetId;
2753
2754 ClearValuesResponse();
2755
2756 ClearValuesResponse.fromJson(core.Map _json) {
2757 if (_json.containsKey("clearedRange")) {
2758 clearedRange = _json["clearedRange"];
2759 }
2760 if (_json.containsKey("spreadsheetId")) {
2761 spreadsheetId = _json["spreadsheetId"];
2762 }
2763 }
2764
2765 core.Map toJson() {
2766 var _json = new core.Map();
2767 if (clearedRange != null) {
2768 _json["clearedRange"] = clearedRange;
2769 }
2770 if (spreadsheetId != null) {
2771 _json["spreadsheetId"] = spreadsheetId;
2772 }
2773 return _json;
2774 }
2775 }
2776
2396 /** 2777 /**
2397 * Represents a color in the RGBA color space. This representation is designed 2778 * Represents a color in the RGBA color space. This representation is designed
2398 * for simplicity of conversion to/from color representations in various 2779 * for simplicity of conversion to/from color representations in various
2399 * languages over compactness; for example, the fields of this representation 2780 * languages over compactness; for example, the fields of this representation
2400 * can be trivially provided to the constructor of "java.awt.Color" in Java; it 2781 * can be trivially provided to the constructor of "java.awt.Color" in Java; it
2401 * can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha" 2782 * can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2402 * method in iOS; and, with just a little work, it can be easily formatted into 2783 * method in iOS; and, with just a little work, it can be easily formatted into
2403 * a CSS "rgba()" string in JavaScript, as well. Here are some examples: 2784 * a CSS "rgba()" string in JavaScript, as well. Here are some examples:
2404 * 2785 *
2405 * Example (Java): 2786 * Example (Java):
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 if (showCustomUi != null) { 3226 if (showCustomUi != null) {
2846 _json["showCustomUi"] = showCustomUi; 3227 _json["showCustomUi"] = showCustomUi;
2847 } 3228 }
2848 if (strict != null) { 3229 if (strict != null) {
2849 _json["strict"] = strict; 3230 _json["strict"] = strict;
2850 } 3231 }
2851 return _json; 3232 return _json;
2852 } 3233 }
2853 } 3234 }
2854 3235
3236 /** Removes the banded range with the given ID from the spreadsheet. */
3237 class DeleteBandingRequest {
3238 /** The ID of the banded range to delete. */
3239 core.int bandedRangeId;
3240
3241 DeleteBandingRequest();
3242
3243 DeleteBandingRequest.fromJson(core.Map _json) {
3244 if (_json.containsKey("bandedRangeId")) {
3245 bandedRangeId = _json["bandedRangeId"];
3246 }
3247 }
3248
3249 core.Map toJson() {
3250 var _json = new core.Map();
3251 if (bandedRangeId != null) {
3252 _json["bandedRangeId"] = bandedRangeId;
3253 }
3254 return _json;
3255 }
3256 }
3257
2855 /** 3258 /**
2856 * Deletes a conditional format rule at the given index. 3259 * Deletes a conditional format rule at the given index.
2857 * All subsequent rules' indexes are decremented. 3260 * All subsequent rules' indexes are decremented.
2858 */ 3261 */
2859 class DeleteConditionalFormatRuleRequest { 3262 class DeleteConditionalFormatRuleRequest {
2860 /** The zero-based index of the rule to be deleted. */ 3263 /** The zero-based index of the rule to be deleted. */
2861 core.int index; 3264 core.int index;
2862 /** The sheet the rule is being deleted from. */ 3265 /** The sheet the rule is being deleted from. */
2863 core.int sheetId; 3266 core.int sheetId;
2864 3267
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
4277 } 4680 }
4278 return _json; 4681 return _json;
4279 } 4682 }
4280 } 4683 }
4281 4684
4282 /** The number format of a cell. */ 4685 /** The number format of a cell. */
4283 class NumberFormat { 4686 class NumberFormat {
4284 /** 4687 /**
4285 * Pattern string used for formatting. If not set, a default pattern based on 4688 * Pattern string used for formatting. If not set, a default pattern based on
4286 * the user's locale will be used if necessary for the given type. 4689 * the user's locale will be used if necessary for the given type.
4690 * See the [Date and Number Formats guide](/sheets/guides/formats) for more
4691 * information about the supported patterns.
4287 */ 4692 */
4288 core.String pattern; 4693 core.String pattern;
4289 /** 4694 /**
4290 * The type of the number format. 4695 * The type of the number format.
4291 * When writing, this field must be set. 4696 * When writing, this field must be set.
4292 * Possible string values are: 4697 * Possible string values are:
4293 * - "NUMBER_FORMAT_TYPE_UNSPECIFIED" : The number format is not specified 4698 * - "NUMBER_FORMAT_TYPE_UNSPECIFIED" : The number format is not specified
4294 * and is based on the contents of the cell. 4699 * and is based on the contents of the cell.
4295 * Do not explicitly use this. 4700 * Do not explicitly use this.
4296 * - "TEXT" : Text formatting, e.g `1000.12` 4701 * - "TEXT" : Text formatting, e.g `1000.12`
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
5061 } 5466 }
5062 if (range != null) { 5467 if (range != null) {
5063 _json["range"] = (range).toJson(); 5468 _json["range"] = (range).toJson();
5064 } 5469 }
5065 return _json; 5470 return _json;
5066 } 5471 }
5067 } 5472 }
5068 5473
5069 /** A single kind of update to apply to a spreadsheet. */ 5474 /** A single kind of update to apply to a spreadsheet. */
5070 class Request { 5475 class Request {
5476 /** Adds a new banded range */
5477 AddBandingRequest addBanding;
5071 /** Adds a chart. */ 5478 /** Adds a chart. */
5072 AddChartRequest addChart; 5479 AddChartRequest addChart;
5073 /** Adds a new conditional format rule. */ 5480 /** Adds a new conditional format rule. */
5074 AddConditionalFormatRuleRequest addConditionalFormatRule; 5481 AddConditionalFormatRuleRequest addConditionalFormatRule;
5075 /** Adds a filter view. */ 5482 /** Adds a filter view. */
5076 AddFilterViewRequest addFilterView; 5483 AddFilterViewRequest addFilterView;
5077 /** Adds a named range. */ 5484 /** Adds a named range. */
5078 AddNamedRangeRequest addNamedRange; 5485 AddNamedRangeRequest addNamedRange;
5079 /** Adds a protected range. */ 5486 /** Adds a protected range. */
5080 AddProtectedRangeRequest addProtectedRange; 5487 AddProtectedRangeRequest addProtectedRange;
5081 /** Adds a sheet. */ 5488 /** Adds a sheet. */
5082 AddSheetRequest addSheet; 5489 AddSheetRequest addSheet;
5083 /** Appends cells after the last row with data in a sheet. */ 5490 /** Appends cells after the last row with data in a sheet. */
5084 AppendCellsRequest appendCells; 5491 AppendCellsRequest appendCells;
5085 /** Appends dimensions to the end of a sheet. */ 5492 /** Appends dimensions to the end of a sheet. */
5086 AppendDimensionRequest appendDimension; 5493 AppendDimensionRequest appendDimension;
5087 /** Automatically fills in more data based on existing data. */ 5494 /** Automatically fills in more data based on existing data. */
5088 AutoFillRequest autoFill; 5495 AutoFillRequest autoFill;
5089 /** 5496 /**
5090 * Automatically resizes one or more dimensions based on the contents 5497 * Automatically resizes one or more dimensions based on the contents
5091 * of the cells in that dimension. 5498 * of the cells in that dimension.
5092 */ 5499 */
5093 AutoResizeDimensionsRequest autoResizeDimensions; 5500 AutoResizeDimensionsRequest autoResizeDimensions;
5094 /** Clears the basic filter on a sheet. */ 5501 /** Clears the basic filter on a sheet. */
5095 ClearBasicFilterRequest clearBasicFilter; 5502 ClearBasicFilterRequest clearBasicFilter;
5096 /** Copies data from one area and pastes it to another. */ 5503 /** Copies data from one area and pastes it to another. */
5097 CopyPasteRequest copyPaste; 5504 CopyPasteRequest copyPaste;
5098 /** Cuts data from one area and pastes it to another. */ 5505 /** Cuts data from one area and pastes it to another. */
5099 CutPasteRequest cutPaste; 5506 CutPasteRequest cutPaste;
5507 /** Removes a banded range */
5508 DeleteBandingRequest deleteBanding;
5100 /** Deletes an existing conditional format rule. */ 5509 /** Deletes an existing conditional format rule. */
5101 DeleteConditionalFormatRuleRequest deleteConditionalFormatRule; 5510 DeleteConditionalFormatRuleRequest deleteConditionalFormatRule;
5102 /** Deletes rows or columns in a sheet. */ 5511 /** Deletes rows or columns in a sheet. */
5103 DeleteDimensionRequest deleteDimension; 5512 DeleteDimensionRequest deleteDimension;
5104 /** Deletes an embedded object (e.g, chart, image) in a sheet. */ 5513 /** Deletes an embedded object (e.g, chart, image) in a sheet. */
5105 DeleteEmbeddedObjectRequest deleteEmbeddedObject; 5514 DeleteEmbeddedObjectRequest deleteEmbeddedObject;
5106 /** Deletes a filter view from a sheet. */ 5515 /** Deletes a filter view from a sheet. */
5107 DeleteFilterViewRequest deleteFilterView; 5516 DeleteFilterViewRequest deleteFilterView;
5108 /** Deletes a named range. */ 5517 /** Deletes a named range. */
5109 DeleteNamedRangeRequest deleteNamedRange; 5518 DeleteNamedRangeRequest deleteNamedRange;
(...skipping 20 matching lines...) Expand all
5130 /** Sets the basic filter on a sheet. */ 5539 /** Sets the basic filter on a sheet. */
5131 SetBasicFilterRequest setBasicFilter; 5540 SetBasicFilterRequest setBasicFilter;
5132 /** Sets data validation for one or more cells. */ 5541 /** Sets data validation for one or more cells. */
5133 SetDataValidationRequest setDataValidation; 5542 SetDataValidationRequest setDataValidation;
5134 /** Sorts data in a range. */ 5543 /** Sorts data in a range. */
5135 SortRangeRequest sortRange; 5544 SortRangeRequest sortRange;
5136 /** Converts a column of text into many columns of text. */ 5545 /** Converts a column of text into many columns of text. */
5137 TextToColumnsRequest textToColumns; 5546 TextToColumnsRequest textToColumns;
5138 /** Unmerges merged cells. */ 5547 /** Unmerges merged cells. */
5139 UnmergeCellsRequest unmergeCells; 5548 UnmergeCellsRequest unmergeCells;
5549 /** Updates a banded range */
5550 UpdateBandingRequest updateBanding;
5140 /** Updates the borders in a range of cells. */ 5551 /** Updates the borders in a range of cells. */
5141 UpdateBordersRequest updateBorders; 5552 UpdateBordersRequest updateBorders;
5142 /** Updates many cells at once. */ 5553 /** Updates many cells at once. */
5143 UpdateCellsRequest updateCells; 5554 UpdateCellsRequest updateCells;
5144 /** Updates a chart's specifications. */ 5555 /** Updates a chart's specifications. */
5145 UpdateChartSpecRequest updateChartSpec; 5556 UpdateChartSpecRequest updateChartSpec;
5146 /** Updates an existing conditional format rule. */ 5557 /** Updates an existing conditional format rule. */
5147 UpdateConditionalFormatRuleRequest updateConditionalFormatRule; 5558 UpdateConditionalFormatRuleRequest updateConditionalFormatRule;
5148 /** Updates dimensions' properties. */ 5559 /** Updates dimensions' properties. */
5149 UpdateDimensionPropertiesRequest updateDimensionProperties; 5560 UpdateDimensionPropertiesRequest updateDimensionProperties;
5150 /** Updates an embedded object's (e.g. chart, image) position. */ 5561 /** Updates an embedded object's (e.g. chart, image) position. */
5151 UpdateEmbeddedObjectPositionRequest updateEmbeddedObjectPosition; 5562 UpdateEmbeddedObjectPositionRequest updateEmbeddedObjectPosition;
5152 /** Updates the properties of a filter view. */ 5563 /** Updates the properties of a filter view. */
5153 UpdateFilterViewRequest updateFilterView; 5564 UpdateFilterViewRequest updateFilterView;
5154 /** Updates a named range. */ 5565 /** Updates a named range. */
5155 UpdateNamedRangeRequest updateNamedRange; 5566 UpdateNamedRangeRequest updateNamedRange;
5156 /** Updates a protected range. */ 5567 /** Updates a protected range. */
5157 UpdateProtectedRangeRequest updateProtectedRange; 5568 UpdateProtectedRangeRequest updateProtectedRange;
5158 /** Updates a sheet's properties. */ 5569 /** Updates a sheet's properties. */
5159 UpdateSheetPropertiesRequest updateSheetProperties; 5570 UpdateSheetPropertiesRequest updateSheetProperties;
5160 /** Updates the spreadsheet's properties. */ 5571 /** Updates the spreadsheet's properties. */
5161 UpdateSpreadsheetPropertiesRequest updateSpreadsheetProperties; 5572 UpdateSpreadsheetPropertiesRequest updateSpreadsheetProperties;
5162 5573
5163 Request(); 5574 Request();
5164 5575
5165 Request.fromJson(core.Map _json) { 5576 Request.fromJson(core.Map _json) {
5577 if (_json.containsKey("addBanding")) {
5578 addBanding = new AddBandingRequest.fromJson(_json["addBanding"]);
5579 }
5166 if (_json.containsKey("addChart")) { 5580 if (_json.containsKey("addChart")) {
5167 addChart = new AddChartRequest.fromJson(_json["addChart"]); 5581 addChart = new AddChartRequest.fromJson(_json["addChart"]);
5168 } 5582 }
5169 if (_json.containsKey("addConditionalFormatRule")) { 5583 if (_json.containsKey("addConditionalFormatRule")) {
5170 addConditionalFormatRule = new AddConditionalFormatRuleRequest.fromJson(_j son["addConditionalFormatRule"]); 5584 addConditionalFormatRule = new AddConditionalFormatRuleRequest.fromJson(_j son["addConditionalFormatRule"]);
5171 } 5585 }
5172 if (_json.containsKey("addFilterView")) { 5586 if (_json.containsKey("addFilterView")) {
5173 addFilterView = new AddFilterViewRequest.fromJson(_json["addFilterView"]); 5587 addFilterView = new AddFilterViewRequest.fromJson(_json["addFilterView"]);
5174 } 5588 }
5175 if (_json.containsKey("addNamedRange")) { 5589 if (_json.containsKey("addNamedRange")) {
(...skipping 19 matching lines...) Expand all
5195 } 5609 }
5196 if (_json.containsKey("clearBasicFilter")) { 5610 if (_json.containsKey("clearBasicFilter")) {
5197 clearBasicFilter = new ClearBasicFilterRequest.fromJson(_json["clearBasicF ilter"]); 5611 clearBasicFilter = new ClearBasicFilterRequest.fromJson(_json["clearBasicF ilter"]);
5198 } 5612 }
5199 if (_json.containsKey("copyPaste")) { 5613 if (_json.containsKey("copyPaste")) {
5200 copyPaste = new CopyPasteRequest.fromJson(_json["copyPaste"]); 5614 copyPaste = new CopyPasteRequest.fromJson(_json["copyPaste"]);
5201 } 5615 }
5202 if (_json.containsKey("cutPaste")) { 5616 if (_json.containsKey("cutPaste")) {
5203 cutPaste = new CutPasteRequest.fromJson(_json["cutPaste"]); 5617 cutPaste = new CutPasteRequest.fromJson(_json["cutPaste"]);
5204 } 5618 }
5619 if (_json.containsKey("deleteBanding")) {
5620 deleteBanding = new DeleteBandingRequest.fromJson(_json["deleteBanding"]);
5621 }
5205 if (_json.containsKey("deleteConditionalFormatRule")) { 5622 if (_json.containsKey("deleteConditionalFormatRule")) {
5206 deleteConditionalFormatRule = new DeleteConditionalFormatRuleRequest.fromJ son(_json["deleteConditionalFormatRule"]); 5623 deleteConditionalFormatRule = new DeleteConditionalFormatRuleRequest.fromJ son(_json["deleteConditionalFormatRule"]);
5207 } 5624 }
5208 if (_json.containsKey("deleteDimension")) { 5625 if (_json.containsKey("deleteDimension")) {
5209 deleteDimension = new DeleteDimensionRequest.fromJson(_json["deleteDimensi on"]); 5626 deleteDimension = new DeleteDimensionRequest.fromJson(_json["deleteDimensi on"]);
5210 } 5627 }
5211 if (_json.containsKey("deleteEmbeddedObject")) { 5628 if (_json.containsKey("deleteEmbeddedObject")) {
5212 deleteEmbeddedObject = new DeleteEmbeddedObjectRequest.fromJson(_json["del eteEmbeddedObject"]); 5629 deleteEmbeddedObject = new DeleteEmbeddedObjectRequest.fromJson(_json["del eteEmbeddedObject"]);
5213 } 5630 }
5214 if (_json.containsKey("deleteFilterView")) { 5631 if (_json.containsKey("deleteFilterView")) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5255 } 5672 }
5256 if (_json.containsKey("sortRange")) { 5673 if (_json.containsKey("sortRange")) {
5257 sortRange = new SortRangeRequest.fromJson(_json["sortRange"]); 5674 sortRange = new SortRangeRequest.fromJson(_json["sortRange"]);
5258 } 5675 }
5259 if (_json.containsKey("textToColumns")) { 5676 if (_json.containsKey("textToColumns")) {
5260 textToColumns = new TextToColumnsRequest.fromJson(_json["textToColumns"]); 5677 textToColumns = new TextToColumnsRequest.fromJson(_json["textToColumns"]);
5261 } 5678 }
5262 if (_json.containsKey("unmergeCells")) { 5679 if (_json.containsKey("unmergeCells")) {
5263 unmergeCells = new UnmergeCellsRequest.fromJson(_json["unmergeCells"]); 5680 unmergeCells = new UnmergeCellsRequest.fromJson(_json["unmergeCells"]);
5264 } 5681 }
5682 if (_json.containsKey("updateBanding")) {
5683 updateBanding = new UpdateBandingRequest.fromJson(_json["updateBanding"]);
5684 }
5265 if (_json.containsKey("updateBorders")) { 5685 if (_json.containsKey("updateBorders")) {
5266 updateBorders = new UpdateBordersRequest.fromJson(_json["updateBorders"]); 5686 updateBorders = new UpdateBordersRequest.fromJson(_json["updateBorders"]);
5267 } 5687 }
5268 if (_json.containsKey("updateCells")) { 5688 if (_json.containsKey("updateCells")) {
5269 updateCells = new UpdateCellsRequest.fromJson(_json["updateCells"]); 5689 updateCells = new UpdateCellsRequest.fromJson(_json["updateCells"]);
5270 } 5690 }
5271 if (_json.containsKey("updateChartSpec")) { 5691 if (_json.containsKey("updateChartSpec")) {
5272 updateChartSpec = new UpdateChartSpecRequest.fromJson(_json["updateChartSp ec"]); 5692 updateChartSpec = new UpdateChartSpecRequest.fromJson(_json["updateChartSp ec"]);
5273 } 5693 }
5274 if (_json.containsKey("updateConditionalFormatRule")) { 5694 if (_json.containsKey("updateConditionalFormatRule")) {
(...skipping 17 matching lines...) Expand all
5292 if (_json.containsKey("updateSheetProperties")) { 5712 if (_json.containsKey("updateSheetProperties")) {
5293 updateSheetProperties = new UpdateSheetPropertiesRequest.fromJson(_json["u pdateSheetProperties"]); 5713 updateSheetProperties = new UpdateSheetPropertiesRequest.fromJson(_json["u pdateSheetProperties"]);
5294 } 5714 }
5295 if (_json.containsKey("updateSpreadsheetProperties")) { 5715 if (_json.containsKey("updateSpreadsheetProperties")) {
5296 updateSpreadsheetProperties = new UpdateSpreadsheetPropertiesRequest.fromJ son(_json["updateSpreadsheetProperties"]); 5716 updateSpreadsheetProperties = new UpdateSpreadsheetPropertiesRequest.fromJ son(_json["updateSpreadsheetProperties"]);
5297 } 5717 }
5298 } 5718 }
5299 5719
5300 core.Map toJson() { 5720 core.Map toJson() {
5301 var _json = new core.Map(); 5721 var _json = new core.Map();
5722 if (addBanding != null) {
5723 _json["addBanding"] = (addBanding).toJson();
5724 }
5302 if (addChart != null) { 5725 if (addChart != null) {
5303 _json["addChart"] = (addChart).toJson(); 5726 _json["addChart"] = (addChart).toJson();
5304 } 5727 }
5305 if (addConditionalFormatRule != null) { 5728 if (addConditionalFormatRule != null) {
5306 _json["addConditionalFormatRule"] = (addConditionalFormatRule).toJson(); 5729 _json["addConditionalFormatRule"] = (addConditionalFormatRule).toJson();
5307 } 5730 }
5308 if (addFilterView != null) { 5731 if (addFilterView != null) {
5309 _json["addFilterView"] = (addFilterView).toJson(); 5732 _json["addFilterView"] = (addFilterView).toJson();
5310 } 5733 }
5311 if (addNamedRange != null) { 5734 if (addNamedRange != null) {
(...skipping 19 matching lines...) Expand all
5331 } 5754 }
5332 if (clearBasicFilter != null) { 5755 if (clearBasicFilter != null) {
5333 _json["clearBasicFilter"] = (clearBasicFilter).toJson(); 5756 _json["clearBasicFilter"] = (clearBasicFilter).toJson();
5334 } 5757 }
5335 if (copyPaste != null) { 5758 if (copyPaste != null) {
5336 _json["copyPaste"] = (copyPaste).toJson(); 5759 _json["copyPaste"] = (copyPaste).toJson();
5337 } 5760 }
5338 if (cutPaste != null) { 5761 if (cutPaste != null) {
5339 _json["cutPaste"] = (cutPaste).toJson(); 5762 _json["cutPaste"] = (cutPaste).toJson();
5340 } 5763 }
5764 if (deleteBanding != null) {
5765 _json["deleteBanding"] = (deleteBanding).toJson();
5766 }
5341 if (deleteConditionalFormatRule != null) { 5767 if (deleteConditionalFormatRule != null) {
5342 _json["deleteConditionalFormatRule"] = (deleteConditionalFormatRule).toJso n(); 5768 _json["deleteConditionalFormatRule"] = (deleteConditionalFormatRule).toJso n();
5343 } 5769 }
5344 if (deleteDimension != null) { 5770 if (deleteDimension != null) {
5345 _json["deleteDimension"] = (deleteDimension).toJson(); 5771 _json["deleteDimension"] = (deleteDimension).toJson();
5346 } 5772 }
5347 if (deleteEmbeddedObject != null) { 5773 if (deleteEmbeddedObject != null) {
5348 _json["deleteEmbeddedObject"] = (deleteEmbeddedObject).toJson(); 5774 _json["deleteEmbeddedObject"] = (deleteEmbeddedObject).toJson();
5349 } 5775 }
5350 if (deleteFilterView != null) { 5776 if (deleteFilterView != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5391 } 5817 }
5392 if (sortRange != null) { 5818 if (sortRange != null) {
5393 _json["sortRange"] = (sortRange).toJson(); 5819 _json["sortRange"] = (sortRange).toJson();
5394 } 5820 }
5395 if (textToColumns != null) { 5821 if (textToColumns != null) {
5396 _json["textToColumns"] = (textToColumns).toJson(); 5822 _json["textToColumns"] = (textToColumns).toJson();
5397 } 5823 }
5398 if (unmergeCells != null) { 5824 if (unmergeCells != null) {
5399 _json["unmergeCells"] = (unmergeCells).toJson(); 5825 _json["unmergeCells"] = (unmergeCells).toJson();
5400 } 5826 }
5827 if (updateBanding != null) {
5828 _json["updateBanding"] = (updateBanding).toJson();
5829 }
5401 if (updateBorders != null) { 5830 if (updateBorders != null) {
5402 _json["updateBorders"] = (updateBorders).toJson(); 5831 _json["updateBorders"] = (updateBorders).toJson();
5403 } 5832 }
5404 if (updateCells != null) { 5833 if (updateCells != null) {
5405 _json["updateCells"] = (updateCells).toJson(); 5834 _json["updateCells"] = (updateCells).toJson();
5406 } 5835 }
5407 if (updateChartSpec != null) { 5836 if (updateChartSpec != null) {
5408 _json["updateChartSpec"] = (updateChartSpec).toJson(); 5837 _json["updateChartSpec"] = (updateChartSpec).toJson();
5409 } 5838 }
5410 if (updateConditionalFormatRule != null) { 5839 if (updateConditionalFormatRule != null) {
(...skipping 19 matching lines...) Expand all
5430 } 5859 }
5431 if (updateSpreadsheetProperties != null) { 5860 if (updateSpreadsheetProperties != null) {
5432 _json["updateSpreadsheetProperties"] = (updateSpreadsheetProperties).toJso n(); 5861 _json["updateSpreadsheetProperties"] = (updateSpreadsheetProperties).toJso n();
5433 } 5862 }
5434 return _json; 5863 return _json;
5435 } 5864 }
5436 } 5865 }
5437 5866
5438 /** A single response from an update. */ 5867 /** A single response from an update. */
5439 class Response { 5868 class Response {
5869 /** A reply from adding a banded range. */
5870 AddBandingResponse addBanding;
5440 /** A reply from adding a chart. */ 5871 /** A reply from adding a chart. */
5441 AddChartResponse addChart; 5872 AddChartResponse addChart;
5442 /** A reply from adding a filter view. */ 5873 /** A reply from adding a filter view. */
5443 AddFilterViewResponse addFilterView; 5874 AddFilterViewResponse addFilterView;
5444 /** A reply from adding a named range. */ 5875 /** A reply from adding a named range. */
5445 AddNamedRangeResponse addNamedRange; 5876 AddNamedRangeResponse addNamedRange;
5446 /** A reply from adding a protected range. */ 5877 /** A reply from adding a protected range. */
5447 AddProtectedRangeResponse addProtectedRange; 5878 AddProtectedRangeResponse addProtectedRange;
5448 /** A reply from adding a sheet. */ 5879 /** A reply from adding a sheet. */
5449 AddSheetResponse addSheet; 5880 AddSheetResponse addSheet;
5450 /** A reply from deleting a conditional format rule. */ 5881 /** A reply from deleting a conditional format rule. */
5451 DeleteConditionalFormatRuleResponse deleteConditionalFormatRule; 5882 DeleteConditionalFormatRuleResponse deleteConditionalFormatRule;
5452 /** A reply from duplicating a filter view. */ 5883 /** A reply from duplicating a filter view. */
5453 DuplicateFilterViewResponse duplicateFilterView; 5884 DuplicateFilterViewResponse duplicateFilterView;
5454 /** A reply from duplicating a sheet. */ 5885 /** A reply from duplicating a sheet. */
5455 DuplicateSheetResponse duplicateSheet; 5886 DuplicateSheetResponse duplicateSheet;
5456 /** A reply from doing a find/replace. */ 5887 /** A reply from doing a find/replace. */
5457 FindReplaceResponse findReplace; 5888 FindReplaceResponse findReplace;
5458 /** A reply from updating a conditional format rule. */ 5889 /** A reply from updating a conditional format rule. */
5459 UpdateConditionalFormatRuleResponse updateConditionalFormatRule; 5890 UpdateConditionalFormatRuleResponse updateConditionalFormatRule;
5460 /** A reply from updating an embedded object's position. */ 5891 /** A reply from updating an embedded object's position. */
5461 UpdateEmbeddedObjectPositionResponse updateEmbeddedObjectPosition; 5892 UpdateEmbeddedObjectPositionResponse updateEmbeddedObjectPosition;
5462 5893
5463 Response(); 5894 Response();
5464 5895
5465 Response.fromJson(core.Map _json) { 5896 Response.fromJson(core.Map _json) {
5897 if (_json.containsKey("addBanding")) {
5898 addBanding = new AddBandingResponse.fromJson(_json["addBanding"]);
5899 }
5466 if (_json.containsKey("addChart")) { 5900 if (_json.containsKey("addChart")) {
5467 addChart = new AddChartResponse.fromJson(_json["addChart"]); 5901 addChart = new AddChartResponse.fromJson(_json["addChart"]);
5468 } 5902 }
5469 if (_json.containsKey("addFilterView")) { 5903 if (_json.containsKey("addFilterView")) {
5470 addFilterView = new AddFilterViewResponse.fromJson(_json["addFilterView"]) ; 5904 addFilterView = new AddFilterViewResponse.fromJson(_json["addFilterView"]) ;
5471 } 5905 }
5472 if (_json.containsKey("addNamedRange")) { 5906 if (_json.containsKey("addNamedRange")) {
5473 addNamedRange = new AddNamedRangeResponse.fromJson(_json["addNamedRange"]) ; 5907 addNamedRange = new AddNamedRangeResponse.fromJson(_json["addNamedRange"]) ;
5474 } 5908 }
5475 if (_json.containsKey("addProtectedRange")) { 5909 if (_json.containsKey("addProtectedRange")) {
(...skipping 17 matching lines...) Expand all
5493 if (_json.containsKey("updateConditionalFormatRule")) { 5927 if (_json.containsKey("updateConditionalFormatRule")) {
5494 updateConditionalFormatRule = new UpdateConditionalFormatRuleResponse.from Json(_json["updateConditionalFormatRule"]); 5928 updateConditionalFormatRule = new UpdateConditionalFormatRuleResponse.from Json(_json["updateConditionalFormatRule"]);
5495 } 5929 }
5496 if (_json.containsKey("updateEmbeddedObjectPosition")) { 5930 if (_json.containsKey("updateEmbeddedObjectPosition")) {
5497 updateEmbeddedObjectPosition = new UpdateEmbeddedObjectPositionResponse.fr omJson(_json["updateEmbeddedObjectPosition"]); 5931 updateEmbeddedObjectPosition = new UpdateEmbeddedObjectPositionResponse.fr omJson(_json["updateEmbeddedObjectPosition"]);
5498 } 5932 }
5499 } 5933 }
5500 5934
5501 core.Map toJson() { 5935 core.Map toJson() {
5502 var _json = new core.Map(); 5936 var _json = new core.Map();
5937 if (addBanding != null) {
5938 _json["addBanding"] = (addBanding).toJson();
5939 }
5503 if (addChart != null) { 5940 if (addChart != null) {
5504 _json["addChart"] = (addChart).toJson(); 5941 _json["addChart"] = (addChart).toJson();
5505 } 5942 }
5506 if (addFilterView != null) { 5943 if (addFilterView != null) {
5507 _json["addFilterView"] = (addFilterView).toJson(); 5944 _json["addFilterView"] = (addFilterView).toJson();
5508 } 5945 }
5509 if (addNamedRange != null) { 5946 if (addNamedRange != null) {
5510 _json["addNamedRange"] = (addNamedRange).toJson(); 5947 _json["addNamedRange"] = (addNamedRange).toJson();
5511 } 5948 }
5512 if (addProtectedRange != null) { 5949 if (addProtectedRange != null) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
5612 } 6049 }
5613 if (rule != null) { 6050 if (rule != null) {
5614 _json["rule"] = (rule).toJson(); 6051 _json["rule"] = (rule).toJson();
5615 } 6052 }
5616 return _json; 6053 return _json;
5617 } 6054 }
5618 } 6055 }
5619 6056
5620 /** A sheet in a spreadsheet. */ 6057 /** A sheet in a spreadsheet. */
5621 class Sheet { 6058 class Sheet {
6059 /** The banded (i.e. alternating colors) ranges on this sheet. */
6060 core.List<BandedRange> bandedRanges;
5622 /** The filter on this sheet, if any. */ 6061 /** The filter on this sheet, if any. */
5623 BasicFilter basicFilter; 6062 BasicFilter basicFilter;
5624 /** The specifications of every chart on this sheet. */ 6063 /** The specifications of every chart on this sheet. */
5625 core.List<EmbeddedChart> charts; 6064 core.List<EmbeddedChart> charts;
5626 /** The conditional format rules in this sheet. */ 6065 /** The conditional format rules in this sheet. */
5627 core.List<ConditionalFormatRule> conditionalFormats; 6066 core.List<ConditionalFormatRule> conditionalFormats;
5628 /** 6067 /**
5629 * Data in the grid, if this is a grid sheet. 6068 * Data in the grid, if this is a grid sheet.
5630 * The number of GridData objects returned is dependent on the number of 6069 * The number of GridData objects returned is dependent on the number of
5631 * ranges requested on this sheet. For example, if this is representing 6070 * ranges requested on this sheet. For example, if this is representing
5632 * `Sheet1`, and the spreadsheet was requested with ranges 6071 * `Sheet1`, and the spreadsheet was requested with ranges
5633 * `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a 6072 * `Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a
5634 * startRow/startColumn of `0`, 6073 * startRow/startColumn of `0`,
5635 * while the second one will have `startRow 14` (zero-based row 15), 6074 * while the second one will have `startRow 14` (zero-based row 15),
5636 * and `startColumn 3` (zero-based column D). 6075 * and `startColumn 3` (zero-based column D).
5637 */ 6076 */
5638 core.List<GridData> data; 6077 core.List<GridData> data;
5639 /** The filter views in this sheet. */ 6078 /** The filter views in this sheet. */
5640 core.List<FilterView> filterViews; 6079 core.List<FilterView> filterViews;
5641 /** The ranges that are merged together. */ 6080 /** The ranges that are merged together. */
5642 core.List<GridRange> merges; 6081 core.List<GridRange> merges;
5643 /** The properties of the sheet. */ 6082 /** The properties of the sheet. */
5644 SheetProperties properties; 6083 SheetProperties properties;
5645 /** The protected ranges in this sheet. */ 6084 /** The protected ranges in this sheet. */
5646 core.List<ProtectedRange> protectedRanges; 6085 core.List<ProtectedRange> protectedRanges;
5647 6086
5648 Sheet(); 6087 Sheet();
5649 6088
5650 Sheet.fromJson(core.Map _json) { 6089 Sheet.fromJson(core.Map _json) {
6090 if (_json.containsKey("bandedRanges")) {
6091 bandedRanges = _json["bandedRanges"].map((value) => new BandedRange.fromJs on(value)).toList();
6092 }
5651 if (_json.containsKey("basicFilter")) { 6093 if (_json.containsKey("basicFilter")) {
5652 basicFilter = new BasicFilter.fromJson(_json["basicFilter"]); 6094 basicFilter = new BasicFilter.fromJson(_json["basicFilter"]);
5653 } 6095 }
5654 if (_json.containsKey("charts")) { 6096 if (_json.containsKey("charts")) {
5655 charts = _json["charts"].map((value) => new EmbeddedChart.fromJson(value)) .toList(); 6097 charts = _json["charts"].map((value) => new EmbeddedChart.fromJson(value)) .toList();
5656 } 6098 }
5657 if (_json.containsKey("conditionalFormats")) { 6099 if (_json.containsKey("conditionalFormats")) {
5658 conditionalFormats = _json["conditionalFormats"].map((value) => new Condit ionalFormatRule.fromJson(value)).toList(); 6100 conditionalFormats = _json["conditionalFormats"].map((value) => new Condit ionalFormatRule.fromJson(value)).toList();
5659 } 6101 }
5660 if (_json.containsKey("data")) { 6102 if (_json.containsKey("data")) {
5661 data = _json["data"].map((value) => new GridData.fromJson(value)).toList() ; 6103 data = _json["data"].map((value) => new GridData.fromJson(value)).toList() ;
5662 } 6104 }
5663 if (_json.containsKey("filterViews")) { 6105 if (_json.containsKey("filterViews")) {
5664 filterViews = _json["filterViews"].map((value) => new FilterView.fromJson( value)).toList(); 6106 filterViews = _json["filterViews"].map((value) => new FilterView.fromJson( value)).toList();
5665 } 6107 }
5666 if (_json.containsKey("merges")) { 6108 if (_json.containsKey("merges")) {
5667 merges = _json["merges"].map((value) => new GridRange.fromJson(value)).toL ist(); 6109 merges = _json["merges"].map((value) => new GridRange.fromJson(value)).toL ist();
5668 } 6110 }
5669 if (_json.containsKey("properties")) { 6111 if (_json.containsKey("properties")) {
5670 properties = new SheetProperties.fromJson(_json["properties"]); 6112 properties = new SheetProperties.fromJson(_json["properties"]);
5671 } 6113 }
5672 if (_json.containsKey("protectedRanges")) { 6114 if (_json.containsKey("protectedRanges")) {
5673 protectedRanges = _json["protectedRanges"].map((value) => new ProtectedRan ge.fromJson(value)).toList(); 6115 protectedRanges = _json["protectedRanges"].map((value) => new ProtectedRan ge.fromJson(value)).toList();
5674 } 6116 }
5675 } 6117 }
5676 6118
5677 core.Map toJson() { 6119 core.Map toJson() {
5678 var _json = new core.Map(); 6120 var _json = new core.Map();
6121 if (bandedRanges != null) {
6122 _json["bandedRanges"] = bandedRanges.map((value) => (value).toJson()).toLi st();
6123 }
5679 if (basicFilter != null) { 6124 if (basicFilter != null) {
5680 _json["basicFilter"] = (basicFilter).toJson(); 6125 _json["basicFilter"] = (basicFilter).toJson();
5681 } 6126 }
5682 if (charts != null) { 6127 if (charts != null) {
5683 _json["charts"] = charts.map((value) => (value).toJson()).toList(); 6128 _json["charts"] = charts.map((value) => (value).toJson()).toList();
5684 } 6129 }
5685 if (conditionalFormats != null) { 6130 if (conditionalFormats != null) {
5686 _json["conditionalFormats"] = conditionalFormats.map((value) => (value).to Json()).toList(); 6131 _json["conditionalFormats"] = conditionalFormats.map((value) => (value).to Json()).toList();
5687 } 6132 }
5688 if (data != null) { 6133 if (data != null) {
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
6232 6677
6233 core.Map toJson() { 6678 core.Map toJson() {
6234 var _json = new core.Map(); 6679 var _json = new core.Map();
6235 if (range != null) { 6680 if (range != null) {
6236 _json["range"] = (range).toJson(); 6681 _json["range"] = (range).toJson();
6237 } 6682 }
6238 return _json; 6683 return _json;
6239 } 6684 }
6240 } 6685 }
6241 6686
6687 /** Updates properties of the supplied banded range. */
6688 class UpdateBandingRequest {
6689 /** The banded range to update with the new properties. */
6690 BandedRange bandedRange;
6691 /**
6692 * The fields that should be updated. At least one field must be specified.
6693 * The root `bandedRange` is implied and should not be specified.
6694 * A single `"*"` can be used as short-hand for listing every field.
6695 */
6696 core.String fields;
6697
6698 UpdateBandingRequest();
6699
6700 UpdateBandingRequest.fromJson(core.Map _json) {
6701 if (_json.containsKey("bandedRange")) {
6702 bandedRange = new BandedRange.fromJson(_json["bandedRange"]);
6703 }
6704 if (_json.containsKey("fields")) {
6705 fields = _json["fields"];
6706 }
6707 }
6708
6709 core.Map toJson() {
6710 var _json = new core.Map();
6711 if (bandedRange != null) {
6712 _json["bandedRange"] = (bandedRange).toJson();
6713 }
6714 if (fields != null) {
6715 _json["fields"] = fields;
6716 }
6717 return _json;
6718 }
6719 }
6720
6242 /** 6721 /**
6243 * Updates the borders of a range. 6722 * Updates the borders of a range.
6244 * If a field is not set in the request, that means the border remains as-is. 6723 * If a field is not set in the request, that means the border remains as-is.
6245 * For example, with two subsequent UpdateBordersRequest: 6724 * For example, with two subsequent UpdateBordersRequest:
6246 * 6725 *
6247 * 1. range: A1:A5 `{ top: RED, bottom: WHITE }` 6726 * 1. range: A1:A5 `{ top: RED, bottom: WHITE }`
6248 * 2. range: A1:A5 `{ left: BLUE }` 6727 * 2. range: A1:A5 `{ left: BLUE }`
6249 * 6728 *
6250 * That would result in A1:A5 having a borders of 6729 * That would result in A1:A5 having a borders of
6251 * `{ top: RED, bottom: WHITE, left: BLUE }`. 6730 * `{ top: RED, bottom: WHITE, left: BLUE }`.
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
6944 } 7423 }
6945 if (range != null) { 7424 if (range != null) {
6946 _json["range"] = range; 7425 _json["range"] = range;
6947 } 7426 }
6948 if (values != null) { 7427 if (values != null) {
6949 _json["values"] = values; 7428 _json["values"] = values;
6950 } 7429 }
6951 return _json; 7430 return _json;
6952 } 7431 }
6953 } 7432 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/servicemanagement/v1.dart ('k') | generated/googleapis/lib/storage/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698