Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class AssignmentInfo extends \Google\Model
{
protected $driveResourceInfoType = DriveResourceInfo::class;
protected $driveResourceInfoDataType = '';
/**
* @var string
*/
public $linkToTask;
protected $spaceInfoType = SpaceInfo::class;
protected $spaceInfoDataType = '';
/**
* @var string
*/
public $surfaceType;
/**
* @param DriveResourceInfo
*/
public function setDriveResourceInfo(DriveResourceInfo $driveResourceInfo)
{
$this->driveResourceInfo = $driveResourceInfo;
}
/**
* @return DriveResourceInfo
*/
public function getDriveResourceInfo()
{
return $this->driveResourceInfo;
}
/**
* @param string
*/
public function setLinkToTask($linkToTask)
{
$this->linkToTask = $linkToTask;
}
/**
* @return string
*/
public function getLinkToTask()
{
return $this->linkToTask;
}
/**
* @param SpaceInfo
*/
public function setSpaceInfo(SpaceInfo $spaceInfo)
{
$this->spaceInfo = $spaceInfo;
}
/**
* @return SpaceInfo
*/
public function getSpaceInfo()
{
return $this->spaceInfo;
}
/**
* @param string
*/
public function setSurfaceType($surfaceType)
{
$this->surfaceType = $surfaceType;
}
/**
* @return string
*/
public function getSurfaceType()
{
return $this->surfaceType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssignmentInfo::class, 'Google_Service_Tasks_AssignmentInfo');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class DriveResourceInfo extends \Google\Model
{
/**
* @var string
*/
public $driveFileId;
/**
* @var string
*/
public $resourceKey;
/**
* @param string
*/
public function setDriveFileId($driveFileId)
{
$this->driveFileId = $driveFileId;
}
/**
* @return string
*/
public function getDriveFileId()
{
return $this->driveFileId;
}
/**
* @param string
*/
public function setResourceKey($resourceKey)
{
$this->resourceKey = $resourceKey;
}
/**
* @return string
*/
public function getResourceKey()
{
return $this->resourceKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveResourceInfo::class, 'Google_Service_Tasks_DriveResourceInfo');
@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks\Resource;
use Google\Service\Tasks\TaskList;
use Google\Service\Tasks\TaskLists as TaskListsModel;
/**
* The "tasklists" collection of methods.
* Typical usage is:
* <code>
* $tasksService = new Google\Service\Tasks(...);
* $tasklists = $tasksService->tasklists;
* </code>
*/
class Tasklists extends \Google\Service\Resource
{
/**
* Deletes the authenticated user's specified task list. If the list contains
* assigned tasks, both the assigned tasks and the original tasks in the
* assignment surface (Docs, Chat Spaces) are deleted. (tasklists.delete)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($tasklist, $optParams = [])
{
$params = ['tasklist' => $tasklist];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns the authenticated user's specified task list. (tasklists.get)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
* @return TaskList
* @throws \Google\Service\Exception
*/
public function get($tasklist, $optParams = [])
{
$params = ['tasklist' => $tasklist];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TaskList::class);
}
/**
* Creates a new task list and adds it to the authenticated user's task lists. A
* user can have up to 2000 lists at a time. (tasklists.insert)
*
* @param TaskList $postBody
* @param array $optParams Optional parameters.
* @return TaskList
* @throws \Google\Service\Exception
*/
public function insert(TaskList $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], TaskList::class);
}
/**
* Returns all the authenticated user's task lists. A user can have up to 2000
* lists at a time. (tasklists.listTasklists)
*
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of task lists returned on one page.
* Optional. The default is 20 (max allowed: 100).
* @opt_param string pageToken Token specifying the result page to return.
* Optional.
* @return TaskListsModel
* @throws \Google\Service\Exception
*/
public function listTasklists($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], TaskListsModel::class);
}
/**
* Updates the authenticated user's specified task list. This method supports
* patch semantics. (tasklists.patch)
*
* @param string $tasklist Task list identifier.
* @param TaskList $postBody
* @param array $optParams Optional parameters.
* @return TaskList
* @throws \Google\Service\Exception
*/
public function patch($tasklist, TaskList $postBody, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TaskList::class);
}
/**
* Updates the authenticated user's specified task list. (tasklists.update)
*
* @param string $tasklist Task list identifier.
* @param TaskList $postBody
* @param array $optParams Optional parameters.
* @return TaskList
* @throws \Google\Service\Exception
*/
public function update($tasklist, TaskList $postBody, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], TaskList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tasklists::class, 'Google_Service_Tasks_Resource_Tasklists');
@@ -0,0 +1,219 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks\Resource;
use Google\Service\Tasks\Task;
use Google\Service\Tasks\Tasks as TasksModel;
/**
* The "tasks" collection of methods.
* Typical usage is:
* <code>
* $tasksService = new Google\Service\Tasks(...);
* $tasks = $tasksService->tasks;
* </code>
*/
class Tasks extends \Google\Service\Resource
{
/**
* 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. (tasks.clear)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function clear($tasklist, $optParams = [])
{
$params = ['tasklist' => $tasklist];
$params = array_merge($params, $optParams);
return $this->call('clear', [$params]);
}
/**
* Deletes the specified task from the task list. If the task is assigned, both
* the assigned task and the original task (in Docs, Chat Spaces) are deleted.
* To delete the assigned task only, navigate to the assignment surface and
* unassign the task from there. (tasks.delete)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($tasklist, $task, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'task' => $task];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns the specified task. (tasks.get)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
* @return Task
* @throws \Google\Service\Exception
*/
public function get($tasklist, $task, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'task' => $task];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Task::class);
}
/**
* Creates a new task on the specified task list. Tasks assigned from Docs or
* Chat Spaces cannot be inserted from Tasks Public API; they can only be
* created by assigning them from Docs or Chat Spaces. A user can have up to
* 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.
* (tasks.insert)
*
* @param string $tasklist Task list identifier.
* @param Task $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string parent Parent task identifier. If the task is created at
* the top level, this parameter is omitted. An assigned task cannot be a parent
* task, nor can it have a parent. Setting the parent to an assigned task
* results in failure of the request. Optional.
* @opt_param string previous Previous sibling task identifier. If the task is
* created at the first position among its siblings, this parameter is omitted.
* Optional.
* @return Task
* @throws \Google\Service\Exception
*/
public function insert($tasklist, Task $postBody, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Task::class);
}
/**
* Returns all tasks in the specified task list. Does not return assigned tasks
* be default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden
* tasks per list and up to 100,000 tasks in total at a time. (tasks.listTasks)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
*
* @opt_param string completedMax 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.
* @opt_param string 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.
* @opt_param string 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.
* @opt_param string 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.
* @opt_param int maxResults Maximum number of tasks returned on one page.
* Optional. The default is 20 (max allowed: 100).
* @opt_param string pageToken Token specifying the result page to return.
* Optional.
* @opt_param bool showAssigned Optional. Flag indicating whether tasks assigned
* to the current user are returned in the result. Optional. The default is
* False.
* @opt_param bool showCompleted Flag indicating whether completed tasks are
* returned in the result. Note that showHidden must also be True to show tasks
* completed in first party clients, such as the web UI and Google's mobile
* apps. Optional. The default is True.
* @opt_param bool showDeleted Flag indicating whether deleted tasks are
* returned in the result. Optional. The default is False.
* @opt_param bool showHidden Flag indicating whether hidden tasks are returned
* in the result. Optional. The default is False.
* @opt_param string updatedMin 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.
* @return TasksModel
* @throws \Google\Service\Exception
*/
public function listTasks($tasklist, $optParams = [])
{
$params = ['tasklist' => $tasklist];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], TasksModel::class);
}
/**
* Moves the specified task to another position in the destination task list. If
* the destination list is not specified, the task is moved within its current
* 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. A user can have up
* to 2,000 subtasks per task. (tasks.move)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
*
* @opt_param string destinationTasklist Optional. Destination task list
* identifier. If set, the task is moved from tasklist to the
* destinationTasklist list. Otherwise the task is moved within its current
* list. Recurrent tasks cannot currently be moved between lists. Optional.
* @opt_param string parent New parent task identifier. If the task is moved to
* the top level, this parameter is omitted. Assigned tasks can not be set as
* parent task (have subtasks) or be moved under a parent task (become
* subtasks). Optional.
* @opt_param string previous New previous sibling task identifier. If the task
* is moved to the first position among its siblings, this parameter is omitted.
* Optional.
* @return Task
* @throws \Google\Service\Exception
*/
public function move($tasklist, $task, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'task' => $task];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], Task::class);
}
/**
* Updates the specified task. This method supports patch semantics.
* (tasks.patch)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param Task $postBody
* @param array $optParams Optional parameters.
* @return Task
* @throws \Google\Service\Exception
*/
public function patch($tasklist, $task, Task $postBody, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Task::class);
}
/**
* Updates the specified task. (tasks.update)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param Task $postBody
* @param array $optParams Optional parameters.
* @return Task
* @throws \Google\Service\Exception
*/
public function update($tasklist, $task, Task $postBody, $optParams = [])
{
$params = ['tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Task::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tasks::class, 'Google_Service_Tasks_Resource_Tasks');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class SpaceInfo extends \Google\Model
{
/**
* @var string
*/
public $space;
/**
* @param string
*/
public function setSpace($space)
{
$this->space = $space;
}
/**
* @return string
*/
public function getSpace()
{
return $this->space;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpaceInfo::class, 'Google_Service_Tasks_SpaceInfo');
@@ -0,0 +1,329 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class Task extends \Google\Collection
{
protected $collection_key = 'links';
protected $assignmentInfoType = AssignmentInfo::class;
protected $assignmentInfoDataType = '';
/**
* @var string
*/
public $completed;
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $due;
/**
* @var string
*/
public $etag;
/**
* @var bool
*/
public $hidden;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
protected $linksType = TaskLinks::class;
protected $linksDataType = 'array';
/**
* @var string
*/
public $notes;
/**
* @var string
*/
public $parent;
/**
* @var string
*/
public $position;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $status;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $updated;
/**
* @var string
*/
public $webViewLink;
/**
* @param AssignmentInfo
*/
public function setAssignmentInfo(AssignmentInfo $assignmentInfo)
{
$this->assignmentInfo = $assignmentInfo;
}
/**
* @return AssignmentInfo
*/
public function getAssignmentInfo()
{
return $this->assignmentInfo;
}
/**
* @param string
*/
public function setCompleted($completed)
{
$this->completed = $completed;
}
/**
* @return string
*/
public function getCompleted()
{
return $this->completed;
}
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setDue($due)
{
$this->due = $due;
}
/**
* @return string
*/
public function getDue()
{
return $this->due;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param bool
*/
public function setHidden($hidden)
{
$this->hidden = $hidden;
}
/**
* @return bool
*/
public function getHidden()
{
return $this->hidden;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param TaskLinks[]
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return TaskLinks[]
*/
public function getLinks()
{
return $this->links;
}
/**
* @param string
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return string
*/
public function getNotes()
{
return $this->notes;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* @param string
*/
public function setPosition($position)
{
$this->position = $position;
}
/**
* @return string
*/
public function getPosition()
{
return $this->position;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param string
*/
public function setWebViewLink($webViewLink)
{
$this->webViewLink = $webViewLink;
}
/**
* @return string
*/
public function getWebViewLink()
{
return $this->webViewLink;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Task::class, 'Google_Service_Tasks_Task');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class TaskLinks extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $link;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskLinks::class, 'Google_Service_Tasks_TaskLinks');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class TaskList extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $selfLink;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $updated;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskList::class, 'Google_Service_Tasks_TaskList');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class TaskLists extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = TaskList::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param TaskList[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return TaskList[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskLists::class, 'Google_Service_Tasks_TaskLists');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Tasks;
class Tasks extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $etag;
protected $itemsType = Task::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Task[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Task[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tasks::class, 'Google_Service_Tasks_Tasks');