| OLD | NEW | 
|---|
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). | 
| 2 | 2 | 
| 3 library googleapis.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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 174    * To retrieve only subsets of the spreadsheet, use the | 174    * To retrieve only subsets of the spreadsheet, use the | 
| 175    * ranges URL parameter. | 175    * ranges URL parameter. | 
| 176    * Multiple ranges can be specified.  Limiting the range will | 176    * Multiple ranges can be specified.  Limiting the range will | 
| 177    * return only the portions of the spreadsheet that intersect the requested | 177    * return only the portions of the spreadsheet that intersect the requested | 
| 178    * ranges. Ranges are specified using A1 notation. | 178    * ranges. Ranges are specified using A1 notation. | 
| 179    * | 179    * | 
| 180    * Request parameters: | 180    * Request parameters: | 
| 181    * | 181    * | 
| 182    * [spreadsheetId] - The spreadsheet to request. | 182    * [spreadsheetId] - The spreadsheet to request. | 
| 183    * | 183    * | 
| 184    * [ranges] - The ranges to retrieve from the spreadsheet. |  | 
| 185    * |  | 
| 186    * [includeGridData] - True if grid data should be returned. | 184    * [includeGridData] - True if grid data should be returned. | 
| 187    * This parameter is ignored if a field mask was set in the request. | 185    * This parameter is ignored if a field mask was set in the request. | 
| 188    * | 186    * | 
|  | 187    * [ranges] - The ranges to retrieve from the spreadsheet. | 
|  | 188    * | 
| 189    * Completes with a [Spreadsheet]. | 189    * Completes with a [Spreadsheet]. | 
| 190    * | 190    * | 
| 191    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 191    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 192    * error. | 192    * error. | 
| 193    * | 193    * | 
| 194    * If the used [http.Client] completes with an error when making a REST call, | 194    * If the used [http.Client] completes with an error when making a REST call, | 
| 195    * this method will complete with the same error. | 195    * this method will complete with the same error. | 
| 196    */ | 196    */ | 
| 197   async.Future<Spreadsheet> get(core.String spreadsheetId, {core.List<core.Strin
      g> ranges, core.bool includeGridData}) { | 197   async.Future<Spreadsheet> get(core.String spreadsheetId, {core.bool includeGri
      dData, core.List<core.String> ranges}) { | 
| 198     var _url = null; | 198     var _url = null; | 
| 199     var _queryParams = new core.Map(); | 199     var _queryParams = new core.Map(); | 
| 200     var _uploadMedia = null; | 200     var _uploadMedia = null; | 
| 201     var _uploadOptions = null; | 201     var _uploadOptions = null; | 
| 202     var _downloadOptions = commons.DownloadOptions.Metadata; | 202     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 203     var _body = null; | 203     var _body = null; | 
| 204 | 204 | 
| 205     if (spreadsheetId == null) { | 205     if (spreadsheetId == null) { | 
| 206       throw new core.ArgumentError("Parameter spreadsheetId is required."); | 206       throw new core.ArgumentError("Parameter spreadsheetId is required."); | 
| 207     } | 207     } | 
|  | 208     if (includeGridData != null) { | 
|  | 209       _queryParams["includeGridData"] = ["${includeGridData}"]; | 
|  | 210     } | 
| 208     if (ranges != null) { | 211     if (ranges != null) { | 
| 209       _queryParams["ranges"] = ranges; | 212       _queryParams["ranges"] = ranges; | 
| 210     } | 213     } | 
| 211     if (includeGridData != null) { |  | 
| 212       _queryParams["includeGridData"] = ["${includeGridData}"]; |  | 
| 213     } |  | 
| 214 | 214 | 
| 215     _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId'); | 215     _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId'); | 
| 216 | 216 | 
| 217     var _response = _requester.request(_url, | 217     var _response = _requester.request(_url, | 
| 218                                        "GET", | 218                                        "GET", | 
| 219                                        body: _body, | 219                                        body: _body, | 
| 220                                        queryParams: _queryParams, | 220                                        queryParams: _queryParams, | 
| 221                                        uploadOptions: _uploadOptions, | 221                                        uploadOptions: _uploadOptions, | 
| 222                                        uploadMedia: _uploadMedia, | 222                                        uploadMedia: _uploadMedia, | 
| 223                                        downloadOptions: _downloadOptions); | 223                                        downloadOptions: _downloadOptions); | 
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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    * | 
| 320    * [responseValueRenderOption] - Determines how values in the response should | 334    * [responseValueRenderOption] - Determines how values in the response should | 
| 321    * be rendered. | 335    * be rendered. | 
| 322    * The default render option is ValueRenderOption.FORMATTED_VALUE. | 336    * The default render option is ValueRenderOption.FORMATTED_VALUE. | 
| 323    * Possible string values are: | 337    * Possible string values are: | 
| 324    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 338    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 
| 325    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 339    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 
| 326    * - "FORMULA" : A FORMULA. | 340    * - "FORMULA" : A FORMULA. | 
| 327    * | 341    * | 
| 328    * [insertDataOption] - How the input data should be inserted. | 342    * [insertDataOption] - How the input data should be inserted. | 
| 329    * Possible string values are: | 343    * Possible string values are: | 
| 330    * - "OVERWRITE" : A OVERWRITE. | 344    * - "OVERWRITE" : A OVERWRITE. | 
| 331    * - "INSERT_ROWS" : A INSERT_ROWS. | 345    * - "INSERT_ROWS" : A INSERT_ROWS. | 
| 332    * | 346    * | 
| 333    * [valueInputOption] - How the input data should be interpreted. | 347    * [valueInputOption] - How the input data should be interpreted. | 
| 334    * Possible string values are: | 348    * Possible string values are: | 
| 335    * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. | 349    * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. | 
| 336    * - "RAW" : A RAW. | 350    * - "RAW" : A RAW. | 
| 337    * - "USER_ENTERED" : A USER_ENTERED. | 351    * - "USER_ENTERED" : A USER_ENTERED. | 
| 338    * | 352    * | 
| 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 responseValueRenderOption, core.Strin
      g insertDataOption, core.String valueInputOption, core.String responseDateTimeRe
      nderOption, core.bool includeValuesInResponse}) { | 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}) { | 
| 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     } | 
| 378     if (responseValueRenderOption != null) { | 384     if (responseValueRenderOption != null) { | 
| 379       _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; | 385       _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; | 
| 380     } | 386     } | 
| 381     if (insertDataOption != null) { | 387     if (insertDataOption != null) { | 
| 382       _queryParams["insertDataOption"] = [insertDataOption]; | 388       _queryParams["insertDataOption"] = [insertDataOption]; | 
| 383     } | 389     } | 
| 384     if (valueInputOption != null) { | 390     if (valueInputOption != null) { | 
| 385       _queryParams["valueInputOption"] = [valueInputOption]; | 391       _queryParams["valueInputOption"] = [valueInputOption]; | 
| 386     } | 392     } | 
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 451   } | 451   } | 
| 452 | 452 | 
| 453   /** | 453   /** | 
| 454    * Returns one or more ranges of values from a spreadsheet. | 454    * Returns one or more ranges of values from a spreadsheet. | 
| 455    * The caller must specify the spreadsheet ID and one or more ranges. | 455    * The caller must specify the spreadsheet ID and one or more ranges. | 
| 456    * | 456    * | 
| 457    * Request parameters: | 457    * Request parameters: | 
| 458    * | 458    * | 
| 459    * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. | 459    * [spreadsheetId] - The ID of the spreadsheet to retrieve data from. | 
| 460    * | 460    * | 
| 461    * [valueRenderOption] - How values should be represented in the output. |  | 
| 462    * The default render option is ValueRenderOption.FORMATTED_VALUE. |  | 
| 463    * Possible string values are: |  | 
| 464    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. |  | 
| 465    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. |  | 
| 466    * - "FORMULA" : A FORMULA. |  | 
| 467    * |  | 
| 468    * [dateTimeRenderOption] - How dates, times, and durations should be | 461    * [dateTimeRenderOption] - How dates, times, and durations should be | 
| 469    * represented in the output. | 462    * represented in the output. | 
| 470    * This is ignored if value_render_option is | 463    * This is ignored if value_render_option is | 
| 471    * FORMATTED_VALUE. | 464    * FORMATTED_VALUE. | 
| 472    * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 465    * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 
| 473    * Possible string values are: | 466    * Possible string values are: | 
| 474    * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 467    * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 
| 475    * - "FORMATTED_STRING" : A FORMATTED_STRING. | 468    * - "FORMATTED_STRING" : A FORMATTED_STRING. | 
| 476    * | 469    * | 
| 477    * [ranges] - The A1 notation of the values to retrieve. | 470    * [valueRenderOption] - How values should be represented in the output. | 
|  | 471    * The default render option is ValueRenderOption.FORMATTED_VALUE. | 
|  | 472    * Possible string values are: | 
|  | 473    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 
|  | 474    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 
|  | 475    * - "FORMULA" : A FORMULA. | 
| 478    * | 476    * | 
| 479    * [majorDimension] - The major dimension that results should use. | 477    * [majorDimension] - The major dimension that results should use. | 
| 480    * | 478    * | 
| 481    * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, | 479    * For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, | 
| 482    * then requesting `range=A1:B2,majorDimension=ROWS` will return | 480    * then requesting `range=A1:B2,majorDimension=ROWS` will return | 
| 483    * `[[1,2],[3,4]]`, | 481    * `[[1,2],[3,4]]`, | 
| 484    * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return | 482    * whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return | 
| 485    * `[[1,3],[2,4]]`. | 483    * `[[1,3],[2,4]]`. | 
| 486    * Possible string values are: | 484    * Possible string values are: | 
| 487    * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. | 485    * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. | 
| 488    * - "ROWS" : A ROWS. | 486    * - "ROWS" : A ROWS. | 
| 489    * - "COLUMNS" : A COLUMNS. | 487    * - "COLUMNS" : A COLUMNS. | 
| 490    * | 488    * | 
|  | 489    * [ranges] - The A1 notation of the values to retrieve. | 
|  | 490    * | 
| 491    * Completes with a [BatchGetValuesResponse]. | 491    * Completes with a [BatchGetValuesResponse]. | 
| 492    * | 492    * | 
| 493    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 493    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
| 494    * error. | 494    * error. | 
| 495    * | 495    * | 
| 496    * If the used [http.Client] completes with an error when making a REST call, | 496    * If the used [http.Client] completes with an error when making a REST call, | 
| 497    * this method will complete with the same error. | 497    * this method will complete with the same error. | 
| 498    */ | 498    */ | 
| 499   async.Future<BatchGetValuesResponse> batchGet(core.String spreadsheetId, {core
      .String valueRenderOption, core.String dateTimeRenderOption, core.List<core.Stri
      ng> ranges, core.String majorDimension}) { | 499   async.Future<BatchGetValuesResponse> batchGet(core.String spreadsheetId, {core
      .String dateTimeRenderOption, core.String valueRenderOption, core.String majorDi
      mension, core.List<core.String> ranges}) { | 
| 500     var _url = null; | 500     var _url = null; | 
| 501     var _queryParams = new core.Map(); | 501     var _queryParams = new core.Map(); | 
| 502     var _uploadMedia = null; | 502     var _uploadMedia = null; | 
| 503     var _uploadOptions = null; | 503     var _uploadOptions = null; | 
| 504     var _downloadOptions = commons.DownloadOptions.Metadata; | 504     var _downloadOptions = commons.DownloadOptions.Metadata; | 
| 505     var _body = null; | 505     var _body = null; | 
| 506 | 506 | 
| 507     if (spreadsheetId == null) { | 507     if (spreadsheetId == null) { | 
| 508       throw new core.ArgumentError("Parameter spreadsheetId is required."); | 508       throw new core.ArgumentError("Parameter spreadsheetId is required."); | 
| 509     } | 509     } | 
|  | 510     if (dateTimeRenderOption != null) { | 
|  | 511       _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; | 
|  | 512     } | 
| 510     if (valueRenderOption != null) { | 513     if (valueRenderOption != null) { | 
| 511       _queryParams["valueRenderOption"] = [valueRenderOption]; | 514       _queryParams["valueRenderOption"] = [valueRenderOption]; | 
| 512     } | 515     } | 
| 513     if (dateTimeRenderOption != null) { | 516     if (majorDimension != null) { | 
| 514       _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; | 517       _queryParams["majorDimension"] = [majorDimension]; | 
| 515     } | 518     } | 
| 516     if (ranges != null) { | 519     if (ranges != null) { | 
| 517       _queryParams["ranges"] = ranges; | 520       _queryParams["ranges"] = ranges; | 
| 518     } | 521     } | 
| 519     if (majorDimension != null) { |  | 
| 520       _queryParams["majorDimension"] = [majorDimension]; |  | 
| 521     } |  | 
| 522 | 522 | 
| 523     _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') 
      + '/values:batchGet'; | 523     _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') 
      + '/values:batchGet'; | 
| 524 | 524 | 
| 525     var _response = _requester.request(_url, | 525     var _response = _requester.request(_url, | 
| 526                                        "GET", | 526                                        "GET", | 
| 527                                        body: _body, | 527                                        body: _body, | 
| 528                                        queryParams: _queryParams, | 528                                        queryParams: _queryParams, | 
| 529                                        uploadOptions: _uploadOptions, | 529                                        uploadOptions: _uploadOptions, | 
| 530                                        uploadMedia: _uploadMedia, | 530                                        uploadMedia: _uploadMedia, | 
| 531                                        downloadOptions: _downloadOptions); | 531                                        downloadOptions: _downloadOptions); | 
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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    * [valueRenderOption] - How values should be represented in the output. | 644    * [majorDimension] - The major dimension that results should use. | 
| 645    * The default render option is ValueRenderOption.FORMATTED_VALUE. | 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]]`. | 
| 646    * Possible string values are: | 651    * Possible string values are: | 
| 647    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 652    * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. | 
| 648    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 653    * - "ROWS" : A ROWS. | 
| 649    * - "FORMULA" : A FORMULA. | 654    * - "COLUMNS" : A COLUMNS. | 
| 650    * | 655    * | 
| 651    * [dateTimeRenderOption] - How dates, times, and durations should be | 656    * [dateTimeRenderOption] - How dates, times, and durations should be | 
| 652    * represented in the output. | 657    * represented in the output. | 
| 653    * This is ignored if value_render_option is | 658    * This is ignored if value_render_option is | 
| 654    * FORMATTED_VALUE. | 659    * FORMATTED_VALUE. | 
| 655    * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 660    * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. | 
| 656    * Possible string values are: | 661    * Possible string values are: | 
| 657    * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 662    * - "SERIAL_NUMBER" : A SERIAL_NUMBER. | 
| 658    * - "FORMATTED_STRING" : A FORMATTED_STRING. | 663    * - "FORMATTED_STRING" : A FORMATTED_STRING. | 
| 659    * | 664    * | 
| 660    * [majorDimension] - The major dimension that results should use. | 665    * [valueRenderOption] - How values should be represented in the output. | 
| 661    * | 666    * The default render option is ValueRenderOption.FORMATTED_VALUE. | 
| 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: | 667    * Possible string values are: | 
| 668    * - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. | 668    * - "FORMATTED_VALUE" : A FORMATTED_VALUE. | 
| 669    * - "ROWS" : A ROWS. | 669    * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. | 
| 670    * - "COLUMNS" : A COLUMNS. | 670    * - "FORMULA" : A FORMULA. | 
| 671    * | 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 valueRenderOption, core.String dateTimeRenderOption, core.String major
      Dimension}) { | 680   async.Future<ValueRange> get(core.String spreadsheetId, core.String range, {co
      re.String majorDimension, core.String dateTimeRenderOption, core.String valueRen
      derOption}) { | 
| 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) { | 
|  | 698       _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; | 
|  | 699     } | 
| 694     if (valueRenderOption != null) { | 700     if (valueRenderOption != null) { | 
| 695       _queryParams["valueRenderOption"] = [valueRenderOption]; | 701       _queryParams["valueRenderOption"] = [valueRenderOption]; | 
| 696     } | 702     } | 
| 697     if (dateTimeRenderOption != null) { |  | 
| 698       _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; |  | 
| 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); | 
| (...skipping 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2688  * chart</a>. | 2688  * chart</a>. | 
| 2689  */ | 2689  */ | 
| 2690 class CandlestickChartSpec { | 2690 class CandlestickChartSpec { | 
| 2691   /** | 2691   /** | 
| 2692    * The Candlestick chart data. | 2692    * The Candlestick chart data. | 
| 2693    * Only one CandlestickData is supported. | 2693    * Only one CandlestickData is supported. | 
| 2694    */ | 2694    */ | 
| 2695   core.List<CandlestickData> data; | 2695   core.List<CandlestickData> data; | 
| 2696   /** | 2696   /** | 
| 2697    * The domain data (horizontal axis) for the candlestick chart.  String data | 2697    * The domain data (horizontal axis) for the candlestick chart.  String data | 
| 2698    * will be treated as discrete labels, other data will be treated as continous | 2698    * will be treated as discrete labels, other data will be treated as | 
| 2699    * values. | 2699    * continuous values. | 
| 2700    */ | 2700    */ | 
| 2701   CandlestickDomain domain; | 2701   CandlestickDomain domain; | 
| 2702 | 2702 | 
| 2703   CandlestickChartSpec(); | 2703   CandlestickChartSpec(); | 
| 2704 | 2704 | 
| 2705   CandlestickChartSpec.fromJson(core.Map _json) { | 2705   CandlestickChartSpec.fromJson(core.Map _json) { | 
| 2706     if (_json.containsKey("data")) { | 2706     if (_json.containsKey("data")) { | 
| 2707       data = _json["data"].map((value) => new CandlestickData.fromJson(value)).t
      oList(); | 2707       data = _json["data"].map((value) => new CandlestickData.fromJson(value)).t
      oList(); | 
| 2708     } | 2708     } | 
| 2709     if (_json.containsKey("domain")) { | 2709     if (_json.containsKey("domain")) { | 
| (...skipping 3680 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6390     if (unprotectedRanges != null) { | 6390     if (unprotectedRanges != null) { | 
| 6391       _json["unprotectedRanges"] = unprotectedRanges.map((value) => (value).toJs
      on()).toList(); | 6391       _json["unprotectedRanges"] = unprotectedRanges.map((value) => (value).toJs
      on()).toList(); | 
| 6392     } | 6392     } | 
| 6393     if (warningOnly != null) { | 6393     if (warningOnly != null) { | 
| 6394       _json["warningOnly"] = warningOnly; | 6394       _json["warningOnly"] = warningOnly; | 
| 6395     } | 6395     } | 
| 6396     return _json; | 6396     return _json; | 
| 6397   } | 6397   } | 
| 6398 } | 6398 } | 
| 6399 | 6399 | 
|  | 6400 /** Randomizes the order of the rows in a range. */ | 
|  | 6401 class RandomizeRangeRequest { | 
|  | 6402   /** The range to randomize. */ | 
|  | 6403   GridRange range; | 
|  | 6404 | 
|  | 6405   RandomizeRangeRequest(); | 
|  | 6406 | 
|  | 6407   RandomizeRangeRequest.fromJson(core.Map _json) { | 
|  | 6408     if (_json.containsKey("range")) { | 
|  | 6409       range = new GridRange.fromJson(_json["range"]); | 
|  | 6410     } | 
|  | 6411   } | 
|  | 6412 | 
|  | 6413   core.Map<core.String, core.Object> toJson() { | 
|  | 6414     final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
      ore.Object>(); | 
|  | 6415     if (range != null) { | 
|  | 6416       _json["range"] = (range).toJson(); | 
|  | 6417     } | 
|  | 6418     return _json; | 
|  | 6419   } | 
|  | 6420 } | 
|  | 6421 | 
| 6400 /** | 6422 /** | 
| 6401  * Updates all cells in the range to the values in the given Cell object. | 6423  * Updates all cells in the range to the values in the given Cell object. | 
| 6402  * Only the fields listed in the fields field are updated; others are | 6424  * Only the fields listed in the fields field are updated; others are | 
| 6403  * unchanged. | 6425  * unchanged. | 
| 6404  * | 6426  * | 
| 6405  * If writing a cell with a formula, the formula's ranges will automatically | 6427  * If writing a cell with a formula, the formula's ranges will automatically | 
| 6406  * increment for each field in the range. | 6428  * increment for each field in the range. | 
| 6407  * For example, if writing a cell with formula `=A1` into range B2:C4, | 6429  * For example, if writing a cell with formula `=A1` into range B2:C4, | 
| 6408  * B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, | 6430  * B2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`, | 
| 6409  * C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. | 6431  * C2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`. | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6513   /** Inserts new rows or columns in a sheet. */ | 6535   /** Inserts new rows or columns in a sheet. */ | 
| 6514   InsertDimensionRequest insertDimension; | 6536   InsertDimensionRequest insertDimension; | 
| 6515   /** Inserts new cells in a sheet, shifting the existing cells. */ | 6537   /** Inserts new cells in a sheet, shifting the existing cells. */ | 
| 6516   InsertRangeRequest insertRange; | 6538   InsertRangeRequest insertRange; | 
| 6517   /** Merges cells together. */ | 6539   /** Merges cells together. */ | 
| 6518   MergeCellsRequest mergeCells; | 6540   MergeCellsRequest mergeCells; | 
| 6519   /** Moves rows or columns to another location in a sheet. */ | 6541   /** Moves rows or columns to another location in a sheet. */ | 
| 6520   MoveDimensionRequest moveDimension; | 6542   MoveDimensionRequest moveDimension; | 
| 6521   /** Pastes data (HTML or delimited) into a sheet. */ | 6543   /** Pastes data (HTML or delimited) into a sheet. */ | 
| 6522   PasteDataRequest pasteData; | 6544   PasteDataRequest pasteData; | 
|  | 6545   /** Randomizes the order of the rows in a range. */ | 
|  | 6546   RandomizeRangeRequest randomizeRange; | 
| 6523   /** Repeats a single cell across a range. */ | 6547   /** Repeats a single cell across a range. */ | 
| 6524   RepeatCellRequest repeatCell; | 6548   RepeatCellRequest repeatCell; | 
| 6525   /** Sets the basic filter on a sheet. */ | 6549   /** Sets the basic filter on a sheet. */ | 
| 6526   SetBasicFilterRequest setBasicFilter; | 6550   SetBasicFilterRequest setBasicFilter; | 
| 6527   /** Sets data validation for one or more cells. */ | 6551   /** Sets data validation for one or more cells. */ | 
| 6528   SetDataValidationRequest setDataValidation; | 6552   SetDataValidationRequest setDataValidation; | 
| 6529   /** Sorts data in a range. */ | 6553   /** Sorts data in a range. */ | 
| 6530   SortRangeRequest sortRange; | 6554   SortRangeRequest sortRange; | 
| 6531   /** Converts a column of text into many columns of text. */ | 6555   /** Converts a column of text into many columns of text. */ | 
| 6532   TextToColumnsRequest textToColumns; | 6556   TextToColumnsRequest textToColumns; | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6646     } | 6670     } | 
| 6647     if (_json.containsKey("mergeCells")) { | 6671     if (_json.containsKey("mergeCells")) { | 
| 6648       mergeCells = new MergeCellsRequest.fromJson(_json["mergeCells"]); | 6672       mergeCells = new MergeCellsRequest.fromJson(_json["mergeCells"]); | 
| 6649     } | 6673     } | 
| 6650     if (_json.containsKey("moveDimension")) { | 6674     if (_json.containsKey("moveDimension")) { | 
| 6651       moveDimension = new MoveDimensionRequest.fromJson(_json["moveDimension"]); | 6675       moveDimension = new MoveDimensionRequest.fromJson(_json["moveDimension"]); | 
| 6652     } | 6676     } | 
| 6653     if (_json.containsKey("pasteData")) { | 6677     if (_json.containsKey("pasteData")) { | 
| 6654       pasteData = new PasteDataRequest.fromJson(_json["pasteData"]); | 6678       pasteData = new PasteDataRequest.fromJson(_json["pasteData"]); | 
| 6655     } | 6679     } | 
|  | 6680     if (_json.containsKey("randomizeRange")) { | 
|  | 6681       randomizeRange = new RandomizeRangeRequest.fromJson(_json["randomizeRange"
      ]); | 
|  | 6682     } | 
| 6656     if (_json.containsKey("repeatCell")) { | 6683     if (_json.containsKey("repeatCell")) { | 
| 6657       repeatCell = new RepeatCellRequest.fromJson(_json["repeatCell"]); | 6684       repeatCell = new RepeatCellRequest.fromJson(_json["repeatCell"]); | 
| 6658     } | 6685     } | 
| 6659     if (_json.containsKey("setBasicFilter")) { | 6686     if (_json.containsKey("setBasicFilter")) { | 
| 6660       setBasicFilter = new SetBasicFilterRequest.fromJson(_json["setBasicFilter"
      ]); | 6687       setBasicFilter = new SetBasicFilterRequest.fromJson(_json["setBasicFilter"
      ]); | 
| 6661     } | 6688     } | 
| 6662     if (_json.containsKey("setDataValidation")) { | 6689     if (_json.containsKey("setDataValidation")) { | 
| 6663       setDataValidation = new SetDataValidationRequest.fromJson(_json["setDataVa
      lidation"]); | 6690       setDataValidation = new SetDataValidationRequest.fromJson(_json["setDataVa
      lidation"]); | 
| 6664     } | 6691     } | 
| 6665     if (_json.containsKey("sortRange")) { | 6692     if (_json.containsKey("sortRange")) { | 
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6797     } | 6824     } | 
| 6798     if (mergeCells != null) { | 6825     if (mergeCells != null) { | 
| 6799       _json["mergeCells"] = (mergeCells).toJson(); | 6826       _json["mergeCells"] = (mergeCells).toJson(); | 
| 6800     } | 6827     } | 
| 6801     if (moveDimension != null) { | 6828     if (moveDimension != null) { | 
| 6802       _json["moveDimension"] = (moveDimension).toJson(); | 6829       _json["moveDimension"] = (moveDimension).toJson(); | 
| 6803     } | 6830     } | 
| 6804     if (pasteData != null) { | 6831     if (pasteData != null) { | 
| 6805       _json["pasteData"] = (pasteData).toJson(); | 6832       _json["pasteData"] = (pasteData).toJson(); | 
| 6806     } | 6833     } | 
|  | 6834     if (randomizeRange != null) { | 
|  | 6835       _json["randomizeRange"] = (randomizeRange).toJson(); | 
|  | 6836     } | 
| 6807     if (repeatCell != null) { | 6837     if (repeatCell != null) { | 
| 6808       _json["repeatCell"] = (repeatCell).toJson(); | 6838       _json["repeatCell"] = (repeatCell).toJson(); | 
| 6809     } | 6839     } | 
| 6810     if (setBasicFilter != null) { | 6840     if (setBasicFilter != null) { | 
| 6811       _json["setBasicFilter"] = (setBasicFilter).toJson(); | 6841       _json["setBasicFilter"] = (setBasicFilter).toJson(); | 
| 6812     } | 6842     } | 
| 6813     if (setDataValidation != null) { | 6843     if (setDataValidation != null) { | 
| 6814       _json["setDataValidation"] = (setDataValidation).toJson(); | 6844       _json["setDataValidation"] = (setDataValidation).toJson(); | 
| 6815     } | 6845     } | 
| 6816     if (sortRange != null) { | 6846     if (sortRange != null) { | 
| (...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 8512     } | 8542     } | 
| 8513     if (range != null) { | 8543     if (range != null) { | 
| 8514       _json["range"] = range; | 8544       _json["range"] = range; | 
| 8515     } | 8545     } | 
| 8516     if (values != null) { | 8546     if (values != null) { | 
| 8517       _json["values"] = values; | 8547       _json["values"] = values; | 
| 8518     } | 8548     } | 
| 8519     return _json; | 8549     return _json; | 
| 8520   } | 8550   } | 
| 8521 } | 8551 } | 
| OLD | NEW | 
|---|