@@ -154,7 +154,9 @@ public Tasklists tasklists() {
154
154
public class Tasklists {
155
155
156
156
/**
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.
158
160
*
159
161
* Create a request for the method "tasklists.delete".
160
162
*
@@ -175,7 +177,9 @@ public class Delete extends TasksRequest<Void> {
175
177
private static final String REST_PATH = "tasks/v1/users/@me/lists/{tasklist}" ;
176
178
177
179
/**
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.
179
183
*
180
184
* Create a request for the method "tasklists.delete".
181
185
*
@@ -1012,7 +1016,9 @@ public Clear set(String parameterName, Object value) {
1012
1016
}
1013
1017
}
1014
1018
/**
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.
1016
1022
*
1017
1023
* Create a request for the method "tasks.delete".
1018
1024
*
@@ -1034,7 +1040,9 @@ public class Delete extends TasksRequest<Void> {
1034
1040
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks/{task}" ;
1035
1041
1036
1042
/**
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.
1038
1046
*
1039
1047
* Create a request for the method "tasks.delete".
1040
1048
*
@@ -1290,8 +1298,10 @@ public Get set(String parameterName, Object value) {
1290
1298
}
1291
1299
}
1292
1300
/**
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.
1295
1305
*
1296
1306
* Create a request for the method "tasks.insert".
1297
1307
*
@@ -1313,8 +1323,10 @@ public class Insert extends TasksRequest<com.google.api.services.tasks.model.Tas
1313
1323
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks" ;
1314
1324
1315
1325
/**
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.
1318
1330
*
1319
1331
* Create a request for the method "tasks.insert".
1320
1332
*
@@ -1405,21 +1417,24 @@ public Insert setTasklist(java.lang.String tasklist) {
1405
1417
1406
1418
/**
1407
1419
* 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.
1409
1422
*/
1410
1423
@ com .google .api .client .util .Key
1411
1424
private java .lang .String parent ;
1412
1425
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.
1415
1429
*/
1416
1430
public java .lang .String getParent () {
1417
1431
return parent ;
1418
1432
}
1419
1433
1420
1434
/**
1421
1435
* 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.
1423
1438
*/
1424
1439
public Insert setParent (java .lang .String parent ) {
1425
1440
this .parent = parent ;
@@ -1455,8 +1470,9 @@ public Insert set(String parameterName, Object value) {
1455
1470
}
1456
1471
}
1457
1472
/**
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.
1460
1476
*
1461
1477
* Create a request for the method "tasks.list".
1462
1478
*
@@ -1477,8 +1493,9 @@ public class List extends TasksRequest<com.google.api.services.tasks.model.Tasks
1477
1493
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks" ;
1478
1494
1479
1495
/**
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.
1482
1499
*
1483
1500
* Create a request for the method "tasks.list".
1484
1501
*
@@ -1707,25 +1724,48 @@ public List setPageToken(java.lang.String pageToken) {
1707
1724
}
1708
1725
1709
1726
/**
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.
1713
1753
*/
1714
1754
@ com .google .api .client .util .Key
1715
1755
private java .lang .Boolean showCompleted ;
1716
1756
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 .
1720
1760
*/
1721
1761
public java .lang .Boolean getShowCompleted () {
1722
1762
return showCompleted ;
1723
1763
}
1724
1764
1725
1765
/**
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 .
1729
1769
*/
1730
1770
public List setShowCompleted (java .lang .Boolean showCompleted ) {
1731
1771
this .showCompleted = showCompleted ;
@@ -1805,8 +1845,9 @@ public List set(String parameterName, Object value) {
1805
1845
}
1806
1846
}
1807
1847
/**
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
1810
1851
* user can have up to 2,000 subtasks per task.
1811
1852
*
1812
1853
* Create a request for the method "tasks.move".
@@ -1829,9 +1870,10 @@ public class Move extends TasksRequest<com.google.api.services.tasks.model.Task>
1829
1870
private static final String REST_PATH = "tasks/v1/lists/{tasklist}/tasks/{task}/move" ;
1830
1871
1831
1872
/**
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.
1835
1877
*
1836
1878
* Create a request for the method "tasks.move".
1837
1879
*
@@ -1937,23 +1979,52 @@ public Move setTask(java.lang.String task) {
1937
1979
return this ;
1938
1980
}
1939
1981
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
+
1940
2008
/**
1941
2009
* 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.
1943
2012
*/
1944
2013
@ com .google .api .client .util .Key
1945
2014
private java .lang .String parent ;
1946
2015
1947
2016
/** 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.
1949
2019
*/
1950
2020
public java .lang .String getParent () {
1951
2021
return parent ;
1952
2022
}
1953
2023
1954
2024
/**
1955
2025
* 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.
1957
2028
*/
1958
2029
public Move setParent (java .lang .String parent ) {
1959
2030
this .parent = parent ;
0 commit comments