source: vendor/google/apiclient-services/src/AndroidManagement.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 18.8 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 AndroidManagement (v1).
24 *
25 * <p>
26 * The Android Management API provides remote enterprise management of Android
27 * devices and apps.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/android/management" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class AndroidManagement extends \Google\Service
37{
38 /** Manage Android devices and apps for your customers. */
39 const ANDROIDMANAGEMENT =
40 "https://www.googleapis.com/auth/androidmanagement";
41
42 public $enterprises;
43 public $enterprises_applications;
44 public $enterprises_devices;
45 public $enterprises_devices_operations;
46 public $enterprises_enrollmentTokens;
47 public $enterprises_migrationTokens;
48 public $enterprises_policies;
49 public $enterprises_webApps;
50 public $enterprises_webTokens;
51 public $provisioningInfo;
52 public $signupUrls;
53 public $rootUrlTemplate;
54
55 /**
56 * Constructs the internal representation of the AndroidManagement service.
57 *
58 * @param Client|array $clientOrConfig The client used to deliver requests, or a
59 * config array to pass to a new Client instance.
60 * @param string $rootUrl The root URL used for requests to the service.
61 */
62 public function __construct($clientOrConfig = [], $rootUrl = null)
63 {
64 parent::__construct($clientOrConfig);
65 $this->rootUrl = $rootUrl ?: 'https://androidmanagement.googleapis.com/';
66 $this->rootUrlTemplate = $rootUrl ?: 'https://androidmanagement.UNIVERSE_DOMAIN/';
67 $this->servicePath = '';
68 $this->batchPath = 'batch';
69 $this->version = 'v1';
70 $this->serviceName = 'androidmanagement';
71
72 $this->enterprises = new AndroidManagement\Resource\Enterprises(
73 $this,
74 $this->serviceName,
75 'enterprises',
76 [
77 'methods' => [
78 'create' => [
79 'path' => 'v1/enterprises',
80 'httpMethod' => 'POST',
81 'parameters' => [
82 'agreementAccepted' => [
83 'location' => 'query',
84 'type' => 'boolean',
85 ],
86 'enterpriseToken' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 'projectId' => [
91 'location' => 'query',
92 'type' => 'string',
93 ],
94 'signupUrlName' => [
95 'location' => 'query',
96 'type' => 'string',
97 ],
98 ],
99 ],'delete' => [
100 'path' => 'v1/{+name}',
101 'httpMethod' => 'DELETE',
102 'parameters' => [
103 'name' => [
104 'location' => 'path',
105 'type' => 'string',
106 'required' => true,
107 ],
108 ],
109 ],'get' => [
110 'path' => 'v1/{+name}',
111 'httpMethod' => 'GET',
112 'parameters' => [
113 'name' => [
114 'location' => 'path',
115 'type' => 'string',
116 'required' => true,
117 ],
118 ],
119 ],'list' => [
120 'path' => 'v1/enterprises',
121 'httpMethod' => 'GET',
122 'parameters' => [
123 'pageSize' => [
124 'location' => 'query',
125 'type' => 'integer',
126 ],
127 'pageToken' => [
128 'location' => 'query',
129 'type' => 'string',
130 ],
131 'projectId' => [
132 'location' => 'query',
133 'type' => 'string',
134 ],
135 'view' => [
136 'location' => 'query',
137 'type' => 'string',
138 ],
139 ],
140 ],'patch' => [
141 'path' => 'v1/{+name}',
142 'httpMethod' => 'PATCH',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 'updateMask' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 ],
154 ],
155 ]
156 ]
157 );
158 $this->enterprises_applications = new AndroidManagement\Resource\EnterprisesApplications(
159 $this,
160 $this->serviceName,
161 'applications',
162 [
163 'methods' => [
164 'get' => [
165 'path' => 'v1/{+name}',
166 'httpMethod' => 'GET',
167 'parameters' => [
168 'name' => [
169 'location' => 'path',
170 'type' => 'string',
171 'required' => true,
172 ],
173 'languageCode' => [
174 'location' => 'query',
175 'type' => 'string',
176 ],
177 ],
178 ],
179 ]
180 ]
181 );
182 $this->enterprises_devices = new AndroidManagement\Resource\EnterprisesDevices(
183 $this,
184 $this->serviceName,
185 'devices',
186 [
187 'methods' => [
188 'delete' => [
189 'path' => 'v1/{+name}',
190 'httpMethod' => 'DELETE',
191 'parameters' => [
192 'name' => [
193 'location' => 'path',
194 'type' => 'string',
195 'required' => true,
196 ],
197 'wipeDataFlags' => [
198 'location' => 'query',
199 'type' => 'string',
200 'repeated' => true,
201 ],
202 'wipeReasonMessage' => [
203 'location' => 'query',
204 'type' => 'string',
205 ],
206 ],
207 ],'get' => [
208 'path' => 'v1/{+name}',
209 'httpMethod' => 'GET',
210 'parameters' => [
211 'name' => [
212 'location' => 'path',
213 'type' => 'string',
214 'required' => true,
215 ],
216 ],
217 ],'issueCommand' => [
218 'path' => 'v1/{+name}:issueCommand',
219 'httpMethod' => 'POST',
220 'parameters' => [
221 'name' => [
222 'location' => 'path',
223 'type' => 'string',
224 'required' => true,
225 ],
226 ],
227 ],'list' => [
228 'path' => 'v1/{+parent}/devices',
229 'httpMethod' => 'GET',
230 'parameters' => [
231 'parent' => [
232 'location' => 'path',
233 'type' => 'string',
234 'required' => true,
235 ],
236 'pageSize' => [
237 'location' => 'query',
238 'type' => 'integer',
239 ],
240 'pageToken' => [
241 'location' => 'query',
242 'type' => 'string',
243 ],
244 ],
245 ],'patch' => [
246 'path' => 'v1/{+name}',
247 'httpMethod' => 'PATCH',
248 'parameters' => [
249 'name' => [
250 'location' => 'path',
251 'type' => 'string',
252 'required' => true,
253 ],
254 'updateMask' => [
255 'location' => 'query',
256 'type' => 'string',
257 ],
258 ],
259 ],
260 ]
261 ]
262 );
263 $this->enterprises_devices_operations = new AndroidManagement\Resource\EnterprisesDevicesOperations(
264 $this,
265 $this->serviceName,
266 'operations',
267 [
268 'methods' => [
269 'cancel' => [
270 'path' => 'v1/{+name}:cancel',
271 'httpMethod' => 'POST',
272 'parameters' => [
273 'name' => [
274 'location' => 'path',
275 'type' => 'string',
276 'required' => true,
277 ],
278 ],
279 ],'get' => [
280 'path' => 'v1/{+name}',
281 'httpMethod' => 'GET',
282 'parameters' => [
283 'name' => [
284 'location' => 'path',
285 'type' => 'string',
286 'required' => true,
287 ],
288 ],
289 ],'list' => [
290 'path' => 'v1/{+name}',
291 'httpMethod' => 'GET',
292 'parameters' => [
293 'name' => [
294 'location' => 'path',
295 'type' => 'string',
296 'required' => true,
297 ],
298 'filter' => [
299 'location' => 'query',
300 'type' => 'string',
301 ],
302 'pageSize' => [
303 'location' => 'query',
304 'type' => 'integer',
305 ],
306 'pageToken' => [
307 'location' => 'query',
308 'type' => 'string',
309 ],
310 ],
311 ],
312 ]
313 ]
314 );
315 $this->enterprises_enrollmentTokens = new AndroidManagement\Resource\EnterprisesEnrollmentTokens(
316 $this,
317 $this->serviceName,
318 'enrollmentTokens',
319 [
320 'methods' => [
321 'create' => [
322 'path' => 'v1/{+parent}/enrollmentTokens',
323 'httpMethod' => 'POST',
324 'parameters' => [
325 'parent' => [
326 'location' => 'path',
327 'type' => 'string',
328 'required' => true,
329 ],
330 ],
331 ],'delete' => [
332 'path' => 'v1/{+name}',
333 'httpMethod' => 'DELETE',
334 'parameters' => [
335 'name' => [
336 'location' => 'path',
337 'type' => 'string',
338 'required' => true,
339 ],
340 ],
341 ],'get' => [
342 'path' => 'v1/{+name}',
343 'httpMethod' => 'GET',
344 'parameters' => [
345 'name' => [
346 'location' => 'path',
347 'type' => 'string',
348 'required' => true,
349 ],
350 ],
351 ],'list' => [
352 'path' => 'v1/{+parent}/enrollmentTokens',
353 'httpMethod' => 'GET',
354 'parameters' => [
355 'parent' => [
356 'location' => 'path',
357 'type' => 'string',
358 'required' => true,
359 ],
360 'pageSize' => [
361 'location' => 'query',
362 'type' => 'integer',
363 ],
364 'pageToken' => [
365 'location' => 'query',
366 'type' => 'string',
367 ],
368 ],
369 ],
370 ]
371 ]
372 );
373 $this->enterprises_migrationTokens = new AndroidManagement\Resource\EnterprisesMigrationTokens(
374 $this,
375 $this->serviceName,
376 'migrationTokens',
377 [
378 'methods' => [
379 'create' => [
380 'path' => 'v1/{+parent}/migrationTokens',
381 'httpMethod' => 'POST',
382 'parameters' => [
383 'parent' => [
384 'location' => 'path',
385 'type' => 'string',
386 'required' => true,
387 ],
388 ],
389 ],'get' => [
390 'path' => 'v1/{+name}',
391 'httpMethod' => 'GET',
392 'parameters' => [
393 'name' => [
394 'location' => 'path',
395 'type' => 'string',
396 'required' => true,
397 ],
398 ],
399 ],'list' => [
400 'path' => 'v1/{+parent}/migrationTokens',
401 'httpMethod' => 'GET',
402 'parameters' => [
403 'parent' => [
404 'location' => 'path',
405 'type' => 'string',
406 'required' => true,
407 ],
408 'pageSize' => [
409 'location' => 'query',
410 'type' => 'integer',
411 ],
412 'pageToken' => [
413 'location' => 'query',
414 'type' => 'string',
415 ],
416 ],
417 ],
418 ]
419 ]
420 );
421 $this->enterprises_policies = new AndroidManagement\Resource\EnterprisesPolicies(
422 $this,
423 $this->serviceName,
424 'policies',
425 [
426 'methods' => [
427 'delete' => [
428 'path' => 'v1/{+name}',
429 'httpMethod' => 'DELETE',
430 'parameters' => [
431 'name' => [
432 'location' => 'path',
433 'type' => 'string',
434 'required' => true,
435 ],
436 ],
437 ],'get' => [
438 'path' => 'v1/{+name}',
439 'httpMethod' => 'GET',
440 'parameters' => [
441 'name' => [
442 'location' => 'path',
443 'type' => 'string',
444 'required' => true,
445 ],
446 ],
447 ],'list' => [
448 'path' => 'v1/{+parent}/policies',
449 'httpMethod' => 'GET',
450 'parameters' => [
451 'parent' => [
452 'location' => 'path',
453 'type' => 'string',
454 'required' => true,
455 ],
456 'pageSize' => [
457 'location' => 'query',
458 'type' => 'integer',
459 ],
460 'pageToken' => [
461 'location' => 'query',
462 'type' => 'string',
463 ],
464 ],
465 ],'patch' => [
466 'path' => 'v1/{+name}',
467 'httpMethod' => 'PATCH',
468 'parameters' => [
469 'name' => [
470 'location' => 'path',
471 'type' => 'string',
472 'required' => true,
473 ],
474 'updateMask' => [
475 'location' => 'query',
476 'type' => 'string',
477 ],
478 ],
479 ],
480 ]
481 ]
482 );
483 $this->enterprises_webApps = new AndroidManagement\Resource\EnterprisesWebApps(
484 $this,
485 $this->serviceName,
486 'webApps',
487 [
488 'methods' => [
489 'create' => [
490 'path' => 'v1/{+parent}/webApps',
491 'httpMethod' => 'POST',
492 'parameters' => [
493 'parent' => [
494 'location' => 'path',
495 'type' => 'string',
496 'required' => true,
497 ],
498 ],
499 ],'delete' => [
500 'path' => 'v1/{+name}',
501 'httpMethod' => 'DELETE',
502 'parameters' => [
503 'name' => [
504 'location' => 'path',
505 'type' => 'string',
506 'required' => true,
507 ],
508 ],
509 ],'get' => [
510 'path' => 'v1/{+name}',
511 'httpMethod' => 'GET',
512 'parameters' => [
513 'name' => [
514 'location' => 'path',
515 'type' => 'string',
516 'required' => true,
517 ],
518 ],
519 ],'list' => [
520 'path' => 'v1/{+parent}/webApps',
521 'httpMethod' => 'GET',
522 'parameters' => [
523 'parent' => [
524 'location' => 'path',
525 'type' => 'string',
526 'required' => true,
527 ],
528 'pageSize' => [
529 'location' => 'query',
530 'type' => 'integer',
531 ],
532 'pageToken' => [
533 'location' => 'query',
534 'type' => 'string',
535 ],
536 ],
537 ],'patch' => [
538 'path' => 'v1/{+name}',
539 'httpMethod' => 'PATCH',
540 'parameters' => [
541 'name' => [
542 'location' => 'path',
543 'type' => 'string',
544 'required' => true,
545 ],
546 'updateMask' => [
547 'location' => 'query',
548 'type' => 'string',
549 ],
550 ],
551 ],
552 ]
553 ]
554 );
555 $this->enterprises_webTokens = new AndroidManagement\Resource\EnterprisesWebTokens(
556 $this,
557 $this->serviceName,
558 'webTokens',
559 [
560 'methods' => [
561 'create' => [
562 'path' => 'v1/{+parent}/webTokens',
563 'httpMethod' => 'POST',
564 'parameters' => [
565 'parent' => [
566 'location' => 'path',
567 'type' => 'string',
568 'required' => true,
569 ],
570 ],
571 ],
572 ]
573 ]
574 );
575 $this->provisioningInfo = new AndroidManagement\Resource\ProvisioningInfo(
576 $this,
577 $this->serviceName,
578 'provisioningInfo',
579 [
580 'methods' => [
581 'get' => [
582 'path' => 'v1/{+name}',
583 'httpMethod' => 'GET',
584 'parameters' => [
585 'name' => [
586 'location' => 'path',
587 'type' => 'string',
588 'required' => true,
589 ],
590 ],
591 ],
592 ]
593 ]
594 );
595 $this->signupUrls = new AndroidManagement\Resource\SignupUrls(
596 $this,
597 $this->serviceName,
598 'signupUrls',
599 [
600 'methods' => [
601 'create' => [
602 'path' => 'v1/signupUrls',
603 'httpMethod' => 'POST',
604 'parameters' => [
605 'adminEmail' => [
606 'location' => 'query',
607 'type' => 'string',
608 ],
609 'callbackUrl' => [
610 'location' => 'query',
611 'type' => 'string',
612 ],
613 'projectId' => [
614 'location' => 'query',
615 'type' => 'string',
616 ],
617 ],
618 ],
619 ]
620 ]
621 );
622 }
623}
624
625// Adding a class alias for backwards compatibility with the previous class name.
626class_alias(AndroidManagement::class, 'Google_Service_AndroidManagement');
Note: See TracBrowser for help on using the repository browser.