PageRenderTime 71ms CodeModel.GetById 18ms 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
  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. class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource
  1430. {
  1431. /**
  1432. * Remove a alias for the group (aliases.delete)
  1433. *
  1434. * @param string $groupKey
  1435. * Email or immutable Id of the group
  1436. * @param string $alias
  1437. * The alias to be removed
  1438. * @param array $optParams Optional parameters.
  1439. */
  1440. public function delete($groupKey, $alias, $optParams = array())
  1441. {
  1442. $params = array('groupKey' => $groupKey, 'alias' => $alias);
  1443. $params = array_merge($params, $optParams);
  1444. return $this->call('delete', array($params));
  1445. }
  1446. /**
  1447. * Add a alias for the group (aliases.insert)
  1448. *
  1449. * @param string $groupKey
  1450. * Email or immutable Id of the group
  1451. * @param Google_Alias $postBody
  1452. * @param array $optParams Optional parameters.
  1453. * @return Google_Service_Directory_Alias
  1454. */
  1455. public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array())
  1456. {
  1457. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  1458. $params = array_merge($params, $optParams);
  1459. return $this->call('insert', array($params), "Google_Service_Directory_Alias");
  1460. }
  1461. /**
  1462. * List all aliases for a group (aliases.listGroupsAliases)
  1463. *
  1464. * @param string $groupKey
  1465. * Email or immutable Id of the group
  1466. * @param array $optParams Optional parameters.
  1467. * @return Google_Service_Directory_Aliases
  1468. */
  1469. public function listGroupsAliases($groupKey, $optParams = array())
  1470. {
  1471. $params = array('groupKey' => $groupKey);
  1472. $params = array_merge($params, $optParams);
  1473. return $this->call('list', array($params), "Google_Service_Directory_Aliases");
  1474. }
  1475. }
  1476. /**
  1477. * The "members" collection of methods.
  1478. * Typical usage is:
  1479. * <code>
  1480. * $adminService = new Google_Service_Directory(...);
  1481. * $members = $adminService->members;
  1482. * </code>
  1483. */
  1484. class Google_Service_Directory_Members_Resource extends Google_Service_Resource
  1485. {
  1486. /**
  1487. * Remove membership. (members.delete)
  1488. *
  1489. * @param string $groupKey
  1490. * Email or immutable Id of the group
  1491. * @param string $memberKey
  1492. * Email or immutable Id of the member
  1493. * @param array $optParams Optional parameters.
  1494. */
  1495. public function delete($groupKey, $memberKey, $optParams = array())
  1496. {
  1497. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
  1498. $params = array_merge($params, $optParams);
  1499. return $this->call('delete', array($params));
  1500. }
  1501. /**
  1502. * Retrieve Group Member (members.get)
  1503. *
  1504. * @param string $groupKey
  1505. * Email or immutable Id of the group
  1506. * @param string $memberKey
  1507. * Email or immutable Id of the member
  1508. * @param array $optParams Optional parameters.
  1509. * @return Google_Service_Directory_Member
  1510. */
  1511. public function get($groupKey, $memberKey, $optParams = array())
  1512. {
  1513. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
  1514. $params = array_merge($params, $optParams);
  1515. return $this->call('get', array($params), "Google_Service_Directory_Member");
  1516. }
  1517. /**
  1518. * Add user to the specified group. (members.insert)
  1519. *
  1520. * @param string $groupKey
  1521. * Email or immutable Id of the group
  1522. * @param Google_Member $postBody
  1523. * @param array $optParams Optional parameters.
  1524. * @return Google_Service_Directory_Member
  1525. */
  1526. public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array())
  1527. {
  1528. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  1529. $params = array_merge($params, $optParams);
  1530. return $this->call('insert', array($params), "Google_Service_Directory_Member");
  1531. }
  1532. /**
  1533. * Retrieve all members in a group (paginated) (members.listMembers)
  1534. *
  1535. * @param string $groupKey
  1536. * Email or immutable Id of the group
  1537. * @param array $optParams Optional parameters.
  1538. *
  1539. * @opt_param string pageToken
  1540. * Token to specify next page in the list
  1541. * @opt_param string roles
  1542. * Comma separated role values to filter list results on.
  1543. * @opt_param int maxResults
  1544. * Maximum number of results to return. Default is 200
  1545. * @return Google_Service_Directory_Members
  1546. */
  1547. public function listMembers($groupKey, $optParams = array())
  1548. {
  1549. $params = array('groupKey' => $groupKey);
  1550. $params = array_merge($params, $optParams);
  1551. return $this->call('list', array($params), "Google_Service_Directory_Members");
  1552. }
  1553. /**
  1554. * Update membership of a user in the specified group. This method supports
  1555. * patch semantics. (members.patch)
  1556. *
  1557. * @param string $groupKey
  1558. * Email or immutable Id of the group. If Id, it should match with id of group object
  1559. * @param string $memberKey
  1560. * Email or immutable Id of the user. If Id, it should match with id of member object
  1561. * @param Google_Member $postBody
  1562. * @param array $optParams Optional parameters.
  1563. * @return Google_Service_Directory_Member
  1564. */
  1565. public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
  1566. {
  1567. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
  1568. $params = array_merge($params, $optParams);
  1569. return $this->call('patch', array($params), "Google_Service_Directory_Member");
  1570. }
  1571. /**
  1572. * Update membership of a user in the specified group. (members.update)
  1573. *
  1574. * @param string $groupKey
  1575. * Email or immutable Id of the group. If Id, it should match with id of group object
  1576. * @param string $memberKey
  1577. * Email or immutable Id of the user. If Id, it should match with id of member object
  1578. * @param Google_Member $postBody
  1579. * @param array $optParams Optional parameters.
  1580. * @return Google_Service_Directory_Member
  1581. */
  1582. public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
  1583. {
  1584. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
  1585. $params = array_merge($params, $optParams);
  1586. return $this->call('update', array($params), "Google_Service_Directory_Member");
  1587. }
  1588. }
  1589. /**
  1590. * The "mobiledevices" collection of methods.
  1591. * Typical usage is:
  1592. * <code>
  1593. * $adminService = new Google_Service_Directory(...);
  1594. * $mobiledevices = $adminService->mobiledevices;
  1595. * </code>
  1596. */
  1597. class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource
  1598. {
  1599. /**
  1600. * Take action on Mobile Device (mobiledevices.action)
  1601. *
  1602. * @param string $customerId
  1603. * Immutable id of the Google Apps account
  1604. * @param string $resourceId
  1605. * Immutable id of Mobile Device
  1606. * @param Google_MobileDeviceAction $postBody
  1607. * @param array $optParams Optional parameters.
  1608. */
  1609. public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
  1610. {
  1611. $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
  1612. $params = array_merge($params, $optParams);
  1613. return $this->call('action', array($params));
  1614. }
  1615. /**
  1616. * Delete Mobile Device (mobiledevices.delete)
  1617. *
  1618. * @param string $customerId
  1619. * Immutable id of the Google Apps account
  1620. * @param string $resourceId
  1621. * Immutable id of Mobile Device
  1622. * @param array $optParams Optional parameters.
  1623. */
  1624. public function delete($customerId, $resourceId, $optParams = array())
  1625. {
  1626. $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
  1627. $params = array_merge($params, $optParams);
  1628. return $this->call('delete', array($params));
  1629. }
  1630. /**
  1631. * Retrieve Mobile Device (mobiledevices.get)
  1632. *
  1633. * @param string $customerId
  1634. * Immutable id of the Google Apps account
  1635. * @param string $resourceId
  1636. * Immutable id of Mobile Device
  1637. * @param array $optParams Optional parameters.
  1638. *
  1639. * @opt_param string projection
  1640. * Restrict information returned to a set of selected fields.
  1641. * @return Google_Service_Directory_MobileDevice
  1642. */
  1643. public function get($customerId, $resourceId, $optParams = array())
  1644. {
  1645. $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
  1646. $params = array_merge($params, $optParams);
  1647. return $this->call('get', array($params), "Google_Service_Directory_MobileDevice");
  1648. }
  1649. /**
  1650. * Retrieve all Mobile Devices of a customer (paginated)
  1651. * (mobiledevices.listMobiledevices)
  1652. *
  1653. * @param string $customerId
  1654. * Immutable id of the Google Apps account
  1655. * @param array $optParams Optional parameters.
  1656. *
  1657. * @opt_param string orderBy
  1658. * Column to use for sorting results
  1659. * @opt_param string projection
  1660. * Restrict information returned to a set of selected fields.
  1661. * @opt_param int maxResults
  1662. * Maximum number of results to return. Default is 100
  1663. * @opt_param string pageToken
  1664. * Token to specify next page in the list
  1665. * @opt_param string sortOrder
  1666. * Whether to return results in ascending or descending order. Only of use when orderBy is also
  1667. * used
  1668. * @opt_param string query
  1669. * Search string in the format given at
  1670. * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
  1671. * @return Google_Service_Directory_MobileDevices
  1672. */
  1673. public function listMobiledevices($customerId, $optParams = array())
  1674. {
  1675. $params = array('customerId' => $customerId);
  1676. $params = array_merge($params, $optParams);
  1677. return $this->call('list', array($params), "Google_Service_Directory_MobileDevices");
  1678. }
  1679. }
  1680. /**
  1681. * The "notifications" collection of methods.
  1682. * Typical usage is:
  1683. * <code>
  1684. * $adminService = new Google_Service_Directory(...);
  1685. * $notifications = $adminService->notifications;
  1686. * </code>
  1687. */
  1688. class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource
  1689. {
  1690. /**
  1691. * Deletes a notification (notifications.delete)
  1692. *
  1693. * @param string $customer
  1694. * The unique ID for the customer's Google account. The customerId is also returned as part of the
  1695. * Users resource.
  1696. * @param string $notificationId
  1697. * The unique ID of the notification.
  1698. * @param array $optParams Optional parameters.
  1699. */
  1700. public function delete($customer, $notificationId, $optParams = array())
  1701. {
  1702. $params = array('customer' => $customer, 'notificationId' => $notificationId);
  1703. $params = array_merge($params, $optParams);
  1704. return $this->call('delete', array($params));
  1705. }
  1706. /**
  1707. * Retrieves a notification. (notifications.get)
  1708. *
  1709. * @param string $customer
  1710. * The unique ID for the customer's Google account. The customerId is also returned as part of the
  1711. * Users resource.
  1712. * @param string $notificationId
  1713. * The unique ID of the notification.
  1714. * @param array $optParams Optional parameters.
  1715. * @return Google_Service_Directory_Notification
  1716. */
  1717. public function get($customer, $notificationId, $optParams = array())
  1718. {
  1719. $params = array('customer' => $customer, 'notificationId' => $notificationId);
  1720. $params = array_merge($params, $optParams);
  1721. return $this->call('get', array($params), "Google_Service_Directory_Notification");
  1722. }
  1723. /**
  1724. * Retrieves a list of notifications. (notifications.listNotifications)
  1725. *
  1726. * @param string $customer
  1727. * The unique ID for the customer's Google account.
  1728. * @param array $optParams Optional parameters.
  1729. *
  1730. * @opt_param string pageToken
  1731. * The token to specify the page of results to retrieve.
  1732. * @opt_param string maxResults
  1733. * Maximum number of notifications to return per page. The default is 100.
  1734. * @opt_param string language
  1735. * The ISO 639-1 code of the language notifications are returned in. The default is English (en).
  1736. * @return Google_Service_Directory_Notifications
  1737. */
  1738. public function listNotifications($customer, $optParams = array())
  1739. {
  1740. $params = array('customer' => $customer);
  1741. $params = array_merge($params, $optParams);
  1742. return $this->call('list', array($params), "Google_Service_Directory_Notifications");
  1743. }
  1744. /**
  1745. * Updates a notification. This method supports patch semantics.
  1746. * (notifications.patch)
  1747. *
  1748. * @param string $customer
  1749. * The unique ID for the customer's Google account.
  1750. * @param string $notificationId
  1751. * The unique ID of the notification.
  1752. * @param Google_Notification $postBody
  1753. * @param array $optParams Optional parameters.
  1754. * @return Google_Service_Directory_Notification
  1755. */
  1756. public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
  1757. {
  1758. $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
  1759. $params = array_merge($params, $optParams);
  1760. return $this->call('patch', array($params), "Google_Service_Directory_Notification");
  1761. }
  1762. /**
  1763. * Updates a notification. (notifications.update)
  1764. *
  1765. * @param string $customer
  1766. * The unique ID for the customer's Google account.
  1767. * @param string $notificationId
  1768. * The unique ID of the notification.
  1769. * @param Google_Notification $postBody
  1770. * @param array $optParams Optional parameters.
  1771. * @return Google_Service_Directory_Notification
  1772. */
  1773. public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
  1774. {
  1775. $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
  1776. $params = array_merge($params, $optParams);
  1777. return $this->call('update', array($params), "Google_Service_Directory_Notification");
  1778. }
  1779. }
  1780. /**
  1781. * The "orgunits" collection of methods.
  1782. * Typical usage is:
  1783. * <code>
  1784. * $adminService = new Google_Service_Directory(...);
  1785. * $orgunits = $adminService->orgunits;
  1786. * </code>
  1787. */
  1788. class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
  1789. {
  1790. /**
  1791. * Remove Organization Unit (orgunits.delete)
  1792. *
  1793. * @param string $customerId
  1794. * Immutable id of the Google Apps account
  1795. * @param string $orgUnitPath
  1796. * Full path of the organization unit
  1797. * @param array $optParams Optional parameters.
  1798. */
  1799. public function delete($customerId, $orgUnitPath, $optParams = array())
  1800. {
  1801. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
  1802. $params = array_merge($params, $optParams);
  1803. return $this->call('delete', array($params));
  1804. }
  1805. /**
  1806. * Retrieve Organization Unit (orgunits.get)
  1807. *
  1808. * @param string $customerId
  1809. * Immutable id of the Google Apps account
  1810. * @param string $orgUnitPath
  1811. * Full path of the organization unit
  1812. * @param array $optParams Optional parameters.
  1813. * @return Google_Service_Directory_OrgUnit
  1814. */
  1815. public function get($customerId, $orgUnitPath, $optParams = array())
  1816. {
  1817. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
  1818. $params = array_merge($params, $optParams);
  1819. return $this->call('get', array($params), "Google_Service_Directory_OrgUnit");
  1820. }
  1821. /**
  1822. * Add Organization Unit (orgunits.insert)
  1823. *
  1824. * @param string $customerId
  1825. * Immutable id of the Google Apps account
  1826. * @param Google_OrgUnit $postBody
  1827. * @param array $optParams Optional parameters.
  1828. * @return Google_Service_Directory_OrgUnit
  1829. */
  1830. public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  1831. {
  1832. $params = array('customerId' => $customerId, 'postBody' => $postBody);
  1833. $params = array_merge($params, $optParams);
  1834. return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit");
  1835. }
  1836. /**
  1837. * Retrieve all Organization Units (orgunits.listOrgunits)
  1838. *
  1839. * @param string $customerId
  1840. * Immutable id of the Google Apps account
  1841. * @param array $optParams Optional parameters.
  1842. *
  1843. * @opt_param string type
  1844. * Whether to return all sub-organizations or just immediate children
  1845. * @opt_param string orgUnitPath
  1846. * the URL-encoded organization unit
  1847. * @return Google_Service_Directory_OrgUnits
  1848. */
  1849. public function listOrgunits($customerId, $optParams = array())
  1850. {
  1851. $params = array('customerId' => $customerId);
  1852. $params = array_merge($params, $optParams);
  1853. return $this->call('list', array($params), "Google_Service_Directory_OrgUnits");
  1854. }
  1855. /**
  1856. * Update Organization Unit. This method supports patch semantics.
  1857. * (orgunits.patch)
  1858. *
  1859. * @param string $customerId
  1860. * Immutable id of the Google Apps account
  1861. * @param string $orgUnitPath
  1862. * Full path of the organization unit
  1863. * @param Google_OrgUnit $postBody
  1864. * @param array $optParams Optional parameters.
  1865. * @return Google_Service_Directory_OrgUnit
  1866. */
  1867. public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  1868. {
  1869. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
  1870. $params = array_merge($params, $optParams);
  1871. return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit");
  1872. }
  1873. /**
  1874. * Update Organization Unit (orgunits.update)
  1875. *
  1876. * @param string $customerId
  1877. * Immutable id of the Google Apps account
  1878. * @param string $orgUnitPath
  1879. * Full path of the organization unit
  1880. * @param Google_OrgUnit $postBody
  1881. * @param array $optParams Optional parameters.
  1882. * @return Google_Service_Directory_OrgUnit
  1883. */
  1884. public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  1885. {
  1886. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
  1887. $params = array_merge($params, $optParams);
  1888. return $this->call('update', array($params), "Google_Service_Directory_OrgUnit");
  1889. }
  1890. }
  1891. /**
  1892. * The "tokens" collection of methods.
  1893. * Typical usage is:
  1894. * <code>
  1895. * $adminService = new Google_Service_Directory(...);
  1896. * $tokens = $adminService->tokens;
  1897. * </code>
  1898. */
  1899. class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
  1900. {
  1901. /**
  1902. * Delete all access tokens issued by a user for an application. (tokens.delete)
  1903. *
  1904. * @param string $userKey
  1905. * Identifies the user in the API request. The value can be the user's primary email address, alias
  1906. * email address, or unique user ID.
  1907. * @param string $clientId
  1908. * The Client ID of the application the token is issued to.
  1909. * @param array $optParams Optional parameters.
  1910. */
  1911. public function delete($userKey, $clientId, $optParams = array())
  1912. {
  1913. $params = array('userKey' => $userKey, 'clientId' => $clientId);
  1914. $params = array_merge($params, $optParams);
  1915. return $this->call('delete', array($params));
  1916. }
  1917. /**
  1918. * Get information about an access token issued by a user. (tokens.get)
  1919. *
  1920. * @param string $userKey
  1921. * Identifies the user in the API request. The value can be the user's primary email address, alias
  1922. * email address, or unique user ID.
  1923. * @param string $clientId
  1924. * The Client ID of the application the token is issued to.
  1925. * @param array $optParams Optional parameters.
  1926. * @return Google_Service_Directory_Token
  1927. */
  1928. public function get($userKey, $clientId, $optParams = array())
  1929. {
  1930. $params = array('userKey' => $userKey, 'clientId' => $clientId);
  1931. $params = array_merge($params, $optParams);
  1932. return $this->call('get', array($params), "Google_Service_Directory_Token");
  1933. }
  1934. /**
  1935. * Returns the set of current, valid verification codes for the specified user.
  1936. * (tokens.listTokens)
  1937. *
  1938. * @param string $userKey
  1939. * Identifies the user in the API request. The value can be the user's primary email address, alias
  1940. * email address, or unique user ID.
  1941. * @param array $optParams Optional parameters.
  1942. * @return Google_Service_Directory_Tokens
  1943. */
  1944. public function listTokens($userKey, $optParams = array())
  1945. {
  1946. $params = array('userKey' => $userKey);
  1947. $params = array_merge($params, $optParams);
  1948. return $this->call('list', array($params), "Google_Service_Directory_Tokens");
  1949. }
  1950. }
  1951. /**
  1952. * The "users" collection of methods.
  1953. * Typical usage is:
  1954. * <code>
  1955. * $adminService = new Google_Service_Directory(...);
  1956. * $users = $adminService->users;
  1957. * </code>
  1958. */
  1959. class Google_Service_Directory_Users_Resource extends Google_Service_Resource
  1960. {
  1961. /**
  1962. * Delete user (users.delete)
  1963. *
  1964. * @param string $userKey
  1965. * Email or immutable Id of the user
  1966. * @param array $optParams Optional parameters.
  1967. */
  1968. public function delete($userKey, $optParams = array())
  1969. {
  1970. $params = array('userKey' => $userKey);
  1971. $params = array_merge($params, $optParams);
  1972. return $this->call('delete', array($params));
  1973. }
  1974. /**
  1975. * retrieve user (users.get)
  1976. *
  1977. * @param string $userKey
  1978. * Email or immutable Id of the user
  1979. * @param array $optParams Optional parameters.
  1980. * @return Google_Service_Directory_User
  1981. */
  1982. public function get($userKey, $optParams = array())
  1983. {
  1984. $params = array('userKey' => $userKey);
  1985. $params = array_merge($params, $optParams);
  1986. return $this->call('get', array($params), "Google_Service_Directory_User");
  1987. }
  1988. /**
  1989. * create user. (users.insert)
  1990. *
  1991. * @param Google_User $postBody
  1992. * @param array $optParams Optional parameters.
  1993. * @return Google_Service_Directory_User
  1994. */
  1995. public function insert(Google_Service_Directory_User $postBody, $optParams = array())
  1996. {
  1997. $params = array('postBody' => $postBody);
  1998. $params = array_merge($params, $optParams);
  1999. return $this->call('insert', array($params), "Google_Service_Directory_User");
  2000. }
  2001. /**
  2002. * Retrieve either deleted users or all users in a domain (paginated)
  2003. * (users.listUsers)
  2004. *
  2005. * @param array $optParams Optional parameters.
  2006. *
  2007. * @opt_param string customer
  2008. * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a
  2009. * customer, fill this field instead of domain.
  2010. * @opt_param string orderBy
  2011. * Column to use for sorting results
  2012. * @opt_param string domain
  2013. * Name of the domain. Fill this field to get users from only this domain. To return all users in a
  2014. * multi-domain fill customer field instead.
  2015. * @opt_param string showDeleted
  2016. * If set to true retrieves the list of deleted users. Default is false
  2017. * @opt_param int maxResults
  2018. * Maximum number of results to return. Default is 100. Max allowed is 500
  2019. * @opt_param string pageToken
  2020. * Token to specify next page in the list
  2021. * @opt_param string sortOrder
  2022. * Whether to return results in ascending or descending order.
  2023. * @opt_param string query
  2024. * Query string search. Should be of the form "" where field can be any of supported fields,
  2025. * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value
  2026. * should always be followed by a *.
  2027. * @opt_param string event
  2028. * Event on which subscription is intended (if subscribing)
  2029. * @return Google_Service_Directory_Users
  2030. */
  2031. public function listUsers($optParams = array())
  2032. {
  2033. $params = array();
  2034. $params = array_merge($params, $optParams);
  2035. return $this->call('list', array($params), "Google_Service_Directory_Users");
  2036. }
  2037. /**
  2038. * change admin status of a user (users.makeAdmin)
  2039. *
  2040. * @param string $userKey
  2041. * Email or immutable Id of the user as admin
  2042. * @param Google_UserMakeAdmin $postBody
  2043. * @param array $optParams Optional parameters.
  2044. */
  2045. public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
  2046. {
  2047. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2048. $params = array_merge($params, $optParams);
  2049. return $this->call('makeAdmin', array($params));
  2050. }
  2051. /**
  2052. * update user. This method supports patch semantics. (users.patch)
  2053. *
  2054. * @param string $userKey
  2055. * Email or immutable Id of the user. If Id, it should match with id of user object
  2056. * @param Google_User $postBody
  2057. * @param array $optParams Optional parameters.
  2058. * @return Google_Service_Directory_User
  2059. */
  2060. public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array())
  2061. {
  2062. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2063. $params = array_merge($params, $optParams);
  2064. return $this->call('patch', array($params), "Google_Service_Directory_User");
  2065. }
  2066. /**
  2067. * Undelete a deleted user (users.undelete)
  2068. *
  2069. * @param string $userKey
  2070. * The immutable id of the user
  2071. * @param Google_UserUndelete $postBody
  2072. * @param array $optParams Optional parameters.
  2073. */
  2074. public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array())
  2075. {
  2076. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2077. $params = array_merge($params, $optParams);
  2078. return $this->call('undelete', array($params));
  2079. }
  2080. /**
  2081. * update user (users.update)
  2082. *
  2083. * @param string $userKey
  2084. * Email or immutable Id of the user. If Id, it should match with id of user object
  2085. * @param Google_User $postBody
  2086. * @param array $optParams Optional parameters.
  2087. * @return Google_Service_Directory_User
  2088. */
  2089. public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array())
  2090. {
  2091. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2092. $params = array_merge($params, $optParams);
  2093. return $this->call('update', array($params), "Google_Service_Directory_User");
  2094. }
  2095. /**
  2096. * Watch for changes in users list (users.watch)
  2097. *
  2098. * @param Google_Channel $postBody
  2099. * @param array $optParams Optional parameters.
  2100. *
  2101. * @opt_param string customer
  2102. * Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a
  2103. * customer, fill this field instead of domain.
  2104. * @opt_param string orderBy
  2105. * Column to use for sorting results
  2106. * @opt_param string domain
  2107. * Name of the domain. Fill this field to get users from only this domain. To return all users in a
  2108. * multi-domain fill customer field instead.
  2109. * @opt_param string showDeleted
  2110. * If set to true retrieves the list of deleted users. Default is false
  2111. * @opt_param int maxResults
  2112. * Maximum number of results to return. Default is 100. Max allowed is 500
  2113. * @opt_param string pageToken
  2114. * Token to specify next page in the list
  2115. * @opt_param string sortOrder
  2116. * Whether to return results in ascending or descending order.
  2117. * @opt_param string query
  2118. * Query string search. Should be of the form "" where field can be any of supported fields,
  2119. * operators can be one of '=' for exact match or ':' for prefix match. For prefix match, the value
  2120. * should always be followed by a *.
  2121. * @opt_param string event
  2122. * Event on which subscription is intended (if subscribing)
  2123. * @return Google_Service_Directory_Channel
  2124. */
  2125. public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
  2126. {
  2127. $params = array('postBody' => $postBody);
  2128. $params = array_merge($params, $optParams);
  2129. return $this->call('watch', array($params), "Google_Service_Directory_Channel");
  2130. }
  2131. }
  2132. /**
  2133. * The "aliases" collection of methods.
  2134. * Typical usage is:
  2135. * <code>
  2136. * $adminService = new Google_Service_Directory(...);
  2137. * $aliases = $adminService->aliases;
  2138. * </code>
  2139. */
  2140. class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource
  2141. {
  2142. /**
  2143. * Remove a alias for the user (aliases.delete)
  2144. *
  2145. * @param string $userKey
  2146. * Email or immutable Id of the user
  2147. * @param string $alias
  2148. * The alias to be removed
  2149. * @param array $optParams Optional parameters.
  2150. */
  2151. public function delete($userKey, $alias, $optParams = array())
  2152. {
  2153. $params = array('userKey' => $userKey, 'alias' => $alias);
  2154. $params = array_merge($params, $optParams);
  2155. return $this->call('delete', array($params));
  2156. }
  2157. /**
  2158. * Add a alias for the user (aliases.insert)
  2159. *
  2160. * @param string $userKey
  2161. * Email or immutable Id of the user
  2162. * @param Google_Alias $postBody
  2163. * @param array $optParams Optional parameters.
  2164. * @return Google_Service_Directory_Alias
  2165. */
  2166. public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array())
  2167. {
  2168. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2169. $params = array_merge($params, $optParams);
  2170. return $this->call('insert', array($params), "Google_Service_Directory_Alias");
  2171. }
  2172. /**
  2173. * List all aliases for a user (aliases.listUsersAliases)
  2174. *
  2175. * @param string $userKey
  2176. * Email or immutable Id of the user
  2177. * @param array $optParams Optional parameters.
  2178. *
  2179. * @opt_param string event
  2180. * Event on which subscription is intended (if subscribing)
  2181. * @return Google_Service_Directory_Aliases
  2182. */
  2183. public function listUsersAliases($userKey, $optParams = array())
  2184. {
  2185. $params = array('userKey' => $userKey);
  2186. $params = array_merge($params, $optParams);
  2187. return $this->call('list', array($params), "Google_Service_Directory_Aliases");
  2188. }
  2189. /**
  2190. * Watch for changes in user aliases list (aliases.watch)
  2191. *
  2192. * @param string $userKey
  2193. * Email or immutable Id of the user
  2194. * @param Google_Channel $postBody
  2195. * @param array $optParams Optional parameters.
  2196. *
  2197. * @opt_param string event
  2198. * Event on which subscription is intended (if subscribing)
  2199. * @return Google_Service_Directory_Channel
  2200. */
  2201. public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
  2202. {
  2203. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2204. $params = array_merge($params, $optParams);
  2205. return $this->call('watch', array($params), "Google_Service_Directory_Channel");
  2206. }
  2207. }
  2208. /**
  2209. * The "photos" collection of methods.
  2210. * Typical usage is:
  2211. * <code>
  2212. * $adminService = new Google_Service_Directory(...);
  2213. * $photos = $adminService->photos;
  2214. * </code>
  2215. */
  2216. class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource
  2217. {
  2218. /**
  2219. * Remove photos for the user (photos.delete)
  2220. *
  2221. * @param string $userKey
  2222. * Email or immutable Id of the user
  2223. * @param array $optParams Optional parameters.
  2224. */
  2225. public function delete($userKey, $optParams = array())
  2226. {
  2227. $params = array('userKey' => $userKey);
  2228. $params = array_merge($params, $optParams);
  2229. return $this->call('delete', array($params));
  2230. }
  2231. /**
  2232. * Retrieve photo of a user (photos.get)
  2233. *
  2234. * @param string $userKey
  2235. * Email or immutable Id of the user
  2236. * @param array $optParams Optional parameters.
  2237. * @return Google_Service_Directory_UserPhoto
  2238. */
  2239. public function get($userKey, $optParams = array())
  2240. {
  2241. $params = array('userKey' => $userKey);
  2242. $params = array_merge($params, $optParams);
  2243. return $this->call('get', array($params), "Google_Service_Directory_UserPhoto");
  2244. }
  2245. /**
  2246. * Add a photo for the user. This method supports patch semantics.
  2247. * (photos.patch)
  2248. *
  2249. * @param string $userKey
  2250. * Email or immutable Id of the user
  2251. * @param Google_UserPhoto $postBody
  2252. * @param array $optParams Optional parameters.
  2253. * @return Google_Service_Directory_UserPhoto
  2254. */
  2255. public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
  2256. {
  2257. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2258. $params = array_merge($params, $optParams);
  2259. return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto");
  2260. }
  2261. /**
  2262. * Add a photo for the user (photos.update)
  2263. *
  2264. * @param string $userKey
  2265. * Email or immutable Id of the user
  2266. * @param Google_UserPhoto $postBody
  2267. * @param array $optParams Optional parameters.
  2268. * @return Google_Service_Directory_UserPhoto
  2269. */
  2270. public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
  2271. {
  2272. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2273. $params = array_merge($params, $optParams);
  2274. return $this->call('update', array($params), "Google_Service_Directory_UserPhoto");
  2275. }
  2276. }
  2277. /**
  2278. * The "verificationCodes" collection of methods.
  2279. * Typical usage is:
  2280. * <code>
  2281. * $adminService = new Google_Service_Directory(...);
  2282. * $verificationCodes = $adminService->verificationCodes;
  2283. * </code>
  2284. */
  2285. class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource
  2286. {
  2287. /**
  2288. * Generate new backup verification codes for the user.
  2289. * (verificationCodes.generate)
  2290. *
  2291. * @param string $userKey
  2292. * Email or immutable Id of the user
  2293. * @param array $optParams Optional parameters.
  2294. */
  2295. public function generate($userKey, $optParams = array())
  2296. {
  2297. $params = array('userKey' => $userKey);
  2298. $params = array_merge($params, $optParams);
  2299. return $this->call('generate', array($params));
  2300. }
  2301. /**
  2302. * Invalidate the current backup verification codes for the user.
  2303. * (verificationCodes.invalidate)
  2304. *
  2305. * @param string $userKey
  2306. * Email or immutable Id of the user
  2307. * @param array $optParams Optional parameters.
  2308. */
  2309. public function invalidate($userKey, $optParams = array())
  2310. {
  2311. $params = array('userKey' => $userKey);
  2312. $params = array_merge($params, $optParams);
  2313. return $this->call('invalidate', array($params));
  2314. }
  2315. /**
  2316. * Returns the current set of valid backup verification codes for the specified
  2317. * user. (verificationCodes.listVerificationCodes)
  2318. *
  2319. * @param string $userKey
  2320. * Identifies the user in the API request. The value can be the user's primary email address, alias
  2321. * email address, or unique user ID.
  2322. * @param array $optParams Optional parameters.
  2323. * @return Google_Service_Directory_VerificationCodes
  2324. */
  2325. public function listVerificationCodes($userKey, $optParams = array())
  2326. {
  2327. $params = array('userKey' => $userKey);
  2328. $params = array_merge($params, $optParams);
  2329. return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes");
  2330. }
  2331. }
  2332. class Google_Service_Directory_Alias extends Google_Model
  2333. {
  2334. public $alias;
  2335. public $etag;
  2336. public $id;
  2337. public $kind;
  2338. public $primaryEmail;
  2339. public function setAlias($alias)
  2340. {
  2341. $this->alias = $alias;
  2342. }
  2343. public function getAlias()
  2344. {
  2345. return $this->alias;
  2346. }
  2347. public function setEtag($etag)
  2348. {
  2349. $this->etag = $etag;
  2350. }
  2351. public function getEtag()
  2352. {
  2353. return $this->etag;
  2354. }
  2355. public function setId($id)
  2356. {
  2357. $this->id = $id;
  2358. }
  2359. public function getId()
  2360. {
  2361. return $this->id;
  2362. }
  2363. public function setKind($kind)
  2364. {
  2365. $this->kind = $kind;
  2366. }
  2367. public function getKind()
  2368. {
  2369. return $this->kind;
  2370. }
  2371. public function setPrimaryEmail($primaryEmail)
  2372. {
  2373. $this->primaryEmail = $primaryEmail;
  2374. }
  2375. public function getPrimaryEmail()
  2376. {
  2377. return $this->primaryEmail;
  2378. }
  2379. }
  2380. class Google_Service_Directory_Aliases extends Google_Collection
  2381. {
  2382. protected $aliasesType = 'Google_Service_Directory_Alias';
  2383. protected $aliasesDataType = 'array';
  2384. public $etag;
  2385. public $kind;
  2386. public function setAliases($aliases)
  2387. {
  2388. $this->aliases = $aliases;
  2389. }
  2390. public function getAliases()
  2391. {
  2392. return $this->aliases;
  2393. }
  2394. public function setEtag($etag)
  2395. {
  2396. $this->etag = $etag;
  2397. }
  2398. public function getEtag()
  2399. {
  2400. return $this->etag;
  2401. }
  2402. public function setKind($kind)
  2403. {
  2404. $this->kind = $kind;
  2405. }
  2406. public function getKind()
  2407. {
  2408. return $this->kind;
  2409. }
  2410. }
  2411. class Google_Service_Directory_Asp extends Google_Model
  2412. {
  2413. public $codeId;
  2414. public $creationTime;
  2415. public $etag;
  2416. public $kind;
  2417. public $lastTimeUsed;
  2418. public $name;
  2419. public $userKey;
  2420. public function setCodeId($codeId)
  2421. {
  2422. $this->codeId = $codeId;
  2423. }
  2424. public function getCodeId()
  2425. {
  2426. return $this->codeId;
  2427. }
  2428. public function setCreationTime($creationTime)
  2429. {
  2430. $this->creationTime = $creationTime;
  2431. }
  2432. public function getCreationTime()
  2433. {
  2434. return $this->creationTime;
  2435. }
  2436. public function setEtag($etag)
  2437. {
  2438. $this->etag = $etag;
  2439. }
  2440. public function getEtag()
  2441. {
  2442. return $this->etag;
  2443. }
  2444. public function setKind($kind)
  2445. {
  2446. $this->kind = $kind;
  2447. }
  2448. public function getKind()
  2449. {
  2450. return $this->kind;
  2451. }
  2452. public function setLastTimeUsed($lastTimeUsed)
  2453. {
  2454. $this->lastTimeUsed = $lastTimeUsed;
  2455. }
  2456. public function getLastTimeUsed()
  2457. {
  2458. return $this->lastTimeUsed;
  2459. }
  2460. public function setName($name)
  2461. {
  2462. $this->name = $name;
  2463. }
  2464. public function getName()
  2465. {
  2466. return $this->name;
  2467. }
  2468. public function setUserKey($userKey)
  2469. {
  2470. $this->userKey = $userKey;
  2471. }
  2472. public function getUserKey()
  2473. {
  2474. return $this->userKey;
  2475. }
  2476. }
  2477. class Google_Service_Directory_Asps extends Google_Collection
  2478. {
  2479. public $etag;
  2480. protected $itemsType = 'Google_Service_Directory_Asp';
  2481. protected $itemsDataType = 'array';
  2482. public $kind;
  2483. public function setEtag($etag)
  2484. {
  2485. $this->etag = $etag;
  2486. }
  2487. public function getEtag()
  2488. {
  2489. return $this->etag;
  2490. }
  2491. public function setItems($items)
  2492. {
  2493. $this->items = $items;
  2494. }
  2495. public function getItems()
  2496. {
  2497. return $this->items;
  2498. }
  2499. public function setKind($kind)
  2500. {
  2501. $this->kind = $kind;
  2502. }
  2503. public function getKind()
  2504. {
  2505. return $this->kind;
  2506. }
  2507. }
  2508. class Google_Service_Directory_Channel extends Google_Model
  2509. {
  2510. public $address;
  2511. public $expiration;
  2512. public $id;
  2513. public $kind;
  2514. public $params;
  2515. public $payload;
  2516. public $resourceId;
  2517. public $resourceUri;
  2518. public $token;
  2519. public $type;
  2520. public function setAddress($address)
  2521. {
  2522. $this->address = $address;
  2523. }
  2524. public function getAddress()
  2525. {
  2526. return $this->address;
  2527. }
  2528. public function setExpiration($expiration)
  2529. {
  2530. $this->expiration = $expiration;
  2531. }
  2532. public function getExpiration()
  2533. {
  2534. return $this->expiration;
  2535. }
  2536. public function setId($id)
  2537. {
  2538. $this->id = $id;
  2539. }
  2540. public function getId()
  2541. {
  2542. return $this->id;
  2543. }
  2544. public function setKind($kind)
  2545. {
  2546. $this->kind = $kind;
  2547. }
  2548. public function getKind()
  2549. {
  2550. return $this->kind;
  2551. }
  2552. public function setParams($params)
  2553. {
  2554. $this->params = $params;
  2555. }
  2556. public function getParams()
  2557. {
  2558. return $this->params;
  2559. }
  2560. public function setPayload($payload)
  2561. {
  2562. $this->payload = $payload;
  2563. }
  2564. public function getPayload()
  2565. {
  2566. return $this->payload;
  2567. }
  2568. public function setResourceId($resourceId)
  2569. {
  2570. $this->resourceId = $resourceId;
  2571. }
  2572. public function getResourceId()
  2573. {
  2574. return $this->resourceId;
  2575. }
  2576. public function setResourceUri($resourceUri)
  2577. {
  2578. $this->resourceUri = $resourceUri;
  2579. }
  2580. public function getResourceUri()
  2581. {
  2582. return $this->resourceUri;
  2583. }
  2584. public function setToken($token)
  2585. {
  2586. $this->token = $token;
  2587. }
  2588. public function getToken()
  2589. {
  2590. return $this->token;
  2591. }
  2592. public function setType($type)
  2593. {
  2594. $this->type = $type;
  2595. }
  2596. public function getType()
  2597. {
  2598. return $this->type;
  2599. }
  2600. }
  2601. class Google_Service_Directory_ChromeOsDevice extends Google_Model
  2602. {
  2603. public $annotatedLocation;
  2604. public $annotatedUser;
  2605. public $bootMode;
  2606. public $deviceId;
  2607. public $etag;
  2608. public $firmwareVersion;
  2609. public $kind;
  2610. public $lastEnrollmentTime;
  2611. public $lastSync;
  2612. public $macAddress;
  2613. public $meid;
  2614. public $model;
  2615. public $notes;
  2616. public $orderNumber;
  2617. public $orgUnitPath;
  2618. public $osVersion;
  2619. public $platformVersion;
  2620. public $serialNumber;
  2621. public $status;
  2622. public $supportEndDate;
  2623. public $willAutoRenew;
  2624. public function setAnnotatedLocation($annotatedLocation)
  2625. {
  2626. $this->annotatedLocation = $annotatedLocation;
  2627. }
  2628. public function getAnnotatedLocation()
  2629. {
  2630. return $this->annotatedLocation;
  2631. }
  2632. public function setAnnotatedUser($annotatedUser)
  2633. {
  2634. $this->annotatedUser = $annotatedUser;
  2635. }
  2636. public function getAnnotatedUser()
  2637. {
  2638. return $this->annotatedUser;
  2639. }
  2640. public function setBootMode($bootMode)
  2641. {
  2642. $this->bootMode = $bootMode;
  2643. }
  2644. public function getBootMode()
  2645. {
  2646. return $this->bootMode;
  2647. }
  2648. public function setDeviceId($deviceId)
  2649. {
  2650. $this->deviceId = $deviceId;
  2651. }
  2652. public function getDeviceId()
  2653. {
  2654. return $this->deviceId;
  2655. }
  2656. public function setEtag($etag)
  2657. {
  2658. $this->etag = $etag;
  2659. }
  2660. public function getEtag()
  2661. {
  2662. return $this->etag;
  2663. }
  2664. public function setFirmwareVersion($firmwareVersion)
  2665. {
  2666. $this->firmwareVersion = $firmwareVersion;
  2667. }
  2668. public function getFirmwareVersion()
  2669. {
  2670. return $this->firmwareVersion;
  2671. }
  2672. public function setKind($kind)
  2673. {
  2674. $this->kind = $kind;
  2675. }
  2676. public function getKind()
  2677. {
  2678. return $this->kind;
  2679. }
  2680. public function setLastEnrollmentTime($lastEnrollmentTime)
  2681. {
  2682. $this->lastEnrollmentTime = $lastEnrollmentTime;
  2683. }
  2684. public function getLastEnrollmentTime()
  2685. {
  2686. return $this->lastEnrollmentTime;
  2687. }
  2688. public function setLastSync($lastSync)
  2689. {
  2690. $this->lastSync = $lastSync;
  2691. }
  2692. public function getLastSync()
  2693. {
  2694. return $this->lastSync;
  2695. }
  2696. public function setMacAddress($macAddress)
  2697. {
  2698. $this->macAddress = $macAddress;
  2699. }
  2700. public function getMacAddress()
  2701. {
  2702. return $this->macAddress;
  2703. }
  2704. public function setMeid($meid)
  2705. {
  2706. $this->meid = $meid;
  2707. }
  2708. public function getMeid()
  2709. {
  2710. return $this->meid;
  2711. }
  2712. public function setModel($model)
  2713. {
  2714. $this->model = $model;
  2715. }
  2716. public function getModel()
  2717. {
  2718. return $this->model;
  2719. }
  2720. public function setNotes($notes)
  2721. {
  2722. $this->notes = $notes;
  2723. }
  2724. public function getNotes()
  2725. {
  2726. return $this->notes;
  2727. }
  2728. public function setOrderNumber($orderNumber)
  2729. {
  2730. $this->orderNumber = $orderNumber;
  2731. }
  2732. public function getOrderNumber()
  2733. {
  2734. return $this->orderNumber;
  2735. }
  2736. public function setOrgUnitPath($orgUnitPath)
  2737. {
  2738. $this->orgUnitPath = $orgUnitPath;
  2739. }
  2740. public function getOrgUnitPath()
  2741. {
  2742. return $this->orgUnitPath;
  2743. }
  2744. public function setOsVersion($osVersion)
  2745. {
  2746. $this->osVersion = $osVersion;
  2747. }
  2748. public function getOsVersion()
  2749. {
  2750. return $this->osVersion;
  2751. }
  2752. public function setPlatformVersion($platformVersion)
  2753. {
  2754. $this->platformVersion = $platformVersion;
  2755. }
  2756. public function getPlatformVersion()
  2757. {
  2758. return $this->platformVersion;
  2759. }
  2760. public function setSerialNumber($serialNumber)
  2761. {
  2762. $this->serialNumber = $serialNumber;
  2763. }
  2764. public function getSerialNumber()
  2765. {
  2766. return $this->serialNumber;
  2767. }
  2768. public function setStatus($status)
  2769. {
  2770. $this->status = $status;
  2771. }
  2772. public function getStatus()
  2773. {
  2774. return $this->status;
  2775. }
  2776. public function setSupportEndDate($supportEndDate)
  2777. {
  2778. $this->supportEndDate = $supportEndDate;
  2779. }
  2780. public function getSupportEndDate()
  2781. {
  2782. return $this->supportEndDate;
  2783. }
  2784. public function setWillAutoRenew($willAutoRenew)
  2785. {
  2786. $this->willAutoRenew = $willAutoRenew;
  2787. }
  2788. public function getWillAutoRenew()
  2789. {
  2790. return $this->willAutoRenew;
  2791. }
  2792. }
  2793. class Google_Service_Directory_ChromeOsDevices extends Google_Collection
  2794. {
  2795. protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
  2796. protected $chromeosdevicesDataType = 'array';
  2797. public $etag;
  2798. public $kind;
  2799. public $nextPageToken;
  2800. public function setChromeosdevices($chromeosdevices)
  2801. {
  2802. $this->chromeosdevices = $chromeosdevices;
  2803. }
  2804. public function getChromeosdevices()
  2805. {
  2806. return $this->chromeosdevices;
  2807. }
  2808. public function setEtag($etag)
  2809. {
  2810. $this->etag = $etag;
  2811. }
  2812. public function getEtag()
  2813. {
  2814. return $this->etag;
  2815. }
  2816. public function setKind($kind)
  2817. {
  2818. $this->kind = $kind;
  2819. }
  2820. public function getKind()
  2821. {
  2822. return $this->kind;
  2823. }
  2824. public function setNextPageToken($nextPageToken)
  2825. {
  2826. $this->nextPageToken = $nextPageToken;
  2827. }
  2828. public function getNextPageToken()
  2829. {
  2830. return $this->nextPageToken;
  2831. }
  2832. }
  2833. class Google_Service_Directory_Group extends Google_Collection
  2834. {
  2835. public $adminCreated;
  2836. public $aliases;
  2837. public $description;
  2838. public $directMembersCount;
  2839. public $email;
  2840. public $etag;
  2841. public $id;
  2842. public $kind;
  2843. public $name;
  2844. public $nonEditableAliases;
  2845. public function setAdminCreated($adminCreated)
  2846. {
  2847. $this->adminCreated = $adminCreated;
  2848. }
  2849. public function getAdminCreated()
  2850. {
  2851. return $this->adminCreated;
  2852. }
  2853. public function setAliases($aliases)
  2854. {
  2855. $this->aliases = $aliases;
  2856. }
  2857. public function getAliases()
  2858. {
  2859. return $this->aliases;
  2860. }
  2861. public function setDescription($description)
  2862. {
  2863. $this->description = $description;
  2864. }
  2865. public function getDescription()
  2866. {
  2867. return $this->description;
  2868. }
  2869. public function setDirectMembersCount($directMembersCount)
  2870. {
  2871. $this->directMembersCount = $directMembersCount;
  2872. }
  2873. public function getDirectMembersCount()
  2874. {
  2875. return $this->directMembersCount;
  2876. }
  2877. public function setEmail($email)
  2878. {
  2879. $this->email = $email;
  2880. }
  2881. public function getEmail()
  2882. {
  2883. return $this->email;
  2884. }
  2885. public function setEtag($etag)
  2886. {
  2887. $this->etag = $etag;
  2888. }
  2889. public function getEtag()
  2890. {
  2891. return $this->etag;
  2892. }
  2893. public function setId($id)
  2894. {
  2895. $this->id = $id;
  2896. }
  2897. public function getId()
  2898. {
  2899. return $this->id;
  2900. }
  2901. public function setKind($kind)
  2902. {
  2903. $this->kind = $kind;
  2904. }
  2905. public function getKind()
  2906. {
  2907. return $this->kind;
  2908. }
  2909. public function setName($name)
  2910. {
  2911. $this->name = $name;
  2912. }
  2913. public function getName()
  2914. {
  2915. return $this->name;
  2916. }
  2917. public function setNonEditableAliases($nonEditableAliases)
  2918. {
  2919. $this->nonEditableAliases = $nonEditableAliases;
  2920. }
  2921. public function getNonEditableAliases()
  2922. {
  2923. return $this->nonEditableAliases;
  2924. }
  2925. }
  2926. class Google_Service_Directory_Groups extends Google_Collection
  2927. {
  2928. public $etag;
  2929. protected $groupsType = 'Google_Service_Directory_Group';
  2930. protected $groupsDataType = 'array';
  2931. public $kind;
  2932. public $nextPageToken;
  2933. public function setEtag($etag)
  2934. {
  2935. $this->etag = $etag;
  2936. }
  2937. public function getEtag()
  2938. {
  2939. return $this->etag;
  2940. }
  2941. public function setGroups($groups)
  2942. {
  2943. $this->groups = $groups;
  2944. }
  2945. public function getGroups()
  2946. {
  2947. return $this->groups;
  2948. }
  2949. public function setKind($kind)
  2950. {
  2951. $this->kind = $kind;
  2952. }
  2953. public function getKind()
  2954. {
  2955. return $this->kind;
  2956. }
  2957. public function setNextPageToken($nextPageToken)
  2958. {
  2959. $this->nextPageToken = $nextPageToken;
  2960. }
  2961. public function getNextPageToken()
  2962. {
  2963. return $this->nextPageToken;
  2964. }
  2965. }
  2966. class Google_Service_Directory_Member extends Google_Model
  2967. {
  2968. public $email;
  2969. public $etag;
  2970. public $id;
  2971. public $kind;
  2972. public $role;
  2973. public $type;
  2974. public function setEmail($email)
  2975. {
  2976. $this->email = $email;
  2977. }
  2978. public function getEmail()
  2979. {
  2980. return $this->email;
  2981. }
  2982. public function setEtag($etag)
  2983. {
  2984. $this->etag = $etag;
  2985. }
  2986. public function getEtag()
  2987. {
  2988. return $this->etag;
  2989. }
  2990. public function setId($id)
  2991. {
  2992. $this->id = $id;
  2993. }
  2994. public function getId()
  2995. {
  2996. return $this->id;
  2997. }
  2998. public function setKind($kind)
  2999. {
  3000. $this->kind = $kind;
  3001. }
  3002. public function getKind()
  3003. {
  3004. return $this->kind;
  3005. }
  3006. public function setRole($role)
  3007. {
  3008. $this->role = $role;
  3009. }
  3010. public function getRole()
  3011. {
  3012. return $this->role;
  3013. }
  3014. public function setType($type)
  3015. {
  3016. $this->type = $type;
  3017. }
  3018. public function getType()
  3019. {
  3020. return $this->type;
  3021. }
  3022. }
  3023. class Google_Service_Directory_Members extends Google_Collection
  3024. {
  3025. public $etag;
  3026. public $kind;
  3027. protected $membersType = 'Google_Service_Directory_Member';
  3028. protected $membersDataType = 'array';
  3029. public $nextPageToken;
  3030. public function setEtag($etag)
  3031. {
  3032. $this->etag = $etag;
  3033. }
  3034. public function getEtag()
  3035. {
  3036. return $this->etag;
  3037. }
  3038. public function setKind($kind)
  3039. {
  3040. $this->kind = $kind;
  3041. }
  3042. public function getKind()
  3043. {
  3044. return $this->kind;
  3045. }
  3046. public function setMembers($members)
  3047. {
  3048. $this->members = $members;
  3049. }
  3050. public function getMembers()
  3051. {
  3052. return $this->members;
  3053. }
  3054. public function setNextPageToken($nextPageToken)
  3055. {
  3056. $this->nextPageToken = $nextPageToken;
  3057. }
  3058. public function getNextPageToken()
  3059. {
  3060. return $this->nextPageToken;
  3061. }
  3062. }
  3063. class Google_Service_Directory_MobileDevice extends Google_Collection
  3064. {
  3065. protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
  3066. protected $applicationsDataType = 'array';
  3067. public $deviceId;
  3068. public $email;
  3069. public $etag;
  3070. public $firstSync;
  3071. public $hardwareId;
  3072. public $kind;
  3073. public $lastSync;
  3074. public $model;
  3075. public $name;
  3076. public $os;
  3077. public $resourceId;
  3078. public $status;
  3079. public $type;
  3080. public $userAgent;
  3081. public function setApplications($applications)
  3082. {
  3083. $this->applications = $applications;
  3084. }
  3085. public function getApplications()
  3086. {
  3087. return $this->applications;
  3088. }
  3089. public function setDeviceId($deviceId)
  3090. {
  3091. $this->deviceId = $deviceId;
  3092. }
  3093. public function getDeviceId()
  3094. {
  3095. return $this->deviceId;
  3096. }
  3097. public function setEmail($email)
  3098. {
  3099. $this->email = $email;
  3100. }
  3101. public function getEmail()
  3102. {
  3103. return $this->email;
  3104. }
  3105. public function setEtag($etag)
  3106. {
  3107. $this->etag = $etag;
  3108. }
  3109. public function getEtag()
  3110. {
  3111. return $this->etag;
  3112. }
  3113. public function setFirstSync($firstSync)
  3114. {
  3115. $this->firstSync = $firstSync;
  3116. }
  3117. public function getFirstSync()
  3118. {
  3119. return $this->firstSync;
  3120. }
  3121. public function setHardwareId($hardwareId)
  3122. {
  3123. $this->hardwareId = $hardwareId;
  3124. }
  3125. public function getHardwareId()
  3126. {
  3127. return $this->hardwareId;
  3128. }
  3129. public function setKind($kind)
  3130. {
  3131. $this->kind = $kind;
  3132. }
  3133. public function getKind()
  3134. {
  3135. return $this->kind;
  3136. }
  3137. public function setLastSync($lastSync)
  3138. {
  3139. $this->lastSync = $lastSync;
  3140. }
  3141. public function getLastSync()
  3142. {
  3143. return $this->lastSync;
  3144. }
  3145. public function setModel($model)
  3146. {
  3147. $this->model = $model;
  3148. }
  3149. public function getModel()
  3150. {
  3151. return $this->model;
  3152. }
  3153. public function setName($name)
  3154. {
  3155. $this->name = $name;
  3156. }
  3157. public function getName()
  3158. {
  3159. return $this->name;
  3160. }
  3161. public function setOs($os)
  3162. {
  3163. $this->os = $os;
  3164. }
  3165. public function getOs()
  3166. {
  3167. return $this->os;
  3168. }
  3169. public function setResourceId($resourceId)
  3170. {
  3171. $this->resourceId = $resourceId;
  3172. }
  3173. public function getResourceId()
  3174. {
  3175. return $this->resourceId;
  3176. }
  3177. public function setStatus($status)
  3178. {
  3179. $this->status = $status;
  3180. }
  3181. public function getStatus()
  3182. {
  3183. return $this->status;
  3184. }
  3185. public function setType($type)
  3186. {
  3187. $this->type = $type;
  3188. }
  3189. public function getType()
  3190. {
  3191. return $this->type;
  3192. }
  3193. public function setUserAgent($userAgent)
  3194. {
  3195. $this->userAgent = $userAgent;
  3196. }
  3197. public function getUserAgent()
  3198. {
  3199. return $this->userAgent;
  3200. }
  3201. }
  3202. class Google_Service_Directory_MobileDeviceAction extends Google_Model
  3203. {
  3204. public $action;
  3205. public function setAction($action)
  3206. {
  3207. $this->action = $action;
  3208. }
  3209. public function getAction()
  3210. {
  3211. return $this->action;
  3212. }
  3213. }
  3214. class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
  3215. {
  3216. public $displayName;
  3217. public $packageName;
  3218. public $permission;
  3219. public $versionCode;
  3220. public $versionName;
  3221. public function setDisplayName($displayName)
  3222. {
  3223. $this->displayName = $displayName;
  3224. }
  3225. public function getDisplayName()
  3226. {
  3227. return $this->displayName;
  3228. }
  3229. public function setPackageName($packageName)
  3230. {
  3231. $this->packageName = $packageName;
  3232. }
  3233. public function getPackageName()
  3234. {
  3235. return $this->packageName;
  3236. }
  3237. public function setPermission($permission)
  3238. {
  3239. $this->permission = $permission;
  3240. }
  3241. public function getPermission()
  3242. {
  3243. return $this->permission;
  3244. }
  3245. public function setVersionCode($versionCode)
  3246. {
  3247. $this->versionCode = $versionCode;
  3248. }
  3249. public function getVersionCode()
  3250. {
  3251. return $this->versionCode;
  3252. }
  3253. public function setVersionName($versionName)
  3254. {
  3255. $this->versionName = $versionName;
  3256. }
  3257. public function getVersionName()
  3258. {
  3259. return $this->versionName;
  3260. }
  3261. }
  3262. class Google_Service_Directory_MobileDevices extends Google_Collection
  3263. {
  3264. public $etag;
  3265. public $kind;
  3266. protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
  3267. protected $mobiledevicesDataType = 'array';
  3268. public $nextPageToken;
  3269. public function setEtag($etag)
  3270. {
  3271. $this->etag = $etag;
  3272. }
  3273. public function getEtag()
  3274. {
  3275. return $this->etag;
  3276. }
  3277. public function setKind($kind)
  3278. {
  3279. $this->kind = $kind;
  3280. }
  3281. public function getKind()
  3282. {
  3283. return $this->kind;
  3284. }
  3285. public function setMobiledevices($mobiledevices)
  3286. {
  3287. $this->mobiledevices = $mobiledevices;
  3288. }
  3289. public function getMobiledevices()
  3290. {
  3291. return $this->mobiledevices;
  3292. }
  3293. public function setNextPageToken($nextPageToken)
  3294. {
  3295. $this->nextPageToken = $nextPageToken;
  3296. }
  3297. public function getNextPageToken()
  3298. {
  3299. return $this->nextPageToken;
  3300. }
  3301. }
  3302. class Google_Service_Directory_Notification extends Google_Model
  3303. {
  3304. public $body;
  3305. public $etag;
  3306. public $fromAddress;
  3307. public $isUnread;
  3308. public $kind;
  3309. public $notificationId;
  3310. public $sendTime;
  3311. public $subject;
  3312. public function setBody($body)
  3313. {
  3314. $this->body = $body;
  3315. }
  3316. public function getBody()
  3317. {
  3318. return $this->body;
  3319. }
  3320. public function setEtag($etag)
  3321. {
  3322. $this->etag = $etag;
  3323. }
  3324. public function getEtag()
  3325. {
  3326. return $this->etag;
  3327. }
  3328. public function setFromAddress($fromAddress)
  3329. {
  3330. $this->fromAddress = $fromAddress;
  3331. }
  3332. public function getFromAddress()
  3333. {
  3334. return $this->fromAddress;
  3335. }
  3336. public function setIsUnread($isUnread)
  3337. {
  3338. $this->isUnread = $isUnread;
  3339. }
  3340. public function getIsUnread()
  3341. {
  3342. return $this->isUnread;
  3343. }
  3344. public function setKind($kind)
  3345. {
  3346. $this->kind = $kind;
  3347. }
  3348. public function getKind()
  3349. {
  3350. return $this->kind;
  3351. }
  3352. public function setNotificationId($notificationId)
  3353. {
  3354. $this->notificationId = $notificationId;
  3355. }
  3356. public function getNotificationId()
  3357. {
  3358. return $this->notificationId;
  3359. }
  3360. public function setSendTime($sendTime)
  3361. {
  3362. $this->sendTime = $sendTime;
  3363. }
  3364. public function getSendTime()
  3365. {
  3366. return $this->sendTime;
  3367. }
  3368. public function setSubject($subject)
  3369. {
  3370. $this->subject = $subject;
  3371. }
  3372. public function getSubject()
  3373. {
  3374. return $this->subject;
  3375. }
  3376. }
  3377. class Google_Service_Directory_Notifications extends Google_Collection
  3378. {
  3379. public $etag;
  3380. protected $itemsType = 'Google_Service_Directory_Notification';
  3381. protected $itemsDataType = 'array';
  3382. public $kind;
  3383. public $nextPageToken;
  3384. public $unreadNotificationsCount;
  3385. public function setEtag($etag)
  3386. {
  3387. $this->etag = $etag;
  3388. }
  3389. public function getEtag()
  3390. {
  3391. return $this->etag;
  3392. }
  3393. public function setItems($items)
  3394. {
  3395. $this->items = $items;
  3396. }
  3397. public function getItems()
  3398. {
  3399. return $this->items;
  3400. }
  3401. public function setKind($kind)
  3402. {
  3403. $this->kind = $kind;
  3404. }
  3405. public function getKind()
  3406. {
  3407. return $this->kind;
  3408. }
  3409. public function setNextPageToken($nextPageToken)
  3410. {
  3411. $this->nextPageToken = $nextPageToken;
  3412. }
  3413. public function getNextPageToken()
  3414. {
  3415. return $this->nextPageToken;
  3416. }
  3417. public function setUnreadNotificationsCount($unreadNotificationsCount)
  3418. {
  3419. $this->unreadNotificationsCount = $unreadNotificationsCount;
  3420. }
  3421. public function getUnreadNotificationsCount()
  3422. {
  3423. return $this->unreadNotificationsCount;
  3424. }
  3425. }
  3426. class Google_Service_Directory_OrgUnit extends Google_Model
  3427. {
  3428. public $blockInheritance;
  3429. public $description;
  3430. public $etag;
  3431. public $kind;
  3432. public $name;
  3433. public $orgUnitPath;
  3434. public $parentOrgUnitPath;
  3435. public function setBlockInheritance($blockInheritance)
  3436. {
  3437. $this->blockInheritance = $blockInheritance;
  3438. }
  3439. public function getBlockInheritance()
  3440. {
  3441. return $this->blockInheritance;
  3442. }
  3443. public function setDescription($description)
  3444. {
  3445. $this->description = $description;
  3446. }
  3447. public function getDescription()
  3448. {
  3449. return $this->description;
  3450. }
  3451. public function setEtag($etag)
  3452. {
  3453. $this->etag = $etag;
  3454. }
  3455. public function getEtag()
  3456. {
  3457. return $this->etag;
  3458. }
  3459. public function setKind($kind)
  3460. {
  3461. $this->kind = $kind;
  3462. }
  3463. public function getKind()
  3464. {
  3465. return $this->kind;
  3466. }
  3467. public function setName($name)
  3468. {
  3469. $this->name = $name;
  3470. }
  3471. public function getName()
  3472. {
  3473. return $this->name;
  3474. }
  3475. public function setOrgUnitPath($orgUnitPath)
  3476. {
  3477. $this->orgUnitPath = $orgUnitPath;
  3478. }
  3479. public function getOrgUnitPath()
  3480. {
  3481. return $this->orgUnitPath;
  3482. }
  3483. public function setParentOrgUnitPath($parentOrgUnitPath)
  3484. {
  3485. $this->parentOrgUnitPath = $parentOrgUnitPath;
  3486. }
  3487. public function getParentOrgUnitPath()
  3488. {
  3489. return $this->parentOrgUnitPath;
  3490. }
  3491. }
  3492. class Google_Service_Directory_OrgUnits extends Google_Collection
  3493. {
  3494. public $etag;
  3495. public $kind;
  3496. protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
  3497. protected $organizationUnitsDataType = 'array';
  3498. public function setEtag($etag)
  3499. {
  3500. $this->etag = $etag;
  3501. }
  3502. public function getEtag()
  3503. {
  3504. return $this->etag;
  3505. }
  3506. public function setKind($kind)
  3507. {
  3508. $this->kind = $kind;
  3509. }
  3510. public function getKind()
  3511. {
  3512. return $this->kind;
  3513. }
  3514. public function setOrganizationUnits($organizationUnits)
  3515. {
  3516. $this->organizationUnits = $organizationUnits;
  3517. }
  3518. public function getOrganizationUnits()
  3519. {
  3520. return $this->organizationUnits;
  3521. }
  3522. }
  3523. class Google_Service_Directory_Token extends Google_Collection
  3524. {
  3525. public $anonymous;
  3526. public $clientId;
  3527. public $displayText;
  3528. public $etag;
  3529. public $kind;
  3530. public $nativeApp;
  3531. public $scopes;
  3532. public $userKey;
  3533. public function setAnonymous($anonymous)
  3534. {
  3535. $this->anonymous = $anonymous;
  3536. }
  3537. public function getAnonymous()
  3538. {
  3539. return $this->anonymous;
  3540. }
  3541. public function setClientId($clientId)
  3542. {
  3543. $this->clientId = $clientId;
  3544. }
  3545. public function getClientId()
  3546. {
  3547. return $this->clientId;
  3548. }
  3549. public function setDisplayText($displayText)
  3550. {
  3551. $this->displayText = $displayText;
  3552. }
  3553. public function getDisplayText()
  3554. {
  3555. return $this->displayText;
  3556. }
  3557. public function setEtag($etag)
  3558. {
  3559. $this->etag = $etag;
  3560. }
  3561. public function getEtag()
  3562. {
  3563. return $this->etag;
  3564. }
  3565. public function setKind($kind)
  3566. {
  3567. $this->kind = $kind;
  3568. }
  3569. public function getKind()
  3570. {
  3571. return $this->kind;
  3572. }
  3573. public function setNativeApp($nativeApp)
  3574. {
  3575. $this->nativeApp = $nativeApp;
  3576. }
  3577. public function getNativeApp()
  3578. {
  3579. return $this->nativeApp;
  3580. }
  3581. public function setScopes($scopes)
  3582. {
  3583. $this->scopes = $scopes;
  3584. }
  3585. public function getScopes()
  3586. {
  3587. return $this->scopes;
  3588. }
  3589. public function setUserKey($userKey)
  3590. {
  3591. $this->userKey = $userKey;
  3592. }
  3593. public function getUserKey()
  3594. {
  3595. return $this->userKey;
  3596. }
  3597. }
  3598. class Google_Service_Directory_Tokens extends Google_Collection
  3599. {
  3600. public $etag;
  3601. protected $itemsType = 'Google_Service_Directory_Token';
  3602. protected $itemsDataType = 'array';
  3603. public $kind;
  3604. public function setEtag($etag)
  3605. {
  3606. $this->etag = $etag;
  3607. }
  3608. public function getEtag()
  3609. {
  3610. return $this->etag;
  3611. }
  3612. public function setItems($items)
  3613. {
  3614. $this->items = $items;
  3615. }
  3616. public function getItems()
  3617. {
  3618. return $this->items;
  3619. }
  3620. public function setKind($kind)
  3621. {
  3622. $this->kind = $kind;
  3623. }
  3624. public function getKind()
  3625. {
  3626. return $this->kind;
  3627. }
  3628. }
  3629. class Google_Service_Directory_User extends Google_Collection
  3630. {
  3631. protected $addressesType = 'Google_Service_Directory_UserAddress';
  3632. protected $addressesDataType = 'array';
  3633. public $agreedToTerms;
  3634. public $aliases;
  3635. public $changePasswordAtNextLogin;
  3636. public $creationTime;
  3637. public $customerId;
  3638. public $deletionTime;
  3639. protected $emailsType = 'Google_Service_Directory_UserEmail';
  3640. protected $emailsDataType = 'array';
  3641. public $etag;
  3642. protected $externalIdsType = 'Google_Service_Directory_UserExternalId';
  3643. protected $externalIdsDataType = 'array';
  3644. public $hashFunction;
  3645. public $id;
  3646. protected $imsType = 'Google_Service_Directory_UserIm';
  3647. protected $imsDataType = 'array';
  3648. public $includeInGlobalAddressList;
  3649. public $ipWhitelisted;
  3650. public $isAdmin;
  3651. public $isDelegatedAdmin;
  3652. public $isMailboxSetup;
  3653. public $kind;
  3654. public $lastLoginTime;
  3655. protected $nameType = 'Google_Service_Directory_UserName';
  3656. protected $nameDataType = '';
  3657. public $nonEditableAliases;
  3658. public $orgUnitPath;
  3659. protected $organizationsType = 'Google_Service_Directory_UserOrganization';
  3660. protected $organizationsDataType = 'array';
  3661. public $password;
  3662. protected $phonesType = 'Google_Service_Directory_UserPhone';
  3663. protected $phonesDataType = 'array';
  3664. public $primaryEmail;
  3665. protected $relationsType = 'Google_Service_Directory_UserRelation';
  3666. protected $relationsDataType = 'array';
  3667. public $suspended;
  3668. public $suspensionReason;
  3669. public $thumbnailPhotoUrl;
  3670. public function setAddresses($addresses)
  3671. {
  3672. $this->addresses = $addresses;
  3673. }
  3674. public function getAddresses()
  3675. {
  3676. return $this->addresses;
  3677. }
  3678. public function setAgreedToTerms($agreedToTerms)
  3679. {
  3680. $this->agreedToTerms = $agreedToTerms;
  3681. }
  3682. public function getAgreedToTerms()
  3683. {
  3684. return $this->agreedToTerms;
  3685. }
  3686. public function setAliases($aliases)
  3687. {
  3688. $this->aliases = $aliases;
  3689. }
  3690. public function getAliases()
  3691. {
  3692. return $this->aliases;
  3693. }
  3694. public function setChangePasswordAtNextLogin($changePasswordAtNextLogin)
  3695. {
  3696. $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
  3697. }
  3698. public function getChangePasswordAtNextLogin()
  3699. {
  3700. return $this->changePasswordAtNextLogin;
  3701. }
  3702. public function setCreationTime($creationTime)
  3703. {
  3704. $this->creationTime = $creationTime;
  3705. }
  3706. public function getCreationTime()
  3707. {
  3708. return $this->creationTime;
  3709. }
  3710. public function setCustomerId($customerId)
  3711. {
  3712. $this->customerId = $customerId;
  3713. }
  3714. public function getCustomerId()
  3715. {
  3716. return $this->customerId;
  3717. }
  3718. public function setDeletionTime($deletionTime)
  3719. {
  3720. $this->deletionTime = $deletionTime;
  3721. }
  3722. public function getDeletionTime()
  3723. {
  3724. return $this->deletionTime;
  3725. }
  3726. public function setEmails($emails)
  3727. {
  3728. $this->emails = $emails;
  3729. }
  3730. public function getEmails()
  3731. {
  3732. return $this->emails;
  3733. }
  3734. public function setEtag($etag)
  3735. {
  3736. $this->etag = $etag;
  3737. }
  3738. public function getEtag()
  3739. {
  3740. return $this->etag;
  3741. }
  3742. public function setExternalIds($externalIds)
  3743. {
  3744. $this->externalIds = $externalIds;
  3745. }
  3746. public function getExternalIds()
  3747. {
  3748. return $this->externalIds;
  3749. }
  3750. public function setHashFunction($hashFunction)
  3751. {
  3752. $this->hashFunction = $hashFunction;
  3753. }
  3754. public function getHashFunction()
  3755. {
  3756. return $this->hashFunction;
  3757. }
  3758. public function setId($id)
  3759. {
  3760. $this->id = $id;
  3761. }
  3762. public function getId()
  3763. {
  3764. return $this->id;
  3765. }
  3766. public function setIms($ims)
  3767. {
  3768. $this->ims = $ims;
  3769. }
  3770. public function getIms()
  3771. {
  3772. return $this->ims;
  3773. }
  3774. public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
  3775. {
  3776. $this->includeInGlobalAddressList = $includeInGlobalAddressList;
  3777. }
  3778. public function getIncludeInGlobalAddressList()
  3779. {
  3780. return $this->includeInGlobalAddressList;
  3781. }
  3782. public function setIpWhitelisted($ipWhitelisted)
  3783. {
  3784. $this->ipWhitelisted = $ipWhitelisted;
  3785. }
  3786. public function getIpWhitelisted()
  3787. {
  3788. return $this->ipWhitelisted;
  3789. }
  3790. public function setIsAdmin($isAdmin)
  3791. {
  3792. $this->isAdmin = $isAdmin;
  3793. }
  3794. public function getIsAdmin()
  3795. {
  3796. return $this->isAdmin;
  3797. }
  3798. public function setIsDelegatedAdmin($isDelegatedAdmin)
  3799. {
  3800. $this->isDelegatedAdmin = $isDelegatedAdmin;
  3801. }
  3802. public function getIsDelegatedAdmin()
  3803. {
  3804. return $this->isDelegatedAdmin;
  3805. }
  3806. public function setIsMailboxSetup($isMailboxSetup)
  3807. {
  3808. $this->isMailboxSetup = $isMailboxSetup;
  3809. }
  3810. public function getIsMailboxSetup()
  3811. {
  3812. return $this->isMailboxSetup;
  3813. }
  3814. public function setKind($kind)
  3815. {
  3816. $this->kind = $kind;
  3817. }
  3818. public function getKind()
  3819. {
  3820. return $this->kind;
  3821. }
  3822. public function setLastLoginTime($lastLoginTime)
  3823. {
  3824. $this->lastLoginTime = $lastLoginTime;
  3825. }
  3826. public function getLastLoginTime()
  3827. {
  3828. return $this->lastLoginTime;
  3829. }
  3830. public function setName(Google_Service_Directory_UserName $name)
  3831. {
  3832. $this->name = $name;
  3833. }
  3834. public function getName()
  3835. {
  3836. return $this->name;
  3837. }
  3838. public function setNonEditableAliases($nonEditableAliases)
  3839. {
  3840. $this->nonEditableAliases = $nonEditableAliases;
  3841. }
  3842. public function getNonEditableAliases()
  3843. {
  3844. return $this->nonEditableAliases;
  3845. }
  3846. public function setOrgUnitPath($orgUnitPath)
  3847. {
  3848. $this->orgUnitPath = $orgUnitPath;
  3849. }
  3850. public function getOrgUnitPath()
  3851. {
  3852. return $this->orgUnitPath;
  3853. }
  3854. public function setOrganizations($organizations)
  3855. {
  3856. $this->organizations = $organizations;
  3857. }
  3858. public function getOrganizations()
  3859. {
  3860. return $this->organizations;
  3861. }
  3862. public function setPassword($password)
  3863. {
  3864. $this->password = $password;
  3865. }
  3866. public function getPassword()
  3867. {
  3868. return $this->password;
  3869. }
  3870. public function setPhones($phones)
  3871. {
  3872. $this->phones = $phones;
  3873. }
  3874. public function getPhones()
  3875. {
  3876. return $this->phones;
  3877. }
  3878. public function setPrimaryEmail($primaryEmail)
  3879. {
  3880. $this->primaryEmail = $primaryEmail;
  3881. }
  3882. public function getPrimaryEmail()
  3883. {
  3884. return $this->primaryEmail;
  3885. }
  3886. public function setRelations($relations)
  3887. {
  3888. $this->relations = $relations;
  3889. }
  3890. public function getRelations()
  3891. {
  3892. return $this->relations;
  3893. }
  3894. public function setSuspended($suspended)
  3895. {
  3896. $this->suspended = $suspended;
  3897. }
  3898. public function getSuspended()
  3899. {
  3900. return $this->suspended;
  3901. }
  3902. public function setSuspensionReason($suspensionReason)
  3903. {
  3904. $this->suspensionReason = $suspensionReason;
  3905. }
  3906. public function getSuspensionReason()
  3907. {
  3908. return $this->suspensionReason;
  3909. }
  3910. public function setThumbnailPhotoUrl($thumbnailPhotoUrl)
  3911. {
  3912. $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
  3913. }
  3914. public function getThumbnailPhotoUrl()
  3915. {
  3916. return $this->thumbnailPhotoUrl;
  3917. }
  3918. }
  3919. class Google_Service_Directory_UserAddress extends Google_Model
  3920. {
  3921. public $country;
  3922. public $countryCode;
  3923. public $customType;
  3924. public $extendedAddress;
  3925. public $formatted;
  3926. public $locality;
  3927. public $poBox;
  3928. public $postalCode;
  3929. public $primary;
  3930. public $region;
  3931. public $sourceIsStructured;
  3932. public $streetAddress;
  3933. public $type;
  3934. public function setCountry($country)
  3935. {
  3936. $this->country = $country;
  3937. }
  3938. public function getCountry()
  3939. {
  3940. return $this->country;
  3941. }
  3942. public function setCountryCode($countryCode)
  3943. {
  3944. $this->countryCode = $countryCode;
  3945. }
  3946. public function getCountryCode()
  3947. {
  3948. return $this->countryCode;
  3949. }
  3950. public function setCustomType($customType)
  3951. {
  3952. $this->customType = $customType;
  3953. }
  3954. public function getCustomType()
  3955. {
  3956. return $this->customType;
  3957. }
  3958. public function setExtendedAddress($extendedAddress)
  3959. {
  3960. $this->extendedAddress = $extendedAddress;
  3961. }
  3962. public function getExtendedAddress()
  3963. {
  3964. return $this->extendedAddress;
  3965. }
  3966. public function setFormatted($formatted)
  3967. {
  3968. $this->formatted = $formatted;
  3969. }
  3970. public function getFormatted()
  3971. {
  3972. return $this->formatted;
  3973. }
  3974. public function setLocality($locality)
  3975. {
  3976. $this->locality = $locality;
  3977. }
  3978. public function getLocality()
  3979. {
  3980. return $this->locality;
  3981. }
  3982. public function setPoBox($poBox)
  3983. {
  3984. $this->poBox = $poBox;
  3985. }
  3986. public function getPoBox()
  3987. {
  3988. return $this->poBox;
  3989. }
  3990. public function setPostalCode($postalCode)
  3991. {
  3992. $this->postalCode = $postalCode;
  3993. }
  3994. public function getPostalCode()
  3995. {
  3996. return $this->postalCode;
  3997. }
  3998. public function setPrimary($primary)
  3999. {
  4000. $this->primary = $primary;
  4001. }
  4002. public function getPrimary()
  4003. {
  4004. return $this->primary;
  4005. }
  4006. public function setRegion($region)
  4007. {
  4008. $this->region = $region;
  4009. }
  4010. public function getRegion()
  4011. {
  4012. return $this->region;
  4013. }
  4014. public function setSourceIsStructured($sourceIsStructured)
  4015. {
  4016. $this->sourceIsStructured = $sourceIsStructured;
  4017. }
  4018. public function getSourceIsStructured()
  4019. {
  4020. return $this->sourceIsStructured;
  4021. }
  4022. public function setStreetAddress($streetAddress)
  4023. {
  4024. $this->streetAddress = $streetAddress;
  4025. }
  4026. public function getStreetAddress()
  4027. {
  4028. return $this->streetAddress;
  4029. }
  4030. public function setType($type)
  4031. {
  4032. $this->type = $type;
  4033. }
  4034. public function getType()
  4035. {
  4036. return $this->type;
  4037. }
  4038. }
  4039. class Google_Service_Directory_UserEmail extends Google_Model
  4040. {
  4041. public $address;
  4042. public $customType;
  4043. public $primary;
  4044. public $type;
  4045. public function setAddress($address)
  4046. {
  4047. $this->address = $address;
  4048. }
  4049. public function getAddress()
  4050. {
  4051. return $this->address;
  4052. }
  4053. public function setCustomType($customType)
  4054. {
  4055. $this->customType = $customType;
  4056. }
  4057. public function getCustomType()
  4058. {
  4059. return $this->customType;
  4060. }
  4061. public function setPrimary($primary)
  4062. {
  4063. $this->primary = $primary;
  4064. }
  4065. public function getPrimary()
  4066. {
  4067. return $this->primary;
  4068. }
  4069. public function setType($type)
  4070. {
  4071. $this->type = $type;
  4072. }
  4073. public function getType()
  4074. {
  4075. return $this->type;
  4076. }
  4077. }
  4078. class Google_Service_Directory_UserExternalId extends Google_Model
  4079. {
  4080. public $customType;
  4081. public $type;
  4082. public $value;
  4083. public function setCustomType($customType)
  4084. {
  4085. $this->customType = $customType;
  4086. }
  4087. public function getCustomType()
  4088. {
  4089. return $this->customType;
  4090. }
  4091. public function setType($type)
  4092. {
  4093. $this->type = $type;
  4094. }
  4095. public function getType()
  4096. {
  4097. return $this->type;
  4098. }
  4099. public function setValue($value)
  4100. {
  4101. $this->value = $value;
  4102. }
  4103. public function getValue()
  4104. {
  4105. return $this->value;
  4106. }
  4107. }
  4108. class Google_Service_Directory_UserIm extends Google_Model
  4109. {
  4110. public $customProtocol;
  4111. public $customType;
  4112. public $im;
  4113. public $primary;
  4114. public $protocol;
  4115. public $type;
  4116. public function setCustomProtocol($customProtocol)
  4117. {
  4118. $this->customProtocol = $customProtocol;
  4119. }
  4120. public function getCustomProtocol()
  4121. {
  4122. return $this->customProtocol;
  4123. }
  4124. public function setCustomType($customType)
  4125. {
  4126. $this->customType = $customType;
  4127. }
  4128. public function getCustomType()
  4129. {
  4130. return $this->customType;
  4131. }
  4132. public function setIm($im)
  4133. {
  4134. $this->im = $im;
  4135. }
  4136. public function getIm()
  4137. {
  4138. return $this->im;
  4139. }
  4140. public function setPrimary($primary)
  4141. {
  4142. $this->primary = $primary;
  4143. }
  4144. public function getPrimary()
  4145. {
  4146. return $this->primary;
  4147. }
  4148. public function setProtocol($protocol)
  4149. {
  4150. $this->protocol = $protocol;
  4151. }
  4152. public function getProtocol()
  4153. {
  4154. return $this->protocol;
  4155. }
  4156. public function setType($type)
  4157. {
  4158. $this->type = $type;
  4159. }
  4160. public function getType()
  4161. {
  4162. return $this->type;
  4163. }
  4164. }
  4165. class Google_Service_Directory_UserMakeAdmin extends Google_Model
  4166. {
  4167. public $status;
  4168. public function setStatus($status)
  4169. {
  4170. $this->status = $status;
  4171. }
  4172. public function getStatus()
  4173. {
  4174. return $this->status;
  4175. }
  4176. }
  4177. class Google_Service_Directory_UserName extends Google_Model
  4178. {
  4179. public $familyName;
  4180. public $fullName;
  4181. public $givenName;
  4182. public function setFamilyName($familyName)
  4183. {
  4184. $this->familyName = $familyName;
  4185. }
  4186. public function getFamilyName()
  4187. {
  4188. return $this->familyName;
  4189. }
  4190. public function setFullName($fullName)
  4191. {
  4192. $this->fullName = $fullName;
  4193. }
  4194. public function getFullName()
  4195. {
  4196. return $this->fullName;
  4197. }
  4198. public function setGivenName($givenName)
  4199. {
  4200. $this->givenName = $givenName;
  4201. }
  4202. public function getGivenName()
  4203. {
  4204. return $this->givenName;
  4205. }
  4206. }
  4207. class Google_Service_Directory_UserOrganization extends Google_Model
  4208. {
  4209. public $costCenter;
  4210. public $customType;
  4211. public $department;
  4212. public $description;
  4213. public $domain;
  4214. public $location;
  4215. public $name;
  4216. public $primary;
  4217. public $symbol;
  4218. public $title;
  4219. public $type;
  4220. public function setCostCenter($costCenter)
  4221. {
  4222. $this->costCenter = $costCenter;
  4223. }
  4224. public function getCostCenter()
  4225. {
  4226. return $this->costCenter;
  4227. }
  4228. public function setCustomType($customType)
  4229. {
  4230. $this->customType = $customType;
  4231. }
  4232. public function getCustomType()
  4233. {
  4234. return $this->customType;
  4235. }
  4236. public function setDepartment($department)
  4237. {
  4238. $this->department = $department;
  4239. }
  4240. public function getDepartment()
  4241. {
  4242. return $this->department;
  4243. }
  4244. public function setDescription($description)
  4245. {
  4246. $this->description = $description;
  4247. }
  4248. public function getDescription()
  4249. {
  4250. return $this->description;
  4251. }
  4252. public function setDomain($domain)
  4253. {
  4254. $this->domain = $domain;
  4255. }
  4256. public function getDomain()
  4257. {
  4258. return $this->domain;
  4259. }
  4260. public function setLocation($location)
  4261. {
  4262. $this->location = $location;
  4263. }
  4264. public function getLocation()
  4265. {
  4266. return $this->location;
  4267. }
  4268. public function setName($name)
  4269. {
  4270. $this->name = $name;
  4271. }
  4272. public function getName()
  4273. {
  4274. return $this->name;
  4275. }
  4276. public function setPrimary($primary)
  4277. {
  4278. $this->primary = $primary;
  4279. }
  4280. public function getPrimary()
  4281. {
  4282. return $this->primary;
  4283. }
  4284. public function setSymbol($symbol)
  4285. {
  4286. $this->symbol = $symbol;
  4287. }
  4288. public function getSymbol()
  4289. {
  4290. return $this->symbol;
  4291. }
  4292. public function setTitle($title)
  4293. {
  4294. $this->title = $title;
  4295. }
  4296. public function getTitle()
  4297. {
  4298. return $this->title;
  4299. }
  4300. public function setType($type)
  4301. {
  4302. $this->type = $type;
  4303. }
  4304. public function getType()
  4305. {
  4306. return $this->type;
  4307. }
  4308. }
  4309. class Google_Service_Directory_UserPhone extends Google_Model
  4310. {
  4311. public $customType;
  4312. public $primary;
  4313. public $type;
  4314. public $value;
  4315. public function setCustomType($customType)
  4316. {
  4317. $this->customType = $customType;
  4318. }
  4319. public function getCustomType()
  4320. {
  4321. return $this->customType;
  4322. }
  4323. public function setPrimary($primary)
  4324. {
  4325. $this->primary = $primary;
  4326. }
  4327. public function getPrimary()
  4328. {
  4329. return $this->primary;
  4330. }
  4331. public function setType($type)
  4332. {
  4333. $this->type = $type;
  4334. }
  4335. public function getType()
  4336. {
  4337. return $this->type;
  4338. }
  4339. public function setValue($value)
  4340. {
  4341. $this->value = $value;
  4342. }
  4343. public function getValue()
  4344. {
  4345. return $this->value;
  4346. }
  4347. }
  4348. class Google_Service_Directory_UserPhoto extends Google_Model
  4349. {
  4350. public $etag;
  4351. public $height;
  4352. public $id;
  4353. public $kind;
  4354. public $mimeType;
  4355. public $photoData;
  4356. public $primaryEmail;
  4357. public $width;
  4358. public function setEtag($etag)
  4359. {
  4360. $this->etag = $etag;
  4361. }
  4362. public function getEtag()
  4363. {
  4364. return $this->etag;
  4365. }
  4366. public function setHeight($height)
  4367. {
  4368. $this->height = $height;
  4369. }
  4370. public function getHeight()
  4371. {
  4372. return $this->height;
  4373. }
  4374. public function setId($id)
  4375. {
  4376. $this->id = $id;
  4377. }
  4378. public function getId()
  4379. {
  4380. return $this->id;
  4381. }
  4382. public function setKind($kind)
  4383. {
  4384. $this->kind = $kind;
  4385. }
  4386. public function getKind()
  4387. {
  4388. return $this->kind;
  4389. }
  4390. public function setMimeType($mimeType)
  4391. {
  4392. $this->mimeType = $mimeType;
  4393. }
  4394. public function getMimeType()
  4395. {
  4396. return $this->mimeType;
  4397. }
  4398. public function setPhotoData($photoData)
  4399. {
  4400. $this->photoData = $photoData;
  4401. }
  4402. public function getPhotoData()
  4403. {
  4404. return $this->photoData;
  4405. }
  4406. public function setPrimaryEmail($primaryEmail)
  4407. {
  4408. $this->primaryEmail = $primaryEmail;
  4409. }
  4410. public function getPrimaryEmail()
  4411. {
  4412. return $this->primaryEmail;
  4413. }
  4414. public function setWidth($width)
  4415. {
  4416. $this->width = $width;
  4417. }
  4418. public function getWidth()
  4419. {
  4420. return $this->width;
  4421. }
  4422. }
  4423. class Google_Service_Directory_UserRelation extends Google_Model
  4424. {
  4425. public $customType;
  4426. public $type;
  4427. public $value;
  4428. public function setCustomType($customType)
  4429. {
  4430. $this->customType = $customType;
  4431. }
  4432. public function getCustomType()
  4433. {
  4434. return $this->customType;
  4435. }
  4436. public function setType($type)
  4437. {
  4438. $this->type = $type;
  4439. }
  4440. public function getType()
  4441. {
  4442. return $this->type;
  4443. }
  4444. public function setValue($value)
  4445. {
  4446. $this->value = $value;
  4447. }
  4448. public function getValue()
  4449. {
  4450. return $this->value;
  4451. }
  4452. }
  4453. class Google_Service_Directory_UserUndelete extends Google_Model
  4454. {
  4455. public $orgUnitPath;
  4456. public function setOrgUnitPath($orgUnitPath)
  4457. {
  4458. $this->orgUnitPath = $orgUnitPath;
  4459. }
  4460. public function getOrgUnitPath()
  4461. {
  4462. return $this->orgUnitPath;
  4463. }
  4464. }
  4465. class Google_Service_Directory_Users extends Google_Collection
  4466. {
  4467. public $etag;
  4468. public $kind;
  4469. public $nextPageToken;
  4470. public $triggerEvent;
  4471. protected $usersType = 'Google_Service_Directory_User';
  4472. protected $usersDataType = 'array';
  4473. public function setEtag($etag)
  4474. {
  4475. $this->etag = $etag;
  4476. }
  4477. public function getEtag()
  4478. {
  4479. return $this->etag;
  4480. }
  4481. public function setKind($kind)
  4482. {
  4483. $this->kind = $kind;
  4484. }
  4485. public function getKind()
  4486. {
  4487. return $this->kind;
  4488. }
  4489. public function setNextPageToken($nextPageToken)
  4490. {
  4491. $this->nextPageToken = $nextPageToken;
  4492. }
  4493. public function getNextPageToken()
  4494. {
  4495. return $this->nextPageToken;
  4496. }
  4497. public function setTriggerEvent($triggerEvent)
  4498. {
  4499. $this->triggerEvent = $triggerEvent;
  4500. }
  4501. public function getTriggerEvent()
  4502. {
  4503. return $this->triggerEvent;
  4504. }
  4505. public function setUsers($users)
  4506. {
  4507. $this->users = $users;
  4508. }
  4509. public function getUsers()
  4510. {
  4511. return $this->users;
  4512. }
  4513. }
  4514. class Google_Service_Directory_VerificationCode extends Google_Model
  4515. {
  4516. public $etag;
  4517. public $kind;
  4518. public $userId;
  4519. public $verificationCode;
  4520. public function setEtag($etag)
  4521. {
  4522. $this->etag = $etag;
  4523. }
  4524. public function getEtag()
  4525. {
  4526. return $this->etag;
  4527. }
  4528. public function setKind($kind)
  4529. {
  4530. $this->kind = $kind;
  4531. }
  4532. public function getKind()
  4533. {
  4534. return $this->kind;
  4535. }
  4536. public function setUserId($userId)
  4537. {
  4538. $this->userId = $userId;
  4539. }
  4540. public function getUserId()
  4541. {
  4542. return $this->userId;
  4543. }
  4544. public function setVerificationCode($verificationCode)
  4545. {
  4546. $this->verificationCode = $verificationCode;
  4547. }
  4548. public function getVerificationCode()
  4549. {
  4550. return $this->verificationCode;
  4551. }
  4552. }
  4553. class Google_Service_Directory_VerificationCodes extends Google_Collection
  4554. {
  4555. public $etag;
  4556. protected $itemsType = 'Google_Service_Directory_VerificationCode';
  4557. protected $itemsDataType = 'array';
  4558. public $kind;
  4559. public function setEtag($etag)
  4560. {
  4561. $this->etag = $etag;
  4562. }
  4563. public function getEtag()
  4564. {
  4565. return $this->etag;
  4566. }
  4567. public function setItems($items)
  4568. {
  4569. $this->items = $items;
  4570. }
  4571. public function getItems()
  4572. {
  4573. return $this->items;
  4574. }
  4575. public function setKind($kind)
  4576. {
  4577. $this->kind = $kind;
  4578. }
  4579. public function getKind()
  4580. {
  4581. return $this->kind;
  4582. }
  4583. }