source: vendor/google/apiclient-services/src/Tasks.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 9.9 KB
Line 
1<?php
2/*
3 * Copyright 2014 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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for Tasks (v1).
24 *
25 * <p>
26 * The Google Tasks API lets you manage your tasks and task lists.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/tasks/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Tasks extends \Google\Service
36{
37 /** Create, edit, organize, and delete all your tasks. */
38 const TASKS =
39 "https://www.googleapis.com/auth/tasks";
40 /** View your tasks. */
41 const TASKS_READONLY =
42 "https://www.googleapis.com/auth/tasks.readonly";
43
44 public $tasklists;
45 public $tasks;
46 public $rootUrlTemplate;
47
48 /**
49 * Constructs the internal representation of the Tasks service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://tasks.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://tasks.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'tasks';
64
65 $this->tasklists = new Tasks\Resource\Tasklists(
66 $this,
67 $this->serviceName,
68 'tasklists',
69 [
70 'methods' => [
71 'delete' => [
72 'path' => 'tasks/v1/users/@me/lists/{tasklist}',
73 'httpMethod' => 'DELETE',
74 'parameters' => [
75 'tasklist' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 ],
81 ],'get' => [
82 'path' => 'tasks/v1/users/@me/lists/{tasklist}',
83 'httpMethod' => 'GET',
84 'parameters' => [
85 'tasklist' => [
86 'location' => 'path',
87 'type' => 'string',
88 'required' => true,
89 ],
90 ],
91 ],'insert' => [
92 'path' => 'tasks/v1/users/@me/lists',
93 'httpMethod' => 'POST',
94 'parameters' => [],
95 ],'list' => [
96 'path' => 'tasks/v1/users/@me/lists',
97 'httpMethod' => 'GET',
98 'parameters' => [
99 'maxResults' => [
100 'location' => 'query',
101 'type' => 'integer',
102 ],
103 'pageToken' => [
104 'location' => 'query',
105 'type' => 'string',
106 ],
107 ],
108 ],'patch' => [
109 'path' => 'tasks/v1/users/@me/lists/{tasklist}',
110 'httpMethod' => 'PATCH',
111 'parameters' => [
112 'tasklist' => [
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ],
117 ],
118 ],'update' => [
119 'path' => 'tasks/v1/users/@me/lists/{tasklist}',
120 'httpMethod' => 'PUT',
121 'parameters' => [
122 'tasklist' => [
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ],
127 ],
128 ],
129 ]
130 ]
131 );
132 $this->tasks = new Tasks\Resource\Tasks(
133 $this,
134 $this->serviceName,
135 'tasks',
136 [
137 'methods' => [
138 'clear' => [
139 'path' => 'tasks/v1/lists/{tasklist}/clear',
140 'httpMethod' => 'POST',
141 'parameters' => [
142 'tasklist' => [
143 'location' => 'path',
144 'type' => 'string',
145 'required' => true,
146 ],
147 ],
148 ],'delete' => [
149 'path' => 'tasks/v1/lists/{tasklist}/tasks/{task}',
150 'httpMethod' => 'DELETE',
151 'parameters' => [
152 'tasklist' => [
153 'location' => 'path',
154 'type' => 'string',
155 'required' => true,
156 ],
157 'task' => [
158 'location' => 'path',
159 'type' => 'string',
160 'required' => true,
161 ],
162 ],
163 ],'get' => [
164 'path' => 'tasks/v1/lists/{tasklist}/tasks/{task}',
165 'httpMethod' => 'GET',
166 'parameters' => [
167 'tasklist' => [
168 'location' => 'path',
169 'type' => 'string',
170 'required' => true,
171 ],
172 'task' => [
173 'location' => 'path',
174 'type' => 'string',
175 'required' => true,
176 ],
177 ],
178 ],'insert' => [
179 'path' => 'tasks/v1/lists/{tasklist}/tasks',
180 'httpMethod' => 'POST',
181 'parameters' => [
182 'tasklist' => [
183 'location' => 'path',
184 'type' => 'string',
185 'required' => true,
186 ],
187 'parent' => [
188 'location' => 'query',
189 'type' => 'string',
190 ],
191 'previous' => [
192 'location' => 'query',
193 'type' => 'string',
194 ],
195 ],
196 ],'list' => [
197 'path' => 'tasks/v1/lists/{tasklist}/tasks',
198 'httpMethod' => 'GET',
199 'parameters' => [
200 'tasklist' => [
201 'location' => 'path',
202 'type' => 'string',
203 'required' => true,
204 ],
205 'completedMax' => [
206 'location' => 'query',
207 'type' => 'string',
208 ],
209 'completedMin' => [
210 'location' => 'query',
211 'type' => 'string',
212 ],
213 'dueMax' => [
214 'location' => 'query',
215 'type' => 'string',
216 ],
217 'dueMin' => [
218 'location' => 'query',
219 'type' => 'string',
220 ],
221 'maxResults' => [
222 'location' => 'query',
223 'type' => 'integer',
224 ],
225 'pageToken' => [
226 'location' => 'query',
227 'type' => 'string',
228 ],
229 'showAssigned' => [
230 'location' => 'query',
231 'type' => 'boolean',
232 ],
233 'showCompleted' => [
234 'location' => 'query',
235 'type' => 'boolean',
236 ],
237 'showDeleted' => [
238 'location' => 'query',
239 'type' => 'boolean',
240 ],
241 'showHidden' => [
242 'location' => 'query',
243 'type' => 'boolean',
244 ],
245 'updatedMin' => [
246 'location' => 'query',
247 'type' => 'string',
248 ],
249 ],
250 ],'move' => [
251 'path' => 'tasks/v1/lists/{tasklist}/tasks/{task}/move',
252 'httpMethod' => 'POST',
253 'parameters' => [
254 'tasklist' => [
255 'location' => 'path',
256 'type' => 'string',
257 'required' => true,
258 ],
259 'task' => [
260 'location' => 'path',
261 'type' => 'string',
262 'required' => true,
263 ],
264 'destinationTasklist' => [
265 'location' => 'query',
266 'type' => 'string',
267 ],
268 'parent' => [
269 'location' => 'query',
270 'type' => 'string',
271 ],
272 'previous' => [
273 'location' => 'query',
274 'type' => 'string',
275 ],
276 ],
277 ],'patch' => [
278 'path' => 'tasks/v1/lists/{tasklist}/tasks/{task}',
279 'httpMethod' => 'PATCH',
280 'parameters' => [
281 'tasklist' => [
282 'location' => 'path',
283 'type' => 'string',
284 'required' => true,
285 ],
286 'task' => [
287 'location' => 'path',
288 'type' => 'string',
289 'required' => true,
290 ],
291 ],
292 ],'update' => [
293 'path' => 'tasks/v1/lists/{tasklist}/tasks/{task}',
294 'httpMethod' => 'PUT',
295 'parameters' => [
296 'tasklist' => [
297 'location' => 'path',
298 'type' => 'string',
299 'required' => true,
300 ],
301 'task' => [
302 'location' => 'path',
303 'type' => 'string',
304 'required' => true,
305 ],
306 ],
307 ],
308 ]
309 ]
310 );
311 }
312}
313
314// Adding a class alias for backwards compatibility with the previous class name.
315class_alias(Tasks::class, 'Google_Service_Tasks');
Note: See TracBrowser for help on using the repository browser.