Skip to content

Commit

Permalink
feat(tasks): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent fce300b commit cfe8fb4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
13 changes: 7 additions & 6 deletions discovery/tasks-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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": {
Expand Down
37 changes: 20 additions & 17 deletions src/apis/tasks/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down Expand Up @@ -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;
/**
Expand Down

0 comments on commit cfe8fb4

Please sign in to comment.