PageRenderTime 65ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/google/src/Google/Service/Directory.php

https://bitbucket.org/moodle/moodle
PHP | 7180 lines | 5817 code | 292 blank | 1071 comment | 0 complexity | a72f4427d99087077111474db40967b4 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright 2010 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. /**
  18. * Service definition for Directory (directory_v1).
  19. *
  20. * <p>
  21. * The Admin SDK Directory API lets you view and manage enterprise resources
  22. * such as users and groups, administrative notifications, security features,
  23. * and more.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Google_Service_Directory extends Google_Service
  33. {
  34. /** View and manage customer related information. */
  35. const ADMIN_DIRECTORY_CUSTOMER =
  36. "https://www.googleapis.com/auth/admin.directory.customer";
  37. /** View customer related information. */
  38. const ADMIN_DIRECTORY_CUSTOMER_READONLY =
  39. "https://www.googleapis.com/auth/admin.directory.customer.readonly";
  40. /** View and manage your Chrome OS devices' metadata. */
  41. const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
  42. "https://www.googleapis.com/auth/admin.directory.device.chromeos";
  43. /** View your Chrome OS devices' metadata. */
  44. const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
  45. "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
  46. /** View and manage your mobile devices' metadata. */
  47. const ADMIN_DIRECTORY_DEVICE_MOBILE =
  48. "https://www.googleapis.com/auth/admin.directory.device.mobile";
  49. /** Manage your mobile devices by performing administrative tasks. */
  50. const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
  51. "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
  52. /** View your mobile devices' metadata. */
  53. const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
  54. "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
  55. /** View and manage the provisioning of domains for your customers. */
  56. const ADMIN_DIRECTORY_DOMAIN =
  57. "https://www.googleapis.com/auth/admin.directory.domain";
  58. /** View domains related to your customers. */
  59. const ADMIN_DIRECTORY_DOMAIN_READONLY =
  60. "https://www.googleapis.com/auth/admin.directory.domain.readonly";
  61. /** View and manage the provisioning of groups on your domain. */
  62. const ADMIN_DIRECTORY_GROUP =
  63. "https://www.googleapis.com/auth/admin.directory.group";
  64. /** View and manage group subscriptions on your domain. */
  65. const ADMIN_DIRECTORY_GROUP_MEMBER =
  66. "https://www.googleapis.com/auth/admin.directory.group.member";
  67. /** View group subscriptions on your domain. */
  68. const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
  69. "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
  70. /** View groups on your domain. */
  71. const ADMIN_DIRECTORY_GROUP_READONLY =
  72. "https://www.googleapis.com/auth/admin.directory.group.readonly";
  73. /** View and manage notifications received on your domain. */
  74. const ADMIN_DIRECTORY_NOTIFICATIONS =
  75. "https://www.googleapis.com/auth/admin.directory.notifications";
  76. /** View and manage organization units on your domain. */
  77. const ADMIN_DIRECTORY_ORGUNIT =
  78. "https://www.googleapis.com/auth/admin.directory.orgunit";
  79. /** View organization units on your domain. */
  80. const ADMIN_DIRECTORY_ORGUNIT_READONLY =
  81. "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
  82. /** Manage delegated admin roles for your domain. */
  83. const ADMIN_DIRECTORY_ROLEMANAGEMENT =
  84. "https://www.googleapis.com/auth/admin.directory.rolemanagement";
  85. /** View delegated admin roles for your domain. */
  86. const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY =
  87. "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
  88. /** View and manage the provisioning of users on your domain. */
  89. const ADMIN_DIRECTORY_USER =
  90. "https://www.googleapis.com/auth/admin.directory.user";
  91. /** View and manage user aliases on your domain. */
  92. const ADMIN_DIRECTORY_USER_ALIAS =
  93. "https://www.googleapis.com/auth/admin.directory.user.alias";
  94. /** View user aliases on your domain. */
  95. const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
  96. "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
  97. /** View users on your domain. */
  98. const ADMIN_DIRECTORY_USER_READONLY =
  99. "https://www.googleapis.com/auth/admin.directory.user.readonly";
  100. /** Manage data access permissions for users on your domain. */
  101. const ADMIN_DIRECTORY_USER_SECURITY =
  102. "https://www.googleapis.com/auth/admin.directory.user.security";
  103. /** View and manage the provisioning of user schemas on your domain. */
  104. const ADMIN_DIRECTORY_USERSCHEMA =
  105. "https://www.googleapis.com/auth/admin.directory.userschema";
  106. /** View user schemas on your domain. */
  107. const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
  108. "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
  109. public $asps;
  110. public $channels;
  111. public $chromeosdevices;
  112. public $customers;
  113. public $domainAliases;
  114. public $domains;
  115. public $groups;
  116. public $groups_aliases;
  117. public $members;
  118. public $mobiledevices;
  119. public $notifications;
  120. public $orgunits;
  121. public $privileges;
  122. public $roleAssignments;
  123. public $roles;
  124. public $schemas;
  125. public $tokens;
  126. public $users;
  127. public $users_aliases;
  128. public $users_photos;
  129. public $verificationCodes;
  130. /**
  131. * Constructs the internal representation of the Directory service.
  132. *
  133. * @param Google_Client $client
  134. */
  135. public function __construct(Google_Client $client)
  136. {
  137. parent::__construct($client);
  138. $this->rootUrl = 'https://www.googleapis.com/';
  139. $this->servicePath = 'admin/directory/v1/';
  140. $this->version = 'directory_v1';
  141. $this->serviceName = 'admin';
  142. $this->asps = new Google_Service_Directory_Asps_Resource(
  143. $this,
  144. $this->serviceName,
  145. 'asps',
  146. array(
  147. 'methods' => array(
  148. 'delete' => array(
  149. 'path' => 'users/{userKey}/asps/{codeId}',
  150. 'httpMethod' => 'DELETE',
  151. 'parameters' => array(
  152. 'userKey' => array(
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ),
  157. 'codeId' => array(
  158. 'location' => 'path',
  159. 'type' => 'integer',
  160. 'required' => true,
  161. ),
  162. ),
  163. ),'get' => array(
  164. 'path' => 'users/{userKey}/asps/{codeId}',
  165. 'httpMethod' => 'GET',
  166. 'parameters' => array(
  167. 'userKey' => array(
  168. 'location' => 'path',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ),
  172. 'codeId' => array(
  173. 'location' => 'path',
  174. 'type' => 'integer',
  175. 'required' => true,
  176. ),
  177. ),
  178. ),'list' => array(
  179. 'path' => 'users/{userKey}/asps',
  180. 'httpMethod' => 'GET',
  181. 'parameters' => array(
  182. 'userKey' => array(
  183. 'location' => 'path',
  184. 'type' => 'string',
  185. 'required' => true,
  186. ),
  187. ),
  188. ),
  189. )
  190. )
  191. );
  192. $this->channels = new Google_Service_Directory_Channels_Resource(
  193. $this,
  194. $this->serviceName,
  195. 'channels',
  196. array(
  197. 'methods' => array(
  198. 'stop' => array(
  199. 'path' => '/admin/directory_v1/channels/stop',
  200. 'httpMethod' => 'POST',
  201. 'parameters' => array(),
  202. ),
  203. )
  204. )
  205. );
  206. $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
  207. $this,
  208. $this->serviceName,
  209. 'chromeosdevices',
  210. array(
  211. 'methods' => array(
  212. 'get' => array(
  213. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  214. 'httpMethod' => 'GET',
  215. 'parameters' => array(
  216. 'customerId' => array(
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ),
  221. 'deviceId' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. 'projection' => array(
  227. 'location' => 'query',
  228. 'type' => 'string',
  229. ),
  230. ),
  231. ),'list' => array(
  232. 'path' => 'customer/{customerId}/devices/chromeos',
  233. 'httpMethod' => 'GET',
  234. 'parameters' => array(
  235. 'customerId' => array(
  236. 'location' => 'path',
  237. 'type' => 'string',
  238. 'required' => true,
  239. ),
  240. 'orderBy' => array(
  241. 'location' => 'query',
  242. 'type' => 'string',
  243. ),
  244. 'projection' => array(
  245. 'location' => 'query',
  246. 'type' => 'string',
  247. ),
  248. 'maxResults' => array(
  249. 'location' => 'query',
  250. 'type' => 'integer',
  251. ),
  252. 'pageToken' => array(
  253. 'location' => 'query',
  254. 'type' => 'string',
  255. ),
  256. 'sortOrder' => array(
  257. 'location' => 'query',
  258. 'type' => 'string',
  259. ),
  260. 'query' => array(
  261. 'location' => 'query',
  262. 'type' => 'string',
  263. ),
  264. ),
  265. ),'patch' => array(
  266. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  267. 'httpMethod' => 'PATCH',
  268. 'parameters' => array(
  269. 'customerId' => array(
  270. 'location' => 'path',
  271. 'type' => 'string',
  272. 'required' => true,
  273. ),
  274. 'deviceId' => array(
  275. 'location' => 'path',
  276. 'type' => 'string',
  277. 'required' => true,
  278. ),
  279. 'projection' => array(
  280. 'location' => 'query',
  281. 'type' => 'string',
  282. ),
  283. ),
  284. ),'update' => array(
  285. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  286. 'httpMethod' => 'PUT',
  287. 'parameters' => array(
  288. 'customerId' => array(
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ),
  293. 'deviceId' => array(
  294. 'location' => 'path',
  295. 'type' => 'string',
  296. 'required' => true,
  297. ),
  298. 'projection' => array(
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. ),
  302. ),
  303. ),
  304. )
  305. )
  306. );
  307. $this->customers = new Google_Service_Directory_Customers_Resource(
  308. $this,
  309. $this->serviceName,
  310. 'customers',
  311. array(
  312. 'methods' => array(
  313. 'get' => array(
  314. 'path' => 'customers/{customerKey}',
  315. 'httpMethod' => 'GET',
  316. 'parameters' => array(
  317. 'customerKey' => array(
  318. 'location' => 'path',
  319. 'type' => 'string',
  320. 'required' => true,
  321. ),
  322. ),
  323. ),'patch' => array(
  324. 'path' => 'customers/{customerKey}',
  325. 'httpMethod' => 'PATCH',
  326. 'parameters' => array(
  327. 'customerKey' => array(
  328. 'location' => 'path',
  329. 'type' => 'string',
  330. 'required' => true,
  331. ),
  332. ),
  333. ),'update' => array(
  334. 'path' => 'customers/{customerKey}',
  335. 'httpMethod' => 'PUT',
  336. 'parameters' => array(
  337. 'customerKey' => array(
  338. 'location' => 'path',
  339. 'type' => 'string',
  340. 'required' => true,
  341. ),
  342. ),
  343. ),
  344. )
  345. )
  346. );
  347. $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource(
  348. $this,
  349. $this->serviceName,
  350. 'domainAliases',
  351. array(
  352. 'methods' => array(
  353. 'delete' => array(
  354. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  355. 'httpMethod' => 'DELETE',
  356. 'parameters' => array(
  357. 'customer' => array(
  358. 'location' => 'path',
  359. 'type' => 'string',
  360. 'required' => true,
  361. ),
  362. 'domainAliasName' => array(
  363. 'location' => 'path',
  364. 'type' => 'string',
  365. 'required' => true,
  366. ),
  367. ),
  368. ),'get' => array(
  369. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  370. 'httpMethod' => 'GET',
  371. 'parameters' => array(
  372. 'customer' => array(
  373. 'location' => 'path',
  374. 'type' => 'string',
  375. 'required' => true,
  376. ),
  377. 'domainAliasName' => array(
  378. 'location' => 'path',
  379. 'type' => 'string',
  380. 'required' => true,
  381. ),
  382. ),
  383. ),'insert' => array(
  384. 'path' => 'customer/{customer}/domainaliases',
  385. 'httpMethod' => 'POST',
  386. 'parameters' => array(
  387. 'customer' => array(
  388. 'location' => 'path',
  389. 'type' => 'string',
  390. 'required' => true,
  391. ),
  392. ),
  393. ),'list' => array(
  394. 'path' => 'customer/{customer}/domainaliases',
  395. 'httpMethod' => 'GET',
  396. 'parameters' => array(
  397. 'customer' => array(
  398. 'location' => 'path',
  399. 'type' => 'string',
  400. 'required' => true,
  401. ),
  402. 'parentDomainName' => array(
  403. 'location' => 'query',
  404. 'type' => 'string',
  405. ),
  406. ),
  407. ),
  408. )
  409. )
  410. );
  411. $this->domains = new Google_Service_Directory_Domains_Resource(
  412. $this,
  413. $this->serviceName,
  414. 'domains',
  415. array(
  416. 'methods' => array(
  417. 'delete' => array(
  418. 'path' => 'customer/{customer}/domains/{domainName}',
  419. 'httpMethod' => 'DELETE',
  420. 'parameters' => array(
  421. 'customer' => array(
  422. 'location' => 'path',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ),
  426. 'domainName' => array(
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ),
  431. ),
  432. ),'get' => array(
  433. 'path' => 'customer/{customer}/domains/{domainName}',
  434. 'httpMethod' => 'GET',
  435. 'parameters' => array(
  436. 'customer' => array(
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ),
  441. 'domainName' => array(
  442. 'location' => 'path',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ),
  446. ),
  447. ),'insert' => array(
  448. 'path' => 'customer/{customer}/domains',
  449. 'httpMethod' => 'POST',
  450. 'parameters' => array(
  451. 'customer' => array(
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ),
  456. ),
  457. ),'list' => array(
  458. 'path' => 'customer/{customer}/domains',
  459. 'httpMethod' => 'GET',
  460. 'parameters' => array(
  461. 'customer' => array(
  462. 'location' => 'path',
  463. 'type' => 'string',
  464. 'required' => true,
  465. ),
  466. ),
  467. ),
  468. )
  469. )
  470. );
  471. $this->groups = new Google_Service_Directory_Groups_Resource(
  472. $this,
  473. $this->serviceName,
  474. 'groups',
  475. array(
  476. 'methods' => array(
  477. 'delete' => array(
  478. 'path' => 'groups/{groupKey}',
  479. 'httpMethod' => 'DELETE',
  480. 'parameters' => array(
  481. 'groupKey' => array(
  482. 'location' => 'path',
  483. 'type' => 'string',
  484. 'required' => true,
  485. ),
  486. ),
  487. ),'get' => array(
  488. 'path' => 'groups/{groupKey}',
  489. 'httpMethod' => 'GET',
  490. 'parameters' => array(
  491. 'groupKey' => array(
  492. 'location' => 'path',
  493. 'type' => 'string',
  494. 'required' => true,
  495. ),
  496. ),
  497. ),'insert' => array(
  498. 'path' => 'groups',
  499. 'httpMethod' => 'POST',
  500. 'parameters' => array(),
  501. ),'list' => array(
  502. 'path' => 'groups',
  503. 'httpMethod' => 'GET',
  504. 'parameters' => array(
  505. 'customer' => array(
  506. 'location' => 'query',
  507. 'type' => 'string',
  508. ),
  509. 'pageToken' => array(
  510. 'location' => 'query',
  511. 'type' => 'string',
  512. ),
  513. 'domain' => array(
  514. 'location' => 'query',
  515. 'type' => 'string',
  516. ),
  517. 'maxResults' => array(
  518. 'location' => 'query',
  519. 'type' => 'integer',
  520. ),
  521. 'userKey' => array(
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. ),
  525. ),
  526. ),'patch' => array(
  527. 'path' => 'groups/{groupKey}',
  528. 'httpMethod' => 'PATCH',
  529. 'parameters' => array(
  530. 'groupKey' => array(
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ),
  535. ),
  536. ),'update' => array(
  537. 'path' => 'groups/{groupKey}',
  538. 'httpMethod' => 'PUT',
  539. 'parameters' => array(
  540. 'groupKey' => array(
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ),
  545. ),
  546. ),
  547. )
  548. )
  549. );
  550. $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource(
  551. $this,
  552. $this->serviceName,
  553. 'aliases',
  554. array(
  555. 'methods' => array(
  556. 'delete' => array(
  557. 'path' => 'groups/{groupKey}/aliases/{alias}',
  558. 'httpMethod' => 'DELETE',
  559. 'parameters' => array(
  560. 'groupKey' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'alias' => array(
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. ),
  571. ),'insert' => array(
  572. 'path' => 'groups/{groupKey}/aliases',
  573. 'httpMethod' => 'POST',
  574. 'parameters' => array(
  575. 'groupKey' => array(
  576. 'location' => 'path',
  577. 'type' => 'string',
  578. 'required' => true,
  579. ),
  580. ),
  581. ),'list' => array(
  582. 'path' => 'groups/{groupKey}/aliases',
  583. 'httpMethod' => 'GET',
  584. 'parameters' => array(
  585. 'groupKey' => array(
  586. 'location' => 'path',
  587. 'type' => 'string',
  588. 'required' => true,
  589. ),
  590. ),
  591. ),
  592. )
  593. )
  594. );
  595. $this->members = new Google_Service_Directory_Members_Resource(
  596. $this,
  597. $this->serviceName,
  598. 'members',
  599. array(
  600. 'methods' => array(
  601. 'delete' => array(
  602. 'path' => 'groups/{groupKey}/members/{memberKey}',
  603. 'httpMethod' => 'DELETE',
  604. 'parameters' => array(
  605. 'groupKey' => array(
  606. 'location' => 'path',
  607. 'type' => 'string',
  608. 'required' => true,
  609. ),
  610. 'memberKey' => array(
  611. 'location' => 'path',
  612. 'type' => 'string',
  613. 'required' => true,
  614. ),
  615. ),
  616. ),'get' => array(
  617. 'path' => 'groups/{groupKey}/members/{memberKey}',
  618. 'httpMethod' => 'GET',
  619. 'parameters' => array(
  620. 'groupKey' => array(
  621. 'location' => 'path',
  622. 'type' => 'string',
  623. 'required' => true,
  624. ),
  625. 'memberKey' => array(
  626. 'location' => 'path',
  627. 'type' => 'string',
  628. 'required' => true,
  629. ),
  630. ),
  631. ),'insert' => array(
  632. 'path' => 'groups/{groupKey}/members',
  633. 'httpMethod' => 'POST',
  634. 'parameters' => array(
  635. 'groupKey' => array(
  636. 'location' => 'path',
  637. 'type' => 'string',
  638. 'required' => true,
  639. ),
  640. ),
  641. ),'list' => array(
  642. 'path' => 'groups/{groupKey}/members',
  643. 'httpMethod' => 'GET',
  644. 'parameters' => array(
  645. 'groupKey' => array(
  646. 'location' => 'path',
  647. 'type' => 'string',
  648. 'required' => true,
  649. ),
  650. 'pageToken' => array(
  651. 'location' => 'query',
  652. 'type' => 'string',
  653. ),
  654. 'roles' => array(
  655. 'location' => 'query',
  656. 'type' => 'string',
  657. ),
  658. 'maxResults' => array(
  659. 'location' => 'query',
  660. 'type' => 'integer',
  661. ),
  662. ),
  663. ),'patch' => array(
  664. 'path' => 'groups/{groupKey}/members/{memberKey}',
  665. 'httpMethod' => 'PATCH',
  666. 'parameters' => array(
  667. 'groupKey' => array(
  668. 'location' => 'path',
  669. 'type' => 'string',
  670. 'required' => true,
  671. ),
  672. 'memberKey' => array(
  673. 'location' => 'path',
  674. 'type' => 'string',
  675. 'required' => true,
  676. ),
  677. ),
  678. ),'update' => array(
  679. 'path' => 'groups/{groupKey}/members/{memberKey}',
  680. 'httpMethod' => 'PUT',
  681. 'parameters' => array(
  682. 'groupKey' => array(
  683. 'location' => 'path',
  684. 'type' => 'string',
  685. 'required' => true,
  686. ),
  687. 'memberKey' => array(
  688. 'location' => 'path',
  689. 'type' => 'string',
  690. 'required' => true,
  691. ),
  692. ),
  693. ),
  694. )
  695. )
  696. );
  697. $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource(
  698. $this,
  699. $this->serviceName,
  700. 'mobiledevices',
  701. array(
  702. 'methods' => array(
  703. 'action' => array(
  704. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
  705. 'httpMethod' => 'POST',
  706. 'parameters' => array(
  707. 'customerId' => array(
  708. 'location' => 'path',
  709. 'type' => 'string',
  710. 'required' => true,
  711. ),
  712. 'resourceId' => array(
  713. 'location' => 'path',
  714. 'type' => 'string',
  715. 'required' => true,
  716. ),
  717. ),
  718. ),'delete' => array(
  719. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  720. 'httpMethod' => 'DELETE',
  721. 'parameters' => array(
  722. 'customerId' => array(
  723. 'location' => 'path',
  724. 'type' => 'string',
  725. 'required' => true,
  726. ),
  727. 'resourceId' => array(
  728. 'location' => 'path',
  729. 'type' => 'string',
  730. 'required' => true,
  731. ),
  732. ),
  733. ),'get' => array(
  734. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  735. 'httpMethod' => 'GET',
  736. 'parameters' => array(
  737. 'customerId' => array(
  738. 'location' => 'path',
  739. 'type' => 'string',
  740. 'required' => true,
  741. ),
  742. 'resourceId' => array(
  743. 'location' => 'path',
  744. 'type' => 'string',
  745. 'required' => true,
  746. ),
  747. 'projection' => array(
  748. 'location' => 'query',
  749. 'type' => 'string',
  750. ),
  751. ),
  752. ),'list' => array(
  753. 'path' => 'customer/{customerId}/devices/mobile',
  754. 'httpMethod' => 'GET',
  755. 'parameters' => array(
  756. 'customerId' => array(
  757. 'location' => 'path',
  758. 'type' => 'string',
  759. 'required' => true,
  760. ),
  761. 'orderBy' => array(
  762. 'location' => 'query',
  763. 'type' => 'string',
  764. ),
  765. 'projection' => array(
  766. 'location' => 'query',
  767. 'type' => 'string',
  768. ),
  769. 'maxResults' => array(
  770. 'location' => 'query',
  771. 'type' => 'integer',
  772. ),
  773. 'pageToken' => array(
  774. 'location' => 'query',
  775. 'type' => 'string',
  776. ),
  777. 'sortOrder' => array(
  778. 'location' => 'query',
  779. 'type' => 'string',
  780. ),
  781. 'query' => array(
  782. 'location' => 'query',
  783. 'type' => 'string',
  784. ),
  785. ),
  786. ),
  787. )
  788. )
  789. );
  790. $this->notifications = new Google_Service_Directory_Notifications_Resource(
  791. $this,
  792. $this->serviceName,
  793. 'notifications',
  794. array(
  795. 'methods' => array(
  796. 'delete' => array(
  797. 'path' => 'customer/{customer}/notifications/{notificationId}',
  798. 'httpMethod' => 'DELETE',
  799. 'parameters' => array(
  800. 'customer' => array(
  801. 'location' => 'path',
  802. 'type' => 'string',
  803. 'required' => true,
  804. ),
  805. 'notificationId' => array(
  806. 'location' => 'path',
  807. 'type' => 'string',
  808. 'required' => true,
  809. ),
  810. ),
  811. ),'get' => array(
  812. 'path' => 'customer/{customer}/notifications/{notificationId}',
  813. 'httpMethod' => 'GET',
  814. 'parameters' => array(
  815. 'customer' => array(
  816. 'location' => 'path',
  817. 'type' => 'string',
  818. 'required' => true,
  819. ),
  820. 'notificationId' => array(
  821. 'location' => 'path',
  822. 'type' => 'string',
  823. 'required' => true,
  824. ),
  825. ),
  826. ),'list' => array(
  827. 'path' => 'customer/{customer}/notifications',
  828. 'httpMethod' => 'GET',
  829. 'parameters' => array(
  830. 'customer' => array(
  831. 'location' => 'path',
  832. 'type' => 'string',
  833. 'required' => true,
  834. ),
  835. 'pageToken' => array(
  836. 'location' => 'query',
  837. 'type' => 'string',
  838. ),
  839. 'maxResults' => array(
  840. 'location' => 'query',
  841. 'type' => 'integer',
  842. ),
  843. 'language' => array(
  844. 'location' => 'query',
  845. 'type' => 'string',
  846. ),
  847. ),
  848. ),'patch' => array(
  849. 'path' => 'customer/{customer}/notifications/{notificationId}',
  850. 'httpMethod' => 'PATCH',
  851. 'parameters' => array(
  852. 'customer' => array(
  853. 'location' => 'path',
  854. 'type' => 'string',
  855. 'required' => true,
  856. ),
  857. 'notificationId' => array(
  858. 'location' => 'path',
  859. 'type' => 'string',
  860. 'required' => true,
  861. ),
  862. ),
  863. ),'update' => array(
  864. 'path' => 'customer/{customer}/notifications/{notificationId}',
  865. 'httpMethod' => 'PUT',
  866. 'parameters' => array(
  867. 'customer' => array(
  868. 'location' => 'path',
  869. 'type' => 'string',
  870. 'required' => true,
  871. ),
  872. 'notificationId' => array(
  873. 'location' => 'path',
  874. 'type' => 'string',
  875. 'required' => true,
  876. ),
  877. ),
  878. ),
  879. )
  880. )
  881. );
  882. $this->orgunits = new Google_Service_Directory_Orgunits_Resource(
  883. $this,
  884. $this->serviceName,
  885. 'orgunits',
  886. array(
  887. 'methods' => array(
  888. 'delete' => array(
  889. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  890. 'httpMethod' => 'DELETE',
  891. 'parameters' => array(
  892. 'customerId' => array(
  893. 'location' => 'path',
  894. 'type' => 'string',
  895. 'required' => true,
  896. ),
  897. 'orgUnitPath' => array(
  898. 'location' => 'path',
  899. 'type' => 'string',
  900. 'repeated' => true,
  901. 'required' => true,
  902. ),
  903. ),
  904. ),'get' => array(
  905. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  906. 'httpMethod' => 'GET',
  907. 'parameters' => array(
  908. 'customerId' => array(
  909. 'location' => 'path',
  910. 'type' => 'string',
  911. 'required' => true,
  912. ),
  913. 'orgUnitPath' => array(
  914. 'location' => 'path',
  915. 'type' => 'string',
  916. 'repeated' => true,
  917. 'required' => true,
  918. ),
  919. ),
  920. ),'insert' => array(
  921. 'path' => 'customer/{customerId}/orgunits',
  922. 'httpMethod' => 'POST',
  923. 'parameters' => array(
  924. 'customerId' => array(
  925. 'location' => 'path',
  926. 'type' => 'string',
  927. 'required' => true,
  928. ),
  929. ),
  930. ),'list' => array(
  931. 'path' => 'customer/{customerId}/orgunits',
  932. 'httpMethod' => 'GET',
  933. 'parameters' => array(
  934. 'customerId' => array(
  935. 'location' => 'path',
  936. 'type' => 'string',
  937. 'required' => true,
  938. ),
  939. 'type' => array(
  940. 'location' => 'query',
  941. 'type' => 'string',
  942. ),
  943. 'orgUnitPath' => array(
  944. 'location' => 'query',
  945. 'type' => 'string',
  946. ),
  947. ),
  948. ),'patch' => array(
  949. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  950. 'httpMethod' => 'PATCH',
  951. 'parameters' => array(
  952. 'customerId' => array(
  953. 'location' => 'path',
  954. 'type' => 'string',
  955. 'required' => true,
  956. ),
  957. 'orgUnitPath' => array(
  958. 'location' => 'path',
  959. 'type' => 'string',
  960. 'repeated' => true,
  961. 'required' => true,
  962. ),
  963. ),
  964. ),'update' => array(
  965. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  966. 'httpMethod' => 'PUT',
  967. 'parameters' => array(
  968. 'customerId' => array(
  969. 'location' => 'path',
  970. 'type' => 'string',
  971. 'required' => true,
  972. ),
  973. 'orgUnitPath' => array(
  974. 'location' => 'path',
  975. 'type' => 'string',
  976. 'repeated' => true,
  977. 'required' => true,
  978. ),
  979. ),
  980. ),
  981. )
  982. )
  983. );
  984. $this->privileges = new Google_Service_Directory_Privileges_Resource(
  985. $this,
  986. $this->serviceName,
  987. 'privileges',
  988. array(
  989. 'methods' => array(
  990. 'list' => array(
  991. 'path' => 'customer/{customer}/roles/ALL/privileges',
  992. 'httpMethod' => 'GET',
  993. 'parameters' => array(
  994. 'customer' => array(
  995. 'location' => 'path',
  996. 'type' => 'string',
  997. 'required' => true,
  998. ),
  999. ),
  1000. ),
  1001. )
  1002. )
  1003. );
  1004. $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource(
  1005. $this,
  1006. $this->serviceName,
  1007. 'roleAssignments',
  1008. array(
  1009. 'methods' => array(
  1010. 'delete' => array(
  1011. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1012. 'httpMethod' => 'DELETE',
  1013. 'parameters' => array(
  1014. 'customer' => array(
  1015. 'location' => 'path',
  1016. 'type' => 'string',
  1017. 'required' => true,
  1018. ),
  1019. 'roleAssignmentId' => array(
  1020. 'location' => 'path',
  1021. 'type' => 'string',
  1022. 'required' => true,
  1023. ),
  1024. ),
  1025. ),'get' => array(
  1026. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1027. 'httpMethod' => 'GET',
  1028. 'parameters' => array(
  1029. 'customer' => array(
  1030. 'location' => 'path',
  1031. 'type' => 'string',
  1032. 'required' => true,
  1033. ),
  1034. 'roleAssignmentId' => array(
  1035. 'location' => 'path',
  1036. 'type' => 'string',
  1037. 'required' => true,
  1038. ),
  1039. ),
  1040. ),'insert' => array(
  1041. 'path' => 'customer/{customer}/roleassignments',
  1042. 'httpMethod' => 'POST',
  1043. 'parameters' => array(
  1044. 'customer' => array(
  1045. 'location' => 'path',
  1046. 'type' => 'string',
  1047. 'required' => true,
  1048. ),
  1049. ),
  1050. ),'list' => array(
  1051. 'path' => 'customer/{customer}/roleassignments',
  1052. 'httpMethod' => 'GET',
  1053. 'parameters' => array(
  1054. 'customer' => array(
  1055. 'location' => 'path',
  1056. 'type' => 'string',
  1057. 'required' => true,
  1058. ),
  1059. 'pageToken' => array(
  1060. 'location' => 'query',
  1061. 'type' => 'string',
  1062. ),
  1063. 'userKey' => array(
  1064. 'location' => 'query',
  1065. 'type' => 'string',
  1066. ),
  1067. 'maxResults' => array(
  1068. 'location' => 'query',
  1069. 'type' => 'integer',
  1070. ),
  1071. 'roleId' => array(
  1072. 'location' => 'query',
  1073. 'type' => 'string',
  1074. ),
  1075. ),
  1076. ),
  1077. )
  1078. )
  1079. );
  1080. $this->roles = new Google_Service_Directory_Roles_Resource(
  1081. $this,
  1082. $this->serviceName,
  1083. 'roles',
  1084. array(
  1085. 'methods' => array(
  1086. 'delete' => array(
  1087. 'path' => 'customer/{customer}/roles/{roleId}',
  1088. 'httpMethod' => 'DELETE',
  1089. 'parameters' => array(
  1090. 'customer' => array(
  1091. 'location' => 'path',
  1092. 'type' => 'string',
  1093. 'required' => true,
  1094. ),
  1095. 'roleId' => array(
  1096. 'location' => 'path',
  1097. 'type' => 'string',
  1098. 'required' => true,
  1099. ),
  1100. ),
  1101. ),'get' => array(
  1102. 'path' => 'customer/{customer}/roles/{roleId}',
  1103. 'httpMethod' => 'GET',
  1104. 'parameters' => array(
  1105. 'customer' => array(
  1106. 'location' => 'path',
  1107. 'type' => 'string',
  1108. 'required' => true,
  1109. ),
  1110. 'roleId' => array(
  1111. 'location' => 'path',
  1112. 'type' => 'string',
  1113. 'required' => true,
  1114. ),
  1115. ),
  1116. ),'insert' => array(
  1117. 'path' => 'customer/{customer}/roles',
  1118. 'httpMethod' => 'POST',
  1119. 'parameters' => array(
  1120. 'customer' => array(
  1121. 'location' => 'path',
  1122. 'type' => 'string',
  1123. 'required' => true,
  1124. ),
  1125. ),
  1126. ),'list' => array(
  1127. 'path' => 'customer/{customer}/roles',
  1128. 'httpMethod' => 'GET',
  1129. 'parameters' => array(
  1130. 'customer' => array(
  1131. 'location' => 'path',
  1132. 'type' => 'string',
  1133. 'required' => true,
  1134. ),
  1135. 'pageToken' => array(
  1136. 'location' => 'query',
  1137. 'type' => 'string',
  1138. ),
  1139. 'maxResults' => array(
  1140. 'location' => 'query',
  1141. 'type' => 'integer',
  1142. ),
  1143. ),
  1144. ),'patch' => array(
  1145. 'path' => 'customer/{customer}/roles/{roleId}',
  1146. 'httpMethod' => 'PATCH',
  1147. 'parameters' => array(
  1148. 'customer' => array(
  1149. 'location' => 'path',
  1150. 'type' => 'string',
  1151. 'required' => true,
  1152. ),
  1153. 'roleId' => array(
  1154. 'location' => 'path',
  1155. 'type' => 'string',
  1156. 'required' => true,
  1157. ),
  1158. ),
  1159. ),'update' => array(
  1160. 'path' => 'customer/{customer}/roles/{roleId}',
  1161. 'httpMethod' => 'PUT',
  1162. 'parameters' => array(
  1163. 'customer' => array(
  1164. 'location' => 'path',
  1165. 'type' => 'string',
  1166. 'required' => true,
  1167. ),
  1168. 'roleId' => array(
  1169. 'location' => 'path',
  1170. 'type' => 'string',
  1171. 'required' => true,
  1172. ),
  1173. ),
  1174. ),
  1175. )
  1176. )
  1177. );
  1178. $this->schemas = new Google_Service_Directory_Schemas_Resource(
  1179. $this,
  1180. $this->serviceName,
  1181. 'schemas',
  1182. array(
  1183. 'methods' => array(
  1184. 'delete' => array(
  1185. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1186. 'httpMethod' => 'DELETE',
  1187. 'parameters' => array(
  1188. 'customerId' => array(
  1189. 'location' => 'path',
  1190. 'type' => 'string',
  1191. 'required' => true,
  1192. ),
  1193. 'schemaKey' => array(
  1194. 'location' => 'path',
  1195. 'type' => 'string',
  1196. 'required' => true,
  1197. ),
  1198. ),
  1199. ),'get' => array(
  1200. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1201. 'httpMethod' => 'GET',
  1202. 'parameters' => array(
  1203. 'customerId' => array(
  1204. 'location' => 'path',
  1205. 'type' => 'string',
  1206. 'required' => true,
  1207. ),
  1208. 'schemaKey' => array(
  1209. 'location' => 'path',
  1210. 'type' => 'string',
  1211. 'required' => true,
  1212. ),
  1213. ),
  1214. ),'insert' => array(
  1215. 'path' => 'customer/{customerId}/schemas',
  1216. 'httpMethod' => 'POST',
  1217. 'parameters' => array(
  1218. 'customerId' => array(
  1219. 'location' => 'path',
  1220. 'type' => 'string',
  1221. 'required' => true,
  1222. ),
  1223. ),
  1224. ),'list' => array(
  1225. 'path' => 'customer/{customerId}/schemas',
  1226. 'httpMethod' => 'GET',
  1227. 'parameters' => array(
  1228. 'customerId' => array(
  1229. 'location' => 'path',
  1230. 'type' => 'string',
  1231. 'required' => true,
  1232. ),
  1233. ),
  1234. ),'patch' => array(
  1235. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1236. 'httpMethod' => 'PATCH',
  1237. 'parameters' => array(
  1238. 'customerId' => array(
  1239. 'location' => 'path',
  1240. 'type' => 'string',
  1241. 'required' => true,
  1242. ),
  1243. 'schemaKey' => array(
  1244. 'location' => 'path',
  1245. 'type' => 'string',
  1246. 'required' => true,
  1247. ),
  1248. ),
  1249. ),'update' => array(
  1250. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1251. 'httpMethod' => 'PUT',
  1252. 'parameters' => array(
  1253. 'customerId' => array(
  1254. 'location' => 'path',
  1255. 'type' => 'string',
  1256. 'required' => true,
  1257. ),
  1258. 'schemaKey' => array(
  1259. 'location' => 'path',
  1260. 'type' => 'string',
  1261. 'required' => true,
  1262. ),
  1263. ),
  1264. ),
  1265. )
  1266. )
  1267. );
  1268. $this->tokens = new Google_Service_Directory_Tokens_Resource(
  1269. $this,
  1270. $this->serviceName,
  1271. 'tokens',
  1272. array(
  1273. 'methods' => array(
  1274. 'delete' => array(
  1275. 'path' => 'users/{userKey}/tokens/{clientId}',
  1276. 'httpMethod' => 'DELETE',
  1277. 'parameters' => array(
  1278. 'userKey' => array(
  1279. 'location' => 'path',
  1280. 'type' => 'string',
  1281. 'required' => true,
  1282. ),
  1283. 'clientId' => array(
  1284. 'location' => 'path',
  1285. 'type' => 'string',
  1286. 'required' => true,
  1287. ),
  1288. ),
  1289. ),'get' => array(
  1290. 'path' => 'users/{userKey}/tokens/{clientId}',
  1291. 'httpMethod' => 'GET',
  1292. 'parameters' => array(
  1293. 'userKey' => array(
  1294. 'location' => 'path',
  1295. 'type' => 'string',
  1296. 'required' => true,
  1297. ),
  1298. 'clientId' => array(
  1299. 'location' => 'path',
  1300. 'type' => 'string',
  1301. 'required' => true,
  1302. ),
  1303. ),
  1304. ),'list' => array(
  1305. 'path' => 'users/{userKey}/tokens',
  1306. 'httpMethod' => 'GET',
  1307. 'parameters' => array(
  1308. 'userKey' => array(
  1309. 'location' => 'path',
  1310. 'type' => 'string',
  1311. 'required' => true,
  1312. ),
  1313. ),
  1314. ),
  1315. )
  1316. )
  1317. );
  1318. $this->users = new Google_Service_Directory_Users_Resource(
  1319. $this,
  1320. $this->serviceName,
  1321. 'users',
  1322. array(
  1323. 'methods' => array(
  1324. 'delete' => array(
  1325. 'path' => 'users/{userKey}',
  1326. 'httpMethod' => 'DELETE',
  1327. 'parameters' => array(
  1328. 'userKey' => array(
  1329. 'location' => 'path',
  1330. 'type' => 'string',
  1331. 'required' => true,
  1332. ),
  1333. ),
  1334. ),'get' => array(
  1335. 'path' => 'users/{userKey}',
  1336. 'httpMethod' => 'GET',
  1337. 'parameters' => array(
  1338. 'userKey' => array(
  1339. 'location' => 'path',
  1340. 'type' => 'string',
  1341. 'required' => true,
  1342. ),
  1343. 'viewType' => array(
  1344. 'location' => 'query',
  1345. 'type' => 'string',
  1346. ),
  1347. 'customFieldMask' => array(
  1348. 'location' => 'query',
  1349. 'type' => 'string',
  1350. ),
  1351. 'projection' => array(
  1352. 'location' => 'query',
  1353. 'type' => 'string',
  1354. ),
  1355. ),
  1356. ),'insert' => array(
  1357. 'path' => 'users',
  1358. 'httpMethod' => 'POST',
  1359. 'parameters' => array(),
  1360. ),'list' => array(
  1361. 'path' => 'users',
  1362. 'httpMethod' => 'GET',
  1363. 'parameters' => array(
  1364. 'customer' => array(
  1365. 'location' => 'query',
  1366. 'type' => 'string',
  1367. ),
  1368. 'orderBy' => array(
  1369. 'location' => 'query',
  1370. 'type' => 'string',
  1371. ),
  1372. 'domain' => array(
  1373. 'location' => 'query',
  1374. 'type' => 'string',
  1375. ),
  1376. 'projection' => array(
  1377. 'location' => 'query',
  1378. 'type' => 'string',
  1379. ),
  1380. 'showDeleted' => array(
  1381. 'location' => 'query',
  1382. 'type' => 'string',
  1383. ),
  1384. 'customFieldMask' => array(
  1385. 'location' => 'query',
  1386. 'type' => 'string',
  1387. ),
  1388. 'maxResults' => array(
  1389. 'location' => 'query',
  1390. 'type' => 'integer',
  1391. ),
  1392. 'pageToken' => array(
  1393. 'location' => 'query',
  1394. 'type' => 'string',
  1395. ),
  1396. 'sortOrder' => array(
  1397. 'location' => 'query',
  1398. 'type' => 'string',
  1399. ),
  1400. 'query' => array(
  1401. 'location' => 'query',
  1402. 'type' => 'string',
  1403. ),
  1404. 'viewType' => array(
  1405. 'location' => 'query',
  1406. 'type' => 'string',
  1407. ),
  1408. 'event' => array(
  1409. 'location' => 'query',
  1410. 'type' => 'string',
  1411. ),
  1412. ),
  1413. ),'makeAdmin' => array(
  1414. 'path' => 'users/{userKey}/makeAdmin',
  1415. 'httpMethod' => 'POST',
  1416. 'parameters' => array(
  1417. 'userKey' => array(
  1418. 'location' => 'path',
  1419. 'type' => 'string',
  1420. 'required' => true,
  1421. ),
  1422. ),
  1423. ),'patch' => array(
  1424. 'path' => 'users/{userKey}',
  1425. 'httpMethod' => 'PATCH',
  1426. 'parameters' => array(
  1427. 'userKey' => array(
  1428. 'location' => 'path',
  1429. 'type' => 'string',
  1430. 'required' => true,
  1431. ),
  1432. ),
  1433. ),'undelete' => array(
  1434. 'path' => 'users/{userKey}/undelete',
  1435. 'httpMethod' => 'POST',
  1436. 'parameters' => array(
  1437. 'userKey' => array(
  1438. 'location' => 'path',
  1439. 'type' => 'string',
  1440. 'required' => true,
  1441. ),
  1442. ),
  1443. ),'update' => array(
  1444. 'path' => 'users/{userKey}',
  1445. 'httpM…

Large files files are truncated, but you can click here to view the full file