Request
A single kind of update to apply to a spreadsheet.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
kind . The kind of update. Exactly one field is required.
kind
can be only one of the following:
|
|
updateSpreadsheetProperties
|
Updates the spreadsheet's properties. |
updateSheetProperties
|
Updates a sheet's properties. |
updateDimensionProperties
|
Updates dimensions' properties. |
updateNamedRange
|
Updates a named range. |
repeatCell
|
Repeats a single cell across a range. |
addNamedRange
|
Adds a named range. |
deleteNamedRange
|
Deletes a named range. |
addSheet
|
Adds a sheet. |
deleteSheet
|
Deletes a sheet. |
autoFill
|
Automatically fills in more data based on existing data. |
cutPaste
|
Cuts data from one area and pastes it to another. |
copyPaste
|
Copies data from one area and pastes it to another. |
mergeCells
|
Merges cells together. |
unmergeCells
|
Unmerges merged cells. |
updateBorders
|
Updates the borders in a range of cells. |
updateCells
|
Updates many cells at once. |
addFilterView
|
Adds a filter view. |
appendCells
|
Appends cells after the last row with data in a sheet. |
clearBasicFilter
|
Clears the basic filter on a sheet. |
deleteDimension
|
Deletes rows or columns in a sheet. |
deleteEmbeddedObject
|
Deletes an embedded object (e.g, chart, image) in a sheet. |
deleteFilterView
|
Deletes a filter view from a sheet. |
duplicateFilterView
|
Duplicates a filter view. |
duplicateSheet
|
Duplicates a sheet. |
findReplace
|
Finds and replaces occurrences of some text with other text. |
insertDimension
|
Inserts new rows or columns in a sheet. |
insertRange
|
Inserts new cells in a sheet, shifting the existing cells. |
moveDimension
|
Moves rows or columns to another location in a sheet. |
updateEmbeddedObjectPosition
|
Updates an embedded object's (e.g. chart, image) position. |
pasteData
|
Pastes data (HTML or delimited) into a sheet. |
textToColumns
|
Converts a column of text into many columns of text. |
updateFilterView
|
Updates the properties of a filter view. |
deleteRange
|
Deletes a range of cells from a sheet, shifting the remaining cells. |
appendDimension
|
Appends dimensions to the end of a sheet. |
addConditionalFormatRule
|
Adds a new conditional format rule. |
updateConditionalFormatRule
|
Updates an existing conditional format rule. |
deleteConditionalFormatRule
|
Deletes an existing conditional format rule. |
sortRange
|
Sorts data in a range. |
setDataValidation
|
Sets data validation for one or more cells. |
setBasicFilter
|
Sets the basic filter on a sheet. |
addProtectedRange
|
Adds a protected range. |
updateProtectedRange
|
Updates a protected range. |
deleteProtectedRange
|
Deletes a protected range. |
autoResizeDimensions
|
Automatically resizes one or more dimensions based on the contents of the cells in that dimension. |
addChart
|
Adds a chart. |
updateChartSpec
|
Updates a chart's specifications. |
updateBanding
|
Updates a banded range |
addBanding
|
Adds a new banded range |
deleteBanding
|
Removes a banded range |
createDeveloperMetadata
|
Creates new developer metadata |
updateDeveloperMetadata
|
Updates an existing developer metadata entry |
deleteDeveloperMetadata
|
Deletes developer metadata |
randomizeRange
|
Randomizes the order of the rows in a range. |
addDimensionGroup
|
Creates a group over the specified range. |
deleteDimensionGroup
|
Deletes a group over the specified range. |
updateDimensionGroup
|
Updates the state of the specified group. |
trimWhitespace
|
Trims cells of whitespace (such as spaces, tabs, or new lines). |
deleteDuplicates
|
Removes rows containing duplicate values in specified columns of a cell range. |
updateEmbeddedObjectBorder
|
Updates an embedded object's border. |
addSlicer
|
Adds a slicer. |
updateSlicerSpec
|
Updates a slicer's specifications. |
addDataSource
|
Adds a data source. |
updateDataSource
|
Updates a data source. |
deleteDataSource
|
Deletes a data source. |
refreshDataSource
|
Refreshes one or multiple data sources and associated dbobjects. |
cancelDataSourceRefresh
|
Cancels refreshes of one or multiple data sources and associated dbobjects. |
UpdateSpreadsheetPropertiesRequest
Updates properties of a spreadsheet.
JSON representation |
---|
{
"properties": {
object ( |
Fields | |
---|---|
properties
|
The properties to update. |
fields
|
The fields that should be updated. At least one field must be specified. The root 'properties' is implied and should not be specified. A single
|
UpdateSheetPropertiesRequest
Updates properties of the sheet with the specified
sheetId
.
JSON representation |
---|
{
"properties": {
object ( |
Fields | |
---|---|
properties
|
The properties to update. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
UpdateDimensionPropertiesRequest
Updates properties of dimensions within the specified range.
JSON representation |
---|
{ "properties": { object ( |
Fields | |
---|---|
properties
|
Properties to update. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
Union field
dimension_range . The dimension range.
dimension_range
can be only one of the following:
|
|
range
|
The rows or columns to update. |
dataSourceSheetRange
|
The columns on a data source sheet to update. |
DataSourceSheetDimensionRange
A range along a single dimension on a
DATA_SOURCE
sheet.
JSON representation |
---|
{
"sheetId": integer,
"columnReferences": [
{
object ( |
Fields | |
---|---|
sheetId
|
The ID of the data source sheet the range is on. |
columnReferences[]
|
The columns on the data source sheet. |
UpdateNamedRangeRequest
Updates properties of the named range with the specified
namedRangeId
.
JSON representation |
---|
{
"namedRange": {
object ( |
Fields | |
---|---|
namedRange
|
The named range to update with the new properties. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
RepeatCellRequest
Updates all cells in the range to the values in the given Cell object. Only the fields listed in the
fields
field are updated; others are unchanged.
If writing a cell with a formula, the formula's ranges will automatically increment for each field in the range. For example, if writing a cell with formula
=A1
into range B2:C4, B2 would be
=A1
, B3 would be
=A2
, B4 would be
=A3
, C2 would be
=B1
, C3 would be
=B2
, C4 would be
=B3
.
To keep the formula's ranges static, use the
$
indicator. For example, use the formula
=$A$1
to prevent both the row and the column from incrementing.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range to repeat the cell in. |
cell
|
The data to write. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
AddNamedRangeRequest
Adds a named range to the spreadsheet.
JSON representation |
---|
{
"namedRange": {
object ( |
Fields | |
---|---|
namedRange
|
The named range to add. The
|
DeleteNamedRangeRequest
Removes the named range with the given ID from the spreadsheet.
JSON representation |
---|
{ "namedRangeId": string } |
Fields | |
---|---|
namedRangeId
|
The ID of the named range to delete. |
AddSheetRequest
Adds a new sheet. When a sheet is added at a given index, all subsequent sheets' indexes are incremented. To add an object sheet, use
AddChartRequest
instead and specify
EmbeddedObjectPosition.sheetId
or
EmbeddedObjectPosition.newSheet
.
JSON representation |
---|
{
"properties": {
object ( |
Fields | |
---|---|
properties
|
The properties the new sheet should have. All properties are optional. The
|
DeleteSheetRequest
Deletes the requested sheet.
JSON representation |
---|
{ "sheetId": integer } |
Fields | |
---|---|
sheetId
|
The ID of the sheet to delete.
If the sheet is of
|
AutoFillRequest
Fills in more data based on existing data.
JSON representation |
---|
{ "useAlternateSeries": boolean, // Union field |
Fields | |
---|---|
useAlternateSeries
|
True if we should generate data with the "alternate" series. This differs based on the type and amount of source data. |
Union field
area . The area to autofill.
area
can be only one of the following:
|
|
range
|
The range to autofill. This will examine the range and detect the location that has data and automatically fill that data in to the rest of the range. |
sourceAndDestination
|
The source and destination areas to autofill. This explicitly lists the source of the autofill and where to extend that data. |
SourceAndDestination
A combination of a source range and how to extend that source.
JSON representation |
---|
{ "source": { object ( |
Fields | |
---|---|
source
|
The location of the data to use as the source of the autofill. |
dimension
|
The dimension that data should be filled into. |
fillLength
|
The number of rows or columns that data should be filled into. Positive numbers expand beyond the last row or last column of the source. Negative numbers expand before the first row or first column of the source. |
CutPasteRequest
Moves data from the source to the destination.
JSON representation |
---|
{ "source": { object ( |
Fields | |
---|---|
source
|
The source data to cut. |
destination
|
The top-left coordinate where the data should be pasted. |
pasteType
|
What kind of data to paste. All the source data will be cut, regardless of what is pasted. |
PasteType
What kind of data should be pasted.
Enums | |
---|---|
PASTE_NORMAL
|
Paste values, formulas, formats, and merges. |
PASTE_VALUES
|
Paste the values ONLY without formats, formulas, or merges. |
PASTE_FORMAT
|
Paste the format and data validation only. |
PASTE_NO_BORDERS
|
Like
PASTE_NORMAL
but without borders.
|
PASTE_FORMULA
|
Paste the formulas only. |
PASTE_DATA_VALIDATION
|
Paste the data validation only. |
PASTE_CONDITIONAL_FORMATTING
|
Paste the conditional formatting rules only. |
CopyPasteRequest
Copies data from the source to the destination.
JSON representation |
---|
{ "source": { object ( |
Fields | |
---|---|
source
|
The source range to copy. |
destination
|
The location to paste to. If the range covers a span that's a multiple of the source's height or width, then the data will be repeated to fill in the destination range. If the range is smaller than the source range, the entire source data will still be copied (beyond the end of the destination range). |
pasteType
|
What kind of data to paste. |
pasteOrientation
|
How that data should be oriented when pasting. |
PasteOrientation
How a paste operation should be performed.
Enums | |
---|---|
NORMAL
|
Paste normally. |
TRANSPOSE
|
Paste transposed, where all rows become columns and vice versa. |
MergeCellsRequest
Merges all cells in the range.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range of cells to merge. |
mergeType
|
How the cells should be merged. |
MergeType
The type of merge to create.
Enums | |
---|---|
MERGE_ALL
|
Create a single merge from the range |
MERGE_COLUMNS
|
Create a merge for each column in the range |
MERGE_ROWS
|
Create a merge for each row in the range |
UnmergeCellsRequest
Unmerges cells in the given range.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The range within which all cells should be unmerged. If the range spans multiple merges, all will be unmerged. The range must not partially span any merge. |
UpdateBordersRequest
Updates the borders of a range. If a field is not set in the request, that means the border remains as-is. For example, with two subsequent UpdateBordersRequest:
-
range: A1:A5
{ top: RED, bottom: WHITE }
-
range: A1:A5
{ left: BLUE }
That would result in A1:A5 having a borders of
{ top: RED, bottom: WHITE, left: BLUE }
. If you want to clear a border, explicitly set the style to
NONE
.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range whose borders should be updated. |
top
|
The border to put at the top of the range. |
bottom
|
The border to put at the bottom of the range. |
left
|
The border to put at the left of the range. |
right
|
The border to put at the right of the range. |
innerHorizontal
|
The horizontal border to put within the range. |
innerVertical
|
The vertical border to put within the range. |
UpdateCellsRequest
Updates all cells in a range with new data.
JSON representation |
---|
{ "rows": [ { object ( |
Fields | |
---|---|
rows[]
|
The data to write. |
fields
|
The fields of CellData that should be updated. At least one field must be specified. The root is the CellData; 'row.values.' should not be specified. A single
|
Union field
area . The location data should be written. Exactly one value must be set.
area
can be only one of the following:
|
|
start
|
The coordinate to start writing data at. Any number of rows and columns (including a different number of columns per row) may be written. |
range
|
The range to write data to.
If the data in rows does not cover the entire requested range, the fields matching those set in
|
AddFilterViewRequest
Adds a filter view.
JSON representation |
---|
{
"filter": {
object ( |
Fields | |
---|---|
filter
|
The filter to add. The
|
AppendCellsRequest
Adds new cells after the last row with data in a sheet, inserting new rows into the sheet if necessary.
JSON representation |
---|
{
"sheetId": integer,
"rows": [
{
object ( |
Fields | |
---|---|
sheetId
|
The sheet ID to append the data to. |
rows[]
|
The data to append. |
fields
|
The fields of CellData that should be updated. At least one field must be specified. The root is the CellData; 'row.values.' should not be specified. A single
|
ClearBasicFilterRequest
Clears the basic filter, if any exists on the sheet.
JSON representation |
---|
{ "sheetId": integer } |
Fields | |
---|---|
sheetId
|
The sheet ID on which the basic filter should be cleared. |
DeleteDimensionRequest
Deletes the dimensions from the sheet.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The dimensions to delete from the sheet. |
DeleteEmbeddedObjectRequest
Deletes the embedded object with the given ID.
JSON representation |
---|
{ "objectId": integer } |
Fields | |
---|---|
objectId
|
The ID of the embedded object to delete. |
DeleteFilterViewRequest
Deletes a particular filter view.
JSON representation |
---|
{ "filterId": integer } |
Fields | |
---|---|
filterId
|
The ID of the filter to delete. |
DuplicateFilterViewRequest
Duplicates a particular filter view.
JSON representation |
---|
{ "filterId": integer } |
Fields | |
---|---|
filterId
|
The ID of the filter being duplicated. |
DuplicateSheetRequest
Duplicates the contents of a sheet.
JSON representation |
---|
{ "sourceSheetId": integer, "insertSheetIndex": integer, "newSheetId": integer, "newSheetName": string } |
Fields | |
---|---|
sourceSheetId
|
The sheet to duplicate.
If the source sheet is of
|
insertSheetIndex
|
The zero-based index where the new sheet should be inserted. The index of all sheets after this are incremented. |
newSheetId
|
If set, the ID of the new sheet. If not set, an ID is chosen. If set, the ID must not conflict with any existing sheet ID. If set, it must be non-negative. |
newSheetName
|
The name of the new sheet. If empty, a new name is chosen for you. |
FindReplaceRequest
Finds and replaces data in cells over a range, sheet, or all sheets.
JSON representation |
---|
{ "find": string, "replacement": string, "matchCase": boolean, "matchEntireCell": boolean, "searchByRegex": boolean, "includeFormulas": boolean, // Union field |
Fields | |
---|---|
find
|
The value to search. |
replacement
|
The value to use as the replacement. |
matchCase
|
True if the search is case sensitive. |
matchEntireCell
|
True if the find value should match the entire cell. |
searchByRegex
|
True if the find value is a regex. The regular expression and replacement should follow Java regex rules at
https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html. The replacement string is allowed to refer to capturing groups. For example, if one cell has the contents
|
includeFormulas
|
True if the search should include cells with formulas. False to skip cells with formulas. |
Union field
scope . The scope over which to find/replace -- one and only one must be set.
scope
can be only one of the following:
|
|
range
|
The range to find/replace over. |
sheetId
|
The sheet to find/replace over. |
allSheets
|
True to find/replace over all sheets. |
InsertDimensionRequest
Inserts rows or columns in a sheet at a particular index.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The dimensions to insert. Both the start and end indexes must be bounded. |
inheritFromBefore
|
Whether dimension properties should be extended from the dimensions before or after the newly inserted dimensions. True to inherit from the dimensions before (in which case the start index must be greater than 0), and false to inherit from the dimensions after.
For example, if row index 0 has red background and row index 1 has a green background, then inserting 2 rows at index 1 can inherit either the green or red background. If
|
InsertRangeRequest
Inserts cells into a range, shifting the existing cells over or down.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range to insert new cells into. |
shiftDimension
|
The dimension which will be shifted when inserting cells. If
|
MoveDimensionRequest
Moves one or more rows or columns.
JSON representation |
---|
{
"source": {
object ( |
Fields | |
---|---|
source
|
The source dimensions to move. |
destinationIndex
|
The zero-based start index of where to move the source data to, based on the coordinates before the source data is removed from the grid. Existing data will be shifted down or right (depending on the dimension) to make room for the moved dimensions. The source dimensions are removed from the grid, so the the data may end up in a different index than specified.
For example, given
|
UpdateEmbeddedObjectPositionRequest
Update an embedded object's position (such as a moving or resizing a chart or image).
JSON representation |
---|
{
"objectId": integer,
"newPosition": {
object ( |
Fields | |
---|---|
objectId
|
The ID of the object to moved. |
newPosition
|
An explicit position to move the embedded object to. If
|
fields
|
The fields of
|
PasteDataRequest
Inserts data into the spreadsheet starting at the specified coordinate.
JSON representation |
---|
{ "coordinate": { object ( |
Fields | |
---|---|
coordinate
|
The coordinate at which the data should start being inserted. |
data
|
The data to insert. |
type
|
How the data should be pasted. |
Union field
kind . How to interpret the data, exactly one value must be set.
kind
can be only one of the following:
|
|
delimiter
|
The delimiter in the data. |
html
|
True if the data is HTML. |
TextToColumnsRequest
Splits a column of text into multiple columns, based on a delimiter in each cell.
JSON representation |
---|
{ "source": { object ( |
Fields | |
---|---|
source
|
The source data range. This must span exactly one column. |
delimiter
|
The delimiter to use. Used only if delimiterType is
|
delimiterType
|
The delimiter type to use. |
DelimiterType
The delimiter to split on.
Enums | |
---|---|
DELIMITER_TYPE_UNSPECIFIED
|
Default value. This value must not be used. |
COMMA
|
"," |
SEMICOLON
|
";" |
PERIOD
|
"." |
SPACE
|
" " |
CUSTOM
|
A custom value as defined in delimiter. |
AUTODETECT
|
Automatically detect columns. |
UpdateFilterViewRequest
Updates properties of the filter view.
JSON representation |
---|
{
"filter": {
object ( |
Fields | |
---|---|
filter
|
The new properties of the filter view. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
DeleteRangeRequest
Deletes a range of cells, shifting other cells into the deleted area.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range of cells to delete. |
shiftDimension
|
The dimension from which deleted cells will be replaced with. If
|
AppendDimensionRequest
Appends rows or columns to the end of a sheet.
JSON representation |
---|
{
"sheetId": integer,
"dimension": enum ( |
Fields | |
---|---|
sheetId
|
The sheet to append rows or columns to. |
dimension
|
Whether rows or columns should be appended. |
length
|
The number of rows or columns to append. |
AddConditionalFormatRuleRequest
Adds a new conditional format rule at the given index. All subsequent rules' indexes are incremented.
JSON representation |
---|
{
"rule": {
object ( |
Fields | |
---|---|
rule
|
The rule to add. |
index
|
The zero-based index where the rule should be inserted. |
UpdateConditionalFormatRuleRequest
Updates a conditional format rule at the given index, or moves a conditional format rule to another index.
JSON representation |
---|
{ "index": integer, "sheetId": integer, // Union field |
Fields | |
---|---|
index
|
The zero-based index of the rule that should be replaced or moved. |
sheetId
|
The sheet of the rule to move. Required if
|
Union field
instruction . The kind of update that should happen.
instruction
can be only one of the following:
|
|
rule
|
The rule that should replace the rule at the given index. |
newIndex
|
The zero-based new index the rule should end up at. |
DeleteConditionalFormatRuleRequest
Deletes a conditional format rule at the given index. All subsequent rules' indexes are decremented.
JSON representation |
---|
{ "index": integer, "sheetId": integer } |
Fields | |
---|---|
index
|
The zero-based index of the rule to be deleted. |
sheetId
|
The sheet the rule is being deleted from. |
SortRangeRequest
Sorts data in rows based on a sort order per column.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range to sort. |
sortSpecs[]
|
The sort order per column. Later specifications are used when values are equal in the earlier specifications. |
SetDataValidationRequest
Sets a data validation rule to every cell in the range. To clear validation in a range, call this with no rule specified.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range the data validation rule should apply to. |
rule
|
The data validation rule to set on each cell in the range, or empty to clear the data validation in the range. |
SetBasicFilterRequest
Sets the basic filter associated with a sheet.
JSON representation |
---|
{
"filter": {
object ( |
Fields | |
---|---|
filter
|
The filter to set. |
AddProtectedRangeRequest
Adds a new protected range.
JSON representation |
---|
{
"protectedRange": {
object ( |
Fields | |
---|---|
protectedRange
|
The protected range to be added. The
|
UpdateProtectedRangeRequest
Updates an existing protected range with the specified
protectedRangeId
.
JSON representation |
---|
{
"protectedRange": {
object ( |
Fields | |
---|---|
protectedRange
|
The protected range to update with the new properties. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
DeleteProtectedRangeRequest
Deletes the protected range with the given ID.
JSON representation |
---|
{ "protectedRangeId": integer } |
Fields | |
---|---|
protectedRangeId
|
The ID of the protected range to delete. |
AutoResizeDimensionsRequest
Automatically resizes one or more dimensions based on the contents of the cells in that dimension.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
dimension_range . The dimension range.
dimension_range
can be only one of the following:
|
|
dimensions
|
The dimensions to automatically resize. |
dataSourceSheetDimensions
|
The dimensions on a data source sheet to automatically resize. |
AddChartRequest
Adds a chart to a sheet in the spreadsheet.
JSON representation |
---|
{
"chart": {
object ( |
Fields | |
---|---|
chart
|
The chart that should be added to the spreadsheet, including the position where it should be placed. The
|
UpdateChartSpecRequest
Updates a chart's specifications. (This does not move or resize a chart. To move or resize a chart, use
UpdateEmbeddedObjectPositionRequest
.)
JSON representation |
---|
{
"chartId": integer,
"spec": {
object ( |
Fields | |
---|---|
chartId
|
The ID of the chart to update. |
spec
|
The specification to apply to the chart. |
UpdateBandingRequest
Updates properties of the supplied banded range.
JSON representation |
---|
{
"bandedRange": {
object ( |
Fields | |
---|---|
bandedRange
|
The banded range to update with the new properties. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
AddBandingRequest
Adds a new banded range to the spreadsheet.
JSON representation |
---|
{
"bandedRange": {
object ( |
Fields | |
---|---|
bandedRange
|
The banded range to add. The
|
DeleteBandingRequest
Removes the banded range with the given ID from the spreadsheet.
JSON representation |
---|
{ "bandedRangeId": integer } |
Fields | |
---|---|
bandedRangeId
|
The ID of the banded range to delete. |
CreateDeveloperMetadataRequest
A request to create developer metadata.
JSON representation |
---|
{
"developerMetadata": {
object ( |
Fields | |
---|---|
developerMetadata
|
The developer metadata to create. |
UpdateDeveloperMetadataRequest
A request to update properties of developer metadata. Updates the properties of the developer metadata selected by the filters to the values provided in the
DeveloperMetadata
resource. Callers must specify the properties they wish to update in the fields parameter, as well as specify at least one
DataFilter
matching the metadata they wish to update.
JSON representation |
---|
{ "dataFilters": [ { object ( |
Fields | |
---|---|
dataFilters[]
|
The filters matching the developer metadata entries to update. |
developerMetadata
|
The value that all metadata matched by the data filters will be updated to. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
DeleteDeveloperMetadataRequest
A request to delete developer metadata.
JSON representation |
---|
{
"dataFilter": {
object ( |
Fields | |
---|---|
dataFilter
|
The data filter describing the criteria used to select which developer metadata entry to delete. |
RandomizeRangeRequest
Randomizes the order of the rows in a range.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The range to randomize. |
AddDimensionGroupRequest
Creates a group over the specified range.
If the requested range is a superset of the range of an existing group G, then the depth of G is incremented and this new group G' has the depth of that group. For example, a group [C:D, depth 1] + [B:E] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range is a subset of the range of an existing group G, then the depth of the new group G' becomes one greater than the depth of G. For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1] and [C:D, depth 2]. If the requested range starts before and ends within, or starts within and ends after, the range of an existing group G, then the range of the existing group G becomes the union of the ranges, and the new group G' has depth one greater than the depth of G and range as the intersection of the ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E, depth 1] and [C:D, depth 2].
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The range over which to create a group. |
DeleteDimensionGroupRequest
Deletes a group over the specified range by decrementing the depth of the dimensions in the range.
For example, assume the sheet has a depth-1 group over B:E and a depth-2 group over C:D. Deleting a group over D:E leaves the sheet with a depth-1 group over B:D and a depth-2 group over C:C.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The range of the group to be deleted. |
UpdateDimensionGroupRequest
Updates the state of the specified group.
JSON representation |
---|
{
"dimensionGroup": {
object ( |
Fields | |
---|---|
dimensionGroup
|
The group whose state should be updated. The range and depth of the group should specify a valid group on the sheet, and all other fields updated. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
TrimWhitespaceRequest
Trims the whitespace (such as spaces, tabs, or new lines) in every cell in the specified range. This request removes all whitespace from the start and end of each cell's text, and reduces any subsequence of remaining whitespace characters to a single space. If the resulting trimmed text starts with a '+' or '=' character, the text remains as a string value and isn't interpreted as a formula.
JSON representation |
---|
{
"range": {
object ( |
Fields | |
---|---|
range
|
The range whose cells to trim. |
DeleteDuplicatesRequest
Removes rows within this range that contain values in the specified columns that are duplicates of values in any previous row. Rows with identical values but different letter cases, formatting, or formulas are considered to be duplicates.
This request also removes duplicate rows hidden from view (for example, due to a filter). When removing duplicates, the first instance of each duplicate row scanning from the top downwards is kept in the resulting range. Content outside of the specified range isn't removed, and rows considered duplicates do not have to be adjacent to each other in the range.
JSON representation |
---|
{ "range": { object ( |
Fields | |
---|---|
range
|
The range to remove duplicates rows from. |
comparisonColumns[]
|
The columns in the range to analyze for duplicate values. If no columns are selected then all columns are analyzed for duplicates. |
UpdateEmbeddedObjectBorderRequest
Updates an embedded object's border property.
JSON representation |
---|
{
"objectId": integer,
"border": {
object ( |
Fields | |
---|---|
objectId
|
The ID of the embedded object to update. |
border
|
The border that applies to the embedded object. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
AddSlicerRequest
Adds a slicer to a sheet in the spreadsheet.
JSON representation |
---|
{
"slicer": {
object ( |
Fields | |
---|---|
slicer
|
The slicer that should be added to the spreadsheet, including the position where it should be placed. The
|
UpdateSlicerSpecRequest
Updates a slicer's specifications. (This does not move or resize a slicer. To move or resize a slicer use
UpdateEmbeddedObjectPositionRequest
.
JSON representation |
---|
{
"slicerId": integer,
"spec": {
object ( |
Fields | |
---|---|
slicerId
|
The id of the slicer to update. |
spec
|
The specification to apply to the slicer. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
AddDataSourceRequest
Adds a data source. After the data source is added successfully, an associated
DATA_SOURCE
sheet is created and an execution is triggered to refresh the sheet to read data from the data source.
The request requires an additional
bigquery.readonly
OAuth scope if you are adding a BigQuery data source.
JSON representation |
---|
{
"dataSource": {
object ( |
Fields | |
---|---|
dataSource
|
The data source to add. |
UpdateDataSourceRequest
Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated
DATA_SOURCE
sheet to read data from the updated data source.
The request requires an additional
bigquery.readonly
OAuth scope if you are updating a BigQuery data source.
JSON representation |
---|
{
"dataSource": {
object ( |
Fields | |
---|---|
dataSource
|
The data source to update. |
fields
|
The fields that should be updated. At least one field must be specified. The root
|
DeleteDataSourceRequest
Deletes a data source. The request also deletes the associated data source sheet, and unlinks all associated data source objects.
JSON representation |
---|
{ "dataSourceId": string } |
Fields | |
---|---|
dataSourceId
|
The ID of the data source to delete. |
RefreshDataSourceRequest
Refreshes one or multiple data source objects in the spreadsheet by the specified references.
The request requires an additional
bigquery.readonly
OAuth scope if you are refreshing a BigQuery data source.
If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.
JSON representation |
---|
{ "force": boolean, // Union field |
Fields | |
---|---|
force
|
Refreshes the data source objects regardless of the current state. If not set and a referenced data source object was in error state, the refresh will fail immediately. |
Union field
target . Specifies what to refresh.
target
can be only one of the following:
|
|
references
|
References to data source objects to refresh. |
dataSourceId
|
Reference to a
|
isAll
|
Refreshes all existing data source objects in the spreadsheet. |
DataSourceObjectReferences
A list of references to data source objects.
JSON representation |
---|
{
"references": [
{
object ( |
Fields | |
---|---|
references[]
|
The references. |
CancelDataSourceRefreshRequest
Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references.
The request requires an additional
bigquery.readonly
OAuth scope if you are cancelling a refresh on a BigQuery data source.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
target . Specifies what to cancel.
target
can be only one of the following:
|
|
references
|
References to data source objects whose refreshes are to be cancelled. |
dataSourceId
|
Reference to a
|
isAll
|
Cancels all existing data source object refreshes for all data sources in the spreadsheet. |