PageRenderTime 55ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 1ms

/src/Google/Service/Directory.php

https://github.com/leogaggl/pluspress
PHP | 5127 lines | 3739 code | 544 blank | 844 comment | 0 complexity | 1a7300157aa6ffe76d40b43c8fbfbc6b MD5 | raw file

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

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