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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 9 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 final commons.ApiRequester _requester; 284 final commons.ApiRequester _requester;
285 285
286 SpreadsheetsValuesResourceApi(commons.ApiRequester client) : 286 SpreadsheetsValuesResourceApi(commons.ApiRequester client) :
287 _requester = client; 287 _requester = client;
288 288
289 /** 289 /**
290 * Appends values to a spreadsheet. The input range is used to search for 290 * Appends values to a spreadsheet. The input range is used to search for
291 * existing data and find a "table" within that range. Values will be 291 * existing data and find a "table" within that range. Values will be
292 * appended to the next row of the table, starting with the first column of 292 * appended to the next row of the table, starting with the first column of
293 * the table. See the 293 * the table. See the
294 * [guide](/sheets/guides/values#appending_values) 294 * [guide](/sheets/api/guides/values#appending_values)
295 * and 295 * and
296 * [sample code](/sheets/samples/writing#append_values) 296 * [sample code](/sheets/api/samples/writing#append_values)
297 * for specific details of how tables are detected and data is appended. 297 * for specific details of how tables are detected and data is appended.
298 * 298 *
299 * The caller must specify the spreadsheet ID, range, and 299 * The caller must specify the spreadsheet ID, range, and
300 * a valueInputOption. The `valueInputOption` only 300 * a valueInputOption. The `valueInputOption` only
301 * controls how the input data will be added to the sheet (column-wise or 301 * controls how the input data will be added to the sheet (column-wise or
302 * row-wise), it does not influence what cell the data starts being written 302 * row-wise), it does not influence what cell the data starts being written
303 * to. 303 * to.
304 * 304 *
305 * [request] - The metadata request object. 305 * [request] - The metadata request object.
306 * 306 *
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 445 }
446 446
447 /** 447 /**
448 * Returns one or more ranges of values from a spreadsheet. 448 * Returns one or more ranges of values from a spreadsheet.
449 * The caller must specify the spreadsheet ID and one or more ranges. 449 * The caller must specify the spreadsheet ID and one or more ranges.
450 * 450 *
451 * Request parameters: 451 * Request parameters:
452 * 452 *
453 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. 453 * [spreadsheetId] - The ID of the spreadsheet to retrieve data from.
454 * 454 *
455 * [ranges] - The A1 notation of the values to retrieve.
456 *
457 * [majorDimension] - The major dimension that results should use.
458 *
459 * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
460 * then requesting `range=A1:B2,majorDimension=ROWS` will return
461 * `[[1,2],[3,4]]`,
462 * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
463 * `[[1,3],[2,4]]`.
464 * Possible string values are:
465 * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED.
466 * - "ROWS" : A ROWS.
467 * - "COLUMNS" : A COLUMNS.
468 *
469 * [valueRenderOption] - How values should be represented in the output. 455 * [valueRenderOption] - How values should be represented in the output.
470 * The default render option is ValueRenderOption.FORMATTED_VALUE. 456 * The default render option is ValueRenderOption.FORMATTED_VALUE.
471 * Possible string values are: 457 * Possible string values are:
472 * - "FORMATTED_VALUE" : A FORMATTED_VALUE. 458 * - "FORMATTED_VALUE" : A FORMATTED_VALUE.
473 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. 459 * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE.
474 * - "FORMULA" : A FORMULA. 460 * - "FORMULA" : A FORMULA.
475 * 461 *
476 * [dateTimeRenderOption] - How dates, times, and durations should be 462 * [dateTimeRenderOption] - How dates, times, and durations should be
477 * represented in the output. 463 * represented in the output.
478 * This is ignored if value_render_option is 464 * This is ignored if value_render_option is
479 * FORMATTED_VALUE. 465 * FORMATTED_VALUE.
480 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. 466 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
481 * Possible string values are: 467 * Possible string values are:
482 * - "SERIAL_NUMBER" : A SERIAL_NUMBER. 468 * - "SERIAL_NUMBER" : A SERIAL_NUMBER.
483 * - "FORMATTED_STRING" : A FORMATTED_STRING. 469 * - "FORMATTED_STRING" : A FORMATTED_STRING.
484 * 470 *
471 * [ranges] - The A1 notation of the values to retrieve.
472 *
473 * [majorDimension] - The major dimension that results should use.
474 *
475 * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
476 * then requesting `range=A1:B2,majorDimension=ROWS` will return
477 * `[[1,2],[3,4]]`,
478 * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
479 * `[[1,3],[2,4]]`.
480 * Possible string values are:
481 * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED.
482 * - "ROWS" : A ROWS.
483 * - "COLUMNS" : A COLUMNS.
484 *
485 * Completes with a [BatchGetValuesResponse]. 485 * Completes with a [BatchGetValuesResponse].
486 * 486 *
487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 487 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
488 * error. 488 * error.
489 * 489 *
490 * If the used [http.Client] completes with an error when making a REST call, 490 * If the used [http.Client] completes with an error when making a REST call,
491 * this method will complete with the same error. 491 * this method will complete with the same error.
492 */ 492 */
493 async.Future<BatchGetValuesResponse> batchGet(core.String spreadsheetId, {core .List<core.String> ranges, core.String majorDimension, core.String valueRenderOp tion, core.String dateTimeRenderOption}) { 493 async.Future<BatchGetValuesResponse> batchGet(core.String spreadsheetId, {core .String valueRenderOption, core.String dateTimeRenderOption, core.List<core.Stri ng> ranges, core.String majorDimension}) {
494 var _url = null; 494 var _url = null;
495 var _queryParams = new core.Map(); 495 var _queryParams = new core.Map();
496 var _uploadMedia = null; 496 var _uploadMedia = null;
497 var _uploadOptions = null; 497 var _uploadOptions = null;
498 var _downloadOptions = commons.DownloadOptions.Metadata; 498 var _downloadOptions = commons.DownloadOptions.Metadata;
499 var _body = null; 499 var _body = null;
500 500
501 if (spreadsheetId == null) { 501 if (spreadsheetId == null) {
502 throw new core.ArgumentError("Parameter spreadsheetId is required."); 502 throw new core.ArgumentError("Parameter spreadsheetId is required.");
503 } 503 }
504 if (valueRenderOption != null) {
505 _queryParams["valueRenderOption"] = [valueRenderOption];
506 }
507 if (dateTimeRenderOption != null) {
508 _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption];
509 }
504 if (ranges != null) { 510 if (ranges != null) {
505 _queryParams["ranges"] = ranges; 511 _queryParams["ranges"] = ranges;
506 } 512 }
507 if (majorDimension != null) { 513 if (majorDimension != null) {
508 _queryParams["majorDimension"] = [majorDimension]; 514 _queryParams["majorDimension"] = [majorDimension];
509 } 515 }
510 if (valueRenderOption != null) {
511 _queryParams["valueRenderOption"] = [valueRenderOption];
512 }
513 if (dateTimeRenderOption != null) {
514 _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption];
515 }
516 516
517 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values:batchGet'; 517 _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values:batchGet';
518 518
519 var _response = _requester.request(_url, 519 var _response = _requester.request(_url,
520 "GET", 520 "GET",
521 body: _body, 521 body: _body,
522 queryParams: _queryParams, 522 queryParams: _queryParams,
523 uploadOptions: _uploadOptions, 523 uploadOptions: _uploadOptions,
524 uploadMedia: _uploadMedia, 524 uploadMedia: _uploadMedia,
525 downloadOptions: _downloadOptions); 525 downloadOptions: _downloadOptions);
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 core.bool includeValuesInResponse; 1996 core.bool includeValuesInResponse;
1997 /** 1997 /**
1998 * Determines how dates, times, and durations in the response should be 1998 * Determines how dates, times, and durations in the response should be
1999 * rendered. This is ignored if response_value_render_option is 1999 * rendered. This is ignored if response_value_render_option is
2000 * FORMATTED_VALUE. 2000 * FORMATTED_VALUE.
2001 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. 2001 * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
2002 * Possible string values are: 2002 * Possible string values are:
2003 * - "SERIAL_NUMBER" : Instructs date, time, datetime, and duration fields to 2003 * - "SERIAL_NUMBER" : Instructs date, time, datetime, and duration fields to
2004 * be output 2004 * be output
2005 * as doubles in "serial number" format, as popularized by Lotus 1-2-3. 2005 * as doubles in "serial number" format, as popularized by Lotus 1-2-3.
2006 * Days are counted from December 31st 1899 and are incremented by 1, 2006 * The whole number portion of the value (left of the decimal) counts
2007 * and times are fractions of a day. For example, January 1st 1900 at noon 2007 * the days since December 30th 1899. The fractional portion (right of
2008 * would be 1.5, 1 because it's 1 day offset from December 31st 1899, 2008 * the decimal) counts the time as a fraction of the day. For example,
2009 * and .5 because noon is half a day. February 1st 1900 at 3pm would 2009 * January 1st 1900 at noon would be 2.5, 2 because it's 2 days after
2010 * be 32.625. This correctly treats the year 1900 as not a leap year. 2010 * December 30st 1899, and .5 because noon is half a day. February 1st
2011 * 1900 at 3pm would be 33.625. This correctly treats the year 1900 as
2012 * not a leap year.
2011 * - "FORMATTED_STRING" : Instructs date, time, datetime, and duration fields 2013 * - "FORMATTED_STRING" : Instructs date, time, datetime, and duration fields
2012 * to be output 2014 * to be output
2013 * as strings in their given number format (which is dependent 2015 * as strings in their given number format (which is dependent
2014 * on the spreadsheet locale). 2016 * on the spreadsheet locale).
2015 */ 2017 */
2016 core.String responseDateTimeRenderOption; 2018 core.String responseDateTimeRenderOption;
2017 /** 2019 /**
2018 * Determines how values in the response should be rendered. 2020 * Determines how values in the response should be rendered.
2019 * The default render option is ValueRenderOption.FORMATTED_VALUE. 2021 * The default render option is ValueRenderOption.FORMATTED_VALUE.
2020 * Possible string values are: 2022 * Possible string values are:
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
2633 * - "LEFT_TO_RIGHT" : The text direction of left-to-right was set by the 2635 * - "LEFT_TO_RIGHT" : The text direction of left-to-right was set by the
2634 * user. 2636 * user.
2635 * - "RIGHT_TO_LEFT" : The text direction of right-to-left was set by the 2637 * - "RIGHT_TO_LEFT" : The text direction of right-to-left was set by the
2636 * user. 2638 * user.
2637 */ 2639 */
2638 core.String textDirection; 2640 core.String textDirection;
2639 /** 2641 /**
2640 * The format of the text in the cell (unless overridden by a format run). 2642 * The format of the text in the cell (unless overridden by a format run).
2641 */ 2643 */
2642 TextFormat textFormat; 2644 TextFormat textFormat;
2645 /** The rotation applied to text in a cell */
2646 TextRotation textRotation;
2643 /** 2647 /**
2644 * The vertical alignment of the value in the cell. 2648 * The vertical alignment of the value in the cell.
2645 * Possible string values are: 2649 * Possible string values are:
2646 * - "VERTICAL_ALIGN_UNSPECIFIED" : The vertical alignment is not specified. 2650 * - "VERTICAL_ALIGN_UNSPECIFIED" : The vertical alignment is not specified.
2647 * Do not use this. 2651 * Do not use this.
2648 * - "TOP" : The text is explicitly aligned to the top of the cell. 2652 * - "TOP" : The text is explicitly aligned to the top of the cell.
2649 * - "MIDDLE" : The text is explicitly aligned to the middle of the cell. 2653 * - "MIDDLE" : The text is explicitly aligned to the middle of the cell.
2650 * - "BOTTOM" : The text is explicitly aligned to the bottom of the cell. 2654 * - "BOTTOM" : The text is explicitly aligned to the bottom of the cell.
2651 */ 2655 */
2652 core.String verticalAlignment; 2656 core.String verticalAlignment;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 } 2716 }
2713 if (_json.containsKey("padding")) { 2717 if (_json.containsKey("padding")) {
2714 padding = new Padding.fromJson(_json["padding"]); 2718 padding = new Padding.fromJson(_json["padding"]);
2715 } 2719 }
2716 if (_json.containsKey("textDirection")) { 2720 if (_json.containsKey("textDirection")) {
2717 textDirection = _json["textDirection"]; 2721 textDirection = _json["textDirection"];
2718 } 2722 }
2719 if (_json.containsKey("textFormat")) { 2723 if (_json.containsKey("textFormat")) {
2720 textFormat = new TextFormat.fromJson(_json["textFormat"]); 2724 textFormat = new TextFormat.fromJson(_json["textFormat"]);
2721 } 2725 }
2726 if (_json.containsKey("textRotation")) {
2727 textRotation = new TextRotation.fromJson(_json["textRotation"]);
2728 }
2722 if (_json.containsKey("verticalAlignment")) { 2729 if (_json.containsKey("verticalAlignment")) {
2723 verticalAlignment = _json["verticalAlignment"]; 2730 verticalAlignment = _json["verticalAlignment"];
2724 } 2731 }
2725 if (_json.containsKey("wrapStrategy")) { 2732 if (_json.containsKey("wrapStrategy")) {
2726 wrapStrategy = _json["wrapStrategy"]; 2733 wrapStrategy = _json["wrapStrategy"];
2727 } 2734 }
2728 } 2735 }
2729 2736
2730 core.Map toJson() { 2737 core.Map toJson() {
2731 var _json = new core.Map(); 2738 var _json = new core.Map();
(...skipping 14 matching lines...) Expand all
2746 } 2753 }
2747 if (padding != null) { 2754 if (padding != null) {
2748 _json["padding"] = (padding).toJson(); 2755 _json["padding"] = (padding).toJson();
2749 } 2756 }
2750 if (textDirection != null) { 2757 if (textDirection != null) {
2751 _json["textDirection"] = textDirection; 2758 _json["textDirection"] = textDirection;
2752 } 2759 }
2753 if (textFormat != null) { 2760 if (textFormat != null) {
2754 _json["textFormat"] = (textFormat).toJson(); 2761 _json["textFormat"] = (textFormat).toJson();
2755 } 2762 }
2763 if (textRotation != null) {
2764 _json["textRotation"] = (textRotation).toJson();
2765 }
2756 if (verticalAlignment != null) { 2766 if (verticalAlignment != null) {
2757 _json["verticalAlignment"] = verticalAlignment; 2767 _json["verticalAlignment"] = verticalAlignment;
2758 } 2768 }
2759 if (wrapStrategy != null) { 2769 if (wrapStrategy != null) {
2760 _json["wrapStrategy"] = wrapStrategy; 2770 _json["wrapStrategy"] = wrapStrategy;
2761 } 2771 }
2762 return _json; 2772 return _json;
2763 } 2773 }
2764 } 2774 }
2765 2775
(...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after
4823 return _json; 4833 return _json;
4824 } 4834 }
4825 } 4835 }
4826 4836
4827 /** 4837 /**
4828 * Settings to control how circular dependencies are resolved with iterative 4838 * Settings to control how circular dependencies are resolved with iterative
4829 * calculation. 4839 * calculation.
4830 */ 4840 */
4831 class IterativeCalculationSettings { 4841 class IterativeCalculationSettings {
4832 /** 4842 /**
4833 * When iterative calculation is enabled, the threshold value such that 4843 * When iterative calculation is enabled and successive results differ by
4834 * calculation rounds stop when succesive results differ by less. 4844 * less than this threshold value, the calculation rounds stop.
4835 */ 4845 */
4836 core.double convergenceThreshold; 4846 core.double convergenceThreshold;
4837 /** 4847 /**
4838 * When iterative calculation is enabled, the maximum number of calculation 4848 * When iterative calculation is enabled, the maximum number of calculation
4839 * rounds to perform during iterative calculation. 4849 * rounds to perform.
4840 */ 4850 */
4841 core.int maxIterations; 4851 core.int maxIterations;
4842 4852
4843 IterativeCalculationSettings(); 4853 IterativeCalculationSettings();
4844 4854
4845 IterativeCalculationSettings.fromJson(core.Map _json) { 4855 IterativeCalculationSettings.fromJson(core.Map _json) {
4846 if (_json.containsKey("convergenceThreshold")) { 4856 if (_json.containsKey("convergenceThreshold")) {
4847 convergenceThreshold = _json["convergenceThreshold"]; 4857 convergenceThreshold = _json["convergenceThreshold"];
4848 } 4858 }
4849 if (_json.containsKey("maxIterations")) { 4859 if (_json.containsKey("maxIterations")) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
4978 } 4988 }
4979 return _json; 4989 return _json;
4980 } 4990 }
4981 } 4991 }
4982 4992
4983 /** The number format of a cell. */ 4993 /** The number format of a cell. */
4984 class NumberFormat { 4994 class NumberFormat {
4985 /** 4995 /**
4986 * Pattern string used for formatting. If not set, a default pattern based on 4996 * Pattern string used for formatting. If not set, a default pattern based on
4987 * the user's locale will be used if necessary for the given type. 4997 * the user's locale will be used if necessary for the given type.
4988 * See the [Date and Number Formats guide](/sheets/guides/formats) for more 4998 * See the [Date and Number Formats guide](/sheets/api/guides/formats) for
4999 * more
4989 * information about the supported patterns. 5000 * information about the supported patterns.
4990 */ 5001 */
4991 core.String pattern; 5002 core.String pattern;
4992 /** 5003 /**
4993 * The type of the number format. 5004 * The type of the number format.
4994 * When writing, this field must be set. 5005 * When writing, this field must be set.
4995 * Possible string values are: 5006 * Possible string values are:
4996 * - "NUMBER_FORMAT_TYPE_UNSPECIFIED" : The number format is not specified 5007 * - "NUMBER_FORMAT_TYPE_UNSPECIFIED" : The number format is not specified
4997 * and is based on the contents of the cell. 5008 * and is based on the contents of the cell.
4998 * Do not explicitly use this. 5009 * Do not explicitly use this.
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
6940 if (format != null) { 6951 if (format != null) {
6941 _json["format"] = (format).toJson(); 6952 _json["format"] = (format).toJson();
6942 } 6953 }
6943 if (startIndex != null) { 6954 if (startIndex != null) {
6944 _json["startIndex"] = startIndex; 6955 _json["startIndex"] = startIndex;
6945 } 6956 }
6946 return _json; 6957 return _json;
6947 } 6958 }
6948 } 6959 }
6949 6960
6961 /** The rotation applied to text in a cell. */
6962 class TextRotation {
6963 /**
6964 * The angle between the standard orientation and the desired orientation.
6965 * Measured in degrees. Valid values are between -90 and 90. Positive
6966 * angles are angled upwards, negative are angled downwards.
6967 *
6968 * Note: For LTR text direction positive angles are in the counterclockwise
6969 * direction, whereas for RTL they are in the clockwise direction
6970 */
6971 core.int angle;
6972 /**
6973 * If true, text reads top to bottom, but the orientation of individual
6974 * characters is unchanged.
6975 * For example:
6976 *
6977 * | V |
6978 * | e |
6979 * | r |
6980 * | t |
6981 * | i |
6982 * | c |
6983 * | a |
6984 * | l |
6985 */
6986 core.bool vertical;
6987
6988 TextRotation();
6989
6990 TextRotation.fromJson(core.Map _json) {
6991 if (_json.containsKey("angle")) {
6992 angle = _json["angle"];
6993 }
6994 if (_json.containsKey("vertical")) {
6995 vertical = _json["vertical"];
6996 }
6997 }
6998
6999 core.Map toJson() {
7000 var _json = new core.Map();
7001 if (angle != null) {
7002 _json["angle"] = angle;
7003 }
7004 if (vertical != null) {
7005 _json["vertical"] = vertical;
7006 }
7007 return _json;
7008 }
7009 }
7010
6950 /** 7011 /**
6951 * Splits a column of text into multiple columns, 7012 * Splits a column of text into multiple columns,
6952 * based on a delimiter in each cell. 7013 * based on a delimiter in each cell.
6953 */ 7014 */
6954 class TextToColumnsRequest { 7015 class TextToColumnsRequest {
6955 /** 7016 /**
6956 * The delimiter to use. Used only if delimiterType is 7017 * The delimiter to use. Used only if delimiterType is
6957 * CUSTOM. 7018 * CUSTOM.
6958 */ 7019 */
6959 core.String delimiter; 7020 core.String delimiter;
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
7778 } 7839 }
7779 if (range != null) { 7840 if (range != null) {
7780 _json["range"] = range; 7841 _json["range"] = range;
7781 } 7842 }
7782 if (values != null) { 7843 if (values != null) {
7783 _json["values"] = values; 7844 _json["values"] = values;
7784 } 7845 }
7785 return _json; 7846 return _json;
7786 } 7847 }
7787 } 7848 }
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