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