source: vendor/google/apiclient-services/src/CloudTasks.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: 11.2 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 CloudTasks (v2).
24 *
25 * <p>
26 * Manages the execution of large numbers of distributed requests.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/tasks/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudTasks extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $projects_locations;
42 public $projects_locations_queues;
43 public $projects_locations_queues_tasks;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the CloudTasks service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://cloudtasks.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://cloudtasks.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v2';
61 $this->serviceName = 'cloudtasks';
62
63 $this->projects_locations = new CloudTasks\Resource\ProjectsLocations(
64 $this,
65 $this->serviceName,
66 'locations',
67 [
68 'methods' => [
69 'get' => [
70 'path' => 'v2/{+name}',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'name' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 ],
79 ],'getCmekConfig' => [
80 'path' => 'v2/{+name}',
81 'httpMethod' => 'GET',
82 'parameters' => [
83 'name' => [
84 'location' => 'path',
85 'type' => 'string',
86 'required' => true,
87 ],
88 ],
89 ],'list' => [
90 'path' => 'v2/{+name}/locations',
91 'httpMethod' => 'GET',
92 'parameters' => [
93 'name' => [
94 'location' => 'path',
95 'type' => 'string',
96 'required' => true,
97 ],
98 'filter' => [
99 'location' => 'query',
100 'type' => 'string',
101 ],
102 'pageSize' => [
103 'location' => 'query',
104 'type' => 'integer',
105 ],
106 'pageToken' => [
107 'location' => 'query',
108 'type' => 'string',
109 ],
110 ],
111 ],'updateCmekConfig' => [
112 'path' => 'v2/{+name}',
113 'httpMethod' => 'PATCH',
114 'parameters' => [
115 'name' => [
116 'location' => 'path',
117 'type' => 'string',
118 'required' => true,
119 ],
120 'updateMask' => [
121 'location' => 'query',
122 'type' => 'string',
123 ],
124 ],
125 ],
126 ]
127 ]
128 );
129 $this->projects_locations_queues = new CloudTasks\Resource\ProjectsLocationsQueues(
130 $this,
131 $this->serviceName,
132 'queues',
133 [
134 'methods' => [
135 'create' => [
136 'path' => 'v2/{+parent}/queues',
137 'httpMethod' => 'POST',
138 'parameters' => [
139 'parent' => [
140 'location' => 'path',
141 'type' => 'string',
142 'required' => true,
143 ],
144 ],
145 ],'delete' => [
146 'path' => 'v2/{+name}',
147 'httpMethod' => 'DELETE',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],'get' => [
156 'path' => 'v2/{+name}',
157 'httpMethod' => 'GET',
158 'parameters' => [
159 'name' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'getIamPolicy' => [
166 'path' => 'v2/{+resource}:getIamPolicy',
167 'httpMethod' => 'POST',
168 'parameters' => [
169 'resource' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 ],
175 ],'list' => [
176 'path' => 'v2/{+parent}/queues',
177 'httpMethod' => 'GET',
178 'parameters' => [
179 'parent' => [
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ],
184 'filter' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 'pageSize' => [
189 'location' => 'query',
190 'type' => 'integer',
191 ],
192 'pageToken' => [
193 'location' => 'query',
194 'type' => 'string',
195 ],
196 ],
197 ],'patch' => [
198 'path' => 'v2/{+name}',
199 'httpMethod' => 'PATCH',
200 'parameters' => [
201 'name' => [
202 'location' => 'path',
203 'type' => 'string',
204 'required' => true,
205 ],
206 'updateMask' => [
207 'location' => 'query',
208 'type' => 'string',
209 ],
210 ],
211 ],'pause' => [
212 'path' => 'v2/{+name}:pause',
213 'httpMethod' => 'POST',
214 'parameters' => [
215 'name' => [
216 'location' => 'path',
217 'type' => 'string',
218 'required' => true,
219 ],
220 ],
221 ],'purge' => [
222 'path' => 'v2/{+name}:purge',
223 'httpMethod' => 'POST',
224 'parameters' => [
225 'name' => [
226 'location' => 'path',
227 'type' => 'string',
228 'required' => true,
229 ],
230 ],
231 ],'resume' => [
232 'path' => 'v2/{+name}:resume',
233 'httpMethod' => 'POST',
234 'parameters' => [
235 'name' => [
236 'location' => 'path',
237 'type' => 'string',
238 'required' => true,
239 ],
240 ],
241 ],'setIamPolicy' => [
242 'path' => 'v2/{+resource}:setIamPolicy',
243 'httpMethod' => 'POST',
244 'parameters' => [
245 'resource' => [
246 'location' => 'path',
247 'type' => 'string',
248 'required' => true,
249 ],
250 ],
251 ],'testIamPermissions' => [
252 'path' => 'v2/{+resource}:testIamPermissions',
253 'httpMethod' => 'POST',
254 'parameters' => [
255 'resource' => [
256 'location' => 'path',
257 'type' => 'string',
258 'required' => true,
259 ],
260 ],
261 ],
262 ]
263 ]
264 );
265 $this->projects_locations_queues_tasks = new CloudTasks\Resource\ProjectsLocationsQueuesTasks(
266 $this,
267 $this->serviceName,
268 'tasks',
269 [
270 'methods' => [
271 'buffer' => [
272 'path' => 'v2/{+queue}/tasks/{taskId}:buffer',
273 'httpMethod' => 'POST',
274 'parameters' => [
275 'queue' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 'taskId' => [
281 'location' => 'path',
282 'type' => 'string',
283 'required' => true,
284 ],
285 ],
286 ],'create' => [
287 'path' => 'v2/{+parent}/tasks',
288 'httpMethod' => 'POST',
289 'parameters' => [
290 'parent' => [
291 'location' => 'path',
292 'type' => 'string',
293 'required' => true,
294 ],
295 ],
296 ],'delete' => [
297 'path' => 'v2/{+name}',
298 'httpMethod' => 'DELETE',
299 'parameters' => [
300 'name' => [
301 'location' => 'path',
302 'type' => 'string',
303 'required' => true,
304 ],
305 ],
306 ],'get' => [
307 'path' => 'v2/{+name}',
308 'httpMethod' => 'GET',
309 'parameters' => [
310 'name' => [
311 'location' => 'path',
312 'type' => 'string',
313 'required' => true,
314 ],
315 'responseView' => [
316 'location' => 'query',
317 'type' => 'string',
318 ],
319 ],
320 ],'list' => [
321 'path' => 'v2/{+parent}/tasks',
322 'httpMethod' => 'GET',
323 'parameters' => [
324 'parent' => [
325 'location' => 'path',
326 'type' => 'string',
327 'required' => true,
328 ],
329 'pageSize' => [
330 'location' => 'query',
331 'type' => 'integer',
332 ],
333 'pageToken' => [
334 'location' => 'query',
335 'type' => 'string',
336 ],
337 'responseView' => [
338 'location' => 'query',
339 'type' => 'string',
340 ],
341 ],
342 ],'run' => [
343 'path' => 'v2/{+name}:run',
344 'httpMethod' => 'POST',
345 'parameters' => [
346 'name' => [
347 'location' => 'path',
348 'type' => 'string',
349 'required' => true,
350 ],
351 ],
352 ],
353 ]
354 ]
355 );
356 }
357}
358
359// Adding a class alias for backwards compatibility with the previous class name.
360class_alias(CloudTasks::class, 'Google_Service_CloudTasks');
Note: See TracBrowser for help on using the repository browser.