Skip to content

Commit ca0c5da

Browse files
1 parent 7b7bfbc commit ca0c5da

File tree

8 files changed

+479
-54
lines changed

8 files changed

+479
-54
lines changed

clients/google-api-services-tasks/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-tasks</artifactId>
25-
<version>v1-rev20240526-2.0.0</version>
25+
<version>v1-rev20240630-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-tasks:v1-rev20240526-2.0.0'
38+
implementation 'com.google.apis:google-api-services-tasks:v1-rev20240630-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-tasks/v1/2.0.0/com/google/api/services/tasks/Tasks.java

Lines changed: 104 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ public Tasklists tasklists() {
154154
public class Tasklists {
155155

156156
/**
157-
* Deletes the authenticated user's specified task list.
157+
* Deletes the authenticated user's specified task list. If the list contains assigned tasks, both
158+
* the assigned tasks and the original tasks in the assignment surface (Docs, Chat Spaces) are
159+
* deleted.
158160
*
159161
* Create a request for the method "tasklists.delete".
160162
*
@@ -175,7 +177,9 @@ public class Delete extends TasksRequest<Void> {
175177
private static final String REST_PATH = "tasks/v1/users/@me/lists/{tasklist}";
176178

177179
/**
178-
* Deletes the authenticated user's specified task list.
180+
* Deletes the authenticated user's specified task list. If the list contains assigned tasks, both
181+
* the assigned tasks and the original tasks in the assignment surface (Docs, Chat Spaces) are
182+
* deleted.
179183
*
180184
* Create a request for the method "tasklists.delete".
181185
*
@@ -1012,7 +1016,9 @@ public Clear set(String parameterName, Object value) {
10121016
}
10131017
}
10141018
/**
1015-
* Deletes the specified task from the task list.
1019+
* Deletes the specified task from the task list. If the task is assigned, both the assigned task
1020+
* and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only,
1021+
* navigate to the assignment surface and unassign the task from there.
10161022
*
10171023
* Create a request for the method "tasks.delete".
10181024
*
@@ -1034,7 +1040,9 @@ public class Delete extends TasksRequest<Void> {
10341040
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks/{task}";
10351041

10361042
/**
1037-
* Deletes the specified task from the task list.
1043+
* Deletes the specified task from the task list. If the task is assigned, both the assigned task
1044+
* and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only,
1045+
* navigate to the assignment surface and unassign the task from there.
10381046
*
10391047
* Create a request for the method "tasks.delete".
10401048
*
@@ -1290,8 +1298,10 @@ public Get set(String parameterName, Object value) {
12901298
}
12911299
}
12921300
/**
1293-
* Creates a new task on the specified task list. A user can have up to 20,000 non-hidden tasks per
1294-
* list and up to 100,000 tasks in total at a time.
1301+
* Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be
1302+
* inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat
1303+
* Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total
1304+
* at a time.
12951305
*
12961306
* Create a request for the method "tasks.insert".
12971307
*
@@ -1313,8 +1323,10 @@ public class Insert extends TasksRequest<com.google.api.services.tasks.model.Tas
13131323
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks";
13141324

13151325
/**
1316-
* Creates a new task on the specified task list. A user can have up to 20,000 non-hidden tasks
1317-
* per list and up to 100,000 tasks in total at a time.
1326+
* Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot
1327+
* be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat
1328+
* Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total
1329+
* at a time.
13181330
*
13191331
* Create a request for the method "tasks.insert".
13201332
*
@@ -1405,21 +1417,24 @@ public Insert setTasklist(java.lang.String tasklist) {
14051417

14061418
/**
14071419
* Parent task identifier. If the task is created at the top level, this parameter is omitted.
1408-
* Optional.
1420+
* An assigned task cannot be a parent task, nor can it have a parent. Setting the parent to
1421+
* an assigned task results in failure of the request. Optional.
14091422
*/
14101423
@com.google.api.client.util.Key
14111424
private java.lang.String parent;
14121425

1413-
/** Parent task identifier. If the task is created at the top level, this parameter is omitted.
1414-
Optional.
1426+
/** Parent task identifier. If the task is created at the top level, this parameter is omitted. An
1427+
assigned task cannot be a parent task, nor can it have a parent. Setting the parent to an assigned
1428+
task results in failure of the request. Optional.
14151429
*/
14161430
public java.lang.String getParent() {
14171431
return parent;
14181432
}
14191433

14201434
/**
14211435
* Parent task identifier. If the task is created at the top level, this parameter is omitted.
1422-
* Optional.
1436+
* An assigned task cannot be a parent task, nor can it have a parent. Setting the parent to
1437+
* an assigned task results in failure of the request. Optional.
14231438
*/
14241439
public Insert setParent(java.lang.String parent) {
14251440
this.parent = parent;
@@ -1455,8 +1470,9 @@ public Insert set(String parameterName, Object value) {
14551470
}
14561471
}
14571472
/**
1458-
* Returns all tasks in the specified task list. A user can have up to 20,000 non-hidden tasks per
1459-
* list and up to 100,000 tasks in total at a time.
1473+
* Returns all tasks in the specified task list. Does not return assigned tasks be default (from
1474+
* Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000
1475+
* tasks in total at a time.
14601476
*
14611477
* Create a request for the method "tasks.list".
14621478
*
@@ -1477,8 +1493,9 @@ public class List extends TasksRequest<com.google.api.services.tasks.model.Tasks
14771493
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks";
14781494

14791495
/**
1480-
* Returns all tasks in the specified task list. A user can have up to 20,000 non-hidden tasks per
1481-
* list and up to 100,000 tasks in total at a time.
1496+
* Returns all tasks in the specified task list. Does not return assigned tasks be default (from
1497+
* Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000
1498+
* tasks in total at a time.
14821499
*
14831500
* Create a request for the method "tasks.list".
14841501
*
@@ -1707,25 +1724,48 @@ public List setPageToken(java.lang.String pageToken) {
17071724
}
17081725

17091726
/**
1710-
* Flag indicating whether completed tasks are returned in the result. Optional. The default
1711-
* is True. Note that showHidden must also be True to show tasks completed in first party
1712-
* clients, such as the web UI and Google's mobile apps.
1727+
* Optional. Flag indicating whether tasks assigned to the current user are returned in the
1728+
* result. Optional. The default is False.
1729+
*/
1730+
@com.google.api.client.util.Key
1731+
private java.lang.Boolean showAssigned;
1732+
1733+
/** Optional. Flag indicating whether tasks assigned to the current user are returned in the result.
1734+
Optional. The default is False.
1735+
*/
1736+
public java.lang.Boolean getShowAssigned() {
1737+
return showAssigned;
1738+
}
1739+
1740+
/**
1741+
* Optional. Flag indicating whether tasks assigned to the current user are returned in the
1742+
* result. Optional. The default is False.
1743+
*/
1744+
public List setShowAssigned(java.lang.Boolean showAssigned) {
1745+
this.showAssigned = showAssigned;
1746+
return this;
1747+
}
1748+
1749+
/**
1750+
* Flag indicating whether completed tasks are returned in the result. Note that showHidden
1751+
* must also be True to show tasks completed in first party clients, such as the web UI and
1752+
* Google's mobile apps. Optional. The default is True.
17131753
*/
17141754
@com.google.api.client.util.Key
17151755
private java.lang.Boolean showCompleted;
17161756

1717-
/** Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
1718-
Note that showHidden must also be True to show tasks completed in first party clients, such as the
1719-
web UI and Google's mobile apps.
1757+
/** Flag indicating whether completed tasks are returned in the result. Note that showHidden must also
1758+
be True to show tasks completed in first party clients, such as the web UI and Google's mobile
1759+
apps. Optional. The default is True.
17201760
*/
17211761
public java.lang.Boolean getShowCompleted() {
17221762
return showCompleted;
17231763
}
17241764

17251765
/**
1726-
* Flag indicating whether completed tasks are returned in the result. Optional. The default
1727-
* is True. Note that showHidden must also be True to show tasks completed in first party
1728-
* clients, such as the web UI and Google's mobile apps.
1766+
* Flag indicating whether completed tasks are returned in the result. Note that showHidden
1767+
* must also be True to show tasks completed in first party clients, such as the web UI and
1768+
* Google's mobile apps. Optional. The default is True.
17291769
*/
17301770
public List setShowCompleted(java.lang.Boolean showCompleted) {
17311771
this.showCompleted = showCompleted;
@@ -1805,8 +1845,9 @@ public List set(String parameterName, Object value) {
18051845
}
18061846
}
18071847
/**
1808-
* Moves the specified task to another position in the task list. This can include putting it as a
1809-
* child task under a new parent and/or move it to a different position among its sibling tasks. A
1848+
* Moves the specified task to another position in the destination task list. If the destination
1849+
* list is not specified, the task is moved within its current list. This can include putting it as
1850+
* a child task under a new parent and/or move it to a different position among its sibling tasks. A
18101851
* user can have up to 2,000 subtasks per task.
18111852
*
18121853
* Create a request for the method "tasks.move".
@@ -1829,9 +1870,10 @@ public class Move extends TasksRequest<com.google.api.services.tasks.model.Task>
18291870
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks/{task}/move";
18301871

18311872
/**
1832-
* Moves the specified task to another position in the task list. This can include putting it as a
1833-
* child task under a new parent and/or move it to a different position among its sibling tasks. A
1834-
* user can have up to 2,000 subtasks per task.
1873+
* Moves the specified task to another position in the destination task list. If the destination
1874+
* list is not specified, the task is moved within its current list. This can include putting it
1875+
* as a child task under a new parent and/or move it to a different position among its sibling
1876+
* tasks. A user can have up to 2,000 subtasks per task.
18351877
*
18361878
* Create a request for the method "tasks.move".
18371879
*
@@ -1937,23 +1979,52 @@ public Move setTask(java.lang.String task) {
19371979
return this;
19381980
}
19391981

1982+
/**
1983+
* Optional. Destination task list identifier. If set, the task is moved from tasklist to the
1984+
* destinationTasklist list. Otherwise the task is moved within its current list. Recurrent
1985+
* tasks cannot currently be moved between lists. Optional.
1986+
*/
1987+
@com.google.api.client.util.Key
1988+
private java.lang.String destinationTasklist;
1989+
1990+
/** Optional. Destination task list identifier. If set, the task is moved from tasklist to the
1991+
destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks
1992+
cannot currently be moved between lists. Optional.
1993+
*/
1994+
public java.lang.String getDestinationTasklist() {
1995+
return destinationTasklist;
1996+
}
1997+
1998+
/**
1999+
* Optional. Destination task list identifier. If set, the task is moved from tasklist to the
2000+
* destinationTasklist list. Otherwise the task is moved within its current list. Recurrent
2001+
* tasks cannot currently be moved between lists. Optional.
2002+
*/
2003+
public Move setDestinationTasklist(java.lang.String destinationTasklist) {
2004+
this.destinationTasklist = destinationTasklist;
2005+
return this;
2006+
}
2007+
19402008
/**
19412009
* New parent task identifier. If the task is moved to the top level, this parameter is
1942-
* omitted. Optional.
2010+
* omitted. Assigned tasks can not be set as parent task (have subtasks) or be moved under a
2011+
* parent task (become subtasks). Optional.
19432012
*/
19442013
@com.google.api.client.util.Key
19452014
private java.lang.String parent;
19462015

19472016
/** New parent task identifier. If the task is moved to the top level, this parameter is omitted.
1948-
Optional.
2017+
Assigned tasks can not be set as parent task (have subtasks) or be moved under a parent task
2018+
(become subtasks). Optional.
19492019
*/
19502020
public java.lang.String getParent() {
19512021
return parent;
19522022
}
19532023

19542024
/**
19552025
* New parent task identifier. If the task is moved to the top level, this parameter is
1956-
* omitted. Optional.
2026+
* omitted. Assigned tasks can not be set as parent task (have subtasks) or be moved under a
2027+
* parent task (become subtasks). Optional.
19572028
*/
19582029
public Move setParent(java.lang.String parent) {
19592030
this.parent = parent;

0 commit comments

Comments
 (0)