source: vendor/google/apiclient-services/src/ChromeManagement.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 24.3 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 ChromeManagement (v1).
24 *
25 * <p>
26 * The Chrome Management API is a suite of services that allows Chrome
27 * administrators to view, manage and gain insights on their Chrome OS and
28 * Chrome Browser devices.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="http://developers.google.com/chrome/management/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class ChromeManagement extends \Google\Service
38{
39 /** See detailed information about apps installed on Chrome browsers and devices managed by your organization. */
40 const CHROME_MANAGEMENT_APPDETAILS_READONLY =
41 "https://www.googleapis.com/auth/chrome.management.appdetails.readonly";
42 /** See reports about devices and Chrome browsers managed within your organization. */
43 const CHROME_MANAGEMENT_REPORTS_READONLY =
44 "https://www.googleapis.com/auth/chrome.management.reports.readonly";
45 /** See basic device and telemetry information collected from ChromeOS devices or users managed within your organization. */
46 const CHROME_MANAGEMENT_TELEMETRY_READONLY =
47 "https://www.googleapis.com/auth/chrome.management.telemetry.readonly";
48
49 public $customers_apps;
50 public $customers_apps_android;
51 public $customers_apps_chrome;
52 public $customers_apps_web;
53 public $customers_profiles;
54 public $customers_reports;
55 public $customers_telemetry_devices;
56 public $customers_telemetry_events;
57 public $customers_telemetry_notificationConfigs;
58 public $customers_telemetry_users;
59 public $rootUrlTemplate;
60
61 /**
62 * Constructs the internal representation of the ChromeManagement service.
63 *
64 * @param Client|array $clientOrConfig The client used to deliver requests, or a
65 * config array to pass to a new Client instance.
66 * @param string $rootUrl The root URL used for requests to the service.
67 */
68 public function __construct($clientOrConfig = [], $rootUrl = null)
69 {
70 parent::__construct($clientOrConfig);
71 $this->rootUrl = $rootUrl ?: 'https://chromemanagement.googleapis.com/';
72 $this->rootUrlTemplate = $rootUrl ?: 'https://chromemanagement.UNIVERSE_DOMAIN/';
73 $this->servicePath = '';
74 $this->batchPath = 'batch';
75 $this->version = 'v1';
76 $this->serviceName = 'chromemanagement';
77
78 $this->customers_apps = new ChromeManagement\Resource\CustomersApps(
79 $this,
80 $this->serviceName,
81 'apps',
82 [
83 'methods' => [
84 'countChromeAppRequests' => [
85 'path' => 'v1/{+customer}/apps:countChromeAppRequests',
86 'httpMethod' => 'GET',
87 'parameters' => [
88 'customer' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 'orderBy' => [
94 'location' => 'query',
95 'type' => 'string',
96 ],
97 'orgUnitId' => [
98 'location' => 'query',
99 'type' => 'string',
100 ],
101 'pageSize' => [
102 'location' => 'query',
103 'type' => 'integer',
104 ],
105 'pageToken' => [
106 'location' => 'query',
107 'type' => 'string',
108 ],
109 ],
110 ],'fetchDevicesRequestingExtension' => [
111 'path' => 'v1/{+customer}/apps:fetchDevicesRequestingExtension',
112 'httpMethod' => 'GET',
113 'parameters' => [
114 'customer' => [
115 'location' => 'path',
116 'type' => 'string',
117 'required' => true,
118 ],
119 'extensionId' => [
120 'location' => 'query',
121 'type' => 'string',
122 ],
123 'orgUnitId' => [
124 'location' => 'query',
125 'type' => 'string',
126 ],
127 'pageSize' => [
128 'location' => 'query',
129 'type' => 'integer',
130 ],
131 'pageToken' => [
132 'location' => 'query',
133 'type' => 'string',
134 ],
135 ],
136 ],'fetchUsersRequestingExtension' => [
137 'path' => 'v1/{+customer}/apps:fetchUsersRequestingExtension',
138 'httpMethod' => 'GET',
139 'parameters' => [
140 'customer' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 'extensionId' => [
146 'location' => 'query',
147 'type' => 'string',
148 ],
149 'orgUnitId' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 'pageSize' => [
154 'location' => 'query',
155 'type' => 'integer',
156 ],
157 'pageToken' => [
158 'location' => 'query',
159 'type' => 'string',
160 ],
161 ],
162 ],
163 ]
164 ]
165 );
166 $this->customers_apps_android = new ChromeManagement\Resource\CustomersAppsAndroid(
167 $this,
168 $this->serviceName,
169 'android',
170 [
171 'methods' => [
172 'get' => [
173 'path' => 'v1/{+name}',
174 'httpMethod' => 'GET',
175 'parameters' => [
176 'name' => [
177 'location' => 'path',
178 'type' => 'string',
179 'required' => true,
180 ],
181 ],
182 ],
183 ]
184 ]
185 );
186 $this->customers_apps_chrome = new ChromeManagement\Resource\CustomersAppsChrome(
187 $this,
188 $this->serviceName,
189 'chrome',
190 [
191 'methods' => [
192 'get' => [
193 'path' => 'v1/{+name}',
194 'httpMethod' => 'GET',
195 'parameters' => [
196 'name' => [
197 'location' => 'path',
198 'type' => 'string',
199 'required' => true,
200 ],
201 ],
202 ],
203 ]
204 ]
205 );
206 $this->customers_apps_web = new ChromeManagement\Resource\CustomersAppsWeb(
207 $this,
208 $this->serviceName,
209 'web',
210 [
211 'methods' => [
212 'get' => [
213 'path' => 'v1/{+name}',
214 'httpMethod' => 'GET',
215 'parameters' => [
216 'name' => [
217 'location' => 'path',
218 'type' => 'string',
219 'required' => true,
220 ],
221 ],
222 ],
223 ]
224 ]
225 );
226 $this->customers_profiles = new ChromeManagement\Resource\CustomersProfiles(
227 $this,
228 $this->serviceName,
229 'profiles',
230 [
231 'methods' => [
232 'delete' => [
233 'path' => 'v1/{+name}',
234 'httpMethod' => 'DELETE',
235 'parameters' => [
236 'name' => [
237 'location' => 'path',
238 'type' => 'string',
239 'required' => true,
240 ],
241 ],
242 ],'get' => [
243 'path' => 'v1/{+name}',
244 'httpMethod' => 'GET',
245 'parameters' => [
246 'name' => [
247 'location' => 'path',
248 'type' => 'string',
249 'required' => true,
250 ],
251 ],
252 ],'list' => [
253 'path' => 'v1/{+parent}/profiles',
254 'httpMethod' => 'GET',
255 'parameters' => [
256 'parent' => [
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ],
261 'filter' => [
262 'location' => 'query',
263 'type' => 'string',
264 ],
265 'orderBy' => [
266 'location' => 'query',
267 'type' => 'string',
268 ],
269 'pageSize' => [
270 'location' => 'query',
271 'type' => 'integer',
272 ],
273 'pageToken' => [
274 'location' => 'query',
275 'type' => 'string',
276 ],
277 ],
278 ],
279 ]
280 ]
281 );
282 $this->customers_reports = new ChromeManagement\Resource\CustomersReports(
283 $this,
284 $this->serviceName,
285 'reports',
286 [
287 'methods' => [
288 'countChromeBrowsersNeedingAttention' => [
289 'path' => 'v1/{+customer}/reports:countChromeBrowsersNeedingAttention',
290 'httpMethod' => 'GET',
291 'parameters' => [
292 'customer' => [
293 'location' => 'path',
294 'type' => 'string',
295 'required' => true,
296 ],
297 'orgUnitId' => [
298 'location' => 'query',
299 'type' => 'string',
300 ],
301 ],
302 ],'countChromeCrashEvents' => [
303 'path' => 'v1/{+customer}/reports:countChromeCrashEvents',
304 'httpMethod' => 'GET',
305 'parameters' => [
306 'customer' => [
307 'location' => 'path',
308 'type' => 'string',
309 'required' => true,
310 ],
311 'filter' => [
312 'location' => 'query',
313 'type' => 'string',
314 ],
315 'orderBy' => [
316 'location' => 'query',
317 'type' => 'string',
318 ],
319 'orgUnitId' => [
320 'location' => 'query',
321 'type' => 'string',
322 ],
323 ],
324 ],'countChromeDevicesReachingAutoExpirationDate' => [
325 'path' => 'v1/{+customer}/reports:countChromeDevicesReachingAutoExpirationDate',
326 'httpMethod' => 'GET',
327 'parameters' => [
328 'customer' => [
329 'location' => 'path',
330 'type' => 'string',
331 'required' => true,
332 ],
333 'maxAueDate' => [
334 'location' => 'query',
335 'type' => 'string',
336 ],
337 'minAueDate' => [
338 'location' => 'query',
339 'type' => 'string',
340 ],
341 'orgUnitId' => [
342 'location' => 'query',
343 'type' => 'string',
344 ],
345 ],
346 ],'countChromeDevicesThatNeedAttention' => [
347 'path' => 'v1/{+customer}/reports:countChromeDevicesThatNeedAttention',
348 'httpMethod' => 'GET',
349 'parameters' => [
350 'customer' => [
351 'location' => 'path',
352 'type' => 'string',
353 'required' => true,
354 ],
355 'orgUnitId' => [
356 'location' => 'query',
357 'type' => 'string',
358 ],
359 'readMask' => [
360 'location' => 'query',
361 'type' => 'string',
362 ],
363 ],
364 ],'countChromeHardwareFleetDevices' => [
365 'path' => 'v1/{+customer}/reports:countChromeHardwareFleetDevices',
366 'httpMethod' => 'GET',
367 'parameters' => [
368 'customer' => [
369 'location' => 'path',
370 'type' => 'string',
371 'required' => true,
372 ],
373 'orgUnitId' => [
374 'location' => 'query',
375 'type' => 'string',
376 ],
377 'readMask' => [
378 'location' => 'query',
379 'type' => 'string',
380 ],
381 ],
382 ],'countChromeVersions' => [
383 'path' => 'v1/{+customer}/reports:countChromeVersions',
384 'httpMethod' => 'GET',
385 'parameters' => [
386 'customer' => [
387 'location' => 'path',
388 'type' => 'string',
389 'required' => true,
390 ],
391 'filter' => [
392 'location' => 'query',
393 'type' => 'string',
394 ],
395 'orgUnitId' => [
396 'location' => 'query',
397 'type' => 'string',
398 ],
399 'pageSize' => [
400 'location' => 'query',
401 'type' => 'integer',
402 ],
403 'pageToken' => [
404 'location' => 'query',
405 'type' => 'string',
406 ],
407 ],
408 ],'countInstalledApps' => [
409 'path' => 'v1/{+customer}/reports:countInstalledApps',
410 'httpMethod' => 'GET',
411 'parameters' => [
412 'customer' => [
413 'location' => 'path',
414 'type' => 'string',
415 'required' => true,
416 ],
417 'filter' => [
418 'location' => 'query',
419 'type' => 'string',
420 ],
421 'orderBy' => [
422 'location' => 'query',
423 'type' => 'string',
424 ],
425 'orgUnitId' => [
426 'location' => 'query',
427 'type' => 'string',
428 ],
429 'pageSize' => [
430 'location' => 'query',
431 'type' => 'integer',
432 ],
433 'pageToken' => [
434 'location' => 'query',
435 'type' => 'string',
436 ],
437 ],
438 ],'countPrintJobsByPrinter' => [
439 'path' => 'v1/{+customer}/reports:countPrintJobsByPrinter',
440 'httpMethod' => 'GET',
441 'parameters' => [
442 'customer' => [
443 'location' => 'path',
444 'type' => 'string',
445 'required' => true,
446 ],
447 'filter' => [
448 'location' => 'query',
449 'type' => 'string',
450 ],
451 'orderBy' => [
452 'location' => 'query',
453 'type' => 'string',
454 ],
455 'pageSize' => [
456 'location' => 'query',
457 'type' => 'integer',
458 ],
459 'pageToken' => [
460 'location' => 'query',
461 'type' => 'string',
462 ],
463 'printerOrgUnitId' => [
464 'location' => 'query',
465 'type' => 'string',
466 ],
467 ],
468 ],'countPrintJobsByUser' => [
469 'path' => 'v1/{+customer}/reports:countPrintJobsByUser',
470 'httpMethod' => 'GET',
471 'parameters' => [
472 'customer' => [
473 'location' => 'path',
474 'type' => 'string',
475 'required' => true,
476 ],
477 'filter' => [
478 'location' => 'query',
479 'type' => 'string',
480 ],
481 'orderBy' => [
482 'location' => 'query',
483 'type' => 'string',
484 ],
485 'pageSize' => [
486 'location' => 'query',
487 'type' => 'integer',
488 ],
489 'pageToken' => [
490 'location' => 'query',
491 'type' => 'string',
492 ],
493 'printerOrgUnitId' => [
494 'location' => 'query',
495 'type' => 'string',
496 ],
497 ],
498 ],'enumeratePrintJobs' => [
499 'path' => 'v1/{+customer}/reports:enumeratePrintJobs',
500 'httpMethod' => 'GET',
501 'parameters' => [
502 'customer' => [
503 'location' => 'path',
504 'type' => 'string',
505 'required' => true,
506 ],
507 'filter' => [
508 'location' => 'query',
509 'type' => 'string',
510 ],
511 'orderBy' => [
512 'location' => 'query',
513 'type' => 'string',
514 ],
515 'pageSize' => [
516 'location' => 'query',
517 'type' => 'integer',
518 ],
519 'pageToken' => [
520 'location' => 'query',
521 'type' => 'string',
522 ],
523 'printerOrgUnitId' => [
524 'location' => 'query',
525 'type' => 'string',
526 ],
527 ],
528 ],'findInstalledAppDevices' => [
529 'path' => 'v1/{+customer}/reports:findInstalledAppDevices',
530 'httpMethod' => 'GET',
531 'parameters' => [
532 'customer' => [
533 'location' => 'path',
534 'type' => 'string',
535 'required' => true,
536 ],
537 'appId' => [
538 'location' => 'query',
539 'type' => 'string',
540 ],
541 'appType' => [
542 'location' => 'query',
543 'type' => 'string',
544 ],
545 'filter' => [
546 'location' => 'query',
547 'type' => 'string',
548 ],
549 'orderBy' => [
550 'location' => 'query',
551 'type' => 'string',
552 ],
553 'orgUnitId' => [
554 'location' => 'query',
555 'type' => 'string',
556 ],
557 'pageSize' => [
558 'location' => 'query',
559 'type' => 'integer',
560 ],
561 'pageToken' => [
562 'location' => 'query',
563 'type' => 'string',
564 ],
565 ],
566 ],
567 ]
568 ]
569 );
570 $this->customers_telemetry_devices = new ChromeManagement\Resource\CustomersTelemetryDevices(
571 $this,
572 $this->serviceName,
573 'devices',
574 [
575 'methods' => [
576 'get' => [
577 'path' => 'v1/{+name}',
578 'httpMethod' => 'GET',
579 'parameters' => [
580 'name' => [
581 'location' => 'path',
582 'type' => 'string',
583 'required' => true,
584 ],
585 'readMask' => [
586 'location' => 'query',
587 'type' => 'string',
588 ],
589 ],
590 ],'list' => [
591 'path' => 'v1/{+parent}/telemetry/devices',
592 'httpMethod' => 'GET',
593 'parameters' => [
594 'parent' => [
595 'location' => 'path',
596 'type' => 'string',
597 'required' => true,
598 ],
599 'filter' => [
600 'location' => 'query',
601 'type' => 'string',
602 ],
603 'pageSize' => [
604 'location' => 'query',
605 'type' => 'integer',
606 ],
607 'pageToken' => [
608 'location' => 'query',
609 'type' => 'string',
610 ],
611 'readMask' => [
612 'location' => 'query',
613 'type' => 'string',
614 ],
615 ],
616 ],
617 ]
618 ]
619 );
620 $this->customers_telemetry_events = new ChromeManagement\Resource\CustomersTelemetryEvents(
621 $this,
622 $this->serviceName,
623 'events',
624 [
625 'methods' => [
626 'list' => [
627 'path' => 'v1/{+parent}/telemetry/events',
628 'httpMethod' => 'GET',
629 'parameters' => [
630 'parent' => [
631 'location' => 'path',
632 'type' => 'string',
633 'required' => true,
634 ],
635 'filter' => [
636 'location' => 'query',
637 'type' => 'string',
638 ],
639 'pageSize' => [
640 'location' => 'query',
641 'type' => 'integer',
642 ],
643 'pageToken' => [
644 'location' => 'query',
645 'type' => 'string',
646 ],
647 'readMask' => [
648 'location' => 'query',
649 'type' => 'string',
650 ],
651 ],
652 ],
653 ]
654 ]
655 );
656 $this->customers_telemetry_notificationConfigs = new ChromeManagement\Resource\CustomersTelemetryNotificationConfigs(
657 $this,
658 $this->serviceName,
659 'notificationConfigs',
660 [
661 'methods' => [
662 'create' => [
663 'path' => 'v1/{+parent}/telemetry/notificationConfigs',
664 'httpMethod' => 'POST',
665 'parameters' => [
666 'parent' => [
667 'location' => 'path',
668 'type' => 'string',
669 'required' => true,
670 ],
671 ],
672 ],'delete' => [
673 'path' => 'v1/{+name}',
674 'httpMethod' => 'DELETE',
675 'parameters' => [
676 'name' => [
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ],
681 ],
682 ],'list' => [
683 'path' => 'v1/{+parent}/telemetry/notificationConfigs',
684 'httpMethod' => 'GET',
685 'parameters' => [
686 'parent' => [
687 'location' => 'path',
688 'type' => 'string',
689 'required' => true,
690 ],
691 'pageSize' => [
692 'location' => 'query',
693 'type' => 'integer',
694 ],
695 'pageToken' => [
696 'location' => 'query',
697 'type' => 'string',
698 ],
699 ],
700 ],
701 ]
702 ]
703 );
704 $this->customers_telemetry_users = new ChromeManagement\Resource\CustomersTelemetryUsers(
705 $this,
706 $this->serviceName,
707 'users',
708 [
709 'methods' => [
710 'get' => [
711 'path' => 'v1/{+name}',
712 'httpMethod' => 'GET',
713 'parameters' => [
714 'name' => [
715 'location' => 'path',
716 'type' => 'string',
717 'required' => true,
718 ],
719 'readMask' => [
720 'location' => 'query',
721 'type' => 'string',
722 ],
723 ],
724 ],'list' => [
725 'path' => 'v1/{+parent}/telemetry/users',
726 'httpMethod' => 'GET',
727 'parameters' => [
728 'parent' => [
729 'location' => 'path',
730 'type' => 'string',
731 'required' => true,
732 ],
733 'filter' => [
734 'location' => 'query',
735 'type' => 'string',
736 ],
737 'pageSize' => [
738 'location' => 'query',
739 'type' => 'integer',
740 ],
741 'pageToken' => [
742 'location' => 'query',
743 'type' => 'string',
744 ],
745 'readMask' => [
746 'location' => 'query',
747 'type' => 'string',
748 ],
749 ],
750 ],
751 ]
752 ]
753 );
754 }
755}
756
757// Adding a class alias for backwards compatibility with the previous class name.
758class_alias(ChromeManagement::class, 'Google_Service_ChromeManagement');
Note: See TracBrowser for help on using the repository browser.