| 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 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1413 * color, but the first column color takes priority over the second row color. | 1413 * color, but the first column color takes priority over the second row color. |
| 1414 * Similarly, the row header takes priority over the column header in the | 1414 * Similarly, the row header takes priority over the column header in the |
| 1415 * top left cell, but the column header takes priority over the first row | 1415 * top left cell, but the column header takes priority over the first row |
| 1416 * color if the row header is not set. | 1416 * color if the row header is not set. |
| 1417 */ | 1417 */ |
| 1418 class BandingProperties { | 1418 class BandingProperties { |
| 1419 /** The first color that is alternating. (Required) */ | 1419 /** The first color that is alternating. (Required) */ |
| 1420 Color firstBandColor; | 1420 Color firstBandColor; |
| 1421 /** | 1421 /** |
| 1422 * The color of the last row or column. If this field is not set, the last | 1422 * The color of the last row or column. If this field is not set, the last |
| 1423 * row or column will be filled with either first_row_color or | 1423 * row or column will be filled with either first_band_color or |
| 1424 * second_row_color, depending on the color of the previous row or | 1424 * second_band_color, depending on the color of the previous row or |
| 1425 * column. | 1425 * column. |
| 1426 */ | 1426 */ |
| 1427 Color footerColor; | 1427 Color footerColor; |
| 1428 /** | 1428 /** |
| 1429 * The color of the first row or column. If this field is set, the first | 1429 * The color of the first row or column. If this field is set, the first |
| 1430 * row or column will be filled with this color and the colors will | 1430 * row or column will be filled with this color and the colors will |
| 1431 * alternate between first_band_color and [second_band_color[] starting | 1431 * alternate between first_band_color and second_band_color starting |
| 1432 * from the second row or column. Otherwise, the first row or column will be | 1432 * from the second row or column. Otherwise, the first row or column will be |
| 1433 * filled with first_band_color and the colors will proceed to alternate | 1433 * filled with first_band_color and the colors will proceed to alternate |
| 1434 * as they normally would. | 1434 * as they normally would. |
| 1435 */ | 1435 */ |
| 1436 Color headerColor; | 1436 Color headerColor; |
| 1437 /** The second color that is alternating. (Required) */ | 1437 /** The second color that is alternating. (Required) */ |
| 1438 Color secondBandColor; | 1438 Color secondBandColor; |
| 1439 | 1439 |
| 1440 BandingProperties(); | 1440 BandingProperties(); |
| 1441 | 1441 |
| (...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3595 | 3595 |
| 3596 core.Map toJson() { | 3596 core.Map toJson() { |
| 3597 var _json = new core.Map(); | 3597 var _json = new core.Map(); |
| 3598 if (protectedRangeId != null) { | 3598 if (protectedRangeId != null) { |
| 3599 _json["protectedRangeId"] = protectedRangeId; | 3599 _json["protectedRangeId"] = protectedRangeId; |
| 3600 } | 3600 } |
| 3601 return _json; | 3601 return _json; |
| 3602 } | 3602 } |
| 3603 } | 3603 } |
| 3604 | 3604 |
| 3605 /** Deletes a range of cells, shifting other cells into the deleted area. */ |
| 3606 class DeleteRangeRequest { |
| 3607 /** The range of cells to delete. */ |
| 3608 GridRange range; |
| 3609 /** |
| 3610 * The dimension from which deleted cells will be replaced with. |
| 3611 * If ROWS, existing cells will be shifted upward to |
| 3612 * replace the deleted cells. If COLUMNS, existing cells |
| 3613 * will be shifted left to replace the deleted cells. |
| 3614 * Possible string values are: |
| 3615 * - "DIMENSION_UNSPECIFIED" : The default value, do not use. |
| 3616 * - "ROWS" : Operates on the rows of a sheet. |
| 3617 * - "COLUMNS" : Operates on the columns of a sheet. |
| 3618 */ |
| 3619 core.String shiftDimension; |
| 3620 |
| 3621 DeleteRangeRequest(); |
| 3622 |
| 3623 DeleteRangeRequest.fromJson(core.Map _json) { |
| 3624 if (_json.containsKey("range")) { |
| 3625 range = new GridRange.fromJson(_json["range"]); |
| 3626 } |
| 3627 if (_json.containsKey("shiftDimension")) { |
| 3628 shiftDimension = _json["shiftDimension"]; |
| 3629 } |
| 3630 } |
| 3631 |
| 3632 core.Map toJson() { |
| 3633 var _json = new core.Map(); |
| 3634 if (range != null) { |
| 3635 _json["range"] = (range).toJson(); |
| 3636 } |
| 3637 if (shiftDimension != null) { |
| 3638 _json["shiftDimension"] = shiftDimension; |
| 3639 } |
| 3640 return _json; |
| 3641 } |
| 3642 } |
| 3643 |
| 3605 /** Deletes the requested sheet. */ | 3644 /** Deletes the requested sheet. */ |
| 3606 class DeleteSheetRequest { | 3645 class DeleteSheetRequest { |
| 3607 /** The ID of the sheet to delete. */ | 3646 /** The ID of the sheet to delete. */ |
| 3608 core.int sheetId; | 3647 core.int sheetId; |
| 3609 | 3648 |
| 3610 DeleteSheetRequest(); | 3649 DeleteSheetRequest(); |
| 3611 | 3650 |
| 3612 DeleteSheetRequest.fromJson(core.Map _json) { | 3651 DeleteSheetRequest.fromJson(core.Map _json) { |
| 3613 if (_json.containsKey("sheetId")) { | 3652 if (_json.containsKey("sheetId")) { |
| 3614 sheetId = _json["sheetId"]; | 3653 sheetId = _json["sheetId"]; |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4673 if (inheritFromBefore != null) { | 4712 if (inheritFromBefore != null) { |
| 4674 _json["inheritFromBefore"] = inheritFromBefore; | 4713 _json["inheritFromBefore"] = inheritFromBefore; |
| 4675 } | 4714 } |
| 4676 if (range != null) { | 4715 if (range != null) { |
| 4677 _json["range"] = (range).toJson(); | 4716 _json["range"] = (range).toJson(); |
| 4678 } | 4717 } |
| 4679 return _json; | 4718 return _json; |
| 4680 } | 4719 } |
| 4681 } | 4720 } |
| 4682 | 4721 |
| 4722 /** Inserts cells into a range, shifting the existing cells over or down. */ |
| 4723 class InsertRangeRequest { |
| 4724 /** The range to insert new cells into. */ |
| 4725 GridRange range; |
| 4726 /** |
| 4727 * The dimension which will be shifted when inserting cells. |
| 4728 * If ROWS, existing cells will be shifted down. |
| 4729 * If COLUMNS, existing cells will be shifted right. |
| 4730 * Possible string values are: |
| 4731 * - "DIMENSION_UNSPECIFIED" : The default value, do not use. |
| 4732 * - "ROWS" : Operates on the rows of a sheet. |
| 4733 * - "COLUMNS" : Operates on the columns of a sheet. |
| 4734 */ |
| 4735 core.String shiftDimension; |
| 4736 |
| 4737 InsertRangeRequest(); |
| 4738 |
| 4739 InsertRangeRequest.fromJson(core.Map _json) { |
| 4740 if (_json.containsKey("range")) { |
| 4741 range = new GridRange.fromJson(_json["range"]); |
| 4742 } |
| 4743 if (_json.containsKey("shiftDimension")) { |
| 4744 shiftDimension = _json["shiftDimension"]; |
| 4745 } |
| 4746 } |
| 4747 |
| 4748 core.Map toJson() { |
| 4749 var _json = new core.Map(); |
| 4750 if (range != null) { |
| 4751 _json["range"] = (range).toJson(); |
| 4752 } |
| 4753 if (shiftDimension != null) { |
| 4754 _json["shiftDimension"] = shiftDimension; |
| 4755 } |
| 4756 return _json; |
| 4757 } |
| 4758 } |
| 4759 |
| 4683 /** | 4760 /** |
| 4684 * A single interpolation point on a gradient conditional format. | 4761 * A single interpolation point on a gradient conditional format. |
| 4685 * These pin the gradient color scale according to the color, | 4762 * These pin the gradient color scale according to the color, |
| 4686 * type and value chosen. | 4763 * type and value chosen. |
| 4687 */ | 4764 */ |
| 4688 class InterpolationPoint { | 4765 class InterpolationPoint { |
| 4689 /** The color this interpolation point should use. */ | 4766 /** The color this interpolation point should use. */ |
| 4690 Color color; | 4767 Color color; |
| 4691 /** | 4768 /** |
| 4692 * How the value should be interpreted. | 4769 * How the value should be interpreted. |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5693 /** Deletes rows or columns in a sheet. */ | 5770 /** Deletes rows or columns in a sheet. */ |
| 5694 DeleteDimensionRequest deleteDimension; | 5771 DeleteDimensionRequest deleteDimension; |
| 5695 /** Deletes an embedded object (e.g, chart, image) in a sheet. */ | 5772 /** Deletes an embedded object (e.g, chart, image) in a sheet. */ |
| 5696 DeleteEmbeddedObjectRequest deleteEmbeddedObject; | 5773 DeleteEmbeddedObjectRequest deleteEmbeddedObject; |
| 5697 /** Deletes a filter view from a sheet. */ | 5774 /** Deletes a filter view from a sheet. */ |
| 5698 DeleteFilterViewRequest deleteFilterView; | 5775 DeleteFilterViewRequest deleteFilterView; |
| 5699 /** Deletes a named range. */ | 5776 /** Deletes a named range. */ |
| 5700 DeleteNamedRangeRequest deleteNamedRange; | 5777 DeleteNamedRangeRequest deleteNamedRange; |
| 5701 /** Deletes a protected range. */ | 5778 /** Deletes a protected range. */ |
| 5702 DeleteProtectedRangeRequest deleteProtectedRange; | 5779 DeleteProtectedRangeRequest deleteProtectedRange; |
| 5780 /** Deletes a range of cells from a sheet, shifting the remaining cells. */ |
| 5781 DeleteRangeRequest deleteRange; |
| 5703 /** Deletes a sheet. */ | 5782 /** Deletes a sheet. */ |
| 5704 DeleteSheetRequest deleteSheet; | 5783 DeleteSheetRequest deleteSheet; |
| 5705 /** Duplicates a filter view. */ | 5784 /** Duplicates a filter view. */ |
| 5706 DuplicateFilterViewRequest duplicateFilterView; | 5785 DuplicateFilterViewRequest duplicateFilterView; |
| 5707 /** Duplicates a sheet. */ | 5786 /** Duplicates a sheet. */ |
| 5708 DuplicateSheetRequest duplicateSheet; | 5787 DuplicateSheetRequest duplicateSheet; |
| 5709 /** Finds and replaces occurrences of some text with other text. */ | 5788 /** Finds and replaces occurrences of some text with other text. */ |
| 5710 FindReplaceRequest findReplace; | 5789 FindReplaceRequest findReplace; |
| 5711 /** Inserts new rows or columns in a sheet. */ | 5790 /** Inserts new rows or columns in a sheet. */ |
| 5712 InsertDimensionRequest insertDimension; | 5791 InsertDimensionRequest insertDimension; |
| 5792 /** Inserts new cells in a sheet, shifting the existing cells. */ |
| 5793 InsertRangeRequest insertRange; |
| 5713 /** Merges cells together. */ | 5794 /** Merges cells together. */ |
| 5714 MergeCellsRequest mergeCells; | 5795 MergeCellsRequest mergeCells; |
| 5715 /** Moves rows or columns to another location in a sheet. */ | 5796 /** Moves rows or columns to another location in a sheet. */ |
| 5716 MoveDimensionRequest moveDimension; | 5797 MoveDimensionRequest moveDimension; |
| 5717 /** Pastes data (HTML or delimited) into a sheet. */ | 5798 /** Pastes data (HTML or delimited) into a sheet. */ |
| 5718 PasteDataRequest pasteData; | 5799 PasteDataRequest pasteData; |
| 5719 /** Repeats a single cell across a range. */ | 5800 /** Repeats a single cell across a range. */ |
| 5720 RepeatCellRequest repeatCell; | 5801 RepeatCellRequest repeatCell; |
| 5721 /** Sets the basic filter on a sheet. */ | 5802 /** Sets the basic filter on a sheet. */ |
| 5722 SetBasicFilterRequest setBasicFilter; | 5803 SetBasicFilterRequest setBasicFilter; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5812 } | 5893 } |
| 5813 if (_json.containsKey("deleteFilterView")) { | 5894 if (_json.containsKey("deleteFilterView")) { |
| 5814 deleteFilterView = new DeleteFilterViewRequest.fromJson(_json["deleteFilte
rView"]); | 5895 deleteFilterView = new DeleteFilterViewRequest.fromJson(_json["deleteFilte
rView"]); |
| 5815 } | 5896 } |
| 5816 if (_json.containsKey("deleteNamedRange")) { | 5897 if (_json.containsKey("deleteNamedRange")) { |
| 5817 deleteNamedRange = new DeleteNamedRangeRequest.fromJson(_json["deleteNamed
Range"]); | 5898 deleteNamedRange = new DeleteNamedRangeRequest.fromJson(_json["deleteNamed
Range"]); |
| 5818 } | 5899 } |
| 5819 if (_json.containsKey("deleteProtectedRange")) { | 5900 if (_json.containsKey("deleteProtectedRange")) { |
| 5820 deleteProtectedRange = new DeleteProtectedRangeRequest.fromJson(_json["del
eteProtectedRange"]); | 5901 deleteProtectedRange = new DeleteProtectedRangeRequest.fromJson(_json["del
eteProtectedRange"]); |
| 5821 } | 5902 } |
| 5903 if (_json.containsKey("deleteRange")) { |
| 5904 deleteRange = new DeleteRangeRequest.fromJson(_json["deleteRange"]); |
| 5905 } |
| 5822 if (_json.containsKey("deleteSheet")) { | 5906 if (_json.containsKey("deleteSheet")) { |
| 5823 deleteSheet = new DeleteSheetRequest.fromJson(_json["deleteSheet"]); | 5907 deleteSheet = new DeleteSheetRequest.fromJson(_json["deleteSheet"]); |
| 5824 } | 5908 } |
| 5825 if (_json.containsKey("duplicateFilterView")) { | 5909 if (_json.containsKey("duplicateFilterView")) { |
| 5826 duplicateFilterView = new DuplicateFilterViewRequest.fromJson(_json["dupli
cateFilterView"]); | 5910 duplicateFilterView = new DuplicateFilterViewRequest.fromJson(_json["dupli
cateFilterView"]); |
| 5827 } | 5911 } |
| 5828 if (_json.containsKey("duplicateSheet")) { | 5912 if (_json.containsKey("duplicateSheet")) { |
| 5829 duplicateSheet = new DuplicateSheetRequest.fromJson(_json["duplicateSheet"
]); | 5913 duplicateSheet = new DuplicateSheetRequest.fromJson(_json["duplicateSheet"
]); |
| 5830 } | 5914 } |
| 5831 if (_json.containsKey("findReplace")) { | 5915 if (_json.containsKey("findReplace")) { |
| 5832 findReplace = new FindReplaceRequest.fromJson(_json["findReplace"]); | 5916 findReplace = new FindReplaceRequest.fromJson(_json["findReplace"]); |
| 5833 } | 5917 } |
| 5834 if (_json.containsKey("insertDimension")) { | 5918 if (_json.containsKey("insertDimension")) { |
| 5835 insertDimension = new InsertDimensionRequest.fromJson(_json["insertDimensi
on"]); | 5919 insertDimension = new InsertDimensionRequest.fromJson(_json["insertDimensi
on"]); |
| 5836 } | 5920 } |
| 5921 if (_json.containsKey("insertRange")) { |
| 5922 insertRange = new InsertRangeRequest.fromJson(_json["insertRange"]); |
| 5923 } |
| 5837 if (_json.containsKey("mergeCells")) { | 5924 if (_json.containsKey("mergeCells")) { |
| 5838 mergeCells = new MergeCellsRequest.fromJson(_json["mergeCells"]); | 5925 mergeCells = new MergeCellsRequest.fromJson(_json["mergeCells"]); |
| 5839 } | 5926 } |
| 5840 if (_json.containsKey("moveDimension")) { | 5927 if (_json.containsKey("moveDimension")) { |
| 5841 moveDimension = new MoveDimensionRequest.fromJson(_json["moveDimension"]); | 5928 moveDimension = new MoveDimensionRequest.fromJson(_json["moveDimension"]); |
| 5842 } | 5929 } |
| 5843 if (_json.containsKey("pasteData")) { | 5930 if (_json.containsKey("pasteData")) { |
| 5844 pasteData = new PasteDataRequest.fromJson(_json["pasteData"]); | 5931 pasteData = new PasteDataRequest.fromJson(_json["pasteData"]); |
| 5845 } | 5932 } |
| 5846 if (_json.containsKey("repeatCell")) { | 5933 if (_json.containsKey("repeatCell")) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5957 } | 6044 } |
| 5958 if (deleteFilterView != null) { | 6045 if (deleteFilterView != null) { |
| 5959 _json["deleteFilterView"] = (deleteFilterView).toJson(); | 6046 _json["deleteFilterView"] = (deleteFilterView).toJson(); |
| 5960 } | 6047 } |
| 5961 if (deleteNamedRange != null) { | 6048 if (deleteNamedRange != null) { |
| 5962 _json["deleteNamedRange"] = (deleteNamedRange).toJson(); | 6049 _json["deleteNamedRange"] = (deleteNamedRange).toJson(); |
| 5963 } | 6050 } |
| 5964 if (deleteProtectedRange != null) { | 6051 if (deleteProtectedRange != null) { |
| 5965 _json["deleteProtectedRange"] = (deleteProtectedRange).toJson(); | 6052 _json["deleteProtectedRange"] = (deleteProtectedRange).toJson(); |
| 5966 } | 6053 } |
| 6054 if (deleteRange != null) { |
| 6055 _json["deleteRange"] = (deleteRange).toJson(); |
| 6056 } |
| 5967 if (deleteSheet != null) { | 6057 if (deleteSheet != null) { |
| 5968 _json["deleteSheet"] = (deleteSheet).toJson(); | 6058 _json["deleteSheet"] = (deleteSheet).toJson(); |
| 5969 } | 6059 } |
| 5970 if (duplicateFilterView != null) { | 6060 if (duplicateFilterView != null) { |
| 5971 _json["duplicateFilterView"] = (duplicateFilterView).toJson(); | 6061 _json["duplicateFilterView"] = (duplicateFilterView).toJson(); |
| 5972 } | 6062 } |
| 5973 if (duplicateSheet != null) { | 6063 if (duplicateSheet != null) { |
| 5974 _json["duplicateSheet"] = (duplicateSheet).toJson(); | 6064 _json["duplicateSheet"] = (duplicateSheet).toJson(); |
| 5975 } | 6065 } |
| 5976 if (findReplace != null) { | 6066 if (findReplace != null) { |
| 5977 _json["findReplace"] = (findReplace).toJson(); | 6067 _json["findReplace"] = (findReplace).toJson(); |
| 5978 } | 6068 } |
| 5979 if (insertDimension != null) { | 6069 if (insertDimension != null) { |
| 5980 _json["insertDimension"] = (insertDimension).toJson(); | 6070 _json["insertDimension"] = (insertDimension).toJson(); |
| 5981 } | 6071 } |
| 6072 if (insertRange != null) { |
| 6073 _json["insertRange"] = (insertRange).toJson(); |
| 6074 } |
| 5982 if (mergeCells != null) { | 6075 if (mergeCells != null) { |
| 5983 _json["mergeCells"] = (mergeCells).toJson(); | 6076 _json["mergeCells"] = (mergeCells).toJson(); |
| 5984 } | 6077 } |
| 5985 if (moveDimension != null) { | 6078 if (moveDimension != null) { |
| 5986 _json["moveDimension"] = (moveDimension).toJson(); | 6079 _json["moveDimension"] = (moveDimension).toJson(); |
| 5987 } | 6080 } |
| 5988 if (pasteData != null) { | 6081 if (pasteData != null) { |
| 5989 _json["pasteData"] = (pasteData).toJson(); | 6082 _json["pasteData"] = (pasteData).toJson(); |
| 5990 } | 6083 } |
| 5991 if (repeatCell != null) { | 6084 if (repeatCell != null) { |
| (...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7634 } | 7727 } |
| 7635 if (range != null) { | 7728 if (range != null) { |
| 7636 _json["range"] = range; | 7729 _json["range"] = range; |
| 7637 } | 7730 } |
| 7638 if (values != null) { | 7731 if (values != null) { |
| 7639 _json["values"] = values; | 7732 _json["values"] = values; |
| 7640 } | 7733 } |
| 7641 return _json; | 7734 return _json; |
| 7642 } | 7735 } |
| 7643 } | 7736 } |
| OLD | NEW |