googlebigquery.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
Analytics Hub
createDataExchange
analyticsHub.createDataExchange
Create a new data exchange
Risk: write
await corsair.googlebigquery.api.analyticsHub.createDataExchange({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataExchangeId | string | Yes | — |
displayName | string | Yes | — |
description | string | No | — |
primaryContact | string | No | — |
documentation | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
displayName | string | No | — |
description | string | No | — |
primaryContact | string | No | — |
documentation | string | No | — |
listingCount | number | No | — |
createListing
analyticsHub.createListing
Create a new listing (shareable dataset) in a data exchange
Risk: write
await corsair.googlebigquery.api.analyticsHub.createListing({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataExchangeId | string | Yes | — |
listingId | string | Yes | — |
displayName | string | Yes | — |
description | string | No | — |
primaryContact | string | No | — |
bigqueryDataset | object | No | — |
bigqueryDataset full type
bigqueryDataset full type
{
dataset?: string,
selectedResources?: {
table?: string,
view?: string
}[]
}
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
displayName | string | No | — |
description | string | No | — |
primaryContact | string | No | — |
documentation | string | No | — |
state | STATE_UNSPECIFIED | ACTIVE | No | — |
categories | string[] | No | — |
bigqueryDataset | object | No | — |
bigqueryDataset full type
bigqueryDataset full type
{
dataset?: string,
selectedResources?: {
table?: string,
view?: string
}[]
}
createQueryTemplate
analyticsHub.createQueryTemplate
Create a new query template in a data exchange
Risk: write
await corsair.googlebigquery.api.analyticsHub.createQueryTemplate({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataExchangeId | string | Yes | — |
displayName | string | Yes | — |
query | string | Yes | — |
description | string | No | — |
object
Output full type
Output full type
{
}
listDataexchangesListings
analyticsHub.listDataexchangesListings
List data exchanges in a location
Risk: read
await corsair.googlebigquery.api.analyticsHub.listDataexchangesListings({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
dataExchanges | object[] | No | — |
nextPageToken | string | No | — |
dataExchanges full type
dataExchanges full type
{
name?: string,
displayName?: string,
description?: string,
primaryContact?: string,
documentation?: string,
listingCount?: number
}[]
listListings
analyticsHub.listListings
List listings in a data exchange
Risk: read
await corsair.googlebigquery.api.analyticsHub.listListings({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataExchangeId | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
listings | object[] | No | — |
nextPageToken | string | No | — |
listings full type
listings full type
{
name?: string,
displayName?: string,
description?: string,
primaryContact?: string,
documentation?: string,
state?: STATE_UNSPECIFIED | ACTIVE,
categories?: string[],
bigqueryDataset?: {
dataset?: string,
selectedResources?: {
table?: string,
view?: string
}[]
}
}[]
listOrganizationDataExchanges
analyticsHub.listOrganizationDataExchanges
List data exchanges across an organization
Risk: read
await corsair.googlebigquery.api.analyticsHub.listOrganizationDataExchanges({});
| Name | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
dataExchanges | object[] | No | — |
nextPageToken | string | No | — |
dataExchanges full type
dataExchanges full type
{
name?: string,
displayName?: string,
description?: string,
primaryContact?: string,
documentation?: string,
listingCount?: number
}[]
listQueryTemplates
analyticsHub.listQueryTemplates
List query templates in a data exchange
Risk: read
await corsair.googlebigquery.api.analyticsHub.listQueryTemplates({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataExchangeId | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
queryTemplates | object[] | No | — |
nextPageToken | string | No | — |
queryTemplates full type
queryTemplates full type
{
}[]
Connections
create
connections.create
Create a new external data source connection
Risk: write
await corsair.googlebigquery.api.connections.create({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
connectionId | string | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
cloudSql | object | No | — |
cloudResource | object | No | — |
aws | object | No | — |
azure | object | No | — |
cloudSql full type
cloudSql full type
{
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
}
cloudResource full type
cloudResource full type
{
serviceAccountId?: string
}
aws full type
aws full type
{
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
}
azure full type
azure full type
{
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
friendlyName | string | No | — |
description | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
hasCredential | boolean | No | — |
cloudSql | object | No | — |
cloudResource | object | No | — |
aws | object | No | — |
azure | object | No | — |
cloudSql full type
cloudSql full type
{
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
}
cloudResource full type
cloudResource full type
{
serviceAccountId?: string
}
aws full type
aws full type
{
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
}
azure full type
azure full type
{
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
listBigQueryConnections
connections.listBigQueryConnections
List BigQuery connections across all locations
Risk: read
await corsair.googlebigquery.api.connections.listBigQueryConnections({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | No | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
connections | object[] | No | — |
nextPageToken | string | No | — |
connections full type
connections full type
{
name?: string,
friendlyName?: string,
description?: string,
creationTime?: string,
lastModifiedTime?: string,
hasCredential?: boolean,
cloudSql?: {
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
},
cloudResource?: {
serviceAccountId?: string
},
aws?: {
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
},
azure?: {
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
}[]
listLocationsConnections
connections.listLocationsConnections
List BigQuery connections in a specific location
Risk: read
await corsair.googlebigquery.api.connections.listLocationsConnections({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
connections | object[] | No | — |
nextPageToken | string | No | — |
connections full type
connections full type
{
name?: string,
friendlyName?: string,
description?: string,
creationTime?: string,
lastModifiedTime?: string,
hasCredential?: boolean,
cloudSql?: {
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
},
cloudResource?: {
serviceAccountId?: string
},
aws?: {
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
},
azure?: {
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
}[]
update
connections.update
Update an existing connection
Risk: write
await corsair.googlebigquery.api.connections.update({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
connectionId | string | Yes | — |
updateMask | string | No | — |
connection | object | Yes | — |
connection full type
connection full type
{
name?: string,
friendlyName?: string,
description?: string,
creationTime?: string,
lastModifiedTime?: string,
hasCredential?: boolean,
cloudSql?: {
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
},
cloudResource?: {
serviceAccountId?: string
},
aws?: {
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
},
azure?: {
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
}
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
friendlyName | string | No | — |
description | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
hasCredential | boolean | No | — |
cloudSql | object | No | — |
cloudResource | object | No | — |
aws | object | No | — |
azure | object | No | — |
cloudSql full type
cloudSql full type
{
instanceId?: string,
database?: string,
type?: DATABASE_TYPE_UNSPECIFIED | POSTGRES | MYSQL,
credential?: {
username?: string,
password?: string
}
}
cloudResource full type
cloudResource full type
{
serviceAccountId?: string
}
aws full type
aws full type
{
crossAccountRole?: {
iamRoleId?: string
},
accessRole?: {
iamRoleId?: string
}
}
azure full type
azure full type
{
application?: string,
clientId?: string,
objectId?: string,
customerTenantId?: string
}
Datasets
create
datasets.create
Create a new dataset
Risk: write
await corsair.googlebigquery.api.datasets.create({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
location | string | No | — |
labels | object | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
access | object[] | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
labels | object | No | — |
access | object[] | No | — |
location | string | No | — |
maxTimeTravelHours | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
delete
datasets.delete
Permanently delete a dataset [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
await corsair.googlebigquery.api.datasets.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
deleteContents | boolean | No | — |
void
get
datasets.get
Get a dataset by ID
Risk: read
await corsair.googlebigquery.api.datasets.get({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
datasetView | FULL | METADATA | ACL | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
labels | object | No | — |
access | object[] | No | — |
location | string | No | — |
maxTimeTravelHours | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
list
datasets.list
List datasets in a project
Risk: read
await corsair.googlebigquery.api.datasets.list({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
all | boolean | No | — |
filter | string | No | — |
maxResults | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
etag | string | No | — |
datasets | object[] | No | — |
nextPageToken | string | No | — |
datasets full type
datasets full type
{
kind?: string,
id?: string,
datasetReference: {
datasetId: string,
projectId?: string
},
labels?: {
},
friendlyName?: string,
location?: string
}[]
patch
datasets.patch
Partially update a dataset
Risk: write
await corsair.googlebigquery.api.datasets.patch({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
dataset | object | Yes | — |
dataset full type
dataset full type
{
id?: string,
kind?: string,
etag?: string,
selfLink?: string,
datasetReference?: {
datasetId: string,
projectId?: string
},
friendlyName?: string,
description?: string,
defaultTableExpirationMs?: string,
defaultPartitionExpirationMs?: string,
labels?: {
},
access?: {
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[],
location?: string,
maxTimeTravelHours?: string,
creationTime?: string,
lastModifiedTime?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
labels | object | No | — |
access | object[] | No | — |
location | string | No | — |
maxTimeTravelHours | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
undelete
datasets.undelete
Restore a recently deleted dataset
Risk: write
await corsair.googlebigquery.api.datasets.undelete({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
deletionTime | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
labels | object | No | — |
access | object[] | No | — |
location | string | No | — |
maxTimeTravelHours | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
update
datasets.update
Replace a dataset (full update)
Risk: write
await corsair.googlebigquery.api.datasets.update({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
dataset | object | Yes | — |
dataset full type
dataset full type
{
id?: string,
kind?: string,
etag?: string,
selfLink?: string,
datasetReference: {
datasetId: string,
projectId?: string
},
friendlyName?: string,
description?: string,
defaultTableExpirationMs?: string,
defaultPartitionExpirationMs?: string,
labels?: {
},
access?: {
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[],
location?: string,
maxTimeTravelHours?: string,
creationTime?: string,
lastModifiedTime?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
datasetReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
defaultTableExpirationMs | string | No | — |
defaultPartitionExpirationMs | string | No | — |
labels | object | No | — |
access | object[] | No | — |
location | string | No | — |
maxTimeTravelHours | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
datasetReference full type
datasetReference full type
{
datasetId: string,
projectId?: string
}
labels full type
labels full type
{
}
access full type
access full type
{
role?: string,
userByEmail?: string,
groupByEmail?: string,
domain?: string,
specialGroup?: string,
iamMember?: string,
view?: {
projectId?: string,
datasetId: string,
tableId: string
},
routine?: {
projectId?: string,
datasetId: string,
routineId: string
},
dataset?: {
dataset: {
datasetId: string,
projectId?: string
},
targetTypes?: string[]
}
}[]
Iam
createLocationsDatapolicies
iam.createLocationsDatapolicies
Create a column-level security / data masking policy
Risk: write
await corsair.googlebigquery.api.iam.createLocationsDatapolicies({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
dataPolicyId | string | Yes | — |
policyTag | string | No | — |
dataPolicyType | DATA_POLICY_TYPE_UNSPECIFIED | COLUMN_LEVEL_SECURITY_POLICY | DATA_MASKING_POLICY | No | — |
dataMaskingPolicy | object | No | — |
dataMaskingPolicy full type
dataMaskingPolicy full type
{
predefinedExpression?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
dataPolicyId | string | No | — |
policyTag | string | No | — |
dataPolicyType | DATA_POLICY_TYPE_UNSPECIFIED | COLUMN_LEVEL_SECURITY_POLICY | DATA_MASKING_POLICY | No | — |
dataMaskingPolicy | object | No | — |
dataMaskingPolicy full type
dataMaskingPolicy full type
{
predefinedExpression?: string
}
getConnectionIamPolicy
iam.getConnectionIamPolicy
Get a connection’s IAM policy
Risk: read
await corsair.googlebigquery.api.iam.getConnectionIamPolicy({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
connectionId | string | Yes | — |
requestedPolicyVersion | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
version | number | No | — |
bindings | object[] | No | — |
etag | string | No | — |
bindings full type
bindings full type
{
role?: string,
members?: string[],
condition?: {
expression?: string,
title?: string,
description?: string,
location?: string
}
}[]
getRoutineIamPolicy
iam.getRoutineIamPolicy
Get a routine’s IAM policy
Risk: read
await corsair.googlebigquery.api.iam.getRoutineIamPolicy({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
requestedPolicyVersion | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
version | number | No | — |
bindings | object[] | No | — |
etag | string | No | — |
bindings full type
bindings full type
{
role?: string,
members?: string[],
condition?: {
expression?: string,
title?: string,
description?: string,
location?: string
}
}[]
getServiceAccount
iam.getServiceAccount
Get the project’s BigQuery service account email
Risk: read
await corsair.googlebigquery.api.iam.getServiceAccount({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
email | string | No | — |
getTableIamPolicy
iam.getTableIamPolicy
Get a table’s IAM policy
Risk: read
await corsair.googlebigquery.api.iam.getTableIamPolicy({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
requestedPolicyVersion | number | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
version | number | No | — |
bindings | object[] | No | — |
etag | string | No | — |
bindings full type
bindings full type
{
role?: string,
members?: string[],
condition?: {
expression?: string,
title?: string,
description?: string,
location?: string
}
}[]
listLocationsDatapolicies
iam.listLocationsDatapolicies
List data policies in a location
Risk: read
await corsair.googlebigquery.api.iam.listLocationsDatapolicies({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
filter | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
dataPolicies | object[] | No | — |
nextPageToken | string | No | — |
dataPolicies full type
dataPolicies full type
{
name?: string,
dataPolicyId?: string,
policyTag?: string,
dataPolicyType?: DATA_POLICY_TYPE_UNSPECIFIED | COLUMN_LEVEL_SECURITY_POLICY | DATA_MASKING_POLICY,
dataMaskingPolicy?: {
predefinedExpression?: string
}
}[]
listRowAccessPolicies
iam.listRowAccessPolicies
List a table’s row-level access policies
Risk: read
await corsair.googlebigquery.api.iam.listRowAccessPolicies({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
rowAccessPolicies | object[] | No | — |
nextPageToken | string | No | — |
rowAccessPolicies full type
rowAccessPolicies full type
{
etag?: string,
rowAccessPolicyReference?: {
projectId?: string,
datasetId?: string,
tableId?: string,
policyId?: string
},
filterPredicate?: string,
creationTime?: string,
lastModifiedTime?: string
}[]
setRoutineIamPolicy
iam.setRoutineIamPolicy
Replace a routine’s IAM policy
Risk: write
await corsair.googlebigquery.api.iam.setRoutineIamPolicy({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
policy | object | Yes | — |
updateMask | string | No | — |
policy full type
policy full type
{
version?: number,
bindings?: {
role?: string,
members?: string[],
condition?: {
expression?: string,
title?: string,
description?: string,
location?: string
}
}[],
etag?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
version | number | No | — |
bindings | object[] | No | — |
etag | string | No | — |
bindings full type
bindings full type
{
role?: string,
members?: string[],
condition?: {
expression?: string,
title?: string,
description?: string,
location?: string
}
}[]
testRoutineIamPermissions
iam.testRoutineIamPermissions
Test which permissions the caller has on a routine
Risk: read
await corsair.googlebigquery.api.iam.testRoutineIamPermissions({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
permissions | string[] | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
permissions | string[] | No | — |
Ml
deleteModel
ml.deleteModel
Permanently delete a model [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
await corsair.googlebigquery.api.ml.deleteModel({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
modelId | string | Yes | — |
void
getBigqueryModel
ml.getBigqueryModel
Get a BigQuery ML model by ID
Risk: read
await corsair.googlebigquery.api.ml.getBigqueryModel({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
modelId | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
etag | string | No | — |
modelReference | object | Yes | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
description | string | No | — |
friendlyName | string | No | — |
labels | object | No | — |
expirationTime | string | No | — |
location | string | No | — |
modelType | string | No | — |
featureColumns | object[] | No | — |
labelColumns | object[] | No | — |
trainingRuns | object[] | No | — |
modelReference full type
modelReference full type
{
projectId?: string,
datasetId: string,
modelId: string
}
labels full type
labels full type
{
}
featureColumns full type
featureColumns full type
{
name?: string,
type?: {
}
}[]
labelColumns full type
labelColumns full type
{
name?: string,
type?: {
}
}[]
trainingRuns full type
trainingRuns full type
{
}[]
listLocations
ml.listLocations
List available BigQuery locations for a project
Risk: read
await corsair.googlebigquery.api.ml.listLocations({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
filter | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
locations | object[] | No | — |
nextPageToken | string | No | — |
locations full type
locations full type
{
name?: string,
locationId?: string,
displayName?: string
}[]
listModels
ml.listModels
List BigQuery ML models in a dataset
Risk: read
await corsair.googlebigquery.api.ml.listModels({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
maxResults | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
models | object[] | No | — |
nextPageToken | string | No | — |
models full type
models full type
{
etag?: string,
modelReference: {
projectId?: string,
datasetId: string,
modelId: string
},
creationTime?: string,
lastModifiedTime?: string,
description?: string,
friendlyName?: string,
labels?: {
},
expirationTime?: string,
location?: string,
modelType?: string,
featureColumns?: {
name?: string,
type?: {
}
}[],
labelColumns?: {
name?: string,
type?: {
}
}[],
trainingRuns?: {
}[]
}[]
listProjects
ml.listProjects
List projects visible to the caller
Risk: read
await corsair.googlebigquery.api.ml.listProjects({});
| Name | Type | Required | Description |
|---|---|---|---|
maxResults | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
etag | string | No | — |
projects | object[] | No | — |
nextPageToken | string | No | — |
totalItems | number | No | — |
projects full type
projects full type
{
kind?: string,
id?: string,
numericId?: string,
projectReference?: {
projectId?: string
},
friendlyName?: string
}[]
patchModel
ml.patchModel
Partially update a model’s metadata
Risk: write
await corsair.googlebigquery.api.ml.patchModel({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
modelId | string | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
expirationTime | string | No | — |
labels full type
labels full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
etag | string | No | — |
modelReference | object | Yes | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
description | string | No | — |
friendlyName | string | No | — |
labels | object | No | — |
expirationTime | string | No | — |
location | string | No | — |
modelType | string | No | — |
featureColumns | object[] | No | — |
labelColumns | object[] | No | — |
trainingRuns | object[] | No | — |
modelReference full type
modelReference full type
{
projectId?: string,
datasetId: string,
modelId: string
}
labels full type
labels full type
{
}
featureColumns full type
featureColumns full type
{
name?: string,
type?: {
}
}[]
labelColumns full type
labelColumns full type
{
name?: string,
type?: {
}
}[]
trainingRuns full type
trainingRuns full type
{
}[]
Queries
cancelJob
queries.cancelJob
Request cancellation of a running job [DESTRUCTIVE]
Risk: destructive
await corsair.googlebigquery.api.queries.cancelJob({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobId | string | Yes | — |
location | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
job | object | No | — |
job full type
job full type
{
id?: string,
kind?: string,
selfLink?: string,
etag?: string,
jobReference?: {
projectId?: string,
jobId?: string,
location?: string
},
configuration?: {
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
},
status?: {
state?: PENDING | RUNNING | DONE,
errorResult?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
},
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
},
statistics?: {
},
user_email?: string
}
deleteJobMetadata
queries.deleteJobMetadata
Delete a job’s metadata [DESTRUCTIVE]
Risk: destructive
await corsair.googlebigquery.api.queries.deleteJobMetadata({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobId | string | Yes | — |
location | string | No | — |
void
getJob
queries.getJob
Get a job by ID
Risk: read
await corsair.googlebigquery.api.queries.getJob({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobId | string | Yes | — |
location | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
selfLink | string | No | — |
etag | string | No | — |
jobReference | object | No | — |
configuration | object | No | — |
status | object | No | — |
statistics | object | No | — |
user_email | string | No | — |
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
configuration full type
configuration full type
{
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
}
status full type
status full type
{
state?: PENDING | RUNNING | DONE,
errorResult?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
},
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
}
statistics full type
statistics full type
{
}
getQueryResults
queries.getQueryResults
Fetch additional pages of results for a running/completed query job
Risk: read
await corsair.googlebigquery.api.queries.getQueryResults({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobId | string | Yes | — |
startIndex | string | No | — |
pageToken | string | No | — |
maxResults | number | No | — |
timeoutMs | number | No | — |
location | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
schema | object | No | — |
jobReference | object | No | — |
totalRows | string | No | — |
pageToken | string | No | — |
rows | object[] | No | — |
totalBytesProcessed | string | No | — |
jobComplete | boolean | No | — |
errors | object[] | No | — |
cacheHit | boolean | No | — |
numDmlAffectedRows | string | No | — |
etag | string | No | — |
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
rows full type
rows full type
{
f?: {
v: any
}[]
}[]
errors full type
errors full type
{
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
insertAll
queries.insertAll
Stream rows into a table (supports insertId-based deduplication)
Risk: write
await corsair.googlebigquery.api.queries.insertAll({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
rows | object[] | Yes | — |
skipInvalidRows | boolean | No | — |
ignoreUnknownValues | boolean | No | — |
templateSuffix | string | No | — |
rows full type
rows full type
{
insertId?: string,
json: {
}
}[]
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
insertErrors | object[] | No | — |
insertErrors full type
insertErrors full type
{
index?: number,
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
}[]
insertJob
queries.insertJob
Start a query, load, extract, or copy job (supports dry-run)
Risk: write
await corsair.googlebigquery.api.queries.insertJob({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobReference | object | No | — |
configuration | object | Yes | — |
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
configuration full type
configuration full type
{
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
selfLink | string | No | — |
etag | string | No | — |
jobReference | object | No | — |
configuration | object | No | — |
status | object | No | — |
statistics | object | No | — |
user_email | string | No | — |
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
configuration full type
configuration full type
{
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
}
status full type
status full type
{
state?: PENDING | RUNNING | DONE,
errorResult?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
},
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
}
statistics full type
statistics full type
{
}
insertJobWithUpload
queries.insertJobWithUpload
Start a load job that uploads an inline file as the data source
Risk: write
await corsair.googlebigquery.api.queries.insertJobWithUpload({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
jobReference | object | No | — |
configuration | object | Yes | — |
fileContent | string | Yes | — |
fileName | string | No | — |
contentType | string | No | — |
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
configuration full type
configuration full type
{
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
selfLink | string | No | — |
etag | string | No | — |
jobReference | object | No | — |
configuration | object | No | — |
status | object | No | — |
statistics | object | No | — |
user_email | string | No | — |
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
configuration full type
configuration full type
{
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
}
status full type
status full type
{
state?: PENDING | RUNNING | DONE,
errorResult?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
},
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
}
statistics full type
statistics full type
{
}
listJobs
queries.listJobs
List jobs for a project
Risk: read
await corsair.googlebigquery.api.queries.listJobs({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
allUsers | boolean | No | — |
maxResults | number | No | — |
minCreationTime | string | No | — |
maxCreationTime | string | No | — |
pageToken | string | No | — |
projection | full | minimal | No | — |
stateFilter | done | pending | running[] | No | — |
parentJobId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
etag | string | No | — |
jobs | object[] | No | — |
nextPageToken | string | No | — |
jobs full type
jobs full type
{
id?: string,
kind?: string,
selfLink?: string,
etag?: string,
jobReference?: {
projectId?: string,
jobId?: string,
location?: string
},
configuration?: {
jobType?: QUERY | LOAD | EXTRACT | COPY,
query?: {
query: string,
destinationTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
defaultDataset?: {
datasetId: string,
projectId?: string
},
priority?: INTERACTIVE | BATCH,
useLegacySql?: boolean,
useQueryCache?: boolean,
maximumBytesBilled?: string,
queryParameters?: {
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[],
parameterMode?: POSITIONAL | NAMED
},
load?: {
sourceUris?: string[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
sourceFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET | ORC | DATASTORE_BACKUP,
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY,
skipLeadingRows?: number,
autodetect?: boolean,
fieldDelimiter?: string,
encoding?: UTF-8 | ISO-8859-1
},
extract?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
destinationUris?: string[],
destinationFormat?: CSV | NEWLINE_DELIMITED_JSON | AVRO | PARQUET,
compression?: NONE | GZIP | DEFLATE | SNAPPY,
fieldDelimiter?: string
},
copy?: {
sourceTable?: {
projectId?: string,
datasetId: string,
tableId: string
},
sourceTables?: {
projectId?: string,
datasetId: string,
tableId: string
}[],
destinationTable: {
projectId?: string,
datasetId: string,
tableId: string
},
createDisposition?: CREATE_IF_NEEDED | CREATE_NEVER,
writeDisposition?: WRITE_TRUNCATE | WRITE_APPEND | WRITE_EMPTY
},
dryRun?: boolean,
jobTimeoutMs?: string,
labels?: {
}
},
status?: {
state?: PENDING | RUNNING | DONE,
errorResult?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
},
errors?: {
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
},
statistics?: {
},
user_email?: string
}[]
query
queries.query
Run a SQL query and return inline results
Risk: read
await corsair.googlebigquery.api.queries.query({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
query | string | Yes | — |
maxResults | number | No | — |
defaultDataset | object | No | — |
timeoutMs | number | No | — |
dryRun | boolean | No | — |
useQueryCache | boolean | No | — |
useLegacySql | boolean | No | — |
parameterMode | POSITIONAL | NAMED | No | — |
queryParameters | object[] | No | — |
location | string | No | — |
maximumBytesBilled | string | No | — |
requestId | string | No | — |
defaultDataset full type
defaultDataset full type
{
datasetId: string,
projectId?: string
}
queryParameters full type
queryParameters full type
{
name?: string,
parameterType: {
type: string,
arrayType?: any,
structTypes?: any[]
},
parameterValue: {
value?: any,
arrayValues?: any[],
structValues?: {
}
}
}[]
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
schema | object | No | — |
jobReference | object | No | — |
totalRows | string | No | — |
pageToken | string | No | — |
rows | object[] | No | — |
totalBytesProcessed | string | No | — |
jobComplete | boolean | No | — |
errors | object[] | No | — |
cacheHit | boolean | No | — |
numDmlAffectedRows | string | No | — |
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
jobReference full type
jobReference full type
{
projectId?: string,
jobId?: string,
location?: string
}
rows full type
rows full type
{
f?: {
v: any
}[]
}[]
errors full type
errors full type
{
reason?: string,
location?: string,
debugInfo?: string,
message?: string
}[]
Reservations
create
reservations.create
Create a new slot reservation (has billing impact)
Risk: write
await corsair.googlebigquery.api.reservations.create({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
reservationId | string | Yes | — |
slotCapacity | string | No | — |
ignoreIdleSlots | boolean | No | — |
edition | EDITION_UNSPECIFIED | STANDARD | ENTERPRISE | ENTERPRISE_PLUS | No | — |
autoscale | object | No | — |
autoscale full type
autoscale full type
{
currentSlots?: string,
maxSlots?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
slotCapacity | string | No | — |
ignoreIdleSlots | boolean | No | — |
creationTime | string | No | — |
updateTime | string | No | — |
concurrency | string | No | — |
edition | EDITION_UNSPECIFIED | STANDARD | ENTERPRISE | ENTERPRISE_PLUS | No | — |
autoscale | object | No | — |
autoscale full type
autoscale full type
{
currentSlots?: string,
maxSlots?: string
}
createAssignment
reservations.createAssignment
Assign a project/folder/org to a reservation
Risk: write
await corsair.googlebigquery.api.reservations.createAssignment({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
reservationId | string | Yes | — |
assignee | string | Yes | — |
jobType | JOB_TYPE_UNSPECIFIED | PIPELINE | QUERY | ML_EXTERNAL | BACKGROUND | CONTINUOUS | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
assignee | string | No | — |
jobType | JOB_TYPE_UNSPECIFIED | PIPELINE | QUERY | ML_EXTERNAL | BACKGROUND | CONTINUOUS | No | — |
state | STATE_UNSPECIFIED | PENDING | ACTIVE | No | — |
createCapacityCommitment
reservations.createCapacityCommitment
Purchase a new capacity commitment (has billing impact)
Risk: write
await corsair.googlebigquery.api.reservations.createCapacityCommitment({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
slotCount | string | Yes | — |
plan | COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR | Yes | — |
renewalPlan | COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR | NONE | No | — |
enforceSingleAdminProjectPerOrg | boolean | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | — |
slotCount | string | No | — |
plan | COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR | No | — |
state | STATE_UNSPECIFIED | PENDING | ACTIVE | FAILED | No | — |
commitmentEndTime | string | No | — |
renewalPlan | COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR | NONE | No | — |
list
reservations.list
List slot reservations in a location
Risk: read
await corsair.googlebigquery.api.reservations.list({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
filter | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
reservations | object[] | No | — |
nextPageToken | string | No | — |
reservations full type
reservations full type
{
name?: string,
slotCapacity?: string,
ignoreIdleSlots?: boolean,
creationTime?: string,
updateTime?: string,
concurrency?: string,
edition?: EDITION_UNSPECIFIED | STANDARD | ENTERPRISE | ENTERPRISE_PLUS,
autoscale?: {
currentSlots?: string,
maxSlots?: string
}
}[]
listAssignments
reservations.listAssignments
List a reservation’s assignments
Risk: read
await corsair.googlebigquery.api.reservations.listAssignments({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
reservationId | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
assignments | object[] | No | — |
nextPageToken | string | No | — |
assignments full type
assignments full type
{
name?: string,
assignee?: string,
jobType?: JOB_TYPE_UNSPECIFIED | PIPELINE | QUERY | ML_EXTERNAL | BACKGROUND | CONTINUOUS,
state?: STATE_UNSPECIFIED | PENDING | ACTIVE
}[]
listCapacityCommitments
reservations.listCapacityCommitments
List capacity commitments in a location
Risk: read
await corsair.googlebigquery.api.reservations.listCapacityCommitments({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
capacityCommitments | object[] | No | — |
nextPageToken | string | No | — |
capacityCommitments full type
capacityCommitments full type
{
name?: string,
slotCount?: string,
plan?: COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR,
state?: STATE_UNSPECIFIED | PENDING | ACTIVE | FAILED,
commitmentEndTime?: string,
renewalPlan?: COMMITMENT_PLAN_UNSPECIFIED | FLEX | FLEX_FLAT_RATE | MONTHLY | ANNUAL | THREE_YEAR | NONE
}[]
listGroups
reservations.listGroups
List reservation groups in a location
Risk: read
await corsair.googlebigquery.api.reservations.listGroups({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
reservationGroups | object[] | No | — |
nextPageToken | string | No | — |
reservationGroups full type
reservationGroups full type
{
name?: string
}[]
searchAllAssignments
reservations.searchAllAssignments
Search assignments across a location
Risk: read
await corsair.googlebigquery.api.reservations.searchAllAssignments({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
location | string | Yes | — |
query | string | No | — |
pageSize | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
assignments | object[] | No | — |
nextPageToken | string | No | — |
assignments full type
assignments full type
{
name?: string,
assignee?: string,
jobType?: JOB_TYPE_UNSPECIFIED | PIPELINE | QUERY | ML_EXTERNAL | BACKGROUND | CONTINUOUS,
state?: STATE_UNSPECIFIED | PENDING | ACTIVE
}[]
Routines
create
routines.create
Create a new routine (UDF or stored procedure)
Risk: write
await corsair.googlebigquery.api.routines.create({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineReference | object | Yes | — |
routineType | SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION | Yes | — |
definitionBody | string | Yes | — |
language | SQL | JAVASCRIPT | PYTHON | JAVA | SCALA | No | — |
arguments | object[] | No | — |
returnType | object | No | — |
description | string | No | — |
determinismLevel | DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC | No | — |
routineReference full type
routineReference full type
{
projectId?: string,
datasetId: string,
routineId: string
}
arguments full type
arguments full type
{
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[]
returnType full type
returnType full type
{
}
| Name | Type | Required | Description |
|---|---|---|---|
etag | string | No | — |
routineReference | object | Yes | — |
routineType | SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
language | SQL | JAVASCRIPT | PYTHON | JAVA | SCALA | No | — |
arguments | object[] | No | — |
returnType | object | No | — |
importedLibraries | string[] | No | — |
definitionBody | string | No | — |
description | string | No | — |
determinismLevel | DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC | No | — |
routineReference full type
routineReference full type
{
projectId?: string,
datasetId: string,
routineId: string
}
arguments full type
arguments full type
{
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[]
returnType full type
returnType full type
{
}
delete
routines.delete
Permanently delete a routine [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
await corsair.googlebigquery.api.routines.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
void
get
routines.get
Get a routine by ID
Risk: read
await corsair.googlebigquery.api.routines.get({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
readMask | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
etag | string | No | — |
routineReference | object | Yes | — |
routineType | SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
language | SQL | JAVASCRIPT | PYTHON | JAVA | SCALA | No | — |
arguments | object[] | No | — |
returnType | object | No | — |
importedLibraries | string[] | No | — |
definitionBody | string | No | — |
description | string | No | — |
determinismLevel | DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC | No | — |
routineReference full type
routineReference full type
{
projectId?: string,
datasetId: string,
routineId: string
}
arguments full type
arguments full type
{
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[]
returnType full type
returnType full type
{
}
list
routines.list
List routines (UDFs/stored procedures) in a dataset
Risk: read
await corsair.googlebigquery.api.routines.list({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
maxResults | number | No | — |
pageToken | string | No | — |
filter | string | No | — |
readMask | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
routines | object[] | No | — |
nextPageToken | string | No | — |
routines full type
routines full type
{
etag?: string,
routineReference: {
projectId?: string,
datasetId: string,
routineId: string
},
routineType?: SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION,
creationTime?: string,
lastModifiedTime?: string,
language?: SQL | JAVASCRIPT | PYTHON | JAVA | SCALA,
arguments?: {
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[],
returnType?: {
},
importedLibraries?: string[],
definitionBody?: string,
description?: string,
determinismLevel?: DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC
}[]
update
routines.update
Replace a routine (full update)
Risk: write
await corsair.googlebigquery.api.routines.update({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
routineId | string | Yes | — |
routine | object | Yes | — |
routine full type
routine full type
{
etag?: string,
routineReference: {
projectId?: string,
datasetId: string,
routineId: string
},
routineType?: SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION,
creationTime?: string,
lastModifiedTime?: string,
language?: SQL | JAVASCRIPT | PYTHON | JAVA | SCALA,
arguments?: {
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[],
returnType?: {
},
importedLibraries?: string[],
definitionBody?: string,
description?: string,
determinismLevel?: DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC
}
| Name | Type | Required | Description |
|---|---|---|---|
etag | string | No | — |
routineReference | object | Yes | — |
routineType | SCALAR_FUNCTION | PROCEDURE | TABLE_VALUED_FUNCTION | AGGREGATE_FUNCTION | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
language | SQL | JAVASCRIPT | PYTHON | JAVA | SCALA | No | — |
arguments | object[] | No | — |
returnType | object | No | — |
importedLibraries | string[] | No | — |
definitionBody | string | No | — |
description | string | No | — |
determinismLevel | DETERMINISM_LEVEL_UNSPECIFIED | DETERMINISTIC | NOT_DETERMINISTIC | No | — |
routineReference full type
routineReference full type
{
projectId?: string,
datasetId: string,
routineId: string
}
arguments full type
arguments full type
{
name?: string,
argumentKind?: FIXED_TYPE | ANY_TYPE,
mode?: IN | OUT | INOUT,
dataType?: {
}
}[]
returnType full type
returnType full type
{
}
Tables
create
tables.create
Create a new table or view
Risk: write
await corsair.googlebigquery.api.tables.create({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableReference | object | Yes | — |
schema | object | No | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
timePartitioning | object | No | — |
clustering | object | No | — |
view | object | No | — |
externalDataConfiguration | object | No | — |
tableReference full type
tableReference full type
{
projectId?: string,
datasetId: string,
tableId: string
}
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
labels full type
labels full type
{
}
timePartitioning full type
timePartitioning full type
{
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
}
clustering full type
clustering full type
{
fields?: string[]
}
view full type
view full type
{
query?: string,
useLegacySql?: boolean
}
externalDataConfiguration full type
externalDataConfiguration full type
{
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
tableReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
schema | object | No | — |
timePartitioning | object | No | — |
clustering | object | No | — |
view | object | No | — |
externalDataConfiguration | object | No | — |
type | string | No | — |
location | string | No | — |
numRows | string | No | — |
numBytes | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
expirationTime | string | No | — |
tableReference full type
tableReference full type
{
projectId?: string,
datasetId: string,
tableId: string
}
labels full type
labels full type
{
}
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
timePartitioning full type
timePartitioning full type
{
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
}
clustering full type
clustering full type
{
fields?: string[]
}
view full type
view full type
{
query?: string,
useLegacySql?: boolean
}
externalDataConfiguration full type
externalDataConfiguration full type
{
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
}
delete
tables.delete
Permanently delete a table [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
await corsair.googlebigquery.api.tables.delete({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
void
getSchema
tables.getSchema
Get a table’s schema and metadata
Risk: read
await corsair.googlebigquery.api.tables.getSchema({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
selectedFields | string | No | — |
view | TABLE_METADATA_VIEW_UNSPECIFIED | BASIC | STORAGE_STATS | FULL | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
tableReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
schema | object | No | — |
timePartitioning | object | No | — |
clustering | object | No | — |
view | object | No | — |
externalDataConfiguration | object | No | — |
type | string | No | — |
location | string | No | — |
numRows | string | No | — |
numBytes | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
expirationTime | string | No | — |
tableReference full type
tableReference full type
{
projectId?: string,
datasetId: string,
tableId: string
}
labels full type
labels full type
{
}
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
timePartitioning full type
timePartitioning full type
{
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
}
clustering full type
clustering full type
{
fields?: string[]
}
view full type
view full type
{
query?: string,
useLegacySql?: boolean
}
externalDataConfiguration full type
externalDataConfiguration full type
{
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
}
list
tables.list
List tables in a dataset
Risk: read
await corsair.googlebigquery.api.tables.list({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
maxResults | number | No | — |
pageToken | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
etag | string | No | — |
tables | object[] | No | — |
nextPageToken | string | No | — |
totalItems | number | No | — |
tables full type
tables full type
{
kind?: string,
id?: string,
tableReference: {
projectId?: string,
datasetId: string,
tableId: string
},
friendlyName?: string,
type?: string,
creationTime?: string,
expirationTime?: string,
labels?: {
},
view?: {
query?: string,
useLegacySql?: boolean
}
}[]
listTableData
tables.listTableData
List a table’s row data
Risk: read
await corsair.googlebigquery.api.tables.listTableData({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
maxResults | number | No | — |
pageToken | string | No | — |
startIndex | string | No | — |
selectedFields | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
kind | string | No | — |
etag | string | No | — |
totalRows | string | No | — |
pageToken | string | No | — |
rows | object[] | No | — |
rows full type
rows full type
{
f?: {
v: any
}[]
}[]
patch
tables.patch
Partially update a table
Risk: write
await corsair.googlebigquery.api.tables.patch({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
table | object | Yes | — |
table full type
table full type
{
id?: string,
kind?: string,
etag?: string,
selfLink?: string,
tableReference?: {
projectId?: string,
datasetId: string,
tableId: string
},
friendlyName?: string,
description?: string,
labels?: {
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
timePartitioning?: {
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
},
clustering?: {
fields?: string[]
},
view?: {
query?: string,
useLegacySql?: boolean
},
externalDataConfiguration?: {
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
},
type?: string,
location?: string,
numRows?: string,
numBytes?: string,
creationTime?: string,
lastModifiedTime?: string,
expirationTime?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
tableReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
schema | object | No | — |
timePartitioning | object | No | — |
clustering | object | No | — |
view | object | No | — |
externalDataConfiguration | object | No | — |
type | string | No | — |
location | string | No | — |
numRows | string | No | — |
numBytes | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
expirationTime | string | No | — |
tableReference full type
tableReference full type
{
projectId?: string,
datasetId: string,
tableId: string
}
labels full type
labels full type
{
}
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
timePartitioning full type
timePartitioning full type
{
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
}
clustering full type
clustering full type
{
fields?: string[]
}
view full type
view full type
{
query?: string,
useLegacySql?: boolean
}
externalDataConfiguration full type
externalDataConfiguration full type
{
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
}
update
tables.update
Replace a table (full update)
Risk: write
await corsair.googlebigquery.api.tables.update({});
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | — |
datasetId | string | Yes | — |
tableId | string | Yes | — |
table | object | Yes | — |
table full type
table full type
{
id?: string,
kind?: string,
etag?: string,
selfLink?: string,
tableReference: {
projectId?: string,
datasetId: string,
tableId: string
},
friendlyName?: string,
description?: string,
labels?: {
},
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
timePartitioning?: {
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
},
clustering?: {
fields?: string[]
},
view?: {
query?: string,
useLegacySql?: boolean
},
externalDataConfiguration?: {
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
},
type?: string,
location?: string,
numRows?: string,
numBytes?: string,
creationTime?: string,
lastModifiedTime?: string,
expirationTime?: string
}
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
kind | string | No | — |
etag | string | No | — |
selfLink | string | No | — |
tableReference | object | Yes | — |
friendlyName | string | No | — |
description | string | No | — |
labels | object | No | — |
schema | object | No | — |
timePartitioning | object | No | — |
clustering | object | No | — |
view | object | No | — |
externalDataConfiguration | object | No | — |
type | string | No | — |
location | string | No | — |
numRows | string | No | — |
numBytes | string | No | — |
creationTime | string | No | — |
lastModifiedTime | string | No | — |
expirationTime | string | No | — |
tableReference full type
tableReference full type
{
projectId?: string,
datasetId: string,
tableId: string
}
labels full type
labels full type
{
}
schema full type
schema full type
{
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
}
timePartitioning full type
timePartitioning full type
{
type?: DAY | HOUR | MONTH | YEAR,
expirationMs?: string,
field?: string
}
clustering full type
clustering full type
{
fields?: string[]
}
view full type
view full type
{
query?: string,
useLegacySql?: boolean
}
externalDataConfiguration full type
externalDataConfiguration full type
{
sourceUris?: string[],
sourceFormat?: string,
schema?: {
fields?: {
name: string,
type: string,
mode?: string,
description?: string,
fields?: lazy
}[]
},
autodetect?: boolean
}