From d9b89cf8450175798e7b1b7347268c8bb4b30983 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 5 Apr 2021 01:59:00 -0700 Subject: [PATCH] feat(sheets): update the API #### sheets:v4 The following keys were added: - schemas.Link.description - schemas.Link.id - schemas.Link.properties.uri.description - schemas.Link.properties.uri.type - schemas.Link.type - schemas.TextFormat.properties.link.$ref - schemas.TextFormat.properties.link.description The following keys were changed: - auth.oauth2.scopes.https://www.googleapis.com/auth/drive.file.description --- discovery/sheets-v4.json | 19 +++++++++++++++++-- src/apis/sheets/v4.ts | 13 +++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/discovery/sheets-v4.json b/discovery/sheets-v4.json index a662304f223..d905151aa74 100644 --- a/discovery/sheets-v4.json +++ b/discovery/sheets-v4.json @@ -6,7 +6,7 @@ "description": "See, edit, create, and delete all of your Google Drive files" }, "https://www.googleapis.com/auth/drive.file": { - "description": "View and manage Google Drive files and folders that you have opened or created with this app" + "description": "See, edit, create, and delete only the specific Google Drive files you use with this app" }, "https://www.googleapis.com/auth/drive.readonly": { "description": "See and download all your Google Drive files" @@ -870,7 +870,7 @@ } } }, - "revision": "20210316", + "revision": "20210322", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -5036,6 +5036,17 @@ }, "type": "object" }, + "Link": { + "description": "An external or local reference.", + "id": "Link", + "properties": { + "uri": { + "description": "The link identifier.", + "type": "string" + } + }, + "type": "object" + }, "ManualRule": { "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 | ... +-----------+-------------------+", "id": "ManualRule", @@ -6858,6 +6869,10 @@ "description": "True if the text is italicized.", "type": "boolean" }, + "link": { + "$ref": "Link", + "description": "The link destination of the text, if any. Setting a link in a format run will clear an existing cell-level link. When a link is set, the text foreground color will be set to the default link color and the text will be underlined. If these fields are modified in the same request, those values will be used instead of the link defaults." + }, "strikethrough": { "description": "True if the text has a strikethrough.", "type": "boolean" diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index 4b9c093e045..1c6f756ed0c 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -2832,6 +2832,15 @@ export namespace sheets_v4 { */ width?: number | null; } + /** + * An external or local reference. + */ + export interface Schema$Link { + /** + * The link identifier. + */ + uri?: string | null; + } /** * 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 | ... +-----------+-------------------+ */ @@ -4175,6 +4184,10 @@ export namespace sheets_v4 { * True if the text is italicized. */ italic?: boolean | null; + /** + * The link destination of the text, if any. Setting a link in a format run will clear an existing cell-level link. When a link is set, the text foreground color will be set to the default link color and the text will be underlined. If these fields are modified in the same request, those values will be used instead of the link defaults. + */ + link?: Schema$Link; /** * True if the text has a strikethrough. */