source: vendor/google/apiclient-services/src/Directory.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: 78.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 Directory (directory_v1).
24 *
25 * <p>
26 * Admin SDK lets administrators of enterprise domains to view and manage
27 * resources like user, groups etc. It also provides audit and usage reports of
28 * domain.</p>
29 *
30 * <p>
31 * For more information about this service, see the API
32 * <a href="https://developers.google.com/admin-sdk/" target="_blank">Documentation</a>
33 * </p>
34 *
35 * @author Google, Inc.
36 */
37class Directory extends \Google\Service
38{
39 /** See, add, edit, and permanently delete the printers that your organization can use with Chrome. */
40 const ADMIN_CHROME_PRINTERS =
41 "https://www.googleapis.com/auth/admin.chrome.printers";
42 /** See the printers that your organization can use with Chrome. */
43 const ADMIN_CHROME_PRINTERS_READONLY =
44 "https://www.googleapis.com/auth/admin.chrome.printers.readonly";
45 /** View and manage customer related information. */
46 const ADMIN_DIRECTORY_CUSTOMER =
47 "https://www.googleapis.com/auth/admin.directory.customer";
48 /** View customer related information. */
49 const ADMIN_DIRECTORY_CUSTOMER_READONLY =
50 "https://www.googleapis.com/auth/admin.directory.customer.readonly";
51 /** View and manage your ChromeOS devices' metadata. */
52 const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
53 "https://www.googleapis.com/auth/admin.directory.device.chromeos";
54 /** View your ChromeOS devices' metadata. */
55 const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
56 "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
57 /** View and manage your mobile devices' metadata. */
58 const ADMIN_DIRECTORY_DEVICE_MOBILE =
59 "https://www.googleapis.com/auth/admin.directory.device.mobile";
60 /** Manage your mobile devices by performing administrative tasks. */
61 const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
62 "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
63 /** View your mobile devices' metadata. */
64 const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
65 "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
66 /** View and manage the provisioning of domains for your customers. */
67 const ADMIN_DIRECTORY_DOMAIN =
68 "https://www.googleapis.com/auth/admin.directory.domain";
69 /** View domains related to your customers. */
70 const ADMIN_DIRECTORY_DOMAIN_READONLY =
71 "https://www.googleapis.com/auth/admin.directory.domain.readonly";
72 /** View and manage the provisioning of groups on your domain. */
73 const ADMIN_DIRECTORY_GROUP =
74 "https://www.googleapis.com/auth/admin.directory.group";
75 /** View and manage group subscriptions on your domain. */
76 const ADMIN_DIRECTORY_GROUP_MEMBER =
77 "https://www.googleapis.com/auth/admin.directory.group.member";
78 /** View group subscriptions on your domain. */
79 const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
80 "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
81 /** View groups on your domain. */
82 const ADMIN_DIRECTORY_GROUP_READONLY =
83 "https://www.googleapis.com/auth/admin.directory.group.readonly";
84 /** View and manage organization units on your domain. */
85 const ADMIN_DIRECTORY_ORGUNIT =
86 "https://www.googleapis.com/auth/admin.directory.orgunit";
87 /** View organization units on your domain. */
88 const ADMIN_DIRECTORY_ORGUNIT_READONLY =
89 "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
90 /** View and manage the provisioning of calendar resources on your domain. */
91 const ADMIN_DIRECTORY_RESOURCE_CALENDAR =
92 "https://www.googleapis.com/auth/admin.directory.resource.calendar";
93 /** View calendar resources on your domain. */
94 const ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY =
95 "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
96 /** Manage delegated admin roles for your domain. */
97 const ADMIN_DIRECTORY_ROLEMANAGEMENT =
98 "https://www.googleapis.com/auth/admin.directory.rolemanagement";
99 /** View delegated admin roles for your domain. */
100 const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY =
101 "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
102 /** View and manage the provisioning of users on your domain. */
103 const ADMIN_DIRECTORY_USER =
104 "https://www.googleapis.com/auth/admin.directory.user";
105 /** View and manage user aliases on your domain. */
106 const ADMIN_DIRECTORY_USER_ALIAS =
107 "https://www.googleapis.com/auth/admin.directory.user.alias";
108 /** View user aliases on your domain. */
109 const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
110 "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
111 /** See info about users on your domain. */
112 const ADMIN_DIRECTORY_USER_READONLY =
113 "https://www.googleapis.com/auth/admin.directory.user.readonly";
114 /** Manage data access permissions for users on your domain. */
115 const ADMIN_DIRECTORY_USER_SECURITY =
116 "https://www.googleapis.com/auth/admin.directory.user.security";
117 /** View and manage the provisioning of user schemas on your domain. */
118 const ADMIN_DIRECTORY_USERSCHEMA =
119 "https://www.googleapis.com/auth/admin.directory.userschema";
120 /** View user schemas on your domain. */
121 const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
122 "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
123 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
124 const CLOUD_PLATFORM =
125 "https://www.googleapis.com/auth/cloud-platform";
126
127 public $asps;
128 public $channels;
129 public $chromeosdevices;
130 public $customer_devices_chromeos;
131 public $customer_devices_chromeos_commands;
132 public $customers;
133 public $customers_chrome_printServers;
134 public $customers_chrome_printers;
135 public $domainAliases;
136 public $domains;
137 public $groups;
138 public $groups_aliases;
139 public $members;
140 public $mobiledevices;
141 public $orgunits;
142 public $privileges;
143 public $resources_buildings;
144 public $resources_calendars;
145 public $resources_features;
146 public $roleAssignments;
147 public $roles;
148 public $schemas;
149 public $tokens;
150 public $twoStepVerification;
151 public $users;
152 public $users_aliases;
153 public $users_photos;
154 public $verificationCodes;
155 public $rootUrlTemplate;
156
157 /**
158 * Constructs the internal representation of the Directory service.
159 *
160 * @param Client|array $clientOrConfig The client used to deliver requests, or a
161 * config array to pass to a new Client instance.
162 * @param string $rootUrl The root URL used for requests to the service.
163 */
164 public function __construct($clientOrConfig = [], $rootUrl = null)
165 {
166 parent::__construct($clientOrConfig);
167 $this->rootUrl = $rootUrl ?: 'https://admin.googleapis.com/';
168 $this->rootUrlTemplate = $rootUrl ?: 'https://admin.UNIVERSE_DOMAIN/';
169 $this->servicePath = '';
170 $this->batchPath = 'batch';
171 $this->version = 'directory_v1';
172 $this->serviceName = 'admin';
173
174 $this->asps = new Directory\Resource\Asps(
175 $this,
176 $this->serviceName,
177 'asps',
178 [
179 'methods' => [
180 'delete' => [
181 'path' => 'admin/directory/v1/users/{userKey}/asps/{codeId}',
182 'httpMethod' => 'DELETE',
183 'parameters' => [
184 'userKey' => [
185 'location' => 'path',
186 'type' => 'string',
187 'required' => true,
188 ],
189 'codeId' => [
190 'location' => 'path',
191 'type' => 'integer',
192 'required' => true,
193 ],
194 ],
195 ],'get' => [
196 'path' => 'admin/directory/v1/users/{userKey}/asps/{codeId}',
197 'httpMethod' => 'GET',
198 'parameters' => [
199 'userKey' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 'codeId' => [
205 'location' => 'path',
206 'type' => 'integer',
207 'required' => true,
208 ],
209 ],
210 ],'list' => [
211 'path' => 'admin/directory/v1/users/{userKey}/asps',
212 'httpMethod' => 'GET',
213 'parameters' => [
214 'userKey' => [
215 'location' => 'path',
216 'type' => 'string',
217 'required' => true,
218 ],
219 ],
220 ],
221 ]
222 ]
223 );
224 $this->channels = new Directory\Resource\Channels(
225 $this,
226 $this->serviceName,
227 'channels',
228 [
229 'methods' => [
230 'stop' => [
231 'path' => 'admin/directory_v1/channels/stop',
232 'httpMethod' => 'POST',
233 'parameters' => [],
234 ],
235 ]
236 ]
237 );
238 $this->chromeosdevices = new Directory\Resource\Chromeosdevices(
239 $this,
240 $this->serviceName,
241 'chromeosdevices',
242 [
243 'methods' => [
244 'action' => [
245 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action',
246 'httpMethod' => 'POST',
247 'parameters' => [
248 'customerId' => [
249 'location' => 'path',
250 'type' => 'string',
251 'required' => true,
252 ],
253 'resourceId' => [
254 'location' => 'path',
255 'type' => 'string',
256 'required' => true,
257 ],
258 ],
259 ],'get' => [
260 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}',
261 'httpMethod' => 'GET',
262 'parameters' => [
263 'customerId' => [
264 'location' => 'path',
265 'type' => 'string',
266 'required' => true,
267 ],
268 'deviceId' => [
269 'location' => 'path',
270 'type' => 'string',
271 'required' => true,
272 ],
273 'projection' => [
274 'location' => 'query',
275 'type' => 'string',
276 ],
277 ],
278 ],'list' => [
279 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos',
280 'httpMethod' => 'GET',
281 'parameters' => [
282 'customerId' => [
283 'location' => 'path',
284 'type' => 'string',
285 'required' => true,
286 ],
287 'includeChildOrgunits' => [
288 'location' => 'query',
289 'type' => 'boolean',
290 ],
291 'maxResults' => [
292 'location' => 'query',
293 'type' => 'integer',
294 ],
295 'orderBy' => [
296 'location' => 'query',
297 'type' => 'string',
298 ],
299 'orgUnitPath' => [
300 'location' => 'query',
301 'type' => 'string',
302 ],
303 'pageToken' => [
304 'location' => 'query',
305 'type' => 'string',
306 ],
307 'projection' => [
308 'location' => 'query',
309 'type' => 'string',
310 ],
311 'query' => [
312 'location' => 'query',
313 'type' => 'string',
314 ],
315 'sortOrder' => [
316 'location' => 'query',
317 'type' => 'string',
318 ],
319 ],
320 ],'moveDevicesToOu' => [
321 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu',
322 'httpMethod' => 'POST',
323 'parameters' => [
324 'customerId' => [
325 'location' => 'path',
326 'type' => 'string',
327 'required' => true,
328 ],
329 'orgUnitPath' => [
330 'location' => 'query',
331 'type' => 'string',
332 'required' => true,
333 ],
334 ],
335 ],'patch' => [
336 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}',
337 'httpMethod' => 'PATCH',
338 'parameters' => [
339 'customerId' => [
340 'location' => 'path',
341 'type' => 'string',
342 'required' => true,
343 ],
344 'deviceId' => [
345 'location' => 'path',
346 'type' => 'string',
347 'required' => true,
348 ],
349 'projection' => [
350 'location' => 'query',
351 'type' => 'string',
352 ],
353 ],
354 ],'update' => [
355 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}',
356 'httpMethod' => 'PUT',
357 'parameters' => [
358 'customerId' => [
359 'location' => 'path',
360 'type' => 'string',
361 'required' => true,
362 ],
363 'deviceId' => [
364 'location' => 'path',
365 'type' => 'string',
366 'required' => true,
367 ],
368 'projection' => [
369 'location' => 'query',
370 'type' => 'string',
371 ],
372 ],
373 ],
374 ]
375 ]
376 );
377 $this->customer_devices_chromeos = new Directory\Resource\CustomerDevicesChromeos(
378 $this,
379 $this->serviceName,
380 'chromeos',
381 [
382 'methods' => [
383 'batchChangeStatus' => [
384 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus',
385 'httpMethod' => 'POST',
386 'parameters' => [
387 'customerId' => [
388 'location' => 'path',
389 'type' => 'string',
390 'required' => true,
391 ],
392 ],
393 ],'issueCommand' => [
394 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand',
395 'httpMethod' => 'POST',
396 'parameters' => [
397 'customerId' => [
398 'location' => 'path',
399 'type' => 'string',
400 'required' => true,
401 ],
402 'deviceId' => [
403 'location' => 'path',
404 'type' => 'string',
405 'required' => true,
406 ],
407 ],
408 ],
409 ]
410 ]
411 );
412 $this->customer_devices_chromeos_commands = new Directory\Resource\CustomerDevicesChromeosCommands(
413 $this,
414 $this->serviceName,
415 'commands',
416 [
417 'methods' => [
418 'get' => [
419 'path' => 'admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}',
420 'httpMethod' => 'GET',
421 'parameters' => [
422 'customerId' => [
423 'location' => 'path',
424 'type' => 'string',
425 'required' => true,
426 ],
427 'deviceId' => [
428 'location' => 'path',
429 'type' => 'string',
430 'required' => true,
431 ],
432 'commandId' => [
433 'location' => 'path',
434 'type' => 'string',
435 'required' => true,
436 ],
437 ],
438 ],
439 ]
440 ]
441 );
442 $this->customers = new Directory\Resource\Customers(
443 $this,
444 $this->serviceName,
445 'customers',
446 [
447 'methods' => [
448 'get' => [
449 'path' => 'admin/directory/v1/customers/{customerKey}',
450 'httpMethod' => 'GET',
451 'parameters' => [
452 'customerKey' => [
453 'location' => 'path',
454 'type' => 'string',
455 'required' => true,
456 ],
457 ],
458 ],'patch' => [
459 'path' => 'admin/directory/v1/customers/{customerKey}',
460 'httpMethod' => 'PATCH',
461 'parameters' => [
462 'customerKey' => [
463 'location' => 'path',
464 'type' => 'string',
465 'required' => true,
466 ],
467 ],
468 ],'update' => [
469 'path' => 'admin/directory/v1/customers/{customerKey}',
470 'httpMethod' => 'PUT',
471 'parameters' => [
472 'customerKey' => [
473 'location' => 'path',
474 'type' => 'string',
475 'required' => true,
476 ],
477 ],
478 ],
479 ]
480 ]
481 );
482 $this->customers_chrome_printServers = new Directory\Resource\CustomersChromePrintServers(
483 $this,
484 $this->serviceName,
485 'printServers',
486 [
487 'methods' => [
488 'batchCreatePrintServers' => [
489 'path' => 'admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers',
490 'httpMethod' => 'POST',
491 'parameters' => [
492 'parent' => [
493 'location' => 'path',
494 'type' => 'string',
495 'required' => true,
496 ],
497 ],
498 ],'batchDeletePrintServers' => [
499 'path' => 'admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers',
500 'httpMethod' => 'POST',
501 'parameters' => [
502 'parent' => [
503 'location' => 'path',
504 'type' => 'string',
505 'required' => true,
506 ],
507 ],
508 ],'create' => [
509 'path' => 'admin/directory/v1/{+parent}/chrome/printServers',
510 'httpMethod' => 'POST',
511 'parameters' => [
512 'parent' => [
513 'location' => 'path',
514 'type' => 'string',
515 'required' => true,
516 ],
517 ],
518 ],'delete' => [
519 'path' => 'admin/directory/v1/{+name}',
520 'httpMethod' => 'DELETE',
521 'parameters' => [
522 'name' => [
523 'location' => 'path',
524 'type' => 'string',
525 'required' => true,
526 ],
527 ],
528 ],'get' => [
529 'path' => 'admin/directory/v1/{+name}',
530 'httpMethod' => 'GET',
531 'parameters' => [
532 'name' => [
533 'location' => 'path',
534 'type' => 'string',
535 'required' => true,
536 ],
537 ],
538 ],'list' => [
539 'path' => 'admin/directory/v1/{+parent}/chrome/printServers',
540 'httpMethod' => 'GET',
541 'parameters' => [
542 'parent' => [
543 'location' => 'path',
544 'type' => 'string',
545 'required' => true,
546 ],
547 'filter' => [
548 'location' => 'query',
549 'type' => 'string',
550 ],
551 'orderBy' => [
552 'location' => 'query',
553 'type' => 'string',
554 ],
555 'orgUnitId' => [
556 'location' => 'query',
557 'type' => 'string',
558 ],
559 'pageSize' => [
560 'location' => 'query',
561 'type' => 'integer',
562 ],
563 'pageToken' => [
564 'location' => 'query',
565 'type' => 'string',
566 ],
567 ],
568 ],'patch' => [
569 'path' => 'admin/directory/v1/{+name}',
570 'httpMethod' => 'PATCH',
571 'parameters' => [
572 'name' => [
573 'location' => 'path',
574 'type' => 'string',
575 'required' => true,
576 ],
577 'updateMask' => [
578 'location' => 'query',
579 'type' => 'string',
580 ],
581 ],
582 ],
583 ]
584 ]
585 );
586 $this->customers_chrome_printers = new Directory\Resource\CustomersChromePrinters(
587 $this,
588 $this->serviceName,
589 'printers',
590 [
591 'methods' => [
592 'batchCreatePrinters' => [
593 'path' => 'admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters',
594 'httpMethod' => 'POST',
595 'parameters' => [
596 'parent' => [
597 'location' => 'path',
598 'type' => 'string',
599 'required' => true,
600 ],
601 ],
602 ],'batchDeletePrinters' => [
603 'path' => 'admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters',
604 'httpMethod' => 'POST',
605 'parameters' => [
606 'parent' => [
607 'location' => 'path',
608 'type' => 'string',
609 'required' => true,
610 ],
611 ],
612 ],'create' => [
613 'path' => 'admin/directory/v1/{+parent}/chrome/printers',
614 'httpMethod' => 'POST',
615 'parameters' => [
616 'parent' => [
617 'location' => 'path',
618 'type' => 'string',
619 'required' => true,
620 ],
621 ],
622 ],'delete' => [
623 'path' => 'admin/directory/v1/{+name}',
624 'httpMethod' => 'DELETE',
625 'parameters' => [
626 'name' => [
627 'location' => 'path',
628 'type' => 'string',
629 'required' => true,
630 ],
631 ],
632 ],'get' => [
633 'path' => 'admin/directory/v1/{+name}',
634 'httpMethod' => 'GET',
635 'parameters' => [
636 'name' => [
637 'location' => 'path',
638 'type' => 'string',
639 'required' => true,
640 ],
641 ],
642 ],'list' => [
643 'path' => 'admin/directory/v1/{+parent}/chrome/printers',
644 'httpMethod' => 'GET',
645 'parameters' => [
646 'parent' => [
647 'location' => 'path',
648 'type' => 'string',
649 'required' => true,
650 ],
651 'filter' => [
652 'location' => 'query',
653 'type' => 'string',
654 ],
655 'orderBy' => [
656 'location' => 'query',
657 'type' => 'string',
658 ],
659 'orgUnitId' => [
660 'location' => 'query',
661 'type' => 'string',
662 ],
663 'pageSize' => [
664 'location' => 'query',
665 'type' => 'integer',
666 ],
667 'pageToken' => [
668 'location' => 'query',
669 'type' => 'string',
670 ],
671 ],
672 ],'listPrinterModels' => [
673 'path' => 'admin/directory/v1/{+parent}/chrome/printers:listPrinterModels',
674 'httpMethod' => 'GET',
675 'parameters' => [
676 'parent' => [
677 'location' => 'path',
678 'type' => 'string',
679 'required' => true,
680 ],
681 'filter' => [
682 'location' => 'query',
683 'type' => 'string',
684 ],
685 'pageSize' => [
686 'location' => 'query',
687 'type' => 'integer',
688 ],
689 'pageToken' => [
690 'location' => 'query',
691 'type' => 'string',
692 ],
693 ],
694 ],'patch' => [
695 'path' => 'admin/directory/v1/{+name}',
696 'httpMethod' => 'PATCH',
697 'parameters' => [
698 'name' => [
699 'location' => 'path',
700 'type' => 'string',
701 'required' => true,
702 ],
703 'clearMask' => [
704 'location' => 'query',
705 'type' => 'string',
706 ],
707 'updateMask' => [
708 'location' => 'query',
709 'type' => 'string',
710 ],
711 ],
712 ],
713 ]
714 ]
715 );
716 $this->domainAliases = new Directory\Resource\DomainAliases(
717 $this,
718 $this->serviceName,
719 'domainAliases',
720 [
721 'methods' => [
722 'delete' => [
723 'path' => 'admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}',
724 'httpMethod' => 'DELETE',
725 'parameters' => [
726 'customer' => [
727 'location' => 'path',
728 'type' => 'string',
729 'required' => true,
730 ],
731 'domainAliasName' => [
732 'location' => 'path',
733 'type' => 'string',
734 'required' => true,
735 ],
736 ],
737 ],'get' => [
738 'path' => 'admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}',
739 'httpMethod' => 'GET',
740 'parameters' => [
741 'customer' => [
742 'location' => 'path',
743 'type' => 'string',
744 'required' => true,
745 ],
746 'domainAliasName' => [
747 'location' => 'path',
748 'type' => 'string',
749 'required' => true,
750 ],
751 ],
752 ],'insert' => [
753 'path' => 'admin/directory/v1/customer/{customer}/domainaliases',
754 'httpMethod' => 'POST',
755 'parameters' => [
756 'customer' => [
757 'location' => 'path',
758 'type' => 'string',
759 'required' => true,
760 ],
761 ],
762 ],'list' => [
763 'path' => 'admin/directory/v1/customer/{customer}/domainaliases',
764 'httpMethod' => 'GET',
765 'parameters' => [
766 'customer' => [
767 'location' => 'path',
768 'type' => 'string',
769 'required' => true,
770 ],
771 'parentDomainName' => [
772 'location' => 'query',
773 'type' => 'string',
774 ],
775 ],
776 ],
777 ]
778 ]
779 );
780 $this->domains = new Directory\Resource\Domains(
781 $this,
782 $this->serviceName,
783 'domains',
784 [
785 'methods' => [
786 'delete' => [
787 'path' => 'admin/directory/v1/customer/{customer}/domains/{domainName}',
788 'httpMethod' => 'DELETE',
789 'parameters' => [
790 'customer' => [
791 'location' => 'path',
792 'type' => 'string',
793 'required' => true,
794 ],
795 'domainName' => [
796 'location' => 'path',
797 'type' => 'string',
798 'required' => true,
799 ],
800 ],
801 ],'get' => [
802 'path' => 'admin/directory/v1/customer/{customer}/domains/{domainName}',
803 'httpMethod' => 'GET',
804 'parameters' => [
805 'customer' => [
806 'location' => 'path',
807 'type' => 'string',
808 'required' => true,
809 ],
810 'domainName' => [
811 'location' => 'path',
812 'type' => 'string',
813 'required' => true,
814 ],
815 ],
816 ],'insert' => [
817 'path' => 'admin/directory/v1/customer/{customer}/domains',
818 'httpMethod' => 'POST',
819 'parameters' => [
820 'customer' => [
821 'location' => 'path',
822 'type' => 'string',
823 'required' => true,
824 ],
825 ],
826 ],'list' => [
827 'path' => 'admin/directory/v1/customer/{customer}/domains',
828 'httpMethod' => 'GET',
829 'parameters' => [
830 'customer' => [
831 'location' => 'path',
832 'type' => 'string',
833 'required' => true,
834 ],
835 ],
836 ],
837 ]
838 ]
839 );
840 $this->groups = new Directory\Resource\Groups(
841 $this,
842 $this->serviceName,
843 'groups',
844 [
845 'methods' => [
846 'delete' => [
847 'path' => 'admin/directory/v1/groups/{groupKey}',
848 'httpMethod' => 'DELETE',
849 'parameters' => [
850 'groupKey' => [
851 'location' => 'path',
852 'type' => 'string',
853 'required' => true,
854 ],
855 ],
856 ],'get' => [
857 'path' => 'admin/directory/v1/groups/{groupKey}',
858 'httpMethod' => 'GET',
859 'parameters' => [
860 'groupKey' => [
861 'location' => 'path',
862 'type' => 'string',
863 'required' => true,
864 ],
865 ],
866 ],'insert' => [
867 'path' => 'admin/directory/v1/groups',
868 'httpMethod' => 'POST',
869 'parameters' => [],
870 ],'list' => [
871 'path' => 'admin/directory/v1/groups',
872 'httpMethod' => 'GET',
873 'parameters' => [
874 'customer' => [
875 'location' => 'query',
876 'type' => 'string',
877 ],
878 'domain' => [
879 'location' => 'query',
880 'type' => 'string',
881 ],
882 'maxResults' => [
883 'location' => 'query',
884 'type' => 'integer',
885 ],
886 'orderBy' => [
887 'location' => 'query',
888 'type' => 'string',
889 ],
890 'pageToken' => [
891 'location' => 'query',
892 'type' => 'string',
893 ],
894 'query' => [
895 'location' => 'query',
896 'type' => 'string',
897 ],
898 'sortOrder' => [
899 'location' => 'query',
900 'type' => 'string',
901 ],
902 'userKey' => [
903 'location' => 'query',
904 'type' => 'string',
905 ],
906 ],
907 ],'patch' => [
908 'path' => 'admin/directory/v1/groups/{groupKey}',
909 'httpMethod' => 'PATCH',
910 'parameters' => [
911 'groupKey' => [
912 'location' => 'path',
913 'type' => 'string',
914 'required' => true,
915 ],
916 ],
917 ],'update' => [
918 'path' => 'admin/directory/v1/groups/{groupKey}',
919 'httpMethod' => 'PUT',
920 'parameters' => [
921 'groupKey' => [
922 'location' => 'path',
923 'type' => 'string',
924 'required' => true,
925 ],
926 ],
927 ],
928 ]
929 ]
930 );
931 $this->groups_aliases = new Directory\Resource\GroupsAliases(
932 $this,
933 $this->serviceName,
934 'aliases',
935 [
936 'methods' => [
937 'delete' => [
938 'path' => 'admin/directory/v1/groups/{groupKey}/aliases/{alias}',
939 'httpMethod' => 'DELETE',
940 'parameters' => [
941 'groupKey' => [
942 'location' => 'path',
943 'type' => 'string',
944 'required' => true,
945 ],
946 'alias' => [
947 'location' => 'path',
948 'type' => 'string',
949 'required' => true,
950 ],
951 ],
952 ],'insert' => [
953 'path' => 'admin/directory/v1/groups/{groupKey}/aliases',
954 'httpMethod' => 'POST',
955 'parameters' => [
956 'groupKey' => [
957 'location' => 'path',
958 'type' => 'string',
959 'required' => true,
960 ],
961 ],
962 ],'list' => [
963 'path' => 'admin/directory/v1/groups/{groupKey}/aliases',
964 'httpMethod' => 'GET',
965 'parameters' => [
966 'groupKey' => [
967 'location' => 'path',
968 'type' => 'string',
969 'required' => true,
970 ],
971 ],
972 ],
973 ]
974 ]
975 );
976 $this->members = new Directory\Resource\Members(
977 $this,
978 $this->serviceName,
979 'members',
980 [
981 'methods' => [
982 'delete' => [
983 'path' => 'admin/directory/v1/groups/{groupKey}/members/{memberKey}',
984 'httpMethod' => 'DELETE',
985 'parameters' => [
986 'groupKey' => [
987 'location' => 'path',
988 'type' => 'string',
989 'required' => true,
990 ],
991 'memberKey' => [
992 'location' => 'path',
993 'type' => 'string',
994 'required' => true,
995 ],
996 ],
997 ],'get' => [
998 'path' => 'admin/directory/v1/groups/{groupKey}/members/{memberKey}',
999 'httpMethod' => 'GET',
1000 'parameters' => [
1001 'groupKey' => [
1002 'location' => 'path',
1003 'type' => 'string',
1004 'required' => true,
1005 ],
1006 'memberKey' => [
1007 'location' => 'path',
1008 'type' => 'string',
1009 'required' => true,
1010 ],
1011 ],
1012 ],'hasMember' => [
1013 'path' => 'admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}',
1014 'httpMethod' => 'GET',
1015 'parameters' => [
1016 'groupKey' => [
1017 'location' => 'path',
1018 'type' => 'string',
1019 'required' => true,
1020 ],
1021 'memberKey' => [
1022 'location' => 'path',
1023 'type' => 'string',
1024 'required' => true,
1025 ],
1026 ],
1027 ],'insert' => [
1028 'path' => 'admin/directory/v1/groups/{groupKey}/members',
1029 'httpMethod' => 'POST',
1030 'parameters' => [
1031 'groupKey' => [
1032 'location' => 'path',
1033 'type' => 'string',
1034 'required' => true,
1035 ],
1036 ],
1037 ],'list' => [
1038 'path' => 'admin/directory/v1/groups/{groupKey}/members',
1039 'httpMethod' => 'GET',
1040 'parameters' => [
1041 'groupKey' => [
1042 'location' => 'path',
1043 'type' => 'string',
1044 'required' => true,
1045 ],
1046 'includeDerivedMembership' => [
1047 'location' => 'query',
1048 'type' => 'boolean',
1049 ],
1050 'maxResults' => [
1051 'location' => 'query',
1052 'type' => 'integer',
1053 ],
1054 'pageToken' => [
1055 'location' => 'query',
1056 'type' => 'string',
1057 ],
1058 'roles' => [
1059 'location' => 'query',
1060 'type' => 'string',
1061 ],
1062 ],
1063 ],'patch' => [
1064 'path' => 'admin/directory/v1/groups/{groupKey}/members/{memberKey}',
1065 'httpMethod' => 'PATCH',
1066 'parameters' => [
1067 'groupKey' => [
1068 'location' => 'path',
1069 'type' => 'string',
1070 'required' => true,
1071 ],
1072 'memberKey' => [
1073 'location' => 'path',
1074 'type' => 'string',
1075 'required' => true,
1076 ],
1077 ],
1078 ],'update' => [
1079 'path' => 'admin/directory/v1/groups/{groupKey}/members/{memberKey}',
1080 'httpMethod' => 'PUT',
1081 'parameters' => [
1082 'groupKey' => [
1083 'location' => 'path',
1084 'type' => 'string',
1085 'required' => true,
1086 ],
1087 'memberKey' => [
1088 'location' => 'path',
1089 'type' => 'string',
1090 'required' => true,
1091 ],
1092 ],
1093 ],
1094 ]
1095 ]
1096 );
1097 $this->mobiledevices = new Directory\Resource\Mobiledevices(
1098 $this,
1099 $this->serviceName,
1100 'mobiledevices',
1101 [
1102 'methods' => [
1103 'action' => [
1104 'path' => 'admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action',
1105 'httpMethod' => 'POST',
1106 'parameters' => [
1107 'customerId' => [
1108 'location' => 'path',
1109 'type' => 'string',
1110 'required' => true,
1111 ],
1112 'resourceId' => [
1113 'location' => 'path',
1114 'type' => 'string',
1115 'required' => true,
1116 ],
1117 ],
1118 ],'delete' => [
1119 'path' => 'admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}',
1120 'httpMethod' => 'DELETE',
1121 'parameters' => [
1122 'customerId' => [
1123 'location' => 'path',
1124 'type' => 'string',
1125 'required' => true,
1126 ],
1127 'resourceId' => [
1128 'location' => 'path',
1129 'type' => 'string',
1130 'required' => true,
1131 ],
1132 ],
1133 ],'get' => [
1134 'path' => 'admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}',
1135 'httpMethod' => 'GET',
1136 'parameters' => [
1137 'customerId' => [
1138 'location' => 'path',
1139 'type' => 'string',
1140 'required' => true,
1141 ],
1142 'resourceId' => [
1143 'location' => 'path',
1144 'type' => 'string',
1145 'required' => true,
1146 ],
1147 'projection' => [
1148 'location' => 'query',
1149 'type' => 'string',
1150 ],
1151 ],
1152 ],'list' => [
1153 'path' => 'admin/directory/v1/customer/{customerId}/devices/mobile',
1154 'httpMethod' => 'GET',
1155 'parameters' => [
1156 'customerId' => [
1157 'location' => 'path',
1158 'type' => 'string',
1159 'required' => true,
1160 ],
1161 'maxResults' => [
1162 'location' => 'query',
1163 'type' => 'integer',
1164 ],
1165 'orderBy' => [
1166 'location' => 'query',
1167 'type' => 'string',
1168 ],
1169 'pageToken' => [
1170 'location' => 'query',
1171 'type' => 'string',
1172 ],
1173 'projection' => [
1174 'location' => 'query',
1175 'type' => 'string',
1176 ],
1177 'query' => [
1178 'location' => 'query',
1179 'type' => 'string',
1180 ],
1181 'sortOrder' => [
1182 'location' => 'query',
1183 'type' => 'string',
1184 ],
1185 ],
1186 ],
1187 ]
1188 ]
1189 );
1190 $this->orgunits = new Directory\Resource\Orgunits(
1191 $this,
1192 $this->serviceName,
1193 'orgunits',
1194 [
1195 'methods' => [
1196 'delete' => [
1197 'path' => 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}',
1198 'httpMethod' => 'DELETE',
1199 'parameters' => [
1200 'customerId' => [
1201 'location' => 'path',
1202 'type' => 'string',
1203 'required' => true,
1204 ],
1205 'orgUnitPath' => [
1206 'location' => 'path',
1207 'type' => 'string',
1208 'required' => true,
1209 ],
1210 ],
1211 ],'get' => [
1212 'path' => 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}',
1213 'httpMethod' => 'GET',
1214 'parameters' => [
1215 'customerId' => [
1216 'location' => 'path',
1217 'type' => 'string',
1218 'required' => true,
1219 ],
1220 'orgUnitPath' => [
1221 'location' => 'path',
1222 'type' => 'string',
1223 'required' => true,
1224 ],
1225 ],
1226 ],'insert' => [
1227 'path' => 'admin/directory/v1/customer/{customerId}/orgunits',
1228 'httpMethod' => 'POST',
1229 'parameters' => [
1230 'customerId' => [
1231 'location' => 'path',
1232 'type' => 'string',
1233 'required' => true,
1234 ],
1235 ],
1236 ],'list' => [
1237 'path' => 'admin/directory/v1/customer/{customerId}/orgunits',
1238 'httpMethod' => 'GET',
1239 'parameters' => [
1240 'customerId' => [
1241 'location' => 'path',
1242 'type' => 'string',
1243 'required' => true,
1244 ],
1245 'orgUnitPath' => [
1246 'location' => 'query',
1247 'type' => 'string',
1248 ],
1249 'type' => [
1250 'location' => 'query',
1251 'type' => 'string',
1252 ],
1253 ],
1254 ],'patch' => [
1255 'path' => 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}',
1256 'httpMethod' => 'PATCH',
1257 'parameters' => [
1258 'customerId' => [
1259 'location' => 'path',
1260 'type' => 'string',
1261 'required' => true,
1262 ],
1263 'orgUnitPath' => [
1264 'location' => 'path',
1265 'type' => 'string',
1266 'required' => true,
1267 ],
1268 ],
1269 ],'update' => [
1270 'path' => 'admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}',
1271 'httpMethod' => 'PUT',
1272 'parameters' => [
1273 'customerId' => [
1274 'location' => 'path',
1275 'type' => 'string',
1276 'required' => true,
1277 ],
1278 'orgUnitPath' => [
1279 'location' => 'path',
1280 'type' => 'string',
1281 'required' => true,
1282 ],
1283 ],
1284 ],
1285 ]
1286 ]
1287 );
1288 $this->privileges = new Directory\Resource\Privileges(
1289 $this,
1290 $this->serviceName,
1291 'privileges',
1292 [
1293 'methods' => [
1294 'list' => [
1295 'path' => 'admin/directory/v1/customer/{customer}/roles/ALL/privileges',
1296 'httpMethod' => 'GET',
1297 'parameters' => [
1298 'customer' => [
1299 'location' => 'path',
1300 'type' => 'string',
1301 'required' => true,
1302 ],
1303 ],
1304 ],
1305 ]
1306 ]
1307 );
1308 $this->resources_buildings = new Directory\Resource\ResourcesBuildings(
1309 $this,
1310 $this->serviceName,
1311 'buildings',
1312 [
1313 'methods' => [
1314 'delete' => [
1315 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}',
1316 'httpMethod' => 'DELETE',
1317 'parameters' => [
1318 'customer' => [
1319 'location' => 'path',
1320 'type' => 'string',
1321 'required' => true,
1322 ],
1323 'buildingId' => [
1324 'location' => 'path',
1325 'type' => 'string',
1326 'required' => true,
1327 ],
1328 ],
1329 ],'get' => [
1330 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}',
1331 'httpMethod' => 'GET',
1332 'parameters' => [
1333 'customer' => [
1334 'location' => 'path',
1335 'type' => 'string',
1336 'required' => true,
1337 ],
1338 'buildingId' => [
1339 'location' => 'path',
1340 'type' => 'string',
1341 'required' => true,
1342 ],
1343 ],
1344 ],'insert' => [
1345 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings',
1346 'httpMethod' => 'POST',
1347 'parameters' => [
1348 'customer' => [
1349 'location' => 'path',
1350 'type' => 'string',
1351 'required' => true,
1352 ],
1353 'coordinatesSource' => [
1354 'location' => 'query',
1355 'type' => 'string',
1356 ],
1357 ],
1358 ],'list' => [
1359 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings',
1360 'httpMethod' => 'GET',
1361 'parameters' => [
1362 'customer' => [
1363 'location' => 'path',
1364 'type' => 'string',
1365 'required' => true,
1366 ],
1367 'maxResults' => [
1368 'location' => 'query',
1369 'type' => 'integer',
1370 ],
1371 'pageToken' => [
1372 'location' => 'query',
1373 'type' => 'string',
1374 ],
1375 ],
1376 ],'patch' => [
1377 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}',
1378 'httpMethod' => 'PATCH',
1379 'parameters' => [
1380 'customer' => [
1381 'location' => 'path',
1382 'type' => 'string',
1383 'required' => true,
1384 ],
1385 'buildingId' => [
1386 'location' => 'path',
1387 'type' => 'string',
1388 'required' => true,
1389 ],
1390 'coordinatesSource' => [
1391 'location' => 'query',
1392 'type' => 'string',
1393 ],
1394 ],
1395 ],'update' => [
1396 'path' => 'admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}',
1397 'httpMethod' => 'PUT',
1398 'parameters' => [
1399 'customer' => [
1400 'location' => 'path',
1401 'type' => 'string',
1402 'required' => true,
1403 ],
1404 'buildingId' => [
1405 'location' => 'path',
1406 'type' => 'string',
1407 'required' => true,
1408 ],
1409 'coordinatesSource' => [
1410 'location' => 'query',
1411 'type' => 'string',
1412 ],
1413 ],
1414 ],
1415 ]
1416 ]
1417 );
1418 $this->resources_calendars = new Directory\Resource\ResourcesCalendars(
1419 $this,
1420 $this->serviceName,
1421 'calendars',
1422 [
1423 'methods' => [
1424 'delete' => [
1425 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}',
1426 'httpMethod' => 'DELETE',
1427 'parameters' => [
1428 'customer' => [
1429 'location' => 'path',
1430 'type' => 'string',
1431 'required' => true,
1432 ],
1433 'calendarResourceId' => [
1434 'location' => 'path',
1435 'type' => 'string',
1436 'required' => true,
1437 ],
1438 ],
1439 ],'get' => [
1440 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}',
1441 'httpMethod' => 'GET',
1442 'parameters' => [
1443 'customer' => [
1444 'location' => 'path',
1445 'type' => 'string',
1446 'required' => true,
1447 ],
1448 'calendarResourceId' => [
1449 'location' => 'path',
1450 'type' => 'string',
1451 'required' => true,
1452 ],
1453 ],
1454 ],'insert' => [
1455 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars',
1456 'httpMethod' => 'POST',
1457 'parameters' => [
1458 'customer' => [
1459 'location' => 'path',
1460 'type' => 'string',
1461 'required' => true,
1462 ],
1463 ],
1464 ],'list' => [
1465 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars',
1466 'httpMethod' => 'GET',
1467 'parameters' => [
1468 'customer' => [
1469 'location' => 'path',
1470 'type' => 'string',
1471 'required' => true,
1472 ],
1473 'maxResults' => [
1474 'location' => 'query',
1475 'type' => 'integer',
1476 ],
1477 'orderBy' => [
1478 'location' => 'query',
1479 'type' => 'string',
1480 ],
1481 'pageToken' => [
1482 'location' => 'query',
1483 'type' => 'string',
1484 ],
1485 'query' => [
1486 'location' => 'query',
1487 'type' => 'string',
1488 ],
1489 ],
1490 ],'patch' => [
1491 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}',
1492 'httpMethod' => 'PATCH',
1493 'parameters' => [
1494 'customer' => [
1495 'location' => 'path',
1496 'type' => 'string',
1497 'required' => true,
1498 ],
1499 'calendarResourceId' => [
1500 'location' => 'path',
1501 'type' => 'string',
1502 'required' => true,
1503 ],
1504 ],
1505 ],'update' => [
1506 'path' => 'admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}',
1507 'httpMethod' => 'PUT',
1508 'parameters' => [
1509 'customer' => [
1510 'location' => 'path',
1511 'type' => 'string',
1512 'required' => true,
1513 ],
1514 'calendarResourceId' => [
1515 'location' => 'path',
1516 'type' => 'string',
1517 'required' => true,
1518 ],
1519 ],
1520 ],
1521 ]
1522 ]
1523 );
1524 $this->resources_features = new Directory\Resource\ResourcesFeatures(
1525 $this,
1526 $this->serviceName,
1527 'features',
1528 [
1529 'methods' => [
1530 'delete' => [
1531 'path' => 'admin/directory/v1/customer/{customer}/resources/features/{featureKey}',
1532 'httpMethod' => 'DELETE',
1533 'parameters' => [
1534 'customer' => [
1535 'location' => 'path',
1536 'type' => 'string',
1537 'required' => true,
1538 ],
1539 'featureKey' => [
1540 'location' => 'path',
1541 'type' => 'string',
1542 'required' => true,
1543 ],
1544 ],
1545 ],'get' => [
1546 'path' => 'admin/directory/v1/customer/{customer}/resources/features/{featureKey}',
1547 'httpMethod' => 'GET',
1548 'parameters' => [
1549 'customer' => [
1550 'location' => 'path',
1551 'type' => 'string',
1552 'required' => true,
1553 ],
1554 'featureKey' => [
1555 'location' => 'path',
1556 'type' => 'string',
1557 'required' => true,
1558 ],
1559 ],
1560 ],'insert' => [
1561 'path' => 'admin/directory/v1/customer/{customer}/resources/features',
1562 'httpMethod' => 'POST',
1563 'parameters' => [
1564 'customer' => [
1565 'location' => 'path',
1566 'type' => 'string',
1567 'required' => true,
1568 ],
1569 ],
1570 ],'list' => [
1571 'path' => 'admin/directory/v1/customer/{customer}/resources/features',
1572 'httpMethod' => 'GET',
1573 'parameters' => [
1574 'customer' => [
1575 'location' => 'path',
1576 'type' => 'string',
1577 'required' => true,
1578 ],
1579 'maxResults' => [
1580 'location' => 'query',
1581 'type' => 'integer',
1582 ],
1583 'pageToken' => [
1584 'location' => 'query',
1585 'type' => 'string',
1586 ],
1587 ],
1588 ],'patch' => [
1589 'path' => 'admin/directory/v1/customer/{customer}/resources/features/{featureKey}',
1590 'httpMethod' => 'PATCH',
1591 'parameters' => [
1592 'customer' => [
1593 'location' => 'path',
1594 'type' => 'string',
1595 'required' => true,
1596 ],
1597 'featureKey' => [
1598 'location' => 'path',
1599 'type' => 'string',
1600 'required' => true,
1601 ],
1602 ],
1603 ],'rename' => [
1604 'path' => 'admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename',
1605 'httpMethod' => 'POST',
1606 'parameters' => [
1607 'customer' => [
1608 'location' => 'path',
1609 'type' => 'string',
1610 'required' => true,
1611 ],
1612 'oldName' => [
1613 'location' => 'path',
1614 'type' => 'string',
1615 'required' => true,
1616 ],
1617 ],
1618 ],'update' => [
1619 'path' => 'admin/directory/v1/customer/{customer}/resources/features/{featureKey}',
1620 'httpMethod' => 'PUT',
1621 'parameters' => [
1622 'customer' => [
1623 'location' => 'path',
1624 'type' => 'string',
1625 'required' => true,
1626 ],
1627 'featureKey' => [
1628 'location' => 'path',
1629 'type' => 'string',
1630 'required' => true,
1631 ],
1632 ],
1633 ],
1634 ]
1635 ]
1636 );
1637 $this->roleAssignments = new Directory\Resource\RoleAssignments(
1638 $this,
1639 $this->serviceName,
1640 'roleAssignments',
1641 [
1642 'methods' => [
1643 'delete' => [
1644 'path' => 'admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}',
1645 'httpMethod' => 'DELETE',
1646 'parameters' => [
1647 'customer' => [
1648 'location' => 'path',
1649 'type' => 'string',
1650 'required' => true,
1651 ],
1652 'roleAssignmentId' => [
1653 'location' => 'path',
1654 'type' => 'string',
1655 'required' => true,
1656 ],
1657 ],
1658 ],'get' => [
1659 'path' => 'admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}',
1660 'httpMethod' => 'GET',
1661 'parameters' => [
1662 'customer' => [
1663 'location' => 'path',
1664 'type' => 'string',
1665 'required' => true,
1666 ],
1667 'roleAssignmentId' => [
1668 'location' => 'path',
1669 'type' => 'string',
1670 'required' => true,
1671 ],
1672 ],
1673 ],'insert' => [
1674 'path' => 'admin/directory/v1/customer/{customer}/roleassignments',
1675 'httpMethod' => 'POST',
1676 'parameters' => [
1677 'customer' => [
1678 'location' => 'path',
1679 'type' => 'string',
1680 'required' => true,
1681 ],
1682 ],
1683 ],'list' => [
1684 'path' => 'admin/directory/v1/customer/{customer}/roleassignments',
1685 'httpMethod' => 'GET',
1686 'parameters' => [
1687 'customer' => [
1688 'location' => 'path',
1689 'type' => 'string',
1690 'required' => true,
1691 ],
1692 'includeIndirectRoleAssignments' => [
1693 'location' => 'query',
1694 'type' => 'boolean',
1695 ],
1696 'maxResults' => [
1697 'location' => 'query',
1698 'type' => 'integer',
1699 ],
1700 'pageToken' => [
1701 'location' => 'query',
1702 'type' => 'string',
1703 ],
1704 'roleId' => [
1705 'location' => 'query',
1706 'type' => 'string',
1707 ],
1708 'userKey' => [
1709 'location' => 'query',
1710 'type' => 'string',
1711 ],
1712 ],
1713 ],
1714 ]
1715 ]
1716 );
1717 $this->roles = new Directory\Resource\Roles(
1718 $this,
1719 $this->serviceName,
1720 'roles',
1721 [
1722 'methods' => [
1723 'delete' => [
1724 'path' => 'admin/directory/v1/customer/{customer}/roles/{roleId}',
1725 'httpMethod' => 'DELETE',
1726 'parameters' => [
1727 'customer' => [
1728 'location' => 'path',
1729 'type' => 'string',
1730 'required' => true,
1731 ],
1732 'roleId' => [
1733 'location' => 'path',
1734 'type' => 'string',
1735 'required' => true,
1736 ],
1737 ],
1738 ],'get' => [
1739 'path' => 'admin/directory/v1/customer/{customer}/roles/{roleId}',
1740 'httpMethod' => 'GET',
1741 'parameters' => [
1742 'customer' => [
1743 'location' => 'path',
1744 'type' => 'string',
1745 'required' => true,
1746 ],
1747 'roleId' => [
1748 'location' => 'path',
1749 'type' => 'string',
1750 'required' => true,
1751 ],
1752 ],
1753 ],'insert' => [
1754 'path' => 'admin/directory/v1/customer/{customer}/roles',
1755 'httpMethod' => 'POST',
1756 'parameters' => [
1757 'customer' => [
1758 'location' => 'path',
1759 'type' => 'string',
1760 'required' => true,
1761 ],
1762 ],
1763 ],'list' => [
1764 'path' => 'admin/directory/v1/customer/{customer}/roles',
1765 'httpMethod' => 'GET',
1766 'parameters' => [
1767 'customer' => [
1768 'location' => 'path',
1769 'type' => 'string',
1770 'required' => true,
1771 ],
1772 'maxResults' => [
1773 'location' => 'query',
1774 'type' => 'integer',
1775 ],
1776 'pageToken' => [
1777 'location' => 'query',
1778 'type' => 'string',
1779 ],
1780 ],
1781 ],'patch' => [
1782 'path' => 'admin/directory/v1/customer/{customer}/roles/{roleId}',
1783 'httpMethod' => 'PATCH',
1784 'parameters' => [
1785 'customer' => [
1786 'location' => 'path',
1787 'type' => 'string',
1788 'required' => true,
1789 ],
1790 'roleId' => [
1791 'location' => 'path',
1792 'type' => 'string',
1793 'required' => true,
1794 ],
1795 ],
1796 ],'update' => [
1797 'path' => 'admin/directory/v1/customer/{customer}/roles/{roleId}',
1798 'httpMethod' => 'PUT',
1799 'parameters' => [
1800 'customer' => [
1801 'location' => 'path',
1802 'type' => 'string',
1803 'required' => true,
1804 ],
1805 'roleId' => [
1806 'location' => 'path',
1807 'type' => 'string',
1808 'required' => true,
1809 ],
1810 ],
1811 ],
1812 ]
1813 ]
1814 );
1815 $this->schemas = new Directory\Resource\Schemas(
1816 $this,
1817 $this->serviceName,
1818 'schemas',
1819 [
1820 'methods' => [
1821 'delete' => [
1822 'path' => 'admin/directory/v1/customer/{customerId}/schemas/{schemaKey}',
1823 'httpMethod' => 'DELETE',
1824 'parameters' => [
1825 'customerId' => [
1826 'location' => 'path',
1827 'type' => 'string',
1828 'required' => true,
1829 ],
1830 'schemaKey' => [
1831 'location' => 'path',
1832 'type' => 'string',
1833 'required' => true,
1834 ],
1835 ],
1836 ],'get' => [
1837 'path' => 'admin/directory/v1/customer/{customerId}/schemas/{schemaKey}',
1838 'httpMethod' => 'GET',
1839 'parameters' => [
1840 'customerId' => [
1841 'location' => 'path',
1842 'type' => 'string',
1843 'required' => true,
1844 ],
1845 'schemaKey' => [
1846 'location' => 'path',
1847 'type' => 'string',
1848 'required' => true,
1849 ],
1850 ],
1851 ],'insert' => [
1852 'path' => 'admin/directory/v1/customer/{customerId}/schemas',
1853 'httpMethod' => 'POST',
1854 'parameters' => [
1855 'customerId' => [
1856 'location' => 'path',
1857 'type' => 'string',
1858 'required' => true,
1859 ],
1860 ],
1861 ],'list' => [
1862 'path' => 'admin/directory/v1/customer/{customerId}/schemas',
1863 'httpMethod' => 'GET',
1864 'parameters' => [
1865 'customerId' => [
1866 'location' => 'path',
1867 'type' => 'string',
1868 'required' => true,
1869 ],
1870 ],
1871 ],'patch' => [
1872 'path' => 'admin/directory/v1/customer/{customerId}/schemas/{schemaKey}',
1873 'httpMethod' => 'PATCH',
1874 'parameters' => [
1875 'customerId' => [
1876 'location' => 'path',
1877 'type' => 'string',
1878 'required' => true,
1879 ],
1880 'schemaKey' => [
1881 'location' => 'path',
1882 'type' => 'string',
1883 'required' => true,
1884 ],
1885 ],
1886 ],'update' => [
1887 'path' => 'admin/directory/v1/customer/{customerId}/schemas/{schemaKey}',
1888 'httpMethod' => 'PUT',
1889 'parameters' => [
1890 'customerId' => [
1891 'location' => 'path',
1892 'type' => 'string',
1893 'required' => true,
1894 ],
1895 'schemaKey' => [
1896 'location' => 'path',
1897 'type' => 'string',
1898 'required' => true,
1899 ],
1900 ],
1901 ],
1902 ]
1903 ]
1904 );
1905 $this->tokens = new Directory\Resource\Tokens(
1906 $this,
1907 $this->serviceName,
1908 'tokens',
1909 [
1910 'methods' => [
1911 'delete' => [
1912 'path' => 'admin/directory/v1/users/{userKey}/tokens/{clientId}',
1913 'httpMethod' => 'DELETE',
1914 'parameters' => [
1915 'userKey' => [
1916 'location' => 'path',
1917 'type' => 'string',
1918 'required' => true,
1919 ],
1920 'clientId' => [
1921 'location' => 'path',
1922 'type' => 'string',
1923 'required' => true,
1924 ],
1925 ],
1926 ],'get' => [
1927 'path' => 'admin/directory/v1/users/{userKey}/tokens/{clientId}',
1928 'httpMethod' => 'GET',
1929 'parameters' => [
1930 'userKey' => [
1931 'location' => 'path',
1932 'type' => 'string',
1933 'required' => true,
1934 ],
1935 'clientId' => [
1936 'location' => 'path',
1937 'type' => 'string',
1938 'required' => true,
1939 ],
1940 ],
1941 ],'list' => [
1942 'path' => 'admin/directory/v1/users/{userKey}/tokens',
1943 'httpMethod' => 'GET',
1944 'parameters' => [
1945 'userKey' => [
1946 'location' => 'path',
1947 'type' => 'string',
1948 'required' => true,
1949 ],
1950 ],
1951 ],
1952 ]
1953 ]
1954 );
1955 $this->twoStepVerification = new Directory\Resource\TwoStepVerification(
1956 $this,
1957 $this->serviceName,
1958 'twoStepVerification',
1959 [
1960 'methods' => [
1961 'turnOff' => [
1962 'path' => 'admin/directory/v1/users/{userKey}/twoStepVerification/turnOff',
1963 'httpMethod' => 'POST',
1964 'parameters' => [
1965 'userKey' => [
1966 'location' => 'path',
1967 'type' => 'string',
1968 'required' => true,
1969 ],
1970 ],
1971 ],
1972 ]
1973 ]
1974 );
1975 $this->users = new Directory\Resource\Users(
1976 $this,
1977 $this->serviceName,
1978 'users',
1979 [
1980 'methods' => [
1981 'delete' => [
1982 'path' => 'admin/directory/v1/users/{userKey}',
1983 'httpMethod' => 'DELETE',
1984 'parameters' => [
1985 'userKey' => [
1986 'location' => 'path',
1987 'type' => 'string',
1988 'required' => true,
1989 ],
1990 ],
1991 ],'get' => [
1992 'path' => 'admin/directory/v1/users/{userKey}',
1993 'httpMethod' => 'GET',
1994 'parameters' => [
1995 'userKey' => [
1996 'location' => 'path',
1997 'type' => 'string',
1998 'required' => true,
1999 ],
2000 'customFieldMask' => [
2001 'location' => 'query',
2002 'type' => 'string',
2003 ],
2004 'projection' => [
2005 'location' => 'query',
2006 'type' => 'string',
2007 ],
2008 'viewType' => [
2009 'location' => 'query',
2010 'type' => 'string',
2011 ],
2012 ],
2013 ],'insert' => [
2014 'path' => 'admin/directory/v1/users',
2015 'httpMethod' => 'POST',
2016 'parameters' => [
2017 'resolveConflictAccount' => [
2018 'location' => 'query',
2019 'type' => 'boolean',
2020 ],
2021 ],
2022 ],'list' => [
2023 'path' => 'admin/directory/v1/users',
2024 'httpMethod' => 'GET',
2025 'parameters' => [
2026 'customFieldMask' => [
2027 'location' => 'query',
2028 'type' => 'string',
2029 ],
2030 'customer' => [
2031 'location' => 'query',
2032 'type' => 'string',
2033 ],
2034 'domain' => [
2035 'location' => 'query',
2036 'type' => 'string',
2037 ],
2038 'event' => [
2039 'location' => 'query',
2040 'type' => 'string',
2041 ],
2042 'maxResults' => [
2043 'location' => 'query',
2044 'type' => 'integer',
2045 ],
2046 'orderBy' => [
2047 'location' => 'query',
2048 'type' => 'string',
2049 ],
2050 'pageToken' => [
2051 'location' => 'query',
2052 'type' => 'string',
2053 ],
2054 'projection' => [
2055 'location' => 'query',
2056 'type' => 'string',
2057 ],
2058 'query' => [
2059 'location' => 'query',
2060 'type' => 'string',
2061 ],
2062 'showDeleted' => [
2063 'location' => 'query',
2064 'type' => 'string',
2065 ],
2066 'sortOrder' => [
2067 'location' => 'query',
2068 'type' => 'string',
2069 ],
2070 'viewType' => [
2071 'location' => 'query',
2072 'type' => 'string',
2073 ],
2074 ],
2075 ],'makeAdmin' => [
2076 'path' => 'admin/directory/v1/users/{userKey}/makeAdmin',
2077 'httpMethod' => 'POST',
2078 'parameters' => [
2079 'userKey' => [
2080 'location' => 'path',
2081 'type' => 'string',
2082 'required' => true,
2083 ],
2084 ],
2085 ],'patch' => [
2086 'path' => 'admin/directory/v1/users/{userKey}',
2087 'httpMethod' => 'PATCH',
2088 'parameters' => [
2089 'userKey' => [
2090 'location' => 'path',
2091 'type' => 'string',
2092 'required' => true,
2093 ],
2094 ],
2095 ],'signOut' => [
2096 'path' => 'admin/directory/v1/users/{userKey}/signOut',
2097 'httpMethod' => 'POST',
2098 'parameters' => [
2099 'userKey' => [
2100 'location' => 'path',
2101 'type' => 'string',
2102 'required' => true,
2103 ],
2104 ],
2105 ],'undelete' => [
2106 'path' => 'admin/directory/v1/users/{userKey}/undelete',
2107 'httpMethod' => 'POST',
2108 'parameters' => [
2109 'userKey' => [
2110 'location' => 'path',
2111 'type' => 'string',
2112 'required' => true,
2113 ],
2114 ],
2115 ],'update' => [
2116 'path' => 'admin/directory/v1/users/{userKey}',
2117 'httpMethod' => 'PUT',
2118 'parameters' => [
2119 'userKey' => [
2120 'location' => 'path',
2121 'type' => 'string',
2122 'required' => true,
2123 ],
2124 ],
2125 ],'watch' => [
2126 'path' => 'admin/directory/v1/users/watch',
2127 'httpMethod' => 'POST',
2128 'parameters' => [
2129 'customFieldMask' => [
2130 'location' => 'query',
2131 'type' => 'string',
2132 ],
2133 'customer' => [
2134 'location' => 'query',
2135 'type' => 'string',
2136 ],
2137 'domain' => [
2138 'location' => 'query',
2139 'type' => 'string',
2140 ],
2141 'event' => [
2142 'location' => 'query',
2143 'type' => 'string',
2144 ],
2145 'maxResults' => [
2146 'location' => 'query',
2147 'type' => 'integer',
2148 ],
2149 'orderBy' => [
2150 'location' => 'query',
2151 'type' => 'string',
2152 ],
2153 'pageToken' => [
2154 'location' => 'query',
2155 'type' => 'string',
2156 ],
2157 'projection' => [
2158 'location' => 'query',
2159 'type' => 'string',
2160 ],
2161 'query' => [
2162 'location' => 'query',
2163 'type' => 'string',
2164 ],
2165 'showDeleted' => [
2166 'location' => 'query',
2167 'type' => 'string',
2168 ],
2169 'sortOrder' => [
2170 'location' => 'query',
2171 'type' => 'string',
2172 ],
2173 'viewType' => [
2174 'location' => 'query',
2175 'type' => 'string',
2176 ],
2177 ],
2178 ],
2179 ]
2180 ]
2181 );
2182 $this->users_aliases = new Directory\Resource\UsersAliases(
2183 $this,
2184 $this->serviceName,
2185 'aliases',
2186 [
2187 'methods' => [
2188 'delete' => [
2189 'path' => 'admin/directory/v1/users/{userKey}/aliases/{alias}',
2190 'httpMethod' => 'DELETE',
2191 'parameters' => [
2192 'userKey' => [
2193 'location' => 'path',
2194 'type' => 'string',
2195 'required' => true,
2196 ],
2197 'alias' => [
2198 'location' => 'path',
2199 'type' => 'string',
2200 'required' => true,
2201 ],
2202 ],
2203 ],'insert' => [
2204 'path' => 'admin/directory/v1/users/{userKey}/aliases',
2205 'httpMethod' => 'POST',
2206 'parameters' => [
2207 'userKey' => [
2208 'location' => 'path',
2209 'type' => 'string',
2210 'required' => true,
2211 ],
2212 ],
2213 ],'list' => [
2214 'path' => 'admin/directory/v1/users/{userKey}/aliases',
2215 'httpMethod' => 'GET',
2216 'parameters' => [
2217 'userKey' => [
2218 'location' => 'path',
2219 'type' => 'string',
2220 'required' => true,
2221 ],
2222 'event' => [
2223 'location' => 'query',
2224 'type' => 'string',
2225 ],
2226 ],
2227 ],'watch' => [
2228 'path' => 'admin/directory/v1/users/{userKey}/aliases/watch',
2229 'httpMethod' => 'POST',
2230 'parameters' => [
2231 'userKey' => [
2232 'location' => 'path',
2233 'type' => 'string',
2234 'required' => true,
2235 ],
2236 'event' => [
2237 'location' => 'query',
2238 'type' => 'string',
2239 ],
2240 ],
2241 ],
2242 ]
2243 ]
2244 );
2245 $this->users_photos = new Directory\Resource\UsersPhotos(
2246 $this,
2247 $this->serviceName,
2248 'photos',
2249 [
2250 'methods' => [
2251 'delete' => [
2252 'path' => 'admin/directory/v1/users/{userKey}/photos/thumbnail',
2253 'httpMethod' => 'DELETE',
2254 'parameters' => [
2255 'userKey' => [
2256 'location' => 'path',
2257 'type' => 'string',
2258 'required' => true,
2259 ],
2260 ],
2261 ],'get' => [
2262 'path' => 'admin/directory/v1/users/{userKey}/photos/thumbnail',
2263 'httpMethod' => 'GET',
2264 'parameters' => [
2265 'userKey' => [
2266 'location' => 'path',
2267 'type' => 'string',
2268 'required' => true,
2269 ],
2270 ],
2271 ],'patch' => [
2272 'path' => 'admin/directory/v1/users/{userKey}/photos/thumbnail',
2273 'httpMethod' => 'PATCH',
2274 'parameters' => [
2275 'userKey' => [
2276 'location' => 'path',
2277 'type' => 'string',
2278 'required' => true,
2279 ],
2280 ],
2281 ],'update' => [
2282 'path' => 'admin/directory/v1/users/{userKey}/photos/thumbnail',
2283 'httpMethod' => 'PUT',
2284 'parameters' => [
2285 'userKey' => [
2286 'location' => 'path',
2287 'type' => 'string',
2288 'required' => true,
2289 ],
2290 ],
2291 ],
2292 ]
2293 ]
2294 );
2295 $this->verificationCodes = new Directory\Resource\VerificationCodes(
2296 $this,
2297 $this->serviceName,
2298 'verificationCodes',
2299 [
2300 'methods' => [
2301 'generate' => [
2302 'path' => 'admin/directory/v1/users/{userKey}/verificationCodes/generate',
2303 'httpMethod' => 'POST',
2304 'parameters' => [
2305 'userKey' => [
2306 'location' => 'path',
2307 'type' => 'string',
2308 'required' => true,
2309 ],
2310 ],
2311 ],'invalidate' => [
2312 'path' => 'admin/directory/v1/users/{userKey}/verificationCodes/invalidate',
2313 'httpMethod' => 'POST',
2314 'parameters' => [
2315 'userKey' => [
2316 'location' => 'path',
2317 'type' => 'string',
2318 'required' => true,
2319 ],
2320 ],
2321 ],'list' => [
2322 'path' => 'admin/directory/v1/users/{userKey}/verificationCodes',
2323 'httpMethod' => 'GET',
2324 'parameters' => [
2325 'userKey' => [
2326 'location' => 'path',
2327 'type' => 'string',
2328 'required' => true,
2329 ],
2330 ],
2331 ],
2332 ]
2333 ]
2334 );
2335 }
2336}
2337
2338// Adding a class alias for backwards compatibility with the previous class name.
2339class_alias(Directory::class, 'Google_Service_Directory');
Note: See TracBrowser for help on using the repository browser.