From cfe8fb42474a45e838e9118a732cf68dfa96eae0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 5 Oct 2020 13:15:11 -0700 Subject: [PATCH] feat(tasks): update the API #### tasks:v1 The following keys were added: - schemas.Task.description The following keys were changed: - baseUrl - batchPath - mtlsRootUrl - resources.tasks.methods.list.parameters.showCompleted.description - rootUrl --- discovery/tasks-v1.json | 13 +++++++------ src/apis/tasks/v1.ts | 37 ++++++++++++++++++++----------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/discovery/tasks-v1.json b/discovery/tasks-v1.json index 6022748c60..fdc0f91c5a 100644 --- a/discovery/tasks-v1.json +++ b/discovery/tasks-v1.json @@ -12,8 +12,8 @@ } }, "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/tasks/v1", + "baseUrl": "https://tasks.googleapis.com/", + "batchPath": "batch", "canonicalName": "Tasks", "description": "The Google Tasks API lets you manage your tasks and task lists.", "discoveryVersion": "v1", @@ -25,7 +25,7 @@ }, "id": "tasks:v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://tasks.mtls.googleapis.com/", "name": "tasks", "ownerDomain": "google.com", "ownerName": "Google", @@ -419,7 +419,7 @@ "type": "string" }, "showCompleted": { - "description": "Flag indicating whether completed tasks are returned in the result. Optional. The default is True.", + "description": "Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps.", "location": "query", "type": "boolean" }, @@ -566,10 +566,11 @@ } } }, - "revision": "20200811", - "rootUrl": "https://www.googleapis.com/", + "revision": "20201003", + "rootUrl": "https://tasks.googleapis.com/", "schemas": { "Task": { + "description": "LINT.IfChange", "id": "Task", "properties": { "completed": { diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index c7f10013f6..efba1c12e0 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -129,6 +129,9 @@ export namespace tasks_v1 { } } + /** + * LINT.IfChange + */ export interface Schema$Task { /** * Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed. @@ -356,7 +359,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -494,7 +497,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -639,7 +642,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -778,7 +781,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -927,7 +930,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1076,7 +1079,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1257,7 +1260,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1383,7 +1386,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1533,7 +1536,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1706,7 +1709,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1775,7 +1778,7 @@ export namespace tasks_v1 { * maxResults: 'placeholder-value', * // Token specifying the result page to return. Optional. * pageToken: 'placeholder-value', - * // Flag indicating whether completed tasks are returned in the result. Optional. The default is True. + * // Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. * showCompleted: 'placeholder-value', * // Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. * showDeleted: 'placeholder-value', @@ -1812,7 +1815,7 @@ export namespace tasks_v1 { * @param {string=} params.dueMin Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. * @param {integer=} params.maxResults Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). * @param {string=} params.pageToken Token specifying the result page to return. Optional. - * @param {boolean=} params.showCompleted Flag indicating whether completed tasks are returned in the result. Optional. The default is True. + * @param {boolean=} params.showCompleted Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. * @param {boolean=} params.showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. * @param {boolean=} params.showHidden Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. * @param {string} params.tasklist Task list identifier. @@ -1872,7 +1875,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2025,7 +2028,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2194,7 +2197,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2364,7 +2367,7 @@ export namespace tasks_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://tasks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2463,7 +2466,7 @@ export namespace tasks_v1 { */ pageToken?: string; /** - * Flag indicating whether completed tasks are returned in the result. Optional. The default is True. + * Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. */ showCompleted?: boolean; /**