From 19250d9546891dff355182b713efa33e57721735 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Sun, 24 May 2020 09:24:26 -0700 Subject: [PATCH] chore(java): allow overriding minimum supported Java version in templates (#577) Source-Author: Jeff Ching Source-Date: Thu May 21 17:51:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 65f8c647c0bc0c6b38211b969a2a003e271a5ef1 Source-Link: https://github.com/googleapis/synthtool/commit/65f8c647c0bc0c6b38211b969a2a003e271a5ef1 --- discovery/container-v1beta1.json | 21 +++- discovery/tasks-v1.json | 179 ++++++++++++------------------- src/apis/container/v1beta1.ts | 17 +++ src/apis/tasks/v1.ts | 85 +++++---------- synth.metadata | 2 +- 5 files changed, 133 insertions(+), 171 deletions(-) diff --git a/discovery/container-v1beta1.json b/discovery/container-v1beta1.json index 31b26fc0794..a9b6b921eb4 100644 --- a/discovery/container-v1beta1.json +++ b/discovery/container-v1beta1.json @@ -2484,7 +2484,7 @@ } } }, - "revision": "20200501", + "revision": "20200505", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3064,6 +3064,10 @@ "$ref": "DatabaseEncryption", "description": "Configuration of etcd encryption." }, + "desiredDefaultSnatStatus": { + "$ref": "DefaultSnatStatus", + "description": "The desired status of whether to disable default sNAT for this cluster." + }, "desiredImageType": { "description": "The desired image type for the node pool.\nNOTE: Set the \"desired_node_pool\" field as well.", "type": "string" @@ -3277,6 +3281,17 @@ }, "type": "object" }, + "DefaultSnatStatus": { + "description": "DefaultSnatStatus contains the desired state of whether default sNAT should\nbe disabled on the cluster.", + "id": "DefaultSnatStatus", + "properties": { + "disabled": { + "description": "Disables cluster default sNAT rules.", + "type": "boolean" + } + }, + "type": "object" + }, "DnsCacheConfig": { "description": "Configuration for NodeLocal DNSCache", "id": "DnsCacheConfig", @@ -3839,6 +3854,10 @@ "description": "NetworkConfig reports the relative names of network & subnetwork.", "id": "NetworkConfig", "properties": { + "defaultSnatStatus": { + "$ref": "DefaultSnatStatus", + "description": "Whether the cluster disables default in-node sNAT rules. In-node sNAT rules\nwill be disabled when default_snat_status is disabled. When disabled is set\nto false, default IP masquerade rules will be applied to the nodes to\nprevent sNAT on cluster internal traffic." + }, "enableIntraNodeVisibility": { "description": "Whether Intra-node visibility is enabled for this cluster.\nThis makes same node pod to pod traffic visible for VPC network.", "type": "boolean" diff --git a/discovery/tasks-v1.json b/discovery/tasks-v1.json index 97be7c5f6e3..142b0575895 100644 --- a/discovery/tasks-v1.json +++ b/discovery/tasks-v1.json @@ -11,64 +11,35 @@ } } }, - "basePath": "", - "baseUrl": "https://www.googleapis.com/", + "basePath": "/tasks/v1/", + "baseUrl": "https://www.googleapis.com/tasks/v1/", "batchPath": "batch/tasks/v1", - "canonicalName": "Tasks", - "description": "The Google Tasks API lets you manage your tasks and task lists.", + "description": "Manages your tasks and task lists.", "discoveryVersion": "v1", - "documentationLink": "", - "fullyEncodeReservedExpansion": true, + "documentationLink": "https://developers.google.com/google-apps/tasks/firstapp", + "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/fNryYM4MPhrN-NYY08Uoq8Hns0w\"", "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" + "x16": "https://www.google.com/images/icons/product/tasks-16.png", + "x32": "https://www.google.com/images/icons/product/tasks-32.png" }, "id": "tasks:v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", "name": "tasks", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { - "$.xgafv": { - "description": "V1 error format.", - "enum": [ - "1", - "2" - ], - "enumDescriptions": [ - "v1 error format", - "v2 error format" - ], - "location": "query", - "type": "string" - }, - "access_token": { - "description": "OAuth access token.", - "location": "query", - "type": "string" - }, "alt": { "default": "json", - "description": "Data format for response.", + "description": "Data format for the response.", "enum": [ - "json", - "media", - "proto" + "json" ], "enumDescriptions": [ - "Responses with Content-Type of application/json", - "Media download with context-dependent Content-Type", - "Responses with Content-Type of application/x-protobuf" + "Responses with Content-Type of application/json" ], "location": "query", "type": "string" }, - "callback": { - "description": "JSONP", - "location": "query", - "type": "string" - }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -91,17 +62,12 @@ "type": "boolean" }, "quotaUser": { - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", "location": "query", "type": "string" }, - "uploadType": { - "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", - "location": "query", - "type": "string" - }, - "upload_protocol": { - "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "userIp": { + "description": "Deprecated. Please use quotaUser instead.", "location": "query", "type": "string" } @@ -112,7 +78,6 @@ "methods": { "delete": { "description": "Deletes the authenticated user's specified task list.", - "flatPath": "tasks/v1/users/@me/lists/{tasklist}", "httpMethod": "DELETE", "id": "tasks.tasklists.delete", "parameterOrder": [ @@ -126,14 +91,13 @@ "type": "string" } }, - "path": "tasks/v1/users/@me/lists/{tasklist}", + "path": "users/@me/lists/{tasklist}", "scopes": [ "https://www.googleapis.com/auth/tasks" ] }, "get": { "description": "Returns the authenticated user's specified task list.", - "flatPath": "tasks/v1/users/@me/lists/{tasklist}", "httpMethod": "GET", "id": "tasks.tasklists.get", "parameterOrder": [ @@ -147,7 +111,7 @@ "type": "string" } }, - "path": "tasks/v1/users/@me/lists/{tasklist}", + "path": "users/@me/lists/{tasklist}", "response": { "$ref": "TaskList" }, @@ -157,13 +121,10 @@ ] }, "insert": { - "description": "Creates a new task list and adds it to the authenticated user's task lists.", - "flatPath": "tasks/v1/users/@me/lists", + "description": "Creates a new task list and adds it to the authenticated user's task lists. Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000 lists.", "httpMethod": "POST", "id": "tasks.tasklists.insert", - "parameterOrder": [], - "parameters": {}, - "path": "tasks/v1/users/@me/lists", + "path": "users/@me/lists", "request": { "$ref": "TaskList" }, @@ -176,16 +137,14 @@ }, "list": { "description": "Returns all the authenticated user's task lists.", - "flatPath": "tasks/v1/users/@me/lists", "httpMethod": "GET", "id": "tasks.tasklists.list", - "parameterOrder": [], "parameters": { "maxResults": { - "description": "Maximum number of task lists returned on one page. Optional. The default is\n20 (max allowed: 100).", - "format": "int32", + "description": "Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).", + "format": "int64", "location": "query", - "type": "integer" + "type": "string" }, "pageToken": { "description": "Token specifying the result page to return. Optional.", @@ -193,7 +152,7 @@ "type": "string" } }, - "path": "tasks/v1/users/@me/lists", + "path": "users/@me/lists", "response": { "$ref": "TaskLists" }, @@ -203,8 +162,7 @@ ] }, "patch": { - "description": "Updates the authenticated user's specified task list. This method supports\npatch semantics.", - "flatPath": "tasks/v1/users/@me/lists/{tasklist}", + "description": "Updates the authenticated user's specified task list. This method supports patch semantics.", "httpMethod": "PATCH", "id": "tasks.tasklists.patch", "parameterOrder": [ @@ -218,7 +176,7 @@ "type": "string" } }, - "path": "tasks/v1/users/@me/lists/{tasklist}", + "path": "users/@me/lists/{tasklist}", "request": { "$ref": "TaskList" }, @@ -231,7 +189,6 @@ }, "update": { "description": "Updates the authenticated user's specified task list.", - "flatPath": "tasks/v1/users/@me/lists/{tasklist}", "httpMethod": "PUT", "id": "tasks.tasklists.update", "parameterOrder": [ @@ -245,7 +202,7 @@ "type": "string" } }, - "path": "tasks/v1/users/@me/lists/{tasklist}", + "path": "users/@me/lists/{tasklist}", "request": { "$ref": "TaskList" }, @@ -261,8 +218,7 @@ "tasks": { "methods": { "clear": { - "description": "Clears all completed tasks from the specified task list. The affected tasks\nwill be marked as 'hidden' and no longer be returned by default when\nretrieving all tasks for a task list.", - "flatPath": "tasks/v1/lists/{tasklist}/clear", + "description": "Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.", "httpMethod": "POST", "id": "tasks.tasks.clear", "parameterOrder": [ @@ -276,14 +232,13 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/clear", + "path": "lists/{tasklist}/clear", "scopes": [ "https://www.googleapis.com/auth/tasks" ] }, "delete": { "description": "Deletes the specified task from the task list.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}", "httpMethod": "DELETE", "id": "tasks.tasks.delete", "parameterOrder": [ @@ -304,14 +259,13 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks/{task}", + "path": "lists/{tasklist}/tasks/{task}", "scopes": [ "https://www.googleapis.com/auth/tasks" ] }, "get": { "description": "Returns the specified task.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}", "httpMethod": "GET", "id": "tasks.tasks.get", "parameterOrder": [ @@ -332,7 +286,7 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks/{task}", + "path": "lists/{tasklist}/tasks/{task}", "response": { "$ref": "Task" }, @@ -342,8 +296,7 @@ ] }, "insert": { - "description": "Creates a new task on the specified task list.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks", + "description": "Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account.", "httpMethod": "POST", "id": "tasks.tasks.insert", "parameterOrder": [ @@ -351,12 +304,12 @@ ], "parameters": { "parent": { - "description": "Parent task identifier. If the task is created at the top level, this\nparameter is omitted. Optional.", + "description": "Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.", "location": "query", "type": "string" }, "previous": { - "description": "Previous sibling task identifier. If the task is created at the first\nposition among its siblings, this parameter is omitted. Optional.", + "description": "Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.", "location": "query", "type": "string" }, @@ -367,7 +320,7 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks", + "path": "lists/{tasklist}/tasks", "request": { "$ref": "Task" }, @@ -380,7 +333,6 @@ }, "list": { "description": "Returns all tasks in the specified task list.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks", "httpMethod": "GET", "id": "tasks.tasks.list", "parameterOrder": [ @@ -388,30 +340,30 @@ ], "parameters": { "completedMax": { - "description": "Upper bound for a task's completion date (as a RFC 3339 timestamp) to\nfilter by. Optional. The default is not to filter by completion date.", + "description": "Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.", "location": "query", "type": "string" }, "completedMin": { - "description": "Lower bound for a task's completion date (as a RFC 3339 timestamp) to\nfilter by. Optional. The default is not to filter by completion date.", + "description": "Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.", "location": "query", "type": "string" }, "dueMax": { - "description": "Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by.\nOptional. The default is not to filter by due date.", + "description": "Upper 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.", "location": "query", "type": "string" }, "dueMin": { - "description": "Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by.\nOptional. The default is not to filter by due date.", + "description": "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.", "location": "query", "type": "string" }, "maxResults": { - "description": "Maximum number of task lists returned on one page. Optional. The default is\n20 (max allowed: 100).", - "format": "int32", + "description": "Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100).", + "format": "int64", "location": "query", - "type": "integer" + "type": "string" }, "pageToken": { "description": "Token specifying the result page to return. Optional.", @@ -419,17 +371,17 @@ "type": "string" }, "showCompleted": { - "description": "Flag indicating whether completed tasks are returned in the result.\nOptional. The default is True.", + "description": "Flag indicating whether completed tasks are returned in the result. Optional. The default is True.", "location": "query", "type": "boolean" }, "showDeleted": { - "description": "Flag indicating whether deleted tasks are returned in the result. Optional.\nThe default is False.", + "description": "Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.", "location": "query", "type": "boolean" }, "showHidden": { - "description": "Flag indicating whether hidden tasks are returned in the result. Optional.\nThe default is False.", + "description": "Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.", "location": "query", "type": "boolean" }, @@ -440,12 +392,12 @@ "type": "string" }, "updatedMin": { - "description": "Lower bound for a task's last modification time (as a RFC 3339 timestamp)\nto filter by. Optional. The default is not to filter by last modification\ntime.", + "description": "Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.", "location": "query", "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks", + "path": "lists/{tasklist}/tasks", "response": { "$ref": "Tasks" }, @@ -455,8 +407,7 @@ ] }, "move": { - "description": "Moves the specified task to another position in the task list. This can\ninclude putting it as a child task under a new parent and/or move it to a\ndifferent position among its sibling tasks.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}/move", + "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.", "httpMethod": "POST", "id": "tasks.tasks.move", "parameterOrder": [ @@ -465,12 +416,12 @@ ], "parameters": { "parent": { - "description": "New parent task identifier. If the task is moved to the top level, this\nparameter is omitted. Optional.", + "description": "New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.", "location": "query", "type": "string" }, "previous": { - "description": "New previous sibling task identifier. If the task is moved to the first\nposition among its siblings, this parameter is omitted. Optional.", + "description": "New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.", "location": "query", "type": "string" }, @@ -487,7 +438,7 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks/{task}/move", + "path": "lists/{tasklist}/tasks/{task}/move", "response": { "$ref": "Task" }, @@ -497,7 +448,6 @@ }, "patch": { "description": "Updates the specified task. This method supports patch semantics.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}", "httpMethod": "PATCH", "id": "tasks.tasks.patch", "parameterOrder": [ @@ -518,7 +468,7 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks/{task}", + "path": "lists/{tasklist}/tasks/{task}", "request": { "$ref": "Task" }, @@ -531,7 +481,6 @@ }, "update": { "description": "Updates the specified task.", - "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}", "httpMethod": "PUT", "id": "tasks.tasks.update", "parameterOrder": [ @@ -552,7 +501,7 @@ "type": "string" } }, - "path": "tasks/v1/lists/{tasklist}/tasks/{task}", + "path": "lists/{tasklist}/tasks/{task}", "request": { "$ref": "Task" }, @@ -566,22 +515,24 @@ } } }, - "revision": "20200516", + "revision": "20200330", "rootUrl": "https://www.googleapis.com/", "schemas": { "Task": { "id": "Task", "properties": { "completed": { - "description": "Completion date of the task (as a RFC 3339 timestamp). This field is\nomitted if the task has not been completed.", + "description": "Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.", + "format": "date-time", "type": "string" }, "deleted": { - "description": "Flag indicating whether the task has been deleted. The default is False.", + "description": "Flag indicating whether the task has been deleted. The default if False.", "type": "boolean" }, "due": { - "description": "Due date of the task (as a RFC 3339 timestamp). Optional. The due date only\nrecords date information; the time portion of the timestamp is discarded\nwhen setting the due date. It isn't possible to read or write the time that\na task is due via the API.", + "description": "Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API.", + "format": "date-time", "type": "string" }, "etag": { @@ -589,7 +540,7 @@ "type": "string" }, "hidden": { - "description": "Flag indicating whether the task is hidden. This is the case if the task\nhad been marked completed when the task list was last cleared. The default\nis False. This field is read-only.", + "description": "Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.", "type": "boolean" }, "id": { @@ -597,6 +548,7 @@ "type": "string" }, "kind": { + "default": "tasks#task", "description": "Type of the resource. This is always \"tasks#task\".", "type": "string" }, @@ -605,7 +557,7 @@ "items": { "properties": { "description": { - "description": "The description. In HTML speak: Everything between <a> and\n</a>.", + "description": "The description. In HTML speak: Everything between and .", "type": "string" }, "link": { @@ -626,11 +578,11 @@ "type": "string" }, "parent": { - "description": "Parent task identifier. This field is omitted if it is a top-level task.\nThis field is read-only. Use the \"move\" method to move the task under a\ndifferent parent or to the top level.", + "description": "Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the \"move\" method to move the task under a different parent or to the top level.", "type": "string" }, "position": { - "description": "String indicating the position of the task among its sibling tasks under\nthe same parent task or at the top level. If this string is greater than\nanother task's corresponding position string according to lexicographical\nordering, the task is positioned after the other task under the same parent\ntask (or at the top level). This field is read-only. Use the \"move\" method\nto move the task to another position.", + "description": "String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the \"move\" method to move the task to another position.", "type": "string" }, "selfLink": { @@ -647,6 +599,7 @@ }, "updated": { "description": "Last modification time of the task (as a RFC 3339 timestamp).", + "format": "date-time", "type": "string" } }, @@ -664,11 +617,12 @@ "type": "string" }, "kind": { + "default": "tasks#taskList", "description": "Type of the resource. This is always \"tasks#taskList\".", "type": "string" }, "selfLink": { - "description": "URL pointing to this task list. Used to retrieve, update, or delete this\ntask list.", + "description": "URL pointing to this task list. Used to retrieve, update, or delete this task list.", "type": "string" }, "title": { @@ -677,6 +631,7 @@ }, "updated": { "description": "Last modification time of the task list (as a RFC 3339 timestamp).", + "format": "date-time", "type": "string" } }, @@ -697,6 +652,7 @@ "type": "array" }, "kind": { + "default": "tasks#taskLists", "description": "Type of the resource. This is always \"tasks#taskLists\".", "type": "string" }, @@ -722,6 +678,7 @@ "type": "array" }, "kind": { + "default": "tasks#tasks", "description": "Type of the resource. This is always \"tasks#tasks\".", "type": "string" }, @@ -733,7 +690,7 @@ "type": "object" } }, - "servicePath": "", + "servicePath": "tasks/v1/", "title": "Tasks API", "version": "v1" } \ No newline at end of file diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index ac6b8175683..f3baf767c0b 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -592,6 +592,10 @@ export namespace container_v1beta1 { * Configuration of etcd encryption. */ desiredDatabaseEncryption?: Schema$DatabaseEncryption; + /** + * The desired status of whether to disable default sNAT for this cluster. + */ + desiredDefaultSnatStatus?: Schema$DefaultSnatStatus; /** * The desired image type for the node pool. NOTE: Set the "desired_node_pool" field as well. */ @@ -776,6 +780,15 @@ export namespace container_v1beta1 { */ state?: string | null; } + /** + * DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster. + */ + export interface Schema$DefaultSnatStatus { + /** + * Disables cluster default sNAT rules. + */ + disabled?: boolean | null; + } /** * Configuration for NodeLocal DNSCache */ @@ -1215,6 +1228,10 @@ export namespace container_v1beta1 { * NetworkConfig reports the relative names of network & subnetwork. */ export interface Schema$NetworkConfig { + /** + * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic. + */ + defaultSnatStatus?: Schema$DefaultSnatStatus; /** * Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network. */ diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index 974c6db1633..542f80ec24d 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -39,21 +39,9 @@ export namespace tasks_v1 { interface StandardParameters { /** - * V1 error format. - */ - '$.xgafv'?: string; - /** - * OAuth access token. - */ - access_token?: string; - /** - * Data format for response. + * Data format for the response. */ alt?: string; - /** - * JSONP - */ - callback?: string; /** * Selector specifying which fields to include in a partial response. */ @@ -71,23 +59,19 @@ export namespace tasks_v1 { */ prettyPrint?: boolean; /** - * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */ quotaUser?: string; /** - * Legacy upload protocol for media (e.g. "media", "multipart"). - */ - uploadType?: string; - /** - * Upload protocol for media (e.g. "raw", "multipart"). + * Deprecated. Please use quotaUser instead. */ - upload_protocol?: string; + userIp?: string; } /** * Tasks API * - * The Google Tasks API lets you manage your tasks and task lists. + * Manages your tasks and task lists. * * @example * const {google} = require('googleapis'); @@ -121,7 +105,7 @@ export namespace tasks_v1 { */ completed?: string | null; /** - * Flag indicating whether the task has been deleted. The default is False. + * Flag indicating whether the task has been deleted. The default if False. */ deleted?: boolean | null; /** @@ -473,7 +457,7 @@ export namespace tasks_v1 { /** * tasks.tasklists.insert - * @desc Creates a new task list and adds it to the authenticated user's task lists. + * @desc Creates a new task list and adds it to the authenticated user's task lists. Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000 lists. * @example * // Before running the sample: * // - Enable the API at: @@ -627,8 +611,7 @@ export namespace tasks_v1 { * * // Do the magic * const res = await tasks.tasklists.list({ - * // Maximum number of task lists returned on one page. Optional. The default is - * // 20 (max allowed: 100). + * // Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). * maxResults: 'placeholder-value', * // Token specifying the result page to return. Optional. * pageToken: 'placeholder-value', @@ -652,8 +635,8 @@ export namespace tasks_v1 { * @alias tasks.tasklists.list * @memberOf! () * - * @param {object} params Parameters for request - * @param {integer=} params.maxResults Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). + * @param {object=} params Parameters for request + * @param {string=} 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 {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -1023,7 +1006,7 @@ export namespace tasks_v1 { /** * Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */ - maxResults?: number; + maxResults?: string; /** * Token specifying the result page to return. Optional. */ @@ -1416,7 +1399,7 @@ export namespace tasks_v1 { /** * tasks.tasks.insert - * @desc Creates a new task on the specified task list. + * @desc Creates a new task on the specified task list. Fails with HTTP code 403 or 429 after reaching the storage limit of 100,000 tasks per account. * @example * // Before running the sample: * // - Enable the API at: @@ -1441,11 +1424,9 @@ export namespace tasks_v1 { * * // Do the magic * const res = await tasks.tasks.insert({ - * // Parent task identifier. If the task is created at the top level, this - * // parameter is omitted. Optional. + * // Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. * parent: 'placeholder-value', - * // Previous sibling task identifier. If the task is created at the first - * // position among its siblings, this parameter is omitted. Optional. + * // Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. * previous: 'placeholder-value', * // Task list identifier. * tasklist: 'placeholder-value', @@ -1600,37 +1581,27 @@ export namespace tasks_v1 { * * // Do the magic * const res = await tasks.tasks.list({ - * // Upper bound for a task's completion date (as a RFC 3339 timestamp) to - * // filter by. Optional. The default is not to filter by completion date. + * // Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. * completedMax: 'placeholder-value', - * // Lower bound for a task's completion date (as a RFC 3339 timestamp) to - * // filter by. Optional. The default is not to filter by completion date. + * // Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. * completedMin: 'placeholder-value', - * // Upper 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. + * // Upper 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. * dueMax: 'placeholder-value', - * // 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. + * // 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. * dueMin: 'placeholder-value', - * // Maximum number of task lists returned on one page. Optional. The default is - * // 20 (max allowed: 100). + * // Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). * 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. * showCompleted: 'placeholder-value', - * // Flag indicating whether deleted tasks are returned in the result. Optional. - * // The default is False. + * // Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. * showDeleted: 'placeholder-value', - * // Flag indicating whether hidden tasks are returned in the result. Optional. - * // The default is False. + * // Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. * showHidden: 'placeholder-value', * // Task list identifier. * tasklist: 'placeholder-value', - * // Lower bound for a task's last modification time (as a RFC 3339 timestamp) - * // to filter by. Optional. The default is not to filter by last modification - * // time. + * // Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time. * updatedMin: 'placeholder-value', * }); * console.log(res.data); @@ -1657,7 +1628,7 @@ export namespace tasks_v1 { * @param {string=} params.completedMin Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. * @param {string=} params.dueMax Upper 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 {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.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.showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. @@ -1754,11 +1725,9 @@ export namespace tasks_v1 { * * // Do the magic * const res = await tasks.tasks.move({ - * // New parent task identifier. If the task is moved to the top level, this - * // parameter is omitted. Optional. + * // New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional. * parent: 'placeholder-value', - * // New previous sibling task identifier. If the task is moved to the first - * // position among its siblings, this parameter is omitted. Optional. + * // New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional. * previous: 'placeholder-value', * // Task identifier. * task: 'placeholder-value', @@ -2255,7 +2224,7 @@ export namespace tasks_v1 { /** * Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */ - maxResults?: number; + maxResults?: string; /** * Token specifying the result page to return. Optional. */ diff --git a/synth.metadata b/synth.metadata index f342473f5be..b9a1d11bb1f 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,7 +11,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7ee92820e64c0aea379781b82399d6b3f3c8655f" + "sha": "65f8c647c0bc0c6b38211b969a2a003e271a5ef1" } } ]