googleapis.sheets
Module googleapis.sheets
API
Declarations
ballerinax/googleapis.sheets Ballerina library
Overview
The Ballerina connector for Google Sheets makes it convenient to implement some of the most common use cases of Google Sheets. With this connector, you can programmatically manage spreadsheets, manage worksheets, perform CRUD operations on worksheets, and perform column-level, row-level, and cell-level operations.
This module supports Google Sheets API v4.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create a Google account
- Obtain tokens - Follow this link
Quickstart
To use the Google Sheets connector in your Ballerina application, update the .bal file as follows:
Step 1: Import connector
Import the ballerinax/googleapis.sheets
module into the Ballerina project.
import ballerinax/googleapis.sheets as sheets;
Step 2: Create a new connector instance
Create a sheets:ConnectionConfig
with the OAuth2 tokens obtained, and initialize the connector with it.
sheets:ConnectionConfig spreadsheetConfig = { auth: { clientId: <CLIENT_ID>, clientSecret: <CLIENT_SECRET>, refreshUrl: sheets:REFRESH_URL, refreshToken: <REFRESH_TOKEN> } }; sheets:Client spreadsheetClient = check new (spreadsheetConfig);
Step 3: Invoke connector operation
-
Now you can use the operations available within the connector. Note that they are in the form of remote operations.
Following is an example on how to create a spreadsheet using the connector.
Create Spreadsheet with given name
public function main() returns error? { sheets:Spreadsheet response = check spreadsheetClient->createSpreadsheet("NewSpreadsheet"); log:printInfo("Successfully created spreadsheet!"); }
-
Use
bal run
command to compile and run the Ballerina program.
Functions
createRandomUUIDWithoutHyphens
function createRandomUUIDWithoutHyphens() returns string
Create a random UUID removing the unnecessary hyphens which will interrupt querying opearations.
Return Type
- string - A string UUID without hyphens
getA1RangeString
Get a string containing the A1 Annotation from A1Range.
Parameters
- a1Range A1Range - A1Range filter.
Clients
googleapis.sheets: Client
Ballerina Google Sheets connector provides the capability to access Google Sheets API. The connector let you perform spreadsheet management operations, worksheet management operations and the capability to handle Google Sheets data level operations.
Constructor
Initializes the connector. During initialization you can pass either http:BearerTokenConfig if you have a bearer token or http:OAuth2RefreshTokenGrantConfig if you have Oauth tokens. Create a Google account and obtain tokens following this guide. Configure the OAuth2 tokens to have the required permissions.
init (ConnectionConfig config)
- config ConnectionConfig -
createSpreadsheet
function createSpreadsheet(string name) returns Spreadsheet|error
Creates a new spreadsheet.
Parameters
- name string - Name of the spreadsheet
Return Type
- Spreadsheet|error -
sheets:Spreadsheet
record on success, or else an error
openSpreadsheetById
function openSpreadsheetById(string spreadsheetId) returns Spreadsheet|error
Opens a spreadsheet by the given ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
Return Type
- Spreadsheet|error -
sheets:Spreadsheet
record on success, or else an error
openSpreadsheetByUrl
function openSpreadsheetByUrl(string url) returns Spreadsheet|error
Opens a spreadsheet by the given Url.
Parameters
- url string - Url of the spreadsheet
Return Type
- Spreadsheet|error -
sheets:Spreadsheet
record on success, or else an error
getAllSpreadsheets
Get all spreadsheet files.
renameSpreadsheet
Renames the spreadsheet with the given name.
Return Type
- error? - Nil() on success, or else an error
getSheets
Get worksheets of the spreadsheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
getSheetByName
Get a worksheet of the spreadsheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - Name of the worksheet to retrieve
addSheet
Add a new worksheet.
removeSheet
Delete specified worksheet by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - The ID of the worksheet to delete
Return Type
- error? - Nil() on success, or else an error
removeSheetByName
Delete specified worksheet by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet to delete
Return Type
- error? - Nil() on success, or else an error
renameSheet
Renames the worksheet of a given spreadsheet with the given name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The existing name of the worksheet
- name string - New name for the worksheet
Return Type
- error? - Nil() on success, or else an error
setRange
function setRange(string spreadsheetId, string sheetName, Range range, string? valueInputOption) returns error?
Sets the values of the given range of cells of the worksheet.
Parameters
- spreadsheetId string - ID of the Spreadsheet
- sheetName string - The name of the Worksheet
- range Range - The Range record to be set
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
getRange
function getRange(string spreadsheetId, string sheetName, string a1Notation, string? valueRenderOption) returns Range|error
Gets the given range of the worksheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string - The required range in A1 notation
- valueRenderOption string? (default ()) - Determines how values should be rendered in the output. It's either "FORMATTED_VALUE","UNFORMATTED_VALUE" or "FORMULA". Default is "FORMATTED_VALUE" (Optional). For more information, see ValueRenderOption
clearRange
Clears the range of contents, formats, and data validation rules.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string - The required range in A1 notation
Return Type
- error? - Nil() on success, or else an error
addColumnsBefore
function addColumnsBefore(string spreadsheetId, int sheetId, int index, int numberOfColumns) returns error?
Inserts the given number of columns before the given column position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- index int - The position of the column before which the new columns should be added
- numberOfColumns int - Number of columns to be added
Return Type
- error? - Nil() on success, or else an error
addColumnsBeforeBySheetName
function addColumnsBeforeBySheetName(string spreadsheetId, string sheetName, int index, int numberOfColumns) returns error?
Inserts the given number of columns before the given column position by worksheet name.
Parameters
- spreadsheetId string - ID of the Spreadsheet
- sheetName string - The name of the Worksheet
- index int - The position of the column before which the new columns should be added
- numberOfColumns int - Number of columns to be added
Return Type
- error? - Nil() on success, or else an error
addColumnsAfter
function addColumnsAfter(string spreadsheetId, int sheetId, int index, int numberOfColumns) returns error?
Inserts the given number of columns after the given column position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- index int - The position of the column after which the new columns should be added
- numberOfColumns int - Number of columns to be added
Return Type
- error? - Nil() on success, or else an error
addColumnsAfterBySheetName
function addColumnsAfterBySheetName(string spreadsheetId, string sheetName, int index, int numberOfColumns) returns error?
Inserts the given number of columns after the given column position by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- index int - The position of the column after which the new columns should be added
- numberOfColumns int - Number of columns to be added
Return Type
- error? - Nil() on success, or else an error
createOrUpdateColumn
function createOrUpdateColumn(string spreadsheetId, string sheetName, string column, (int|string|decimal)[] values, string? valueInputOption) returns error?
Create or Update a Column.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- column string - Position of column (string notation) to set the data
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
getColumn
function getColumn(string spreadsheetId, string sheetName, string column, string? valueRenderOption) returns Column|error
Gets the values in the given column of the worksheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- column string - Position of Column (string notation) to retrieve the data
- valueRenderOption string? (default ()) - Determines how values should be rendered in the output. It's either "FORMATTED_VALUE","UNFORMATTED_VALUE" or "FORMULA". Default is "FORMATTED_VALUE" (Optional). For more information, see ValueRenderOption
deleteColumns
function deleteColumns(string spreadsheetId, int sheetId, int column, int numberOfColumns) returns error?
Deletes the given number of columns starting at the given column position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- column int - Starting position of the columns
- numberOfColumns int - Number of columns from the starting position
Return Type
- error? - Nil() on success, or else an error
deleteColumnsBySheetName
function deleteColumnsBySheetName(string spreadsheetId, string sheetName, int column, int numberOfColumns) returns error?
Deletes the given number of columns starting at the given column position by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- column int - Starting position of the columns
- numberOfColumns int - Number of columns from the starting position
Return Type
- error? - Nil() on success, or else an error
addRowsBefore
function addRowsBefore(string spreadsheetId, int sheetId, int index, int numberOfRows) returns error?
Inserts the given number of rows before the given row position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- index int - The position of the row before which the new rows should be added
- numberOfRows int - The number of rows to be added
Return Type
- error? - Nil() on success, or else an error
addRowsBeforeBySheetName
function addRowsBeforeBySheetName(string spreadsheetId, string sheetName, int index, int numberOfRows) returns error?
Inserts the given number of rows before the given row position by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- index int - The position of the row before which the new rows should be added
- numberOfRows int - The number of rows to be added
Return Type
- error? - Nil() on success, or else an error
addRowsAfter
function addRowsAfter(string spreadsheetId, int sheetId, int index, int numberOfRows) returns error?
Inserts a number of rows after the given row position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- index int - The row after which the new rows should be added.
- numberOfRows int - The number of rows to be added
Return Type
- error? - Nil() on success, or else an error
addRowsAfterBySheetName
function addRowsAfterBySheetName(string spreadsheetId, string sheetName, int index, int numberOfRows) returns error?
Inserts a number of rows after the given row position by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- index int - The row after which the new rows should be added.
- numberOfRows int - The number of rows to be added
Return Type
- error? - Nil() on success, or else an error
createOrUpdateRow
function createOrUpdateRow(string spreadsheetId, string sheetName, int row, (int|string|decimal)[] values, string? valueInputOption) returns error?
Create or update a row.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- row int - Position of row (integer notation) to set the data
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
getRow
function getRow(string spreadsheetId, string sheetName, int row, string? valueRenderOption) returns Row|error
Gets the values in the given row of the worksheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- row int - Row number to retrieve the data
- valueRenderOption string? (default ()) - Determines how values should be rendered in the output. It's either "FORMATTED_VALUE","UNFORMATTED_VALUE" or "FORMULA". Default is "FORMATTED_VALUE" (Optional). For more information, see ValueRenderOption
deleteRows
Deletes the given number of rows starting at the given row position by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- row int - Starting position of the rows
- numberOfRows int - Number of rows from the starting position
Return Type
- error? - Nil() on success, or else an error
deleteRowsBySheetName
function deleteRowsBySheetName(string spreadsheetId, string sheetName, int row, int numberOfRows) returns error?
Deletes the given number of rows starting at the given row position by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- row int - Starting position of the rows
- numberOfRows int - Number of rows from the starting position
Return Type
- error? - Nil() on success, or else an error
setCell
function setCell(string spreadsheetId, string sheetName, string a1Notation, int|string|decimal value, string? valueInputOption) returns error?
Sets the value of the given cell of the worksheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string - The required cell in A1 notation
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
getCell
function getCell(string spreadsheetId, string sheetName, string a1Notation, string? valueRenderOption) returns Cell|error
Gets the value of the given cell of the sheet.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string - The required cell in A1 notation
- valueRenderOption string? (default ()) - Determines how values should be rendered in the output. It's either "FORMATTED_VALUE","UNFORMATTED_VALUE" or "FORMULA". Default is "FORMATTED_VALUE" (Optional). For more information, see ValueRenderOption
clearCell
Clears the given cell of contents, formats, and data validation rules.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string - The required cell in A1 notation
Return Type
- error? - Nil() on success, or else an error
appendRowToSheet
function appendRowToSheet(string spreadsheetId, string sheetName, (int|string|decimal)[] values, string? a1Notation, string? valueInputOption) returns error?
Adds a new row with the given values to the bottom of the worksheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- a1Notation string? (default ()) - The required range in A1 notation (Optional)
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
Deprecated
This function is deprecated due to the introduction of new more resourceful API appendValue
.
This API will be removed with 4.0.0 release.
appendValue
function appendValue(string spreadsheetId, (int|string|decimal|boolean|float)[] values, A1Range a1Range, string? valueInputOption) returns error|ValueRange
Adds the given values to a row at the bottom of the worksheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table.
Parameters
- spreadsheetId string - ID of the spreadsheet
- a1Range A1Range - The required range in A1 notation
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error|ValueRange - ValueRange on success, or else an error
appendValues
function appendValues(string spreadsheetId, (int|string|decimal|boolean|float)[] values, A1Range a1Range, string? valueInputOption) returns error|ValuesRange
Adds the given values to number of rows at the bottom of the worksheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next rows of the table, starting with the first column of the table.
Parameters
- spreadsheetId string - ID of the spreadsheet
- a1Range A1Range - The required range in A1 notation
- valueInputOption string? (default ()) - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error|ValuesRange - ValueRange on success, or else an error
copyTo
Copies the sheet to a given spreadsheet by worksheet ID.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - ID of the worksheet
- destinationId string - ID of the spreadsheet to copy the sheet to
Return Type
- error? - Nil() on success, or else an error
copyToBySheetName
function copyToBySheetName(string spreadsheetId, string sheetName, string destinationId) returns error?
Copies the sheet to a given spreadsheet by worksheet name.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetName string - The name of the worksheet
- destinationId string - ID of the spreadsheet to copy the sheet to
Return Type
- error? - Nil() on success, or else an error
clearAll
Clears the worksheet content and formatting rules by worksheet ID.
Return Type
- error? - Nil() on success, or else an error
clearAllBySheetName
Clears the worksheet content and formatting rules by worksheet name.
Return Type
- error? - Nil() on success, or else an error
setRowMetaData
function setRowMetaData(string spreadsheetId, int sheetId, int rowIndex, Visibility visibility, string key, string value) returns error?
Add developer metadata to the given row.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - The ID of the worksheet
- rowIndex int - ID of the target row
- visibility Visibility - Visibility parameter for the developer metadata. It's either "UNSPECIFIED", "DOCUMENT or "PROJECT".
- key string - Metadata key asigned to the row
- value string - Value assigned with the key. This should be unique.
Return Type
- error? - Nil() on success, or else an error
getRowByDataFilter
function getRowByDataFilter(string spreadsheetId, int sheetId, Filter filter) returns error|ValueRange[]
Fetch rows matching to the given criteria in the filter. Supports A1Range, GridRange and DeveloperMetadataLookup filters.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - The ID of the worksheet
- filter Filter - A record defining the filter used for the data filtering
Return Type
- error|ValueRange[] - ValueRange[] on success, or else an error
updateRowByDataFilter
function updateRowByDataFilter(string spreadsheetId, int sheetId, Filter filter, (int|string|decimal|boolean|float)[] values, string valueInputOption) returns error?
Update rows matching the user provided data filter. Supports a1Range, gridRange and Developer metadata lookup filters.
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - The ID of the worksheet
- filter Filter - A record defining the filter used for the data filtering
- valueInputOption string - Determines how input data should be interpreted. It's either "RAW" or "USER_ENTERED". Default is "RAW" (Optional). For more information, see ValueInputOption
Return Type
- error? - Nil() on success, or else an error
deleteRowByDataFilter
Delete rows matching the user provided data filter Supports a1Range, gridRange and Developer metadata lookup filters
Parameters
- spreadsheetId string - ID of the spreadsheet
- sheetId int - The ID of the worksheet
- filter Filter - A record defining the filter used for the data filtering
Return Type
- error? - Nil() on success, or else an error
Constants
googleapis.sheets: REFRESH_URL
Enums
googleapis.sheets: Dimension
Dimension
Members
googleapis.sheets: LocationMatchingStrategy
The location matching strategy for filters
Members
googleapis.sheets: LocationType
The location type for filters
Members
googleapis.sheets: ValueInputOption
Members
googleapis.sheets: ValueRenderOption
Members
googleapis.sheets: Visibility
The metadata visibility
Members
Records
googleapis.sheets: A1Range
A1 Notation of a ValueRange
Fields
- sheetName string - Sheet name in A1 notation
- startIndex string? - Starting cell of the range
- endIndex string? - Ending cell of the range
googleapis.sheets: Cell
Single cell in a sheet.
Fields
- a1Notation string - The column letter followed by the row number. For example for a single cell "A1" refers to the intersection of column "A" with row "1"
googleapis.sheets: Column
Single column in a sheet.
Fields
- columnPosition string - The column letter
googleapis.sheets: ConnectionConfig
Client configuration details.
Fields
- Fields Included from *ConnectionConfig
- auth AuthConfig
- httpVersion HttpVersion
- http1Settings ClientHttp1Settings
- http2Settings ClientHttp2Settings
- timeout decimal
- forwarded string
- poolConfig PoolConfiguration
- cache CacheConfig
- compression Compression
- circuitBreaker CircuitBreakerConfig
- retryConfig RetryConfig
- responseLimits ResponseLimitConfigs
- secureSocket ClientSecureSocket
- proxy ProxyConfig
- validation boolean
- anydata...
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig - Configurations related to client authentication
- httpVersion HttpVersion(default http:HTTP_1_1) - The HTTP version understood by the client
googleapis.sheets: DeveloperMetadataLookupFilter
The DeveloperMetadataLookup filter
Fields
- locationType LocationType - Specified type which the metadata ara associated. For more information, see LocationType
- locationMatchingStrategy LocationMatchingStrategy? - An enumeration of strategies for matching developer metadata locations. For more information, see locationMatchingStrategy.
- metadataId int? - The spreadsheet-scoped unique ID that identifies the metadata.
- metadataKey string? - Key used to identify metadata.
- metadataValue string - Data associated with the metadata's key.
- visibility Visibility? - Visibility scope of the associated metadata For more information, see Visibility.
- metadataLocation MetadataLocation? - Location of association for metadata
googleapis.sheets: DimensionRange
The Dimension Range
Fields
- sheetId int - The ID of the worksheet
- dimension Dimension - The dimension of the span
- startIndex int - The start (inclusive) of the span, or not set if unbounded
- endIndex int - The end (exclusive) of the span, or not set if unbounded.
googleapis.sheets: File
File information
Fields
- kind string - Identifies what kind of resource is this. Value: the fixed string "drive#file".
- id string - The Id of the file
- name string - The name of the file
- mimeType string - The MIME type of the file
googleapis.sheets: FilesResponse
Response from File search
Fields
- kind string - Identifies what kind of resource is this. Value: the fixed string "drive#fileList".
- nextPageToken string? - The page token for the next page of files. This will be absent if the end of the files list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
- incompleteSearch boolean - Whether the search process was incomplete. If true, then some search results may be missing, Since all documents were not searched. This may occur when searching multiple drives with the "allDrives" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as "user" or "drive".
- files File[] - The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
googleapis.sheets: GridProperties
Grid properties.
Fields
- rowCount int(default 0) - The number of rows in the grid
- columnCount int(default 0) - The number of columns in the grid
- frozenRowCount int(default 0) - The number of rows that are frozen in the grid
- frozenColumnCount int(default 0) - The number of columns that are frozen in the grid
- hideGridlines boolean(default false) - True if the grid is not showing gridlines in the UI
googleapis.sheets: GridRangeFilter
The GridRange filters
Fields
- sheetId int - The ID of the worksheet
- startRowIndex int? - The start row (inclusive) of the range, or not set if unbounded.
- endRowIndex int? - The end row (exclusive) of the range, or not set if unbounded.
- startColumnIndex int? - The start column (inclusive) of the range, or not set if unbounded.
- endColumnIndex int? - The end column (exclusive) of the range, or not set if unbounded.
googleapis.sheets: MetadataLocation
The Metadata Location
Fields
- locationType LocationType - Specified type which the metadata ara associated. For more information, see LocationType
- spreadsheet boolean - Whether metadata is associated with an entire spreadsheet.
- sheetId int - The ID of the worksheet
- dimensionRange DimensionRange - Dimension the when the metadata is associated with them
googleapis.sheets: Range
Single cell or a group of adjacent cells in a sheet.
Fields
- a1Notation string - The column letter followed by the row number. For example for a single cell "A1" refers to the intersection of column "A" with row "1", and for a range of cells "A1:D5" refers to the top left cell and the bottom right cell of a range
googleapis.sheets: Row
Single row in a sheet.
Fields
- rowPosition int - The row number
googleapis.sheets: Sheet
Worksheet information.
Fields
- properties SheetProperties(default {}) - Properties of a worksheet
googleapis.sheets: SheetProperties
Worksheet properties.
Fields
- sheetId int(default 0) - The ID of the worksheet
- title string(default "") - The name of the worksheet
- index int(default 0) - The index of the worksheet within the spreadsheet
- sheetType string(default "") - The type of worksheet
- gridProperties GridProperties(default {}) - Additional properties of the worksheet if this worksheet is a grid
- hidden boolean(default false) - True if the worksheet is hidden in the UI, false if it is visible
- rightToLeft boolean(default false) - True if the worksheet is an RTL worksheet instead of an LTR worksheet
googleapis.sheets: Spreadsheet
Spreadsheet information.
Fields
- spreadsheetId string(default "") - Id of the spreadsheet
- properties SpreadsheetProperties(default {}) - Properties of a spreadsheet
- sheets Sheet[](default []) - The sheets that are part of a spreadsheet
- spreadsheetUrl string(default "") - The Url of the spreadsheet
googleapis.sheets: SpreadsheetProperties
Spreadsheet properties.
Fields
- title string(default "") - The title of the spreadsheet
- locale string(default "") - The locale of the spreadsheet
- autoRecalc string(default "") - The amount of time to wait before volatile functions are recalculated
- timeZone string(default "") - The time zone of the spreadsheet
googleapis.sheets: ValueRange
Values related to a single row.
Fields
- rowPosition int - The row number
- a1Range A1Range - A1Notation of the range
googleapis.sheets: ValuesRange
Values related to a multiple rows.
Fields
- rowStartPosition int - The row number
- a1Range A1Range - A1Notation of the range
Union types
googleapis.sheets: Filter
Filter
Type of filter used to match data.
Import
import ballerinax/googleapis.sheets;
Metadata
Released date: 4 months ago
Version: 3.5.1
License: Apache-2.0
Compatibility
Platform: java17
Ballerina version: 2201.8.4
GraalVM compatible: Yes
Pull count
Total: 125160
Current verison: 643
Weekly downloads
Keywords
Cost/Free
Vendor/Google
Contributors