PageRenderTime 74ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/src/Google/Service/Directory.php

https://github.com/Enkhjargal/google-api-php-client
PHP | 5279 lines | 3862 code | 573 blank | 844 comment | 0 complexity | 4be871d6552cd4ff4339b7dcc3334188 MD5 | raw file
Possible License(s): Apache-2.0
  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 tokens specified user has issued to 3rd party
  1936. * applications. (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_Collection
  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. protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers';
  2621. protected $recentUsersDataType = 'array';
  2622. public $serialNumber;
  2623. public $status;
  2624. public $supportEndDate;
  2625. public $willAutoRenew;
  2626. public function setAnnotatedLocation($annotatedLocation)
  2627. {
  2628. $this->annotatedLocation = $annotatedLocation;
  2629. }
  2630. public function getAnnotatedLocation()
  2631. {
  2632. return $this->annotatedLocation;
  2633. }
  2634. public function setAnnotatedUser($annotatedUser)
  2635. {
  2636. $this->annotatedUser = $annotatedUser;
  2637. }
  2638. public function getAnnotatedUser()
  2639. {
  2640. return $this->annotatedUser;
  2641. }
  2642. public function setBootMode($bootMode)
  2643. {
  2644. $this->bootMode = $bootMode;
  2645. }
  2646. public function getBootMode()
  2647. {
  2648. return $this->bootMode;
  2649. }
  2650. public function setDeviceId($deviceId)
  2651. {
  2652. $this->deviceId = $deviceId;
  2653. }
  2654. public function getDeviceId()
  2655. {
  2656. return $this->deviceId;
  2657. }
  2658. public function setEtag($etag)
  2659. {
  2660. $this->etag = $etag;
  2661. }
  2662. public function getEtag()
  2663. {
  2664. return $this->etag;
  2665. }
  2666. public function setFirmwareVersion($firmwareVersion)
  2667. {
  2668. $this->firmwareVersion = $firmwareVersion;
  2669. }
  2670. public function getFirmwareVersion()
  2671. {
  2672. return $this->firmwareVersion;
  2673. }
  2674. public function setKind($kind)
  2675. {
  2676. $this->kind = $kind;
  2677. }
  2678. public function getKind()
  2679. {
  2680. return $this->kind;
  2681. }
  2682. public function setLastEnrollmentTime($lastEnrollmentTime)
  2683. {
  2684. $this->lastEnrollmentTime = $lastEnrollmentTime;
  2685. }
  2686. public function getLastEnrollmentTime()
  2687. {
  2688. return $this->lastEnrollmentTime;
  2689. }
  2690. public function setLastSync($lastSync)
  2691. {
  2692. $this->lastSync = $lastSync;
  2693. }
  2694. public function getLastSync()
  2695. {
  2696. return $this->lastSync;
  2697. }
  2698. public function setMacAddress($macAddress)
  2699. {
  2700. $this->macAddress = $macAddress;
  2701. }
  2702. public function getMacAddress()
  2703. {
  2704. return $this->macAddress;
  2705. }
  2706. public function setMeid($meid)
  2707. {
  2708. $this->meid = $meid;
  2709. }
  2710. public function getMeid()
  2711. {
  2712. return $this->meid;
  2713. }
  2714. public function setModel($model)
  2715. {
  2716. $this->model = $model;
  2717. }
  2718. public function getModel()
  2719. {
  2720. return $this->model;
  2721. }
  2722. public function setNotes($notes)
  2723. {
  2724. $this->notes = $notes;
  2725. }
  2726. public function getNotes()
  2727. {
  2728. return $this->notes;
  2729. }
  2730. public function setOrderNumber($orderNumber)
  2731. {
  2732. $this->orderNumber = $orderNumber;
  2733. }
  2734. public function getOrderNumber()
  2735. {
  2736. return $this->orderNumber;
  2737. }
  2738. public function setOrgUnitPath($orgUnitPath)
  2739. {
  2740. $this->orgUnitPath = $orgUnitPath;
  2741. }
  2742. public function getOrgUnitPath()
  2743. {
  2744. return $this->orgUnitPath;
  2745. }
  2746. public function setOsVersion($osVersion)
  2747. {
  2748. $this->osVersion = $osVersion;
  2749. }
  2750. public function getOsVersion()
  2751. {
  2752. return $this->osVersion;
  2753. }
  2754. public function setPlatformVersion($platformVersion)
  2755. {
  2756. $this->platformVersion = $platformVersion;
  2757. }
  2758. public function getPlatformVersion()
  2759. {
  2760. return $this->platformVersion;
  2761. }
  2762. public function setRecentUsers($recentUsers)
  2763. {
  2764. $this->recentUsers = $recentUsers;
  2765. }
  2766. public function getRecentUsers()
  2767. {
  2768. return $this->recentUsers;
  2769. }
  2770. public function setSerialNumber($serialNumber)
  2771. {
  2772. $this->serialNumber = $serialNumber;
  2773. }
  2774. public function getSerialNumber()
  2775. {
  2776. return $this->serialNumber;
  2777. }
  2778. public function setStatus($status)
  2779. {
  2780. $this->status = $status;
  2781. }
  2782. public function getStatus()
  2783. {
  2784. return $this->status;
  2785. }
  2786. public function setSupportEndDate($supportEndDate)
  2787. {
  2788. $this->supportEndDate = $supportEndDate;
  2789. }
  2790. public function getSupportEndDate()
  2791. {
  2792. return $this->supportEndDate;
  2793. }
  2794. public function setWillAutoRenew($willAutoRenew)
  2795. {
  2796. $this->willAutoRenew = $willAutoRenew;
  2797. }
  2798. public function getWillAutoRenew()
  2799. {
  2800. return $this->willAutoRenew;
  2801. }
  2802. }
  2803. class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model
  2804. {
  2805. public $email;
  2806. public $type;
  2807. public function setEmail($email)
  2808. {
  2809. $this->email = $email;
  2810. }
  2811. public function getEmail()
  2812. {
  2813. return $this->email;
  2814. }
  2815. public function setType($type)
  2816. {
  2817. $this->type = $type;
  2818. }
  2819. public function getType()
  2820. {
  2821. return $this->type;
  2822. }
  2823. }
  2824. class Google_Service_Directory_ChromeOsDevices extends Google_Collection
  2825. {
  2826. protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
  2827. protected $chromeosdevicesDataType = 'array';
  2828. public $etag;
  2829. public $kind;
  2830. public $nextPageToken;
  2831. public function setChromeosdevices($chromeosdevices)
  2832. {
  2833. $this->chromeosdevices = $chromeosdevices;
  2834. }
  2835. public function getChromeosdevices()
  2836. {
  2837. return $this->chromeosdevices;
  2838. }
  2839. public function setEtag($etag)
  2840. {
  2841. $this->etag = $etag;
  2842. }
  2843. public function getEtag()
  2844. {
  2845. return $this->etag;
  2846. }
  2847. public function setKind($kind)
  2848. {
  2849. $this->kind = $kind;
  2850. }
  2851. public function getKind()
  2852. {
  2853. return $this->kind;
  2854. }
  2855. public function setNextPageToken($nextPageToken)
  2856. {
  2857. $this->nextPageToken = $nextPageToken;
  2858. }
  2859. public function getNextPageToken()
  2860. {
  2861. return $this->nextPageToken;
  2862. }
  2863. }
  2864. class Google_Service_Directory_Group extends Google_Collection
  2865. {
  2866. public $adminCreated;
  2867. public $aliases;
  2868. public $description;
  2869. public $directMembersCount;
  2870. public $email;
  2871. public $etag;
  2872. public $id;
  2873. public $kind;
  2874. public $name;
  2875. public $nonEditableAliases;
  2876. public function setAdminCreated($adminCreated)
  2877. {
  2878. $this->adminCreated = $adminCreated;
  2879. }
  2880. public function getAdminCreated()
  2881. {
  2882. return $this->adminCreated;
  2883. }
  2884. public function setAliases($aliases)
  2885. {
  2886. $this->aliases = $aliases;
  2887. }
  2888. public function getAliases()
  2889. {
  2890. return $this->aliases;
  2891. }
  2892. public function setDescription($description)
  2893. {
  2894. $this->description = $description;
  2895. }
  2896. public function getDescription()
  2897. {
  2898. return $this->description;
  2899. }
  2900. public function setDirectMembersCount($directMembersCount)
  2901. {
  2902. $this->directMembersCount = $directMembersCount;
  2903. }
  2904. public function getDirectMembersCount()
  2905. {
  2906. return $this->directMembersCount;
  2907. }
  2908. public function setEmail($email)
  2909. {
  2910. $this->email = $email;
  2911. }
  2912. public function getEmail()
  2913. {
  2914. return $this->email;
  2915. }
  2916. public function setEtag($etag)
  2917. {
  2918. $this->etag = $etag;
  2919. }
  2920. public function getEtag()
  2921. {
  2922. return $this->etag;
  2923. }
  2924. public function setId($id)
  2925. {
  2926. $this->id = $id;
  2927. }
  2928. public function getId()
  2929. {
  2930. return $this->id;
  2931. }
  2932. public function setKind($kind)
  2933. {
  2934. $this->kind = $kind;
  2935. }
  2936. public function getKind()
  2937. {
  2938. return $this->kind;
  2939. }
  2940. public function setName($name)
  2941. {
  2942. $this->name = $name;
  2943. }
  2944. public function getName()
  2945. {
  2946. return $this->name;
  2947. }
  2948. public function setNonEditableAliases($nonEditableAliases)
  2949. {
  2950. $this->nonEditableAliases = $nonEditableAliases;
  2951. }
  2952. public function getNonEditableAliases()
  2953. {
  2954. return $this->nonEditableAliases;
  2955. }
  2956. }
  2957. class Google_Service_Directory_Groups extends Google_Collection
  2958. {
  2959. public $etag;
  2960. protected $groupsType = 'Google_Service_Directory_Group';
  2961. protected $groupsDataType = 'array';
  2962. public $kind;
  2963. public $nextPageToken;
  2964. public function setEtag($etag)
  2965. {
  2966. $this->etag = $etag;
  2967. }
  2968. public function getEtag()
  2969. {
  2970. return $this->etag;
  2971. }
  2972. public function setGroups($groups)
  2973. {
  2974. $this->groups = $groups;
  2975. }
  2976. public function getGroups()
  2977. {
  2978. return $this->groups;
  2979. }
  2980. public function setKind($kind)
  2981. {
  2982. $this->kind = $kind;
  2983. }
  2984. public function getKind()
  2985. {
  2986. return $this->kind;
  2987. }
  2988. public function setNextPageToken($nextPageToken)
  2989. {
  2990. $this->nextPageToken = $nextPageToken;
  2991. }
  2992. public function getNextPageToken()
  2993. {
  2994. return $this->nextPageToken;
  2995. }
  2996. }
  2997. class Google_Service_Directory_Member extends Google_Model
  2998. {
  2999. public $email;
  3000. public $etag;
  3001. public $id;
  3002. public $kind;
  3003. public $role;
  3004. public $type;
  3005. public function setEmail($email)
  3006. {
  3007. $this->email = $email;
  3008. }
  3009. public function getEmail()
  3010. {
  3011. return $this->email;
  3012. }
  3013. public function setEtag($etag)
  3014. {
  3015. $this->etag = $etag;
  3016. }
  3017. public function getEtag()
  3018. {
  3019. return $this->etag;
  3020. }
  3021. public function setId($id)
  3022. {
  3023. $this->id = $id;
  3024. }
  3025. public function getId()
  3026. {
  3027. return $this->id;
  3028. }
  3029. public function setKind($kind)
  3030. {
  3031. $this->kind = $kind;
  3032. }
  3033. public function getKind()
  3034. {
  3035. return $this->kind;
  3036. }
  3037. public function setRole($role)
  3038. {
  3039. $this->role = $role;
  3040. }
  3041. public function getRole()
  3042. {
  3043. return $this->role;
  3044. }
  3045. public function setType($type)
  3046. {
  3047. $this->type = $type;
  3048. }
  3049. public function getType()
  3050. {
  3051. return $this->type;
  3052. }
  3053. }
  3054. class Google_Service_Directory_Members extends Google_Collection
  3055. {
  3056. public $etag;
  3057. public $kind;
  3058. protected $membersType = 'Google_Service_Directory_Member';
  3059. protected $membersDataType = 'array';
  3060. public $nextPageToken;
  3061. public function setEtag($etag)
  3062. {
  3063. $this->etag = $etag;
  3064. }
  3065. public function getEtag()
  3066. {
  3067. return $this->etag;
  3068. }
  3069. public function setKind($kind)
  3070. {
  3071. $this->kind = $kind;
  3072. }
  3073. public function getKind()
  3074. {
  3075. return $this->kind;
  3076. }
  3077. public function setMembers($members)
  3078. {
  3079. $this->members = $members;
  3080. }
  3081. public function getMembers()
  3082. {
  3083. return $this->members;
  3084. }
  3085. public function setNextPageToken($nextPageToken)
  3086. {
  3087. $this->nextPageToken = $nextPageToken;
  3088. }
  3089. public function getNextPageToken()
  3090. {
  3091. return $this->nextPageToken;
  3092. }
  3093. }
  3094. class Google_Service_Directory_MobileDevice extends Google_Collection
  3095. {
  3096. protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
  3097. protected $applicationsDataType = 'array';
  3098. public $basebandVersion;
  3099. public $buildNumber;
  3100. public $defaultLanguage;
  3101. public $deviceCompromisedStatus;
  3102. public $deviceId;
  3103. public $email;
  3104. public $etag;
  3105. public $firstSync;
  3106. public $hardwareId;
  3107. public $imei;
  3108. public $kernelVersion;
  3109. public $kind;
  3110. public $lastSync;
  3111. public $managedAccountIsOnOwnerProfile;
  3112. public $meid;
  3113. public $model;
  3114. public $name;
  3115. public $networkOperator;
  3116. public $os;
  3117. public $resourceId;
  3118. public $serialNumber;
  3119. public $status;
  3120. public $type;
  3121. public $userAgent;
  3122. public $wifiMacAddress;
  3123. public function setApplications($applications)
  3124. {
  3125. $this->applications = $applications;
  3126. }
  3127. public function getApplications()
  3128. {
  3129. return $this->applications;
  3130. }
  3131. public function setBasebandVersion($basebandVersion)
  3132. {
  3133. $this->basebandVersion = $basebandVersion;
  3134. }
  3135. public function getBasebandVersion()
  3136. {
  3137. return $this->basebandVersion;
  3138. }
  3139. public function setBuildNumber($buildNumber)
  3140. {
  3141. $this->buildNumber = $buildNumber;
  3142. }
  3143. public function getBuildNumber()
  3144. {
  3145. return $this->buildNumber;
  3146. }
  3147. public function setDefaultLanguage($defaultLanguage)
  3148. {
  3149. $this->defaultLanguage = $defaultLanguage;
  3150. }
  3151. public function getDefaultLanguage()
  3152. {
  3153. return $this->defaultLanguage;
  3154. }
  3155. public function setDeviceCompromisedStatus($deviceCompromisedStatus)
  3156. {
  3157. $this->deviceCompromisedStatus = $deviceCompromisedStatus;
  3158. }
  3159. public function getDeviceCompromisedStatus()
  3160. {
  3161. return $this->deviceCompromisedStatus;
  3162. }
  3163. public function setDeviceId($deviceId)
  3164. {
  3165. $this->deviceId = $deviceId;
  3166. }
  3167. public function getDeviceId()
  3168. {
  3169. return $this->deviceId;
  3170. }
  3171. public function setEmail($email)
  3172. {
  3173. $this->email = $email;
  3174. }
  3175. public function getEmail()
  3176. {
  3177. return $this->email;
  3178. }
  3179. public function setEtag($etag)
  3180. {
  3181. $this->etag = $etag;
  3182. }
  3183. public function getEtag()
  3184. {
  3185. return $this->etag;
  3186. }
  3187. public function setFirstSync($firstSync)
  3188. {
  3189. $this->firstSync = $firstSync;
  3190. }
  3191. public function getFirstSync()
  3192. {
  3193. return $this->firstSync;
  3194. }
  3195. public function setHardwareId($hardwareId)
  3196. {
  3197. $this->hardwareId = $hardwareId;
  3198. }
  3199. public function getHardwareId()
  3200. {
  3201. return $this->hardwareId;
  3202. }
  3203. public function setImei($imei)
  3204. {
  3205. $this->imei = $imei;
  3206. }
  3207. public function getImei()
  3208. {
  3209. return $this->imei;
  3210. }
  3211. public function setKernelVersion($kernelVersion)
  3212. {
  3213. $this->kernelVersion = $kernelVersion;
  3214. }
  3215. public function getKernelVersion()
  3216. {
  3217. return $this->kernelVersion;
  3218. }
  3219. public function setKind($kind)
  3220. {
  3221. $this->kind = $kind;
  3222. }
  3223. public function getKind()
  3224. {
  3225. return $this->kind;
  3226. }
  3227. public function setLastSync($lastSync)
  3228. {
  3229. $this->lastSync = $lastSync;
  3230. }
  3231. public function getLastSync()
  3232. {
  3233. return $this->lastSync;
  3234. }
  3235. public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
  3236. {
  3237. $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
  3238. }
  3239. public function getManagedAccountIsOnOwnerProfile()
  3240. {
  3241. return $this->managedAccountIsOnOwnerProfile;
  3242. }
  3243. public function setMeid($meid)
  3244. {
  3245. $this->meid = $meid;
  3246. }
  3247. public function getMeid()
  3248. {
  3249. return $this->meid;
  3250. }
  3251. public function setModel($model)
  3252. {
  3253. $this->model = $model;
  3254. }
  3255. public function getModel()
  3256. {
  3257. return $this->model;
  3258. }
  3259. public function setName($name)
  3260. {
  3261. $this->name = $name;
  3262. }
  3263. public function getName()
  3264. {
  3265. return $this->name;
  3266. }
  3267. public function setNetworkOperator($networkOperator)
  3268. {
  3269. $this->networkOperator = $networkOperator;
  3270. }
  3271. public function getNetworkOperator()
  3272. {
  3273. return $this->networkOperator;
  3274. }
  3275. public function setOs($os)
  3276. {
  3277. $this->os = $os;
  3278. }
  3279. public function getOs()
  3280. {
  3281. return $this->os;
  3282. }
  3283. public function setResourceId($resourceId)
  3284. {
  3285. $this->resourceId = $resourceId;
  3286. }
  3287. public function getResourceId()
  3288. {
  3289. return $this->resourceId;
  3290. }
  3291. public function setSerialNumber($serialNumber)
  3292. {
  3293. $this->serialNumber = $serialNumber;
  3294. }
  3295. public function getSerialNumber()
  3296. {
  3297. return $this->serialNumber;
  3298. }
  3299. public function setStatus($status)
  3300. {
  3301. $this->status = $status;
  3302. }
  3303. public function getStatus()
  3304. {
  3305. return $this->status;
  3306. }
  3307. public function setType($type)
  3308. {
  3309. $this->type = $type;
  3310. }
  3311. public function getType()
  3312. {
  3313. return $this->type;
  3314. }
  3315. public function setUserAgent($userAgent)
  3316. {
  3317. $this->userAgent = $userAgent;
  3318. }
  3319. public function getUserAgent()
  3320. {
  3321. return $this->userAgent;
  3322. }
  3323. public function setWifiMacAddress($wifiMacAddress)
  3324. {
  3325. $this->wifiMacAddress = $wifiMacAddress;
  3326. }
  3327. public function getWifiMacAddress()
  3328. {
  3329. return $this->wifiMacAddress;
  3330. }
  3331. }
  3332. class Google_Service_Directory_MobileDeviceAction extends Google_Model
  3333. {
  3334. public $action;
  3335. public function setAction($action)
  3336. {
  3337. $this->action = $action;
  3338. }
  3339. public function getAction()
  3340. {
  3341. return $this->action;
  3342. }
  3343. }
  3344. class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
  3345. {
  3346. public $displayName;
  3347. public $packageName;
  3348. public $permission;
  3349. public $versionCode;
  3350. public $versionName;
  3351. public function setDisplayName($displayName)
  3352. {
  3353. $this->displayName = $displayName;
  3354. }
  3355. public function getDisplayName()
  3356. {
  3357. return $this->displayName;
  3358. }
  3359. public function setPackageName($packageName)
  3360. {
  3361. $this->packageName = $packageName;
  3362. }
  3363. public function getPackageName()
  3364. {
  3365. return $this->packageName;
  3366. }
  3367. public function setPermission($permission)
  3368. {
  3369. $this->permission = $permission;
  3370. }
  3371. public function getPermission()
  3372. {
  3373. return $this->permission;
  3374. }
  3375. public function setVersionCode($versionCode)
  3376. {
  3377. $this->versionCode = $versionCode;
  3378. }
  3379. public function getVersionCode()
  3380. {
  3381. return $this->versionCode;
  3382. }
  3383. public function setVersionName($versionName)
  3384. {
  3385. $this->versionName = $versionName;
  3386. }
  3387. public function getVersionName()
  3388. {
  3389. return $this->versionName;
  3390. }
  3391. }
  3392. class Google_Service_Directory_MobileDevices extends Google_Collection
  3393. {
  3394. public $etag;
  3395. public $kind;
  3396. protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
  3397. protected $mobiledevicesDataType = 'array';
  3398. public $nextPageToken;
  3399. public function setEtag($etag)
  3400. {
  3401. $this->etag = $etag;
  3402. }
  3403. public function getEtag()
  3404. {
  3405. return $this->etag;
  3406. }
  3407. public function setKind($kind)
  3408. {
  3409. $this->kind = $kind;
  3410. }
  3411. public function getKind()
  3412. {
  3413. return $this->kind;
  3414. }
  3415. public function setMobiledevices($mobiledevices)
  3416. {
  3417. $this->mobiledevices = $mobiledevices;
  3418. }
  3419. public function getMobiledevices()
  3420. {
  3421. return $this->mobiledevices;
  3422. }
  3423. public function setNextPageToken($nextPageToken)
  3424. {
  3425. $this->nextPageToken = $nextPageToken;
  3426. }
  3427. public function getNextPageToken()
  3428. {
  3429. return $this->nextPageToken;
  3430. }
  3431. }
  3432. class Google_Service_Directory_Notification extends Google_Model
  3433. {
  3434. public $body;
  3435. public $etag;
  3436. public $fromAddress;
  3437. public $isUnread;
  3438. public $kind;
  3439. public $notificationId;
  3440. public $sendTime;
  3441. public $subject;
  3442. public function setBody($body)
  3443. {
  3444. $this->body = $body;
  3445. }
  3446. public function getBody()
  3447. {
  3448. return $this->body;
  3449. }
  3450. public function setEtag($etag)
  3451. {
  3452. $this->etag = $etag;
  3453. }
  3454. public function getEtag()
  3455. {
  3456. return $this->etag;
  3457. }
  3458. public function setFromAddress($fromAddress)
  3459. {
  3460. $this->fromAddress = $fromAddress;
  3461. }
  3462. public function getFromAddress()
  3463. {
  3464. return $this->fromAddress;
  3465. }
  3466. public function setIsUnread($isUnread)
  3467. {
  3468. $this->isUnread = $isUnread;
  3469. }
  3470. public function getIsUnread()
  3471. {
  3472. return $this->isUnread;
  3473. }
  3474. public function setKind($kind)
  3475. {
  3476. $this->kind = $kind;
  3477. }
  3478. public function getKind()
  3479. {
  3480. return $this->kind;
  3481. }
  3482. public function setNotificationId($notificationId)
  3483. {
  3484. $this->notificationId = $notificationId;
  3485. }
  3486. public function getNotificationId()
  3487. {
  3488. return $this->notificationId;
  3489. }
  3490. public function setSendTime($sendTime)
  3491. {
  3492. $this->sendTime = $sendTime;
  3493. }
  3494. public function getSendTime()
  3495. {
  3496. return $this->sendTime;
  3497. }
  3498. public function setSubject($subject)
  3499. {
  3500. $this->subject = $subject;
  3501. }
  3502. public function getSubject()
  3503. {
  3504. return $this->subject;
  3505. }
  3506. }
  3507. class Google_Service_Directory_Notifications extends Google_Collection
  3508. {
  3509. public $etag;
  3510. protected $itemsType = 'Google_Service_Directory_Notification';
  3511. protected $itemsDataType = 'array';
  3512. public $kind;
  3513. public $nextPageToken;
  3514. public $unreadNotificationsCount;
  3515. public function setEtag($etag)
  3516. {
  3517. $this->etag = $etag;
  3518. }
  3519. public function getEtag()
  3520. {
  3521. return $this->etag;
  3522. }
  3523. public function setItems($items)
  3524. {
  3525. $this->items = $items;
  3526. }
  3527. public function getItems()
  3528. {
  3529. return $this->items;
  3530. }
  3531. public function setKind($kind)
  3532. {
  3533. $this->kind = $kind;
  3534. }
  3535. public function getKind()
  3536. {
  3537. return $this->kind;
  3538. }
  3539. public function setNextPageToken($nextPageToken)
  3540. {
  3541. $this->nextPageToken = $nextPageToken;
  3542. }
  3543. public function getNextPageToken()
  3544. {
  3545. return $this->nextPageToken;
  3546. }
  3547. public function setUnreadNotificationsCount($unreadNotificationsCount)
  3548. {
  3549. $this->unreadNotificationsCount = $unreadNotificationsCount;
  3550. }
  3551. public function getUnreadNotificationsCount()
  3552. {
  3553. return $this->unreadNotificationsCount;
  3554. }
  3555. }
  3556. class Google_Service_Directory_OrgUnit extends Google_Model
  3557. {
  3558. public $blockInheritance;
  3559. public $description;
  3560. public $etag;
  3561. public $kind;
  3562. public $name;
  3563. public $orgUnitPath;
  3564. public $parentOrgUnitPath;
  3565. public function setBlockInheritance($blockInheritance)
  3566. {
  3567. $this->blockInheritance = $blockInheritance;
  3568. }
  3569. public function getBlockInheritance()
  3570. {
  3571. return $this->blockInheritance;
  3572. }
  3573. public function setDescription($description)
  3574. {
  3575. $this->description = $description;
  3576. }
  3577. public function getDescription()
  3578. {
  3579. return $this->description;
  3580. }
  3581. public function setEtag($etag)
  3582. {
  3583. $this->etag = $etag;
  3584. }
  3585. public function getEtag()
  3586. {
  3587. return $this->etag;
  3588. }
  3589. public function setKind($kind)
  3590. {
  3591. $this->kind = $kind;
  3592. }
  3593. public function getKind()
  3594. {
  3595. return $this->kind;
  3596. }
  3597. public function setName($name)
  3598. {
  3599. $this->name = $name;
  3600. }
  3601. public function getName()
  3602. {
  3603. return $this->name;
  3604. }
  3605. public function setOrgUnitPath($orgUnitPath)
  3606. {
  3607. $this->orgUnitPath = $orgUnitPath;
  3608. }
  3609. public function getOrgUnitPath()
  3610. {
  3611. return $this->orgUnitPath;
  3612. }
  3613. public function setParentOrgUnitPath($parentOrgUnitPath)
  3614. {
  3615. $this->parentOrgUnitPath = $parentOrgUnitPath;
  3616. }
  3617. public function getParentOrgUnitPath()
  3618. {
  3619. return $this->parentOrgUnitPath;
  3620. }
  3621. }
  3622. class Google_Service_Directory_OrgUnits extends Google_Collection
  3623. {
  3624. public $etag;
  3625. public $kind;
  3626. protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
  3627. protected $organizationUnitsDataType = 'array';
  3628. public function setEtag($etag)
  3629. {
  3630. $this->etag = $etag;
  3631. }
  3632. public function getEtag()
  3633. {
  3634. return $this->etag;
  3635. }
  3636. public function setKind($kind)
  3637. {
  3638. $this->kind = $kind;
  3639. }
  3640. public function getKind()
  3641. {
  3642. return $this->kind;
  3643. }
  3644. public function setOrganizationUnits($organizationUnits)
  3645. {
  3646. $this->organizationUnits = $organizationUnits;
  3647. }
  3648. public function getOrganizationUnits()
  3649. {
  3650. return $this->organizationUnits;
  3651. }
  3652. }
  3653. class Google_Service_Directory_Token extends Google_Collection
  3654. {
  3655. public $anonymous;
  3656. public $clientId;
  3657. public $displayText;
  3658. public $etag;
  3659. public $kind;
  3660. public $nativeApp;
  3661. public $scopes;
  3662. public $userKey;
  3663. public function setAnonymous($anonymous)
  3664. {
  3665. $this->anonymous = $anonymous;
  3666. }
  3667. public function getAnonymous()
  3668. {
  3669. return $this->anonymous;
  3670. }
  3671. public function setClientId($clientId)
  3672. {
  3673. $this->clientId = $clientId;
  3674. }
  3675. public function getClientId()
  3676. {
  3677. return $this->clientId;
  3678. }
  3679. public function setDisplayText($displayText)
  3680. {
  3681. $this->displayText = $displayText;
  3682. }
  3683. public function getDisplayText()
  3684. {
  3685. return $this->displayText;
  3686. }
  3687. public function setEtag($etag)
  3688. {
  3689. $this->etag = $etag;
  3690. }
  3691. public function getEtag()
  3692. {
  3693. return $this->etag;
  3694. }
  3695. public function setKind($kind)
  3696. {
  3697. $this->kind = $kind;
  3698. }
  3699. public function getKind()
  3700. {
  3701. return $this->kind;
  3702. }
  3703. public function setNativeApp($nativeApp)
  3704. {
  3705. $this->nativeApp = $nativeApp;
  3706. }
  3707. public function getNativeApp()
  3708. {
  3709. return $this->nativeApp;
  3710. }
  3711. public function setScopes($scopes)
  3712. {
  3713. $this->scopes = $scopes;
  3714. }
  3715. public function getScopes()
  3716. {
  3717. return $this->scopes;
  3718. }
  3719. public function setUserKey($userKey)
  3720. {
  3721. $this->userKey = $userKey;
  3722. }
  3723. public function getUserKey()
  3724. {
  3725. return $this->userKey;
  3726. }
  3727. }
  3728. class Google_Service_Directory_Tokens extends Google_Collection
  3729. {
  3730. public $etag;
  3731. protected $itemsType = 'Google_Service_Directory_Token';
  3732. protected $itemsDataType = 'array';
  3733. public $kind;
  3734. public function setEtag($etag)
  3735. {
  3736. $this->etag = $etag;
  3737. }
  3738. public function getEtag()
  3739. {
  3740. return $this->etag;
  3741. }
  3742. public function setItems($items)
  3743. {
  3744. $this->items = $items;
  3745. }
  3746. public function getItems()
  3747. {
  3748. return $this->items;
  3749. }
  3750. public function setKind($kind)
  3751. {
  3752. $this->kind = $kind;
  3753. }
  3754. public function getKind()
  3755. {
  3756. return $this->kind;
  3757. }
  3758. }
  3759. class Google_Service_Directory_User extends Google_Collection
  3760. {
  3761. public $addresses;
  3762. public $agreedToTerms;
  3763. public $aliases;
  3764. public $changePasswordAtNextLogin;
  3765. public $creationTime;
  3766. public $customerId;
  3767. public $deletionTime;
  3768. public $emails;
  3769. public $etag;
  3770. public $externalIds;
  3771. public $hashFunction;
  3772. public $id;
  3773. public $ims;
  3774. public $includeInGlobalAddressList;
  3775. public $ipWhitelisted;
  3776. public $isAdmin;
  3777. public $isDelegatedAdmin;
  3778. public $isMailboxSetup;
  3779. public $kind;
  3780. public $lastLoginTime;
  3781. protected $nameType = 'Google_Service_Directory_UserName';
  3782. protected $nameDataType = '';
  3783. public $nonEditableAliases;
  3784. public $orgUnitPath;
  3785. public $organizations;
  3786. public $password;
  3787. public $phones;
  3788. public $primaryEmail;
  3789. public $relations;
  3790. public $suspended;
  3791. public $suspensionReason;
  3792. public $thumbnailPhotoUrl;
  3793. public function setAddresses($addresses)
  3794. {
  3795. $this->addresses = $addresses;
  3796. }
  3797. public function getAddresses()
  3798. {
  3799. return $this->addresses;
  3800. }
  3801. public function setAgreedToTerms($agreedToTerms)
  3802. {
  3803. $this->agreedToTerms = $agreedToTerms;
  3804. }
  3805. public function getAgreedToTerms()
  3806. {
  3807. return $this->agreedToTerms;
  3808. }
  3809. public function setAliases($aliases)
  3810. {
  3811. $this->aliases = $aliases;
  3812. }
  3813. public function getAliases()
  3814. {
  3815. return $this->aliases;
  3816. }
  3817. public function setChangePasswordAtNextLogin($changePasswordAtNextLogin)
  3818. {
  3819. $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
  3820. }
  3821. public function getChangePasswordAtNextLogin()
  3822. {
  3823. return $this->changePasswordAtNextLogin;
  3824. }
  3825. public function setCreationTime($creationTime)
  3826. {
  3827. $this->creationTime = $creationTime;
  3828. }
  3829. public function getCreationTime()
  3830. {
  3831. return $this->creationTime;
  3832. }
  3833. public function setCustomerId($customerId)
  3834. {
  3835. $this->customerId = $customerId;
  3836. }
  3837. public function getCustomerId()
  3838. {
  3839. return $this->customerId;
  3840. }
  3841. public function setDeletionTime($deletionTime)
  3842. {
  3843. $this->deletionTime = $deletionTime;
  3844. }
  3845. public function getDeletionTime()
  3846. {
  3847. return $this->deletionTime;
  3848. }
  3849. public function setEmails($emails)
  3850. {
  3851. $this->emails = $emails;
  3852. }
  3853. public function getEmails()
  3854. {
  3855. return $this->emails;
  3856. }
  3857. public function setEtag($etag)
  3858. {
  3859. $this->etag = $etag;
  3860. }
  3861. public function getEtag()
  3862. {
  3863. return $this->etag;
  3864. }
  3865. public function setExternalIds($externalIds)
  3866. {
  3867. $this->externalIds = $externalIds;
  3868. }
  3869. public function getExternalIds()
  3870. {
  3871. return $this->externalIds;
  3872. }
  3873. public function setHashFunction($hashFunction)
  3874. {
  3875. $this->hashFunction = $hashFunction;
  3876. }
  3877. public function getHashFunction()
  3878. {
  3879. return $this->hashFunction;
  3880. }
  3881. public function setId($id)
  3882. {
  3883. $this->id = $id;
  3884. }
  3885. public function getId()
  3886. {
  3887. return $this->id;
  3888. }
  3889. public function setIms($ims)
  3890. {
  3891. $this->ims = $ims;
  3892. }
  3893. public function getIms()
  3894. {
  3895. return $this->ims;
  3896. }
  3897. public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
  3898. {
  3899. $this->includeInGlobalAddressList = $includeInGlobalAddressList;
  3900. }
  3901. public function getIncludeInGlobalAddressList()
  3902. {
  3903. return $this->includeInGlobalAddressList;
  3904. }
  3905. public function setIpWhitelisted($ipWhitelisted)
  3906. {
  3907. $this->ipWhitelisted = $ipWhitelisted;
  3908. }
  3909. public function getIpWhitelisted()
  3910. {
  3911. return $this->ipWhitelisted;
  3912. }
  3913. public function setIsAdmin($isAdmin)
  3914. {
  3915. $this->isAdmin = $isAdmin;
  3916. }
  3917. public function getIsAdmin()
  3918. {
  3919. return $this->isAdmin;
  3920. }
  3921. public function setIsDelegatedAdmin($isDelegatedAdmin)
  3922. {
  3923. $this->isDelegatedAdmin = $isDelegatedAdmin;
  3924. }
  3925. public function getIsDelegatedAdmin()
  3926. {
  3927. return $this->isDelegatedAdmin;
  3928. }
  3929. public function setIsMailboxSetup($isMailboxSetup)
  3930. {
  3931. $this->isMailboxSetup = $isMailboxSetup;
  3932. }
  3933. public function getIsMailboxSetup()
  3934. {
  3935. return $this->isMailboxSetup;
  3936. }
  3937. public function setKind($kind)
  3938. {
  3939. $this->kind = $kind;
  3940. }
  3941. public function getKind()
  3942. {
  3943. return $this->kind;
  3944. }
  3945. public function setLastLoginTime($lastLoginTime)
  3946. {
  3947. $this->lastLoginTime = $lastLoginTime;
  3948. }
  3949. public function getLastLoginTime()
  3950. {
  3951. return $this->lastLoginTime;
  3952. }
  3953. public function setName(Google_Service_Directory_UserName $name)
  3954. {
  3955. $this->name = $name;
  3956. }
  3957. public function getName()
  3958. {
  3959. return $this->name;
  3960. }
  3961. public function setNonEditableAliases($nonEditableAliases)
  3962. {
  3963. $this->nonEditableAliases = $nonEditableAliases;
  3964. }
  3965. public function getNonEditableAliases()
  3966. {
  3967. return $this->nonEditableAliases;
  3968. }
  3969. public function setOrgUnitPath($orgUnitPath)
  3970. {
  3971. $this->orgUnitPath = $orgUnitPath;
  3972. }
  3973. public function getOrgUnitPath()
  3974. {
  3975. return $this->orgUnitPath;
  3976. }
  3977. public function setOrganizations($organizations)
  3978. {
  3979. $this->organizations = $organizations;
  3980. }
  3981. public function getOrganizations()
  3982. {
  3983. return $this->organizations;
  3984. }
  3985. public function setPassword($password)
  3986. {
  3987. $this->password = $password;
  3988. }
  3989. public function getPassword()
  3990. {
  3991. return $this->password;
  3992. }
  3993. public function setPhones($phones)
  3994. {
  3995. $this->phones = $phones;
  3996. }
  3997. public function getPhones()
  3998. {
  3999. return $this->phones;
  4000. }
  4001. public function setPrimaryEmail($primaryEmail)
  4002. {
  4003. $this->primaryEmail = $primaryEmail;
  4004. }
  4005. public function getPrimaryEmail()
  4006. {
  4007. return $this->primaryEmail;
  4008. }
  4009. public function setRelations($relations)
  4010. {
  4011. $this->relations = $relations;
  4012. }
  4013. public function getRelations()
  4014. {
  4015. return $this->relations;
  4016. }
  4017. public function setSuspended($suspended)
  4018. {
  4019. $this->suspended = $suspended;
  4020. }
  4021. public function getSuspended()
  4022. {
  4023. return $this->suspended;
  4024. }
  4025. public function setSuspensionReason($suspensionReason)
  4026. {
  4027. $this->suspensionReason = $suspensionReason;
  4028. }
  4029. public function getSuspensionReason()
  4030. {
  4031. return $this->suspensionReason;
  4032. }
  4033. public function setThumbnailPhotoUrl($thumbnailPhotoUrl)
  4034. {
  4035. $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
  4036. }
  4037. public function getThumbnailPhotoUrl()
  4038. {
  4039. return $this->thumbnailPhotoUrl;
  4040. }
  4041. }
  4042. class Google_Service_Directory_UserAddress extends Google_Model
  4043. {
  4044. public $country;
  4045. public $countryCode;
  4046. public $customType;
  4047. public $extendedAddress;
  4048. public $formatted;
  4049. public $locality;
  4050. public $poBox;
  4051. public $postalCode;
  4052. public $primary;
  4053. public $region;
  4054. public $sourceIsStructured;
  4055. public $streetAddress;
  4056. public $type;
  4057. public function setCountry($country)
  4058. {
  4059. $this->country = $country;
  4060. }
  4061. public function getCountry()
  4062. {
  4063. return $this->country;
  4064. }
  4065. public function setCountryCode($countryCode)
  4066. {
  4067. $this->countryCode = $countryCode;
  4068. }
  4069. public function getCountryCode()
  4070. {
  4071. return $this->countryCode;
  4072. }
  4073. public function setCustomType($customType)
  4074. {
  4075. $this->customType = $customType;
  4076. }
  4077. public function getCustomType()
  4078. {
  4079. return $this->customType;
  4080. }
  4081. public function setExtendedAddress($extendedAddress)
  4082. {
  4083. $this->extendedAddress = $extendedAddress;
  4084. }
  4085. public function getExtendedAddress()
  4086. {
  4087. return $this->extendedAddress;
  4088. }
  4089. public function setFormatted($formatted)
  4090. {
  4091. $this->formatted = $formatted;
  4092. }
  4093. public function getFormatted()
  4094. {
  4095. return $this->formatted;
  4096. }
  4097. public function setLocality($locality)
  4098. {
  4099. $this->locality = $locality;
  4100. }
  4101. public function getLocality()
  4102. {
  4103. return $this->locality;
  4104. }
  4105. public function setPoBox($poBox)
  4106. {
  4107. $this->poBox = $poBox;
  4108. }
  4109. public function getPoBox()
  4110. {
  4111. return $this->poBox;
  4112. }
  4113. public function setPostalCode($postalCode)
  4114. {
  4115. $this->postalCode = $postalCode;
  4116. }
  4117. public function getPostalCode()
  4118. {
  4119. return $this->postalCode;
  4120. }
  4121. public function setPrimary($primary)
  4122. {
  4123. $this->primary = $primary;
  4124. }
  4125. public function getPrimary()
  4126. {
  4127. return $this->primary;
  4128. }
  4129. public function setRegion($region)
  4130. {
  4131. $this->region = $region;
  4132. }
  4133. public function getRegion()
  4134. {
  4135. return $this->region;
  4136. }
  4137. public function setSourceIsStructured($sourceIsStructured)
  4138. {
  4139. $this->sourceIsStructured = $sourceIsStructured;
  4140. }
  4141. public function getSourceIsStructured()
  4142. {
  4143. return $this->sourceIsStructured;
  4144. }
  4145. public function setStreetAddress($streetAddress)
  4146. {
  4147. $this->streetAddress = $streetAddress;
  4148. }
  4149. public function getStreetAddress()
  4150. {
  4151. return $this->streetAddress;
  4152. }
  4153. public function setType($type)
  4154. {
  4155. $this->type = $type;
  4156. }
  4157. public function getType()
  4158. {
  4159. return $this->type;
  4160. }
  4161. }
  4162. class Google_Service_Directory_UserEmail extends Google_Model
  4163. {
  4164. public $address;
  4165. public $customType;
  4166. public $primary;
  4167. public $type;
  4168. public function setAddress($address)
  4169. {
  4170. $this->address = $address;
  4171. }
  4172. public function getAddress()
  4173. {
  4174. return $this->address;
  4175. }
  4176. public function setCustomType($customType)
  4177. {
  4178. $this->customType = $customType;
  4179. }
  4180. public function getCustomType()
  4181. {
  4182. return $this->customType;
  4183. }
  4184. public function setPrimary($primary)
  4185. {
  4186. $this->primary = $primary;
  4187. }
  4188. public function getPrimary()
  4189. {
  4190. return $this->primary;
  4191. }
  4192. public function setType($type)
  4193. {
  4194. $this->type = $type;
  4195. }
  4196. public function getType()
  4197. {
  4198. return $this->type;
  4199. }
  4200. }
  4201. class Google_Service_Directory_UserExternalId extends Google_Model
  4202. {
  4203. public $customType;
  4204. public $type;
  4205. public $value;
  4206. public function setCustomType($customType)
  4207. {
  4208. $this->customType = $customType;
  4209. }
  4210. public function getCustomType()
  4211. {
  4212. return $this->customType;
  4213. }
  4214. public function setType($type)
  4215. {
  4216. $this->type = $type;
  4217. }
  4218. public function getType()
  4219. {
  4220. return $this->type;
  4221. }
  4222. public function setValue($value)
  4223. {
  4224. $this->value = $value;
  4225. }
  4226. public function getValue()
  4227. {
  4228. return $this->value;
  4229. }
  4230. }
  4231. class Google_Service_Directory_UserIm extends Google_Model
  4232. {
  4233. public $customProtocol;
  4234. public $customType;
  4235. public $im;
  4236. public $primary;
  4237. public $protocol;
  4238. public $type;
  4239. public function setCustomProtocol($customProtocol)
  4240. {
  4241. $this->customProtocol = $customProtocol;
  4242. }
  4243. public function getCustomProtocol()
  4244. {
  4245. return $this->customProtocol;
  4246. }
  4247. public function setCustomType($customType)
  4248. {
  4249. $this->customType = $customType;
  4250. }
  4251. public function getCustomType()
  4252. {
  4253. return $this->customType;
  4254. }
  4255. public function setIm($im)
  4256. {
  4257. $this->im = $im;
  4258. }
  4259. public function getIm()
  4260. {
  4261. return $this->im;
  4262. }
  4263. public function setPrimary($primary)
  4264. {
  4265. $this->primary = $primary;
  4266. }
  4267. public function getPrimary()
  4268. {
  4269. return $this->primary;
  4270. }
  4271. public function setProtocol($protocol)
  4272. {
  4273. $this->protocol = $protocol;
  4274. }
  4275. public function getProtocol()
  4276. {
  4277. return $this->protocol;
  4278. }
  4279. public function setType($type)
  4280. {
  4281. $this->type = $type;
  4282. }
  4283. public function getType()
  4284. {
  4285. return $this->type;
  4286. }
  4287. }
  4288. class Google_Service_Directory_UserMakeAdmin extends Google_Model
  4289. {
  4290. public $status;
  4291. public function setStatus($status)
  4292. {
  4293. $this->status = $status;
  4294. }
  4295. public function getStatus()
  4296. {
  4297. return $this->status;
  4298. }
  4299. }
  4300. class Google_Service_Directory_UserName extends Google_Model
  4301. {
  4302. public $familyName;
  4303. public $fullName;
  4304. public $givenName;
  4305. public function setFamilyName($familyName)
  4306. {
  4307. $this->familyName = $familyName;
  4308. }
  4309. public function getFamilyName()
  4310. {
  4311. return $this->familyName;
  4312. }
  4313. public function setFullName($fullName)
  4314. {
  4315. $this->fullName = $fullName;
  4316. }
  4317. public function getFullName()
  4318. {
  4319. return $this->fullName;
  4320. }
  4321. public function setGivenName($givenName)
  4322. {
  4323. $this->givenName = $givenName;
  4324. }
  4325. public function getGivenName()
  4326. {
  4327. return $this->givenName;
  4328. }
  4329. }
  4330. class Google_Service_Directory_UserOrganization extends Google_Model
  4331. {
  4332. public $costCenter;
  4333. public $customType;
  4334. public $department;
  4335. public $description;
  4336. public $domain;
  4337. public $location;
  4338. public $name;
  4339. public $primary;
  4340. public $symbol;
  4341. public $title;
  4342. public $type;
  4343. public function setCostCenter($costCenter)
  4344. {
  4345. $this->costCenter = $costCenter;
  4346. }
  4347. public function getCostCenter()
  4348. {
  4349. return $this->costCenter;
  4350. }
  4351. public function setCustomType($customType)
  4352. {
  4353. $this->customType = $customType;
  4354. }
  4355. public function getCustomType()
  4356. {
  4357. return $this->customType;
  4358. }
  4359. public function setDepartment($department)
  4360. {
  4361. $this->department = $department;
  4362. }
  4363. public function getDepartment()
  4364. {
  4365. return $this->department;
  4366. }
  4367. public function setDescription($description)
  4368. {
  4369. $this->description = $description;
  4370. }
  4371. public function getDescription()
  4372. {
  4373. return $this->description;
  4374. }
  4375. public function setDomain($domain)
  4376. {
  4377. $this->domain = $domain;
  4378. }
  4379. public function getDomain()
  4380. {
  4381. return $this->domain;
  4382. }
  4383. public function setLocation($location)
  4384. {
  4385. $this->location = $location;
  4386. }
  4387. public function getLocation()
  4388. {
  4389. return $this->location;
  4390. }
  4391. public function setName($name)
  4392. {
  4393. $this->name = $name;
  4394. }
  4395. public function getName()
  4396. {
  4397. return $this->name;
  4398. }
  4399. public function setPrimary($primary)
  4400. {
  4401. $this->primary = $primary;
  4402. }
  4403. public function getPrimary()
  4404. {
  4405. return $this->primary;
  4406. }
  4407. public function setSymbol($symbol)
  4408. {
  4409. $this->symbol = $symbol;
  4410. }
  4411. public function getSymbol()
  4412. {
  4413. return $this->symbol;
  4414. }
  4415. public function setTitle($title)
  4416. {
  4417. $this->title = $title;
  4418. }
  4419. public function getTitle()
  4420. {
  4421. return $this->title;
  4422. }
  4423. public function setType($type)
  4424. {
  4425. $this->type = $type;
  4426. }
  4427. public function getType()
  4428. {
  4429. return $this->type;
  4430. }
  4431. }
  4432. class Google_Service_Directory_UserPhone extends Google_Model
  4433. {
  4434. public $customType;
  4435. public $primary;
  4436. public $type;
  4437. public $value;
  4438. public function setCustomType($customType)
  4439. {
  4440. $this->customType = $customType;
  4441. }
  4442. public function getCustomType()
  4443. {
  4444. return $this->customType;
  4445. }
  4446. public function setPrimary($primary)
  4447. {
  4448. $this->primary = $primary;
  4449. }
  4450. public function getPrimary()
  4451. {
  4452. return $this->primary;
  4453. }
  4454. public function setType($type)
  4455. {
  4456. $this->type = $type;
  4457. }
  4458. public function getType()
  4459. {
  4460. return $this->type;
  4461. }
  4462. public function setValue($value)
  4463. {
  4464. $this->value = $value;
  4465. }
  4466. public function getValue()
  4467. {
  4468. return $this->value;
  4469. }
  4470. }
  4471. class Google_Service_Directory_UserPhoto extends Google_Model
  4472. {
  4473. public $etag;
  4474. public $height;
  4475. public $id;
  4476. public $kind;
  4477. public $mimeType;
  4478. public $photoData;
  4479. public $primaryEmail;
  4480. public $width;
  4481. public function setEtag($etag)
  4482. {
  4483. $this->etag = $etag;
  4484. }
  4485. public function getEtag()
  4486. {
  4487. return $this->etag;
  4488. }
  4489. public function setHeight($height)
  4490. {
  4491. $this->height = $height;
  4492. }
  4493. public function getHeight()
  4494. {
  4495. return $this->height;
  4496. }
  4497. public function setId($id)
  4498. {
  4499. $this->id = $id;
  4500. }
  4501. public function getId()
  4502. {
  4503. return $this->id;
  4504. }
  4505. public function setKind($kind)
  4506. {
  4507. $this->kind = $kind;
  4508. }
  4509. public function getKind()
  4510. {
  4511. return $this->kind;
  4512. }
  4513. public function setMimeType($mimeType)
  4514. {
  4515. $this->mimeType = $mimeType;
  4516. }
  4517. public function getMimeType()
  4518. {
  4519. return $this->mimeType;
  4520. }
  4521. public function setPhotoData($photoData)
  4522. {
  4523. $this->photoData = $photoData;
  4524. }
  4525. public function getPhotoData()
  4526. {
  4527. return $this->photoData;
  4528. }
  4529. public function setPrimaryEmail($primaryEmail)
  4530. {
  4531. $this->primaryEmail = $primaryEmail;
  4532. }
  4533. public function getPrimaryEmail()
  4534. {
  4535. return $this->primaryEmail;
  4536. }
  4537. public function setWidth($width)
  4538. {
  4539. $this->width = $width;
  4540. }
  4541. public function getWidth()
  4542. {
  4543. return $this->width;
  4544. }
  4545. }
  4546. class Google_Service_Directory_UserRelation extends Google_Model
  4547. {
  4548. public $customType;
  4549. public $type;
  4550. public $value;
  4551. public function setCustomType($customType)
  4552. {
  4553. $this->customType = $customType;
  4554. }
  4555. public function getCustomType()
  4556. {
  4557. return $this->customType;
  4558. }
  4559. public function setType($type)
  4560. {
  4561. $this->type = $type;
  4562. }
  4563. public function getType()
  4564. {
  4565. return $this->type;
  4566. }
  4567. public function setValue($value)
  4568. {
  4569. $this->value = $value;
  4570. }
  4571. public function getValue()
  4572. {
  4573. return $this->value;
  4574. }
  4575. }
  4576. class Google_Service_Directory_UserUndelete extends Google_Model
  4577. {
  4578. public $orgUnitPath;
  4579. public function setOrgUnitPath($orgUnitPath)
  4580. {
  4581. $this->orgUnitPath = $orgUnitPath;
  4582. }
  4583. public function getOrgUnitPath()
  4584. {
  4585. return $this->orgUnitPath;
  4586. }
  4587. }
  4588. class Google_Service_Directory_Users extends Google_Collection
  4589. {
  4590. public $etag;
  4591. public $kind;
  4592. public $nextPageToken;
  4593. public $triggerEvent;
  4594. protected $usersType = 'Google_Service_Directory_User';
  4595. protected $usersDataType = 'array';
  4596. public function setEtag($etag)
  4597. {
  4598. $this->etag = $etag;
  4599. }
  4600. public function getEtag()
  4601. {
  4602. return $this->etag;
  4603. }
  4604. public function setKind($kind)
  4605. {
  4606. $this->kind = $kind;
  4607. }
  4608. public function getKind()
  4609. {
  4610. return $this->kind;
  4611. }
  4612. public function setNextPageToken($nextPageToken)
  4613. {
  4614. $this->nextPageToken = $nextPageToken;
  4615. }
  4616. public function getNextPageToken()
  4617. {
  4618. return $this->nextPageToken;
  4619. }
  4620. public function setTriggerEvent($triggerEvent)
  4621. {
  4622. $this->triggerEvent = $triggerEvent;
  4623. }
  4624. public function getTriggerEvent()
  4625. {
  4626. return $this->triggerEvent;
  4627. }
  4628. public function setUsers($users)
  4629. {
  4630. $this->users = $users;
  4631. }
  4632. public function getUsers()
  4633. {
  4634. return $this->users;
  4635. }
  4636. }
  4637. class Google_Service_Directory_VerificationCode extends Google_Model
  4638. {
  4639. public $etag;
  4640. public $kind;
  4641. public $userId;
  4642. public $verificationCode;
  4643. public function setEtag($etag)
  4644. {
  4645. $this->etag = $etag;
  4646. }
  4647. public function getEtag()
  4648. {
  4649. return $this->etag;
  4650. }
  4651. public function setKind($kind)
  4652. {
  4653. $this->kind = $kind;
  4654. }
  4655. public function getKind()
  4656. {
  4657. return $this->kind;
  4658. }
  4659. public function setUserId($userId)
  4660. {
  4661. $this->userId = $userId;
  4662. }
  4663. public function getUserId()
  4664. {
  4665. return $this->userId;
  4666. }
  4667. public function setVerificationCode($verificationCode)
  4668. {
  4669. $this->verificationCode = $verificationCode;
  4670. }
  4671. public function getVerificationCode()
  4672. {
  4673. return $this->verificationCode;
  4674. }
  4675. }
  4676. class Google_Service_Directory_VerificationCodes extends Google_Collection
  4677. {
  4678. public $etag;
  4679. protected $itemsType = 'Google_Service_Directory_VerificationCode';
  4680. protected $itemsDataType = 'array';
  4681. public $kind;
  4682. public function setEtag($etag)
  4683. {
  4684. $this->etag = $etag;
  4685. }
  4686. public function getEtag()
  4687. {
  4688. return $this->etag;
  4689. }
  4690. public function setItems($items)
  4691. {
  4692. $this->items = $items;
  4693. }
  4694. public function getItems()
  4695. {
  4696. return $this->items;
  4697. }
  4698. public function setKind($kind)
  4699. {
  4700. $this->kind = $kind;
  4701. }
  4702. public function getKind()
  4703. {
  4704. return $this->kind;
  4705. }
  4706. }