| 1 |
<?php |
| 2 |
/* |
| 3 |
* Copyright 2010 Google Inc. |
| 4 |
* |
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 |
* use this file except in compliance with the License. You may obtain a copy of |
| 7 |
* the License at |
| 8 |
* |
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
* |
| 11 |
* Unless required by applicable law or agreed to in writing, software |
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 |
* License for the specific language governing permissions and limitations under |
| 15 |
* the License. |
| 16 |
*/ |
| 17 |
|
| 18 |
/** |
| 19 |
* Service definition for Tasks (v1). |
| 20 |
* |
| 21 |
* <p> |
| 22 |
* Lets you manage your tasks and task lists.</p> |
| 23 |
* |
| 24 |
* <p> |
| 25 |
* For more information about this service, see the API |
| 26 |
* <a href="https://developers.google.com/google-apps/tasks/firstapp" target="_blank">Documentation</a> |
| 27 |
* </p> |
| 28 |
* |
| 29 |
* @author Google, Inc. |
| 30 |
*/ |
| 31 |
class Google_Service_Tasks extends Google_Service |
| 32 |
{ |
| 33 |
/** Manage your tasks. */ |
| 34 |
const TASKS = |
| 35 |
"https://www.googleapis.com/auth/tasks"; |
| 36 |
/** View your tasks. */ |
| 37 |
const TASKS_READONLY = |
| 38 |
"https://www.googleapis.com/auth/tasks.readonly"; |
| 39 |
|
| 40 |
public $tasklists; |
| 41 |
public $tasks; |
| 42 |
|
| 43 |
|
| 44 |
/** |
| 45 |
* Constructs the internal representation of the Tasks service. |
| 46 |
* |
| 47 |
* @param Google_Client $client |
| 48 |
*/ |
| 49 |
public function __construct(Google_Client $client) |
| 50 |
{ |
| 51 |
parent::__construct($client); |
| 52 |
$this->servicePath = 'tasks/v1/'; |
| 53 |
$this->version = 'v1'; |
| 54 |
$this->serviceName = 'tasks'; |
| 55 |
|
| 56 |
$this->tasklists = new Google_Service_Tasks_Tasklists_Resource( |
| 57 |
$this, |
| 58 |
$this->serviceName, |
| 59 |
'tasklists', |
| 60 |
array( |
| 61 |
'methods' => array( |
| 62 |
'delete' => array( |
| 63 |
'path' => 'users/@me/lists/{tasklist}', |
| 64 |
'httpMethod' => 'DELETE', |
| 65 |
'parameters' => array( |
| 66 |
'tasklist' => array( |
| 67 |
'location' => 'path', |
| 68 |
'type' => 'string', |
| 69 |
'required' => true, |
| 70 |
), |
| 71 |
), |
| 72 |
),'get' => array( |
| 73 |
'path' => 'users/@me/lists/{tasklist}', |
| 74 |
'httpMethod' => 'GET', |
| 75 |
'parameters' => array( |
| 76 |
'tasklist' => array( |
| 77 |
'location' => 'path', |
| 78 |
'type' => 'string', |
| 79 |
'required' => true, |
| 80 |
), |
| 81 |
), |
| 82 |
),'insert' => array( |
| 83 |
'path' => 'users/@me/lists', |
| 84 |
'httpMethod' => 'POST', |
| 85 |
'parameters' => array(), |
| 86 |
),'list' => array( |
| 87 |
'path' => 'users/@me/lists', |
| 88 |
'httpMethod' => 'GET', |
| 89 |
'parameters' => array( |
| 90 |
'pageToken' => array( |
| 91 |
'location' => 'query', |
| 92 |
'type' => 'string', |
| 93 |
), |
| 94 |
'maxResults' => array( |
| 95 |
'location' => 'query', |
| 96 |
'type' => 'string', |
| 97 |
), |
| 98 |
), |
| 99 |
),'patch' => array( |
| 100 |
'path' => 'users/@me/lists/{tasklist}', |
| 101 |
'httpMethod' => 'PATCH', |
| 102 |
'parameters' => array( |
| 103 |
'tasklist' => array( |
| 104 |
'location' => 'path', |
| 105 |
'type' => 'string', |
| 106 |
'required' => true, |
| 107 |
), |
| 108 |
), |
| 109 |
),'update' => array( |
| 110 |
'path' => 'users/@me/lists/{tasklist}', |
| 111 |
'httpMethod' => 'PUT', |
| 112 |
'parameters' => array( |
| 113 |
'tasklist' => array( |
| 114 |
'location' => 'path', |
| 115 |
'type' => 'string', |
| 116 |
'required' => true, |
| 117 |
), |
| 118 |
), |
| 119 |
), |
| 120 |
) |
| 121 |
) |
| 122 |
); |
| 123 |
$this->tasks = new Google_Service_Tasks_Tasks_Resource( |
| 124 |
$this, |
| 125 |
$this->serviceName, |
| 126 |
'tasks', |
| 127 |
array( |
| 128 |
'methods' => array( |
| 129 |
'clear' => array( |
| 130 |
'path' => 'lists/{tasklist}/clear', |
| 131 |
'httpMethod' => 'POST', |
| 132 |
'parameters' => array( |
| 133 |
'tasklist' => array( |
| 134 |
'location' => 'path', |
| 135 |
'type' => 'string', |
| 136 |
'required' => true, |
| 137 |
), |
| 138 |
), |
| 139 |
),'delete' => array( |
| 140 |
'path' => 'lists/{tasklist}/tasks/{task}', |
| 141 |
'httpMethod' => 'DELETE', |
| 142 |
'parameters' => array( |
| 143 |
'tasklist' => array( |
| 144 |
'location' => 'path', |
| 145 |
'type' => 'string', |
| 146 |
'required' => true, |
| 147 |
), |
| 148 |
'task' => array( |
| 149 |
'location' => 'path', |
| 150 |
'type' => 'string', |
| 151 |
'required' => true, |
| 152 |
), |
| 153 |
), |
| 154 |
),'get' => array( |
| 155 |
'path' => 'lists/{tasklist}/tasks/{task}', |
| 156 |
'httpMethod' => 'GET', |
| 157 |
'parameters' => array( |
| 158 |
'tasklist' => array( |
| 159 |
'location' => 'path', |
| 160 |
'type' => 'string', |
| 161 |
'required' => true, |
| 162 |
), |
| 163 |
'task' => array( |
| 164 |
'location' => 'path', |
| 165 |
'type' => 'string', |
| 166 |
'required' => true, |
| 167 |
), |
| 168 |
), |
| 169 |
),'insert' => array( |
| 170 |
'path' => 'lists/{tasklist}/tasks', |
| 171 |
'httpMethod' => 'POST', |
| 172 |
'parameters' => array( |
| 173 |
'tasklist' => array( |
| 174 |
'location' => 'path', |
| 175 |
'type' => 'string', |
| 176 |
'required' => true, |
| 177 |
), |
| 178 |
'parent' => array( |
| 179 |
'location' => 'query', |
| 180 |
'type' => 'string', |
| 181 |
), |
| 182 |
'previous' => array( |
| 183 |
'location' => 'query', |
| 184 |
'type' => 'string', |
| 185 |
), |
| 186 |
), |
| 187 |
),'list' => array( |
| 188 |
'path' => 'lists/{tasklist}/tasks', |
| 189 |
'httpMethod' => 'GET', |
| 190 |
'parameters' => array( |
| 191 |
'tasklist' => array( |
| 192 |
'location' => 'path', |
| 193 |
'type' => 'string', |
| 194 |
'required' => true, |
| 195 |
), |
| 196 |
'dueMax' => array( |
| 197 |
'location' => 'query', |
| 198 |
'type' => 'string', |
| 199 |
), |
| 200 |
'showDeleted' => array( |
| 201 |
'location' => 'query', |
| 202 |
'type' => 'boolean', |
| 203 |
), |
| 204 |
'updatedMin' => array( |
| 205 |
'location' => 'query', |
| 206 |
'type' => 'string', |
| 207 |
), |
| 208 |
'completedMin' => array( |
| 209 |
'location' => 'query', |
| 210 |
'type' => 'string', |
| 211 |
), |
| 212 |
'maxResults' => array( |
| 213 |
'location' => 'query', |
| 214 |
'type' => 'string', |
| 215 |
), |
| 216 |
'showCompleted' => array( |
| 217 |
'location' => 'query', |
| 218 |
'type' => 'boolean', |
| 219 |
), |
| 220 |
'pageToken' => array( |
| 221 |
'location' => 'query', |
| 222 |
'type' => 'string', |
| 223 |
), |
| 224 |
'completedMax' => array( |
| 225 |
'location' => 'query', |
| 226 |
'type' => 'string', |
| 227 |
), |
| 228 |
'showHidden' => array( |
| 229 |
'location' => 'query', |
| 230 |
'type' => 'boolean', |
| 231 |
), |
| 232 |
'dueMin' => array( |
| 233 |
'location' => 'query', |
| 234 |
'type' => 'string', |
| 235 |
), |
| 236 |
), |
| 237 |
),'move' => array( |
| 238 |
'path' => 'lists/{tasklist}/tasks/{task}/move', |
| 239 |
'httpMethod' => 'POST', |
| 240 |
'parameters' => array( |
| 241 |
'tasklist' => array( |
| 242 |
'location' => 'path', |
| 243 |
'type' => 'string', |
| 244 |
'required' => true, |
| 245 |
), |
| 246 |
'task' => array( |
| 247 |
'location' => 'path', |
| 248 |
'type' => 'string', |
| 249 |
'required' => true, |
| 250 |
), |
| 251 |
'parent' => array( |
| 252 |
'location' => 'query', |
| 253 |
'type' => 'string', |
| 254 |
), |
| 255 |
'previous' => array( |
| 256 |
'location' => 'query', |
| 257 |
'type' => 'string', |
| 258 |
), |
| 259 |
), |
| 260 |
),'patch' => array( |
| 261 |
'path' => 'lists/{tasklist}/tasks/{task}', |
| 262 |
'httpMethod' => 'PATCH', |
| 263 |
'parameters' => array( |
| 264 |
'tasklist' => array( |
| 265 |
'location' => 'path', |
| 266 |
'type' => 'string', |
| 267 |
'required' => true, |
| 268 |
), |
| 269 |
'task' => array( |
| 270 |
'location' => 'path', |
| 271 |
'type' => 'string', |
| 272 |
'required' => true, |
| 273 |
), |
| 274 |
), |
| 275 |
),'update' => array( |
| 276 |
'path' => 'lists/{tasklist}/tasks/{task}', |
| 277 |
'httpMethod' => 'PUT', |
| 278 |
'parameters' => array( |
| 279 |
'tasklist' => array( |
| 280 |
'location' => 'path', |
| 281 |
'type' => 'string', |
| 282 |
'required' => true, |
| 283 |
), |
| 284 |
'task' => array( |
| 285 |
'location' => 'path', |
| 286 |
'type' => 'string', |
| 287 |
'required' => true, |
| 288 |
), |
| 289 |
), |
| 290 |
), |
| 291 |
) |
| 292 |
) |
| 293 |
); |
| 294 |
} |
| 295 |
} |
| 296 |
|
| 297 |
|
| 298 |
/** |
| 299 |
* The "tasklists" collection of methods. |
| 300 |
* Typical usage is: |
| 301 |
* <code> |
| 302 |
* $tasksService = new Google_Service_Tasks(...); |
| 303 |
* $tasklists = $tasksService->tasklists; |
| 304 |
* </code> |
| 305 |
*/ |
| 306 |
class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource |
| 307 |
{ |
| 308 |
|
| 309 |
/** |
| 310 |
* Deletes the authenticated user's specified task list. (tasklists.delete) |
| 311 |
* |
| 312 |
* @param string $tasklist Task list identifier. |
| 313 |
* @param array $optParams Optional parameters. |
| 314 |
*/ |
| 315 |
public function delete($tasklist, $optParams = array()) |
| 316 |
{ |
| 317 |
$params = array('tasklist' => $tasklist); |
| 318 |
$params = array_merge($params, $optParams); |
| 319 |
return $this->call('delete', array($params)); |
| 320 |
} |
| 321 |
|
| 322 |
/** |
| 323 |
* Returns the authenticated user's specified task list. (tasklists.get) |
| 324 |
* |
| 325 |
* @param string $tasklist Task list identifier. |
| 326 |
* @param array $optParams Optional parameters. |
| 327 |
* @return Google_Service_Tasks_TaskList |
| 328 |
*/ |
| 329 |
public function get($tasklist, $optParams = array()) |
| 330 |
{ |
| 331 |
$params = array('tasklist' => $tasklist); |
| 332 |
$params = array_merge($params, $optParams); |
| 333 |
return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); |
| 334 |
} |
| 335 |
|
| 336 |
/** |
| 337 |
* Creates a new task list and adds it to the authenticated user's task lists. |
| 338 |
* (tasklists.insert) |
| 339 |
* |
| 340 |
* @param Google_TaskList $postBody |
| 341 |
* @param array $optParams Optional parameters. |
| 342 |
* @return Google_Service_Tasks_TaskList |
| 343 |
*/ |
| 344 |
public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
| 345 |
{ |
| 346 |
$params = array('postBody' => $postBody); |
| 347 |
$params = array_merge($params, $optParams); |
| 348 |
return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); |
| 349 |
} |
| 350 |
|
| 351 |
/** |
| 352 |
* Returns all the authenticated user's task lists. (tasklists.listTasklists) |
| 353 |
* |
| 354 |
* @param array $optParams Optional parameters. |
| 355 |
* |
| 356 |
* @opt_param string pageToken Token specifying the result page to return. |
| 357 |
* Optional. |
| 358 |
* @opt_param string maxResults Maximum number of task lists returned on one |
| 359 |
* page. Optional. The default is 100. |
| 360 |
* @return Google_Service_Tasks_TaskLists |
| 361 |
*/ |
| 362 |
public function listTasklists($optParams = array()) |
| 363 |
{ |
| 364 |
$params = array(); |
| 365 |
$params = array_merge($params, $optParams); |
| 366 |
return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); |
| 367 |
} |
| 368 |
|
| 369 |
/** |
| 370 |
* Updates the authenticated user's specified task list. This method supports |
| 371 |
* patch semantics. (tasklists.patch) |
| 372 |
* |
| 373 |
* @param string $tasklist Task list identifier. |
| 374 |
* @param Google_TaskList $postBody |
| 375 |
* @param array $optParams Optional parameters. |
| 376 |
* @return Google_Service_Tasks_TaskList |
| 377 |
*/ |
| 378 |
public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
| 379 |
{ |
| 380 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
| 381 |
$params = array_merge($params, $optParams); |
| 382 |
return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); |
| 383 |
} |
| 384 |
|
| 385 |
/** |
| 386 |
* Updates the authenticated user's specified task list. (tasklists.update) |
| 387 |
* |
| 388 |
* @param string $tasklist Task list identifier. |
| 389 |
* @param Google_TaskList $postBody |
| 390 |
* @param array $optParams Optional parameters. |
| 391 |
* @return Google_Service_Tasks_TaskList |
| 392 |
*/ |
| 393 |
public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
| 394 |
{ |
| 395 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
| 396 |
$params = array_merge($params, $optParams); |
| 397 |
return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); |
| 398 |
} |
| 399 |
} |
| 400 |
|
| 401 |
/** |
| 402 |
* The "tasks" collection of methods. |
| 403 |
* Typical usage is: |
| 404 |
* <code> |
| 405 |
* $tasksService = new Google_Service_Tasks(...); |
| 406 |
* $tasks = $tasksService->tasks; |
| 407 |
* </code> |
| 408 |
*/ |
| 409 |
class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource |
| 410 |
{ |
| 411 |
|
| 412 |
/** |
| 413 |
* Clears all completed tasks from the specified task list. The affected tasks |
| 414 |
* will be marked as 'hidden' and no longer be returned by default when |
| 415 |
* retrieving all tasks for a task list. (tasks.clear) |
| 416 |
* |
| 417 |
* @param string $tasklist Task list identifier. |
| 418 |
* @param array $optParams Optional parameters. |
| 419 |
*/ |
| 420 |
public function clear($tasklist, $optParams = array()) |
| 421 |
{ |
| 422 |
$params = array('tasklist' => $tasklist); |
| 423 |
$params = array_merge($params, $optParams); |
| 424 |
return $this->call('clear', array($params)); |
| 425 |
} |
| 426 |
|
| 427 |
/** |
| 428 |
* Deletes the specified task from the task list. (tasks.delete) |
| 429 |
* |
| 430 |
* @param string $tasklist Task list identifier. |
| 431 |
* @param string $task Task identifier. |
| 432 |
* @param array $optParams Optional parameters. |
| 433 |
*/ |
| 434 |
public function delete($tasklist, $task, $optParams = array()) |
| 435 |
{ |
| 436 |
$params = array('tasklist' => $tasklist, 'task' => $task); |
| 437 |
$params = array_merge($params, $optParams); |
| 438 |
return $this->call('delete', array($params)); |
| 439 |
} |
| 440 |
|
| 441 |
/** |
| 442 |
* Returns the specified task. (tasks.get) |
| 443 |
* |
| 444 |
* @param string $tasklist Task list identifier. |
| 445 |
* @param string $task Task identifier. |
| 446 |
* @param array $optParams Optional parameters. |
| 447 |
* @return Google_Service_Tasks_Task |
| 448 |
*/ |
| 449 |
public function get($tasklist, $task, $optParams = array()) |
| 450 |
{ |
| 451 |
$params = array('tasklist' => $tasklist, 'task' => $task); |
| 452 |
$params = array_merge($params, $optParams); |
| 453 |
return $this->call('get', array($params), "Google_Service_Tasks_Task"); |
| 454 |
} |
| 455 |
|
| 456 |
/** |
| 457 |
* Creates a new task on the specified task list. (tasks.insert) |
| 458 |
* |
| 459 |
* @param string $tasklist Task list identifier. |
| 460 |
* @param Google_Task $postBody |
| 461 |
* @param array $optParams Optional parameters. |
| 462 |
* |
| 463 |
* @opt_param string parent Parent task identifier. If the task is created at |
| 464 |
* the top level, this parameter is omitted. Optional. |
| 465 |
* @opt_param string previous Previous sibling task identifier. If the task is |
| 466 |
* created at the first position among its siblings, this parameter is omitted. |
| 467 |
* Optional. |
| 468 |
* @return Google_Service_Tasks_Task |
| 469 |
*/ |
| 470 |
public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array()) |
| 471 |
{ |
| 472 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
| 473 |
$params = array_merge($params, $optParams); |
| 474 |
return $this->call('insert', array($params), "Google_Service_Tasks_Task"); |
| 475 |
} |
| 476 |
|
| 477 |
/** |
| 478 |
* Returns all tasks in the specified task list. (tasks.listTasks) |
| 479 |
* |
| 480 |
* @param string $tasklist Task list identifier. |
| 481 |
* @param array $optParams Optional parameters. |
| 482 |
* |
| 483 |
* @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 |
| 484 |
* timestamp) to filter by. Optional. The default is not to filter by due date. |
| 485 |
* @opt_param bool showDeleted Flag indicating whether deleted tasks are |
| 486 |
* returned in the result. Optional. The default is False. |
| 487 |
* @opt_param string updatedMin Lower bound for a task's last modification time |
| 488 |
* (as a RFC 3339 timestamp) to filter by. Optional. The default is not to |
| 489 |
* filter by last modification time. |
| 490 |
* @opt_param string completedMin Lower bound for a task's completion date (as a |
| 491 |
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by |
| 492 |
* completion date. |
| 493 |
* @opt_param string maxResults Maximum number of task lists returned on one |
| 494 |
* page. Optional. The default is 100. |
| 495 |
* @opt_param bool showCompleted Flag indicating whether completed tasks are |
| 496 |
* returned in the result. Optional. The default is True. |
| 497 |
* @opt_param string pageToken Token specifying the result page to return. |
| 498 |
* Optional. |
| 499 |
* @opt_param string completedMax Upper bound for a task's completion date (as a |
| 500 |
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by |
| 501 |
* completion date. |
| 502 |
* @opt_param bool showHidden Flag indicating whether hidden tasks are returned |
| 503 |
* in the result. Optional. The default is False. |
| 504 |
* @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 |
| 505 |
* timestamp) to filter by. Optional. The default is not to filter by due date. |
| 506 |
* @return Google_Service_Tasks_Tasks |
| 507 |
*/ |
| 508 |
public function listTasks($tasklist, $optParams = array()) |
| 509 |
{ |
| 510 |
$params = array('tasklist' => $tasklist); |
| 511 |
$params = array_merge($params, $optParams); |
| 512 |
return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); |
| 513 |
} |
| 514 |
|
| 515 |
/** |
| 516 |
* Moves the specified task to another position in the task list. This can |
| 517 |
* include putting it as a child task under a new parent and/or move it to a |
| 518 |
* different position among its sibling tasks. (tasks.move) |
| 519 |
* |
| 520 |
* @param string $tasklist Task list identifier. |
| 521 |
* @param string $task Task identifier. |
| 522 |
* @param array $optParams Optional parameters. |
| 523 |
* |
| 524 |
* @opt_param string parent New parent task identifier. If the task is moved to |
| 525 |
* the top level, this parameter is omitted. Optional. |
| 526 |
* @opt_param string previous New previous sibling task identifier. If the task |
| 527 |
* is moved to the first position among its siblings, this parameter is omitted. |
| 528 |
* Optional. |
| 529 |
* @return Google_Service_Tasks_Task |
| 530 |
*/ |
| 531 |
public function move($tasklist, $task, $optParams = array()) |
| 532 |
{ |
| 533 |
$params = array('tasklist' => $tasklist, 'task' => $task); |
| 534 |
$params = array_merge($params, $optParams); |
| 535 |
return $this->call('move', array($params), "Google_Service_Tasks_Task"); |
| 536 |
} |
| 537 |
|
| 538 |
/** |
| 539 |
* Updates the specified task. This method supports patch semantics. |
| 540 |
* (tasks.patch) |
| 541 |
* |
| 542 |
* @param string $tasklist Task list identifier. |
| 543 |
* @param string $task Task identifier. |
| 544 |
* @param Google_Task $postBody |
| 545 |
* @param array $optParams Optional parameters. |
| 546 |
* @return Google_Service_Tasks_Task |
| 547 |
*/ |
| 548 |
public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) |
| 549 |
{ |
| 550 |
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
| 551 |
$params = array_merge($params, $optParams); |
| 552 |
return $this->call('patch', array($params), "Google_Service_Tasks_Task"); |
| 553 |
} |
| 554 |
|
| 555 |
/** |
| 556 |
* Updates the specified task. (tasks.update) |
| 557 |
* |
| 558 |
* @param string $tasklist Task list identifier. |
| 559 |
* @param string $task Task identifier. |
| 560 |
* @param Google_Task $postBody |
| 561 |
* @param array $optParams Optional parameters. |
| 562 |
* @return Google_Service_Tasks_Task |
| 563 |
*/ |
| 564 |
public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) |
| 565 |
{ |
| 566 |
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
| 567 |
$params = array_merge($params, $optParams); |
| 568 |
return $this->call('update', array($params), "Google_Service_Tasks_Task"); |
| 569 |
} |
| 570 |
} |
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
class Google_Service_Tasks_Task extends Google_Collection |
| 576 |
{ |
| 577 |
protected $collection_key = 'links'; |
| 578 |
protected $internal_gapi_mappings = array( |
| 579 |
); |
| 580 |
public $completed; |
| 581 |
public $deleted; |
| 582 |
public $due; |
| 583 |
public $etag; |
| 584 |
public $hidden; |
| 585 |
public $id; |
| 586 |
public $kind; |
| 587 |
protected $linksType = 'Google_Service_Tasks_TaskLinks'; |
| 588 |
protected $linksDataType = 'array'; |
| 589 |
public $notes; |
| 590 |
public $parent; |
| 591 |
public $position; |
| 592 |
public $selfLink; |
| 593 |
public $status; |
| 594 |
public $title; |
| 595 |
public $updated; |
| 596 |
|
| 597 |
|
| 598 |
public function setCompleted($completed) |
| 599 |
{ |
| 600 |
$this->completed = $completed; |
| 601 |
} |
| 602 |
public function getCompleted() |
| 603 |
{ |
| 604 |
return $this->completed; |
| 605 |
} |
| 606 |
public function setDeleted($deleted) |
| 607 |
{ |
| 608 |
$this->deleted = $deleted; |
| 609 |
} |
| 610 |
public function getDeleted() |
| 611 |
{ |
| 612 |
return $this->deleted; |
| 613 |
} |
| 614 |
public function setDue($due) |
| 615 |
{ |
| 616 |
$this->due = $due; |
| 617 |
} |
| 618 |
public function getDue() |
| 619 |
{ |
| 620 |
return $this->due; |
| 621 |
} |
| 622 |
public function setEtag($etag) |
| 623 |
{ |
| 624 |
$this->etag = $etag; |
| 625 |
} |
| 626 |
public function getEtag() |
| 627 |
{ |
| 628 |
return $this->etag; |
| 629 |
} |
| 630 |
public function setHidden($hidden) |
| 631 |
{ |
| 632 |
$this->hidden = $hidden; |
| 633 |
} |
| 634 |
public function getHidden() |
| 635 |
{ |
| 636 |
return $this->hidden; |
| 637 |
} |
| 638 |
public function setId($id) |
| 639 |
{ |
| 640 |
$this->id = $id; |
| 641 |
} |
| 642 |
public function getId() |
| 643 |
{ |
| 644 |
return $this->id; |
| 645 |
} |
| 646 |
public function setKind($kind) |
| 647 |
{ |
| 648 |
$this->kind = $kind; |
| 649 |
} |
| 650 |
public function getKind() |
| 651 |
{ |
| 652 |
return $this->kind; |
| 653 |
} |
| 654 |
public function setLinks($links) |
| 655 |
{ |
| 656 |
$this->links = $links; |
| 657 |
} |
| 658 |
public function getLinks() |
| 659 |
{ |
| 660 |
return $this->links; |
| 661 |
} |
| 662 |
public function setNotes($notes) |
| 663 |
{ |
| 664 |
$this->notes = $notes; |
| 665 |
} |
| 666 |
public function getNotes() |
| 667 |
{ |
| 668 |
return $this->notes; |
| 669 |
} |
| 670 |
public function setParent($parent) |
| 671 |
{ |
| 672 |
$this->parent = $parent; |
| 673 |
} |
| 674 |
public function getParent() |
| 675 |
{ |
| 676 |
return $this->parent; |
| 677 |
} |
| 678 |
public function setPosition($position) |
| 679 |
{ |
| 680 |
$this->position = $position; |
| 681 |
} |
| 682 |
public function getPosition() |
| 683 |
{ |
| 684 |
return $this->position; |
| 685 |
} |
| 686 |
public function setSelfLink($selfLink) |
| 687 |
{ |
| 688 |
$this->selfLink = $selfLink; |
| 689 |
} |
| 690 |
public function getSelfLink() |
| 691 |
{ |
| 692 |
return $this->selfLink; |
| 693 |
} |
| 694 |
public function setStatus($status) |
| 695 |
{ |
| 696 |
$this->status = $status; |
| 697 |
} |
| 698 |
public function getStatus() |
| 699 |
{ |
| 700 |
return $this->status; |
| 701 |
} |
| 702 |
public function setTitle($title) |
| 703 |
{ |
| 704 |
$this->title = $title; |
| 705 |
} |
| 706 |
public function getTitle() |
| 707 |
{ |
| 708 |
return $this->title; |
| 709 |
} |
| 710 |
public function setUpdated($updated) |
| 711 |
{ |
| 712 |
$this->updated = $updated; |
| 713 |
} |
| 714 |
public function getUpdated() |
| 715 |
{ |
| 716 |
return $this->updated; |
| 717 |
} |
| 718 |
} |
| 719 |
|
| 720 |
class Google_Service_Tasks_TaskLinks extends Google_Model |
| 721 |
{ |
| 722 |
protected $internal_gapi_mappings = array( |
| 723 |
); |
| 724 |
public $description; |
| 725 |
public $link; |
| 726 |
public $type; |
| 727 |
|
| 728 |
|
| 729 |
public function setDescription($description) |
| 730 |
{ |
| 731 |
$this->description = $description; |
| 732 |
} |
| 733 |
public function getDescription() |
| 734 |
{ |
| 735 |
return $this->description; |
| 736 |
} |
| 737 |
public function setLink($link) |
| 738 |
{ |
| 739 |
$this->link = $link; |
| 740 |
} |
| 741 |
public function getLink() |
| 742 |
{ |
| 743 |
return $this->link; |
| 744 |
} |
| 745 |
public function setType($type) |
| 746 |
{ |
| 747 |
$this->type = $type; |
| 748 |
} |
| 749 |
public function getType() |
| 750 |
{ |
| 751 |
return $this->type; |
| 752 |
} |
| 753 |
} |
| 754 |
|
| 755 |
class Google_Service_Tasks_TaskList extends Google_Model |
| 756 |
{ |
| 757 |
protected $internal_gapi_mappings = array( |
| 758 |
); |
| 759 |
public $etag; |
| 760 |
public $id; |
| 761 |
public $kind; |
| 762 |
public $selfLink; |
| 763 |
public $title; |
| 764 |
public $updated; |
| 765 |
|
| 766 |
|
| 767 |
public function setEtag($etag) |
| 768 |
{ |
| 769 |
$this->etag = $etag; |
| 770 |
} |
| 771 |
public function getEtag() |
| 772 |
{ |
| 773 |
return $this->etag; |
| 774 |
} |
| 775 |
public function setId($id) |
| 776 |
{ |
| 777 |
$this->id = $id; |
| 778 |
} |
| 779 |
public function getId() |
| 780 |
{ |
| 781 |
return $this->id; |
| 782 |
} |
| 783 |
public function setKind($kind) |
| 784 |
{ |
| 785 |
$this->kind = $kind; |
| 786 |
} |
| 787 |
public function getKind() |
| 788 |
{ |
| 789 |
return $this->kind; |
| 790 |
} |
| 791 |
public function setSelfLink($selfLink) |
| 792 |
{ |
| 793 |
$this->selfLink = $selfLink; |
| 794 |
} |
| 795 |
public function getSelfLink() |
| 796 |
{ |
| 797 |
return $this->selfLink; |
| 798 |
} |
| 799 |
public function setTitle($title) |
| 800 |
{ |
| 801 |
$this->title = $title; |
| 802 |
} |
| 803 |
public function getTitle() |
| 804 |
{ |
| 805 |
return $this->title; |
| 806 |
} |
| 807 |
public function setUpdated($updated) |
| 808 |
{ |
| 809 |
$this->updated = $updated; |
| 810 |
} |
| 811 |
public function getUpdated() |
| 812 |
{ |
| 813 |
return $this->updated; |
| 814 |
} |
| 815 |
} |
| 816 |
|
| 817 |
class Google_Service_Tasks_TaskLists extends Google_Collection |
| 818 |
{ |
| 819 |
protected $collection_key = 'items'; |
| 820 |
protected $internal_gapi_mappings = array( |
| 821 |
); |
| 822 |
public $etag; |
| 823 |
protected $itemsType = 'Google_Service_Tasks_TaskList'; |
| 824 |
protected $itemsDataType = 'array'; |
| 825 |
public $kind; |
| 826 |
public $nextPageToken; |
| 827 |
|
| 828 |
|
| 829 |
public function setEtag($etag) |
| 830 |
{ |
| 831 |
$this->etag = $etag; |
| 832 |
} |
| 833 |
public function getEtag() |
| 834 |
{ |
| 835 |
return $this->etag; |
| 836 |
} |
| 837 |
public function setItems($items) |
| 838 |
{ |
| 839 |
$this->items = $items; |
| 840 |
} |
| 841 |
public function getItems() |
| 842 |
{ |
| 843 |
return $this->items; |
| 844 |
} |
| 845 |
public function setKind($kind) |
| 846 |
{ |
| 847 |
$this->kind = $kind; |
| 848 |
} |
| 849 |
public function getKind() |
| 850 |
{ |
| 851 |
return $this->kind; |
| 852 |
} |
| 853 |
public function setNextPageToken($nextPageToken) |
| 854 |
{ |
| 855 |
$this->nextPageToken = $nextPageToken; |
| 856 |
} |
| 857 |
public function getNextPageToken() |
| 858 |
{ |
| 859 |
return $this->nextPageToken; |
| 860 |
} |
| 861 |
} |
| 862 |
|
| 863 |
class Google_Service_Tasks_Tasks extends Google_Collection |
| 864 |
{ |
| 865 |
protected $collection_key = 'items'; |
| 866 |
protected $internal_gapi_mappings = array( |
| 867 |
); |
| 868 |
public $etag; |
| 869 |
protected $itemsType = 'Google_Service_Tasks_Task'; |
| 870 |
protected $itemsDataType = 'array'; |
| 871 |
public $kind; |
| 872 |
public $nextPageToken; |
| 873 |
|
| 874 |
|
| 875 |
public function setEtag($etag) |
| 876 |
{ |
| 877 |
$this->etag = $etag; |
| 878 |
} |
| 879 |
public function getEtag() |
| 880 |
{ |
| 881 |
return $this->etag; |
| 882 |
} |
| 883 |
public function setItems($items) |
| 884 |
{ |
| 885 |
$this->items = $items; |
| 886 |
} |
| 887 |
public function getItems() |
| 888 |
{ |
| 889 |
return $this->items; |
| 890 |
} |
| 891 |
public function setKind($kind) |
| 892 |
{ |
| 893 |
$this->kind = $kind; |
| 894 |
} |
| 895 |
public function getKind() |
| 896 |
{ |
| 897 |
return $this->kind; |
| 898 |
} |
| 899 |
public function setNextPageToken($nextPageToken) |
| 900 |
{ |
| 901 |
$this->nextPageToken = $nextPageToken; |
| 902 |
} |
| 903 |
public function getNextPageToken() |
| 904 |
{ |
| 905 |
return $this->nextPageToken; |
| 906 |
} |
| 907 |
} |
| 908 |
|