PageRenderTime 81ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

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

https://bitbucket.org/moodle/moodle
PHP | 7180 lines | 5817 code | 292 blank | 1071 comment | 0 complexity | a72f4427d99087077111474db40967b4 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, BSD-3-Clause, MIT, GPL-3.0
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Directory (directory_v1).
  19. *
  20. * <p>
  21. * The Admin SDK Directory API lets you view and manage enterprise resources
  22. * such as users and groups, administrative notifications, security features,
  23. * and more.</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Google_Service_Directory extends Google_Service
  33. {
  34. /** View and manage customer related information. */
  35. const ADMIN_DIRECTORY_CUSTOMER =
  36. "https://www.googleapis.com/auth/admin.directory.customer";
  37. /** View customer related information. */
  38. const ADMIN_DIRECTORY_CUSTOMER_READONLY =
  39. "https://www.googleapis.com/auth/admin.directory.customer.readonly";
  40. /** View and manage your Chrome OS devices' metadata. */
  41. const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
  42. "https://www.googleapis.com/auth/admin.directory.device.chromeos";
  43. /** View your Chrome OS devices' metadata. */
  44. const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
  45. "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
  46. /** View and manage your mobile devices' metadata. */
  47. const ADMIN_DIRECTORY_DEVICE_MOBILE =
  48. "https://www.googleapis.com/auth/admin.directory.device.mobile";
  49. /** Manage your mobile devices by performing administrative tasks. */
  50. const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
  51. "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
  52. /** View your mobile devices' metadata. */
  53. const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
  54. "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
  55. /** View and manage the provisioning of domains for your customers. */
  56. const ADMIN_DIRECTORY_DOMAIN =
  57. "https://www.googleapis.com/auth/admin.directory.domain";
  58. /** View domains related to your customers. */
  59. const ADMIN_DIRECTORY_DOMAIN_READONLY =
  60. "https://www.googleapis.com/auth/admin.directory.domain.readonly";
  61. /** View and manage the provisioning of groups on your domain. */
  62. const ADMIN_DIRECTORY_GROUP =
  63. "https://www.googleapis.com/auth/admin.directory.group";
  64. /** View and manage group subscriptions on your domain. */
  65. const ADMIN_DIRECTORY_GROUP_MEMBER =
  66. "https://www.googleapis.com/auth/admin.directory.group.member";
  67. /** View group subscriptions on your domain. */
  68. const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
  69. "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
  70. /** View groups on your domain. */
  71. const ADMIN_DIRECTORY_GROUP_READONLY =
  72. "https://www.googleapis.com/auth/admin.directory.group.readonly";
  73. /** View and manage notifications received on your domain. */
  74. const ADMIN_DIRECTORY_NOTIFICATIONS =
  75. "https://www.googleapis.com/auth/admin.directory.notifications";
  76. /** View and manage organization units on your domain. */
  77. const ADMIN_DIRECTORY_ORGUNIT =
  78. "https://www.googleapis.com/auth/admin.directory.orgunit";
  79. /** View organization units on your domain. */
  80. const ADMIN_DIRECTORY_ORGUNIT_READONLY =
  81. "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
  82. /** Manage delegated admin roles for your domain. */
  83. const ADMIN_DIRECTORY_ROLEMANAGEMENT =
  84. "https://www.googleapis.com/auth/admin.directory.rolemanagement";
  85. /** View delegated admin roles for your domain. */
  86. const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY =
  87. "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
  88. /** View and manage the provisioning of users on your domain. */
  89. const ADMIN_DIRECTORY_USER =
  90. "https://www.googleapis.com/auth/admin.directory.user";
  91. /** View and manage user aliases on your domain. */
  92. const ADMIN_DIRECTORY_USER_ALIAS =
  93. "https://www.googleapis.com/auth/admin.directory.user.alias";
  94. /** View user aliases on your domain. */
  95. const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
  96. "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
  97. /** View users on your domain. */
  98. const ADMIN_DIRECTORY_USER_READONLY =
  99. "https://www.googleapis.com/auth/admin.directory.user.readonly";
  100. /** Manage data access permissions for users on your domain. */
  101. const ADMIN_DIRECTORY_USER_SECURITY =
  102. "https://www.googleapis.com/auth/admin.directory.user.security";
  103. /** View and manage the provisioning of user schemas on your domain. */
  104. const ADMIN_DIRECTORY_USERSCHEMA =
  105. "https://www.googleapis.com/auth/admin.directory.userschema";
  106. /** View user schemas on your domain. */
  107. const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
  108. "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
  109. public $asps;
  110. public $channels;
  111. public $chromeosdevices;
  112. public $customers;
  113. public $domainAliases;
  114. public $domains;
  115. public $groups;
  116. public $groups_aliases;
  117. public $members;
  118. public $mobiledevices;
  119. public $notifications;
  120. public $orgunits;
  121. public $privileges;
  122. public $roleAssignments;
  123. public $roles;
  124. public $schemas;
  125. public $tokens;
  126. public $users;
  127. public $users_aliases;
  128. public $users_photos;
  129. public $verificationCodes;
  130. /**
  131. * Constructs the internal representation of the Directory service.
  132. *
  133. * @param Google_Client $client
  134. */
  135. public function __construct(Google_Client $client)
  136. {
  137. parent::__construct($client);
  138. $this->rootUrl = 'https://www.googleapis.com/';
  139. $this->servicePath = 'admin/directory/v1/';
  140. $this->version = 'directory_v1';
  141. $this->serviceName = 'admin';
  142. $this->asps = new Google_Service_Directory_Asps_Resource(
  143. $this,
  144. $this->serviceName,
  145. 'asps',
  146. array(
  147. 'methods' => array(
  148. 'delete' => array(
  149. 'path' => 'users/{userKey}/asps/{codeId}',
  150. 'httpMethod' => 'DELETE',
  151. 'parameters' => array(
  152. 'userKey' => array(
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ),
  157. 'codeId' => array(
  158. 'location' => 'path',
  159. 'type' => 'integer',
  160. 'required' => true,
  161. ),
  162. ),
  163. ),'get' => array(
  164. 'path' => 'users/{userKey}/asps/{codeId}',
  165. 'httpMethod' => 'GET',
  166. 'parameters' => array(
  167. 'userKey' => array(
  168. 'location' => 'path',
  169. 'type' => 'string',
  170. 'required' => true,
  171. ),
  172. 'codeId' => array(
  173. 'location' => 'path',
  174. 'type' => 'integer',
  175. 'required' => true,
  176. ),
  177. ),
  178. ),'list' => array(
  179. 'path' => 'users/{userKey}/asps',
  180. 'httpMethod' => 'GET',
  181. 'parameters' => array(
  182. 'userKey' => array(
  183. 'location' => 'path',
  184. 'type' => 'string',
  185. 'required' => true,
  186. ),
  187. ),
  188. ),
  189. )
  190. )
  191. );
  192. $this->channels = new Google_Service_Directory_Channels_Resource(
  193. $this,
  194. $this->serviceName,
  195. 'channels',
  196. array(
  197. 'methods' => array(
  198. 'stop' => array(
  199. 'path' => '/admin/directory_v1/channels/stop',
  200. 'httpMethod' => 'POST',
  201. 'parameters' => array(),
  202. ),
  203. )
  204. )
  205. );
  206. $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
  207. $this,
  208. $this->serviceName,
  209. 'chromeosdevices',
  210. array(
  211. 'methods' => array(
  212. 'get' => array(
  213. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  214. 'httpMethod' => 'GET',
  215. 'parameters' => array(
  216. 'customerId' => array(
  217. 'location' => 'path',
  218. 'type' => 'string',
  219. 'required' => true,
  220. ),
  221. 'deviceId' => array(
  222. 'location' => 'path',
  223. 'type' => 'string',
  224. 'required' => true,
  225. ),
  226. 'projection' => array(
  227. 'location' => 'query',
  228. 'type' => 'string',
  229. ),
  230. ),
  231. ),'list' => array(
  232. 'path' => 'customer/{customerId}/devices/chromeos',
  233. 'httpMethod' => 'GET',
  234. 'parameters' => array(
  235. 'customerId' => array(
  236. 'location' => 'path',
  237. 'type' => 'string',
  238. 'required' => true,
  239. ),
  240. 'orderBy' => array(
  241. 'location' => 'query',
  242. 'type' => 'string',
  243. ),
  244. 'projection' => array(
  245. 'location' => 'query',
  246. 'type' => 'string',
  247. ),
  248. 'maxResults' => array(
  249. 'location' => 'query',
  250. 'type' => 'integer',
  251. ),
  252. 'pageToken' => array(
  253. 'location' => 'query',
  254. 'type' => 'string',
  255. ),
  256. 'sortOrder' => array(
  257. 'location' => 'query',
  258. 'type' => 'string',
  259. ),
  260. 'query' => array(
  261. 'location' => 'query',
  262. 'type' => 'string',
  263. ),
  264. ),
  265. ),'patch' => array(
  266. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  267. 'httpMethod' => 'PATCH',
  268. 'parameters' => array(
  269. 'customerId' => array(
  270. 'location' => 'path',
  271. 'type' => 'string',
  272. 'required' => true,
  273. ),
  274. 'deviceId' => array(
  275. 'location' => 'path',
  276. 'type' => 'string',
  277. 'required' => true,
  278. ),
  279. 'projection' => array(
  280. 'location' => 'query',
  281. 'type' => 'string',
  282. ),
  283. ),
  284. ),'update' => array(
  285. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  286. 'httpMethod' => 'PUT',
  287. 'parameters' => array(
  288. 'customerId' => array(
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ),
  293. 'deviceId' => array(
  294. 'location' => 'path',
  295. 'type' => 'string',
  296. 'required' => true,
  297. ),
  298. 'projection' => array(
  299. 'location' => 'query',
  300. 'type' => 'string',
  301. ),
  302. ),
  303. ),
  304. )
  305. )
  306. );
  307. $this->customers = new Google_Service_Directory_Customers_Resource(
  308. $this,
  309. $this->serviceName,
  310. 'customers',
  311. array(
  312. 'methods' => array(
  313. 'get' => array(
  314. 'path' => 'customers/{customerKey}',
  315. 'httpMethod' => 'GET',
  316. 'parameters' => array(
  317. 'customerKey' => array(
  318. 'location' => 'path',
  319. 'type' => 'string',
  320. 'required' => true,
  321. ),
  322. ),
  323. ),'patch' => array(
  324. 'path' => 'customers/{customerKey}',
  325. 'httpMethod' => 'PATCH',
  326. 'parameters' => array(
  327. 'customerKey' => array(
  328. 'location' => 'path',
  329. 'type' => 'string',
  330. 'required' => true,
  331. ),
  332. ),
  333. ),'update' => array(
  334. 'path' => 'customers/{customerKey}',
  335. 'httpMethod' => 'PUT',
  336. 'parameters' => array(
  337. 'customerKey' => array(
  338. 'location' => 'path',
  339. 'type' => 'string',
  340. 'required' => true,
  341. ),
  342. ),
  343. ),
  344. )
  345. )
  346. );
  347. $this->domainAliases = new Google_Service_Directory_DomainAliases_Resource(
  348. $this,
  349. $this->serviceName,
  350. 'domainAliases',
  351. array(
  352. 'methods' => array(
  353. 'delete' => array(
  354. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  355. 'httpMethod' => 'DELETE',
  356. 'parameters' => array(
  357. 'customer' => array(
  358. 'location' => 'path',
  359. 'type' => 'string',
  360. 'required' => true,
  361. ),
  362. 'domainAliasName' => array(
  363. 'location' => 'path',
  364. 'type' => 'string',
  365. 'required' => true,
  366. ),
  367. ),
  368. ),'get' => array(
  369. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  370. 'httpMethod' => 'GET',
  371. 'parameters' => array(
  372. 'customer' => array(
  373. 'location' => 'path',
  374. 'type' => 'string',
  375. 'required' => true,
  376. ),
  377. 'domainAliasName' => array(
  378. 'location' => 'path',
  379. 'type' => 'string',
  380. 'required' => true,
  381. ),
  382. ),
  383. ),'insert' => array(
  384. 'path' => 'customer/{customer}/domainaliases',
  385. 'httpMethod' => 'POST',
  386. 'parameters' => array(
  387. 'customer' => array(
  388. 'location' => 'path',
  389. 'type' => 'string',
  390. 'required' => true,
  391. ),
  392. ),
  393. ),'list' => array(
  394. 'path' => 'customer/{customer}/domainaliases',
  395. 'httpMethod' => 'GET',
  396. 'parameters' => array(
  397. 'customer' => array(
  398. 'location' => 'path',
  399. 'type' => 'string',
  400. 'required' => true,
  401. ),
  402. 'parentDomainName' => array(
  403. 'location' => 'query',
  404. 'type' => 'string',
  405. ),
  406. ),
  407. ),
  408. )
  409. )
  410. );
  411. $this->domains = new Google_Service_Directory_Domains_Resource(
  412. $this,
  413. $this->serviceName,
  414. 'domains',
  415. array(
  416. 'methods' => array(
  417. 'delete' => array(
  418. 'path' => 'customer/{customer}/domains/{domainName}',
  419. 'httpMethod' => 'DELETE',
  420. 'parameters' => array(
  421. 'customer' => array(
  422. 'location' => 'path',
  423. 'type' => 'string',
  424. 'required' => true,
  425. ),
  426. 'domainName' => array(
  427. 'location' => 'path',
  428. 'type' => 'string',
  429. 'required' => true,
  430. ),
  431. ),
  432. ),'get' => array(
  433. 'path' => 'customer/{customer}/domains/{domainName}',
  434. 'httpMethod' => 'GET',
  435. 'parameters' => array(
  436. 'customer' => array(
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ),
  441. 'domainName' => array(
  442. 'location' => 'path',
  443. 'type' => 'string',
  444. 'required' => true,
  445. ),
  446. ),
  447. ),'insert' => array(
  448. 'path' => 'customer/{customer}/domains',
  449. 'httpMethod' => 'POST',
  450. 'parameters' => array(
  451. 'customer' => array(
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ),
  456. ),
  457. ),'list' => array(
  458. 'path' => 'customer/{customer}/domains',
  459. 'httpMethod' => 'GET',
  460. 'parameters' => array(
  461. 'customer' => array(
  462. 'location' => 'path',
  463. 'type' => 'string',
  464. 'required' => true,
  465. ),
  466. ),
  467. ),
  468. )
  469. )
  470. );
  471. $this->groups = new Google_Service_Directory_Groups_Resource(
  472. $this,
  473. $this->serviceName,
  474. 'groups',
  475. array(
  476. 'methods' => array(
  477. 'delete' => array(
  478. 'path' => 'groups/{groupKey}',
  479. 'httpMethod' => 'DELETE',
  480. 'parameters' => array(
  481. 'groupKey' => array(
  482. 'location' => 'path',
  483. 'type' => 'string',
  484. 'required' => true,
  485. ),
  486. ),
  487. ),'get' => array(
  488. 'path' => 'groups/{groupKey}',
  489. 'httpMethod' => 'GET',
  490. 'parameters' => array(
  491. 'groupKey' => array(
  492. 'location' => 'path',
  493. 'type' => 'string',
  494. 'required' => true,
  495. ),
  496. ),
  497. ),'insert' => array(
  498. 'path' => 'groups',
  499. 'httpMethod' => 'POST',
  500. 'parameters' => array(),
  501. ),'list' => array(
  502. 'path' => 'groups',
  503. 'httpMethod' => 'GET',
  504. 'parameters' => array(
  505. 'customer' => array(
  506. 'location' => 'query',
  507. 'type' => 'string',
  508. ),
  509. 'pageToken' => array(
  510. 'location' => 'query',
  511. 'type' => 'string',
  512. ),
  513. 'domain' => array(
  514. 'location' => 'query',
  515. 'type' => 'string',
  516. ),
  517. 'maxResults' => array(
  518. 'location' => 'query',
  519. 'type' => 'integer',
  520. ),
  521. 'userKey' => array(
  522. 'location' => 'query',
  523. 'type' => 'string',
  524. ),
  525. ),
  526. ),'patch' => array(
  527. 'path' => 'groups/{groupKey}',
  528. 'httpMethod' => 'PATCH',
  529. 'parameters' => array(
  530. 'groupKey' => array(
  531. 'location' => 'path',
  532. 'type' => 'string',
  533. 'required' => true,
  534. ),
  535. ),
  536. ),'update' => array(
  537. 'path' => 'groups/{groupKey}',
  538. 'httpMethod' => 'PUT',
  539. 'parameters' => array(
  540. 'groupKey' => array(
  541. 'location' => 'path',
  542. 'type' => 'string',
  543. 'required' => true,
  544. ),
  545. ),
  546. ),
  547. )
  548. )
  549. );
  550. $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource(
  551. $this,
  552. $this->serviceName,
  553. 'aliases',
  554. array(
  555. 'methods' => array(
  556. 'delete' => array(
  557. 'path' => 'groups/{groupKey}/aliases/{alias}',
  558. 'httpMethod' => 'DELETE',
  559. 'parameters' => array(
  560. 'groupKey' => array(
  561. 'location' => 'path',
  562. 'type' => 'string',
  563. 'required' => true,
  564. ),
  565. 'alias' => array(
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. ),
  571. ),'insert' => array(
  572. 'path' => 'groups/{groupKey}/aliases',
  573. 'httpMethod' => 'POST',
  574. 'parameters' => array(
  575. 'groupKey' => array(
  576. 'location' => 'path',
  577. 'type' => 'string',
  578. 'required' => true,
  579. ),
  580. ),
  581. ),'list' => array(
  582. 'path' => 'groups/{groupKey}/aliases',
  583. 'httpMethod' => 'GET',
  584. 'parameters' => array(
  585. 'groupKey' => array(
  586. 'location' => 'path',
  587. 'type' => 'string',
  588. 'required' => true,
  589. ),
  590. ),
  591. ),
  592. )
  593. )
  594. );
  595. $this->members = new Google_Service_Directory_Members_Resource(
  596. $this,
  597. $this->serviceName,
  598. 'members',
  599. array(
  600. 'methods' => array(
  601. 'delete' => array(
  602. 'path' => 'groups/{groupKey}/members/{memberKey}',
  603. 'httpMethod' => 'DELETE',
  604. 'parameters' => array(
  605. 'groupKey' => array(
  606. 'location' => 'path',
  607. 'type' => 'string',
  608. 'required' => true,
  609. ),
  610. 'memberKey' => array(
  611. 'location' => 'path',
  612. 'type' => 'string',
  613. 'required' => true,
  614. ),
  615. ),
  616. ),'get' => array(
  617. 'path' => 'groups/{groupKey}/members/{memberKey}',
  618. 'httpMethod' => 'GET',
  619. 'parameters' => array(
  620. 'groupKey' => array(
  621. 'location' => 'path',
  622. 'type' => 'string',
  623. 'required' => true,
  624. ),
  625. 'memberKey' => array(
  626. 'location' => 'path',
  627. 'type' => 'string',
  628. 'required' => true,
  629. ),
  630. ),
  631. ),'insert' => array(
  632. 'path' => 'groups/{groupKey}/members',
  633. 'httpMethod' => 'POST',
  634. 'parameters' => array(
  635. 'groupKey' => array(
  636. 'location' => 'path',
  637. 'type' => 'string',
  638. 'required' => true,
  639. ),
  640. ),
  641. ),'list' => array(
  642. 'path' => 'groups/{groupKey}/members',
  643. 'httpMethod' => 'GET',
  644. 'parameters' => array(
  645. 'groupKey' => array(
  646. 'location' => 'path',
  647. 'type' => 'string',
  648. 'required' => true,
  649. ),
  650. 'pageToken' => array(
  651. 'location' => 'query',
  652. 'type' => 'string',
  653. ),
  654. 'roles' => array(
  655. 'location' => 'query',
  656. 'type' => 'string',
  657. ),
  658. 'maxResults' => array(
  659. 'location' => 'query',
  660. 'type' => 'integer',
  661. ),
  662. ),
  663. ),'patch' => array(
  664. 'path' => 'groups/{groupKey}/members/{memberKey}',
  665. 'httpMethod' => 'PATCH',
  666. 'parameters' => array(
  667. 'groupKey' => array(
  668. 'location' => 'path',
  669. 'type' => 'string',
  670. 'required' => true,
  671. ),
  672. 'memberKey' => array(
  673. 'location' => 'path',
  674. 'type' => 'string',
  675. 'required' => true,
  676. ),
  677. ),
  678. ),'update' => array(
  679. 'path' => 'groups/{groupKey}/members/{memberKey}',
  680. 'httpMethod' => 'PUT',
  681. 'parameters' => array(
  682. 'groupKey' => array(
  683. 'location' => 'path',
  684. 'type' => 'string',
  685. 'required' => true,
  686. ),
  687. 'memberKey' => array(
  688. 'location' => 'path',
  689. 'type' => 'string',
  690. 'required' => true,
  691. ),
  692. ),
  693. ),
  694. )
  695. )
  696. );
  697. $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource(
  698. $this,
  699. $this->serviceName,
  700. 'mobiledevices',
  701. array(
  702. 'methods' => array(
  703. 'action' => array(
  704. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
  705. 'httpMethod' => 'POST',
  706. 'parameters' => array(
  707. 'customerId' => array(
  708. 'location' => 'path',
  709. 'type' => 'string',
  710. 'required' => true,
  711. ),
  712. 'resourceId' => array(
  713. 'location' => 'path',
  714. 'type' => 'string',
  715. 'required' => true,
  716. ),
  717. ),
  718. ),'delete' => array(
  719. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  720. 'httpMethod' => 'DELETE',
  721. 'parameters' => array(
  722. 'customerId' => array(
  723. 'location' => 'path',
  724. 'type' => 'string',
  725. 'required' => true,
  726. ),
  727. 'resourceId' => array(
  728. 'location' => 'path',
  729. 'type' => 'string',
  730. 'required' => true,
  731. ),
  732. ),
  733. ),'get' => array(
  734. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  735. 'httpMethod' => 'GET',
  736. 'parameters' => array(
  737. 'customerId' => array(
  738. 'location' => 'path',
  739. 'type' => 'string',
  740. 'required' => true,
  741. ),
  742. 'resourceId' => array(
  743. 'location' => 'path',
  744. 'type' => 'string',
  745. 'required' => true,
  746. ),
  747. 'projection' => array(
  748. 'location' => 'query',
  749. 'type' => 'string',
  750. ),
  751. ),
  752. ),'list' => array(
  753. 'path' => 'customer/{customerId}/devices/mobile',
  754. 'httpMethod' => 'GET',
  755. 'parameters' => array(
  756. 'customerId' => array(
  757. 'location' => 'path',
  758. 'type' => 'string',
  759. 'required' => true,
  760. ),
  761. 'orderBy' => array(
  762. 'location' => 'query',
  763. 'type' => 'string',
  764. ),
  765. 'projection' => array(
  766. 'location' => 'query',
  767. 'type' => 'string',
  768. ),
  769. 'maxResults' => array(
  770. 'location' => 'query',
  771. 'type' => 'integer',
  772. ),
  773. 'pageToken' => array(
  774. 'location' => 'query',
  775. 'type' => 'string',
  776. ),
  777. 'sortOrder' => array(
  778. 'location' => 'query',
  779. 'type' => 'string',
  780. ),
  781. 'query' => array(
  782. 'location' => 'query',
  783. 'type' => 'string',
  784. ),
  785. ),
  786. ),
  787. )
  788. )
  789. );
  790. $this->notifications = new Google_Service_Directory_Notifications_Resource(
  791. $this,
  792. $this->serviceName,
  793. 'notifications',
  794. array(
  795. 'methods' => array(
  796. 'delete' => array(
  797. 'path' => 'customer/{customer}/notifications/{notificationId}',
  798. 'httpMethod' => 'DELETE',
  799. 'parameters' => array(
  800. 'customer' => array(
  801. 'location' => 'path',
  802. 'type' => 'string',
  803. 'required' => true,
  804. ),
  805. 'notificationId' => array(
  806. 'location' => 'path',
  807. 'type' => 'string',
  808. 'required' => true,
  809. ),
  810. ),
  811. ),'get' => array(
  812. 'path' => 'customer/{customer}/notifications/{notificationId}',
  813. 'httpMethod' => 'GET',
  814. 'parameters' => array(
  815. 'customer' => array(
  816. 'location' => 'path',
  817. 'type' => 'string',
  818. 'required' => true,
  819. ),
  820. 'notificationId' => array(
  821. 'location' => 'path',
  822. 'type' => 'string',
  823. 'required' => true,
  824. ),
  825. ),
  826. ),'list' => array(
  827. 'path' => 'customer/{customer}/notifications',
  828. 'httpMethod' => 'GET',
  829. 'parameters' => array(
  830. 'customer' => array(
  831. 'location' => 'path',
  832. 'type' => 'string',
  833. 'required' => true,
  834. ),
  835. 'pageToken' => array(
  836. 'location' => 'query',
  837. 'type' => 'string',
  838. ),
  839. 'maxResults' => array(
  840. 'location' => 'query',
  841. 'type' => 'integer',
  842. ),
  843. 'language' => array(
  844. 'location' => 'query',
  845. 'type' => 'string',
  846. ),
  847. ),
  848. ),'patch' => array(
  849. 'path' => 'customer/{customer}/notifications/{notificationId}',
  850. 'httpMethod' => 'PATCH',
  851. 'parameters' => array(
  852. 'customer' => array(
  853. 'location' => 'path',
  854. 'type' => 'string',
  855. 'required' => true,
  856. ),
  857. 'notificationId' => array(
  858. 'location' => 'path',
  859. 'type' => 'string',
  860. 'required' => true,
  861. ),
  862. ),
  863. ),'update' => array(
  864. 'path' => 'customer/{customer}/notifications/{notificationId}',
  865. 'httpMethod' => 'PUT',
  866. 'parameters' => array(
  867. 'customer' => array(
  868. 'location' => 'path',
  869. 'type' => 'string',
  870. 'required' => true,
  871. ),
  872. 'notificationId' => array(
  873. 'location' => 'path',
  874. 'type' => 'string',
  875. 'required' => true,
  876. ),
  877. ),
  878. ),
  879. )
  880. )
  881. );
  882. $this->orgunits = new Google_Service_Directory_Orgunits_Resource(
  883. $this,
  884. $this->serviceName,
  885. 'orgunits',
  886. array(
  887. 'methods' => array(
  888. 'delete' => array(
  889. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  890. 'httpMethod' => 'DELETE',
  891. 'parameters' => array(
  892. 'customerId' => array(
  893. 'location' => 'path',
  894. 'type' => 'string',
  895. 'required' => true,
  896. ),
  897. 'orgUnitPath' => array(
  898. 'location' => 'path',
  899. 'type' => 'string',
  900. 'repeated' => true,
  901. 'required' => true,
  902. ),
  903. ),
  904. ),'get' => array(
  905. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  906. 'httpMethod' => 'GET',
  907. 'parameters' => array(
  908. 'customerId' => array(
  909. 'location' => 'path',
  910. 'type' => 'string',
  911. 'required' => true,
  912. ),
  913. 'orgUnitPath' => array(
  914. 'location' => 'path',
  915. 'type' => 'string',
  916. 'repeated' => true,
  917. 'required' => true,
  918. ),
  919. ),
  920. ),'insert' => array(
  921. 'path' => 'customer/{customerId}/orgunits',
  922. 'httpMethod' => 'POST',
  923. 'parameters' => array(
  924. 'customerId' => array(
  925. 'location' => 'path',
  926. 'type' => 'string',
  927. 'required' => true,
  928. ),
  929. ),
  930. ),'list' => array(
  931. 'path' => 'customer/{customerId}/orgunits',
  932. 'httpMethod' => 'GET',
  933. 'parameters' => array(
  934. 'customerId' => array(
  935. 'location' => 'path',
  936. 'type' => 'string',
  937. 'required' => true,
  938. ),
  939. 'type' => array(
  940. 'location' => 'query',
  941. 'type' => 'string',
  942. ),
  943. 'orgUnitPath' => array(
  944. 'location' => 'query',
  945. 'type' => 'string',
  946. ),
  947. ),
  948. ),'patch' => array(
  949. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  950. 'httpMethod' => 'PATCH',
  951. 'parameters' => array(
  952. 'customerId' => array(
  953. 'location' => 'path',
  954. 'type' => 'string',
  955. 'required' => true,
  956. ),
  957. 'orgUnitPath' => array(
  958. 'location' => 'path',
  959. 'type' => 'string',
  960. 'repeated' => true,
  961. 'required' => true,
  962. ),
  963. ),
  964. ),'update' => array(
  965. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  966. 'httpMethod' => 'PUT',
  967. 'parameters' => array(
  968. 'customerId' => array(
  969. 'location' => 'path',
  970. 'type' => 'string',
  971. 'required' => true,
  972. ),
  973. 'orgUnitPath' => array(
  974. 'location' => 'path',
  975. 'type' => 'string',
  976. 'repeated' => true,
  977. 'required' => true,
  978. ),
  979. ),
  980. ),
  981. )
  982. )
  983. );
  984. $this->privileges = new Google_Service_Directory_Privileges_Resource(
  985. $this,
  986. $this->serviceName,
  987. 'privileges',
  988. array(
  989. 'methods' => array(
  990. 'list' => array(
  991. 'path' => 'customer/{customer}/roles/ALL/privileges',
  992. 'httpMethod' => 'GET',
  993. 'parameters' => array(
  994. 'customer' => array(
  995. 'location' => 'path',
  996. 'type' => 'string',
  997. 'required' => true,
  998. ),
  999. ),
  1000. ),
  1001. )
  1002. )
  1003. );
  1004. $this->roleAssignments = new Google_Service_Directory_RoleAssignments_Resource(
  1005. $this,
  1006. $this->serviceName,
  1007. 'roleAssignments',
  1008. array(
  1009. 'methods' => array(
  1010. 'delete' => array(
  1011. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1012. 'httpMethod' => 'DELETE',
  1013. 'parameters' => array(
  1014. 'customer' => array(
  1015. 'location' => 'path',
  1016. 'type' => 'string',
  1017. 'required' => true,
  1018. ),
  1019. 'roleAssignmentId' => array(
  1020. 'location' => 'path',
  1021. 'type' => 'string',
  1022. 'required' => true,
  1023. ),
  1024. ),
  1025. ),'get' => array(
  1026. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1027. 'httpMethod' => 'GET',
  1028. 'parameters' => array(
  1029. 'customer' => array(
  1030. 'location' => 'path',
  1031. 'type' => 'string',
  1032. 'required' => true,
  1033. ),
  1034. 'roleAssignmentId' => array(
  1035. 'location' => 'path',
  1036. 'type' => 'string',
  1037. 'required' => true,
  1038. ),
  1039. ),
  1040. ),'insert' => array(
  1041. 'path' => 'customer/{customer}/roleassignments',
  1042. 'httpMethod' => 'POST',
  1043. 'parameters' => array(
  1044. 'customer' => array(
  1045. 'location' => 'path',
  1046. 'type' => 'string',
  1047. 'required' => true,
  1048. ),
  1049. ),
  1050. ),'list' => array(
  1051. 'path' => 'customer/{customer}/roleassignments',
  1052. 'httpMethod' => 'GET',
  1053. 'parameters' => array(
  1054. 'customer' => array(
  1055. 'location' => 'path',
  1056. 'type' => 'string',
  1057. 'required' => true,
  1058. ),
  1059. 'pageToken' => array(
  1060. 'location' => 'query',
  1061. 'type' => 'string',
  1062. ),
  1063. 'userKey' => array(
  1064. 'location' => 'query',
  1065. 'type' => 'string',
  1066. ),
  1067. 'maxResults' => array(
  1068. 'location' => 'query',
  1069. 'type' => 'integer',
  1070. ),
  1071. 'roleId' => array(
  1072. 'location' => 'query',
  1073. 'type' => 'string',
  1074. ),
  1075. ),
  1076. ),
  1077. )
  1078. )
  1079. );
  1080. $this->roles = new Google_Service_Directory_Roles_Resource(
  1081. $this,
  1082. $this->serviceName,
  1083. 'roles',
  1084. array(
  1085. 'methods' => array(
  1086. 'delete' => array(
  1087. 'path' => 'customer/{customer}/roles/{roleId}',
  1088. 'httpMethod' => 'DELETE',
  1089. 'parameters' => array(
  1090. 'customer' => array(
  1091. 'location' => 'path',
  1092. 'type' => 'string',
  1093. 'required' => true,
  1094. ),
  1095. 'roleId' => array(
  1096. 'location' => 'path',
  1097. 'type' => 'string',
  1098. 'required' => true,
  1099. ),
  1100. ),
  1101. ),'get' => array(
  1102. 'path' => 'customer/{customer}/roles/{roleId}',
  1103. 'httpMethod' => 'GET',
  1104. 'parameters' => array(
  1105. 'customer' => array(
  1106. 'location' => 'path',
  1107. 'type' => 'string',
  1108. 'required' => true,
  1109. ),
  1110. 'roleId' => array(
  1111. 'location' => 'path',
  1112. 'type' => 'string',
  1113. 'required' => true,
  1114. ),
  1115. ),
  1116. ),'insert' => array(
  1117. 'path' => 'customer/{customer}/roles',
  1118. 'httpMethod' => 'POST',
  1119. 'parameters' => array(
  1120. 'customer' => array(
  1121. 'location' => 'path',
  1122. 'type' => 'string',
  1123. 'required' => true,
  1124. ),
  1125. ),
  1126. ),'list' => array(
  1127. 'path' => 'customer/{customer}/roles',
  1128. 'httpMethod' => 'GET',
  1129. 'parameters' => array(
  1130. 'customer' => array(
  1131. 'location' => 'path',
  1132. 'type' => 'string',
  1133. 'required' => true,
  1134. ),
  1135. 'pageToken' => array(
  1136. 'location' => 'query',
  1137. 'type' => 'string',
  1138. ),
  1139. 'maxResults' => array(
  1140. 'location' => 'query',
  1141. 'type' => 'integer',
  1142. ),
  1143. ),
  1144. ),'patch' => array(
  1145. 'path' => 'customer/{customer}/roles/{roleId}',
  1146. 'httpMethod' => 'PATCH',
  1147. 'parameters' => array(
  1148. 'customer' => array(
  1149. 'location' => 'path',
  1150. 'type' => 'string',
  1151. 'required' => true,
  1152. ),
  1153. 'roleId' => array(
  1154. 'location' => 'path',
  1155. 'type' => 'string',
  1156. 'required' => true,
  1157. ),
  1158. ),
  1159. ),'update' => array(
  1160. 'path' => 'customer/{customer}/roles/{roleId}',
  1161. 'httpMethod' => 'PUT',
  1162. 'parameters' => array(
  1163. 'customer' => array(
  1164. 'location' => 'path',
  1165. 'type' => 'string',
  1166. 'required' => true,
  1167. ),
  1168. 'roleId' => array(
  1169. 'location' => 'path',
  1170. 'type' => 'string',
  1171. 'required' => true,
  1172. ),
  1173. ),
  1174. ),
  1175. )
  1176. )
  1177. );
  1178. $this->schemas = new Google_Service_Directory_Schemas_Resource(
  1179. $this,
  1180. $this->serviceName,
  1181. 'schemas',
  1182. array(
  1183. 'methods' => array(
  1184. 'delete' => array(
  1185. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1186. 'httpMethod' => 'DELETE',
  1187. 'parameters' => array(
  1188. 'customerId' => array(
  1189. 'location' => 'path',
  1190. 'type' => 'string',
  1191. 'required' => true,
  1192. ),
  1193. 'schemaKey' => array(
  1194. 'location' => 'path',
  1195. 'type' => 'string',
  1196. 'required' => true,
  1197. ),
  1198. ),
  1199. ),'get' => array(
  1200. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1201. 'httpMethod' => 'GET',
  1202. 'parameters' => array(
  1203. 'customerId' => array(
  1204. 'location' => 'path',
  1205. 'type' => 'string',
  1206. 'required' => true,
  1207. ),
  1208. 'schemaKey' => array(
  1209. 'location' => 'path',
  1210. 'type' => 'string',
  1211. 'required' => true,
  1212. ),
  1213. ),
  1214. ),'insert' => array(
  1215. 'path' => 'customer/{customerId}/schemas',
  1216. 'httpMethod' => 'POST',
  1217. 'parameters' => array(
  1218. 'customerId' => array(
  1219. 'location' => 'path',
  1220. 'type' => 'string',
  1221. 'required' => true,
  1222. ),
  1223. ),
  1224. ),'list' => array(
  1225. 'path' => 'customer/{customerId}/schemas',
  1226. 'httpMethod' => 'GET',
  1227. 'parameters' => array(
  1228. 'customerId' => array(
  1229. 'location' => 'path',
  1230. 'type' => 'string',
  1231. 'required' => true,
  1232. ),
  1233. ),
  1234. ),'patch' => array(
  1235. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1236. 'httpMethod' => 'PATCH',
  1237. 'parameters' => array(
  1238. 'customerId' => array(
  1239. 'location' => 'path',
  1240. 'type' => 'string',
  1241. 'required' => true,
  1242. ),
  1243. 'schemaKey' => array(
  1244. 'location' => 'path',
  1245. 'type' => 'string',
  1246. 'required' => true,
  1247. ),
  1248. ),
  1249. ),'update' => array(
  1250. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1251. 'httpMethod' => 'PUT',
  1252. 'parameters' => array(
  1253. 'customerId' => array(
  1254. 'location' => 'path',
  1255. 'type' => 'string',
  1256. 'required' => true,
  1257. ),
  1258. 'schemaKey' => array(
  1259. 'location' => 'path',
  1260. 'type' => 'string',
  1261. 'required' => true,
  1262. ),
  1263. ),
  1264. ),
  1265. )
  1266. )
  1267. );
  1268. $this->tokens = new Google_Service_Directory_Tokens_Resource(
  1269. $this,
  1270. $this->serviceName,
  1271. 'tokens',
  1272. array(
  1273. 'methods' => array(
  1274. 'delete' => array(
  1275. 'path' => 'users/{userKey}/tokens/{clientId}',
  1276. 'httpMethod' => 'DELETE',
  1277. 'parameters' => array(
  1278. 'userKey' => array(
  1279. 'location' => 'path',
  1280. 'type' => 'string',
  1281. 'required' => true,
  1282. ),
  1283. 'clientId' => array(
  1284. 'location' => 'path',
  1285. 'type' => 'string',
  1286. 'required' => true,
  1287. ),
  1288. ),
  1289. ),'get' => array(
  1290. 'path' => 'users/{userKey}/tokens/{clientId}',
  1291. 'httpMethod' => 'GET',
  1292. 'parameters' => array(
  1293. 'userKey' => array(
  1294. 'location' => 'path',
  1295. 'type' => 'string',
  1296. 'required' => true,
  1297. ),
  1298. 'clientId' => array(
  1299. 'location' => 'path',
  1300. 'type' => 'string',
  1301. 'required' => true,
  1302. ),
  1303. ),
  1304. ),'list' => array(
  1305. 'path' => 'users/{userKey}/tokens',
  1306. 'httpMethod' => 'GET',
  1307. 'parameters' => array(
  1308. 'userKey' => array(
  1309. 'location' => 'path',
  1310. 'type' => 'string',
  1311. 'required' => true,
  1312. ),
  1313. ),
  1314. ),
  1315. )
  1316. )
  1317. );
  1318. $this->users = new Google_Service_Directory_Users_Resource(
  1319. $this,
  1320. $this->serviceName,
  1321. 'users',
  1322. array(
  1323. 'methods' => array(
  1324. 'delete' => array(
  1325. 'path' => 'users/{userKey}',
  1326. 'httpMethod' => 'DELETE',
  1327. 'parameters' => array(
  1328. 'userKey' => array(
  1329. 'location' => 'path',
  1330. 'type' => 'string',
  1331. 'required' => true,
  1332. ),
  1333. ),
  1334. ),'get' => array(
  1335. 'path' => 'users/{userKey}',
  1336. 'httpMethod' => 'GET',
  1337. 'parameters' => array(
  1338. 'userKey' => array(
  1339. 'location' => 'path',
  1340. 'type' => 'string',
  1341. 'required' => true,
  1342. ),
  1343. 'viewType' => array(
  1344. 'location' => 'query',
  1345. 'type' => 'string',
  1346. ),
  1347. 'customFieldMask' => array(
  1348. 'location' => 'query',
  1349. 'type' => 'string',
  1350. ),
  1351. 'projection' => array(
  1352. 'location' => 'query',
  1353. 'type' => 'string',
  1354. ),
  1355. ),
  1356. ),'insert' => array(
  1357. 'path' => 'users',
  1358. 'httpMethod' => 'POST',
  1359. 'parameters' => array(),
  1360. ),'list' => array(
  1361. 'path' => 'users',
  1362. 'httpMethod' => 'GET',
  1363. 'parameters' => array(
  1364. 'customer' => array(
  1365. 'location' => 'query',
  1366. 'type' => 'string',
  1367. ),
  1368. 'orderBy' => array(
  1369. 'location' => 'query',
  1370. 'type' => 'string',
  1371. ),
  1372. 'domain' => array(
  1373. 'location' => 'query',
  1374. 'type' => 'string',
  1375. ),
  1376. 'projection' => array(
  1377. 'location' => 'query',
  1378. 'type' => 'string',
  1379. ),
  1380. 'showDeleted' => array(
  1381. 'location' => 'query',
  1382. 'type' => 'string',
  1383. ),
  1384. 'customFieldMask' => array(
  1385. 'location' => 'query',
  1386. 'type' => 'string',
  1387. ),
  1388. 'maxResults' => array(
  1389. 'location' => 'query',
  1390. 'type' => 'integer',
  1391. ),
  1392. 'pageToken' => array(
  1393. 'location' => 'query',
  1394. 'type' => 'string',
  1395. ),
  1396. 'sortOrder' => array(
  1397. 'location' => 'query',
  1398. 'type' => 'string',
  1399. ),
  1400. 'query' => array(
  1401. 'location' => 'query',
  1402. 'type' => 'string',
  1403. ),
  1404. 'viewType' => array(
  1405. 'location' => 'query',
  1406. 'type' => 'string',
  1407. ),
  1408. 'event' => array(
  1409. 'location' => 'query',
  1410. 'type' => 'string',
  1411. ),
  1412. ),
  1413. ),'makeAdmin' => array(
  1414. 'path' => 'users/{userKey}/makeAdmin',
  1415. 'httpMethod' => 'POST',
  1416. 'parameters' => array(
  1417. 'userKey' => array(
  1418. 'location' => 'path',
  1419. 'type' => 'string',
  1420. 'required' => true,
  1421. ),
  1422. ),
  1423. ),'patch' => array(
  1424. 'path' => 'users/{userKey}',
  1425. 'httpMethod' => 'PATCH',
  1426. 'parameters' => array(
  1427. 'userKey' => array(
  1428. 'location' => 'path',
  1429. 'type' => 'string',
  1430. 'required' => true,
  1431. ),
  1432. ),
  1433. ),'undelete' => array(
  1434. 'path' => 'users/{userKey}/undelete',
  1435. 'httpMethod' => 'POST',
  1436. 'parameters' => array(
  1437. 'userKey' => array(
  1438. 'location' => 'path',
  1439. 'type' => 'string',
  1440. 'required' => true,
  1441. ),
  1442. ),
  1443. ),'update' => array(
  1444. 'path' => 'users/{userKey}',
  1445. 'httpMethod' => 'PUT',
  1446. 'parameters' => array(
  1447. 'userKey' => array(
  1448. 'location' => 'path',
  1449. 'type' => 'string',
  1450. 'required' => true,
  1451. ),
  1452. ),
  1453. ),'watch' => array(
  1454. 'path' => 'users/watch',
  1455. 'httpMethod' => 'POST',
  1456. 'parameters' => array(
  1457. 'customer' => array(
  1458. 'location' => 'query',
  1459. 'type' => 'string',
  1460. ),
  1461. 'orderBy' => array(
  1462. 'location' => 'query',
  1463. 'type' => 'string',
  1464. ),
  1465. 'domain' => array(
  1466. 'location' => 'query',
  1467. 'type' => 'string',
  1468. ),
  1469. 'projection' => array(
  1470. 'location' => 'query',
  1471. 'type' => 'string',
  1472. ),
  1473. 'showDeleted' => array(
  1474. 'location' => 'query',
  1475. 'type' => 'string',
  1476. ),
  1477. 'customFieldMask' => array(
  1478. 'location' => 'query',
  1479. 'type' => 'string',
  1480. ),
  1481. 'maxResults' => array(
  1482. 'location' => 'query',
  1483. 'type' => 'integer',
  1484. ),
  1485. 'pageToken' => array(
  1486. 'location' => 'query',
  1487. 'type' => 'string',
  1488. ),
  1489. 'sortOrder' => array(
  1490. 'location' => 'query',
  1491. 'type' => 'string',
  1492. ),
  1493. 'query' => array(
  1494. 'location' => 'query',
  1495. 'type' => 'string',
  1496. ),
  1497. 'viewType' => array(
  1498. 'location' => 'query',
  1499. 'type' => 'string',
  1500. ),
  1501. 'event' => array(
  1502. 'location' => 'query',
  1503. 'type' => 'string',
  1504. ),
  1505. ),
  1506. ),
  1507. )
  1508. )
  1509. );
  1510. $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource(
  1511. $this,
  1512. $this->serviceName,
  1513. 'aliases',
  1514. array(
  1515. 'methods' => array(
  1516. 'delete' => array(
  1517. 'path' => 'users/{userKey}/aliases/{alias}',
  1518. 'httpMethod' => 'DELETE',
  1519. 'parameters' => array(
  1520. 'userKey' => array(
  1521. 'location' => 'path',
  1522. 'type' => 'string',
  1523. 'required' => true,
  1524. ),
  1525. 'alias' => array(
  1526. 'location' => 'path',
  1527. 'type' => 'string',
  1528. 'required' => true,
  1529. ),
  1530. ),
  1531. ),'insert' => array(
  1532. 'path' => 'users/{userKey}/aliases',
  1533. 'httpMethod' => 'POST',
  1534. 'parameters' => array(
  1535. 'userKey' => array(
  1536. 'location' => 'path',
  1537. 'type' => 'string',
  1538. 'required' => true,
  1539. ),
  1540. ),
  1541. ),'list' => array(
  1542. 'path' => 'users/{userKey}/aliases',
  1543. 'httpMethod' => 'GET',
  1544. 'parameters' => array(
  1545. 'userKey' => array(
  1546. 'location' => 'path',
  1547. 'type' => 'string',
  1548. 'required' => true,
  1549. ),
  1550. 'event' => array(
  1551. 'location' => 'query',
  1552. 'type' => 'string',
  1553. ),
  1554. ),
  1555. ),'watch' => array(
  1556. 'path' => 'users/{userKey}/aliases/watch',
  1557. 'httpMethod' => 'POST',
  1558. 'parameters' => array(
  1559. 'userKey' => array(
  1560. 'location' => 'path',
  1561. 'type' => 'string',
  1562. 'required' => true,
  1563. ),
  1564. 'event' => array(
  1565. 'location' => 'query',
  1566. 'type' => 'string',
  1567. ),
  1568. ),
  1569. ),
  1570. )
  1571. )
  1572. );
  1573. $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource(
  1574. $this,
  1575. $this->serviceName,
  1576. 'photos',
  1577. array(
  1578. 'methods' => array(
  1579. 'delete' => array(
  1580. 'path' => 'users/{userKey}/photos/thumbnail',
  1581. 'httpMethod' => 'DELETE',
  1582. 'parameters' => array(
  1583. 'userKey' => array(
  1584. 'location' => 'path',
  1585. 'type' => 'string',
  1586. 'required' => true,
  1587. ),
  1588. ),
  1589. ),'get' => array(
  1590. 'path' => 'users/{userKey}/photos/thumbnail',
  1591. 'httpMethod' => 'GET',
  1592. 'parameters' => array(
  1593. 'userKey' => array(
  1594. 'location' => 'path',
  1595. 'type' => 'string',
  1596. 'required' => true,
  1597. ),
  1598. ),
  1599. ),'patch' => array(
  1600. 'path' => 'users/{userKey}/photos/thumbnail',
  1601. 'httpMethod' => 'PATCH',
  1602. 'parameters' => array(
  1603. 'userKey' => array(
  1604. 'location' => 'path',
  1605. 'type' => 'string',
  1606. 'required' => true,
  1607. ),
  1608. ),
  1609. ),'update' => array(
  1610. 'path' => 'users/{userKey}/photos/thumbnail',
  1611. 'httpMethod' => 'PUT',
  1612. 'parameters' => array(
  1613. 'userKey' => array(
  1614. 'location' => 'path',
  1615. 'type' => 'string',
  1616. 'required' => true,
  1617. ),
  1618. ),
  1619. ),
  1620. )
  1621. )
  1622. );
  1623. $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource(
  1624. $this,
  1625. $this->serviceName,
  1626. 'verificationCodes',
  1627. array(
  1628. 'methods' => array(
  1629. 'generate' => array(
  1630. 'path' => 'users/{userKey}/verificationCodes/generate',
  1631. 'httpMethod' => 'POST',
  1632. 'parameters' => array(
  1633. 'userKey' => array(
  1634. 'location' => 'path',
  1635. 'type' => 'string',
  1636. 'required' => true,
  1637. ),
  1638. ),
  1639. ),'invalidate' => array(
  1640. 'path' => 'users/{userKey}/verificationCodes/invalidate',
  1641. 'httpMethod' => 'POST',
  1642. 'parameters' => array(
  1643. 'userKey' => array(
  1644. 'location' => 'path',
  1645. 'type' => 'string',
  1646. 'required' => true,
  1647. ),
  1648. ),
  1649. ),'list' => array(
  1650. 'path' => 'users/{userKey}/verificationCodes',
  1651. 'httpMethod' => 'GET',
  1652. 'parameters' => array(
  1653. 'userKey' => array(
  1654. 'location' => 'path',
  1655. 'type' => 'string',
  1656. 'required' => true,
  1657. ),
  1658. ),
  1659. ),
  1660. )
  1661. )
  1662. );
  1663. }
  1664. }
  1665. /**
  1666. * The "asps" collection of methods.
  1667. * Typical usage is:
  1668. * <code>
  1669. * $adminService = new Google_Service_Directory(...);
  1670. * $asps = $adminService->asps;
  1671. * </code>
  1672. */
  1673. class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
  1674. {
  1675. /**
  1676. * Delete an ASP issued by a user. (asps.delete)
  1677. *
  1678. * @param string $userKey Identifies the user in the API request. The value can
  1679. * be the user's primary email address, alias email address, or unique user ID.
  1680. * @param int $codeId The unique ID of the ASP to be deleted.
  1681. * @param array $optParams Optional parameters.
  1682. */
  1683. public function delete($userKey, $codeId, $optParams = array())
  1684. {
  1685. $params = array('userKey' => $userKey, 'codeId' => $codeId);
  1686. $params = array_merge($params, $optParams);
  1687. return $this->call('delete', array($params));
  1688. }
  1689. /**
  1690. * Get information about an ASP issued by a user. (asps.get)
  1691. *
  1692. * @param string $userKey Identifies the user in the API request. The value can
  1693. * be the user's primary email address, alias email address, or unique user ID.
  1694. * @param int $codeId The unique ID of the ASP.
  1695. * @param array $optParams Optional parameters.
  1696. * @return Google_Service_Directory_Asp
  1697. */
  1698. public function get($userKey, $codeId, $optParams = array())
  1699. {
  1700. $params = array('userKey' => $userKey, 'codeId' => $codeId);
  1701. $params = array_merge($params, $optParams);
  1702. return $this->call('get', array($params), "Google_Service_Directory_Asp");
  1703. }
  1704. /**
  1705. * List the ASPs issued by a user. (asps.listAsps)
  1706. *
  1707. * @param string $userKey Identifies the user in the API request. The value can
  1708. * be the user's primary email address, alias email address, or unique user ID.
  1709. * @param array $optParams Optional parameters.
  1710. * @return Google_Service_Directory_Asps
  1711. */
  1712. public function listAsps($userKey, $optParams = array())
  1713. {
  1714. $params = array('userKey' => $userKey);
  1715. $params = array_merge($params, $optParams);
  1716. return $this->call('list', array($params), "Google_Service_Directory_Asps");
  1717. }
  1718. }
  1719. /**
  1720. * The "channels" collection of methods.
  1721. * Typical usage is:
  1722. * <code>
  1723. * $adminService = new Google_Service_Directory(...);
  1724. * $channels = $adminService->channels;
  1725. * </code>
  1726. */
  1727. class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
  1728. {
  1729. /**
  1730. * Stop watching resources through this channel (channels.stop)
  1731. *
  1732. * @param Google_Channel $postBody
  1733. * @param array $optParams Optional parameters.
  1734. */
  1735. public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
  1736. {
  1737. $params = array('postBody' => $postBody);
  1738. $params = array_merge($params, $optParams);
  1739. return $this->call('stop', array($params));
  1740. }
  1741. }
  1742. /**
  1743. * The "chromeosdevices" collection of methods.
  1744. * Typical usage is:
  1745. * <code>
  1746. * $adminService = new Google_Service_Directory(...);
  1747. * $chromeosdevices = $adminService->chromeosdevices;
  1748. * </code>
  1749. */
  1750. class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource
  1751. {
  1752. /**
  1753. * Retrieve Chrome OS Device (chromeosdevices.get)
  1754. *
  1755. * @param string $customerId Immutable id of the Google Apps account
  1756. * @param string $deviceId Immutable id of Chrome OS Device
  1757. * @param array $optParams Optional parameters.
  1758. *
  1759. * @opt_param string projection Restrict information returned to a set of
  1760. * selected fields.
  1761. * @return Google_Service_Directory_ChromeOsDevice
  1762. */
  1763. public function get($customerId, $deviceId, $optParams = array())
  1764. {
  1765. $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
  1766. $params = array_merge($params, $optParams);
  1767. return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice");
  1768. }
  1769. /**
  1770. * Retrieve all Chrome OS Devices of a customer (paginated)
  1771. * (chromeosdevices.listChromeosdevices)
  1772. *
  1773. * @param string $customerId Immutable id of the Google Apps account
  1774. * @param array $optParams Optional parameters.
  1775. *
  1776. * @opt_param string orderBy Column to use for sorting results
  1777. * @opt_param string projection Restrict information returned to a set of
  1778. * selected fields.
  1779. * @opt_param int maxResults Maximum number of results to return. Default is 100
  1780. * @opt_param string pageToken Token to specify next page in the list
  1781. * @opt_param string sortOrder Whether to return results in ascending or
  1782. * descending order. Only of use when orderBy is also used
  1783. * @opt_param string query Search string in the format given at
  1784. * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
  1785. * @return Google_Service_Directory_ChromeOsDevices
  1786. */
  1787. public function listChromeosdevices($customerId, $optParams = array())
  1788. {
  1789. $params = array('customerId' => $customerId);
  1790. $params = array_merge($params, $optParams);
  1791. return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices");
  1792. }
  1793. /**
  1794. * Update Chrome OS Device. This method supports patch semantics.
  1795. * (chromeosdevices.patch)
  1796. *
  1797. * @param string $customerId Immutable id of the Google Apps account
  1798. * @param string $deviceId Immutable id of Chrome OS Device
  1799. * @param Google_ChromeOsDevice $postBody
  1800. * @param array $optParams Optional parameters.
  1801. *
  1802. * @opt_param string projection Restrict information returned to a set of
  1803. * selected fields.
  1804. * @return Google_Service_Directory_ChromeOsDevice
  1805. */
  1806. public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
  1807. {
  1808. $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
  1809. $params = array_merge($params, $optParams);
  1810. return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice");
  1811. }
  1812. /**
  1813. * Update Chrome OS Device (chromeosdevices.update)
  1814. *
  1815. * @param string $customerId Immutable id of the Google Apps account
  1816. * @param string $deviceId Immutable id of Chrome OS Device
  1817. * @param Google_ChromeOsDevice $postBody
  1818. * @param array $optParams Optional parameters.
  1819. *
  1820. * @opt_param string projection Restrict information returned to a set of
  1821. * selected fields.
  1822. * @return Google_Service_Directory_ChromeOsDevice
  1823. */
  1824. public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
  1825. {
  1826. $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
  1827. $params = array_merge($params, $optParams);
  1828. return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");
  1829. }
  1830. }
  1831. /**
  1832. * The "customers" collection of methods.
  1833. * Typical usage is:
  1834. * <code>
  1835. * $adminService = new Google_Service_Directory(...);
  1836. * $customers = $adminService->customers;
  1837. * </code>
  1838. */
  1839. class Google_Service_Directory_Customers_Resource extends Google_Service_Resource
  1840. {
  1841. /**
  1842. * Retrives a customer. (customers.get)
  1843. *
  1844. * @param string $customerKey Id of the customer to be retrieved
  1845. * @param array $optParams Optional parameters.
  1846. * @return Google_Service_Directory_Customer
  1847. */
  1848. public function get($customerKey, $optParams = array())
  1849. {
  1850. $params = array('customerKey' => $customerKey);
  1851. $params = array_merge($params, $optParams);
  1852. return $this->call('get', array($params), "Google_Service_Directory_Customer");
  1853. }
  1854. /**
  1855. * Updates a customer. This method supports patch semantics. (customers.patch)
  1856. *
  1857. * @param string $customerKey Id of the customer to be updated
  1858. * @param Google_Customer $postBody
  1859. * @param array $optParams Optional parameters.
  1860. * @return Google_Service_Directory_Customer
  1861. */
  1862. public function patch($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array())
  1863. {
  1864. $params = array('customerKey' => $customerKey, 'postBody' => $postBody);
  1865. $params = array_merge($params, $optParams);
  1866. return $this->call('patch', array($params), "Google_Service_Directory_Customer");
  1867. }
  1868. /**
  1869. * Updates a customer. (customers.update)
  1870. *
  1871. * @param string $customerKey Id of the customer to be updated
  1872. * @param Google_Customer $postBody
  1873. * @param array $optParams Optional parameters.
  1874. * @return Google_Service_Directory_Customer
  1875. */
  1876. public function update($customerKey, Google_Service_Directory_Customer $postBody, $optParams = array())
  1877. {
  1878. $params = array('customerKey' => $customerKey, 'postBody' => $postBody);
  1879. $params = array_merge($params, $optParams);
  1880. return $this->call('update', array($params), "Google_Service_Directory_Customer");
  1881. }
  1882. }
  1883. /**
  1884. * The "domainAliases" collection of methods.
  1885. * Typical usage is:
  1886. * <code>
  1887. * $adminService = new Google_Service_Directory(...);
  1888. * $domainAliases = $adminService->domainAliases;
  1889. * </code>
  1890. */
  1891. class Google_Service_Directory_DomainAliases_Resource extends Google_Service_Resource
  1892. {
  1893. /**
  1894. * Deletes a Domain Alias of the customer. (domainAliases.delete)
  1895. *
  1896. * @param string $customer Immutable id of the Google Apps account.
  1897. * @param string $domainAliasName Name of domain alias to be retrieved.
  1898. * @param array $optParams Optional parameters.
  1899. */
  1900. public function delete($customer, $domainAliasName, $optParams = array())
  1901. {
  1902. $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName);
  1903. $params = array_merge($params, $optParams);
  1904. return $this->call('delete', array($params));
  1905. }
  1906. /**
  1907. * Retrieves a domain alias of the customer. (domainAliases.get)
  1908. *
  1909. * @param string $customer Immutable id of the Google Apps account.
  1910. * @param string $domainAliasName Name of domain alias to be retrieved.
  1911. * @param array $optParams Optional parameters.
  1912. * @return Google_Service_Directory_DomainAlias
  1913. */
  1914. public function get($customer, $domainAliasName, $optParams = array())
  1915. {
  1916. $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName);
  1917. $params = array_merge($params, $optParams);
  1918. return $this->call('get', array($params), "Google_Service_Directory_DomainAlias");
  1919. }
  1920. /**
  1921. * Inserts a Domain alias of the customer. (domainAliases.insert)
  1922. *
  1923. * @param string $customer Immutable id of the Google Apps account.
  1924. * @param Google_DomainAlias $postBody
  1925. * @param array $optParams Optional parameters.
  1926. * @return Google_Service_Directory_DomainAlias
  1927. */
  1928. public function insert($customer, Google_Service_Directory_DomainAlias $postBody, $optParams = array())
  1929. {
  1930. $params = array('customer' => $customer, 'postBody' => $postBody);
  1931. $params = array_merge($params, $optParams);
  1932. return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias");
  1933. }
  1934. /**
  1935. * Lists the domain aliases of the customer. (domainAliases.listDomainAliases)
  1936. *
  1937. * @param string $customer Immutable id of the Google Apps account.
  1938. * @param array $optParams Optional parameters.
  1939. *
  1940. * @opt_param string parentDomainName Name of the parent domain for which domain
  1941. * aliases are to be fetched.
  1942. * @return Google_Service_Directory_DomainAliases
  1943. */
  1944. public function listDomainAliases($customer, $optParams = array())
  1945. {
  1946. $params = array('customer' => $customer);
  1947. $params = array_merge($params, $optParams);
  1948. return $this->call('list', array($params), "Google_Service_Directory_DomainAliases");
  1949. }
  1950. }
  1951. /**
  1952. * The "domains" collection of methods.
  1953. * Typical usage is:
  1954. * <code>
  1955. * $adminService = new Google_Service_Directory(...);
  1956. * $domains = $adminService->domains;
  1957. * </code>
  1958. */
  1959. class Google_Service_Directory_Domains_Resource extends Google_Service_Resource
  1960. {
  1961. /**
  1962. * Deletes a domain of the customer. (domains.delete)
  1963. *
  1964. * @param string $customer Immutable id of the Google Apps account.
  1965. * @param string $domainName Name of domain to be deleted
  1966. * @param array $optParams Optional parameters.
  1967. */
  1968. public function delete($customer, $domainName, $optParams = array())
  1969. {
  1970. $params = array('customer' => $customer, 'domainName' => $domainName);
  1971. $params = array_merge($params, $optParams);
  1972. return $this->call('delete', array($params));
  1973. }
  1974. /**
  1975. * Retrives a domain of the customer. (domains.get)
  1976. *
  1977. * @param string $customer Immutable id of the Google Apps account.
  1978. * @param string $domainName Name of domain to be retrieved
  1979. * @param array $optParams Optional parameters.
  1980. * @return Google_Service_Directory_Domains
  1981. */
  1982. public function get($customer, $domainName, $optParams = array())
  1983. {
  1984. $params = array('customer' => $customer, 'domainName' => $domainName);
  1985. $params = array_merge($params, $optParams);
  1986. return $this->call('get', array($params), "Google_Service_Directory_Domains");
  1987. }
  1988. /**
  1989. * Inserts a domain of the customer. (domains.insert)
  1990. *
  1991. * @param string $customer Immutable id of the Google Apps account.
  1992. * @param Google_Domains $postBody
  1993. * @param array $optParams Optional parameters.
  1994. * @return Google_Service_Directory_Domains
  1995. */
  1996. public function insert($customer, Google_Service_Directory_Domains $postBody, $optParams = array())
  1997. {
  1998. $params = array('customer' => $customer, 'postBody' => $postBody);
  1999. $params = array_merge($params, $optParams);
  2000. return $this->call('insert', array($params), "Google_Service_Directory_Domains");
  2001. }
  2002. /**
  2003. * Lists the domains of the customer. (domains.listDomains)
  2004. *
  2005. * @param string $customer Immutable id of the Google Apps account.
  2006. * @param array $optParams Optional parameters.
  2007. * @return Google_Service_Directory_Domains2
  2008. */
  2009. public function listDomains($customer, $optParams = array())
  2010. {
  2011. $params = array('customer' => $customer);
  2012. $params = array_merge($params, $optParams);
  2013. return $this->call('list', array($params), "Google_Service_Directory_Domains2");
  2014. }
  2015. }
  2016. /**
  2017. * The "groups" collection of methods.
  2018. * Typical usage is:
  2019. * <code>
  2020. * $adminService = new Google_Service_Directory(...);
  2021. * $groups = $adminService->groups;
  2022. * </code>
  2023. */
  2024. class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
  2025. {
  2026. /**
  2027. * Delete Group (groups.delete)
  2028. *
  2029. * @param string $groupKey Email or immutable Id of the group
  2030. * @param array $optParams Optional parameters.
  2031. */
  2032. public function delete($groupKey, $optParams = array())
  2033. {
  2034. $params = array('groupKey' => $groupKey);
  2035. $params = array_merge($params, $optParams);
  2036. return $this->call('delete', array($params));
  2037. }
  2038. /**
  2039. * Retrieve Group (groups.get)
  2040. *
  2041. * @param string $groupKey Email or immutable Id of the group
  2042. * @param array $optParams Optional parameters.
  2043. * @return Google_Service_Directory_Group
  2044. */
  2045. public function get($groupKey, $optParams = array())
  2046. {
  2047. $params = array('groupKey' => $groupKey);
  2048. $params = array_merge($params, $optParams);
  2049. return $this->call('get', array($params), "Google_Service_Directory_Group");
  2050. }
  2051. /**
  2052. * Create Group (groups.insert)
  2053. *
  2054. * @param Google_Group $postBody
  2055. * @param array $optParams Optional parameters.
  2056. * @return Google_Service_Directory_Group
  2057. */
  2058. public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
  2059. {
  2060. $params = array('postBody' => $postBody);
  2061. $params = array_merge($params, $optParams);
  2062. return $this->call('insert', array($params), "Google_Service_Directory_Group");
  2063. }
  2064. /**
  2065. * Retrieve all groups in a domain (paginated) (groups.listGroups)
  2066. *
  2067. * @param array $optParams Optional parameters.
  2068. *
  2069. * @opt_param string customer Immutable id of the Google Apps account. In case
  2070. * of multi-domain, to fetch all groups for a customer, fill this field instead
  2071. * of domain.
  2072. * @opt_param string pageToken Token to specify next page in the list
  2073. * @opt_param string domain Name of the domain. Fill this field to get groups
  2074. * from only this domain. To return all groups in a multi-domain fill customer
  2075. * field instead.
  2076. * @opt_param int maxResults Maximum number of results to return. Default is 200
  2077. * @opt_param string userKey Email or immutable Id of the user if only those
  2078. * groups are to be listed, the given user is a member of. If Id, it should
  2079. * match with id of user object
  2080. * @return Google_Service_Directory_Groups
  2081. */
  2082. public function listGroups($optParams = array())
  2083. {
  2084. $params = array();
  2085. $params = array_merge($params, $optParams);
  2086. return $this->call('list', array($params), "Google_Service_Directory_Groups");
  2087. }
  2088. /**
  2089. * Update Group. This method supports patch semantics. (groups.patch)
  2090. *
  2091. * @param string $groupKey Email or immutable Id of the group. If Id, it should
  2092. * match with id of group object
  2093. * @param Google_Group $postBody
  2094. * @param array $optParams Optional parameters.
  2095. * @return Google_Service_Directory_Group
  2096. */
  2097. public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
  2098. {
  2099. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  2100. $params = array_merge($params, $optParams);
  2101. return $this->call('patch', array($params), "Google_Service_Directory_Group");
  2102. }
  2103. /**
  2104. * Update Group (groups.update)
  2105. *
  2106. * @param string $groupKey Email or immutable Id of the group. If Id, it should
  2107. * match with id of group object
  2108. * @param Google_Group $postBody
  2109. * @param array $optParams Optional parameters.
  2110. * @return Google_Service_Directory_Group
  2111. */
  2112. public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
  2113. {
  2114. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  2115. $params = array_merge($params, $optParams);
  2116. return $this->call('update', array($params), "Google_Service_Directory_Group");
  2117. }
  2118. }
  2119. /**
  2120. * The "aliases" collection of methods.
  2121. * Typical usage is:
  2122. * <code>
  2123. * $adminService = new Google_Service_Directory(...);
  2124. * $aliases = $adminService->aliases;
  2125. * </code>
  2126. */
  2127. class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource
  2128. {
  2129. /**
  2130. * Remove a alias for the group (aliases.delete)
  2131. *
  2132. * @param string $groupKey Email or immutable Id of the group
  2133. * @param string $alias The alias to be removed
  2134. * @param array $optParams Optional parameters.
  2135. */
  2136. public function delete($groupKey, $alias, $optParams = array())
  2137. {
  2138. $params = array('groupKey' => $groupKey, 'alias' => $alias);
  2139. $params = array_merge($params, $optParams);
  2140. return $this->call('delete', array($params));
  2141. }
  2142. /**
  2143. * Add a alias for the group (aliases.insert)
  2144. *
  2145. * @param string $groupKey Email or immutable Id of the group
  2146. * @param Google_Alias $postBody
  2147. * @param array $optParams Optional parameters.
  2148. * @return Google_Service_Directory_Alias
  2149. */
  2150. public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array())
  2151. {
  2152. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  2153. $params = array_merge($params, $optParams);
  2154. return $this->call('insert', array($params), "Google_Service_Directory_Alias");
  2155. }
  2156. /**
  2157. * List all aliases for a group (aliases.listGroupsAliases)
  2158. *
  2159. * @param string $groupKey Email or immutable Id of the group
  2160. * @param array $optParams Optional parameters.
  2161. * @return Google_Service_Directory_Aliases
  2162. */
  2163. public function listGroupsAliases($groupKey, $optParams = array())
  2164. {
  2165. $params = array('groupKey' => $groupKey);
  2166. $params = array_merge($params, $optParams);
  2167. return $this->call('list', array($params), "Google_Service_Directory_Aliases");
  2168. }
  2169. }
  2170. /**
  2171. * The "members" collection of methods.
  2172. * Typical usage is:
  2173. * <code>
  2174. * $adminService = new Google_Service_Directory(...);
  2175. * $members = $adminService->members;
  2176. * </code>
  2177. */
  2178. class Google_Service_Directory_Members_Resource extends Google_Service_Resource
  2179. {
  2180. /**
  2181. * Remove membership. (members.delete)
  2182. *
  2183. * @param string $groupKey Email or immutable Id of the group
  2184. * @param string $memberKey Email or immutable Id of the member
  2185. * @param array $optParams Optional parameters.
  2186. */
  2187. public function delete($groupKey, $memberKey, $optParams = array())
  2188. {
  2189. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
  2190. $params = array_merge($params, $optParams);
  2191. return $this->call('delete', array($params));
  2192. }
  2193. /**
  2194. * Retrieve Group Member (members.get)
  2195. *
  2196. * @param string $groupKey Email or immutable Id of the group
  2197. * @param string $memberKey Email or immutable Id of the member
  2198. * @param array $optParams Optional parameters.
  2199. * @return Google_Service_Directory_Member
  2200. */
  2201. public function get($groupKey, $memberKey, $optParams = array())
  2202. {
  2203. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
  2204. $params = array_merge($params, $optParams);
  2205. return $this->call('get', array($params), "Google_Service_Directory_Member");
  2206. }
  2207. /**
  2208. * Add user to the specified group. (members.insert)
  2209. *
  2210. * @param string $groupKey Email or immutable Id of the group
  2211. * @param Google_Member $postBody
  2212. * @param array $optParams Optional parameters.
  2213. * @return Google_Service_Directory_Member
  2214. */
  2215. public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array())
  2216. {
  2217. $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
  2218. $params = array_merge($params, $optParams);
  2219. return $this->call('insert', array($params), "Google_Service_Directory_Member");
  2220. }
  2221. /**
  2222. * Retrieve all members in a group (paginated) (members.listMembers)
  2223. *
  2224. * @param string $groupKey Email or immutable Id of the group
  2225. * @param array $optParams Optional parameters.
  2226. *
  2227. * @opt_param string pageToken Token to specify next page in the list
  2228. * @opt_param string roles Comma separated role values to filter list results
  2229. * on.
  2230. * @opt_param int maxResults Maximum number of results to return. Default is 200
  2231. * @return Google_Service_Directory_Members
  2232. */
  2233. public function listMembers($groupKey, $optParams = array())
  2234. {
  2235. $params = array('groupKey' => $groupKey);
  2236. $params = array_merge($params, $optParams);
  2237. return $this->call('list', array($params), "Google_Service_Directory_Members");
  2238. }
  2239. /**
  2240. * Update membership of a user in the specified group. This method supports
  2241. * patch semantics. (members.patch)
  2242. *
  2243. * @param string $groupKey Email or immutable Id of the group. If Id, it should
  2244. * match with id of group object
  2245. * @param string $memberKey Email or immutable Id of the user. If Id, it should
  2246. * match with id of member object
  2247. * @param Google_Member $postBody
  2248. * @param array $optParams Optional parameters.
  2249. * @return Google_Service_Directory_Member
  2250. */
  2251. public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
  2252. {
  2253. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
  2254. $params = array_merge($params, $optParams);
  2255. return $this->call('patch', array($params), "Google_Service_Directory_Member");
  2256. }
  2257. /**
  2258. * Update membership of a user in the specified group. (members.update)
  2259. *
  2260. * @param string $groupKey Email or immutable Id of the group. If Id, it should
  2261. * match with id of group object
  2262. * @param string $memberKey Email or immutable Id of the user. If Id, it should
  2263. * match with id of member object
  2264. * @param Google_Member $postBody
  2265. * @param array $optParams Optional parameters.
  2266. * @return Google_Service_Directory_Member
  2267. */
  2268. public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
  2269. {
  2270. $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
  2271. $params = array_merge($params, $optParams);
  2272. return $this->call('update', array($params), "Google_Service_Directory_Member");
  2273. }
  2274. }
  2275. /**
  2276. * The "mobiledevices" collection of methods.
  2277. * Typical usage is:
  2278. * <code>
  2279. * $adminService = new Google_Service_Directory(...);
  2280. * $mobiledevices = $adminService->mobiledevices;
  2281. * </code>
  2282. */
  2283. class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource
  2284. {
  2285. /**
  2286. * Take action on Mobile Device (mobiledevices.action)
  2287. *
  2288. * @param string $customerId Immutable id of the Google Apps account
  2289. * @param string $resourceId Immutable id of Mobile Device
  2290. * @param Google_MobileDeviceAction $postBody
  2291. * @param array $optParams Optional parameters.
  2292. */
  2293. public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
  2294. {
  2295. $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
  2296. $params = array_merge($params, $optParams);
  2297. return $this->call('action', array($params));
  2298. }
  2299. /**
  2300. * Delete Mobile Device (mobiledevices.delete)
  2301. *
  2302. * @param string $customerId Immutable id of the Google Apps account
  2303. * @param string $resourceId Immutable id of Mobile Device
  2304. * @param array $optParams Optional parameters.
  2305. */
  2306. public function delete($customerId, $resourceId, $optParams = array())
  2307. {
  2308. $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
  2309. $params = array_merge($params, $optParams);
  2310. return $this->call('delete', array($params));
  2311. }
  2312. /**
  2313. * Retrieve Mobile Device (mobiledevices.get)
  2314. *
  2315. * @param string $customerId Immutable id of the Google Apps account
  2316. * @param string $resourceId Immutable id of Mobile Device
  2317. * @param array $optParams Optional parameters.
  2318. *
  2319. * @opt_param string projection Restrict information returned to a set of
  2320. * selected fields.
  2321. * @return Google_Service_Directory_MobileDevice
  2322. */
  2323. public function get($customerId, $resourceId, $optParams = array())
  2324. {
  2325. $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
  2326. $params = array_merge($params, $optParams);
  2327. return $this->call('get', array($params), "Google_Service_Directory_MobileDevice");
  2328. }
  2329. /**
  2330. * Retrieve all Mobile Devices of a customer (paginated)
  2331. * (mobiledevices.listMobiledevices)
  2332. *
  2333. * @param string $customerId Immutable id of the Google Apps account
  2334. * @param array $optParams Optional parameters.
  2335. *
  2336. * @opt_param string orderBy Column to use for sorting results
  2337. * @opt_param string projection Restrict information returned to a set of
  2338. * selected fields.
  2339. * @opt_param int maxResults Maximum number of results to return. Default is 100
  2340. * @opt_param string pageToken Token to specify next page in the list
  2341. * @opt_param string sortOrder Whether to return results in ascending or
  2342. * descending order. Only of use when orderBy is also used
  2343. * @opt_param string query Search string in the format given at
  2344. * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
  2345. * @return Google_Service_Directory_MobileDevices
  2346. */
  2347. public function listMobiledevices($customerId, $optParams = array())
  2348. {
  2349. $params = array('customerId' => $customerId);
  2350. $params = array_merge($params, $optParams);
  2351. return $this->call('list', array($params), "Google_Service_Directory_MobileDevices");
  2352. }
  2353. }
  2354. /**
  2355. * The "notifications" collection of methods.
  2356. * Typical usage is:
  2357. * <code>
  2358. * $adminService = new Google_Service_Directory(...);
  2359. * $notifications = $adminService->notifications;
  2360. * </code>
  2361. */
  2362. class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource
  2363. {
  2364. /**
  2365. * Deletes a notification (notifications.delete)
  2366. *
  2367. * @param string $customer The unique ID for the customer's Google account. The
  2368. * customerId is also returned as part of the Users resource.
  2369. * @param string $notificationId The unique ID of the notification.
  2370. * @param array $optParams Optional parameters.
  2371. */
  2372. public function delete($customer, $notificationId, $optParams = array())
  2373. {
  2374. $params = array('customer' => $customer, 'notificationId' => $notificationId);
  2375. $params = array_merge($params, $optParams);
  2376. return $this->call('delete', array($params));
  2377. }
  2378. /**
  2379. * Retrieves a notification. (notifications.get)
  2380. *
  2381. * @param string $customer The unique ID for the customer's Google account. The
  2382. * customerId is also returned as part of the Users resource.
  2383. * @param string $notificationId The unique ID of the notification.
  2384. * @param array $optParams Optional parameters.
  2385. * @return Google_Service_Directory_Notification
  2386. */
  2387. public function get($customer, $notificationId, $optParams = array())
  2388. {
  2389. $params = array('customer' => $customer, 'notificationId' => $notificationId);
  2390. $params = array_merge($params, $optParams);
  2391. return $this->call('get', array($params), "Google_Service_Directory_Notification");
  2392. }
  2393. /**
  2394. * Retrieves a list of notifications. (notifications.listNotifications)
  2395. *
  2396. * @param string $customer The unique ID for the customer's Google account.
  2397. * @param array $optParams Optional parameters.
  2398. *
  2399. * @opt_param string pageToken The token to specify the page of results to
  2400. * retrieve.
  2401. * @opt_param string maxResults Maximum number of notifications to return per
  2402. * page. The default is 100.
  2403. * @opt_param string language The ISO 639-1 code of the language notifications
  2404. * are returned in. The default is English (en).
  2405. * @return Google_Service_Directory_Notifications
  2406. */
  2407. public function listNotifications($customer, $optParams = array())
  2408. {
  2409. $params = array('customer' => $customer);
  2410. $params = array_merge($params, $optParams);
  2411. return $this->call('list', array($params), "Google_Service_Directory_Notifications");
  2412. }
  2413. /**
  2414. * Updates a notification. This method supports patch semantics.
  2415. * (notifications.patch)
  2416. *
  2417. * @param string $customer The unique ID for the customer's Google account.
  2418. * @param string $notificationId The unique ID of the notification.
  2419. * @param Google_Notification $postBody
  2420. * @param array $optParams Optional parameters.
  2421. * @return Google_Service_Directory_Notification
  2422. */
  2423. public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
  2424. {
  2425. $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
  2426. $params = array_merge($params, $optParams);
  2427. return $this->call('patch', array($params), "Google_Service_Directory_Notification");
  2428. }
  2429. /**
  2430. * Updates a notification. (notifications.update)
  2431. *
  2432. * @param string $customer The unique ID for the customer's Google account.
  2433. * @param string $notificationId The unique ID of the notification.
  2434. * @param Google_Notification $postBody
  2435. * @param array $optParams Optional parameters.
  2436. * @return Google_Service_Directory_Notification
  2437. */
  2438. public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
  2439. {
  2440. $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
  2441. $params = array_merge($params, $optParams);
  2442. return $this->call('update', array($params), "Google_Service_Directory_Notification");
  2443. }
  2444. }
  2445. /**
  2446. * The "orgunits" collection of methods.
  2447. * Typical usage is:
  2448. * <code>
  2449. * $adminService = new Google_Service_Directory(...);
  2450. * $orgunits = $adminService->orgunits;
  2451. * </code>
  2452. */
  2453. class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
  2454. {
  2455. /**
  2456. * Remove Organization Unit (orgunits.delete)
  2457. *
  2458. * @param string $customerId Immutable id of the Google Apps account
  2459. * @param string $orgUnitPath Full path of the organization unit or its Id
  2460. * @param array $optParams Optional parameters.
  2461. */
  2462. public function delete($customerId, $orgUnitPath, $optParams = array())
  2463. {
  2464. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
  2465. $params = array_merge($params, $optParams);
  2466. return $this->call('delete', array($params));
  2467. }
  2468. /**
  2469. * Retrieve Organization Unit (orgunits.get)
  2470. *
  2471. * @param string $customerId Immutable id of the Google Apps account
  2472. * @param string $orgUnitPath Full path of the organization unit or its Id
  2473. * @param array $optParams Optional parameters.
  2474. * @return Google_Service_Directory_OrgUnit
  2475. */
  2476. public function get($customerId, $orgUnitPath, $optParams = array())
  2477. {
  2478. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
  2479. $params = array_merge($params, $optParams);
  2480. return $this->call('get', array($params), "Google_Service_Directory_OrgUnit");
  2481. }
  2482. /**
  2483. * Add Organization Unit (orgunits.insert)
  2484. *
  2485. * @param string $customerId Immutable id of the Google Apps account
  2486. * @param Google_OrgUnit $postBody
  2487. * @param array $optParams Optional parameters.
  2488. * @return Google_Service_Directory_OrgUnit
  2489. */
  2490. public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  2491. {
  2492. $params = array('customerId' => $customerId, 'postBody' => $postBody);
  2493. $params = array_merge($params, $optParams);
  2494. return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit");
  2495. }
  2496. /**
  2497. * Retrieve all Organization Units (orgunits.listOrgunits)
  2498. *
  2499. * @param string $customerId Immutable id of the Google Apps account
  2500. * @param array $optParams Optional parameters.
  2501. *
  2502. * @opt_param string type Whether to return all sub-organizations or just
  2503. * immediate children
  2504. * @opt_param string orgUnitPath the URL-encoded organization unit's path or its
  2505. * Id
  2506. * @return Google_Service_Directory_OrgUnits
  2507. */
  2508. public function listOrgunits($customerId, $optParams = array())
  2509. {
  2510. $params = array('customerId' => $customerId);
  2511. $params = array_merge($params, $optParams);
  2512. return $this->call('list', array($params), "Google_Service_Directory_OrgUnits");
  2513. }
  2514. /**
  2515. * Update Organization Unit. This method supports patch semantics.
  2516. * (orgunits.patch)
  2517. *
  2518. * @param string $customerId Immutable id of the Google Apps account
  2519. * @param string $orgUnitPath Full path of the organization unit or its Id
  2520. * @param Google_OrgUnit $postBody
  2521. * @param array $optParams Optional parameters.
  2522. * @return Google_Service_Directory_OrgUnit
  2523. */
  2524. public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  2525. {
  2526. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
  2527. $params = array_merge($params, $optParams);
  2528. return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit");
  2529. }
  2530. /**
  2531. * Update Organization Unit (orgunits.update)
  2532. *
  2533. * @param string $customerId Immutable id of the Google Apps account
  2534. * @param string $orgUnitPath Full path of the organization unit or its Id
  2535. * @param Google_OrgUnit $postBody
  2536. * @param array $optParams Optional parameters.
  2537. * @return Google_Service_Directory_OrgUnit
  2538. */
  2539. public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
  2540. {
  2541. $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
  2542. $params = array_merge($params, $optParams);
  2543. return $this->call('update', array($params), "Google_Service_Directory_OrgUnit");
  2544. }
  2545. }
  2546. /**
  2547. * The "privileges" collection of methods.
  2548. * Typical usage is:
  2549. * <code>
  2550. * $adminService = new Google_Service_Directory(...);
  2551. * $privileges = $adminService->privileges;
  2552. * </code>
  2553. */
  2554. class Google_Service_Directory_Privileges_Resource extends Google_Service_Resource
  2555. {
  2556. /**
  2557. * Retrieves a paginated list of all privileges for a customer.
  2558. * (privileges.listPrivileges)
  2559. *
  2560. * @param string $customer Immutable ID of the Google Apps account.
  2561. * @param array $optParams Optional parameters.
  2562. * @return Google_Service_Directory_Privileges
  2563. */
  2564. public function listPrivileges($customer, $optParams = array())
  2565. {
  2566. $params = array('customer' => $customer);
  2567. $params = array_merge($params, $optParams);
  2568. return $this->call('list', array($params), "Google_Service_Directory_Privileges");
  2569. }
  2570. }
  2571. /**
  2572. * The "roleAssignments" collection of methods.
  2573. * Typical usage is:
  2574. * <code>
  2575. * $adminService = new Google_Service_Directory(...);
  2576. * $roleAssignments = $adminService->roleAssignments;
  2577. * </code>
  2578. */
  2579. class Google_Service_Directory_RoleAssignments_Resource extends Google_Service_Resource
  2580. {
  2581. /**
  2582. * Deletes a role assignment. (roleAssignments.delete)
  2583. *
  2584. * @param string $customer Immutable ID of the Google Apps account.
  2585. * @param string $roleAssignmentId Immutable ID of the role assignment.
  2586. * @param array $optParams Optional parameters.
  2587. */
  2588. public function delete($customer, $roleAssignmentId, $optParams = array())
  2589. {
  2590. $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId);
  2591. $params = array_merge($params, $optParams);
  2592. return $this->call('delete', array($params));
  2593. }
  2594. /**
  2595. * Retrieve a role assignment. (roleAssignments.get)
  2596. *
  2597. * @param string $customer Immutable ID of the Google Apps account.
  2598. * @param string $roleAssignmentId Immutable ID of the role assignment.
  2599. * @param array $optParams Optional parameters.
  2600. * @return Google_Service_Directory_RoleAssignment
  2601. */
  2602. public function get($customer, $roleAssignmentId, $optParams = array())
  2603. {
  2604. $params = array('customer' => $customer, 'roleAssignmentId' => $roleAssignmentId);
  2605. $params = array_merge($params, $optParams);
  2606. return $this->call('get', array($params), "Google_Service_Directory_RoleAssignment");
  2607. }
  2608. /**
  2609. * Creates a role assignment. (roleAssignments.insert)
  2610. *
  2611. * @param string $customer Immutable ID of the Google Apps account.
  2612. * @param Google_RoleAssignment $postBody
  2613. * @param array $optParams Optional parameters.
  2614. * @return Google_Service_Directory_RoleAssignment
  2615. */
  2616. public function insert($customer, Google_Service_Directory_RoleAssignment $postBody, $optParams = array())
  2617. {
  2618. $params = array('customer' => $customer, 'postBody' => $postBody);
  2619. $params = array_merge($params, $optParams);
  2620. return $this->call('insert', array($params), "Google_Service_Directory_RoleAssignment");
  2621. }
  2622. /**
  2623. * Retrieves a paginated list of all roleAssignments.
  2624. * (roleAssignments.listRoleAssignments)
  2625. *
  2626. * @param string $customer Immutable ID of the Google Apps account.
  2627. * @param array $optParams Optional parameters.
  2628. *
  2629. * @opt_param string pageToken Token to specify the next page in the list.
  2630. * @opt_param string userKey The user's primary email address, alias email
  2631. * address, or unique user ID. If included in the request, returns role
  2632. * assignments only for this user.
  2633. * @opt_param int maxResults Maximum number of results to return.
  2634. * @opt_param string roleId Immutable ID of a role. If included in the request,
  2635. * returns only role assignments containing this role ID.
  2636. * @return Google_Service_Directory_RoleAssignments
  2637. */
  2638. public function listRoleAssignments($customer, $optParams = array())
  2639. {
  2640. $params = array('customer' => $customer);
  2641. $params = array_merge($params, $optParams);
  2642. return $this->call('list', array($params), "Google_Service_Directory_RoleAssignments");
  2643. }
  2644. }
  2645. /**
  2646. * The "roles" collection of methods.
  2647. * Typical usage is:
  2648. * <code>
  2649. * $adminService = new Google_Service_Directory(...);
  2650. * $roles = $adminService->roles;
  2651. * </code>
  2652. */
  2653. class Google_Service_Directory_Roles_Resource extends Google_Service_Resource
  2654. {
  2655. /**
  2656. * Deletes a role. (roles.delete)
  2657. *
  2658. * @param string $customer Immutable ID of the Google Apps account.
  2659. * @param string $roleId Immutable ID of the role.
  2660. * @param array $optParams Optional parameters.
  2661. */
  2662. public function delete($customer, $roleId, $optParams = array())
  2663. {
  2664. $params = array('customer' => $customer, 'roleId' => $roleId);
  2665. $params = array_merge($params, $optParams);
  2666. return $this->call('delete', array($params));
  2667. }
  2668. /**
  2669. * Retrieves a role. (roles.get)
  2670. *
  2671. * @param string $customer Immutable ID of the Google Apps account.
  2672. * @param string $roleId Immutable ID of the role.
  2673. * @param array $optParams Optional parameters.
  2674. * @return Google_Service_Directory_Role
  2675. */
  2676. public function get($customer, $roleId, $optParams = array())
  2677. {
  2678. $params = array('customer' => $customer, 'roleId' => $roleId);
  2679. $params = array_merge($params, $optParams);
  2680. return $this->call('get', array($params), "Google_Service_Directory_Role");
  2681. }
  2682. /**
  2683. * Creates a role. (roles.insert)
  2684. *
  2685. * @param string $customer Immutable ID of the Google Apps account.
  2686. * @param Google_Role $postBody
  2687. * @param array $optParams Optional parameters.
  2688. * @return Google_Service_Directory_Role
  2689. */
  2690. public function insert($customer, Google_Service_Directory_Role $postBody, $optParams = array())
  2691. {
  2692. $params = array('customer' => $customer, 'postBody' => $postBody);
  2693. $params = array_merge($params, $optParams);
  2694. return $this->call('insert', array($params), "Google_Service_Directory_Role");
  2695. }
  2696. /**
  2697. * Retrieves a paginated list of all the roles in a domain. (roles.listRoles)
  2698. *
  2699. * @param string $customer Immutable id of the Google Apps account.
  2700. * @param array $optParams Optional parameters.
  2701. *
  2702. * @opt_param string pageToken Token to specify the next page in the list.
  2703. * @opt_param int maxResults Maximum number of results to return.
  2704. * @return Google_Service_Directory_Roles
  2705. */
  2706. public function listRoles($customer, $optParams = array())
  2707. {
  2708. $params = array('customer' => $customer);
  2709. $params = array_merge($params, $optParams);
  2710. return $this->call('list', array($params), "Google_Service_Directory_Roles");
  2711. }
  2712. /**
  2713. * Updates a role. This method supports patch semantics. (roles.patch)
  2714. *
  2715. * @param string $customer Immutable ID of the Google Apps account.
  2716. * @param string $roleId Immutable ID of the role.
  2717. * @param Google_Role $postBody
  2718. * @param array $optParams Optional parameters.
  2719. * @return Google_Service_Directory_Role
  2720. */
  2721. public function patch($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array())
  2722. {
  2723. $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody);
  2724. $params = array_merge($params, $optParams);
  2725. return $this->call('patch', array($params), "Google_Service_Directory_Role");
  2726. }
  2727. /**
  2728. * Updates a role. (roles.update)
  2729. *
  2730. * @param string $customer Immutable ID of the Google Apps account.
  2731. * @param string $roleId Immutable ID of the role.
  2732. * @param Google_Role $postBody
  2733. * @param array $optParams Optional parameters.
  2734. * @return Google_Service_Directory_Role
  2735. */
  2736. public function update($customer, $roleId, Google_Service_Directory_Role $postBody, $optParams = array())
  2737. {
  2738. $params = array('customer' => $customer, 'roleId' => $roleId, 'postBody' => $postBody);
  2739. $params = array_merge($params, $optParams);
  2740. return $this->call('update', array($params), "Google_Service_Directory_Role");
  2741. }
  2742. }
  2743. /**
  2744. * The "schemas" collection of methods.
  2745. * Typical usage is:
  2746. * <code>
  2747. * $adminService = new Google_Service_Directory(...);
  2748. * $schemas = $adminService->schemas;
  2749. * </code>
  2750. */
  2751. class Google_Service_Directory_Schemas_Resource extends Google_Service_Resource
  2752. {
  2753. /**
  2754. * Delete schema (schemas.delete)
  2755. *
  2756. * @param string $customerId Immutable id of the Google Apps account
  2757. * @param string $schemaKey Name or immutable Id of the schema
  2758. * @param array $optParams Optional parameters.
  2759. */
  2760. public function delete($customerId, $schemaKey, $optParams = array())
  2761. {
  2762. $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
  2763. $params = array_merge($params, $optParams);
  2764. return $this->call('delete', array($params));
  2765. }
  2766. /**
  2767. * Retrieve schema (schemas.get)
  2768. *
  2769. * @param string $customerId Immutable id of the Google Apps account
  2770. * @param string $schemaKey Name or immutable Id of the schema
  2771. * @param array $optParams Optional parameters.
  2772. * @return Google_Service_Directory_Schema
  2773. */
  2774. public function get($customerId, $schemaKey, $optParams = array())
  2775. {
  2776. $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey);
  2777. $params = array_merge($params, $optParams);
  2778. return $this->call('get', array($params), "Google_Service_Directory_Schema");
  2779. }
  2780. /**
  2781. * Create schema. (schemas.insert)
  2782. *
  2783. * @param string $customerId Immutable id of the Google Apps account
  2784. * @param Google_Schema $postBody
  2785. * @param array $optParams Optional parameters.
  2786. * @return Google_Service_Directory_Schema
  2787. */
  2788. public function insert($customerId, Google_Service_Directory_Schema $postBody, $optParams = array())
  2789. {
  2790. $params = array('customerId' => $customerId, 'postBody' => $postBody);
  2791. $params = array_merge($params, $optParams);
  2792. return $this->call('insert', array($params), "Google_Service_Directory_Schema");
  2793. }
  2794. /**
  2795. * Retrieve all schemas for a customer (schemas.listSchemas)
  2796. *
  2797. * @param string $customerId Immutable id of the Google Apps account
  2798. * @param array $optParams Optional parameters.
  2799. * @return Google_Service_Directory_Schemas
  2800. */
  2801. public function listSchemas($customerId, $optParams = array())
  2802. {
  2803. $params = array('customerId' => $customerId);
  2804. $params = array_merge($params, $optParams);
  2805. return $this->call('list', array($params), "Google_Service_Directory_Schemas");
  2806. }
  2807. /**
  2808. * Update schema. This method supports patch semantics. (schemas.patch)
  2809. *
  2810. * @param string $customerId Immutable id of the Google Apps account
  2811. * @param string $schemaKey Name or immutable Id of the schema.
  2812. * @param Google_Schema $postBody
  2813. * @param array $optParams Optional parameters.
  2814. * @return Google_Service_Directory_Schema
  2815. */
  2816. public function patch($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
  2817. {
  2818. $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
  2819. $params = array_merge($params, $optParams);
  2820. return $this->call('patch', array($params), "Google_Service_Directory_Schema");
  2821. }
  2822. /**
  2823. * Update schema (schemas.update)
  2824. *
  2825. * @param string $customerId Immutable id of the Google Apps account
  2826. * @param string $schemaKey Name or immutable Id of the schema.
  2827. * @param Google_Schema $postBody
  2828. * @param array $optParams Optional parameters.
  2829. * @return Google_Service_Directory_Schema
  2830. */
  2831. public function update($customerId, $schemaKey, Google_Service_Directory_Schema $postBody, $optParams = array())
  2832. {
  2833. $params = array('customerId' => $customerId, 'schemaKey' => $schemaKey, 'postBody' => $postBody);
  2834. $params = array_merge($params, $optParams);
  2835. return $this->call('update', array($params), "Google_Service_Directory_Schema");
  2836. }
  2837. }
  2838. /**
  2839. * The "tokens" collection of methods.
  2840. * Typical usage is:
  2841. * <code>
  2842. * $adminService = new Google_Service_Directory(...);
  2843. * $tokens = $adminService->tokens;
  2844. * </code>
  2845. */
  2846. class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
  2847. {
  2848. /**
  2849. * Delete all access tokens issued by a user for an application. (tokens.delete)
  2850. *
  2851. * @param string $userKey Identifies the user in the API request. The value can
  2852. * be the user's primary email address, alias email address, or unique user ID.
  2853. * @param string $clientId The Client ID of the application the token is issued
  2854. * to.
  2855. * @param array $optParams Optional parameters.
  2856. */
  2857. public function delete($userKey, $clientId, $optParams = array())
  2858. {
  2859. $params = array('userKey' => $userKey, 'clientId' => $clientId);
  2860. $params = array_merge($params, $optParams);
  2861. return $this->call('delete', array($params));
  2862. }
  2863. /**
  2864. * Get information about an access token issued by a user. (tokens.get)
  2865. *
  2866. * @param string $userKey Identifies the user in the API request. The value can
  2867. * be the user's primary email address, alias email address, or unique user ID.
  2868. * @param string $clientId The Client ID of the application the token is issued
  2869. * to.
  2870. * @param array $optParams Optional parameters.
  2871. * @return Google_Service_Directory_Token
  2872. */
  2873. public function get($userKey, $clientId, $optParams = array())
  2874. {
  2875. $params = array('userKey' => $userKey, 'clientId' => $clientId);
  2876. $params = array_merge($params, $optParams);
  2877. return $this->call('get', array($params), "Google_Service_Directory_Token");
  2878. }
  2879. /**
  2880. * Returns the set of tokens specified user has issued to 3rd party
  2881. * applications. (tokens.listTokens)
  2882. *
  2883. * @param string $userKey Identifies the user in the API request. The value can
  2884. * be the user's primary email address, alias email address, or unique user ID.
  2885. * @param array $optParams Optional parameters.
  2886. * @return Google_Service_Directory_Tokens
  2887. */
  2888. public function listTokens($userKey, $optParams = array())
  2889. {
  2890. $params = array('userKey' => $userKey);
  2891. $params = array_merge($params, $optParams);
  2892. return $this->call('list', array($params), "Google_Service_Directory_Tokens");
  2893. }
  2894. }
  2895. /**
  2896. * The "users" collection of methods.
  2897. * Typical usage is:
  2898. * <code>
  2899. * $adminService = new Google_Service_Directory(...);
  2900. * $users = $adminService->users;
  2901. * </code>
  2902. */
  2903. class Google_Service_Directory_Users_Resource extends Google_Service_Resource
  2904. {
  2905. /**
  2906. * Delete user (users.delete)
  2907. *
  2908. * @param string $userKey Email or immutable Id of the user
  2909. * @param array $optParams Optional parameters.
  2910. */
  2911. public function delete($userKey, $optParams = array())
  2912. {
  2913. $params = array('userKey' => $userKey);
  2914. $params = array_merge($params, $optParams);
  2915. return $this->call('delete', array($params));
  2916. }
  2917. /**
  2918. * retrieve user (users.get)
  2919. *
  2920. * @param string $userKey Email or immutable Id of the user
  2921. * @param array $optParams Optional parameters.
  2922. *
  2923. * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
  2924. * view of the user.
  2925. * @opt_param string customFieldMask Comma-separated list of schema names. All
  2926. * fields from these schemas are fetched. This should only be set when
  2927. * projection=custom.
  2928. * @opt_param string projection What subset of fields to fetch for this user.
  2929. * @return Google_Service_Directory_User
  2930. */
  2931. public function get($userKey, $optParams = array())
  2932. {
  2933. $params = array('userKey' => $userKey);
  2934. $params = array_merge($params, $optParams);
  2935. return $this->call('get', array($params), "Google_Service_Directory_User");
  2936. }
  2937. /**
  2938. * create user. (users.insert)
  2939. *
  2940. * @param Google_User $postBody
  2941. * @param array $optParams Optional parameters.
  2942. * @return Google_Service_Directory_User
  2943. */
  2944. public function insert(Google_Service_Directory_User $postBody, $optParams = array())
  2945. {
  2946. $params = array('postBody' => $postBody);
  2947. $params = array_merge($params, $optParams);
  2948. return $this->call('insert', array($params), "Google_Service_Directory_User");
  2949. }
  2950. /**
  2951. * Retrieve either deleted users or all users in a domain (paginated)
  2952. * (users.listUsers)
  2953. *
  2954. * @param array $optParams Optional parameters.
  2955. *
  2956. * @opt_param string customer Immutable id of the Google Apps account. In case
  2957. * of multi-domain, to fetch all users for a customer, fill this field instead
  2958. * of domain.
  2959. * @opt_param string orderBy Column to use for sorting results
  2960. * @opt_param string domain Name of the domain. Fill this field to get users
  2961. * from only this domain. To return all users in a multi-domain fill customer
  2962. * field instead.
  2963. * @opt_param string projection What subset of fields to fetch for this user.
  2964. * @opt_param string showDeleted If set to true retrieves the list of deleted
  2965. * users. Default is false
  2966. * @opt_param string customFieldMask Comma-separated list of schema names. All
  2967. * fields from these schemas are fetched. This should only be set when
  2968. * projection=custom.
  2969. * @opt_param int maxResults Maximum number of results to return. Default is
  2970. * 100. Max allowed is 500
  2971. * @opt_param string pageToken Token to specify next page in the list
  2972. * @opt_param string sortOrder Whether to return results in ascending or
  2973. * descending order.
  2974. * @opt_param string query Query string search. Should be of the form "".
  2975. * Complete documentation is at https://developers.google.com/admin-
  2976. * sdk/directory/v1/guides/search-users
  2977. * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
  2978. * view of the user.
  2979. * @opt_param string event Event on which subscription is intended (if
  2980. * subscribing)
  2981. * @return Google_Service_Directory_Users
  2982. */
  2983. public function listUsers($optParams = array())
  2984. {
  2985. $params = array();
  2986. $params = array_merge($params, $optParams);
  2987. return $this->call('list', array($params), "Google_Service_Directory_Users");
  2988. }
  2989. /**
  2990. * change admin status of a user (users.makeAdmin)
  2991. *
  2992. * @param string $userKey Email or immutable Id of the user as admin
  2993. * @param Google_UserMakeAdmin $postBody
  2994. * @param array $optParams Optional parameters.
  2995. */
  2996. public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
  2997. {
  2998. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  2999. $params = array_merge($params, $optParams);
  3000. return $this->call('makeAdmin', array($params));
  3001. }
  3002. /**
  3003. * update user. This method supports patch semantics. (users.patch)
  3004. *
  3005. * @param string $userKey Email or immutable Id of the user. If Id, it should
  3006. * match with id of user object
  3007. * @param Google_User $postBody
  3008. * @param array $optParams Optional parameters.
  3009. * @return Google_Service_Directory_User
  3010. */
  3011. public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array())
  3012. {
  3013. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3014. $params = array_merge($params, $optParams);
  3015. return $this->call('patch', array($params), "Google_Service_Directory_User");
  3016. }
  3017. /**
  3018. * Undelete a deleted user (users.undelete)
  3019. *
  3020. * @param string $userKey The immutable id of the user
  3021. * @param Google_UserUndelete $postBody
  3022. * @param array $optParams Optional parameters.
  3023. */
  3024. public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array())
  3025. {
  3026. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3027. $params = array_merge($params, $optParams);
  3028. return $this->call('undelete', array($params));
  3029. }
  3030. /**
  3031. * update user (users.update)
  3032. *
  3033. * @param string $userKey Email or immutable Id of the user. If Id, it should
  3034. * match with id of user object
  3035. * @param Google_User $postBody
  3036. * @param array $optParams Optional parameters.
  3037. * @return Google_Service_Directory_User
  3038. */
  3039. public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array())
  3040. {
  3041. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3042. $params = array_merge($params, $optParams);
  3043. return $this->call('update', array($params), "Google_Service_Directory_User");
  3044. }
  3045. /**
  3046. * Watch for changes in users list (users.watch)
  3047. *
  3048. * @param Google_Channel $postBody
  3049. * @param array $optParams Optional parameters.
  3050. *
  3051. * @opt_param string customer Immutable id of the Google Apps account. In case
  3052. * of multi-domain, to fetch all users for a customer, fill this field instead
  3053. * of domain.
  3054. * @opt_param string orderBy Column to use for sorting results
  3055. * @opt_param string domain Name of the domain. Fill this field to get users
  3056. * from only this domain. To return all users in a multi-domain fill customer
  3057. * field instead.
  3058. * @opt_param string projection What subset of fields to fetch for this user.
  3059. * @opt_param string showDeleted If set to true retrieves the list of deleted
  3060. * users. Default is false
  3061. * @opt_param string customFieldMask Comma-separated list of schema names. All
  3062. * fields from these schemas are fetched. This should only be set when
  3063. * projection=custom.
  3064. * @opt_param int maxResults Maximum number of results to return. Default is
  3065. * 100. Max allowed is 500
  3066. * @opt_param string pageToken Token to specify next page in the list
  3067. * @opt_param string sortOrder Whether to return results in ascending or
  3068. * descending order.
  3069. * @opt_param string query Query string search. Should be of the form "".
  3070. * Complete documentation is at https://developers.google.com/admin-
  3071. * sdk/directory/v1/guides/search-users
  3072. * @opt_param string viewType Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC
  3073. * view of the user.
  3074. * @opt_param string event Event on which subscription is intended (if
  3075. * subscribing)
  3076. * @return Google_Service_Directory_Channel
  3077. */
  3078. public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
  3079. {
  3080. $params = array('postBody' => $postBody);
  3081. $params = array_merge($params, $optParams);
  3082. return $this->call('watch', array($params), "Google_Service_Directory_Channel");
  3083. }
  3084. }
  3085. /**
  3086. * The "aliases" collection of methods.
  3087. * Typical usage is:
  3088. * <code>
  3089. * $adminService = new Google_Service_Directory(...);
  3090. * $aliases = $adminService->aliases;
  3091. * </code>
  3092. */
  3093. class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource
  3094. {
  3095. /**
  3096. * Remove a alias for the user (aliases.delete)
  3097. *
  3098. * @param string $userKey Email or immutable Id of the user
  3099. * @param string $alias The alias to be removed
  3100. * @param array $optParams Optional parameters.
  3101. */
  3102. public function delete($userKey, $alias, $optParams = array())
  3103. {
  3104. $params = array('userKey' => $userKey, 'alias' => $alias);
  3105. $params = array_merge($params, $optParams);
  3106. return $this->call('delete', array($params));
  3107. }
  3108. /**
  3109. * Add a alias for the user (aliases.insert)
  3110. *
  3111. * @param string $userKey Email or immutable Id of the user
  3112. * @param Google_Alias $postBody
  3113. * @param array $optParams Optional parameters.
  3114. * @return Google_Service_Directory_Alias
  3115. */
  3116. public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array())
  3117. {
  3118. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3119. $params = array_merge($params, $optParams);
  3120. return $this->call('insert', array($params), "Google_Service_Directory_Alias");
  3121. }
  3122. /**
  3123. * List all aliases for a user (aliases.listUsersAliases)
  3124. *
  3125. * @param string $userKey Email or immutable Id of the user
  3126. * @param array $optParams Optional parameters.
  3127. *
  3128. * @opt_param string event Event on which subscription is intended (if
  3129. * subscribing)
  3130. * @return Google_Service_Directory_Aliases
  3131. */
  3132. public function listUsersAliases($userKey, $optParams = array())
  3133. {
  3134. $params = array('userKey' => $userKey);
  3135. $params = array_merge($params, $optParams);
  3136. return $this->call('list', array($params), "Google_Service_Directory_Aliases");
  3137. }
  3138. /**
  3139. * Watch for changes in user aliases list (aliases.watch)
  3140. *
  3141. * @param string $userKey Email or immutable Id of the user
  3142. * @param Google_Channel $postBody
  3143. * @param array $optParams Optional parameters.
  3144. *
  3145. * @opt_param string event Event on which subscription is intended (if
  3146. * subscribing)
  3147. * @return Google_Service_Directory_Channel
  3148. */
  3149. public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
  3150. {
  3151. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3152. $params = array_merge($params, $optParams);
  3153. return $this->call('watch', array($params), "Google_Service_Directory_Channel");
  3154. }
  3155. }
  3156. /**
  3157. * The "photos" collection of methods.
  3158. * Typical usage is:
  3159. * <code>
  3160. * $adminService = new Google_Service_Directory(...);
  3161. * $photos = $adminService->photos;
  3162. * </code>
  3163. */
  3164. class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource
  3165. {
  3166. /**
  3167. * Remove photos for the user (photos.delete)
  3168. *
  3169. * @param string $userKey Email or immutable Id of the user
  3170. * @param array $optParams Optional parameters.
  3171. */
  3172. public function delete($userKey, $optParams = array())
  3173. {
  3174. $params = array('userKey' => $userKey);
  3175. $params = array_merge($params, $optParams);
  3176. return $this->call('delete', array($params));
  3177. }
  3178. /**
  3179. * Retrieve photo of a user (photos.get)
  3180. *
  3181. * @param string $userKey Email or immutable Id of the user
  3182. * @param array $optParams Optional parameters.
  3183. * @return Google_Service_Directory_UserPhoto
  3184. */
  3185. public function get($userKey, $optParams = array())
  3186. {
  3187. $params = array('userKey' => $userKey);
  3188. $params = array_merge($params, $optParams);
  3189. return $this->call('get', array($params), "Google_Service_Directory_UserPhoto");
  3190. }
  3191. /**
  3192. * Add a photo for the user. This method supports patch semantics.
  3193. * (photos.patch)
  3194. *
  3195. * @param string $userKey Email or immutable Id of the user
  3196. * @param Google_UserPhoto $postBody
  3197. * @param array $optParams Optional parameters.
  3198. * @return Google_Service_Directory_UserPhoto
  3199. */
  3200. public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
  3201. {
  3202. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3203. $params = array_merge($params, $optParams);
  3204. return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto");
  3205. }
  3206. /**
  3207. * Add a photo for the user (photos.update)
  3208. *
  3209. * @param string $userKey Email or immutable Id of the user
  3210. * @param Google_UserPhoto $postBody
  3211. * @param array $optParams Optional parameters.
  3212. * @return Google_Service_Directory_UserPhoto
  3213. */
  3214. public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
  3215. {
  3216. $params = array('userKey' => $userKey, 'postBody' => $postBody);
  3217. $params = array_merge($params, $optParams);
  3218. return $this->call('update', array($params), "Google_Service_Directory_UserPhoto");
  3219. }
  3220. }
  3221. /**
  3222. * The "verificationCodes" collection of methods.
  3223. * Typical usage is:
  3224. * <code>
  3225. * $adminService = new Google_Service_Directory(...);
  3226. * $verificationCodes = $adminService->verificationCodes;
  3227. * </code>
  3228. */
  3229. class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource
  3230. {
  3231. /**
  3232. * Generate new backup verification codes for the user.
  3233. * (verificationCodes.generate)
  3234. *
  3235. * @param string $userKey Email or immutable Id of the user
  3236. * @param array $optParams Optional parameters.
  3237. */
  3238. public function generate($userKey, $optParams = array())
  3239. {
  3240. $params = array('userKey' => $userKey);
  3241. $params = array_merge($params, $optParams);
  3242. return $this->call('generate', array($params));
  3243. }
  3244. /**
  3245. * Invalidate the current backup verification codes for the user.
  3246. * (verificationCodes.invalidate)
  3247. *
  3248. * @param string $userKey Email or immutable Id of the user
  3249. * @param array $optParams Optional parameters.
  3250. */
  3251. public function invalidate($userKey, $optParams = array())
  3252. {
  3253. $params = array('userKey' => $userKey);
  3254. $params = array_merge($params, $optParams);
  3255. return $this->call('invalidate', array($params));
  3256. }
  3257. /**
  3258. * Returns the current set of valid backup verification codes for the specified
  3259. * user. (verificationCodes.listVerificationCodes)
  3260. *
  3261. * @param string $userKey Identifies the user in the API request. The value can
  3262. * be the user's primary email address, alias email address, or unique user ID.
  3263. * @param array $optParams Optional parameters.
  3264. * @return Google_Service_Directory_VerificationCodes
  3265. */
  3266. public function listVerificationCodes($userKey, $optParams = array())
  3267. {
  3268. $params = array('userKey' => $userKey);
  3269. $params = array_merge($params, $optParams);
  3270. return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes");
  3271. }
  3272. }
  3273. class Google_Service_Directory_Alias extends Google_Model
  3274. {
  3275. protected $internal_gapi_mappings = array(
  3276. );
  3277. public $alias;
  3278. public $etag;
  3279. public $id;
  3280. public $kind;
  3281. public $primaryEmail;
  3282. public function setAlias($alias)
  3283. {
  3284. $this->alias = $alias;
  3285. }
  3286. public function getAlias()
  3287. {
  3288. return $this->alias;
  3289. }
  3290. public function setEtag($etag)
  3291. {
  3292. $this->etag = $etag;
  3293. }
  3294. public function getEtag()
  3295. {
  3296. return $this->etag;
  3297. }
  3298. public function setId($id)
  3299. {
  3300. $this->id = $id;
  3301. }
  3302. public function getId()
  3303. {
  3304. return $this->id;
  3305. }
  3306. public function setKind($kind)
  3307. {
  3308. $this->kind = $kind;
  3309. }
  3310. public function getKind()
  3311. {
  3312. return $this->kind;
  3313. }
  3314. public function setPrimaryEmail($primaryEmail)
  3315. {
  3316. $this->primaryEmail = $primaryEmail;
  3317. }
  3318. public function getPrimaryEmail()
  3319. {
  3320. return $this->primaryEmail;
  3321. }
  3322. }
  3323. class Google_Service_Directory_Aliases extends Google_Collection
  3324. {
  3325. protected $collection_key = 'aliases';
  3326. protected $internal_gapi_mappings = array(
  3327. );
  3328. protected $aliasesType = 'Google_Service_Directory_Alias';
  3329. protected $aliasesDataType = 'array';
  3330. public $etag;
  3331. public $kind;
  3332. public function setAliases($aliases)
  3333. {
  3334. $this->aliases = $aliases;
  3335. }
  3336. public function getAliases()
  3337. {
  3338. return $this->aliases;
  3339. }
  3340. public function setEtag($etag)
  3341. {
  3342. $this->etag = $etag;
  3343. }
  3344. public function getEtag()
  3345. {
  3346. return $this->etag;
  3347. }
  3348. public function setKind($kind)
  3349. {
  3350. $this->kind = $kind;
  3351. }
  3352. public function getKind()
  3353. {
  3354. return $this->kind;
  3355. }
  3356. }
  3357. class Google_Service_Directory_Asp extends Google_Model
  3358. {
  3359. protected $internal_gapi_mappings = array(
  3360. );
  3361. public $codeId;
  3362. public $creationTime;
  3363. public $etag;
  3364. public $kind;
  3365. public $lastTimeUsed;
  3366. public $name;
  3367. public $userKey;
  3368. public function setCodeId($codeId)
  3369. {
  3370. $this->codeId = $codeId;
  3371. }
  3372. public function getCodeId()
  3373. {
  3374. return $this->codeId;
  3375. }
  3376. public function setCreationTime($creationTime)
  3377. {
  3378. $this->creationTime = $creationTime;
  3379. }
  3380. public function getCreationTime()
  3381. {
  3382. return $this->creationTime;
  3383. }
  3384. public function setEtag($etag)
  3385. {
  3386. $this->etag = $etag;
  3387. }
  3388. public function getEtag()
  3389. {
  3390. return $this->etag;
  3391. }
  3392. public function setKind($kind)
  3393. {
  3394. $this->kind = $kind;
  3395. }
  3396. public function getKind()
  3397. {
  3398. return $this->kind;
  3399. }
  3400. public function setLastTimeUsed($lastTimeUsed)
  3401. {
  3402. $this->lastTimeUsed = $lastTimeUsed;
  3403. }
  3404. public function getLastTimeUsed()
  3405. {
  3406. return $this->lastTimeUsed;
  3407. }
  3408. public function setName($name)
  3409. {
  3410. $this->name = $name;
  3411. }
  3412. public function getName()
  3413. {
  3414. return $this->name;
  3415. }
  3416. public function setUserKey($userKey)
  3417. {
  3418. $this->userKey = $userKey;
  3419. }
  3420. public function getUserKey()
  3421. {
  3422. return $this->userKey;
  3423. }
  3424. }
  3425. class Google_Service_Directory_Asps extends Google_Collection
  3426. {
  3427. protected $collection_key = 'items';
  3428. protected $internal_gapi_mappings = array(
  3429. );
  3430. public $etag;
  3431. protected $itemsType = 'Google_Service_Directory_Asp';
  3432. protected $itemsDataType = 'array';
  3433. public $kind;
  3434. public function setEtag($etag)
  3435. {
  3436. $this->etag = $etag;
  3437. }
  3438. public function getEtag()
  3439. {
  3440. return $this->etag;
  3441. }
  3442. public function setItems($items)
  3443. {
  3444. $this->items = $items;
  3445. }
  3446. public function getItems()
  3447. {
  3448. return $this->items;
  3449. }
  3450. public function setKind($kind)
  3451. {
  3452. $this->kind = $kind;
  3453. }
  3454. public function getKind()
  3455. {
  3456. return $this->kind;
  3457. }
  3458. }
  3459. class Google_Service_Directory_Channel extends Google_Model
  3460. {
  3461. protected $internal_gapi_mappings = array(
  3462. );
  3463. public $address;
  3464. public $expiration;
  3465. public $id;
  3466. public $kind;
  3467. public $params;
  3468. public $payload;
  3469. public $resourceId;
  3470. public $resourceUri;
  3471. public $token;
  3472. public $type;
  3473. public function setAddress($address)
  3474. {
  3475. $this->address = $address;
  3476. }
  3477. public function getAddress()
  3478. {
  3479. return $this->address;
  3480. }
  3481. public function setExpiration($expiration)
  3482. {
  3483. $this->expiration = $expiration;
  3484. }
  3485. public function getExpiration()
  3486. {
  3487. return $this->expiration;
  3488. }
  3489. public function setId($id)
  3490. {
  3491. $this->id = $id;
  3492. }
  3493. public function getId()
  3494. {
  3495. return $this->id;
  3496. }
  3497. public function setKind($kind)
  3498. {
  3499. $this->kind = $kind;
  3500. }
  3501. public function getKind()
  3502. {
  3503. return $this->kind;
  3504. }
  3505. public function setParams($params)
  3506. {
  3507. $this->params = $params;
  3508. }
  3509. public function getParams()
  3510. {
  3511. return $this->params;
  3512. }
  3513. public function setPayload($payload)
  3514. {
  3515. $this->payload = $payload;
  3516. }
  3517. public function getPayload()
  3518. {
  3519. return $this->payload;
  3520. }
  3521. public function setResourceId($resourceId)
  3522. {
  3523. $this->resourceId = $resourceId;
  3524. }
  3525. public function getResourceId()
  3526. {
  3527. return $this->resourceId;
  3528. }
  3529. public function setResourceUri($resourceUri)
  3530. {
  3531. $this->resourceUri = $resourceUri;
  3532. }
  3533. public function getResourceUri()
  3534. {
  3535. return $this->resourceUri;
  3536. }
  3537. public function setToken($token)
  3538. {
  3539. $this->token = $token;
  3540. }
  3541. public function getToken()
  3542. {
  3543. return $this->token;
  3544. }
  3545. public function setType($type)
  3546. {
  3547. $this->type = $type;
  3548. }
  3549. public function getType()
  3550. {
  3551. return $this->type;
  3552. }
  3553. }
  3554. class Google_Service_Directory_ChannelParams extends Google_Model
  3555. {
  3556. }
  3557. class Google_Service_Directory_ChromeOsDevice extends Google_Collection
  3558. {
  3559. protected $collection_key = 'recentUsers';
  3560. protected $internal_gapi_mappings = array(
  3561. );
  3562. protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges';
  3563. protected $activeTimeRangesDataType = 'array';
  3564. public $annotatedAssetId;
  3565. public $annotatedLocation;
  3566. public $annotatedUser;
  3567. public $bootMode;
  3568. public $deviceId;
  3569. public $etag;
  3570. public $ethernetMacAddress;
  3571. public $firmwareVersion;
  3572. public $kind;
  3573. public $lastEnrollmentTime;
  3574. public $lastSync;
  3575. public $macAddress;
  3576. public $meid;
  3577. public $model;
  3578. public $notes;
  3579. public $orderNumber;
  3580. public $orgUnitPath;
  3581. public $osVersion;
  3582. public $platformVersion;
  3583. protected $recentUsersType = 'Google_Service_Directory_ChromeOsDeviceRecentUsers';
  3584. protected $recentUsersDataType = 'array';
  3585. public $serialNumber;
  3586. public $status;
  3587. public $supportEndDate;
  3588. public $willAutoRenew;
  3589. public function setActiveTimeRanges($activeTimeRanges)
  3590. {
  3591. $this->activeTimeRanges = $activeTimeRanges;
  3592. }
  3593. public function getActiveTimeRanges()
  3594. {
  3595. return $this->activeTimeRanges;
  3596. }
  3597. public function setAnnotatedAssetId($annotatedAssetId)
  3598. {
  3599. $this->annotatedAssetId = $annotatedAssetId;
  3600. }
  3601. public function getAnnotatedAssetId()
  3602. {
  3603. return $this->annotatedAssetId;
  3604. }
  3605. public function setAnnotatedLocation($annotatedLocation)
  3606. {
  3607. $this->annotatedLocation = $annotatedLocation;
  3608. }
  3609. public function getAnnotatedLocation()
  3610. {
  3611. return $this->annotatedLocation;
  3612. }
  3613. public function setAnnotatedUser($annotatedUser)
  3614. {
  3615. $this->annotatedUser = $annotatedUser;
  3616. }
  3617. public function getAnnotatedUser()
  3618. {
  3619. return $this->annotatedUser;
  3620. }
  3621. public function setBootMode($bootMode)
  3622. {
  3623. $this->bootMode = $bootMode;
  3624. }
  3625. public function getBootMode()
  3626. {
  3627. return $this->bootMode;
  3628. }
  3629. public function setDeviceId($deviceId)
  3630. {
  3631. $this->deviceId = $deviceId;
  3632. }
  3633. public function getDeviceId()
  3634. {
  3635. return $this->deviceId;
  3636. }
  3637. public function setEtag($etag)
  3638. {
  3639. $this->etag = $etag;
  3640. }
  3641. public function getEtag()
  3642. {
  3643. return $this->etag;
  3644. }
  3645. public function setEthernetMacAddress($ethernetMacAddress)
  3646. {
  3647. $this->ethernetMacAddress = $ethernetMacAddress;
  3648. }
  3649. public function getEthernetMacAddress()
  3650. {
  3651. return $this->ethernetMacAddress;
  3652. }
  3653. public function setFirmwareVersion($firmwareVersion)
  3654. {
  3655. $this->firmwareVersion = $firmwareVersion;
  3656. }
  3657. public function getFirmwareVersion()
  3658. {
  3659. return $this->firmwareVersion;
  3660. }
  3661. public function setKind($kind)
  3662. {
  3663. $this->kind = $kind;
  3664. }
  3665. public function getKind()
  3666. {
  3667. return $this->kind;
  3668. }
  3669. public function setLastEnrollmentTime($lastEnrollmentTime)
  3670. {
  3671. $this->lastEnrollmentTime = $lastEnrollmentTime;
  3672. }
  3673. public function getLastEnrollmentTime()
  3674. {
  3675. return $this->lastEnrollmentTime;
  3676. }
  3677. public function setLastSync($lastSync)
  3678. {
  3679. $this->lastSync = $lastSync;
  3680. }
  3681. public function getLastSync()
  3682. {
  3683. return $this->lastSync;
  3684. }
  3685. public function setMacAddress($macAddress)
  3686. {
  3687. $this->macAddress = $macAddress;
  3688. }
  3689. public function getMacAddress()
  3690. {
  3691. return $this->macAddress;
  3692. }
  3693. public function setMeid($meid)
  3694. {
  3695. $this->meid = $meid;
  3696. }
  3697. public function getMeid()
  3698. {
  3699. return $this->meid;
  3700. }
  3701. public function setModel($model)
  3702. {
  3703. $this->model = $model;
  3704. }
  3705. public function getModel()
  3706. {
  3707. return $this->model;
  3708. }
  3709. public function setNotes($notes)
  3710. {
  3711. $this->notes = $notes;
  3712. }
  3713. public function getNotes()
  3714. {
  3715. return $this->notes;
  3716. }
  3717. public function setOrderNumber($orderNumber)
  3718. {
  3719. $this->orderNumber = $orderNumber;
  3720. }
  3721. public function getOrderNumber()
  3722. {
  3723. return $this->orderNumber;
  3724. }
  3725. public function setOrgUnitPath($orgUnitPath)
  3726. {
  3727. $this->orgUnitPath = $orgUnitPath;
  3728. }
  3729. public function getOrgUnitPath()
  3730. {
  3731. return $this->orgUnitPath;
  3732. }
  3733. public function setOsVersion($osVersion)
  3734. {
  3735. $this->osVersion = $osVersion;
  3736. }
  3737. public function getOsVersion()
  3738. {
  3739. return $this->osVersion;
  3740. }
  3741. public function setPlatformVersion($platformVersion)
  3742. {
  3743. $this->platformVersion = $platformVersion;
  3744. }
  3745. public function getPlatformVersion()
  3746. {
  3747. return $this->platformVersion;
  3748. }
  3749. public function setRecentUsers($recentUsers)
  3750. {
  3751. $this->recentUsers = $recentUsers;
  3752. }
  3753. public function getRecentUsers()
  3754. {
  3755. return $this->recentUsers;
  3756. }
  3757. public function setSerialNumber($serialNumber)
  3758. {
  3759. $this->serialNumber = $serialNumber;
  3760. }
  3761. public function getSerialNumber()
  3762. {
  3763. return $this->serialNumber;
  3764. }
  3765. public function setStatus($status)
  3766. {
  3767. $this->status = $status;
  3768. }
  3769. public function getStatus()
  3770. {
  3771. return $this->status;
  3772. }
  3773. public function setSupportEndDate($supportEndDate)
  3774. {
  3775. $this->supportEndDate = $supportEndDate;
  3776. }
  3777. public function getSupportEndDate()
  3778. {
  3779. return $this->supportEndDate;
  3780. }
  3781. public function setWillAutoRenew($willAutoRenew)
  3782. {
  3783. $this->willAutoRenew = $willAutoRenew;
  3784. }
  3785. public function getWillAutoRenew()
  3786. {
  3787. return $this->willAutoRenew;
  3788. }
  3789. }
  3790. class Google_Service_Directory_ChromeOsDeviceActiveTimeRanges extends Google_Model
  3791. {
  3792. protected $internal_gapi_mappings = array(
  3793. );
  3794. public $activeTime;
  3795. public $date;
  3796. public function setActiveTime($activeTime)
  3797. {
  3798. $this->activeTime = $activeTime;
  3799. }
  3800. public function getActiveTime()
  3801. {
  3802. return $this->activeTime;
  3803. }
  3804. public function setDate($date)
  3805. {
  3806. $this->date = $date;
  3807. }
  3808. public function getDate()
  3809. {
  3810. return $this->date;
  3811. }
  3812. }
  3813. class Google_Service_Directory_ChromeOsDeviceRecentUsers extends Google_Model
  3814. {
  3815. protected $internal_gapi_mappings = array(
  3816. );
  3817. public $email;
  3818. public $type;
  3819. public function setEmail($email)
  3820. {
  3821. $this->email = $email;
  3822. }
  3823. public function getEmail()
  3824. {
  3825. return $this->email;
  3826. }
  3827. public function setType($type)
  3828. {
  3829. $this->type = $type;
  3830. }
  3831. public function getType()
  3832. {
  3833. return $this->type;
  3834. }
  3835. }
  3836. class Google_Service_Directory_ChromeOsDevices extends Google_Collection
  3837. {
  3838. protected $collection_key = 'chromeosdevices';
  3839. protected $internal_gapi_mappings = array(
  3840. );
  3841. protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
  3842. protected $chromeosdevicesDataType = 'array';
  3843. public $etag;
  3844. public $kind;
  3845. public $nextPageToken;
  3846. public function setChromeosdevices($chromeosdevices)
  3847. {
  3848. $this->chromeosdevices = $chromeosdevices;
  3849. }
  3850. public function getChromeosdevices()
  3851. {
  3852. return $this->chromeosdevices;
  3853. }
  3854. public function setEtag($etag)
  3855. {
  3856. $this->etag = $etag;
  3857. }
  3858. public function getEtag()
  3859. {
  3860. return $this->etag;
  3861. }
  3862. public function setKind($kind)
  3863. {
  3864. $this->kind = $kind;
  3865. }
  3866. public function getKind()
  3867. {
  3868. return $this->kind;
  3869. }
  3870. public function setNextPageToken($nextPageToken)
  3871. {
  3872. $this->nextPageToken = $nextPageToken;
  3873. }
  3874. public function getNextPageToken()
  3875. {
  3876. return $this->nextPageToken;
  3877. }
  3878. }
  3879. class Google_Service_Directory_Customer extends Google_Model
  3880. {
  3881. protected $internal_gapi_mappings = array(
  3882. );
  3883. public $alternateEmail;
  3884. public $customerCreationTime;
  3885. public $customerDomain;
  3886. public $etag;
  3887. public $id;
  3888. public $kind;
  3889. public $language;
  3890. public $phoneNumber;
  3891. protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress';
  3892. protected $postalAddressDataType = '';
  3893. public function setAlternateEmail($alternateEmail)
  3894. {
  3895. $this->alternateEmail = $alternateEmail;
  3896. }
  3897. public function getAlternateEmail()
  3898. {
  3899. return $this->alternateEmail;
  3900. }
  3901. public function setCustomerCreationTime($customerCreationTime)
  3902. {
  3903. $this->customerCreationTime = $customerCreationTime;
  3904. }
  3905. public function getCustomerCreationTime()
  3906. {
  3907. return $this->customerCreationTime;
  3908. }
  3909. public function setCustomerDomain($customerDomain)
  3910. {
  3911. $this->customerDomain = $customerDomain;
  3912. }
  3913. public function getCustomerDomain()
  3914. {
  3915. return $this->customerDomain;
  3916. }
  3917. public function setEtag($etag)
  3918. {
  3919. $this->etag = $etag;
  3920. }
  3921. public function getEtag()
  3922. {
  3923. return $this->etag;
  3924. }
  3925. public function setId($id)
  3926. {
  3927. $this->id = $id;
  3928. }
  3929. public function getId()
  3930. {
  3931. return $this->id;
  3932. }
  3933. public function setKind($kind)
  3934. {
  3935. $this->kind = $kind;
  3936. }
  3937. public function getKind()
  3938. {
  3939. return $this->kind;
  3940. }
  3941. public function setLanguage($language)
  3942. {
  3943. $this->language = $language;
  3944. }
  3945. public function getLanguage()
  3946. {
  3947. return $this->language;
  3948. }
  3949. public function setPhoneNumber($phoneNumber)
  3950. {
  3951. $this->phoneNumber = $phoneNumber;
  3952. }
  3953. public function getPhoneNumber()
  3954. {
  3955. return $this->phoneNumber;
  3956. }
  3957. public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress)
  3958. {
  3959. $this->postalAddress = $postalAddress;
  3960. }
  3961. public function getPostalAddress()
  3962. {
  3963. return $this->postalAddress;
  3964. }
  3965. }
  3966. class Google_Service_Directory_CustomerPostalAddress extends Google_Model
  3967. {
  3968. protected $internal_gapi_mappings = array(
  3969. );
  3970. public $addressLine1;
  3971. public $addressLine2;
  3972. public $addressLine3;
  3973. public $contactName;
  3974. public $countryCode;
  3975. public $locality;
  3976. public $organizationName;
  3977. public $postalCode;
  3978. public $region;
  3979. public function setAddressLine1($addressLine1)
  3980. {
  3981. $this->addressLine1 = $addressLine1;
  3982. }
  3983. public function getAddressLine1()
  3984. {
  3985. return $this->addressLine1;
  3986. }
  3987. public function setAddressLine2($addressLine2)
  3988. {
  3989. $this->addressLine2 = $addressLine2;
  3990. }
  3991. public function getAddressLine2()
  3992. {
  3993. return $this->addressLine2;
  3994. }
  3995. public function setAddressLine3($addressLine3)
  3996. {
  3997. $this->addressLine3 = $addressLine3;
  3998. }
  3999. public function getAddressLine3()
  4000. {
  4001. return $this->addressLine3;
  4002. }
  4003. public function setContactName($contactName)
  4004. {
  4005. $this->contactName = $contactName;
  4006. }
  4007. public function getContactName()
  4008. {
  4009. return $this->contactName;
  4010. }
  4011. public function setCountryCode($countryCode)
  4012. {
  4013. $this->countryCode = $countryCode;
  4014. }
  4015. public function getCountryCode()
  4016. {
  4017. return $this->countryCode;
  4018. }
  4019. public function setLocality($locality)
  4020. {
  4021. $this->locality = $locality;
  4022. }
  4023. public function getLocality()
  4024. {
  4025. return $this->locality;
  4026. }
  4027. public function setOrganizationName($organizationName)
  4028. {
  4029. $this->organizationName = $organizationName;
  4030. }
  4031. public function getOrganizationName()
  4032. {
  4033. return $this->organizationName;
  4034. }
  4035. public function setPostalCode($postalCode)
  4036. {
  4037. $this->postalCode = $postalCode;
  4038. }
  4039. public function getPostalCode()
  4040. {
  4041. return $this->postalCode;
  4042. }
  4043. public function setRegion($region)
  4044. {
  4045. $this->region = $region;
  4046. }
  4047. public function getRegion()
  4048. {
  4049. return $this->region;
  4050. }
  4051. }
  4052. class Google_Service_Directory_DomainAlias extends Google_Model
  4053. {
  4054. protected $internal_gapi_mappings = array(
  4055. );
  4056. public $creationTime;
  4057. public $domainAliasName;
  4058. public $etag;
  4059. public $kind;
  4060. public $parentDomainName;
  4061. public $verified;
  4062. public function setCreationTime($creationTime)
  4063. {
  4064. $this->creationTime = $creationTime;
  4065. }
  4066. public function getCreationTime()
  4067. {
  4068. return $this->creationTime;
  4069. }
  4070. public function setDomainAliasName($domainAliasName)
  4071. {
  4072. $this->domainAliasName = $domainAliasName;
  4073. }
  4074. public function getDomainAliasName()
  4075. {
  4076. return $this->domainAliasName;
  4077. }
  4078. public function setEtag($etag)
  4079. {
  4080. $this->etag = $etag;
  4081. }
  4082. public function getEtag()
  4083. {
  4084. return $this->etag;
  4085. }
  4086. public function setKind($kind)
  4087. {
  4088. $this->kind = $kind;
  4089. }
  4090. public function getKind()
  4091. {
  4092. return $this->kind;
  4093. }
  4094. public function setParentDomainName($parentDomainName)
  4095. {
  4096. $this->parentDomainName = $parentDomainName;
  4097. }
  4098. public function getParentDomainName()
  4099. {
  4100. return $this->parentDomainName;
  4101. }
  4102. public function setVerified($verified)
  4103. {
  4104. $this->verified = $verified;
  4105. }
  4106. public function getVerified()
  4107. {
  4108. return $this->verified;
  4109. }
  4110. }
  4111. class Google_Service_Directory_DomainAliases extends Google_Collection
  4112. {
  4113. protected $collection_key = 'domainAliases';
  4114. protected $internal_gapi_mappings = array(
  4115. );
  4116. protected $domainAliasesType = 'Google_Service_Directory_DomainAlias';
  4117. protected $domainAliasesDataType = 'array';
  4118. public $etag;
  4119. public $kind;
  4120. public function setDomainAliases($domainAliases)
  4121. {
  4122. $this->domainAliases = $domainAliases;
  4123. }
  4124. public function getDomainAliases()
  4125. {
  4126. return $this->domainAliases;
  4127. }
  4128. public function setEtag($etag)
  4129. {
  4130. $this->etag = $etag;
  4131. }
  4132. public function getEtag()
  4133. {
  4134. return $this->etag;
  4135. }
  4136. public function setKind($kind)
  4137. {
  4138. $this->kind = $kind;
  4139. }
  4140. public function getKind()
  4141. {
  4142. return $this->kind;
  4143. }
  4144. }
  4145. class Google_Service_Directory_Domains extends Google_Collection
  4146. {
  4147. protected $collection_key = 'domainAliases';
  4148. protected $internal_gapi_mappings = array(
  4149. );
  4150. public $creationTime;
  4151. protected $domainAliasesType = 'Google_Service_Directory_DomainAlias';
  4152. protected $domainAliasesDataType = 'array';
  4153. public $domainName;
  4154. public $etag;
  4155. public $isPrimary;
  4156. public $kind;
  4157. public $verified;
  4158. public function setCreationTime($creationTime)
  4159. {
  4160. $this->creationTime = $creationTime;
  4161. }
  4162. public function getCreationTime()
  4163. {
  4164. return $this->creationTime;
  4165. }
  4166. public function setDomainAliases($domainAliases)
  4167. {
  4168. $this->domainAliases = $domainAliases;
  4169. }
  4170. public function getDomainAliases()
  4171. {
  4172. return $this->domainAliases;
  4173. }
  4174. public function setDomainName($domainName)
  4175. {
  4176. $this->domainName = $domainName;
  4177. }
  4178. public function getDomainName()
  4179. {
  4180. return $this->domainName;
  4181. }
  4182. public function setEtag($etag)
  4183. {
  4184. $this->etag = $etag;
  4185. }
  4186. public function getEtag()
  4187. {
  4188. return $this->etag;
  4189. }
  4190. public function setIsPrimary($isPrimary)
  4191. {
  4192. $this->isPrimary = $isPrimary;
  4193. }
  4194. public function getIsPrimary()
  4195. {
  4196. return $this->isPrimary;
  4197. }
  4198. public function setKind($kind)
  4199. {
  4200. $this->kind = $kind;
  4201. }
  4202. public function getKind()
  4203. {
  4204. return $this->kind;
  4205. }
  4206. public function setVerified($verified)
  4207. {
  4208. $this->verified = $verified;
  4209. }
  4210. public function getVerified()
  4211. {
  4212. return $this->verified;
  4213. }
  4214. }
  4215. class Google_Service_Directory_Domains2 extends Google_Collection
  4216. {
  4217. protected $collection_key = 'domains';
  4218. protected $internal_gapi_mappings = array(
  4219. );
  4220. protected $domainsType = 'Google_Service_Directory_Domains';
  4221. protected $domainsDataType = 'array';
  4222. public $etag;
  4223. public $kind;
  4224. public function setDomains($domains)
  4225. {
  4226. $this->domains = $domains;
  4227. }
  4228. public function getDomains()
  4229. {
  4230. return $this->domains;
  4231. }
  4232. public function setEtag($etag)
  4233. {
  4234. $this->etag = $etag;
  4235. }
  4236. public function getEtag()
  4237. {
  4238. return $this->etag;
  4239. }
  4240. public function setKind($kind)
  4241. {
  4242. $this->kind = $kind;
  4243. }
  4244. public function getKind()
  4245. {
  4246. return $this->kind;
  4247. }
  4248. }
  4249. class Google_Service_Directory_Group extends Google_Collection
  4250. {
  4251. protected $collection_key = 'nonEditableAliases';
  4252. protected $internal_gapi_mappings = array(
  4253. );
  4254. public $adminCreated;
  4255. public $aliases;
  4256. public $description;
  4257. public $directMembersCount;
  4258. public $email;
  4259. public $etag;
  4260. public $id;
  4261. public $kind;
  4262. public $name;
  4263. public $nonEditableAliases;
  4264. public function setAdminCreated($adminCreated)
  4265. {
  4266. $this->adminCreated = $adminCreated;
  4267. }
  4268. public function getAdminCreated()
  4269. {
  4270. return $this->adminCreated;
  4271. }
  4272. public function setAliases($aliases)
  4273. {
  4274. $this->aliases = $aliases;
  4275. }
  4276. public function getAliases()
  4277. {
  4278. return $this->aliases;
  4279. }
  4280. public function setDescription($description)
  4281. {
  4282. $this->description = $description;
  4283. }
  4284. public function getDescription()
  4285. {
  4286. return $this->description;
  4287. }
  4288. public function setDirectMembersCount($directMembersCount)
  4289. {
  4290. $this->directMembersCount = $directMembersCount;
  4291. }
  4292. public function getDirectMembersCount()
  4293. {
  4294. return $this->directMembersCount;
  4295. }
  4296. public function setEmail($email)
  4297. {
  4298. $this->email = $email;
  4299. }
  4300. public function getEmail()
  4301. {
  4302. return $this->email;
  4303. }
  4304. public function setEtag($etag)
  4305. {
  4306. $this->etag = $etag;
  4307. }
  4308. public function getEtag()
  4309. {
  4310. return $this->etag;
  4311. }
  4312. public function setId($id)
  4313. {
  4314. $this->id = $id;
  4315. }
  4316. public function getId()
  4317. {
  4318. return $this->id;
  4319. }
  4320. public function setKind($kind)
  4321. {
  4322. $this->kind = $kind;
  4323. }
  4324. public function getKind()
  4325. {
  4326. return $this->kind;
  4327. }
  4328. public function setName($name)
  4329. {
  4330. $this->name = $name;
  4331. }
  4332. public function getName()
  4333. {
  4334. return $this->name;
  4335. }
  4336. public function setNonEditableAliases($nonEditableAliases)
  4337. {
  4338. $this->nonEditableAliases = $nonEditableAliases;
  4339. }
  4340. public function getNonEditableAliases()
  4341. {
  4342. return $this->nonEditableAliases;
  4343. }
  4344. }
  4345. class Google_Service_Directory_Groups extends Google_Collection
  4346. {
  4347. protected $collection_key = 'groups';
  4348. protected $internal_gapi_mappings = array(
  4349. );
  4350. public $etag;
  4351. protected $groupsType = 'Google_Service_Directory_Group';
  4352. protected $groupsDataType = 'array';
  4353. public $kind;
  4354. public $nextPageToken;
  4355. public function setEtag($etag)
  4356. {
  4357. $this->etag = $etag;
  4358. }
  4359. public function getEtag()
  4360. {
  4361. return $this->etag;
  4362. }
  4363. public function setGroups($groups)
  4364. {
  4365. $this->groups = $groups;
  4366. }
  4367. public function getGroups()
  4368. {
  4369. return $this->groups;
  4370. }
  4371. public function setKind($kind)
  4372. {
  4373. $this->kind = $kind;
  4374. }
  4375. public function getKind()
  4376. {
  4377. return $this->kind;
  4378. }
  4379. public function setNextPageToken($nextPageToken)
  4380. {
  4381. $this->nextPageToken = $nextPageToken;
  4382. }
  4383. public function getNextPageToken()
  4384. {
  4385. return $this->nextPageToken;
  4386. }
  4387. }
  4388. class Google_Service_Directory_Member extends Google_Model
  4389. {
  4390. protected $internal_gapi_mappings = array(
  4391. );
  4392. public $email;
  4393. public $etag;
  4394. public $id;
  4395. public $kind;
  4396. public $role;
  4397. public $type;
  4398. public function setEmail($email)
  4399. {
  4400. $this->email = $email;
  4401. }
  4402. public function getEmail()
  4403. {
  4404. return $this->email;
  4405. }
  4406. public function setEtag($etag)
  4407. {
  4408. $this->etag = $etag;
  4409. }
  4410. public function getEtag()
  4411. {
  4412. return $this->etag;
  4413. }
  4414. public function setId($id)
  4415. {
  4416. $this->id = $id;
  4417. }
  4418. public function getId()
  4419. {
  4420. return $this->id;
  4421. }
  4422. public function setKind($kind)
  4423. {
  4424. $this->kind = $kind;
  4425. }
  4426. public function getKind()
  4427. {
  4428. return $this->kind;
  4429. }
  4430. public function setRole($role)
  4431. {
  4432. $this->role = $role;
  4433. }
  4434. public function getRole()
  4435. {
  4436. return $this->role;
  4437. }
  4438. public function setType($type)
  4439. {
  4440. $this->type = $type;
  4441. }
  4442. public function getType()
  4443. {
  4444. return $this->type;
  4445. }
  4446. }
  4447. class Google_Service_Directory_Members extends Google_Collection
  4448. {
  4449. protected $collection_key = 'members';
  4450. protected $internal_gapi_mappings = array(
  4451. );
  4452. public $etag;
  4453. public $kind;
  4454. protected $membersType = 'Google_Service_Directory_Member';
  4455. protected $membersDataType = 'array';
  4456. public $nextPageToken;
  4457. public function setEtag($etag)
  4458. {
  4459. $this->etag = $etag;
  4460. }
  4461. public function getEtag()
  4462. {
  4463. return $this->etag;
  4464. }
  4465. public function setKind($kind)
  4466. {
  4467. $this->kind = $kind;
  4468. }
  4469. public function getKind()
  4470. {
  4471. return $this->kind;
  4472. }
  4473. public function setMembers($members)
  4474. {
  4475. $this->members = $members;
  4476. }
  4477. public function getMembers()
  4478. {
  4479. return $this->members;
  4480. }
  4481. public function setNextPageToken($nextPageToken)
  4482. {
  4483. $this->nextPageToken = $nextPageToken;
  4484. }
  4485. public function getNextPageToken()
  4486. {
  4487. return $this->nextPageToken;
  4488. }
  4489. }
  4490. class Google_Service_Directory_MobileDevice extends Google_Collection
  4491. {
  4492. protected $collection_key = 'otherAccountsInfo';
  4493. protected $internal_gapi_mappings = array(
  4494. );
  4495. public $adbStatus;
  4496. protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
  4497. protected $applicationsDataType = 'array';
  4498. public $basebandVersion;
  4499. public $buildNumber;
  4500. public $defaultLanguage;
  4501. public $developerOptionsStatus;
  4502. public $deviceCompromisedStatus;
  4503. public $deviceId;
  4504. public $email;
  4505. public $etag;
  4506. public $firstSync;
  4507. public $hardwareId;
  4508. public $imei;
  4509. public $kernelVersion;
  4510. public $kind;
  4511. public $lastSync;
  4512. public $managedAccountIsOnOwnerProfile;
  4513. public $meid;
  4514. public $model;
  4515. public $name;
  4516. public $networkOperator;
  4517. public $os;
  4518. public $otherAccountsInfo;
  4519. public $resourceId;
  4520. public $serialNumber;
  4521. public $status;
  4522. public $supportsWorkProfile;
  4523. public $type;
  4524. public $unknownSourcesStatus;
  4525. public $userAgent;
  4526. public $wifiMacAddress;
  4527. public function setAdbStatus($adbStatus)
  4528. {
  4529. $this->adbStatus = $adbStatus;
  4530. }
  4531. public function getAdbStatus()
  4532. {
  4533. return $this->adbStatus;
  4534. }
  4535. public function setApplications($applications)
  4536. {
  4537. $this->applications = $applications;
  4538. }
  4539. public function getApplications()
  4540. {
  4541. return $this->applications;
  4542. }
  4543. public function setBasebandVersion($basebandVersion)
  4544. {
  4545. $this->basebandVersion = $basebandVersion;
  4546. }
  4547. public function getBasebandVersion()
  4548. {
  4549. return $this->basebandVersion;
  4550. }
  4551. public function setBuildNumber($buildNumber)
  4552. {
  4553. $this->buildNumber = $buildNumber;
  4554. }
  4555. public function getBuildNumber()
  4556. {
  4557. return $this->buildNumber;
  4558. }
  4559. public function setDefaultLanguage($defaultLanguage)
  4560. {
  4561. $this->defaultLanguage = $defaultLanguage;
  4562. }
  4563. public function getDefaultLanguage()
  4564. {
  4565. return $this->defaultLanguage;
  4566. }
  4567. public function setDeveloperOptionsStatus($developerOptionsStatus)
  4568. {
  4569. $this->developerOptionsStatus = $developerOptionsStatus;
  4570. }
  4571. public function getDeveloperOptionsStatus()
  4572. {
  4573. return $this->developerOptionsStatus;
  4574. }
  4575. public function setDeviceCompromisedStatus($deviceCompromisedStatus)
  4576. {
  4577. $this->deviceCompromisedStatus = $deviceCompromisedStatus;
  4578. }
  4579. public function getDeviceCompromisedStatus()
  4580. {
  4581. return $this->deviceCompromisedStatus;
  4582. }
  4583. public function setDeviceId($deviceId)
  4584. {
  4585. $this->deviceId = $deviceId;
  4586. }
  4587. public function getDeviceId()
  4588. {
  4589. return $this->deviceId;
  4590. }
  4591. public function setEmail($email)
  4592. {
  4593. $this->email = $email;
  4594. }
  4595. public function getEmail()
  4596. {
  4597. return $this->email;
  4598. }
  4599. public function setEtag($etag)
  4600. {
  4601. $this->etag = $etag;
  4602. }
  4603. public function getEtag()
  4604. {
  4605. return $this->etag;
  4606. }
  4607. public function setFirstSync($firstSync)
  4608. {
  4609. $this->firstSync = $firstSync;
  4610. }
  4611. public function getFirstSync()
  4612. {
  4613. return $this->firstSync;
  4614. }
  4615. public function setHardwareId($hardwareId)
  4616. {
  4617. $this->hardwareId = $hardwareId;
  4618. }
  4619. public function getHardwareId()
  4620. {
  4621. return $this->hardwareId;
  4622. }
  4623. public function setImei($imei)
  4624. {
  4625. $this->imei = $imei;
  4626. }
  4627. public function getImei()
  4628. {
  4629. return $this->imei;
  4630. }
  4631. public function setKernelVersion($kernelVersion)
  4632. {
  4633. $this->kernelVersion = $kernelVersion;
  4634. }
  4635. public function getKernelVersion()
  4636. {
  4637. return $this->kernelVersion;
  4638. }
  4639. public function setKind($kind)
  4640. {
  4641. $this->kind = $kind;
  4642. }
  4643. public function getKind()
  4644. {
  4645. return $this->kind;
  4646. }
  4647. public function setLastSync($lastSync)
  4648. {
  4649. $this->lastSync = $lastSync;
  4650. }
  4651. public function getLastSync()
  4652. {
  4653. return $this->lastSync;
  4654. }
  4655. public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile)
  4656. {
  4657. $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile;
  4658. }
  4659. public function getManagedAccountIsOnOwnerProfile()
  4660. {
  4661. return $this->managedAccountIsOnOwnerProfile;
  4662. }
  4663. public function setMeid($meid)
  4664. {
  4665. $this->meid = $meid;
  4666. }
  4667. public function getMeid()
  4668. {
  4669. return $this->meid;
  4670. }
  4671. public function setModel($model)
  4672. {
  4673. $this->model = $model;
  4674. }
  4675. public function getModel()
  4676. {
  4677. return $this->model;
  4678. }
  4679. public function setName($name)
  4680. {
  4681. $this->name = $name;
  4682. }
  4683. public function getName()
  4684. {
  4685. return $this->name;
  4686. }
  4687. public function setNetworkOperator($networkOperator)
  4688. {
  4689. $this->networkOperator = $networkOperator;
  4690. }
  4691. public function getNetworkOperator()
  4692. {
  4693. return $this->networkOperator;
  4694. }
  4695. public function setOs($os)
  4696. {
  4697. $this->os = $os;
  4698. }
  4699. public function getOs()
  4700. {
  4701. return $this->os;
  4702. }
  4703. public function setOtherAccountsInfo($otherAccountsInfo)
  4704. {
  4705. $this->otherAccountsInfo = $otherAccountsInfo;
  4706. }
  4707. public function getOtherAccountsInfo()
  4708. {
  4709. return $this->otherAccountsInfo;
  4710. }
  4711. public function setResourceId($resourceId)
  4712. {
  4713. $this->resourceId = $resourceId;
  4714. }
  4715. public function getResourceId()
  4716. {
  4717. return $this->resourceId;
  4718. }
  4719. public function setSerialNumber($serialNumber)
  4720. {
  4721. $this->serialNumber = $serialNumber;
  4722. }
  4723. public function getSerialNumber()
  4724. {
  4725. return $this->serialNumber;
  4726. }
  4727. public function setStatus($status)
  4728. {
  4729. $this->status = $status;
  4730. }
  4731. public function getStatus()
  4732. {
  4733. return $this->status;
  4734. }
  4735. public function setSupportsWorkProfile($supportsWorkProfile)
  4736. {
  4737. $this->supportsWorkProfile = $supportsWorkProfile;
  4738. }
  4739. public function getSupportsWorkProfile()
  4740. {
  4741. return $this->supportsWorkProfile;
  4742. }
  4743. public function setType($type)
  4744. {
  4745. $this->type = $type;
  4746. }
  4747. public function getType()
  4748. {
  4749. return $this->type;
  4750. }
  4751. public function setUnknownSourcesStatus($unknownSourcesStatus)
  4752. {
  4753. $this->unknownSourcesStatus = $unknownSourcesStatus;
  4754. }
  4755. public function getUnknownSourcesStatus()
  4756. {
  4757. return $this->unknownSourcesStatus;
  4758. }
  4759. public function setUserAgent($userAgent)
  4760. {
  4761. $this->userAgent = $userAgent;
  4762. }
  4763. public function getUserAgent()
  4764. {
  4765. return $this->userAgent;
  4766. }
  4767. public function setWifiMacAddress($wifiMacAddress)
  4768. {
  4769. $this->wifiMacAddress = $wifiMacAddress;
  4770. }
  4771. public function getWifiMacAddress()
  4772. {
  4773. return $this->wifiMacAddress;
  4774. }
  4775. }
  4776. class Google_Service_Directory_MobileDeviceAction extends Google_Model
  4777. {
  4778. protected $internal_gapi_mappings = array(
  4779. );
  4780. public $action;
  4781. public function setAction($action)
  4782. {
  4783. $this->action = $action;
  4784. }
  4785. public function getAction()
  4786. {
  4787. return $this->action;
  4788. }
  4789. }
  4790. class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
  4791. {
  4792. protected $collection_key = 'permission';
  4793. protected $internal_gapi_mappings = array(
  4794. );
  4795. public $displayName;
  4796. public $packageName;
  4797. public $permission;
  4798. public $versionCode;
  4799. public $versionName;
  4800. public function setDisplayName($displayName)
  4801. {
  4802. $this->displayName = $displayName;
  4803. }
  4804. public function getDisplayName()
  4805. {
  4806. return $this->displayName;
  4807. }
  4808. public function setPackageName($packageName)
  4809. {
  4810. $this->packageName = $packageName;
  4811. }
  4812. public function getPackageName()
  4813. {
  4814. return $this->packageName;
  4815. }
  4816. public function setPermission($permission)
  4817. {
  4818. $this->permission = $permission;
  4819. }
  4820. public function getPermission()
  4821. {
  4822. return $this->permission;
  4823. }
  4824. public function setVersionCode($versionCode)
  4825. {
  4826. $this->versionCode = $versionCode;
  4827. }
  4828. public function getVersionCode()
  4829. {
  4830. return $this->versionCode;
  4831. }
  4832. public function setVersionName($versionName)
  4833. {
  4834. $this->versionName = $versionName;
  4835. }
  4836. public function getVersionName()
  4837. {
  4838. return $this->versionName;
  4839. }
  4840. }
  4841. class Google_Service_Directory_MobileDevices extends Google_Collection
  4842. {
  4843. protected $collection_key = 'mobiledevices';
  4844. protected $internal_gapi_mappings = array(
  4845. );
  4846. public $etag;
  4847. public $kind;
  4848. protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
  4849. protected $mobiledevicesDataType = 'array';
  4850. public $nextPageToken;
  4851. public function setEtag($etag)
  4852. {
  4853. $this->etag = $etag;
  4854. }
  4855. public function getEtag()
  4856. {
  4857. return $this->etag;
  4858. }
  4859. public function setKind($kind)
  4860. {
  4861. $this->kind = $kind;
  4862. }
  4863. public function getKind()
  4864. {
  4865. return $this->kind;
  4866. }
  4867. public function setMobiledevices($mobiledevices)
  4868. {
  4869. $this->mobiledevices = $mobiledevices;
  4870. }
  4871. public function getMobiledevices()
  4872. {
  4873. return $this->mobiledevices;
  4874. }
  4875. public function setNextPageToken($nextPageToken)
  4876. {
  4877. $this->nextPageToken = $nextPageToken;
  4878. }
  4879. public function getNextPageToken()
  4880. {
  4881. return $this->nextPageToken;
  4882. }
  4883. }
  4884. class Google_Service_Directory_Notification extends Google_Model
  4885. {
  4886. protected $internal_gapi_mappings = array(
  4887. );
  4888. public $body;
  4889. public $etag;
  4890. public $fromAddress;
  4891. public $isUnread;
  4892. public $kind;
  4893. public $notificationId;
  4894. public $sendTime;
  4895. public $subject;
  4896. public function setBody($body)
  4897. {
  4898. $this->body = $body;
  4899. }
  4900. public function getBody()
  4901. {
  4902. return $this->body;
  4903. }
  4904. public function setEtag($etag)
  4905. {
  4906. $this->etag = $etag;
  4907. }
  4908. public function getEtag()
  4909. {
  4910. return $this->etag;
  4911. }
  4912. public function setFromAddress($fromAddress)
  4913. {
  4914. $this->fromAddress = $fromAddress;
  4915. }
  4916. public function getFromAddress()
  4917. {
  4918. return $this->fromAddress;
  4919. }
  4920. public function setIsUnread($isUnread)
  4921. {
  4922. $this->isUnread = $isUnread;
  4923. }
  4924. public function getIsUnread()
  4925. {
  4926. return $this->isUnread;
  4927. }
  4928. public function setKind($kind)
  4929. {
  4930. $this->kind = $kind;
  4931. }
  4932. public function getKind()
  4933. {
  4934. return $this->kind;
  4935. }
  4936. public function setNotificationId($notificationId)
  4937. {
  4938. $this->notificationId = $notificationId;
  4939. }
  4940. public function getNotificationId()
  4941. {
  4942. return $this->notificationId;
  4943. }
  4944. public function setSendTime($sendTime)
  4945. {
  4946. $this->sendTime = $sendTime;
  4947. }
  4948. public function getSendTime()
  4949. {
  4950. return $this->sendTime;
  4951. }
  4952. public function setSubject($subject)
  4953. {
  4954. $this->subject = $subject;
  4955. }
  4956. public function getSubject()
  4957. {
  4958. return $this->subject;
  4959. }
  4960. }
  4961. class Google_Service_Directory_Notifications extends Google_Collection
  4962. {
  4963. protected $collection_key = 'items';
  4964. protected $internal_gapi_mappings = array(
  4965. );
  4966. public $etag;
  4967. protected $itemsType = 'Google_Service_Directory_Notification';
  4968. protected $itemsDataType = 'array';
  4969. public $kind;
  4970. public $nextPageToken;
  4971. public $unreadNotificationsCount;
  4972. public function setEtag($etag)
  4973. {
  4974. $this->etag = $etag;
  4975. }
  4976. public function getEtag()
  4977. {
  4978. return $this->etag;
  4979. }
  4980. public function setItems($items)
  4981. {
  4982. $this->items = $items;
  4983. }
  4984. public function getItems()
  4985. {
  4986. return $this->items;
  4987. }
  4988. public function setKind($kind)
  4989. {
  4990. $this->kind = $kind;
  4991. }
  4992. public function getKind()
  4993. {
  4994. return $this->kind;
  4995. }
  4996. public function setNextPageToken($nextPageToken)
  4997. {
  4998. $this->nextPageToken = $nextPageToken;
  4999. }
  5000. public function getNextPageToken()
  5001. {
  5002. return $this->nextPageToken;
  5003. }
  5004. public function setUnreadNotificationsCount($unreadNotificationsCount)
  5005. {
  5006. $this->unreadNotificationsCount = $unreadNotificationsCount;
  5007. }
  5008. public function getUnreadNotificationsCount()
  5009. {
  5010. return $this->unreadNotificationsCount;
  5011. }
  5012. }
  5013. class Google_Service_Directory_OrgUnit extends Google_Model
  5014. {
  5015. protected $internal_gapi_mappings = array(
  5016. );
  5017. public $blockInheritance;
  5018. public $description;
  5019. public $etag;
  5020. public $kind;
  5021. public $name;
  5022. public $orgUnitId;
  5023. public $orgUnitPath;
  5024. public $parentOrgUnitId;
  5025. public $parentOrgUnitPath;
  5026. public function setBlockInheritance($blockInheritance)
  5027. {
  5028. $this->blockInheritance = $blockInheritance;
  5029. }
  5030. public function getBlockInheritance()
  5031. {
  5032. return $this->blockInheritance;
  5033. }
  5034. public function setDescription($description)
  5035. {
  5036. $this->description = $description;
  5037. }
  5038. public function getDescription()
  5039. {
  5040. return $this->description;
  5041. }
  5042. public function setEtag($etag)
  5043. {
  5044. $this->etag = $etag;
  5045. }
  5046. public function getEtag()
  5047. {
  5048. return $this->etag;
  5049. }
  5050. public function setKind($kind)
  5051. {
  5052. $this->kind = $kind;
  5053. }
  5054. public function getKind()
  5055. {
  5056. return $this->kind;
  5057. }
  5058. public function setName($name)
  5059. {
  5060. $this->name = $name;
  5061. }
  5062. public function getName()
  5063. {
  5064. return $this->name;
  5065. }
  5066. public function setOrgUnitId($orgUnitId)
  5067. {
  5068. $this->orgUnitId = $orgUnitId;
  5069. }
  5070. public function getOrgUnitId()
  5071. {
  5072. return $this->orgUnitId;
  5073. }
  5074. public function setOrgUnitPath($orgUnitPath)
  5075. {
  5076. $this->orgUnitPath = $orgUnitPath;
  5077. }
  5078. public function getOrgUnitPath()
  5079. {
  5080. return $this->orgUnitPath;
  5081. }
  5082. public function setParentOrgUnitId($parentOrgUnitId)
  5083. {
  5084. $this->parentOrgUnitId = $parentOrgUnitId;
  5085. }
  5086. public function getParentOrgUnitId()
  5087. {
  5088. return $this->parentOrgUnitId;
  5089. }
  5090. public function setParentOrgUnitPath($parentOrgUnitPath)
  5091. {
  5092. $this->parentOrgUnitPath = $parentOrgUnitPath;
  5093. }
  5094. public function getParentOrgUnitPath()
  5095. {
  5096. return $this->parentOrgUnitPath;
  5097. }
  5098. }
  5099. class Google_Service_Directory_OrgUnits extends Google_Collection
  5100. {
  5101. protected $collection_key = 'organizationUnits';
  5102. protected $internal_gapi_mappings = array(
  5103. );
  5104. public $etag;
  5105. public $kind;
  5106. protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
  5107. protected $organizationUnitsDataType = 'array';
  5108. public function setEtag($etag)
  5109. {
  5110. $this->etag = $etag;
  5111. }
  5112. public function getEtag()
  5113. {
  5114. return $this->etag;
  5115. }
  5116. public function setKind($kind)
  5117. {
  5118. $this->kind = $kind;
  5119. }
  5120. public function getKind()
  5121. {
  5122. return $this->kind;
  5123. }
  5124. public function setOrganizationUnits($organizationUnits)
  5125. {
  5126. $this->organizationUnits = $organizationUnits;
  5127. }
  5128. public function getOrganizationUnits()
  5129. {
  5130. return $this->organizationUnits;
  5131. }
  5132. }
  5133. class Google_Service_Directory_Privilege extends Google_Collection
  5134. {
  5135. protected $collection_key = 'childPrivileges';
  5136. protected $internal_gapi_mappings = array(
  5137. );
  5138. protected $childPrivilegesType = 'Google_Service_Directory_Privilege';
  5139. protected $childPrivilegesDataType = 'array';
  5140. public $etag;
  5141. public $isOuScopable;
  5142. public $kind;
  5143. public $privilegeName;
  5144. public $serviceId;
  5145. public $serviceName;
  5146. public function setChildPrivileges($childPrivileges)
  5147. {
  5148. $this->childPrivileges = $childPrivileges;
  5149. }
  5150. public function getChildPrivileges()
  5151. {
  5152. return $this->childPrivileges;
  5153. }
  5154. public function setEtag($etag)
  5155. {
  5156. $this->etag = $etag;
  5157. }
  5158. public function getEtag()
  5159. {
  5160. return $this->etag;
  5161. }
  5162. public function setIsOuScopable($isOuScopable)
  5163. {
  5164. $this->isOuScopable = $isOuScopable;
  5165. }
  5166. public function getIsOuScopable()
  5167. {
  5168. return $this->isOuScopable;
  5169. }
  5170. public function setKind($kind)
  5171. {
  5172. $this->kind = $kind;
  5173. }
  5174. public function getKind()
  5175. {
  5176. return $this->kind;
  5177. }
  5178. public function setPrivilegeName($privilegeName)
  5179. {
  5180. $this->privilegeName = $privilegeName;
  5181. }
  5182. public function getPrivilegeName()
  5183. {
  5184. return $this->privilegeName;
  5185. }
  5186. public function setServiceId($serviceId)
  5187. {
  5188. $this->serviceId = $serviceId;
  5189. }
  5190. public function getServiceId()
  5191. {
  5192. return $this->serviceId;
  5193. }
  5194. public function setServiceName($serviceName)
  5195. {
  5196. $this->serviceName = $serviceName;
  5197. }
  5198. public function getServiceName()
  5199. {
  5200. return $this->serviceName;
  5201. }
  5202. }
  5203. class Google_Service_Directory_Privileges extends Google_Collection
  5204. {
  5205. protected $collection_key = 'items';
  5206. protected $internal_gapi_mappings = array(
  5207. );
  5208. public $etag;
  5209. protected $itemsType = 'Google_Service_Directory_Privilege';
  5210. protected $itemsDataType = 'array';
  5211. public $kind;
  5212. public function setEtag($etag)
  5213. {
  5214. $this->etag = $etag;
  5215. }
  5216. public function getEtag()
  5217. {
  5218. return $this->etag;
  5219. }
  5220. public function setItems($items)
  5221. {
  5222. $this->items = $items;
  5223. }
  5224. public function getItems()
  5225. {
  5226. return $this->items;
  5227. }
  5228. public function setKind($kind)
  5229. {
  5230. $this->kind = $kind;
  5231. }
  5232. public function getKind()
  5233. {
  5234. return $this->kind;
  5235. }
  5236. }
  5237. class Google_Service_Directory_Role extends Google_Collection
  5238. {
  5239. protected $collection_key = 'rolePrivileges';
  5240. protected $internal_gapi_mappings = array(
  5241. );
  5242. public $etag;
  5243. public $isSuperAdminRole;
  5244. public $isSystemRole;
  5245. public $kind;
  5246. public $roleDescription;
  5247. public $roleId;
  5248. public $roleName;
  5249. protected $rolePrivilegesType = 'Google_Service_Directory_RoleRolePrivileges';
  5250. protected $rolePrivilegesDataType = 'array';
  5251. public function setEtag($etag)
  5252. {
  5253. $this->etag = $etag;
  5254. }
  5255. public function getEtag()
  5256. {
  5257. return $this->etag;
  5258. }
  5259. public function setIsSuperAdminRole($isSuperAdminRole)
  5260. {
  5261. $this->isSuperAdminRole = $isSuperAdminRole;
  5262. }
  5263. public function getIsSuperAdminRole()
  5264. {
  5265. return $this->isSuperAdminRole;
  5266. }
  5267. public function setIsSystemRole($isSystemRole)
  5268. {
  5269. $this->isSystemRole = $isSystemRole;
  5270. }
  5271. public function getIsSystemRole()
  5272. {
  5273. return $this->isSystemRole;
  5274. }
  5275. public function setKind($kind)
  5276. {
  5277. $this->kind = $kind;
  5278. }
  5279. public function getKind()
  5280. {
  5281. return $this->kind;
  5282. }
  5283. public function setRoleDescription($roleDescription)
  5284. {
  5285. $this->roleDescription = $roleDescription;
  5286. }
  5287. public function getRoleDescription()
  5288. {
  5289. return $this->roleDescription;
  5290. }
  5291. public function setRoleId($roleId)
  5292. {
  5293. $this->roleId = $roleId;
  5294. }
  5295. public function getRoleId()
  5296. {
  5297. return $this->roleId;
  5298. }
  5299. public function setRoleName($roleName)
  5300. {
  5301. $this->roleName = $roleName;
  5302. }
  5303. public function getRoleName()
  5304. {
  5305. return $this->roleName;
  5306. }
  5307. public function setRolePrivileges($rolePrivileges)
  5308. {
  5309. $this->rolePrivileges = $rolePrivileges;
  5310. }
  5311. public function getRolePrivileges()
  5312. {
  5313. return $this->rolePrivileges;
  5314. }
  5315. }
  5316. class Google_Service_Directory_RoleAssignment extends Google_Model
  5317. {
  5318. protected $internal_gapi_mappings = array(
  5319. );
  5320. public $assignedTo;
  5321. public $etag;
  5322. public $kind;
  5323. public $orgUnitId;
  5324. public $roleAssignmentId;
  5325. public $roleId;
  5326. public $scopeType;
  5327. public function setAssignedTo($assignedTo)
  5328. {
  5329. $this->assignedTo = $assignedTo;
  5330. }
  5331. public function getAssignedTo()
  5332. {
  5333. return $this->assignedTo;
  5334. }
  5335. public function setEtag($etag)
  5336. {
  5337. $this->etag = $etag;
  5338. }
  5339. public function getEtag()
  5340. {
  5341. return $this->etag;
  5342. }
  5343. public function setKind($kind)
  5344. {
  5345. $this->kind = $kind;
  5346. }
  5347. public function getKind()
  5348. {
  5349. return $this->kind;
  5350. }
  5351. public function setOrgUnitId($orgUnitId)
  5352. {
  5353. $this->orgUnitId = $orgUnitId;
  5354. }
  5355. public function getOrgUnitId()
  5356. {
  5357. return $this->orgUnitId;
  5358. }
  5359. public function setRoleAssignmentId($roleAssignmentId)
  5360. {
  5361. $this->roleAssignmentId = $roleAssignmentId;
  5362. }
  5363. public function getRoleAssignmentId()
  5364. {
  5365. return $this->roleAssignmentId;
  5366. }
  5367. public function setRoleId($roleId)
  5368. {
  5369. $this->roleId = $roleId;
  5370. }
  5371. public function getRoleId()
  5372. {
  5373. return $this->roleId;
  5374. }
  5375. public function setScopeType($scopeType)
  5376. {
  5377. $this->scopeType = $scopeType;
  5378. }
  5379. public function getScopeType()
  5380. {
  5381. return $this->scopeType;
  5382. }
  5383. }
  5384. class Google_Service_Directory_RoleAssignments extends Google_Collection
  5385. {
  5386. protected $collection_key = 'items';
  5387. protected $internal_gapi_mappings = array(
  5388. );
  5389. public $etag;
  5390. protected $itemsType = 'Google_Service_Directory_RoleAssignment';
  5391. protected $itemsDataType = 'array';
  5392. public $kind;
  5393. public $nextPageToken;
  5394. public function setEtag($etag)
  5395. {
  5396. $this->etag = $etag;
  5397. }
  5398. public function getEtag()
  5399. {
  5400. return $this->etag;
  5401. }
  5402. public function setItems($items)
  5403. {
  5404. $this->items = $items;
  5405. }
  5406. public function getItems()
  5407. {
  5408. return $this->items;
  5409. }
  5410. public function setKind($kind)
  5411. {
  5412. $this->kind = $kind;
  5413. }
  5414. public function getKind()
  5415. {
  5416. return $this->kind;
  5417. }
  5418. public function setNextPageToken($nextPageToken)
  5419. {
  5420. $this->nextPageToken = $nextPageToken;
  5421. }
  5422. public function getNextPageToken()
  5423. {
  5424. return $this->nextPageToken;
  5425. }
  5426. }
  5427. class Google_Service_Directory_RoleRolePrivileges extends Google_Model
  5428. {
  5429. protected $internal_gapi_mappings = array(
  5430. );
  5431. public $privilegeName;
  5432. public $serviceId;
  5433. public function setPrivilegeName($privilegeName)
  5434. {
  5435. $this->privilegeName = $privilegeName;
  5436. }
  5437. public function getPrivilegeName()
  5438. {
  5439. return $this->privilegeName;
  5440. }
  5441. public function setServiceId($serviceId)
  5442. {
  5443. $this->serviceId = $serviceId;
  5444. }
  5445. public function getServiceId()
  5446. {
  5447. return $this->serviceId;
  5448. }
  5449. }
  5450. class Google_Service_Directory_Roles extends Google_Collection
  5451. {
  5452. protected $collection_key = 'items';
  5453. protected $internal_gapi_mappings = array(
  5454. );
  5455. public $etag;
  5456. protected $itemsType = 'Google_Service_Directory_Role';
  5457. protected $itemsDataType = 'array';
  5458. public $kind;
  5459. public $nextPageToken;
  5460. public function setEtag($etag)
  5461. {
  5462. $this->etag = $etag;
  5463. }
  5464. public function getEtag()
  5465. {
  5466. return $this->etag;
  5467. }
  5468. public function setItems($items)
  5469. {
  5470. $this->items = $items;
  5471. }
  5472. public function getItems()
  5473. {
  5474. return $this->items;
  5475. }
  5476. public function setKind($kind)
  5477. {
  5478. $this->kind = $kind;
  5479. }
  5480. public function getKind()
  5481. {
  5482. return $this->kind;
  5483. }
  5484. public function setNextPageToken($nextPageToken)
  5485. {
  5486. $this->nextPageToken = $nextPageToken;
  5487. }
  5488. public function getNextPageToken()
  5489. {
  5490. return $this->nextPageToken;
  5491. }
  5492. }
  5493. class Google_Service_Directory_Schema extends Google_Collection
  5494. {
  5495. protected $collection_key = 'fields';
  5496. protected $internal_gapi_mappings = array(
  5497. );
  5498. public $etag;
  5499. protected $fieldsType = 'Google_Service_Directory_SchemaFieldSpec';
  5500. protected $fieldsDataType = 'array';
  5501. public $kind;
  5502. public $schemaId;
  5503. public $schemaName;
  5504. public function setEtag($etag)
  5505. {
  5506. $this->etag = $etag;
  5507. }
  5508. public function getEtag()
  5509. {
  5510. return $this->etag;
  5511. }
  5512. public function setFields($fields)
  5513. {
  5514. $this->fields = $fields;
  5515. }
  5516. public function getFields()
  5517. {
  5518. return $this->fields;
  5519. }
  5520. public function setKind($kind)
  5521. {
  5522. $this->kind = $kind;
  5523. }
  5524. public function getKind()
  5525. {
  5526. return $this->kind;
  5527. }
  5528. public function setSchemaId($schemaId)
  5529. {
  5530. $this->schemaId = $schemaId;
  5531. }
  5532. public function getSchemaId()
  5533. {
  5534. return $this->schemaId;
  5535. }
  5536. public function setSchemaName($schemaName)
  5537. {
  5538. $this->schemaName = $schemaName;
  5539. }
  5540. public function getSchemaName()
  5541. {
  5542. return $this->schemaName;
  5543. }
  5544. }
  5545. class Google_Service_Directory_SchemaFieldSpec extends Google_Model
  5546. {
  5547. protected $internal_gapi_mappings = array(
  5548. );
  5549. public $etag;
  5550. public $fieldId;
  5551. public $fieldName;
  5552. public $fieldType;
  5553. public $indexed;
  5554. public $kind;
  5555. public $multiValued;
  5556. protected $numericIndexingSpecType = 'Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec';
  5557. protected $numericIndexingSpecDataType = '';
  5558. public $readAccessType;
  5559. public function setEtag($etag)
  5560. {
  5561. $this->etag = $etag;
  5562. }
  5563. public function getEtag()
  5564. {
  5565. return $this->etag;
  5566. }
  5567. public function setFieldId($fieldId)
  5568. {
  5569. $this->fieldId = $fieldId;
  5570. }
  5571. public function getFieldId()
  5572. {
  5573. return $this->fieldId;
  5574. }
  5575. public function setFieldName($fieldName)
  5576. {
  5577. $this->fieldName = $fieldName;
  5578. }
  5579. public function getFieldName()
  5580. {
  5581. return $this->fieldName;
  5582. }
  5583. public function setFieldType($fieldType)
  5584. {
  5585. $this->fieldType = $fieldType;
  5586. }
  5587. public function getFieldType()
  5588. {
  5589. return $this->fieldType;
  5590. }
  5591. public function setIndexed($indexed)
  5592. {
  5593. $this->indexed = $indexed;
  5594. }
  5595. public function getIndexed()
  5596. {
  5597. return $this->indexed;
  5598. }
  5599. public function setKind($kind)
  5600. {
  5601. $this->kind = $kind;
  5602. }
  5603. public function getKind()
  5604. {
  5605. return $this->kind;
  5606. }
  5607. public function setMultiValued($multiValued)
  5608. {
  5609. $this->multiValued = $multiValued;
  5610. }
  5611. public function getMultiValued()
  5612. {
  5613. return $this->multiValued;
  5614. }
  5615. public function setNumericIndexingSpec(Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec $numericIndexingSpec)
  5616. {
  5617. $this->numericIndexingSpec = $numericIndexingSpec;
  5618. }
  5619. public function getNumericIndexingSpec()
  5620. {
  5621. return $this->numericIndexingSpec;
  5622. }
  5623. public function setReadAccessType($readAccessType)
  5624. {
  5625. $this->readAccessType = $readAccessType;
  5626. }
  5627. public function getReadAccessType()
  5628. {
  5629. return $this->readAccessType;
  5630. }
  5631. }
  5632. class Google_Service_Directory_SchemaFieldSpecNumericIndexingSpec extends Google_Model
  5633. {
  5634. protected $internal_gapi_mappings = array(
  5635. );
  5636. public $maxValue;
  5637. public $minValue;
  5638. public function setMaxValue($maxValue)
  5639. {
  5640. $this->maxValue = $maxValue;
  5641. }
  5642. public function getMaxValue()
  5643. {
  5644. return $this->maxValue;
  5645. }
  5646. public function setMinValue($minValue)
  5647. {
  5648. $this->minValue = $minValue;
  5649. }
  5650. public function getMinValue()
  5651. {
  5652. return $this->minValue;
  5653. }
  5654. }
  5655. class Google_Service_Directory_Schemas extends Google_Collection
  5656. {
  5657. protected $collection_key = 'schemas';
  5658. protected $internal_gapi_mappings = array(
  5659. );
  5660. public $etag;
  5661. public $kind;
  5662. protected $schemasType = 'Google_Service_Directory_Schema';
  5663. protected $schemasDataType = 'array';
  5664. public function setEtag($etag)
  5665. {
  5666. $this->etag = $etag;
  5667. }
  5668. public function getEtag()
  5669. {
  5670. return $this->etag;
  5671. }
  5672. public function setKind($kind)
  5673. {
  5674. $this->kind = $kind;
  5675. }
  5676. public function getKind()
  5677. {
  5678. return $this->kind;
  5679. }
  5680. public function setSchemas($schemas)
  5681. {
  5682. $this->schemas = $schemas;
  5683. }
  5684. public function getSchemas()
  5685. {
  5686. return $this->schemas;
  5687. }
  5688. }
  5689. class Google_Service_Directory_Token extends Google_Collection
  5690. {
  5691. protected $collection_key = 'scopes';
  5692. protected $internal_gapi_mappings = array(
  5693. );
  5694. public $anonymous;
  5695. public $clientId;
  5696. public $displayText;
  5697. public $etag;
  5698. public $kind;
  5699. public $nativeApp;
  5700. public $scopes;
  5701. public $userKey;
  5702. public function setAnonymous($anonymous)
  5703. {
  5704. $this->anonymous = $anonymous;
  5705. }
  5706. public function getAnonymous()
  5707. {
  5708. return $this->anonymous;
  5709. }
  5710. public function setClientId($clientId)
  5711. {
  5712. $this->clientId = $clientId;
  5713. }
  5714. public function getClientId()
  5715. {
  5716. return $this->clientId;
  5717. }
  5718. public function setDisplayText($displayText)
  5719. {
  5720. $this->displayText = $displayText;
  5721. }
  5722. public function getDisplayText()
  5723. {
  5724. return $this->displayText;
  5725. }
  5726. public function setEtag($etag)
  5727. {
  5728. $this->etag = $etag;
  5729. }
  5730. public function getEtag()
  5731. {
  5732. return $this->etag;
  5733. }
  5734. public function setKind($kind)
  5735. {
  5736. $this->kind = $kind;
  5737. }
  5738. public function getKind()
  5739. {
  5740. return $this->kind;
  5741. }
  5742. public function setNativeApp($nativeApp)
  5743. {
  5744. $this->nativeApp = $nativeApp;
  5745. }
  5746. public function getNativeApp()
  5747. {
  5748. return $this->nativeApp;
  5749. }
  5750. public function setScopes($scopes)
  5751. {
  5752. $this->scopes = $scopes;
  5753. }
  5754. public function getScopes()
  5755. {
  5756. return $this->scopes;
  5757. }
  5758. public function setUserKey($userKey)
  5759. {
  5760. $this->userKey = $userKey;
  5761. }
  5762. public function getUserKey()
  5763. {
  5764. return $this->userKey;
  5765. }
  5766. }
  5767. class Google_Service_Directory_Tokens extends Google_Collection
  5768. {
  5769. protected $collection_key = 'items';
  5770. protected $internal_gapi_mappings = array(
  5771. );
  5772. public $etag;
  5773. protected $itemsType = 'Google_Service_Directory_Token';
  5774. protected $itemsDataType = 'array';
  5775. public $kind;
  5776. public function setEtag($etag)
  5777. {
  5778. $this->etag = $etag;
  5779. }
  5780. public function getEtag()
  5781. {
  5782. return $this->etag;
  5783. }
  5784. public function setItems($items)
  5785. {
  5786. $this->items = $items;
  5787. }
  5788. public function getItems()
  5789. {
  5790. return $this->items;
  5791. }
  5792. public function setKind($kind)
  5793. {
  5794. $this->kind = $kind;
  5795. }
  5796. public function getKind()
  5797. {
  5798. return $this->kind;
  5799. }
  5800. }
  5801. class Google_Service_Directory_User extends Google_Collection
  5802. {
  5803. protected $collection_key = 'nonEditableAliases';
  5804. protected $internal_gapi_mappings = array(
  5805. );
  5806. public $addresses;
  5807. public $agreedToTerms;
  5808. public $aliases;
  5809. public $changePasswordAtNextLogin;
  5810. public $creationTime;
  5811. public $customSchemas;
  5812. public $customerId;
  5813. public $deletionTime;
  5814. public $emails;
  5815. public $etag;
  5816. public $externalIds;
  5817. public $hashFunction;
  5818. public $id;
  5819. public $ims;
  5820. public $includeInGlobalAddressList;
  5821. public $ipWhitelisted;
  5822. public $isAdmin;
  5823. public $isDelegatedAdmin;
  5824. public $isMailboxSetup;
  5825. public $kind;
  5826. public $lastLoginTime;
  5827. protected $nameType = 'Google_Service_Directory_UserName';
  5828. protected $nameDataType = '';
  5829. public $nonEditableAliases;
  5830. public $notes;
  5831. public $orgUnitPath;
  5832. public $organizations;
  5833. public $password;
  5834. public $phones;
  5835. public $primaryEmail;
  5836. public $relations;
  5837. public $suspended;
  5838. public $suspensionReason;
  5839. public $thumbnailPhotoEtag;
  5840. public $thumbnailPhotoUrl;
  5841. public $websites;
  5842. public function setAddresses($addresses)
  5843. {
  5844. $this->addresses = $addresses;
  5845. }
  5846. public function getAddresses()
  5847. {
  5848. return $this->addresses;
  5849. }
  5850. public function setAgreedToTerms($agreedToTerms)
  5851. {
  5852. $this->agreedToTerms = $agreedToTerms;
  5853. }
  5854. public function getAgreedToTerms()
  5855. {
  5856. return $this->agreedToTerms;
  5857. }
  5858. public function setAliases($aliases)
  5859. {
  5860. $this->aliases = $aliases;
  5861. }
  5862. public function getAliases()
  5863. {
  5864. return $this->aliases;
  5865. }
  5866. public function setChangePasswordAtNextLogin($changePasswordAtNextLogin)
  5867. {
  5868. $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
  5869. }
  5870. public function getChangePasswordAtNextLogin()
  5871. {
  5872. return $this->changePasswordAtNextLogin;
  5873. }
  5874. public function setCreationTime($creationTime)
  5875. {
  5876. $this->creationTime = $creationTime;
  5877. }
  5878. public function getCreationTime()
  5879. {
  5880. return $this->creationTime;
  5881. }
  5882. public function setCustomSchemas($customSchemas)
  5883. {
  5884. $this->customSchemas = $customSchemas;
  5885. }
  5886. public function getCustomSchemas()
  5887. {
  5888. return $this->customSchemas;
  5889. }
  5890. public function setCustomerId($customerId)
  5891. {
  5892. $this->customerId = $customerId;
  5893. }
  5894. public function getCustomerId()
  5895. {
  5896. return $this->customerId;
  5897. }
  5898. public function setDeletionTime($deletionTime)
  5899. {
  5900. $this->deletionTime = $deletionTime;
  5901. }
  5902. public function getDeletionTime()
  5903. {
  5904. return $this->deletionTime;
  5905. }
  5906. public function setEmails($emails)
  5907. {
  5908. $this->emails = $emails;
  5909. }
  5910. public function getEmails()
  5911. {
  5912. return $this->emails;
  5913. }
  5914. public function setEtag($etag)
  5915. {
  5916. $this->etag = $etag;
  5917. }
  5918. public function getEtag()
  5919. {
  5920. return $this->etag;
  5921. }
  5922. public function setExternalIds($externalIds)
  5923. {
  5924. $this->externalIds = $externalIds;
  5925. }
  5926. public function getExternalIds()
  5927. {
  5928. return $this->externalIds;
  5929. }
  5930. public function setHashFunction($hashFunction)
  5931. {
  5932. $this->hashFunction = $hashFunction;
  5933. }
  5934. public function getHashFunction()
  5935. {
  5936. return $this->hashFunction;
  5937. }
  5938. public function setId($id)
  5939. {
  5940. $this->id = $id;
  5941. }
  5942. public function getId()
  5943. {
  5944. return $this->id;
  5945. }
  5946. public function setIms($ims)
  5947. {
  5948. $this->ims = $ims;
  5949. }
  5950. public function getIms()
  5951. {
  5952. return $this->ims;
  5953. }
  5954. public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
  5955. {
  5956. $this->includeInGlobalAddressList = $includeInGlobalAddressList;
  5957. }
  5958. public function getIncludeInGlobalAddressList()
  5959. {
  5960. return $this->includeInGlobalAddressList;
  5961. }
  5962. public function setIpWhitelisted($ipWhitelisted)
  5963. {
  5964. $this->ipWhitelisted = $ipWhitelisted;
  5965. }
  5966. public function getIpWhitelisted()
  5967. {
  5968. return $this->ipWhitelisted;
  5969. }
  5970. public function setIsAdmin($isAdmin)
  5971. {
  5972. $this->isAdmin = $isAdmin;
  5973. }
  5974. public function getIsAdmin()
  5975. {
  5976. return $this->isAdmin;
  5977. }
  5978. public function setIsDelegatedAdmin($isDelegatedAdmin)
  5979. {
  5980. $this->isDelegatedAdmin = $isDelegatedAdmin;
  5981. }
  5982. public function getIsDelegatedAdmin()
  5983. {
  5984. return $this->isDelegatedAdmin;
  5985. }
  5986. public function setIsMailboxSetup($isMailboxSetup)
  5987. {
  5988. $this->isMailboxSetup = $isMailboxSetup;
  5989. }
  5990. public function getIsMailboxSetup()
  5991. {
  5992. return $this->isMailboxSetup;
  5993. }
  5994. public function setKind($kind)
  5995. {
  5996. $this->kind = $kind;
  5997. }
  5998. public function getKind()
  5999. {
  6000. return $this->kind;
  6001. }
  6002. public function setLastLoginTime($lastLoginTime)
  6003. {
  6004. $this->lastLoginTime = $lastLoginTime;
  6005. }
  6006. public function getLastLoginTime()
  6007. {
  6008. return $this->lastLoginTime;
  6009. }
  6010. public function setName(Google_Service_Directory_UserName $name)
  6011. {
  6012. $this->name = $name;
  6013. }
  6014. public function getName()
  6015. {
  6016. return $this->name;
  6017. }
  6018. public function setNonEditableAliases($nonEditableAliases)
  6019. {
  6020. $this->nonEditableAliases = $nonEditableAliases;
  6021. }
  6022. public function getNonEditableAliases()
  6023. {
  6024. return $this->nonEditableAliases;
  6025. }
  6026. public function setNotes($notes)
  6027. {
  6028. $this->notes = $notes;
  6029. }
  6030. public function getNotes()
  6031. {
  6032. return $this->notes;
  6033. }
  6034. public function setOrgUnitPath($orgUnitPath)
  6035. {
  6036. $this->orgUnitPath = $orgUnitPath;
  6037. }
  6038. public function getOrgUnitPath()
  6039. {
  6040. return $this->orgUnitPath;
  6041. }
  6042. public function setOrganizations($organizations)
  6043. {
  6044. $this->organizations = $organizations;
  6045. }
  6046. public function getOrganizations()
  6047. {
  6048. return $this->organizations;
  6049. }
  6050. public function setPassword($password)
  6051. {
  6052. $this->password = $password;
  6053. }
  6054. public function getPassword()
  6055. {
  6056. return $this->password;
  6057. }
  6058. public function setPhones($phones)
  6059. {
  6060. $this->phones = $phones;
  6061. }
  6062. public function getPhones()
  6063. {
  6064. return $this->phones;
  6065. }
  6066. public function setPrimaryEmail($primaryEmail)
  6067. {
  6068. $this->primaryEmail = $primaryEmail;
  6069. }
  6070. public function getPrimaryEmail()
  6071. {
  6072. return $this->primaryEmail;
  6073. }
  6074. public function setRelations($relations)
  6075. {
  6076. $this->relations = $relations;
  6077. }
  6078. public function getRelations()
  6079. {
  6080. return $this->relations;
  6081. }
  6082. public function setSuspended($suspended)
  6083. {
  6084. $this->suspended = $suspended;
  6085. }
  6086. public function getSuspended()
  6087. {
  6088. return $this->suspended;
  6089. }
  6090. public function setSuspensionReason($suspensionReason)
  6091. {
  6092. $this->suspensionReason = $suspensionReason;
  6093. }
  6094. public function getSuspensionReason()
  6095. {
  6096. return $this->suspensionReason;
  6097. }
  6098. public function setThumbnailPhotoEtag($thumbnailPhotoEtag)
  6099. {
  6100. $this->thumbnailPhotoEtag = $thumbnailPhotoEtag;
  6101. }
  6102. public function getThumbnailPhotoEtag()
  6103. {
  6104. return $this->thumbnailPhotoEtag;
  6105. }
  6106. public function setThumbnailPhotoUrl($thumbnailPhotoUrl)
  6107. {
  6108. $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
  6109. }
  6110. public function getThumbnailPhotoUrl()
  6111. {
  6112. return $this->thumbnailPhotoUrl;
  6113. }
  6114. public function setWebsites($websites)
  6115. {
  6116. $this->websites = $websites;
  6117. }
  6118. public function getWebsites()
  6119. {
  6120. return $this->websites;
  6121. }
  6122. }
  6123. class Google_Service_Directory_UserAbout extends Google_Model
  6124. {
  6125. protected $internal_gapi_mappings = array(
  6126. );
  6127. public $contentType;
  6128. public $value;
  6129. public function setContentType($contentType)
  6130. {
  6131. $this->contentType = $contentType;
  6132. }
  6133. public function getContentType()
  6134. {
  6135. return $this->contentType;
  6136. }
  6137. public function setValue($value)
  6138. {
  6139. $this->value = $value;
  6140. }
  6141. public function getValue()
  6142. {
  6143. return $this->value;
  6144. }
  6145. }
  6146. class Google_Service_Directory_UserAddress extends Google_Model
  6147. {
  6148. protected $internal_gapi_mappings = array(
  6149. );
  6150. public $country;
  6151. public $countryCode;
  6152. public $customType;
  6153. public $extendedAddress;
  6154. public $formatted;
  6155. public $locality;
  6156. public $poBox;
  6157. public $postalCode;
  6158. public $primary;
  6159. public $region;
  6160. public $sourceIsStructured;
  6161. public $streetAddress;
  6162. public $type;
  6163. public function setCountry($country)
  6164. {
  6165. $this->country = $country;
  6166. }
  6167. public function getCountry()
  6168. {
  6169. return $this->country;
  6170. }
  6171. public function setCountryCode($countryCode)
  6172. {
  6173. $this->countryCode = $countryCode;
  6174. }
  6175. public function getCountryCode()
  6176. {
  6177. return $this->countryCode;
  6178. }
  6179. public function setCustomType($customType)
  6180. {
  6181. $this->customType = $customType;
  6182. }
  6183. public function getCustomType()
  6184. {
  6185. return $this->customType;
  6186. }
  6187. public function setExtendedAddress($extendedAddress)
  6188. {
  6189. $this->extendedAddress = $extendedAddress;
  6190. }
  6191. public function getExtendedAddress()
  6192. {
  6193. return $this->extendedAddress;
  6194. }
  6195. public function setFormatted($formatted)
  6196. {
  6197. $this->formatted = $formatted;
  6198. }
  6199. public function getFormatted()
  6200. {
  6201. return $this->formatted;
  6202. }
  6203. public function setLocality($locality)
  6204. {
  6205. $this->locality = $locality;
  6206. }
  6207. public function getLocality()
  6208. {
  6209. return $this->locality;
  6210. }
  6211. public function setPoBox($poBox)
  6212. {
  6213. $this->poBox = $poBox;
  6214. }
  6215. public function getPoBox()
  6216. {
  6217. return $this->poBox;
  6218. }
  6219. public function setPostalCode($postalCode)
  6220. {
  6221. $this->postalCode = $postalCode;
  6222. }
  6223. public function getPostalCode()
  6224. {
  6225. return $this->postalCode;
  6226. }
  6227. public function setPrimary($primary)
  6228. {
  6229. $this->primary = $primary;
  6230. }
  6231. public function getPrimary()
  6232. {
  6233. return $this->primary;
  6234. }
  6235. public function setRegion($region)
  6236. {
  6237. $this->region = $region;
  6238. }
  6239. public function getRegion()
  6240. {
  6241. return $this->region;
  6242. }
  6243. public function setSourceIsStructured($sourceIsStructured)
  6244. {
  6245. $this->sourceIsStructured = $sourceIsStructured;
  6246. }
  6247. public function getSourceIsStructured()
  6248. {
  6249. return $this->sourceIsStructured;
  6250. }
  6251. public function setStreetAddress($streetAddress)
  6252. {
  6253. $this->streetAddress = $streetAddress;
  6254. }
  6255. public function getStreetAddress()
  6256. {
  6257. return $this->streetAddress;
  6258. }
  6259. public function setType($type)
  6260. {
  6261. $this->type = $type;
  6262. }
  6263. public function getType()
  6264. {
  6265. return $this->type;
  6266. }
  6267. }
  6268. class Google_Service_Directory_UserCustomProperties extends Google_Model
  6269. {
  6270. }
  6271. class Google_Service_Directory_UserCustomSchemas extends Google_Model
  6272. {
  6273. }
  6274. class Google_Service_Directory_UserEmail extends Google_Model
  6275. {
  6276. protected $internal_gapi_mappings = array(
  6277. );
  6278. public $address;
  6279. public $customType;
  6280. public $primary;
  6281. public $type;
  6282. public function setAddress($address)
  6283. {
  6284. $this->address = $address;
  6285. }
  6286. public function getAddress()
  6287. {
  6288. return $this->address;
  6289. }
  6290. public function setCustomType($customType)
  6291. {
  6292. $this->customType = $customType;
  6293. }
  6294. public function getCustomType()
  6295. {
  6296. return $this->customType;
  6297. }
  6298. public function setPrimary($primary)
  6299. {
  6300. $this->primary = $primary;
  6301. }
  6302. public function getPrimary()
  6303. {
  6304. return $this->primary;
  6305. }
  6306. public function setType($type)
  6307. {
  6308. $this->type = $type;
  6309. }
  6310. public function getType()
  6311. {
  6312. return $this->type;
  6313. }
  6314. }
  6315. class Google_Service_Directory_UserExternalId extends Google_Model
  6316. {
  6317. protected $internal_gapi_mappings = array(
  6318. );
  6319. public $customType;
  6320. public $type;
  6321. public $value;
  6322. public function setCustomType($customType)
  6323. {
  6324. $this->customType = $customType;
  6325. }
  6326. public function getCustomType()
  6327. {
  6328. return $this->customType;
  6329. }
  6330. public function setType($type)
  6331. {
  6332. $this->type = $type;
  6333. }
  6334. public function getType()
  6335. {
  6336. return $this->type;
  6337. }
  6338. public function setValue($value)
  6339. {
  6340. $this->value = $value;
  6341. }
  6342. public function getValue()
  6343. {
  6344. return $this->value;
  6345. }
  6346. }
  6347. class Google_Service_Directory_UserIm extends Google_Model
  6348. {
  6349. protected $internal_gapi_mappings = array(
  6350. );
  6351. public $customProtocol;
  6352. public $customType;
  6353. public $im;
  6354. public $primary;
  6355. public $protocol;
  6356. public $type;
  6357. public function setCustomProtocol($customProtocol)
  6358. {
  6359. $this->customProtocol = $customProtocol;
  6360. }
  6361. public function getCustomProtocol()
  6362. {
  6363. return $this->customProtocol;
  6364. }
  6365. public function setCustomType($customType)
  6366. {
  6367. $this->customType = $customType;
  6368. }
  6369. public function getCustomType()
  6370. {
  6371. return $this->customType;
  6372. }
  6373. public function setIm($im)
  6374. {
  6375. $this->im = $im;
  6376. }
  6377. public function getIm()
  6378. {
  6379. return $this->im;
  6380. }
  6381. public function setPrimary($primary)
  6382. {
  6383. $this->primary = $primary;
  6384. }
  6385. public function getPrimary()
  6386. {
  6387. return $this->primary;
  6388. }
  6389. public function setProtocol($protocol)
  6390. {
  6391. $this->protocol = $protocol;
  6392. }
  6393. public function getProtocol()
  6394. {
  6395. return $this->protocol;
  6396. }
  6397. public function setType($type)
  6398. {
  6399. $this->type = $type;
  6400. }
  6401. public function getType()
  6402. {
  6403. return $this->type;
  6404. }
  6405. }
  6406. class Google_Service_Directory_UserMakeAdmin extends Google_Model
  6407. {
  6408. protected $internal_gapi_mappings = array(
  6409. );
  6410. public $status;
  6411. public function setStatus($status)
  6412. {
  6413. $this->status = $status;
  6414. }
  6415. public function getStatus()
  6416. {
  6417. return $this->status;
  6418. }
  6419. }
  6420. class Google_Service_Directory_UserName extends Google_Model
  6421. {
  6422. protected $internal_gapi_mappings = array(
  6423. );
  6424. public $familyName;
  6425. public $fullName;
  6426. public $givenName;
  6427. public function setFamilyName($familyName)
  6428. {
  6429. $this->familyName = $familyName;
  6430. }
  6431. public function getFamilyName()
  6432. {
  6433. return $this->familyName;
  6434. }
  6435. public function setFullName($fullName)
  6436. {
  6437. $this->fullName = $fullName;
  6438. }
  6439. public function getFullName()
  6440. {
  6441. return $this->fullName;
  6442. }
  6443. public function setGivenName($givenName)
  6444. {
  6445. $this->givenName = $givenName;
  6446. }
  6447. public function getGivenName()
  6448. {
  6449. return $this->givenName;
  6450. }
  6451. }
  6452. class Google_Service_Directory_UserOrganization extends Google_Model
  6453. {
  6454. protected $internal_gapi_mappings = array(
  6455. );
  6456. public $costCenter;
  6457. public $customType;
  6458. public $department;
  6459. public $description;
  6460. public $domain;
  6461. public $location;
  6462. public $name;
  6463. public $primary;
  6464. public $symbol;
  6465. public $title;
  6466. public $type;
  6467. public function setCostCenter($costCenter)
  6468. {
  6469. $this->costCenter = $costCenter;
  6470. }
  6471. public function getCostCenter()
  6472. {
  6473. return $this->costCenter;
  6474. }
  6475. public function setCustomType($customType)
  6476. {
  6477. $this->customType = $customType;
  6478. }
  6479. public function getCustomType()
  6480. {
  6481. return $this->customType;
  6482. }
  6483. public function setDepartment($department)
  6484. {
  6485. $this->department = $department;
  6486. }
  6487. public function getDepartment()
  6488. {
  6489. return $this->department;
  6490. }
  6491. public function setDescription($description)
  6492. {
  6493. $this->description = $description;
  6494. }
  6495. public function getDescription()
  6496. {
  6497. return $this->description;
  6498. }
  6499. public function setDomain($domain)
  6500. {
  6501. $this->domain = $domain;
  6502. }
  6503. public function getDomain()
  6504. {
  6505. return $this->domain;
  6506. }
  6507. public function setLocation($location)
  6508. {
  6509. $this->location = $location;
  6510. }
  6511. public function getLocation()
  6512. {
  6513. return $this->location;
  6514. }
  6515. public function setName($name)
  6516. {
  6517. $this->name = $name;
  6518. }
  6519. public function getName()
  6520. {
  6521. return $this->name;
  6522. }
  6523. public function setPrimary($primary)
  6524. {
  6525. $this->primary = $primary;
  6526. }
  6527. public function getPrimary()
  6528. {
  6529. return $this->primary;
  6530. }
  6531. public function setSymbol($symbol)
  6532. {
  6533. $this->symbol = $symbol;
  6534. }
  6535. public function getSymbol()
  6536. {
  6537. return $this->symbol;
  6538. }
  6539. public function setTitle($title)
  6540. {
  6541. $this->title = $title;
  6542. }
  6543. public function getTitle()
  6544. {
  6545. return $this->title;
  6546. }
  6547. public function setType($type)
  6548. {
  6549. $this->type = $type;
  6550. }
  6551. public function getType()
  6552. {
  6553. return $this->type;
  6554. }
  6555. }
  6556. class Google_Service_Directory_UserPhone extends Google_Model
  6557. {
  6558. protected $internal_gapi_mappings = array(
  6559. );
  6560. public $customType;
  6561. public $primary;
  6562. public $type;
  6563. public $value;
  6564. public function setCustomType($customType)
  6565. {
  6566. $this->customType = $customType;
  6567. }
  6568. public function getCustomType()
  6569. {
  6570. return $this->customType;
  6571. }
  6572. public function setPrimary($primary)
  6573. {
  6574. $this->primary = $primary;
  6575. }
  6576. public function getPrimary()
  6577. {
  6578. return $this->primary;
  6579. }
  6580. public function setType($type)
  6581. {
  6582. $this->type = $type;
  6583. }
  6584. public function getType()
  6585. {
  6586. return $this->type;
  6587. }
  6588. public function setValue($value)
  6589. {
  6590. $this->value = $value;
  6591. }
  6592. public function getValue()
  6593. {
  6594. return $this->value;
  6595. }
  6596. }
  6597. class Google_Service_Directory_UserPhoto extends Google_Model
  6598. {
  6599. protected $internal_gapi_mappings = array(
  6600. );
  6601. public $etag;
  6602. public $height;
  6603. public $id;
  6604. public $kind;
  6605. public $mimeType;
  6606. public $photoData;
  6607. public $primaryEmail;
  6608. public $width;
  6609. public function setEtag($etag)
  6610. {
  6611. $this->etag = $etag;
  6612. }
  6613. public function getEtag()
  6614. {
  6615. return $this->etag;
  6616. }
  6617. public function setHeight($height)
  6618. {
  6619. $this->height = $height;
  6620. }
  6621. public function getHeight()
  6622. {
  6623. return $this->height;
  6624. }
  6625. public function setId($id)
  6626. {
  6627. $this->id = $id;
  6628. }
  6629. public function getId()
  6630. {
  6631. return $this->id;
  6632. }
  6633. public function setKind($kind)
  6634. {
  6635. $this->kind = $kind;
  6636. }
  6637. public function getKind()
  6638. {
  6639. return $this->kind;
  6640. }
  6641. public function setMimeType($mimeType)
  6642. {
  6643. $this->mimeType = $mimeType;
  6644. }
  6645. public function getMimeType()
  6646. {
  6647. return $this->mimeType;
  6648. }
  6649. public function setPhotoData($photoData)
  6650. {
  6651. $this->photoData = $photoData;
  6652. }
  6653. public function getPhotoData()
  6654. {
  6655. return $this->photoData;
  6656. }
  6657. public function setPrimaryEmail($primaryEmail)
  6658. {
  6659. $this->primaryEmail = $primaryEmail;
  6660. }
  6661. public function getPrimaryEmail()
  6662. {
  6663. return $this->primaryEmail;
  6664. }
  6665. public function setWidth($width)
  6666. {
  6667. $this->width = $width;
  6668. }
  6669. public function getWidth()
  6670. {
  6671. return $this->width;
  6672. }
  6673. }
  6674. class Google_Service_Directory_UserRelation extends Google_Model
  6675. {
  6676. protected $internal_gapi_mappings = array(
  6677. );
  6678. public $customType;
  6679. public $type;
  6680. public $value;
  6681. public function setCustomType($customType)
  6682. {
  6683. $this->customType = $customType;
  6684. }
  6685. public function getCustomType()
  6686. {
  6687. return $this->customType;
  6688. }
  6689. public function setType($type)
  6690. {
  6691. $this->type = $type;
  6692. }
  6693. public function getType()
  6694. {
  6695. return $this->type;
  6696. }
  6697. public function setValue($value)
  6698. {
  6699. $this->value = $value;
  6700. }
  6701. public function getValue()
  6702. {
  6703. return $this->value;
  6704. }
  6705. }
  6706. class Google_Service_Directory_UserUndelete extends Google_Model
  6707. {
  6708. protected $internal_gapi_mappings = array(
  6709. );
  6710. public $orgUnitPath;
  6711. public function setOrgUnitPath($orgUnitPath)
  6712. {
  6713. $this->orgUnitPath = $orgUnitPath;
  6714. }
  6715. public function getOrgUnitPath()
  6716. {
  6717. return $this->orgUnitPath;
  6718. }
  6719. }
  6720. class Google_Service_Directory_UserWebsite extends Google_Model
  6721. {
  6722. protected $internal_gapi_mappings = array(
  6723. );
  6724. public $customType;
  6725. public $primary;
  6726. public $type;
  6727. public $value;
  6728. public function setCustomType($customType)
  6729. {
  6730. $this->customType = $customType;
  6731. }
  6732. public function getCustomType()
  6733. {
  6734. return $this->customType;
  6735. }
  6736. public function setPrimary($primary)
  6737. {
  6738. $this->primary = $primary;
  6739. }
  6740. public function getPrimary()
  6741. {
  6742. return $this->primary;
  6743. }
  6744. public function setType($type)
  6745. {
  6746. $this->type = $type;
  6747. }
  6748. public function getType()
  6749. {
  6750. return $this->type;
  6751. }
  6752. public function setValue($value)
  6753. {
  6754. $this->value = $value;
  6755. }
  6756. public function getValue()
  6757. {
  6758. return $this->value;
  6759. }
  6760. }
  6761. class Google_Service_Directory_Users extends Google_Collection
  6762. {
  6763. protected $collection_key = 'users';
  6764. protected $internal_gapi_mappings = array(
  6765. "triggerEvent" => "trigger_event",
  6766. );
  6767. public $etag;
  6768. public $kind;
  6769. public $nextPageToken;
  6770. public $triggerEvent;
  6771. protected $usersType = 'Google_Service_Directory_User';
  6772. protected $usersDataType = 'array';
  6773. public function setEtag($etag)
  6774. {
  6775. $this->etag = $etag;
  6776. }
  6777. public function getEtag()
  6778. {
  6779. return $this->etag;
  6780. }
  6781. public function setKind($kind)
  6782. {
  6783. $this->kind = $kind;
  6784. }
  6785. public function getKind()
  6786. {
  6787. return $this->kind;
  6788. }
  6789. public function setNextPageToken($nextPageToken)
  6790. {
  6791. $this->nextPageToken = $nextPageToken;
  6792. }
  6793. public function getNextPageToken()
  6794. {
  6795. return $this->nextPageToken;
  6796. }
  6797. public function setTriggerEvent($triggerEvent)
  6798. {
  6799. $this->triggerEvent = $triggerEvent;
  6800. }
  6801. public function getTriggerEvent()
  6802. {
  6803. return $this->triggerEvent;
  6804. }
  6805. public function setUsers($users)
  6806. {
  6807. $this->users = $users;
  6808. }
  6809. public function getUsers()
  6810. {
  6811. return $this->users;
  6812. }
  6813. }
  6814. class Google_Service_Directory_VerificationCode extends Google_Model
  6815. {
  6816. protected $internal_gapi_mappings = array(
  6817. );
  6818. public $etag;
  6819. public $kind;
  6820. public $userId;
  6821. public $verificationCode;
  6822. public function setEtag($etag)
  6823. {
  6824. $this->etag = $etag;
  6825. }
  6826. public function getEtag()
  6827. {
  6828. return $this->etag;
  6829. }
  6830. public function setKind($kind)
  6831. {
  6832. $this->kind = $kind;
  6833. }
  6834. public function getKind()
  6835. {
  6836. return $this->kind;
  6837. }
  6838. public function setUserId($userId)
  6839. {
  6840. $this->userId = $userId;
  6841. }
  6842. public function getUserId()
  6843. {
  6844. return $this->userId;
  6845. }
  6846. public function setVerificationCode($verificationCode)
  6847. {
  6848. $this->verificationCode = $verificationCode;
  6849. }
  6850. public function getVerificationCode()
  6851. {
  6852. return $this->verificationCode;
  6853. }
  6854. }
  6855. class Google_Service_Directory_VerificationCodes extends Google_Collection
  6856. {
  6857. protected $collection_key = 'items';
  6858. protected $internal_gapi_mappings = array(
  6859. );
  6860. public $etag;
  6861. protected $itemsType = 'Google_Service_Directory_VerificationCode';
  6862. protected $itemsDataType = 'array';
  6863. public $kind;
  6864. public function setEtag($etag)
  6865. {
  6866. $this->etag = $etag;
  6867. }
  6868. public function getEtag()
  6869. {
  6870. return $this->etag;
  6871. }
  6872. public function setItems($items)
  6873. {
  6874. $this->items = $items;
  6875. }
  6876. public function getItems()
  6877. {
  6878. return $this->items;
  6879. }
  6880. public function setKind($kind)
  6881. {
  6882. $this->kind = $kind;
  6883. }
  6884. public function getKind()
  6885. {
  6886. return $this->kind;
  6887. }
  6888. }