2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-04 19:03:46 +00:00
restic/vendor/google.golang.org/api/sheets/v4/sheets-api.json

4562 lines
191 KiB
JSON
Raw Normal View History

2017-08-05 18:17:15 +00:00
{
"name": "sheets",
"batchPath": "batch",
"title": "Google Sheets API",
"ownerName": "Google",
"resources": {
"spreadsheets": {
"methods": {
"get": {
"description": "Returns the spreadsheet at the given ID.\nThe caller must specify the spreadsheet ID.\n\nBy default, data within grids will not be returned.\nYou can include grid data one of two ways:\n\n* Specify a field mask listing your desired fields using the `fields` URL\nparameter in HTTP\n\n* Set the includeGridData\nURL parameter to true. If a field mask is set, the `includeGridData`\nparameter is ignored\n\nFor large spreadsheets, it is recommended to retrieve only the specific\nfields of the spreadsheet that you want.\n\nTo retrieve only subsets of the spreadsheet, use the\nranges URL parameter.\nMultiple ranges can be specified. Limiting the range will\nreturn only the portions of the spreadsheet that intersect the requested\nranges. Ranges are specified using A1 notation.",
"response": {
"$ref": "Spreadsheet"
},
2017-09-13 12:09:48 +00:00
"parameterOrder": [
"spreadsheetId"
],
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"
],
"parameters": {
"includeGridData": {
"description": "True if grid data should be returned.\nThis parameter is ignored if a field mask was set in the request.",
2017-09-13 12:09:48 +00:00
"type": "boolean",
"location": "query"
2017-08-05 18:17:15 +00:00
},
"ranges": {
"description": "The ranges to retrieve from the spreadsheet.",
"type": "string",
2017-09-13 12:09:48 +00:00
"repeated": true,
"location": "query"
2017-08-05 18:17:15 +00:00
},
"spreadsheetId": {
2017-09-13 12:09:48 +00:00
"location": "path",
2017-08-05 18:17:15 +00:00
"description": "The spreadsheet to request.",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v4/spreadsheets/{spreadsheetId}",
2017-09-13 12:09:48 +00:00
"id": "sheets.spreadsheets.get",
"path": "v4/spreadsheets/{spreadsheetId}"
2017-08-05 18:17:15 +00:00
},
"batchUpdate": {
"request": {
"$ref": "BatchUpdateSpreadsheetRequest"
},
"description": "Applies one or more updates to the spreadsheet.\n\nEach request is validated before\nbeing applied. If any request is not valid then the entire request will\nfail and nothing will be applied.\n\nSome requests have replies to\ngive you some information about how\nthey are applied. The replies will mirror the requests. For example,\nif you applied 4 updates and the 3rd one had a reply, then the\nresponse will have 2 empty replies, the actual reply, and another empty\nreply, in that order.\n\nDue to the collaborative nature of spreadsheets, it is not guaranteed that\nthe spreadsheet will reflect exactly your changes after this completes,\nhowever it is guaranteed that the updates in the request will be\napplied together atomically. Your changes may be altered with respect to\ncollaborator changes. If there are no collaborators, the spreadsheet\nshould reflect your changes.",
"response": {
"$ref": "BatchUpdateSpreadsheetResponse"
},
"parameterOrder": [
"spreadsheetId"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
"parameters": {
"spreadsheetId": {
"location": "path",
"description": "The spreadsheet to apply the updates to.",
"type": "string",
"required": true
}
},
"flatPath": "v4/spreadsheets/{spreadsheetId}:batchUpdate",
"id": "sheets.spreadsheets.batchUpdate",
"path": "v4/spreadsheets/{spreadsheetId}:batchUpdate"
},
"create": {
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "Spreadsheet"
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
"parameters": {},
"flatPath": "v4/spreadsheets",
"path": "v4/spreadsheets",
2017-09-13 12:09:48 +00:00
"id": "sheets.spreadsheets.create",
"request": {
"$ref": "Spreadsheet"
},
"description": "Creates a spreadsheet, returning the newly created spreadsheet."
2017-08-05 18:17:15 +00:00
}
},
"resources": {
"values": {
"methods": {
2017-09-13 12:09:48 +00:00
"batchClear": {
"id": "sheets.spreadsheets.values.batchClear",
"path": "v4/spreadsheets/{spreadsheetId}/values:batchClear",
"request": {
"$ref": "BatchClearValuesRequest"
},
"description": "Clears one or more ranges of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and one or more ranges.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
"response": {
"$ref": "BatchClearValuesResponse"
},
"parameterOrder": [
"spreadsheetId"
],
"httpMethod": "POST",
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
"parameters": {
"spreadsheetId": {
"location": "path",
"description": "The ID of the spreadsheet to update.",
"type": "string",
"required": true
}
},
"flatPath": "v4/spreadsheets/{spreadsheetId}/values:batchClear"
},
2017-08-05 18:17:15 +00:00
"get": {
"description": "Returns a range of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and a range.",
2017-09-13 12:09:48 +00:00
"response": {
"$ref": "ValueRange"
},
2017-08-05 18:17:15 +00:00
"parameterOrder": [
"spreadsheetId",
"range"
],
2017-09-13 12:09:48 +00:00
"httpMethod": "GET",
2017-08-05 18:17:15 +00:00
"parameters": {
"majorDimension": {
2017-09-13 12:09:48 +00:00
"type": "string",
2017-08-05 18:17:15 +00:00
"location": "query",
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
2017-09-13 12:09:48 +00:00
"description": "The major dimension that results should use.\n\nFor example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,\nthen requesting `range=A1:B2,majorDimension=ROWS` will return\n`[[1,2],[3,4]]`,\nwhereas requesting `range=A1:B2,majorDimension=COLUMNS` will return\n`[[1,3],[2,4]]`."
2017-08-05 18:17:15 +00:00
},
"spreadsheetId": {
"description": "The ID of the spreadsheet to retrieve data from.",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true,
"location": "path"
2017-08-05 18:17:15 +00:00
},
"range": {
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true,
"location": "path",
"description": "The A1 notation of the values to retrieve."
2017-08-05 18:17:15 +00:00
},
"dateTimeRenderOption": {
2017-09-13 12:09:48 +00:00
"description": "How dates, times, and durations should be represented in the output.\nThis is ignored if value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
"type": "string",
2017-08-05 18:17:15 +00:00
"location": "query",
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
2017-09-13 12:09:48 +00:00
]
2017-08-05 18:17:15 +00:00
},
"valueRenderOption": {
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
],
"description": "How values should be represented in the output.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
2017-09-13 12:09:48 +00:00
"type": "string",
"location": "query"
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"
],
"flatPath": "v4/spreadsheets/{spreadsheetId}/values/{range}",
2017-09-13 12:09:48 +00:00
"id": "sheets.spreadsheets.values.get",
"path": "v4/spreadsheets/{spreadsheetId}/values/{range}"
2017-08-05 18:17:15 +00:00
},
"update": {
2017-09-13 12:09:48 +00:00
"request": {
"$ref": "ValueRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"description": "Sets values in a range of a spreadsheet.\nThe caller must specify the spreadsheet ID, range, and\na valueInputOption.",
"httpMethod": "PUT",
2017-08-05 18:17:15 +00:00
"parameterOrder": [
"spreadsheetId",
"range"
],
2017-09-13 12:09:48 +00:00
"response": {
"$ref": "UpdateValuesResponse"
},
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
"parameters": {
"spreadsheetId": {
2017-09-13 12:09:48 +00:00
"location": "path",
2017-08-05 18:17:15 +00:00
"description": "The ID of the spreadsheet to update.",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true
2017-08-05 18:17:15 +00:00
},
"responseValueRenderOption": {
2017-09-13 12:09:48 +00:00
"type": "string",
2017-08-05 18:17:15 +00:00
"location": "query",
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
],
2017-09-13 12:09:48 +00:00
"description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE."
2017-08-05 18:17:15 +00:00
},
"valueInputOption": {
"location": "query",
"enum": [
"INPUT_VALUE_OPTION_UNSPECIFIED",
"RAW",
"USER_ENTERED"
],
"description": "How the input data should be interpreted.",
"type": "string"
},
"responseDateTimeRenderOption": {
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
2017-09-13 12:09:48 +00:00
],
"description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
"type": "string",
"location": "query"
},
"includeValuesInResponse": {
"location": "query",
"description": "Determines if the update response should include the values\nof the cells that were updated. By default, responses\ndo not include the updated values.\nIf the range to write was larger than than the range actually written,\nthe response will include all values in the requested range (excluding\ntrailing empty rows and columns).",
"type": "boolean"
},
"range": {
"description": "The A1 notation of the values to update.",
"type": "string",
"required": true,
"location": "path"
2017-08-05 18:17:15 +00:00
}
},
"flatPath": "v4/spreadsheets/{spreadsheetId}/values/{range}",
"path": "v4/spreadsheets/{spreadsheetId}/values/{range}",
2017-09-13 12:09:48 +00:00
"id": "sheets.spreadsheets.values.update"
2017-08-05 18:17:15 +00:00
},
"batchUpdate": {
2017-09-13 12:09:48 +00:00
"description": "Sets values in one or more ranges of a spreadsheet.\nThe caller must specify the spreadsheet ID,\na valueInputOption, and one or more\nValueRanges.",
"request": {
"$ref": "BatchUpdateValuesRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"httpMethod": "POST",
2017-08-05 18:17:15 +00:00
"parameterOrder": [
"spreadsheetId"
],
2017-09-13 12:09:48 +00:00
"response": {
"$ref": "BatchUpdateValuesResponse"
},
"parameters": {
"spreadsheetId": {
"description": "The ID of the spreadsheet to update.",
"type": "string",
"required": true,
"location": "path"
}
},
2017-08-05 18:17:15 +00:00
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
2017-09-13 12:09:48 +00:00
"flatPath": "v4/spreadsheets/{spreadsheetId}/values:batchUpdate",
"path": "v4/spreadsheets/{spreadsheetId}/values:batchUpdate",
"id": "sheets.spreadsheets.values.batchUpdate"
},
"clear": {
"description": "Clears values from a spreadsheet.\nThe caller must specify the spreadsheet ID and range.\nOnly values are cleared -- all other properties of the cell (such as\nformatting, data validation, etc..) are kept.",
"request": {
"$ref": "ClearValuesRequest"
},
"httpMethod": "POST",
"parameterOrder": [
"spreadsheetId",
"range"
],
"response": {
"$ref": "ClearValuesResponse"
},
2017-08-05 18:17:15 +00:00
"parameters": {
"spreadsheetId": {
"location": "path",
"description": "The ID of the spreadsheet to update.",
"type": "string",
"required": true
2017-09-13 12:09:48 +00:00
},
"range": {
"location": "path",
"description": "The A1 notation of the values to clear.",
"type": "string",
"required": true
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
"flatPath": "v4/spreadsheets/{spreadsheetId}/values/{range}:clear",
"path": "v4/spreadsheets/{spreadsheetId}/values/{range}:clear",
"id": "sheets.spreadsheets.values.clear"
2017-08-05 18:17:15 +00:00
},
"batchGet": {
"response": {
"$ref": "BatchGetValuesResponse"
},
"parameterOrder": [
"spreadsheetId"
],
"httpMethod": "GET",
"parameters": {
"majorDimension": {
"location": "query",
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"description": "The major dimension that results should use.\n\nFor example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,\nthen requesting `range=A1:B2,majorDimension=ROWS` will return\n`[[1,2],[3,4]]`,\nwhereas requesting `range=A1:B2,majorDimension=COLUMNS` will return\n`[[1,3],[2,4]]`.",
"type": "string"
},
"ranges": {
2017-09-13 12:09:48 +00:00
"location": "query",
2017-08-05 18:17:15 +00:00
"description": "The A1 notation of the values to retrieve.",
"type": "string",
2017-09-13 12:09:48 +00:00
"repeated": true
2017-08-05 18:17:15 +00:00
},
"spreadsheetId": {
2017-09-13 12:09:48 +00:00
"location": "path",
2017-08-05 18:17:15 +00:00
"description": "The ID of the spreadsheet to retrieve data from.",
"type": "string",
2017-09-13 12:09:48 +00:00
"required": true
},
"dateTimeRenderOption": {
"location": "query",
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
],
"description": "How dates, times, and durations should be represented in the output.\nThis is ignored if value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
"type": "string"
},
"valueRenderOption": {
"location": "query",
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
],
"description": "How values should be represented in the output.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly",
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/spreadsheets.readonly"
],
"flatPath": "v4/spreadsheets/{spreadsheetId}/values:batchGet",
"id": "sheets.spreadsheets.values.batchGet",
"path": "v4/spreadsheets/{spreadsheetId}/values:batchGet",
"description": "Returns one or more ranges of values from a spreadsheet.\nThe caller must specify the spreadsheet ID and one or more ranges."
},
"append": {
"httpMethod": "POST",
"parameterOrder": [
"spreadsheetId",
"range"
],
"response": {
"$ref": "AppendValuesResponse"
},
"parameters": {
"responseValueRenderOption": {
"location": "query",
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
2017-09-13 12:09:48 +00:00
],
"description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"insertDataOption": {
"location": "query",
"enum": [
"OVERWRITE",
"INSERT_ROWS"
2017-09-13 12:09:48 +00:00
],
"description": "How the input data should be inserted.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
"valueInputOption": {
2017-09-13 12:09:48 +00:00
"description": "How the input data should be interpreted.",
"type": "string",
2017-08-05 18:17:15 +00:00
"location": "query",
"enum": [
"INPUT_VALUE_OPTION_UNSPECIFIED",
"RAW",
"USER_ENTERED"
2017-09-13 12:09:48 +00:00
]
2017-08-05 18:17:15 +00:00
},
"responseDateTimeRenderOption": {
"location": "query",
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
],
"description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"range": {
"location": "path",
"description": "The A1 notation of a range to search for a logical table of data.\nValues will be appended after the last row of the table.",
"type": "string",
"required": true
},
"includeValuesInResponse": {
"type": "boolean",
"location": "query",
"description": "Determines if the update response should include the values\nof the cells that were appended. By default, responses\ndo not include the updated values."
},
"spreadsheetId": {
"location": "path",
"description": "The ID of the spreadsheet to update.",
"type": "string",
"required": true
2017-08-05 18:17:15 +00:00
}
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
],
2017-09-13 12:09:48 +00:00
"flatPath": "v4/spreadsheets/{spreadsheetId}/values/{range}:append",
"path": "v4/spreadsheets/{spreadsheetId}/values/{range}:append",
"id": "sheets.spreadsheets.values.append",
"description": "Appends values to a spreadsheet. The input range is used to search for\nexisting data and find a \"table\" within that range. Values will be\nappended to the next row of the table, starting with the first column of\nthe table. See the\n[guide](/sheets/api/guides/values#appending_values)\nand\n[sample code](/sheets/api/samples/writing#append_values)\nfor specific details of how tables are detected and data is appended.\n\nThe caller must specify the spreadsheet ID, range, and\na valueInputOption. The `valueInputOption` only\ncontrols how the input data will be added to the sheet (column-wise or\nrow-wise), it does not influence what cell the data starts being written\nto.",
2017-08-05 18:17:15 +00:00
"request": {
2017-09-13 12:09:48 +00:00
"$ref": "ValueRange"
}
2017-08-05 18:17:15 +00:00
}
}
},
"sheets": {
"methods": {
"copyTo": {
"httpMethod": "POST",
"parameterOrder": [
"spreadsheetId",
"sheetId"
],
"response": {
"$ref": "SheetProperties"
},
"parameters": {
2017-09-13 12:09:48 +00:00
"spreadsheetId": {
"description": "The ID of the spreadsheet containing the sheet to copy.",
"type": "string",
"required": true,
"location": "path"
},
2017-08-05 18:17:15 +00:00
"sheetId": {
"format": "int32",
"description": "The ID of the sheet to copy.",
"type": "integer",
"required": true,
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/spreadsheets"
2017-09-13 12:09:48 +00:00
],
"flatPath": "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo",
"path": "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo",
"id": "sheets.spreadsheets.sheets.copyTo",
"description": "Copies a single sheet from a spreadsheet to another spreadsheet.\nReturns the properties of the newly created sheet.",
"request": {
"$ref": "CopySheetToAnotherSpreadsheetRequest"
}
2017-08-05 18:17:15 +00:00
}
}
}
}
}
},
"parameters": {
2017-09-13 12:09:48 +00:00
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"location": "query",
"description": "Pretty-print response.",
"default": "true",
"type": "boolean"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"type": "string",
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean"
},
2017-08-05 18:17:15 +00:00
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string",
"location": "query"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
2017-09-13 12:09:48 +00:00
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
2017-08-05 18:17:15 +00:00
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
2017-09-13 12:09:48 +00:00
],
"description": "V1 error format.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
"alt": {
"description": "Data format for response.",
"default": "json",
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query"
}
},
"version": "v4",
"baseUrl": "https://sheets.googleapis.com/",
2017-09-13 12:09:48 +00:00
"servicePath": "",
2017-08-05 18:17:15 +00:00
"kind": "discovery#restDescription",
"description": "Reads and writes Google Sheets.",
"basePath": "",
"id": "sheets:v4",
2017-09-13 12:09:48 +00:00
"documentationLink": "https://developers.google.com/sheets/",
"revision": "20170907",
2017-08-05 18:17:15 +00:00
"discoveryVersion": "v1",
2017-09-13 12:09:48 +00:00
"version_module": true,
2017-08-05 18:17:15 +00:00
"schemas": {
2017-09-13 12:09:48 +00:00
"GridCoordinate": {
"description": "A coordinate in a sheet.\nAll indexes are zero-based.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"columnIndex": {
"format": "int32",
"description": "The column index of the coordinate.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"rowIndex": {
"format": "int32",
"description": "The row index of the coordinate.",
"type": "integer"
},
"sheetId": {
"format": "int32",
"description": "The sheet this coordinate is on.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "GridCoordinate"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateSheetPropertiesRequest": {
"description": "Updates properties of the sheet with the specified\nsheetId.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"fields": {
"format": "google-fieldmask",
2017-09-13 12:09:48 +00:00
"description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
"properties": {
"description": "The properties to update.",
"$ref": "SheetProperties"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateSheetPropertiesRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"GridProperties": {
"description": "Properties of a grid.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"hideGridlines": {
"description": "True if the grid isn't showing gridlines in the UI.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
2017-09-13 12:09:48 +00:00
"frozenRowCount": {
"format": "int32",
"description": "The number of rows that are frozen in the grid.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"frozenColumnCount": {
"format": "int32",
"description": "The number of columns that are frozen in the grid.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"columnCount": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of columns in the grid.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"rowCount": {
"format": "int32",
"description": "The number of rows in the grid.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "GridProperties"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UnmergeCellsRequest": {
"id": "UnmergeCellsRequest",
"description": "Unmerges cells in the given range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range within which all cells should be unmerged.\nIf the range spans multiple merges, all will be unmerged.\nThe range must not partially span any merge."
}
}
},
"UpdateEmbeddedObjectPositionResponse": {
"description": "The result of updating an embedded object's position.",
"type": "object",
"properties": {
"position": {
"description": "The new position of the embedded object.",
"$ref": "EmbeddedObjectPosition"
}
},
"id": "UpdateEmbeddedObjectPositionResponse"
},
"SortSpec": {
"description": "A sort order associated with a specific column or row.",
"type": "object",
"properties": {
"dimensionIndex": {
"format": "int32",
"description": "The dimension the sort should be applied to.",
"type": "integer"
},
"sortOrder": {
"description": "The order data should be sorted.",
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value, do not use this.",
"Sort ascending.",
"Sort descending."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"SORT_ORDER_UNSPECIFIED",
"ASCENDING",
"DESCENDING"
2017-08-05 18:17:15 +00:00
]
2017-09-13 12:09:48 +00:00
}
},
"id": "SortSpec"
},
"Sheet": {
"description": "A sheet in a spreadsheet.",
"type": "object",
"properties": {
"protectedRanges": {
"description": "The protected ranges in this sheet.",
"items": {
"$ref": "ProtectedRange"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"conditionalFormats": {
"description": "The conditional format rules in this sheet.",
"items": {
"$ref": "ConditionalFormatRule"
},
"type": "array"
},
"basicFilter": {
"description": "The filter on this sheet, if any.",
"$ref": "BasicFilter"
},
"merges": {
"description": "The ranges that are merged together.",
"items": {
"$ref": "GridRange"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
"data": {
2017-09-13 12:09:48 +00:00
"description": "Data in the grid, if this is a grid sheet.\nThe number of GridData objects returned is dependent on the number of\nranges requested on this sheet. For example, if this is representing\n`Sheet1`, and the spreadsheet was requested with ranges\n`Sheet1!A1:C10` and `Sheet1!D15:E20`, then the first GridData will have a\nstartRow/startColumn of `0`,\nwhile the second one will have `startRow 14` (zero-based row 15),\nand `startColumn 3` (zero-based column D).",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "GridData"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"bandedRanges": {
"description": "The banded (i.e. alternating colors) ranges on this sheet.",
"items": {
"$ref": "BandedRange"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"charts": {
"description": "The specifications of every chart on this sheet.",
"items": {
"$ref": "EmbeddedChart"
},
"type": "array"
},
"properties": {
"$ref": "SheetProperties",
"description": "The properties of the sheet."
},
"filterViews": {
"description": "The filter views in this sheet.",
"items": {
"$ref": "FilterView"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Sheet"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BooleanRule": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"format": {
"$ref": "CellFormat",
"description": "The format to apply.\nConditional formatting can only apply a subset of formatting:\nbold, italic,\nstrikethrough,\nforeground color &\nbackground color."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"condition": {
"$ref": "BooleanCondition",
"description": "The condition of the rule. If the condition evaluates to true,\nthe format will be applied."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BooleanRule",
"description": "A rule that may or may not match, depending on the condition.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PivotGroupValueMetadata": {
"description": "Metadata about a value in a pivot grouping.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"value": {
"description": "The calculated value the metadata corresponds to.\n(Note that formulaValue is not valid,\n because the values will be calculated.)",
"$ref": "ExtendedValue"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"collapsed": {
"type": "boolean",
"description": "True if the data corresponding to the value is collapsed."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "PivotGroupValueMetadata"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FilterCriteria": {
"description": "Criteria for showing/hiding rows in a filter or filter view.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"condition": {
"description": "A condition that must be true for values to be shown.\n(This does not override hiddenValues -- if a value is listed there,\n it will still be hidden.)",
"$ref": "BooleanCondition"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hiddenValues": {
"description": "Values that should be hidden.",
"items": {
"type": "string"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "FilterCriteria"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Editors": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"users": {
"description": "The email addresses of users with edit access to the protected range.",
"items": {
"type": "string"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"domainUsersCanEdit": {
"description": "True if anyone in the document's domain has edit access to the protected\nrange. Domain protection is only supported on documents within a domain.",
"type": "boolean"
},
"groups": {
"description": "The email addresses of groups with edit access to the protected range.",
"items": {
"type": "string"
},
"type": "array"
}
},
"id": "Editors",
"description": "The editors of a protected range."
},
"UpdateConditionalFormatRuleRequest": {
"description": "Updates a conditional format rule at the given index,\nor moves a conditional format rule to another index.",
"type": "object",
"properties": {
"rule": {
"$ref": "ConditionalFormatRule",
"description": "The rule that should replace the rule at the given index."
},
"index": {
"format": "int32",
"description": "The zero-based index of the rule that should be replaced or moved.",
"type": "integer"
},
"sheetId": {
"format": "int32",
"description": "The sheet of the rule to move. Required if new_index is set,\nunused otherwise.",
"type": "integer"
},
"newIndex": {
"format": "int32",
"description": "The zero-based new index the rule should end up at.",
"type": "integer"
}
},
"id": "UpdateConditionalFormatRuleRequest"
},
"DataValidationRule": {
"description": "A data validation rule.",
"type": "object",
"properties": {
"showCustomUi": {
"description": "True if the UI should be customized based on the kind of condition.\nIf true, \"List\" conditions will show a dropdown.",
"type": "boolean"
},
"strict": {
"description": "True if invalid data should be rejected.",
"type": "boolean"
},
"inputMessage": {
"description": "A message to show the user when adding data to the cell.",
"type": "string"
},
"condition": {
"description": "The condition that data in the cell must match.",
"$ref": "BooleanCondition"
}
},
"id": "DataValidationRule"
},
"BasicChartDomain": {
"description": "The domain of a chart.\nFor example, if charting stock prices over time, this would be the date.",
"type": "object",
"properties": {
"reversed": {
"description": "True to reverse the order of the domain values (horizontal axis).",
"type": "boolean"
},
"domain": {
"$ref": "ChartData",
"description": "The data of the domain. For example, if charting stock prices over time,\nthis is the data representing the dates."
}
},
"id": "BasicChartDomain"
},
"PasteDataRequest": {
"properties": {
"coordinate": {
"description": "The coordinate at which the data should start being inserted.",
"$ref": "GridCoordinate"
},
"delimiter": {
"type": "string",
"description": "The delimiter in the data."
},
"data": {
"description": "The data to insert.",
"type": "string"
},
"type": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
"Paste values, formulas, formats, and merges.",
"Paste the values ONLY without formats, formulas, or merges.",
"Paste the format and data validation only.",
"Like PASTE_NORMAL but without borders.",
"Paste the formulas only.",
"Paste the data validation only.",
"Paste the conditional formatting rules only."
],
"enum": [
"PASTE_NORMAL",
"PASTE_VALUES",
"PASTE_FORMAT",
"PASTE_NO_BORDERS",
"PASTE_FORMULA",
"PASTE_DATA_VALIDATION",
"PASTE_CONDITIONAL_FORMATTING"
],
2017-09-13 12:09:48 +00:00
"description": "How the data should be pasted.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"html": {
"description": "True if the data is HTML.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "PasteDataRequest",
"description": "Inserts data into the spreadsheet starting at the specified coordinate.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AppendDimensionRequest": {
"description": "Appends rows or columns to the end of a sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The sheet to append rows or columns to.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"dimension": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "Whether rows or columns should be appended.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
"length": {
"format": "int32",
"description": "The number of rows or columns to append.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AppendDimensionRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddNamedRangeRequest": {
"description": "Adds a named range to the spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"namedRange": {
"$ref": "NamedRange",
"description": "The named range to add. The namedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AddNamedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateEmbeddedObjectPositionRequest": {
"description": "Update an embedded object's position (such as a moving or resizing a\nchart or image).",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"newPosition": {
"$ref": "EmbeddedObjectPosition",
"description": "An explicit position to move the embedded object to.\nIf newPosition.sheetId is set,\na new sheet with that ID will be created.\nIf newPosition.newSheet is set to true,\na new sheet will be created with an ID that will be chosen for you."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields of OverlayPosition\nthat should be updated when setting a new position. Used only if\nnewPosition.overlayPosition\nis set, in which case at least one field must\nbe specified. The root `newPosition.overlayPosition` is implied and\nshould not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"objectId": {
"format": "int32",
"description": "The ID of the object to moved.",
"type": "integer"
}
},
"id": "UpdateEmbeddedObjectPositionRequest"
},
"TextRotation": {
"description": "The rotation applied to text in a cell.",
"type": "object",
"properties": {
"angle": {
"format": "int32",
"description": "The angle between the standard orientation and the desired orientation.\nMeasured in degrees. Valid values are between -90 and 90. Positive\nangles are angled upwards, negative are angled downwards.\n\nNote: For LTR text direction positive angles are in the counterclockwise\ndirection, whereas for RTL they are in the clockwise direction",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"vertical": {
"description": "If true, text reads top to bottom, but the orientation of individual\ncharacters is unchanged.\nFor example:\n\n | V |\n | e |\n | r |\n | t |\n | i |\n | c |\n | a |\n | l |",
"type": "boolean"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "TextRotation"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PieChartSpec": {
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/piechart\"\u003epie chart\u003c/a\u003e.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"threeDimensional": {
"description": "True if the pie is three dimensional.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"domain": {
"description": "The data that covers the domain of the pie chart.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"series": {
"description": "The data that covers the one and only series of the pie chart.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"pieHole": {
"format": "double",
"description": "The size of the hole in the pie chart.",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"legendPosition": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value, do not use.",
"The legend is rendered on the bottom of the chart.",
"The legend is rendered on the left of the chart.",
"The legend is rendered on the right of the chart.",
"The legend is rendered on the top of the chart.",
"No legend is rendered.",
"Each pie slice has a label attached to it."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"PIE_CHART_LEGEND_POSITION_UNSPECIFIED",
"BOTTOM_LEGEND",
"LEFT_LEGEND",
"RIGHT_LEGEND",
"TOP_LEGEND",
"NO_LEGEND",
"LABELED_LEGEND"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "Where the legend of the pie chart should be drawn.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "PieChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateFilterViewRequest": {
"description": "Updates properties of the filter view.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"filter": {
"$ref": "FilterView",
"description": "The new properties of the filter view."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root `filter` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateFilterViewRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ConditionalFormatRule": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"gradientRule": {
"description": "The formatting will vary based on the gradients in the rule.",
"$ref": "GradientRule"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"booleanRule": {
"$ref": "BooleanRule",
"description": "The formatting is either \"on\" or \"off\" according to the rule."
},
"ranges": {
"description": "The ranges that will be formatted if the condition is true.\nAll the ranges must be on the same grid.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "GridRange"
2017-08-05 18:17:15 +00:00
},
"type": "array"
}
},
2017-09-13 12:09:48 +00:00
"id": "ConditionalFormatRule",
"description": "A rule describing a conditional format."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CopyPasteRequest": {
"id": "CopyPasteRequest",
"description": "Copies data from the source to the destination.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"destination": {
"description": "The location to paste to. If the range covers a span that's\na multiple of the source's height or width, then the\ndata will be repeated to fill in the destination range.\nIf the range is smaller than the source range, the entire\nsource data will still be copied (beyond the end of the destination range).",
"$ref": "GridRange"
},
"pasteOrientation": {
"enum": [
"NORMAL",
"TRANSPOSE"
],
"description": "How that data should be oriented when pasting.",
"type": "string",
"enumDescriptions": [
"Paste normally.",
"Paste transposed, where all rows become columns and vice versa."
]
},
"pasteType": {
"enumDescriptions": [
"Paste values, formulas, formats, and merges.",
"Paste the values ONLY without formats, formulas, or merges.",
"Paste the format and data validation only.",
"Like PASTE_NORMAL but without borders.",
"Paste the formulas only.",
"Paste the data validation only.",
"Paste the conditional formatting rules only."
],
"enum": [
"PASTE_NORMAL",
"PASTE_VALUES",
"PASTE_FORMAT",
"PASTE_NO_BORDERS",
"PASTE_FORMULA",
"PASTE_DATA_VALIDATION",
"PASTE_CONDITIONAL_FORMATTING"
],
"description": "What kind of data to paste.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"source": {
"description": "The source range to copy.",
"$ref": "GridRange"
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BooleanCondition": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"values": {
"description": "The values of the condition. The number of supported values depends\non the condition type. Some support zero values,\nothers one or two values,\nand ConditionType.ONE_OF_LIST supports an arbitrary number of values.",
"items": {
"$ref": "ConditionValue"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"type": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The default value, do not use.",
"The cell's value must be greater than the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be greater than or equal to the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be less than the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be less than or equal to the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be equal to the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be not equal to the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be between the two condition values.\nSupported by data validation, conditional formatting and filters.\nRequires exactly two ConditionValues.",
"The cell's value must not be between the two condition values.\nSupported by data validation, conditional formatting and filters.\nRequires exactly two ConditionValues.",
"The cell's value must contain the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must not contain the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must start with the condition's value.\nSupported by conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must end with the condition's value.\nSupported by conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be exactly the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be a valid email address.\nSupported by data validation.\nRequires no ConditionValues.",
"The cell's value must be a valid URL.\nSupported by data validation.\nRequires no ConditionValues.",
"The cell's value must be the same date as the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue.",
"The cell's value must be before the date of the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue\nthat may be a relative date.",
"The cell's value must be after the date of the condition's value.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue\nthat may be a relative date.",
"The cell's value must be on or before the date of the condition's value.\nSupported by data validation.\nRequires a single ConditionValue\nthat may be a relative date.",
"The cell's value must be on or after the date of the condition's value.\nSupported by data validation.\nRequires a single ConditionValue\nthat may be a relative date.",
"The cell's value must be between the dates of the two condition values.\nSupported by data validation.\nRequires exactly two ConditionValues.",
"The cell's value must be outside the dates of the two condition values.\nSupported by data validation.\nRequires exactly two ConditionValues.",
"The cell's value must be a date.\nSupported by data validation.\nRequires no ConditionValues.",
"The cell's value must be listed in the grid in condition value's range.\nSupported by data validation.\nRequires a single ConditionValue,\nand the value must be a valid range in A1 notation.",
"The cell's value must in the list of condition values.\nSupported by data validation.\nSupports any number of condition values,\none per item in the list.\nFormulas are not supported in the values.",
"The cell's value must be empty.\nSupported by conditional formatting and filters.\nRequires no ConditionValues.",
"The cell's value must not be empty.\nSupported by conditional formatting and filters.\nRequires no ConditionValues.",
"The condition's formula must evaluate to true.\nSupported by data validation, conditional formatting and filters.\nRequires a single ConditionValue."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"CONDITION_TYPE_UNSPECIFIED",
"NUMBER_GREATER",
"NUMBER_GREATER_THAN_EQ",
"NUMBER_LESS",
"NUMBER_LESS_THAN_EQ",
"NUMBER_EQ",
"NUMBER_NOT_EQ",
"NUMBER_BETWEEN",
"NUMBER_NOT_BETWEEN",
"TEXT_CONTAINS",
"TEXT_NOT_CONTAINS",
"TEXT_STARTS_WITH",
"TEXT_ENDS_WITH",
"TEXT_EQ",
"TEXT_IS_EMAIL",
"TEXT_IS_URL",
"DATE_EQ",
"DATE_BEFORE",
"DATE_AFTER",
"DATE_ON_OR_BEFORE",
"DATE_ON_OR_AFTER",
"DATE_BETWEEN",
"DATE_NOT_BETWEEN",
"DATE_IS_VALID",
"ONE_OF_RANGE",
"ONE_OF_LIST",
"BLANK",
"NOT_BLANK",
"CUSTOM_FORMULA"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "The type of condition.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "BooleanCondition",
"description": "A condition that can evaluate to true or false.\nBooleanConditions are used by conditional formatting,\ndata validation, and the criteria in filters."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Request": {
"description": "A single kind of update to apply to a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"moveDimension": {
"$ref": "MoveDimensionRequest",
"description": "Moves rows or columns to another location in a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"randomizeRange": {
"description": "Randomizes the order of the rows in a range.",
"$ref": "RandomizeRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateBanding": {
"description": "Updates a banded range",
"$ref": "UpdateBandingRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addProtectedRange": {
"$ref": "AddProtectedRangeRequest",
"description": "Adds a protected range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteNamedRange": {
"description": "Deletes a named range.",
"$ref": "DeleteNamedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"duplicateSheet": {
"$ref": "DuplicateSheetRequest",
"description": "Duplicates a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteSheet": {
"$ref": "DeleteSheetRequest",
"description": "Deletes a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"unmergeCells": {
"$ref": "UnmergeCellsRequest",
"description": "Unmerges merged cells."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateEmbeddedObjectPosition": {
"$ref": "UpdateEmbeddedObjectPositionRequest",
"description": "Updates an embedded object's (e.g. chart, image) position."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateDimensionProperties": {
"$ref": "UpdateDimensionPropertiesRequest",
"description": "Updates dimensions' properties."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"pasteData": {
"$ref": "PasteDataRequest",
"description": "Pastes data (HTML or delimited) into a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"setBasicFilter": {
"description": "Sets the basic filter on a sheet.",
"$ref": "SetBasicFilterRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addConditionalFormatRule": {
"description": "Adds a new conditional format rule.",
"$ref": "AddConditionalFormatRuleRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addNamedRange": {
"$ref": "AddNamedRangeRequest",
"description": "Adds a named range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateCells": {
"$ref": "UpdateCellsRequest",
"description": "Updates many cells at once."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateSpreadsheetProperties": {
"$ref": "UpdateSpreadsheetPropertiesRequest",
"description": "Updates the spreadsheet's properties."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteEmbeddedObject": {
"description": "Deletes an embedded object (e.g, chart, image) in a sheet.",
"$ref": "DeleteEmbeddedObjectRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateFilterView": {
"$ref": "UpdateFilterViewRequest",
"description": "Updates the properties of a filter view."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addBanding": {
"$ref": "AddBandingRequest",
"description": "Adds a new banded range"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"appendCells": {
"$ref": "AppendCellsRequest",
"description": "Appends cells after the last row with data in a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"autoResizeDimensions": {
"$ref": "AutoResizeDimensionsRequest",
"description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"cutPaste": {
"$ref": "CutPasteRequest",
"description": "Cuts data from one area and pastes it to another."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"mergeCells": {
"$ref": "MergeCellsRequest",
"description": "Merges cells together."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateNamedRange": {
"description": "Updates a named range.",
"$ref": "UpdateNamedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateSheetProperties": {
"$ref": "UpdateSheetPropertiesRequest",
"description": "Updates a sheet's properties."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"autoFill": {
"$ref": "AutoFillRequest",
"description": "Automatically fills in more data based on existing data."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteDimension": {
"description": "Deletes rows or columns in a sheet.",
"$ref": "DeleteDimensionRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sortRange": {
"$ref": "SortRangeRequest",
"description": "Sorts data in a range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteProtectedRange": {
"$ref": "DeleteProtectedRangeRequest",
"description": "Deletes a protected range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"duplicateFilterView": {
"description": "Duplicates a filter view.",
"$ref": "DuplicateFilterViewRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addChart": {
"description": "Adds a chart.",
"$ref": "AddChartRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"findReplace": {
"description": "Finds and replaces occurrences of some text with other text.",
"$ref": "FindReplaceRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateChartSpec": {
"description": "Updates a chart's specifications.",
"$ref": "UpdateChartSpecRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"textToColumns": {
"description": "Converts a column of text into many columns of text.",
"$ref": "TextToColumnsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateProtectedRange": {
"description": "Updates a protected range.",
"$ref": "UpdateProtectedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addSheet": {
"$ref": "AddSheetRequest",
"description": "Adds a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteFilterView": {
"$ref": "DeleteFilterViewRequest",
"description": "Deletes a filter view from a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"copyPaste": {
"description": "Copies data from one area and pastes it to another.",
"$ref": "CopyPasteRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"insertDimension": {
"$ref": "InsertDimensionRequest",
"description": "Inserts new rows or columns in a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteRange": {
"$ref": "DeleteRangeRequest",
"description": "Deletes a range of cells from a sheet, shifting the remaining cells."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteBanding": {
"$ref": "DeleteBandingRequest",
"description": "Removes a banded range"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"addFilterView": {
"description": "Adds a filter view.",
"$ref": "AddFilterViewRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"setDataValidation": {
"$ref": "SetDataValidationRequest",
"description": "Sets data validation for one or more cells."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateBorders": {
"description": "Updates the borders in a range of cells.",
"$ref": "UpdateBordersRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteConditionalFormatRule": {
"$ref": "DeleteConditionalFormatRuleRequest",
"description": "Deletes an existing conditional format rule."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"clearBasicFilter": {
"description": "Clears the basic filter on a sheet.",
"$ref": "ClearBasicFilterRequest"
},
"repeatCell": {
"$ref": "RepeatCellRequest",
"description": "Repeats a single cell across a range."
},
"appendDimension": {
"description": "Appends dimensions to the end of a sheet.",
"$ref": "AppendDimensionRequest"
},
"updateConditionalFormatRule": {
"$ref": "UpdateConditionalFormatRuleRequest",
"description": "Updates an existing conditional format rule."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"insertRange": {
"$ref": "InsertRangeRequest",
"description": "Inserts new cells in a sheet, shifting the existing cells."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Request"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"GridRange": {
"description": "A range on a sheet.\nAll indexes are zero-based.\nIndexes are half open, e.g the start index is inclusive\nand the end index is exclusive -- [start_index, end_index).\nMissing indexes indicate the range is unbounded on that side.\n\nFor example, if `\"Sheet1\"` is sheet ID 0, then:\n\n `Sheet1!A1:A1 == sheet_id: 0,\n start_row_index: 0, end_row_index: 1,\n start_column_index: 0, end_column_index: 1`\n\n `Sheet1!A3:B4 == sheet_id: 0,\n start_row_index: 2, end_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A:B == sheet_id: 0,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1!A5:B == sheet_id: 0,\n start_row_index: 4,\n start_column_index: 0, end_column_index: 2`\n\n `Sheet1 == sheet_id:0`\n\nThe start index must always be less than or equal to the end index.\nIf the start index equals the end index, then the range is empty.\nEmpty ranges are typically not meaningful and are usually rendered in the\nUI as `#REF!`.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"startColumnIndex": {
"format": "int32",
"description": "The start column (inclusive) of the range, or not set if unbounded.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The sheet this range is on.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"endColumnIndex": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The end column (exclusive) of the range, or not set if unbounded.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"endRowIndex": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The end row (exclusive) of the range, or not set if unbounded.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"startRowIndex": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The start row (inclusive) of the range, or not set if unbounded.",
2017-08-05 18:17:15 +00:00
"type": "integer"
}
},
2017-09-13 12:09:48 +00:00
"id": "GridRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BasicChartSpec": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"series": {
"description": "The data this chart is visualizing.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "BasicChartSeries"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"legendPosition": {
"enum": [
"BASIC_CHART_LEGEND_POSITION_UNSPECIFIED",
"BOTTOM_LEGEND",
"LEFT_LEGEND",
"RIGHT_LEGEND",
"TOP_LEGEND",
"NO_LEGEND"
],
"description": "The position of the chart legend.",
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"The legend is rendered on the bottom of the chart.",
"The legend is rendered on the left of the chart.",
"The legend is rendered on the right of the chart.",
"The legend is rendered on the top of the chart.",
"No legend is rendered."
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"domains": {
"description": "The domain of data this is charting.\nOnly a single domain is supported.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "BasicChartDomain"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"lineSmoothing": {
"description": "Gets whether all lines should be rendered smooth or straight by default.\nApplies to Line charts.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"headerCount": {
"type": "integer",
"format": "int32",
"description": "The number of rows or columns in the data that are \"headers\".\nIf not set, Google Sheets will guess how many rows are headers based\non the data.\n\n(Note that BasicChartAxis.title may override the axis title\n inferred from the header values.)"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"stackedType": {
"description": "The stacked type for charts that support vertical stacking.\nApplies to Area, Bar, Column, and Stepped Area charts.",
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"Series are not stacked.",
"Series values are stacked, each value is rendered vertically beginning\nfrom the top of the value below it.",
"Vertical stacks are stretched to reach the top of the chart, with\nvalues laid out as percentages of each other."
],
"enum": [
"BASIC_CHART_STACKED_TYPE_UNSPECIFIED",
"NOT_STACKED",
"STACKED",
"PERCENT_STACKED"
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"axis": {
"description": "The axis on the chart.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "BasicChartAxis"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"threeDimensional": {
"description": "True to make the chart 3D.\nApplies to Bar and Column charts.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"interpolateNulls": {
"description": "If some values in a series are missing, gaps may appear in the chart (e.g,\nsegments of lines in a line chart will be missing). To eliminate these\ngaps set this to true.\nApplies to Line, Area, and Combo charts.",
"type": "boolean"
},
"chartType": {
"enum": [
"BASIC_CHART_TYPE_UNSPECIFIED",
"BAR",
"LINE",
"AREA",
"COLUMN",
"SCATTER",
"COMBO",
"STEPPED_AREA"
],
"description": "The type of the chart.",
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value, do not use.",
"A \u003ca href=\"/chart/interactive/docs/gallery/barchart\"\u003ebar chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/linechart\"\u003eline chart\u003c/a\u003e.",
"An \u003ca href=\"/chart/interactive/docs/gallery/areachart\"\u003earea chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/columnchart\"\u003ecolumn chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/combochart\"\u003ecombo chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area chart\u003c/a\u003e."
2017-08-05 18:17:15 +00:00
]
}
},
2017-09-13 12:09:48 +00:00
"id": "BasicChartSpec",
"description": "The specification for a basic chart. See BasicChartType for the list\nof charts this supports."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BubbleChartSpec": {
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/bubblechart\"\u003ebubble chart\u003c/a\u003e.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"legendPosition": {
"enumDescriptions": [
"Default value, do not use.",
"The legend is rendered on the bottom of the chart.",
"The legend is rendered on the left of the chart.",
"The legend is rendered on the right of the chart.",
"The legend is rendered on the top of the chart.",
"No legend is rendered.",
"The legend is rendered inside the chart area."
],
"enum": [
"BUBBLE_CHART_LEGEND_POSITION_UNSPECIFIED",
"BOTTOM_LEGEND",
"LEFT_LEGEND",
"RIGHT_LEGEND",
"TOP_LEGEND",
"NO_LEGEND",
"INSIDE_LEGEND"
],
"description": "Where the legend of the chart should be drawn.",
"type": "string"
},
"domain": {
"description": "The data containing the bubble x-values. These values locate the bubbles\nin the chart horizontally.",
"$ref": "ChartData"
},
"bubbleSizes": {
"$ref": "ChartData",
"description": "The data contianing the bubble sizes. Bubble sizes are used to draw\nthe bubbles at different sizes relative to each other.\nIf specified, group_ids must also be specified. This field is\noptional."
},
"bubbleOpacity": {
"format": "float",
"description": "The opacity of the bubbles between 0 and 1.0.\n0 is fully transparent and 1 is fully opaque.",
"type": "number"
},
"bubbleBorderColor": {
"$ref": "Color",
"description": "The bubble border color."
},
"bubbleTextStyle": {
"$ref": "TextFormat",
"description": "The format of the text inside the bubbles.\nUnderline and Strikethrough are not supported."
},
"groupIds": {
"description": "The data containing the bubble group IDs. All bubbles with the same group\nID will be drawn in the same color. If bubble_sizes is specified then\nthis field must also be specified but may contain blank values.\nThis field is optional.",
"$ref": "ChartData"
},
"bubbleLabels": {
"$ref": "ChartData",
"description": "The data containing the bubble labels. These do not need to be unique."
},
"bubbleMinRadiusSize": {
"format": "int32",
"description": "The minimum radius size of the bubbles, in pixels.\nIf specific, the field must be a positive value.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"bubbleMaxRadiusSize": {
"format": "int32",
"description": "The max radius size of the bubbles, in pixels.\nIf specified, the field must be a positive value.",
"type": "integer"
},
"series": {
"$ref": "ChartData",
"description": "The data contianing the bubble y-values. These values locate the bubbles\nin the chart vertically."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BubbleChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"SetDataValidationRequest": {
"description": "Sets a data validation rule to every cell in the range.\nTo clear validation in a range, call this with no rule specified.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"rule": {
"$ref": "DataValidationRule",
"description": "The data validation rule to set on each cell in the range,\nor empty to clear the data validation in the range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range the data validation rule should apply to."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "SetDataValidationRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CellData": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"formattedValue": {
"description": "The formatted value of the cell.\nThis is the value as it's shown to the user.\nThis field is read-only.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"textFormatRuns": {
"description": "Runs of rich text applied to subsections of the cell. Runs are only valid\non user entered strings, not formulas, bools, or numbers.\nRuns start at specific indexes in the text and continue until the next\nrun. Properties of a run will continue unless explicitly changed\nin a subsequent run (and properties of the first run will continue\nthe properties of the cell unless explicitly changed).\n\nWhen writing, the new runs will overwrite any prior runs. When writing a\nnew user_entered_value, previous runs will be erased.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "TextFormatRun"
2017-08-05 18:17:15 +00:00
},
"type": "array"
2017-09-13 12:09:48 +00:00
},
"hyperlink": {
"description": "A hyperlink this cell points to, if any.\nThis field is read-only. (To set it, use a `=HYPERLINK` formula\nin the userEnteredValue.formulaValue\nfield.)",
"type": "string"
},
"pivotTable": {
"$ref": "PivotTable",
"description": "A pivot table anchored at this cell. The size of pivot table itself\nis computed dynamically based on its data, grouping, filters, values,\netc. Only the top-left cell of the pivot table contains the pivot table\ndefinition. The other cells will contain the calculated values of the\nresults of the pivot in their effective_value fields."
},
"userEnteredFormat": {
"$ref": "CellFormat",
"description": "The format the user entered for the cell.\n\nWhen writing, the new format will be merged with the existing format."
},
"effectiveFormat": {
"$ref": "CellFormat",
"description": "The effective format being used by the cell.\nThis includes the results of applying any conditional formatting and,\nif the cell contains a formula, the computed number format.\nIf the effective format is the default format, effective format will\nnot be written.\nThis field is read-only."
},
"note": {
"description": "Any note on the cell.",
"type": "string"
},
"userEnteredValue": {
"$ref": "ExtendedValue",
"description": "The value the user entered in the cell. e.g, `1234`, `'Hello'`, or `=NOW()`\nNote: Dates, Times and DateTimes are represented as doubles in\nserial number format."
},
"dataValidation": {
"description": "A data validation rule on the cell, if any.\n\nWhen writing, the new data validation rule will overwrite any prior rule.",
"$ref": "DataValidationRule"
},
"effectiveValue": {
"$ref": "ExtendedValue",
"description": "The effective value of the cell. For cells with formulas, this will be\nthe calculated value. For cells with literals, this will be\nthe same as the user_entered_value.\nThis field is read-only."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CellData",
"description": "Data about a specific cell.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BatchUpdateSpreadsheetRequest": {
"id": "BatchUpdateSpreadsheetRequest",
"description": "The request for updating any aspect of a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"responseIncludeGridData": {
"description": "True if grid data should be returned. Meaningful only if\nif include_spreadsheet_response is 'true'.\nThis parameter is ignored if a field mask was set in the request.",
"type": "boolean"
},
"responseRanges": {
"description": "Limits the ranges included in the response spreadsheet.\nMeaningful only if include_spreadsheet_response is 'true'.",
2017-08-05 18:17:15 +00:00
"items": {
"type": "string"
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"includeSpreadsheetInResponse": {
"type": "boolean",
"description": "Determines if the update response should include the spreadsheet\nresource."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"requests": {
"description": "A list of updates to apply to the spreadsheet.\nRequests will be applied in the order they are specified.\nIf any request is not valid, no requests will be applied.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "Request"
2017-08-05 18:17:15 +00:00
},
"type": "array"
}
2017-09-13 12:09:48 +00:00
}
},
"BasicChartAxis": {
"description": "An axis of the chart.\nA chart may not have more than one axis per\naxis position.",
"type": "object",
"properties": {
"format": {
"$ref": "TextFormat",
"description": "The format of the title.\nOnly valid if the axis is not associated with the domain."
},
"title": {
"description": "The title of this axis. If set, this overrides any title inferred\nfrom headers of the data.",
"type": "string"
},
"position": {
"description": "The position of this axis.",
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
"The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
"The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
],
"enum": [
"BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
"BOTTOM_AXIS",
"LEFT_AXIS",
"RIGHT_AXIS"
]
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"id": "BasicChartAxis"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Padding": {
"description": "The amount of padding around the cell, in pixels.\nWhen updating padding, every field must be specified.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"top": {
"format": "int32",
"description": "The top padding of the cell.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"left": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The left padding of the cell.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"right": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The right padding of the cell.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"bottom": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The bottom padding of the cell.",
2017-08-05 18:17:15 +00:00
"type": "integer"
}
},
2017-09-13 12:09:48 +00:00
"id": "Padding"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteDimensionRequest": {
"description": "Deletes the dimensions from the sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "DimensionRange",
"description": "The dimensions to delete from the sheet."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteDimensionRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateChartSpecRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"spec": {
"description": "The specification to apply to the chart.",
"$ref": "ChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"chartId": {
"type": "integer",
"format": "int32",
"description": "The ID of the chart to update."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateChartSpecRequest",
"description": "Updates a chart's specifications.\n(This does not move or resize a chart. To move or resize a chart, use\n UpdateEmbeddedObjectPositionRequest.)",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteFilterViewRequest": {
"id": "DeleteFilterViewRequest",
"description": "Deletes a particular filter view.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"filterId": {
"type": "integer",
"format": "int32",
"description": "The ID of the filter to delete."
}
}
},
"BatchUpdateValuesResponse": {
"id": "BatchUpdateValuesResponse",
"description": "The response when updating a range of values in a spreadsheet.",
"type": "object",
"properties": {
"totalUpdatedColumns": {
"format": "int32",
"description": "The total number of columns where at least one cell in the column was\nupdated.",
"type": "integer"
},
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"totalUpdatedRows": {
"format": "int32",
"description": "The total number of rows where at least one cell in the row was updated.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"responses": {
"description": "One UpdateValuesResponse per requested range, in the same order as\nthe requests appeared.",
"items": {
"$ref": "UpdateValuesResponse"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"totalUpdatedSheets": {
"type": "integer",
"format": "int32",
"description": "The total number of sheets where at least one cell in the sheet was\nupdated."
},
"totalUpdatedCells": {
"format": "int32",
"description": "The total number of cells updated.",
"type": "integer"
}
}
},
"SortRangeRequest": {
"description": "Sorts data in rows based on a sort order per column.",
"type": "object",
"properties": {
"range": {
"$ref": "GridRange",
"description": "The range to sort."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sortSpecs": {
"description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
"items": {
"$ref": "SortSpec"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "SortRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"MergeCellsRequest": {
"description": "Merges all cells in the range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"mergeType": {
"description": "How the cells should be merged.",
"type": "string",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Create a single merge from the range",
"Create a merge for each column in the range",
"Create a merge for each row in the range"
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"MERGE_ALL",
"MERGE_COLUMNS",
"MERGE_ROWS"
]
},
"range": {
"$ref": "GridRange",
"description": "The range of cells to merge."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "MergeCellsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddProtectedRangeRequest": {
"properties": {
"protectedRange": {
"description": "The protected range to be added. The\nprotectedRangeId field is optional; if\none is not set, an id will be randomly generated. (It is an error to\nspecify the ID of a range that already exists.)",
"$ref": "ProtectedRange"
}
},
"id": "AddProtectedRangeRequest",
"description": "Adds a new protected range.",
"type": "object"
},
"BatchClearValuesRequest": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"ranges": {
"description": "The ranges to clear, in A1 notation.",
"items": {
"type": "string"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BatchClearValuesRequest",
"description": "The request for clearing more than one range of values in a spreadsheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DuplicateFilterViewResponse": {
"description": "The result of a filter view being duplicated.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"filter": {
"$ref": "FilterView",
"description": "The newly created filter."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DuplicateFilterViewResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DuplicateSheetResponse": {
"description": "The result of duplicating a sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"properties": {
"$ref": "SheetProperties",
"description": "The properties of the duplicate sheet."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DuplicateSheetResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"TextToColumnsRequest": {
"description": "Splits a column of text into multiple columns,\nbased on a delimiter in each cell.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"delimiterType": {
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value. This value must not be used.",
"\",\"",
"\";\"",
"\".\"",
"\" \"",
"A custom value as defined in delimiter."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"DELIMITER_TYPE_UNSPECIFIED",
"COMMA",
"SEMICOLON",
"PERIOD",
"SPACE",
"CUSTOM"
],
"description": "The delimiter type to use."
},
"source": {
"$ref": "GridRange",
"description": "The source data range. This must span exactly one column."
},
"delimiter": {
"description": "The delimiter to use. Used only if delimiterType is\nCUSTOM.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "TextToColumnsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ClearBasicFilterRequest": {
"id": "ClearBasicFilterRequest",
"description": "Clears the basic filter, if any exists on the sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The sheet ID on which the basic filter should be cleared.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BatchUpdateSpreadsheetResponse": {
"description": "The reply for batch updating a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"updatedSpreadsheet": {
"$ref": "Spreadsheet",
"description": "The spreadsheet after updates were applied. This is only set if\n[BatchUpdateSpreadsheetRequest.include_spreadsheet_in_response] is `true`."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"replies": {
"description": "The reply of the updates. This maps 1:1 with the updates, although\nreplies to some requests may be empty.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "Response"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BatchUpdateSpreadsheetResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteBandingRequest": {
"description": "Removes the banded range with the given ID from the spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"bandedRangeId": {
"format": "int32",
"description": "The ID of the banded range to delete.",
"type": "integer"
}
},
"id": "DeleteBandingRequest"
},
"AppendValuesResponse": {
"description": "The response when updating a range of values in a spreadsheet.",
"type": "object",
"properties": {
"updates": {
"$ref": "UpdateValuesResponse",
"description": "Information about the updates that were applied."
},
"tableRange": {
"description": "The range (in A1 notation) of the table that values are being appended to\n(before the values were appended).\nEmpty if no table was found.",
"type": "string"
},
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
}
},
"id": "AppendValuesResponse"
},
"AddFilterViewRequest": {
"description": "Adds a filter view.",
"type": "object",
"properties": {
"filter": {
"$ref": "FilterView",
"description": "The filter to add. The filterViewId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a filter that already exists.)"
}
},
"id": "AddFilterViewRequest"
},
"MoveDimensionRequest": {
"description": "Moves one or more rows or columns.",
"type": "object",
"properties": {
"destinationIndex": {
"type": "integer",
"format": "int32",
"description": "The zero-based start index of where to move the source data to,\nbased on the coordinates *before* the source data is removed\nfrom the grid. Existing data will be shifted down or right\n(depending on the dimension) to make room for the moved dimensions.\nThe source dimensions are removed from the grid, so the\nthe data may end up in a different index than specified.\n\nFor example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move\n`\"1\"` and `\"2\"` to between `\"3\"` and `\"4\"`, the source would be\n`ROWS [1..3)`,and the destination index would be `\"4\"`\n(the zero-based index of row 5).\nThe end result would be `A1..A5` of `0, 3, 1, 2, 4`."
2017-08-05 18:17:15 +00:00
},
"source": {
2017-09-13 12:09:48 +00:00
"description": "The source dimensions to move.",
"$ref": "DimensionRange"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "MoveDimensionRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PivotFilterCriteria": {
"description": "Criteria for showing/hiding rows in a pivot table.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"visibleValues": {
"description": "Values that should be included. Values not listed here are excluded.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"type": "string"
2017-08-05 18:17:15 +00:00
},
"type": "array"
}
},
2017-09-13 12:09:48 +00:00
"id": "PivotFilterCriteria"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddConditionalFormatRuleRequest": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"rule": {
"$ref": "ConditionalFormatRule",
"description": "The rule to add."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"index": {
"type": "integer",
"format": "int32",
"description": "The zero-based index where the rule should be inserted."
}
},
"id": "AddConditionalFormatRuleRequest",
"description": "Adds a new conditional format rule at the given index.\nAll subsequent rules' indexes are incremented."
},
"ChartSpec": {
"description": "The specifications of a chart.",
"type": "object",
"properties": {
"backgroundColor": {
"$ref": "Color",
"description": "The background color of the entire chart.\nNot applicable to Org charts."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"basicChart": {
"$ref": "BasicChartSpec",
"description": "A basic chart specification, can be one of many kinds of charts.\nSee BasicChartType for the list of all\ncharts this supports."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"orgChart": {
"description": "An org chart specification.",
"$ref": "OrgChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"pieChart": {
"$ref": "PieChartSpec",
"description": "A pie chart specification."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"titleTextFormat": {
"$ref": "TextFormat",
"description": "The title text format.\nStrikethrough and underline are not supported."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"title": {
"description": "The title of the chart.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"altText": {
"description": "The alternative text that describes the chart. This is often used\nfor accessibility.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"histogramChart": {
"$ref": "HistogramChartSpec",
"description": "A histogram chart specification."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"candlestickChart": {
"description": "A candlestick chart specification.",
"$ref": "CandlestickChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"bubbleChart": {
"$ref": "BubbleChartSpec",
"description": "A bubble chart specification."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fontName": {
"type": "string",
"description": "The name of the font to use by default for all chart text (e.g. title,\naxis labels, legend). If a font is specified for a specific part of the\nchart it will override this font name."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"maximized": {
"description": "True to make a chart fill the entire space in which it's rendered with\nminimum padding. False to use the default padding.\n(Not applicable to Geo and Org charts.)",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hiddenDimensionStrategy": {
"description": "Determines how the charts will use hidden rows or columns.",
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"Charts will skip hidden rows and columns.",
"Charts will skip hidden rows only.",
"Charts will skip hidden columns only.",
"Charts will not skip any hidden rows or columns."
],
"enum": [
"CHART_HIDDEN_DIMENSION_STRATEGY_UNSPECIFIED",
"SKIP_HIDDEN_ROWS_AND_COLUMNS",
"SKIP_HIDDEN_ROWS",
"SKIP_HIDDEN_COLUMNS",
"SHOW_ALL"
]
}
},
"id": "ChartSpec"
},
"NumberFormat": {
"description": "The number format of a cell.",
"type": "object",
"properties": {
"type": {
"enum": [
"NUMBER_FORMAT_TYPE_UNSPECIFIED",
"TEXT",
"NUMBER",
"PERCENT",
"CURRENCY",
"DATE",
"TIME",
"DATE_TIME",
"SCIENTIFIC"
],
"description": "The type of the number format.\nWhen writing, this field must be set.",
"type": "string",
"enumDescriptions": [
"The number format is not specified\nand is based on the contents of the cell.\nDo not explicitly use this.",
"Text formatting, e.g `1000.12`",
"Number formatting, e.g, `1,000.12`",
"Percent formatting, e.g `10.12%`",
"Currency formatting, e.g `$1,000.12`",
"Date formatting, e.g `9/26/2008`",
"Time formatting, e.g `3:59:00 PM`",
"Date+Time formatting, e.g `9/26/08 15:59:00`",
"Scientific number formatting, e.g `1.01E+03`"
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"pattern": {
"type": "string",
"description": "Pattern string used for formatting. If not set, a default pattern based on\nthe user's locale will be used if necessary for the given type.\nSee the [Date and Number Formats guide](/sheets/api/guides/formats) for more\ninformation about the supported patterns."
}
},
"id": "NumberFormat"
},
"CandlestickDomain": {
"description": "The domain of a CandlestickChart.",
"type": "object",
"properties": {
"data": {
"description": "The data of the CandlestickDomain.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"reversed": {
"description": "True to reverse the order of the domain values (horizontal axis).",
"type": "boolean"
}
},
"id": "CandlestickDomain"
},
"SheetProperties": {
"type": "object",
"properties": {
"title": {
"description": "The name of the sheet.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"index": {
"format": "int32",
"description": "The index of the sheet within the spreadsheet.\nWhen adding or updating sheet properties, if this field\nis excluded then the sheet will be added or moved to the end\nof the sheet list. When updating sheet indices or inserting\nsheets, movement is considered in \"before the move\" indexes.\nFor example, if there were 3 sheets (S1, S2, S3) in order to\nmove S1 ahead of S2 the index would have to be set to 2. A sheet\nindex update request will be ignored if the requested index is\nidentical to the sheets current index or if the requested new\nindex is equal to the current sheet index + 1.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"tabColor": {
"$ref": "Color",
"description": "The color of the tab in the UI."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The ID of the sheet. Must be non-negative.\nThis field cannot be changed once set.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"rightToLeft": {
"description": "True if the sheet is an RTL sheet instead of an LTR sheet.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hidden": {
"description": "True if the sheet is hidden in the UI, false if it's visible.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"gridProperties": {
"$ref": "GridProperties",
"description": "Additional properties of the sheet if this sheet is a grid.\n(If the sheet is an object sheet, containing a chart or image, then\nthis field will be absent.)\nWhen writing it is an error to set any grid properties on non-grid sheets."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetType": {
"description": "The type of sheet. Defaults to GRID.\nThis field cannot be changed once set.",
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"The sheet is a grid.",
"The sheet has no grid and instead has an object like a chart or image."
],
"enum": [
"SHEET_TYPE_UNSPECIFIED",
"GRID",
"OBJECT"
]
}
},
"id": "SheetProperties",
"description": "Properties of a sheet."
},
"UpdateDimensionPropertiesRequest": {
"description": "Updates properties of dimensions within the specified range.",
"type": "object",
"properties": {
"range": {
"$ref": "DimensionRange",
"description": "The rows or columns to update."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root `properties` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"properties": {
"$ref": "DimensionProperties",
"description": "Properties to update."
}
},
"id": "UpdateDimensionPropertiesRequest"
},
"SourceAndDestination": {
"description": "A combination of a source range and how to extend that source.",
"type": "object",
"properties": {
"dimension": {
"enumDescriptions": [
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
],
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"description": "The dimension that data should be filled into.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fillLength": {
"format": "int32",
"description": "The number of rows or columns that data should be filled into.\nPositive numbers expand beyond the last row or last column\nof the source. Negative numbers expand before the first row\nor first column of the source.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"source": {
"$ref": "GridRange",
"description": "The location of the data to use as the source of the autofill."
}
},
"id": "SourceAndDestination"
},
"FilterView": {
"id": "FilterView",
"description": "A filter view.",
"type": "object",
"properties": {
"criteria": {
"additionalProperties": {
"$ref": "FilterCriteria"
},
"description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"title": {
"description": "The name of the filter view.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range this filter view covers.\n\nWhen writing, only one of range or named_range_id\nmay be set."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sortSpecs": {
"description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
"items": {
"$ref": "SortSpec"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"namedRangeId": {
"description": "The named range this filter view is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"filterViewId": {
"format": "int32",
"description": "The ID of the filter view.",
"type": "integer"
}
}
},
"OrgChartSpec": {
"description": "An \u003ca href=\"/chart/interactive/docs/gallery/orgchart\"\u003eorg chart\u003c/a\u003e.\nOrg charts require a unique set of labels in labels and may\noptionally include parent_labels and tooltips.\nparent_labels contain, for each node, the label identifying the parent\nnode. tooltips contain, for each node, an optional tooltip.\n\nFor example, to describe an OrgChart with Alice as the CEO, Bob as the\nPresident (reporting to Alice) and Cathy as VP of Sales (also reporting to\nAlice), have labels contain \"Alice\", \"Bob\", \"Cathy\",\nparent_labels contain \"\", \"Alice\", \"Alice\" and tooltips contain\n\"CEO\", \"President\", \"VP Sales\".",
"type": "object",
"properties": {
"tooltips": {
"description": "The data containing the tooltip for the corresponding node. A blank value\nresults in no tooltip being displayed for the node.\nThis field is optional.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"selectedNodeColor": {
"description": "The color of the selected org chart nodes.",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"parentLabels": {
"description": "The data containing the label of the parent for the corresponding node.\nA blank value indicates that the node has no parent and is a top-level\nnode.\nThis field is optional.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"nodeSize": {
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"The small org chart node size.",
"The medium org chart node size.",
"The large org chart node size."
],
"enum": [
"ORG_CHART_LABEL_SIZE_UNSPECIFIED",
"SMALL",
"MEDIUM",
"LARGE"
],
"description": "The size of the org chart nodes."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"labels": {
"description": "The data containing the labels for all the nodes in the chart. Labels\nmust be unique.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"nodeColor": {
"$ref": "Color",
"description": "The color of the org chart nodes."
}
},
"id": "OrgChartSpec"
},
"BandingProperties": {
"description": "Properties referring a single dimension (either row or column). If both\nBandedRange.row_properties and BandedRange.column_properties are\nset, the fill colors are applied to cells according to the following rules:\n\n* header_color and footer_color take priority over band colors.\n* first_band_color takes priority over second_band_color.\n* row_properties takes priority over column_properties.\n\nFor example, the first row color takes priority over the first column\ncolor, but the first column color takes priority over the second row color.\nSimilarly, the row header takes priority over the column header in the\ntop left cell, but the column header takes priority over the first row\ncolor if the row header is not set.",
"type": "object",
"properties": {
"firstBandColor": {
"description": "The first color that is alternating. (Required)",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"secondBandColor": {
"description": "The second color that is alternating. (Required)",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"footerColor": {
"description": "The color of the last row or column. If this field is not set, the last\nrow or column will be filled with either first_band_color or\nsecond_band_color, depending on the color of the previous row or\ncolumn.",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"headerColor": {
"description": "The color of the first row or column. If this field is set, the first\nrow or column will be filled with this color and the colors will\nalternate between first_band_color and second_band_color starting\nfrom the second row or column. Otherwise, the first row or column will be\nfilled with first_band_color and the colors will proceed to alternate\nas they normally would.",
"$ref": "Color"
}
},
"id": "BandingProperties"
},
"AddProtectedRangeResponse": {
"description": "The result of adding a new protected range.",
"type": "object",
"properties": {
"protectedRange": {
"description": "The newly added protected range.",
"$ref": "ProtectedRange"
}
},
"id": "AddProtectedRangeResponse"
},
"BasicFilter": {
"properties": {
"criteria": {
"description": "The criteria for showing/hiding values per column.\nThe map's key is the column index, and the value is the criteria for\nthat column.",
"type": "object",
"additionalProperties": {
"$ref": "FilterCriteria"
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range the filter covers."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sortSpecs": {
"description": "The sort order per column. Later specifications are used when values\nare equal in the earlier specifications.",
"items": {
"$ref": "SortSpec"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BasicFilter",
"description": "The default filter associated with a sheet.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CandlestickSeries": {
"description": "The series of a CandlestickData.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"data": {
"$ref": "ChartData",
"description": "The data of the CandlestickSeries."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CandlestickSeries"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"HistogramChartSpec": {
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/histogram\"\u003ehistogram chart\u003c/a\u003e.\nA histogram chart groups data items into bins, displaying each bin as a\ncolumn of stacked items. Histograms are used to display the distribution\nof a dataset. Each column of items represents a range into which those\nitems fall. The number of bins can be chosen automatically or specified\nexplicitly.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"bucketSize": {
"format": "double",
"description": "By default the bucket size (the range of values stacked in a single\ncolumn) is chosen automatically, but it may be overridden here.\nE.g., A bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc.\nCannot be negative.\nThis field is optional.",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"outlierPercentile": {
"format": "double",
"description": "The outlier percentile is used to ensure that outliers do not adversely\naffect the calculation of bucket sizes. For example, setting an outlier\npercentile of 0.05 indicates that the top and bottom 5% of values when\ncalculating buckets. The values are still included in the chart, they will\nbe added to the first or last buckets instead of their own buckets.\nMust be between 0.0 and 0.5.",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"showItemDividers": {
"description": "Whether horizontal divider lines should be displayed between items in each\ncolumn.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
"series": {
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "HistogramSeries"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"type": "array",
"description": "The series for a histogram may be either a single series of values to be\nbucketed or multiple series, each of the same length, containing the name\nof the series followed by the values to be bucketed for that series."
2017-08-05 18:17:15 +00:00
},
"legendPosition": {
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
"The legend is rendered on the bottom of the chart.",
"The legend is rendered on the left of the chart.",
"The legend is rendered on the right of the chart.",
"The legend is rendered on the top of the chart.",
2017-09-13 12:09:48 +00:00
"No legend is rendered.",
"The legend is rendered inside the chart area."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"HISTOGRAM_CHART_LEGEND_POSITION_UNSPECIFIED",
2017-08-05 18:17:15 +00:00
"BOTTOM_LEGEND",
"LEFT_LEGEND",
"RIGHT_LEGEND",
"TOP_LEGEND",
2017-09-13 12:09:48 +00:00
"NO_LEGEND",
"INSIDE_LEGEND"
],
"description": "The position of the chart legend."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "HistogramChartSpec"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateValuesResponse": {
"description": "The response when updating a range of values in a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"updatedData": {
"$ref": "ValueRange",
"description": "The values of the cells after updates were applied.\nThis is only included if the request's `includeValuesInResponse` field\nwas `true`."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updatedRows": {
"format": "int32",
"description": "The number of rows where at least one cell in the row was updated.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updatedColumns": {
"type": "integer",
"format": "int32",
"description": "The number of columns where at least one cell in the column was updated."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updatedRange": {
"description": "The range (in A1 notation) that updates were applied to.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updatedCells": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of cells updated.",
2017-08-05 18:17:15 +00:00
"type": "integer"
2017-09-13 12:09:48 +00:00
}
},
"id": "UpdateValuesResponse"
},
"PivotValue": {
"properties": {
"sourceColumnOffset": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The column offset of the source range that this value reads from.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this value refers to column `C`, whereas the offset `1` would\nrefer to column `D`.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"name": {
"description": "A name to use for the value. This is only used if formula was set.\nOtherwise, the column name is used.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"formula": {
"description": "A custom formula to calculate the value. The formula must start\nwith an `=` character.",
"type": "string"
},
"summarizeFunction": {
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The default, do not use.",
"Corresponds to the `SUM` function.",
"Corresponds to the `COUNTA` function.",
"Corresponds to the `COUNT` function.",
"Corresponds to the `COUNTUNIQUE` function.",
"Corresponds to the `AVERAGE` function.",
"Corresponds to the `MAX` function.",
"Corresponds to the `MIN` function.",
"Corresponds to the `MEDIAN` function.",
"Corresponds to the `PRODUCT` function.",
"Corresponds to the `STDEV` function.",
"Corresponds to the `STDEVP` function.",
"Corresponds to the `VAR` function.",
"Corresponds to the `VARP` function.",
"Indicates the formula should be used as-is.\nOnly valid if PivotValue.formula was set."
],
"enum": [
"PIVOT_STANDARD_VALUE_FUNCTION_UNSPECIFIED",
"SUM",
"COUNTA",
"COUNT",
"COUNTUNIQUE",
"AVERAGE",
"MAX",
"MIN",
"MEDIAN",
"PRODUCT",
"STDEV",
"STDEVP",
"VAR",
"VARP",
"CUSTOM"
],
"description": "A function to summarize the value.\nIf formula is set, the only supported values are\nSUM and\nCUSTOM.\nIf sourceColumnOffset is set, then `CUSTOM`\nis not supported."
}
},
"id": "PivotValue",
"description": "The definition of how a value in a pivot table should be calculated.",
"type": "object"
},
"ErrorValue": {
"type": "object",
"properties": {
"type": {
"enumDescriptions": [
"The default error type, do not use this.",
"Corresponds to the `#ERROR!` error.",
"Corresponds to the `#NULL!` error.",
"Corresponds to the `#DIV/0` error.",
"Corresponds to the `#VALUE!` error.",
"Corresponds to the `#REF!` error.",
"Corresponds to the `#NAME?` error.",
"Corresponds to the `#NUM`! error.",
"Corresponds to the `#N/A` error.",
"Corresponds to the `Loading...` state."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"ERROR_TYPE_UNSPECIFIED",
"ERROR",
"NULL_VALUE",
"DIVIDE_BY_ZERO",
"VALUE",
"REF",
"NAME",
"NUM",
"N_A",
"LOADING"
],
"description": "The type of error.",
"type": "string"
},
"message": {
"description": "A message with more information about the error\n(in the spreadsheet's locale).",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ErrorValue",
"description": "An error in a cell."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CopySheetToAnotherSpreadsheetRequest": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"destinationSpreadsheetId": {
"type": "string",
"description": "The ID of the spreadsheet to copy the sheet to."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CopySheetToAnotherSpreadsheetRequest",
"description": "The request to copy a sheet across spreadsheets."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PivotGroupSortValueBucket": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"valuesIndex": {
"format": "int32",
"description": "The offset in the PivotTable.values list which the values in this\ngrouping should be sorted by.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"buckets": {
"description": "Determines the bucket from which values are chosen to sort.\n\nFor example, in a pivot table with one row group & two column groups,\nthe row group can list up to two values. The first value corresponds\nto a value within the first column group, and the second value\ncorresponds to a value in the second column group. If no values\nare listed, this would indicate that the row should be sorted according\nto the \"Grand Total\" over the column groups. If a single value is listed,\nthis would correspond to using the \"Total\" of that bucket.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "ExtendedValue"
2017-08-05 18:17:15 +00:00
},
"type": "array"
}
},
2017-09-13 12:09:48 +00:00
"id": "PivotGroupSortValueBucket",
"description": "Information about which values in a pivot group should be used for sorting."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CandlestickChartSpec": {
"id": "CandlestickChartSpec",
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/candlestickchart\"\u003ecandlestick chart\u003c/a\u003e.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"data": {
"description": "The Candlestick chart data.\nOnly one CandlestickData is supported.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "CandlestickData"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"domain": {
"description": "The domain data (horizontal axis) for the candlestick chart. String data\nwill be treated as discrete labels, other data will be treated as\ncontinuous values.",
"$ref": "CandlestickDomain"
}
}
},
"CandlestickData": {
"properties": {
"highSeries": {
"$ref": "CandlestickSeries",
"description": "The range data (vertical axis) for the high/maximum value for each\ncandle. This is the top of the candle's center line."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"closeSeries": {
"$ref": "CandlestickSeries",
"description": "The range data (vertical axis) for the close/final value for each candle.\nThis is the top of the candle body. If greater than the open value the\ncandle will be filled. Otherwise the candle will be hollow."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"lowSeries": {
"$ref": "CandlestickSeries",
"description": "The range data (vertical axis) for the low/minimum value for each candle.\nThis is the bottom of the candle's center line."
},
"openSeries": {
"$ref": "CandlestickSeries",
"description": "The range data (vertical axis) for the open/initial value for each\ncandle. This is the bottom of the candle body. If less than the close\nvalue the candle will be filled. Otherwise the candle will be hollow."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CandlestickData",
"description": "The Candlestick chart data, each containing the low, open, close, and high\nvalues for a series.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"EmbeddedObjectPosition": {
"id": "EmbeddedObjectPosition",
"description": "The position of an embedded object such as a chart.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"newSheet": {
"description": "If true, the embedded object will be put on a new sheet whose ID\nis chosen for you. Used only when writing.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"overlayPosition": {
"$ref": "OverlayPosition",
"description": "The position at which the object is overlaid on top of a grid."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The sheet this is on. Set only if the embedded object\nis on its own sheet. Must be non-negative.",
2017-08-05 18:17:15 +00:00
"type": "integer"
2017-09-13 12:09:48 +00:00
}
}
},
"DeleteProtectedRangeRequest": {
"properties": {
"protectedRangeId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The ID of the protected range to delete.",
2017-08-05 18:17:15 +00:00
"type": "integer"
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteProtectedRangeRequest",
"description": "Deletes the protected range with the given ID.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AutoFillRequest": {
"description": "Fills in more data based on existing data.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"useAlternateSeries": {
"description": "True if we should generate data with the \"alternate\" series.\nThis differs based on the type and amount of source data.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sourceAndDestination": {
"$ref": "SourceAndDestination",
"description": "The source and destination areas to autofill.\nThis explicitly lists the source of the autofill and where to\nextend that data."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range to autofill. This will examine the range and detect\nthe location that has data and automatically fill that data\nin to the rest of the range."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AutoFillRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"GradientRule": {
"description": "A rule that applies a gradient color scale format, based on\nthe interpolation points listed. The format of a cell will vary\nbased on its contents as compared to the values of the interpolation\npoints.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"midpoint": {
"description": "An optional midway interpolation point.",
"$ref": "InterpolationPoint"
},
"maxpoint": {
"$ref": "InterpolationPoint",
"description": "The final interpolation point."
},
"minpoint": {
"description": "The starting interpolation point.",
"$ref": "InterpolationPoint"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "GradientRule"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"SetBasicFilterRequest": {
"description": "Sets the basic filter associated with a sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"filter": {
"$ref": "BasicFilter",
"description": "The filter to set."
}
},
"id": "SetBasicFilterRequest"
},
"ClearValuesRequest": {
"description": "The request for clearing a range of values in a spreadsheet.",
"type": "object",
"properties": {},
"id": "ClearValuesRequest"
},
"InterpolationPoint": {
"description": "A single interpolation point on a gradient conditional format.\nThese pin the gradient color scale according to the color,\ntype and value chosen.",
"type": "object",
"properties": {
"color": {
"description": "The color this interpolation point should use.",
"$ref": "Color"
},
"type": {
"enum": [
"INTERPOLATION_POINT_TYPE_UNSPECIFIED",
"MIN",
"MAX",
"NUMBER",
"PERCENT",
"PERCENTILE"
],
"description": "How the value should be interpreted.",
"type": "string",
"enumDescriptions": [
"The default value, do not use.",
"The interpolation point will use the minimum value in the\ncells over the range of the conditional format.",
"The interpolation point will use the maximum value in the\ncells over the range of the conditional format.",
"The interpolation point will use exactly the value in\nInterpolationPoint.value.",
"The interpolation point will be the given percentage over\nall the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=(MAX(FLATTEN(range)) * (value / 100))\n + (MIN(FLATTEN(range)) * (1 - (value / 100)))`\n(where errors in the range are ignored when flattening).",
"The interpolation point will be the given percentile\nover all the cells in the range of the conditional format.\nThis is equivalent to NUMBER if the value was:\n`=PERCENTILE(FLATTEN(range), value / 100)`\n(where errors in the range are ignored when flattening)."
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"value": {
"description": "The value this interpolation point uses. May be a formula.\nUnused if type is MIN or\nMAX.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "InterpolationPoint"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FindReplaceResponse": {
"id": "FindReplaceResponse",
"description": "The result of the find/replace.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sheetsChanged": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of sheets changed.",
2017-08-05 18:17:15 +00:00
"type": "integer"
2017-09-13 12:09:48 +00:00
},
"formulasChanged": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of formula cells changed.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"valuesChanged": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of non-formula cells changed.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"occurrencesChanged": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of occurrences (possibly multiple within a cell) changed.\nFor example, if replacing `\"e\"` with `\"o\"` in `\"Google Sheets\"`, this would\nbe `\"3\"` because `\"Google Sheets\"` -\u003e `\"Googlo Shoots\"`.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"rowsChanged": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The number of rows changed.",
2017-08-05 18:17:15 +00:00
"type": "integer"
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteEmbeddedObjectRequest": {
"description": "Deletes the embedded object with the given ID.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"objectId": {
"format": "int32",
"description": "The ID of the embedded object to delete.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteEmbeddedObjectRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DuplicateFilterViewRequest": {
"description": "Duplicates a particular filter view.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"filterId": {
"format": "int32",
"description": "The ID of the filter being duplicated.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DuplicateFilterViewRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteSheetRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The ID of the sheet to delete.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteSheetRequest",
"description": "Deletes the requested sheet.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateConditionalFormatRuleResponse": {
"description": "The result of updating a conditional format rule.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"newIndex": {
"type": "integer",
"format": "int32",
"description": "The index of the new rule."
},
"newRule": {
"$ref": "ConditionalFormatRule",
"description": "The new rule that replaced the old rule (if replacing),\nor the rule that was moved (if moved)"
},
"oldIndex": {
"format": "int32",
"description": "The old index of the rule. Not set if a rule was replaced\n(because it is the same as new_index).",
"type": "integer"
},
"oldRule": {
"$ref": "ConditionalFormatRule",
"description": "The old (deleted) rule. Not set if a rule was moved\n(because it is the same as new_rule)."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateConditionalFormatRuleResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DuplicateSheetRequest": {
"description": "Duplicates the contents of a sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"newSheetName": {
"description": "The name of the new sheet. If empty, a new name is chosen for you.",
"type": "string"
},
"sourceSheetId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The sheet to duplicate.",
"type": "integer"
},
"newSheetId": {
"format": "int32",
"description": "If set, the ID of the new sheet. If not set, an ID is chosen.\nIf set, the ID must not conflict with any existing sheet ID.\nIf set, it must be non-negative.",
"type": "integer"
},
"insertSheetIndex": {
"format": "int32",
"description": "The zero-based index where the new sheet should be inserted.\nThe index of all sheets after this are incremented.",
2017-08-05 18:17:15 +00:00
"type": "integer"
}
},
2017-09-13 12:09:48 +00:00
"id": "DuplicateSheetRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ConditionValue": {
"id": "ConditionValue",
"description": "The value of the condition.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"userEnteredValue": {
"description": "A value the condition is based on.\nThe value will be parsed as if the user typed into a cell.\nFormulas are supported (and must begin with an `=`).",
"type": "string"
},
"relativeDate": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value, do not use.",
"The value is one year before today.",
"The value is one month before today.",
"The value is one week before today.",
"The value is yesterday.",
"The value is today.",
"The value is tomorrow."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"RELATIVE_DATE_UNSPECIFIED",
"PAST_YEAR",
"PAST_MONTH",
"PAST_WEEK",
"YESTERDAY",
"TODAY",
"TOMORROW"
],
"description": "A relative date (based on the current date).\nValid only if the type is\nDATE_BEFORE,\nDATE_AFTER,\nDATE_ON_OR_BEFORE or\nDATE_ON_OR_AFTER.\n\nRelative dates are not supported in data validation.\nThey are supported only in conditional formatting and\nconditional filters.",
"type": "string"
}
}
},
"ExtendedValue": {
"description": "The kinds of value that a cell in a spreadsheet can have.",
"type": "object",
"properties": {
"errorValue": {
"description": "Represents an error.\nThis field is read-only.",
"$ref": "ErrorValue"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"formulaValue": {
"description": "Represents a formula.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"boolValue": {
"description": "Represents a boolean value.",
"type": "boolean"
},
"stringValue": {
"description": "Represents a string value.\nLeading single quotes are not included. For example, if the user typed\n`'123` into the UI, this would be represented as a `stringValue` of\n`\"123\"`.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
},
"numberValue": {
"format": "double",
"description": "Represents a double value.\nNote: Dates, Times and DateTimes are represented as doubles in\n\"serial number\" format.",
"type": "number"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ExtendedValue"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddChartRequest": {
"properties": {
"chart": {
"description": "The chart that should be added to the spreadsheet, including the position\nwhere it should be placed. The chartId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a chart that already exists.)",
"$ref": "EmbeddedChart"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AddChartRequest",
"description": "Adds a chart to a sheet in the spreadsheet.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Spreadsheet": {
"description": "Resource that represents a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"spreadsheetUrl": {
"description": "The url of the spreadsheet.\nThis field is read-only.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"properties": {
"description": "Overall properties of a spreadsheet.",
"$ref": "SpreadsheetProperties"
},
"namedRanges": {
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "NamedRange"
},
"type": "array",
"description": "The named ranges defined in a spreadsheet."
},
"sheets": {
"description": "The sheets that are part of a spreadsheet.",
"items": {
"$ref": "Sheet"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
"spreadsheetId": {
2017-09-13 12:09:48 +00:00
"description": "The ID of the spreadsheet.\nThis field is read-only.",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "Spreadsheet"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BatchClearValuesResponse": {
"description": "The response when clearing a range of values in a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
"type": "string"
2017-09-13 12:09:48 +00:00
},
"clearedRanges": {
2017-08-05 18:17:15 +00:00
"items": {
"type": "string"
},
2017-09-13 12:09:48 +00:00
"type": "array",
"description": "The ranges that were cleared, in A1 notation.\n(If the requests were for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual ranges\n that were cleared, bounded to the sheet's limits.)"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BatchClearValuesResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"HistogramSeries": {
"description": "A histogram series containing the series color and data.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"barColor": {
"description": "The color of the column representing this series in each bucket.\nThis field is optional.",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"data": {
"description": "The data for this histogram series.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "HistogramSeries"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BandedRange": {
"description": "A banded (alternating colors) range in a sheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range over which these properties are applied."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"bandedRangeId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The id of the banded range.",
2017-08-05 18:17:15 +00:00
"type": "integer"
2017-09-13 12:09:48 +00:00
},
"columnProperties": {
"description": "Properties for column bands. These properties will be applied on a column-\nby-column basis throughout all the columns in the range. At least one of\nrow_properties or column_properties must be specified.",
"$ref": "BandingProperties"
},
"rowProperties": {
"description": "Properties for row bands. These properties will be applied on a row-by-row\nbasis throughout all the rows in the range. At least one of\nrow_properties or column_properties must be specified.",
"$ref": "BandingProperties"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BandedRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateProtectedRangeRequest": {
"id": "UpdateProtectedRangeRequest",
"description": "Updates an existing protected range with the specified\nprotectedRangeId.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root `protectedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"protectedRange": {
"$ref": "ProtectedRange",
"description": "The protected range to update with the new properties."
}
}
},
"TextFormat": {
"id": "TextFormat",
"description": "The format of a run of text in a cell.\nAbsent values indicate that the field isn't specified.",
"type": "object",
"properties": {
"underline": {
"description": "True if the text is underlined.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"bold": {
"description": "True if the text is bold.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"foregroundColor": {
"$ref": "Color",
"description": "The foreground color of the text."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fontFamily": {
"description": "The font family.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"italic": {
"description": "True if the text is italicized.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"strikethrough": {
"description": "True if the text has a strikethrough.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fontSize": {
"format": "int32",
"description": "The size of the font.",
"type": "integer"
}
}
},
"AddSheetResponse": {
"description": "The result of adding a sheet.",
"type": "object",
"properties": {
"properties": {
"$ref": "SheetProperties",
"description": "The properties of the newly added sheet."
}
},
"id": "AddSheetResponse"
},
"AddFilterViewResponse": {
"description": "The result of adding a filter view.",
"type": "object",
"properties": {
"filter": {
"$ref": "FilterView",
"description": "The newly added filter view."
}
},
"id": "AddFilterViewResponse"
},
"IterativeCalculationSettings": {
"properties": {
"convergenceThreshold": {
"format": "double",
"description": "When iterative calculation is enabled and successive results differ by\nless than this threshold value, the calculation rounds stop.",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"maxIterations": {
"format": "int32",
"description": "When iterative calculation is enabled, the maximum number of calculation\nrounds to perform.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "IterativeCalculationSettings",
"description": "Settings to control how circular dependencies are resolved with iterative\ncalculation.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"SpreadsheetProperties": {
"description": "Properties of a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"autoRecalc": {
"type": "string",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default value. This value must not be used.",
"Volatile functions are updated on every change.",
"Volatile functions are updated on every change and every minute.",
"Volatile functions are updated on every change and hourly."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"RECALCULATION_INTERVAL_UNSPECIFIED",
"ON_CHANGE",
"MINUTE",
"HOUR"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "The amount of time to wait before volatile functions are recalculated."
},
"defaultFormat": {
"description": "The default format of all cells in the spreadsheet.\nCellData.effectiveFormat will not be set if the\ncell's format is equal to this default format.\nThis field is read-only.",
"$ref": "CellFormat"
},
"title": {
"description": "The title of the spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"timeZone": {
"description": "The time zone of the spreadsheet, in CLDR format such as\n`America/New_York`. If the time zone isn't recognized, this may\nbe a custom time zone such as `GMT-07:00`.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"locale": {
"description": "The locale of the spreadsheet in one of the following formats:\n\n* an ISO 639-1 language code such as `en`\n\n* an ISO 639-2 language code such as `fil`, if no 639-1 code exists\n\n* a combination of the ISO language code and country code, such as `en_US`\n\nNote: when updating this field, not all locales/languages are supported.",
"type": "string"
},
"iterativeCalculationSettings": {
"$ref": "IterativeCalculationSettings",
"description": "Determines whether and how circular references are resolved with iterative\ncalculation. Absence of this field means that circular references will\nresult in calculation errors."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "SpreadsheetProperties"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"OverlayPosition": {
"description": "The location an object is overlaid on top of a grid.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"widthPixels": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The width of the object, in pixels. Defaults to 600.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"offsetXPixels": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The horizontal offset, in pixels, that the object is offset\nfrom the anchor cell.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"anchorCell": {
"description": "The cell the object is anchored to.",
"$ref": "GridCoordinate"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"heightPixels": {
"type": "integer",
"format": "int32",
"description": "The height of the object, in pixels. Defaults to 371."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"offsetYPixels": {
"format": "int32",
"description": "The vertical offset, in pixels, that the object is offset\nfrom the anchor cell.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "OverlayPosition"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"RepeatCellRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"cell": {
"$ref": "CellData",
"description": "The data to write."
},
2017-08-05 18:17:15 +00:00
"range": {
2017-09-13 12:09:48 +00:00
"description": "The range to repeat the cell in.",
"$ref": "GridRange"
2017-08-05 18:17:15 +00:00
},
"fields": {
"format": "google-fieldmask",
2017-09-13 12:09:48 +00:00
"description": "The fields that should be updated. At least one field must be specified.\nThe root `cell` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
2017-08-05 18:17:15 +00:00
"type": "string"
2017-09-13 12:09:48 +00:00
}
},
"id": "RepeatCellRequest",
"description": "Updates all cells in the range to the values in the given Cell object.\nOnly the fields listed in the fields field are updated; others are\nunchanged.\n\nIf writing a cell with a formula, the formula's ranges will automatically\nincrement for each field in the range.\nFor example, if writing a cell with formula `=A1` into range B2:C4,\nB2 would be `=A1`, B3 would be `=A2`, B4 would be `=A3`,\nC2 would be `=B1`, C3 would be `=B2`, C4 would be `=B3`.\n\nTo keep the formula's ranges static, use the `$` indicator.\nFor example, use the formula `=$A$1` to prevent both the row and the\ncolumn from incrementing.",
"type": "object"
},
"AddChartResponse": {
"description": "The result of adding a chart to a spreadsheet.",
"type": "object",
"properties": {
"chart": {
"$ref": "EmbeddedChart",
"description": "The newly added chart."
}
},
"id": "AddChartResponse"
},
"InsertDimensionRequest": {
"description": "Inserts rows or columns in a sheet at a particular index.",
"type": "object",
"properties": {
"inheritFromBefore": {
"description": "Whether dimension properties should be extended from the dimensions\nbefore or after the newly inserted dimensions.\nTrue to inherit from the dimensions before (in which case the start\nindex must be greater than 0), and false to inherit from the dimensions\nafter.\n\nFor example, if row index 0 has red background and row index 1\nhas a green background, then inserting 2 rows at index 1 can inherit\neither the green or red background. If `inheritFromBefore` is true,\nthe two new rows will be red (because the row before the insertion point\nwas red), whereas if `inheritFromBefore` is false, the two new rows will\nbe green (because the row after the insertion point was green).",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "DimensionRange",
"description": "The dimensions to insert. Both the start and end indexes must be bounded."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "InsertDimensionRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateSpreadsheetPropertiesRequest": {
"description": "Updates properties of a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root 'properties' is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"properties": {
"$ref": "SpreadsheetProperties",
"description": "The properties to update."
}
},
"id": "UpdateSpreadsheetPropertiesRequest"
},
"BatchUpdateValuesRequest": {
"properties": {
"responseValueRenderOption": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Values will be calculated & formatted in the reply according to the\ncell's formatting. Formatting is based on the spreadsheet's locale,\nnot the requesting user's locale.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return `\"$1.23\"`.",
"Values will be calculated, but not formatted in the reply.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen `A2` would return the number `1.23`.",
"Values will not be calculated. The reply will include the formulas.\nFor example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency,\nthen A2 would return `\"=A1\"`."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "Determines how values in the response should be rendered.\nThe default render option is ValueRenderOption.FORMATTED_VALUE.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"includeValuesInResponse": {
"type": "boolean",
"description": "Determines if the update response should include the values\nof the cells that were updated. By default, responses\ndo not include the updated values. The `updatedData` field within\neach of the BatchUpdateValuesResponse.responses will contain\nthe updated values. If the range to write was larger than than the range\nactually written, the response will include all values in the requested\nrange (excluding trailing empty rows and columns)."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"data": {
"description": "The new values to apply to the spreadsheet.",
"items": {
"$ref": "ValueRange"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"valueInputOption": {
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Default input value. This value must not be used.",
"The values the user has entered will not be parsed and will be stored\nas-is.",
"The values will be parsed as if the user typed them into the UI.\nNumbers will stay as numbers, but strings may be converted to numbers,\ndates, etc. following the same rules that are applied when entering\ntext into a cell via the Google Sheets UI."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"INPUT_VALUE_OPTION_UNSPECIFIED",
"RAW",
"USER_ENTERED"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "How the input data should be interpreted.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"responseDateTimeRenderOption": {
"description": "Determines how dates, times, and durations in the response should be\nrendered. This is ignored if response_value_render_option is\nFORMATTED_VALUE.\nThe default dateTime render option is\nDateTimeRenderOption.SERIAL_NUMBER.",
"type": "string",
"enumDescriptions": [
"Instructs date, time, datetime, and duration fields to be output\nas doubles in \"serial number\" format, as popularized by Lotus 1-2-3.\nThe whole number portion of the value (left of the decimal) counts\nthe days since December 30th 1899. The fractional portion (right of\nthe decimal) counts the time as a fraction of the day. For example,\nJanuary 1st 1900 at noon would be 2.5, 2 because it's 2 days after\nDecember 30st 1899, and .5 because noon is half a day. February 1st\n1900 at 3pm would be 33.625. This correctly treats the year 1900 as\nnot a leap year.",
"Instructs date, time, datetime, and duration fields to be output\nas strings in their given number format (which is dependent\non the spreadsheet locale)."
],
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
]
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BatchUpdateValuesRequest",
"description": "The request for updating more than one range of values in a spreadsheet.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ProtectedRange": {
"description": "A protected range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"unprotectedRanges": {
"description": "The list of unprotected ranges within a protected sheet.\nUnprotected ranges are only supported on protected sheets.",
"items": {
"$ref": "GridRange"
},
"type": "array"
},
2017-08-05 18:17:15 +00:00
"namedRangeId": {
2017-09-13 12:09:48 +00:00
"description": "The named range this protected range is backed by, if any.\n\nWhen writing, only one of range or named_range_id\nmay be set.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"protectedRangeId": {
"type": "integer",
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The ID of the protected range.\nThis field is read-only."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"warningOnly": {
"description": "True if this protected range will show a warning when editing.\nWarning-based protection means that every user can edit data in the\nprotected range, except editing will prompt a warning asking the user\nto confirm the edit.\n\nWhen writing: if this field is true, then editors is ignored.\nAdditionally, if this field is changed from true to false and the\n`editors` field is not set (nor included in the field mask), then\nthe editors will be set to all the editors in the document.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"requestingUserCanEdit": {
"description": "True if the user who requested this protected range can edit the\nprotected area.\nThis field is read-only.",
"type": "boolean"
},
"editors": {
"description": "The users and groups with edit access to the protected range.\nThis field is only visible to users with edit access to the protected\nrange and the document.\nEditors are not supported with warning_only protection.",
"$ref": "Editors"
2017-08-05 18:17:15 +00:00
},
"range": {
"$ref": "GridRange",
2017-09-13 12:09:48 +00:00
"description": "The range that is being protected.\nThe range may be fully unbounded, in which case this is considered\na protected sheet.\n\nWhen writing, only one of range or named_range_id\nmay be set."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"description": {
"type": "string",
"description": "The description of this protected range."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ProtectedRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DimensionProperties": {
"description": "Properties about a dimension.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"pixelSize": {
"format": "int32",
"description": "The height (if a row) or width (if a column) of the dimension in pixels.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hiddenByUser": {
"type": "boolean",
"description": "True if this dimension is explicitly hidden."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hiddenByFilter": {
"description": "True if this dimension is being filtered.\nThis field is read-only.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DimensionProperties"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"NamedRange": {
"description": "A named range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"namedRangeId": {
"description": "The ID of the named range.",
"type": "string"
},
"range": {
"$ref": "GridRange",
"description": "The range this represents."
},
"name": {
"type": "string",
"description": "The name of the named range."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "NamedRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DimensionRange": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"endIndex": {
"format": "int32",
"description": "The end (exclusive) of the span, or not set if unbounded.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"startIndex": {
"type": "integer",
"format": "int32",
"description": "The start (inclusive) of the span, or not set if unbounded."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The sheet this span is on.",
"type": "integer"
},
"dimension": {
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"description": "The dimension of the span.",
"type": "string",
"enumDescriptions": [
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
]
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DimensionRange",
"description": "A range along a single dimension on a sheet.\nAll indexes are zero-based.\nIndexes are half open: the start index is inclusive\nand the end index is exclusive.\nMissing indexes indicate the range is unbounded on that side."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CutPasteRequest": {
"description": "Moves data from the source to the destination.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"pasteType": {
"enum": [
"PASTE_NORMAL",
"PASTE_VALUES",
"PASTE_FORMAT",
"PASTE_NO_BORDERS",
"PASTE_FORMULA",
"PASTE_DATA_VALIDATION",
"PASTE_CONDITIONAL_FORMATTING"
],
"description": "What kind of data to paste. All the source data will be cut, regardless\nof what is pasted.",
"type": "string",
"enumDescriptions": [
"Paste values, formulas, formats, and merges.",
"Paste the values ONLY without formats, formulas, or merges.",
"Paste the format and data validation only.",
"Like PASTE_NORMAL but without borders.",
"Paste the formulas only.",
"Paste the data validation only.",
"Paste the conditional formatting rules only."
]
},
"source": {
"$ref": "GridRange",
"description": "The source data to cut."
},
"destination": {
"$ref": "GridCoordinate",
"description": "The top-left coordinate where the data should be pasted."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CutPasteRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Borders": {
"description": "The borders of the cell.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"top": {
"$ref": "Border",
"description": "The top border of the cell."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"left": {
"description": "The left border of the cell.",
"$ref": "Border"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"right": {
"$ref": "Border",
"description": "The right border of the cell."
},
"bottom": {
"description": "The bottom border of the cell.",
"$ref": "Border"
}
},
"id": "Borders"
},
"BasicChartSeries": {
"description": "A single series of data in a chart.\nFor example, if charting stock prices over time, multiple series may exist,\none for the \"Open Price\", \"High Price\", \"Low Price\" and \"Close Price\".",
"type": "object",
"properties": {
"targetAxis": {
"enum": [
"BASIC_CHART_AXIS_POSITION_UNSPECIFIED",
"BOTTOM_AXIS",
"LEFT_AXIS",
"RIGHT_AXIS"
],
"description": "The minor axis that will specify the range of values for this series.\nFor example, if charting stocks over time, the \"Volume\" series\nmay want to be pinned to the right with the prices pinned to the left,\nbecause the scale of trading volume is different than the scale of\nprices.\nIt is an error to specify an axis that isn't a valid minor axis\nfor the chart's type.",
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
"Default value, do not use.",
2017-09-13 12:09:48 +00:00
"The axis rendered at the bottom of a chart.\nFor most charts, this is the standard major axis.\nFor bar charts, this is a minor axis.",
"The axis rendered at the left of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is the standard major axis.",
"The axis rendered at the right of a chart.\nFor most charts, this is a minor axis.\nFor bar charts, this is an unusual major axis."
2017-08-05 18:17:15 +00:00
]
},
2017-09-13 12:09:48 +00:00
"type": {
"enumDescriptions": [
"Default value, do not use.",
"A \u003ca href=\"/chart/interactive/docs/gallery/barchart\"\u003ebar chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/linechart\"\u003eline chart\u003c/a\u003e.",
"An \u003ca href=\"/chart/interactive/docs/gallery/areachart\"\u003earea chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/columnchart\"\u003ecolumn chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/scatterchart\"\u003escatter chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/combochart\"\u003ecombo chart\u003c/a\u003e.",
"A \u003ca href=\"/chart/interactive/docs/gallery/steppedareachart\"\u003estepped area chart\u003c/a\u003e."
],
"enum": [
"BASIC_CHART_TYPE_UNSPECIFIED",
"BAR",
"LINE",
"AREA",
"COLUMN",
"SCATTER",
"COMBO",
"STEPPED_AREA"
],
"description": "The type of this series. Valid only if the\nchartType is\nCOMBO.\nDifferent types will change the way the series is visualized.\nOnly LINE, AREA,\nand COLUMN are supported.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"series": {
"description": "The data being visualized in this chart series.",
"$ref": "ChartData"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BasicChartSeries"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AutoResizeDimensionsRequest": {
"id": "AutoResizeDimensionsRequest",
"description": "Automatically resizes one or more dimensions based on the contents\nof the cells in that dimension.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"dimensions": {
"description": "The dimensions to automatically resize.",
"$ref": "DimensionRange"
}
}
},
"UpdateBordersRequest": {
"type": "object",
"properties": {
"bottom": {
"description": "The border to put at the bottom of the range.",
"$ref": "Border"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"innerVertical": {
"$ref": "Border",
"description": "The vertical border to put within the range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"right": {
"description": "The border to put at the right of the range.",
"$ref": "Border"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"description": "The range whose borders should be updated.",
"$ref": "GridRange"
},
"innerHorizontal": {
"$ref": "Border",
"description": "The horizontal border to put within the range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"top": {
"$ref": "Border",
"description": "The border to put at the top of the range."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"left": {
"$ref": "Border",
"description": "The border to put at the left of the range."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateBordersRequest",
"description": "Updates the borders of a range.\nIf a field is not set in the request, that means the border remains as-is.\nFor example, with two subsequent UpdateBordersRequest:\n\n 1. range: A1:A5 `{ top: RED, bottom: WHITE }`\n 2. range: A1:A5 `{ left: BLUE }`\n\nThat would result in A1:A5 having a borders of\n`{ top: RED, bottom: WHITE, left: BLUE }`.\nIf you want to clear a border, explicitly set the style to\nNONE."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"CellFormat": {
"description": "The format of a cell.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"verticalAlignment": {
"enum": [
"VERTICAL_ALIGN_UNSPECIFIED",
"TOP",
"MIDDLE",
"BOTTOM"
],
"description": "The vertical alignment of the value in the cell.",
"type": "string",
"enumDescriptions": [
"The vertical alignment is not specified. Do not use this.",
"The text is explicitly aligned to the top of the cell.",
"The text is explicitly aligned to the middle of the cell.",
"The text is explicitly aligned to the bottom of the cell."
]
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"padding": {
"description": "The padding of the cell.",
"$ref": "Padding"
},
"textDirection": {
"enum": [
"TEXT_DIRECTION_UNSPECIFIED",
"LEFT_TO_RIGHT",
"RIGHT_TO_LEFT"
],
"description": "The direction of the text in the cell.",
"type": "string",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The text direction is not specified. Do not use this.",
"The text direction of left-to-right was set by the user.",
"The text direction of right-to-left was set by the user."
]
},
"borders": {
"$ref": "Borders",
"description": "The borders of the cell."
},
"textRotation": {
"$ref": "TextRotation",
"description": "The rotation applied to text in a cell"
},
"wrapStrategy": {
"enumDescriptions": [
"The default value, do not use.",
"Lines that are longer than the cell width will be written in the next\ncell over, so long as that cell is empty. If the next cell over is\nnon-empty, this behaves the same as CLIP. The text will never wrap\nto the next line unless the user manually inserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline that is very long. \u003c- Text continues into next cell\n | Next newline. |",
"This wrap strategy represents the old Google Sheets wrap strategy where\nwords that are longer than a line are clipped rather than broken. This\nstrategy is not supported on all platforms and is being phased out.\nExample:\n\n | Cell has a |\n | loooooooooo| \u003c- Word is clipped.\n | word. |",
"Lines that are longer than the cell width will be clipped.\nThe text will never wrap to the next line unless the user manually\ninserts a new line.\nExample:\n\n | First sentence. |\n | Manual newline t| \u003c- Text is clipped\n | Next newline. |",
"Words that are longer than a line are wrapped at the character level\nrather than clipped.\nExample:\n\n | Cell has a |\n | loooooooooo| \u003c- Word is broken.\n | ong word. |"
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"WRAP_STRATEGY_UNSPECIFIED",
"OVERFLOW_CELL",
"LEGACY_WRAP",
"CLIP",
"WRAP"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "The wrap strategy for the value in the cell.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"numberFormat": {
"$ref": "NumberFormat",
"description": "A format describing how number values should be represented to the user."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"hyperlinkDisplayType": {
"enum": [
"HYPERLINK_DISPLAY_TYPE_UNSPECIFIED",
"LINKED",
"PLAIN_TEXT"
],
"description": "How a hyperlink, if it exists, should be displayed in the cell.",
"type": "string",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The default value: the hyperlink is rendered. Do not use this.",
"A hyperlink should be explicitly rendered.",
"A hyperlink should not be rendered."
]
},
"horizontalAlignment": {
"enumDescriptions": [
"The horizontal alignment is not specified. Do not use this.",
"The text is explicitly aligned to the left of the cell.",
"The text is explicitly aligned to the center of the cell.",
"The text is explicitly aligned to the right of the cell."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"HORIZONTAL_ALIGN_UNSPECIFIED",
"LEFT",
"CENTER",
"RIGHT"
2017-08-05 18:17:15 +00:00
],
2017-09-13 12:09:48 +00:00
"description": "The horizontal alignment of the value in the cell.",
2017-08-05 18:17:15 +00:00
"type": "string"
},
2017-09-13 12:09:48 +00:00
"textFormat": {
"$ref": "TextFormat",
"description": "The format of the text in the cell (unless overridden by a format run)."
},
"backgroundColor": {
"description": "The background color of the cell.",
"$ref": "Color"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "CellFormat"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ClearValuesResponse": {
"description": "The response when clearing a range of values in a spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"spreadsheetId": {
"description": "The spreadsheet the updates were applied to.",
"type": "string"
},
"clearedRange": {
"description": "The range (in A1 notation) that was cleared.\n(If the request was for an unbounded range or a ranger larger\n than the bounds of the sheet, this will be the actual range\n that was cleared, bounded to the sheet's limits.)",
2017-08-05 18:17:15 +00:00
"type": "string"
}
},
2017-09-13 12:09:48 +00:00
"id": "ClearValuesResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteConditionalFormatRuleRequest": {
"description": "Deletes a conditional format rule at the given index.\nAll subsequent rules' indexes are decremented.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"index": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The zero-based index of the rule to be deleted.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The sheet the rule is being deleted from.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteConditionalFormatRuleRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddBandingResponse": {
"description": "The result of adding a banded range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"bandedRange": {
"$ref": "BandedRange",
"description": "The banded range that was added."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AddBandingResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteNamedRangeRequest": {
"description": "Removes the named range with the given ID from the spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"namedRangeId": {
"description": "The ID of the named range to delete.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteNamedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ChartData": {
"description": "The data included in a domain or series.",
"type": "object",
"properties": {
"sourceRange": {
"$ref": "ChartSourceRange",
"description": "The source ranges of the data."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ChartData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"BatchGetValuesResponse": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"valueRanges": {
"description": "The requested values. The order of the ValueRanges is the same as the\norder of the requested ranges.",
"items": {
"$ref": "ValueRange"
},
"type": "array"
},
"spreadsheetId": {
"description": "The ID of the spreadsheet the data was retrieved from.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "BatchGetValuesResponse",
"description": "The response when retrieving more than one range of values in a spreadsheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateBandingRequest": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"bandedRange": {
"$ref": "BandedRange",
"description": "The banded range to update with the new properties."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root `bandedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateBandingRequest",
"description": "Updates properties of the supplied banded range.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Color": {
"description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well. Here are some examples:\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return nil;\n }\n Color* result = [Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha \u003c= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i \u003c missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"alpha": {
"format": "float",
"description": "The fraction of this color that should be applied to the pixel. That is,\nthe final pixel color is defined by the equation:\n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\nThis means that a value of 1.0 corresponds to a solid color, whereas\na value of 0.0 corresponds to a completely transparent color. This\nuses a wrapper message rather than a simple float scalar so that it is\npossible to distinguish between a default value and the value being unset.\nIf omitted, this color object is to be rendered as a solid color\n(as if the alpha value had been explicitly given with a value of 1.0).",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"blue": {
"format": "float",
"description": "The amount of blue in the color as a value in the interval [0, 1].",
"type": "number"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"green": {
"format": "float",
"description": "The amount of green in the color as a value in the interval [0, 1].",
"type": "number"
},
"red": {
"format": "float",
"description": "The amount of red in the color as a value in the interval [0, 1].",
"type": "number"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Color"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PivotGroup": {
"description": "A single grouping (either row or column) in a pivot table.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sortOrder": {
"description": "The order the values in this group should be sorted.",
"type": "string",
"enumDescriptions": [
"Default value, do not use this.",
"Sort ascending.",
"Sort descending."
],
"enum": [
"SORT_ORDER_UNSPECIFIED",
"ASCENDING",
"DESCENDING"
]
},
"valueBucket": {
"$ref": "PivotGroupSortValueBucket",
"description": "The bucket of the opposite pivot group to sort by.\nIf not specified, sorting is alphabetical by this group's values."
},
"valueMetadata": {
"description": "Metadata about values in the grouping.",
"items": {
"$ref": "PivotGroupValueMetadata"
},
"type": "array"
},
"showTotals": {
"description": "True if the pivot table should include the totals for this grouping.",
"type": "boolean"
},
"sourceColumnOffset": {
"format": "int32",
"description": "The column offset of the source range that this grouping is based on.\n\nFor example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`\nmeans this group refers to column `C`, whereas the offset `1` would refer\nto column `D`.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "PivotGroup"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"PivotTable": {
"description": "A pivot table.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"criteria": {
"additionalProperties": {
"$ref": "PivotFilterCriteria"
},
"description": "An optional mapping of filters per source column offset.\n\nThe filters will be applied before aggregating data into the pivot table.\nThe map's key is the column offset of the source range that you want to\nfilter, and the value is the criteria for that column.\n\nFor example, if the source was `C10:E15`, a key of `0` will have the filter\nfor column `C`, whereas the key `1` is for column `D`.",
"type": "object"
},
"rows": {
"description": "Each row grouping in the pivot table.",
"items": {
"$ref": "PivotGroup"
},
"type": "array"
},
"valueLayout": {
"description": "Whether values should be listed horizontally (as columns)\nor vertically (as rows).",
2017-08-05 18:17:15 +00:00
"type": "string",
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"Values are laid out horizontally (as columns).",
"Values are laid out vertically (as rows)."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"HORIZONTAL",
"VERTICAL"
2017-08-05 18:17:15 +00:00
]
},
2017-09-13 12:09:48 +00:00
"values": {
"description": "A list of values to include in the pivot table.",
"items": {
"$ref": "PivotValue"
},
"type": "array"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"source": {
"$ref": "GridRange",
"description": "The range the pivot table is reading data from."
},
"columns": {
"description": "Each column grouping in the pivot table.",
"items": {
"$ref": "PivotGroup"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "PivotTable"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ChartSourceRange": {
"description": "Source ranges for a chart.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sources": {
"description": "The ranges of data for a series or domain.\nExactly one dimension must have a length of 1,\nand all sources in the list must have the same dimension\nwith length 1.\nThe domain (if it exists) & all series must have the same number\nof source ranges. If using more than one source range, then the source\nrange at a given offset must be contiguous across the domain and series.\n\nFor example, these are valid configurations:\n\n domain sources: A1:A5\n series1 sources: B1:B5\n series2 sources: D6:D10\n\n domain sources: A1:A5, C10:C12\n series1 sources: B1:B5, D10:D12\n series2 sources: C1:C5, E10:E12",
"items": {
"$ref": "GridRange"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ChartSourceRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AppendCellsRequest": {
"description": "Adds new cells after the last row with data in a sheet,\ninserting new rows into the sheet if necessary.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"sheetId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The sheet ID to append the data to.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"fields": {
"type": "string",
"format": "google-fieldmask",
"description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"rows": {
"description": "The data to append.",
"items": {
"$ref": "RowData"
},
"type": "array"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AppendCellsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"ValueRange": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"description": "The range the values cover, in A1 notation.\nFor output, this range indicates the entire requested range,\neven though the values will exclude trailing rows and columns.\nWhen appending values, this field represents the range to search for a\ntable, after which values will be appended.",
"type": "string"
},
"values": {
"description": "The data that was read or to be written. This is an array of arrays,\nthe outer array representing all the data and each inner array\nrepresenting a major dimension. Each item in the inner array\ncorresponds with one cell.\n\nFor output, empty trailing rows and columns will not be included.\n\nFor input, supported value types are: bool, string, and double.\nNull values will be skipped.\nTo set a cell to an empty value, set the string value to an empty string.",
"items": {
"items": {
"type": "any"
},
"type": "array"
},
"type": "array"
},
"majorDimension": {
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"description": "The major dimension of the values.\n\nFor output, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,\nthen requesting `range=A1:B2,majorDimension=ROWS` will return\n`[[1,2],[3,4]]`,\nwhereas requesting `range=A1:B2,majorDimension=COLUMNS` will return\n`[[1,3],[2,4]]`.\n\nFor input, with `range=A1:B2,majorDimension=ROWS` then `[[1,2],[3,4]]`\nwill set `A1=1,B1=2,A2=3,B2=4`. With `range=A1:B2,majorDimension=COLUMNS`\nthen `[[1,2],[3,4]]` will set `A1=1,B1=3,A2=2,B2=4`.\n\nWhen writing, if this field is not set, it defaults to ROWS.",
"type": "string",
"enumDescriptions": [
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
]
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "ValueRange",
"description": "Data within a range of the spreadsheet.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddBandingRequest": {
"description": "Adds a new banded range to the spreadsheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"bandedRange": {
"$ref": "BandedRange",
"description": "The banded range to add. The bandedRangeId\nfield is optional; if one is not set, an id will be randomly generated. (It\nis an error to specify the ID of a range that already exists.)"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AddBandingRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Response": {
"description": "A single response from an update.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"addProtectedRange": {
"description": "A reply from adding a protected range.",
"$ref": "AddProtectedRangeResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"duplicateSheet": {
"$ref": "DuplicateSheetResponse",
"description": "A reply from duplicating a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"updateEmbeddedObjectPosition": {
"description": "A reply from updating an embedded object's position.",
"$ref": "UpdateEmbeddedObjectPositionResponse"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"deleteConditionalFormatRule": {
"$ref": "DeleteConditionalFormatRuleResponse",
"description": "A reply from deleting a conditional format rule."
},
"duplicateFilterView": {
"$ref": "DuplicateFilterViewResponse",
"description": "A reply from duplicating a filter view."
},
"addChart": {
"$ref": "AddChartResponse",
"description": "A reply from adding a chart."
},
"findReplace": {
"$ref": "FindReplaceResponse",
"description": "A reply from doing a find/replace."
},
"addSheet": {
"$ref": "AddSheetResponse",
"description": "A reply from adding a sheet."
},
"updateConditionalFormatRule": {
"$ref": "UpdateConditionalFormatRuleResponse",
"description": "A reply from updating a conditional format rule."
},
"addNamedRange": {
"$ref": "AddNamedRangeResponse",
"description": "A reply from adding a named range."
},
"addFilterView": {
"$ref": "AddFilterViewResponse",
"description": "A reply from adding a filter view."
},
"addBanding": {
"description": "A reply from adding a banded range.",
"$ref": "AddBandingResponse"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "Response"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"InsertRangeRequest": {
"description": "Inserts cells into a range, shifting the existing cells over or down.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"shiftDimension": {
"description": "The dimension which will be shifted when inserting cells.\nIf ROWS, existing cells will be shifted down.\nIf COLUMNS, existing cells will be shifted right.",
"type": "string",
2017-08-05 18:17:15 +00:00
"enumDescriptions": [
2017-09-13 12:09:48 +00:00
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
2017-08-05 18:17:15 +00:00
],
"enum": [
2017-09-13 12:09:48 +00:00
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
]
},
"range": {
"description": "The range to insert new cells into.",
"$ref": "GridRange"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "InsertRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"TextFormatRun": {
"id": "TextFormatRun",
"description": "A run of a text format. The format of this run continues until the start\nindex of the next run.\nWhen updating, all fields must be set.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"startIndex": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The character index where this run starts.",
2017-08-05 18:17:15 +00:00
"type": "integer"
},
2017-09-13 12:09:48 +00:00
"format": {
"$ref": "TextFormat",
"description": "The format of this run. Absent values inherit the cell's format."
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"EmbeddedChart": {
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"chartId": {
2017-08-05 18:17:15 +00:00
"format": "int32",
2017-09-13 12:09:48 +00:00
"description": "The ID of the chart.",
2017-08-05 18:17:15 +00:00
"type": "integer"
2017-09-13 12:09:48 +00:00
},
"position": {
"$ref": "EmbeddedObjectPosition",
"description": "The position of the chart."
},
"spec": {
"$ref": "ChartSpec",
"description": "The specification of the chart."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "EmbeddedChart",
"description": "A chart embedded in a sheet."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddNamedRangeResponse": {
2017-08-05 18:17:15 +00:00
"properties": {
2017-09-13 12:09:48 +00:00
"namedRange": {
"$ref": "NamedRange",
"description": "The named range to add."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "AddNamedRangeResponse",
"description": "The result of adding a named range.",
"type": "object"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"RowData": {
"description": "Data about each cell in a row.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"values": {
"description": "The values in the row, one per column.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "CellData"
2017-08-05 18:17:15 +00:00
},
"type": "array"
}
},
2017-09-13 12:09:48 +00:00
"id": "RowData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"GridData": {
"description": "Data in the grid, as well as metadata about the dimensions.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"columnMetadata": {
"items": {
"$ref": "DimensionProperties"
},
"type": "array",
"description": "Metadata about the requested columns in the grid, starting with the column\nin start_column."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"startColumn": {
"format": "int32",
"description": "The first column this GridData refers to, zero-based.",
"type": "integer"
},
"rowMetadata": {
"description": "Metadata about the requested rows in the grid, starting with the row\nin start_row.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "DimensionProperties"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"rowData": {
"description": "The data in the grid, one entry per row,\nstarting with the row in startRow.\nThe values in RowData will correspond to columns starting\nat start_column.",
2017-08-05 18:17:15 +00:00
"items": {
2017-09-13 12:09:48 +00:00
"$ref": "RowData"
2017-08-05 18:17:15 +00:00
},
"type": "array"
},
2017-09-13 12:09:48 +00:00
"startRow": {
"format": "int32",
"description": "The first row this GridData refers to, zero-based.",
"type": "integer"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "GridData"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"Border": {
"id": "Border",
"description": "A border along a cell.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"color": {
"$ref": "Color",
"description": "The color of the border."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"width": {
"format": "int32",
"description": "The width of the border, in pixels.\nDeprecated; the width is determined by the \"style\" field.",
"type": "integer"
},
"style": {
"type": "string",
"enumDescriptions": [
"The style is not specified. Do not use this.",
"The border is dotted.",
"The border is dashed.",
"The border is a thin solid line.",
"The border is a medium solid line.",
"The border is a thick solid line.",
"No border.\nUsed only when updating a border in order to erase it.",
"The border is two solid lines."
],
"enum": [
"STYLE_UNSPECIFIED",
"DOTTED",
"DASHED",
"SOLID",
"SOLID_MEDIUM",
"SOLID_THICK",
"NONE",
"DOUBLE"
],
"description": "The style of the border."
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"FindReplaceRequest": {
"description": "Finds and replaces data in cells over a range, sheet, or all sheets.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"replacement": {
"description": "The value to use as the replacement.",
"type": "string"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"range": {
"description": "The range to find/replace over.",
"$ref": "GridRange"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"sheetId": {
"format": "int32",
"description": "The sheet to find/replace over.",
"type": "integer"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"allSheets": {
"description": "True to find/replace over all sheets.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
2017-09-13 12:09:48 +00:00
"matchCase": {
"description": "True if the search is case sensitive.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
},
2017-09-13 12:09:48 +00:00
"includeFormulas": {
"description": "True if the search should include cells with formulas.\nFalse to skip cells with formulas.",
"type": "boolean"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"matchEntireCell": {
"description": "True if the find value should match the entire cell.",
"type": "boolean"
},
"find": {
"description": "The value to search.",
"type": "string"
},
"searchByRegex": {
"description": "True if the find value is a regex.\nThe regular expression and replacement should follow Java regex rules\nat https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.\nThe replacement string is allowed to refer to capturing groups.\nFor example, if one cell has the contents `\"Google Sheets\"` and another\nhas `\"Google Docs\"`, then searching for `\"o.* (.*)\"` with a replacement of\n`\"$1 Rocks\"` would change the contents of the cells to\n`\"GSheets Rocks\"` and `\"GDocs Rocks\"` respectively.",
2017-08-05 18:17:15 +00:00
"type": "boolean"
}
},
2017-09-13 12:09:48 +00:00
"id": "FindReplaceRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateNamedRangeRequest": {
"description": "Updates properties of the named range with the specified\nnamedRangeId.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"namedRange": {
"$ref": "NamedRange",
"description": "The named range to update with the new properties."
},
"fields": {
"format": "google-fieldmask",
"description": "The fields that should be updated. At least one field must be specified.\nThe root `namedRange` is implied and should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateNamedRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"AddSheetRequest": {
"id": "AddSheetRequest",
"description": "Adds a new sheet.\nWhen a sheet is added at a given index,\nall subsequent sheets' indexes are incremented.\nTo add an object sheet, use AddChartRequest instead and specify\nEmbeddedObjectPosition.sheetId or\nEmbeddedObjectPosition.newSheet.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"properties": {
"$ref": "SheetProperties",
"description": "The properties the new sheet should have.\nAll properties are optional.\nThe sheetId field is optional; if one is not\nset, an id will be randomly generated. (It is an error to specify the ID\nof a sheet that already exists.)"
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"UpdateCellsRequest": {
"description": "Updates all cells in a range with new data.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range to write data to.\n\nIf the data in rows does not cover the entire requested range,\nthe fields matching those set in fields will be cleared."
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"fields": {
"format": "google-fieldmask",
"description": "The fields of CellData that should be updated.\nAt least one field must be specified.\nThe root is the CellData; 'row.values.' should not be specified.\nA single `\"*\"` can be used as short-hand for listing every field.",
"type": "string"
},
"rows": {
"description": "The data to write.",
"items": {
"$ref": "RowData"
},
"type": "array"
},
"start": {
"description": "The coordinate to start writing data at.\nAny number of rows and columns (including a different number of\ncolumns per row) may be written.",
"$ref": "GridCoordinate"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "UpdateCellsRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteConditionalFormatRuleResponse": {
"id": "DeleteConditionalFormatRuleResponse",
"description": "The result of deleting a conditional format rule.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"rule": {
"$ref": "ConditionalFormatRule",
"description": "The rule that was deleted."
2017-08-05 18:17:15 +00:00
}
2017-09-13 12:09:48 +00:00
}
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"RandomizeRangeRequest": {
"description": "Randomizes the order of the rows in a range.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"range": {
"$ref": "GridRange",
"description": "The range to randomize."
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"id": "RandomizeRangeRequest"
2017-08-05 18:17:15 +00:00
},
2017-09-13 12:09:48 +00:00
"DeleteRangeRequest": {
"description": "Deletes a range of cells, shifting other cells into the deleted area.",
2017-08-05 18:17:15 +00:00
"type": "object",
"properties": {
2017-09-13 12:09:48 +00:00
"shiftDimension": {
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"description": "The dimension from which deleted cells will be replaced with.\nIf ROWS, existing cells will be shifted upward to\nreplace the deleted cells. If COLUMNS, existing cells\nwill be shifted left to replace the deleted cells.",
"type": "string",
"enumDescriptions": [
"The default value, do not use.",
"Operates on the rows of a sheet.",
"Operates on the columns of a sheet."
]
},
2017-08-05 18:17:15 +00:00
"range": {
2017-09-13 12:09:48 +00:00
"description": "The range of cells to delete.",
2017-08-05 18:17:15 +00:00
"$ref": "GridRange"
}
},
2017-09-13 12:09:48 +00:00
"id": "DeleteRangeRequest"
2017-08-05 18:17:15 +00:00
}
},
2017-09-13 12:09:48 +00:00
"protocol": "rest",
2017-08-05 18:17:15 +00:00
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"canonicalName": "Sheets",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/drive.file": {
"description": "View and manage Google Drive files and folders that you have opened or created with this app"
},
"https://www.googleapis.com/auth/spreadsheets.readonly": {
"description": "View your Google Spreadsheets"
},
"https://www.googleapis.com/auth/drive.readonly": {
"description": "View the files in your Google Drive"
},
"https://www.googleapis.com/auth/drive": {
"description": "View and manage the files in your Google Drive"
2017-09-13 12:09:48 +00:00
},
"https://www.googleapis.com/auth/spreadsheets": {
"description": "View and manage your spreadsheets in Google Drive"
2017-08-05 18:17:15 +00:00
}
}
}
},
2017-09-13 12:09:48 +00:00
"rootUrl": "https://sheets.googleapis.com/",
"ownerDomain": "google.com"
2017-08-05 18:17:15 +00:00
}