Skip to content

Commit 056784e

Browse files
yoshi-automationsofisl
authored andcommitted
feat(sheets): update the API
#### sheets:v4 The following keys were added: - schemas.DataSourceSpec.properties.looker.$ref - schemas.DataSourceSpec.properties.looker.description - schemas.LookerDataSourceSpec.description - schemas.LookerDataSourceSpec.id - schemas.LookerDataSourceSpec.properties.explore.description - schemas.LookerDataSourceSpec.properties.explore.type - schemas.LookerDataSourceSpec.properties.instanceUri.description - schemas.LookerDataSourceSpec.properties.instanceUri.type - schemas.LookerDataSourceSpec.properties.model.description - schemas.LookerDataSourceSpec.properties.model.type - schemas.LookerDataSourceSpec.type The following keys were changed: - schemas.AddDataSourceRequest.description - schemas.CancelDataSourceRefreshRequest.description - schemas.RefreshDataSourceRequest.description - schemas.UpdateDataSourceRequest.description
1 parent 1d34029 commit 056784e

File tree

2 files changed

+53
-9
lines changed

2 files changed

+53
-9
lines changed

discovery/sheets-v4.json

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@
870870
}
871871
}
872872
},
873-
"revision": "20240521",
873+
"revision": "20240730",
874874
"rootUrl": "https://sheets.googleapis.com/",
875875
"schemas": {
876876
"AddBandingRequest": {
@@ -934,7 +934,7 @@
934934
"type": "object"
935935
},
936936
"AddDataSourceRequest": {
937-
"description": "Adds a data source. After the data source is added successfully, an associated DATA_SOURCE sheet is created and an execution is triggered to refresh the sheet to read data from the data source. The request requires an additional `bigquery.readonly` OAuth scope.",
937+
"description": "Adds a data source. After the data source is added successfully, an associated DATA_SOURCE sheet is created and an execution is triggered to refresh the sheet to read data from the data source. The request requires an additional `bigquery.readonly` OAuth scope if you are adding a BigQuery data source.",
938938
"id": "AddDataSourceRequest",
939939
"properties": {
940940
"dataSource": {
@@ -2330,7 +2330,7 @@
23302330
"type": "object"
23312331
},
23322332
"CancelDataSourceRefreshRequest": {
2333-
"description": "Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references.",
2333+
"description": "Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope if you are cancelling a refresh on a BigQuery data source.",
23342334
"id": "CancelDataSourceRefreshRequest",
23352335
"properties": {
23362336
"dataSourceId": {
@@ -3699,6 +3699,10 @@
36993699
"$ref": "BigQueryDataSourceSpec",
37003700
"description": "A BigQueryDataSourceSpec."
37013701
},
3702+
"looker": {
3703+
"$ref": "LookerDataSourceSpec",
3704+
"description": "A LookerDatasourceSpec."
3705+
},
37023706
"parameters": {
37033707
"description": "The parameters of the data source, used when querying the data source.",
37043708
"items": {
@@ -5123,6 +5127,25 @@
51235127
},
51245128
"type": "object"
51255129
},
5130+
"LookerDataSourceSpec": {
5131+
"description": "The specification of a Looker data source.",
5132+
"id": "LookerDataSourceSpec",
5133+
"properties": {
5134+
"explore": {
5135+
"description": "Name of a Looker model explore.",
5136+
"type": "string"
5137+
},
5138+
"instanceUri": {
5139+
"description": "A Looker instance URL.",
5140+
"type": "string"
5141+
},
5142+
"model": {
5143+
"description": "Name of a Looker model.",
5144+
"type": "string"
5145+
}
5146+
},
5147+
"type": "object"
5148+
},
51265149
"ManualRule": {
51275150
"description": "Allows you to manually organize the values in a source data column into buckets with names of your choosing. For example, a pivot table that aggregates population by state: +-------+-------------------+ | State | SUM of Population | +-------+-------------------+ | AK | 0.7 | | AL | 4.8 | | AR | 2.9 | ... +-------+-------------------+ could be turned into a pivot table that aggregates population by time zone by providing a list of groups (for example, groupName = 'Central', items = ['AL', 'AR', 'IA', ...]) to a manual group rule. Note that a similar effect could be achieved by adding a time zone column to the source data and adjusting the pivot table. +-----------+-------------------+ | Time Zone | SUM of Population | +-----------+-------------------+ | Central | 106.3 | | Eastern | 151.9 | | Mountain | 17.4 | ... +-----------+-------------------+",
51285151
"id": "ManualRule",
@@ -5960,7 +5983,7 @@
59605983
"type": "object"
59615984
},
59625985
"RefreshDataSourceRequest": {
5963-
"description": "Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.",
5986+
"description": "Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope if you are refreshing a BigQuery data source. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.",
59645987
"id": "RefreshDataSourceRequest",
59655988
"properties": {
59665989
"dataSourceId": {
@@ -7468,7 +7491,7 @@
74687491
"type": "object"
74697492
},
74707493
"UpdateDataSourceRequest": {
7471-
"description": "Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated data source. The request requires an additional `bigquery.readonly` OAuth scope.",
7494+
"description": "Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated data source. The request requires an additional `bigquery.readonly` OAuth scope if you are updating a BigQuery data source.",
74727495
"id": "UpdateDataSourceRequest",
74737496
"properties": {
74747497
"dataSource": {

src/apis/sheets/v4.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export namespace sheets_v4 {
174174
rule?: Schema$ConditionalFormatRule;
175175
}
176176
/**
177-
* Adds a data source. After the data source is added successfully, an associated DATA_SOURCE sheet is created and an execution is triggered to refresh the sheet to read data from the data source. The request requires an additional `bigquery.readonly` OAuth scope.
177+
* Adds a data source. After the data source is added successfully, an associated DATA_SOURCE sheet is created and an execution is triggered to refresh the sheet to read data from the data source. The request requires an additional `bigquery.readonly` OAuth scope if you are adding a BigQuery data source.
178178
*/
179179
export interface Schema$AddDataSourceRequest {
180180
/**
@@ -1055,7 +1055,7 @@ export namespace sheets_v4 {
10551055
series?: Schema$ChartData;
10561056
}
10571057
/**
1058-
* Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references.
1058+
* Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope if you are cancelling a refresh on a BigQuery data source.
10591059
*/
10601060
export interface Schema$CancelDataSourceRefreshRequest {
10611061
/**
@@ -1908,6 +1908,10 @@ export namespace sheets_v4 {
19081908
* A BigQueryDataSourceSpec.
19091909
*/
19101910
bigQuery?: Schema$BigQueryDataSourceSpec;
1911+
/**
1912+
* A LookerDatasourceSpec.
1913+
*/
1914+
looker?: Schema$LookerDataSourceSpec;
19111915
/**
19121916
* The parameters of the data source, used when querying the data source.
19131917
*/
@@ -2879,6 +2883,23 @@ export namespace sheets_v4 {
28792883
*/
28802884
uri?: string | null;
28812885
}
2886+
/**
2887+
* The specification of a Looker data source.
2888+
*/
2889+
export interface Schema$LookerDataSourceSpec {
2890+
/**
2891+
* Name of a Looker model explore.
2892+
*/
2893+
explore?: string | null;
2894+
/**
2895+
* A Looker instance URL.
2896+
*/
2897+
instanceUri?: string | null;
2898+
/**
2899+
* Name of a Looker model.
2900+
*/
2901+
model?: string | null;
2902+
}
28822903
/**
28832904
* Allows you to manually organize the values in a source data column into buckets with names of your choosing. For example, a pivot table that aggregates population by state: +-------+-------------------+ | State | SUM of Population | +-------+-------------------+ | AK | 0.7 | | AL | 4.8 | | AR | 2.9 | ... +-------+-------------------+ could be turned into a pivot table that aggregates population by time zone by providing a list of groups (for example, groupName = 'Central', items = ['AL', 'AR', 'IA', ...]) to a manual group rule. Note that a similar effect could be achieved by adding a time zone column to the source data and adjusting the pivot table. +-----------+-------------------+ | Time Zone | SUM of Population | +-----------+-------------------+ | Central | 106.3 | | Eastern | 151.9 | | Mountain | 17.4 | ... +-----------+-------------------+
28842905
*/
@@ -3407,7 +3428,7 @@ export namespace sheets_v4 {
34073428
reference?: Schema$DataSourceObjectReference;
34083429
}
34093430
/**
3410-
* Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.
3431+
* Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope if you are refreshing a BigQuery data source. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.
34113432
*/
34123433
export interface Schema$RefreshDataSourceRequest {
34133434
/**
@@ -4590,7 +4611,7 @@ export namespace sheets_v4 {
45904611
oldRule?: Schema$ConditionalFormatRule;
45914612
}
45924613
/**
4593-
* Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated data source. The request requires an additional `bigquery.readonly` OAuth scope.
4614+
* Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated data source. The request requires an additional `bigquery.readonly` OAuth scope if you are updating a BigQuery data source.
45944615
*/
45954616
export interface Schema$UpdateDataSourceRequest {
45964617
/**

0 commit comments

Comments
 (0)